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 |
---|---|---|---|---|---|---|
Calc distance for one point. | public double calcDistance(final Move otherPoint) {
final double x = this.currentMove.getX();
final double y = this.currentMove.getY();
final double x2 = otherPoint.getX();
final double y2 = otherPoint.getY();
final double distx = Math.abs(x2 - x);
final double disty = Math.abs(y2 - y);
return Math.sqrt((distx * distx) + (disty * disty));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double distance(double x, double y);",
"public int distance(Coord coord1, Coord coord2);",
"double getDistance(Point p);",
"private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}",
"public abstract double distanceFrom(double x, double y);",
"public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }",
"public double getDistance(NdPoint point) {\n\t\tdouble distanceSq = getDistanceSq(point);\n\t\treturn Double.isNaN(distanceSq) ? distanceSq : Math.sqrt(distanceSq);\n\t}",
"double getDistance();",
"double distance (double px, double py);",
"double dist(pair p1){\n\t\tdouble dx=(p1.x-centre.x);\n\t\tdouble dy=(p1.y-centre.y);\n\t\tcount++;\n\t\treturn java.lang.Math.sqrt((dx*dx)+(dy*dy));\n\t}",
"private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }",
"private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}",
"double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }",
"public double getDistance(double x, double y, Point p)\n\t{\n\t\tdouble s1 = Math.sqrt((x - p.x)*(x - p.x) + (y - p.y)*(y - p.y));\n\t\treturn s1;\n\t}",
"public float getDistance();",
"public final double calcDistance( Point a, Point b )\r\n {\r\n return( Math.sqrt( (Math.pow(a.y - b.y, 2)) +\r\n (Math.pow(a.x - b.x, 2)) ) );\r\n }",
"public double distance(Point other) {\n\n // Define delta-X and delta-Y.\n double deltaX = this.x - other.x;\n double deltaY = this.y - other.y;\n\n // Calculate distance and return.\n return Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n }",
"public static double getDistance( GameObject one, GameObject two )\n {\n double deltaX = getDeltaX( one, two );\n double deltaY = getDeltaY( one, two );\n return Math.sqrt( deltaX * deltaX + deltaY * deltaY );\n }",
"public double distance(double x1, double y1, double x2, double y2)\n {\n return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow(y2 - y1, 2));\n }",
"private float distanceTo(BasicEvent event) {\n final float dx = event.x - location.x;\n final float dy = event.y - location.y;\n// return Math.abs(dx)+Math.abs(dy);\n return distanceMetric(dx, dy);\n// dx*=dx;\n// dy*=dy;\n// float distance=(float)Math.sqrt(dx+dy);\n// return distance;\n }",
"private static double distance(double x, double y, double x1, double x2,\n\t\t\tdouble y1, double y2) {\n\t\tPoint p = new Point(x, y);\n\t\tPoint p1 = new Point(x1, y1);\n\t\tPoint p2 = new Point(x2, y2);\n\t\treturn p.distance(p1, p2);\n\t}",
"public double calcDistance(Planet p){\n\t\tdouble dx=-(xxPos-p.xxPos);\n\t\tdouble dy=-(yyPos-p.yyPos);\n\t\treturn Math.sqrt(dx*dx+dy*dy);\n\t}",
"private double calculateDistance(Circle point1, Circle point2) {\r\n double x = point1.getCenterX() - point2.getCenterX();\r\n double y = point1.getCenterY() - point2.getCenterY();\r\n\r\n return Math.sqrt(x*x + y*y);\r\n }",
"public double distance(Point p){\n double distX = this.x-p.x;\n double distY = this.y-p.y;\n return Math.sqrt(\n ( distX*distX ) + ( distY*distY )\n );\n \n }",
"public double calcDistance(Planet p){\n\t\t\tdouble dx = this.xxPos - p.xxPos;\n\t\t\tdouble dy = this.yyPos - p.yyPos;\n\t\treturn Math.sqrt(dx*dx + dy*dy);\n\t}",
"public double calcDistance(Planet p){\n\t\treturn(Math.sqrt((this.xxPos-p.xxPos)*(this.xxPos-p.xxPos)\n\t\t\t+(this.yyPos-p.yyPos)*(this.yyPos-p.yyPos)));\n\t}",
"public double distanceTo(final Point point) {\n return Math.sqrt(Math.pow(x - point.x, 2) + Math.pow(y - point.y, 2));\n }",
"private int distance(Point p1, Point p2) {\n return (int) Math.sqrt(Math.pow(p1.getCenterX() - p2.getCenterX(), 2) + Math.pow(p1.getCenterY() - p2.getCenterY(), 2));\n }",
"public double calcDistance(Planet p){\n\t\tdouble dx = p.xxPos - this.xxPos;\n\t\tdouble dy = p.yyPos - this.yyPos ;\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\n\t}",
"public double distancia(Pixel pixel) {\r\n\t\tdouble distX = this.xDouble - pixel.xDouble;\r\n\t\tdouble distY = this.yDouble - pixel.yDouble;\r\n\t\tdouble val = distX * distX + distY * distY;\r\n\t\tif (val != 0)\r\n\t\t\treturn Math.sqrt(val);\r\n\t\treturn 0;\r\n\t}",
"protected double getDistance(Point p1, Point p2) {\n\t\treturn Math.sqrt((p1.getX()-p2.getX())*(p1.getX()-p2.getX()) + (p1.getY()-p2.getY())*(p1.getY()-p2.getY())); \n\t}",
"public double distance( Point point ) {\n double legX = x - point.x();\n double legY = y - point.y();\n double legZ = z - point.z();\n\n return Math.sqrt( legX * legX + legY * legY + legZ * legZ );\n }",
"static double distance(Point p1, Point p2) {\n\t\treturn Math.sqrt((p2.x - p1.x)*(p2.x - p1.x) + (p2.y - p1.y)*(p2.y - p1.y));\n\t}",
"public double calcDistance(Planet p){\n double sq_dis = (xxPos - p.xxPos) * (xxPos - p.xxPos) + (yyPos - p.yyPos) * (yyPos - p.yyPos);\n double distance = Math.sqrt(sq_dis);\n return distance;\n }",
"public double distancia(Ponto p){\n double dx = Math.pow((p.x - this.x), 2);\n double dy = Math.pow((p.y - this.y), 2);\n return Math.sqrt((dx+dy));\n }",
"public double distance(Point other) {\n return Math.sqrt(((this.x - other.getX()) * (this.x - other.getX()))\n + ((this.y - other.getY()) * (this.y - other.getY())));\n }",
"public double distance(Point p) {\n\t\treturn Math.sqrt(Math.pow(p.y - this.y, 2) + Math.pow(p.x - this.x, 2));\n\t}",
"public double calDistance()\n {\n double closest = poly[0].getD();\n\n for(int i = 1; i < sides; i++)\n {\n if(closest > poly[i].getD())\n {\n closest = poly[i].getD();\n }\n }\n this.distance = closest;\n\n return closest;\n }",
"public static double computeDistance(GeoPoint point1, GeoPoint point2) {\n return Math.sqrt(Math.pow(point1.getLatitudeE6()\n - point2.getLatitudeE6(), 2d)\n + Math.pow(point1.getLongitudeE6() - point2.getLongitudeE6(),\n 2d));\n }",
"public double distanceTo(Point other) {\n\t\tdouble distX, distY, totalDist;\n\t\tdistX=(other.pX - pX) * (other.pX - pX);\n\t\tdistY=(other.pY - pY) * (other.pY - pY);\n\t\ttotalDist=Math.sqrt(distX + distY);\n\t\t\n\t\treturn totalDist;\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\t\n\t}",
"double distance(Point p1,Point p2){\n\t\tdouble dx = p1.x - p2.x;\n\t\tdouble dy = p1.y - p2.y;\n\t\treturn Math.sqrt(dx*dx+dy*dy);\n\t}",
"public double distanceTo(Point other) {\r\n\t\tdouble distX, distY, totalDist;\r\n\t\tdistX=(other.pX - pX) * (other.pX - pX);\r\n\t\tdistY=(other.pY - pY) * (other.pY - pY);\r\n\t\ttotalDist=Math.sqrt(distX + distY);\r\n\t\t\r\n\t\treturn totalDist;\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\t\r\n\t}",
"public double distance(Point other) {\r\n double dx = this.x - other.getX();\r\n double dy = this.y - other.getY();\r\n return Math.sqrt((dx * dx) + (dy * dy));\r\n }",
"public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }",
"long calcDist(int x, int y) {\n\tWeatherDisplay wd = main.getDisplay();\n\tx = wd.getWeatherX(x);\n\ty = wd.getWeatherY(y);\n\tint w = wd.getWeatherWidth();\n\tint h = wd.getWeatherHeight();\n\n\tlong ret = -1;\n\t// Point must be in bounds\n\tif (x >= 0 && y >= 0 && x <= w && y <= h) {\n\t int dy = (front + back) * y / h - back;\n\t int dx = (int)(x - w * (getDate() % main.DAY) / main.DAY);\n\n\t // This may return negative\n\t ret = (long)(dy * main.DAY + dx * main.DAY / w);\n\t}\n\n\t// Show distance\n\tif (ret > 0)\n\t main.bDist.setText(\"Distance: \" + Data.stringTime(ret));\n\telse\n\t main.bDist.setText(\"Distance: --:--\");\n\n\treturn ret;\n }",
"public static double calculateDistance(Point point1, Point point2){\n\n if (point1.getX() > point2.getX() || point1.getY() > point2.getY()){\n Point tmp = point1;\n point1 = point2;\n point2 = tmp;\n }\n\n double distance = Math.abs(Math.sqrt((point2.x - point1.x) * (point2.x - point1.x) + (point2.y - point1.y) * (point2.y - point1.y)));\n\n return distance;\n //return Math.ceil(distance * scale) / scale;\n }",
"public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t\t, 2 )\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}",
"public double getDistance(OurPoint p) {\n\t\treturn Math.sqrt(Math.pow(getY() - p.getX(), 2)\n\t\t\t\t+ Math.pow(getY() - p.getY(), 2));\n\t}",
"public static float getDistance(float x1, float y1, float x2, float y2)\r\n\t{\r\n\t\treturn (float) Math.sqrt(getSquareDistance(x1, y1, x2, y2));\r\n\t}",
"public abstract double calculateDistance(double[] x1, double[] x2);",
"public double calculateDistance(LatLng other) {\n return Math.sqrt( (this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y) );\n }",
"public double ComputeDistance(){ \n\t\tdouble lat1 = this.depAirportCity.getLatDegs() + (double)(this.depAirportCity.getLatMins())/60; \n\t\tdouble lon1 = this.depAirportCity.getLongDegs() + (double)(this.depAirportCity.getLongMins())/60;\n\t\tdouble lat2 = this.arrAirportCity.getLatDegs() + (double)(this.arrAirportCity.getLatMins())/60; \n\t\tdouble lon2 = this.arrAirportCity.getLongDegs() + (double)(this.arrAirportCity.getLongMins())/60;\n\t\t\n\t\tdouble distance = Haversine.getMiles(lat1, lon1, lat2, lon2);\n\t\treturn distance;\n\t}",
"public final double distance(Point2Dd pt){\r\n return (Math.sqrt((double)((x-pt.x)*(x-pt.x) + (y-pt.y)*(y-pt.y))));\r\n }",
"public double getDistance(Point3D point){\n return _position.distance(point);\n }",
"public double distance(int x, int y){\n double distanceSq= Math.pow(this.x-x,2.0) + Math.pow(this.y-y,2.0);\n //double distance= Math.sqrt(distanceSq);\n return Math.sqrt(distanceSq);\n }",
"public static double distance(\n\t\t\tdouble x1, double y1, double x2, double y2) {\n\t\treturn Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n\t}",
"public double distance(Point p) {\n return Math.sqrt(Math.pow(p.getX() - this.x, 2) + Math.pow(p.getY() - this.y, 2));\n }",
"public int distTo(final int one) {\n return distace[one];\n }",
"public double distance(Point other) {\n double newX = this.x - other.getX();\n double newY = this.y - other.getY();\n return Math.sqrt((newX * newX) + (newY * newY));\n }",
"static double distance(double x1, double y1, double x2, double y2)\n {\n double x_dist = x2 - x1;\n double y_dist = y2 - y1;\n double dist = Math.sqrt(Math.pow(x_dist, 2) + Math.pow(y_dist, 2));\n return dist;\n }",
"private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}",
"public double distance(Point p){\n\t\treturn (this.minus(p)).magnitude(); //creates a vector between the two points and measures its magnitude\n\t}",
"public double getDistance(final DataPoint point1, final DataPoint point2) {\n return NTree.getDistance(point1, point2);\n }",
"public static double getDistance(GPSCoordinates point1, GPSCoordinates point2) {\r\n\t\t\r\n\t\treturn EARTH_RADIUS * 2 * Math.atan2( Math.sqrt( getHaversinePart(point1, point2)), Math.sqrt( getHaversinePart(point1, point2) ) );\r\n\t}",
"public double distanceToPoint(final Tuple3d point) {\n // // D = abs(aX + bY + cZ + d) / sqrt(a^2 + b^2 + c^2)\n // // D = abs(aX + bY + cZ + d) / 1.0 # sqrt part is length of normal which we normalized to length = 1\n return (this.normal.x * point.x) + (this.normal.y * point.y) + (this.normal.z * point.z) + this.d;\n }",
"double getDistance(int i, int j){\r\n\tdouble d = (coord[i][0]-coord[j][0])*(coord[i][0]-coord[j][0])+ (coord[i][1]-coord[j][1])*(coord[i][1]-coord[j][1]);\r\n\td = Math.sqrt(d);\r\n\treturn d;\r\n}",
"double distanceSq (double px, double py);",
"public double getDistance(final Point2d p){\n Point2d nearest = getNearestPointOnLine(p);\n return nearest.distance(p);\n }",
"public double dist(Point p) {\n\t\treturn Math.sqrt(Math.pow(this.getX() - p.getX(), 2) + Math.pow(this.getY() - p.getY(), 2));\n\t}",
"double distance() {\r\n\t double dist_total = 0;\r\n\t for (int i = 0; i < index.length - 1; i++) {\r\n\t dist_total += city(i).distance(city(i + 1));\r\n\t }\r\n\t \r\n\t return dist_total;\r\n\t}",
"public static double getDistance(int x1, int y1, int x2, int y2)\n {\n double dx = x2 - x1;\n double dy = y2 - y1;\n\n // return Math.hypot(x2 - x1, y2 - y1); // Extremely slow\n // return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); // 20 times faster than hypot\n return Math.sqrt(dx * dx + dy * dy); // 10 times faster then previous line\n }",
"public double distance(double x, double y) {\n return distance(new Coordinates(x, y));\n }",
"public double distance(){\n return DistanceTraveled;\n }",
"public double getDistanceToPoint(Point2D point) {\n double ax = point.getX() - this.point1.getX();\n double bx = this.point2.getX() - this.point1.getX();\n double ay = point.getY() - this.point1.getY();\n double by = this.point2.getY() - this.point1.getY();\n\n double denom = bx * bx + by * by;\n if (denom < MathConstants.EPS) {\n return this.point1.distance(point);\n }\n\n double t = (ax * bx + ay * by) / denom;\n if (t < 0) {\n return this.point1.distance(point);\n }\n if (t > 1) {\n return this.point2.distance(point);\n }\n double x = this.point1.getX() * (1.0 - t) + this.point2.getX() * t;\n double y = this.point1.getY() * (1.0 - t) + this.point2.getY() * t;\n\n double dx = x - point.getX();\n double dy = y - point.getY();\n\n return Math.sqrt(dx * dx + dy * dy);\n }",
"private static int dist(int x1, int y1, int x2, int y2) {\n\t\treturn (int) Math.sqrt(Math.abs(((x2-x1) * (x2-x1)) + ((y2-y1) * (y2-y1))));\n\t}",
"public double distance(InputDatum datum, InputDatum datum2) throws MetricException;",
"public static final double distance(final float x0, final float y0, final float z0, final float x1, final float y1,\r\n final float z1) {\r\n\r\n return Math.sqrt( ( (x1 - x0) * (x1 - x0)) + ( (y1 - y0) * (y1 - y0)) + ( (z1 - z0) * (z1 - z0)));\r\n }",
"public double getDistance()\n {\n return Math.abs(getDifference());\n }",
"private double distance(Position pos1, Position pos2)\r\n {\r\n assert pos1 != null;\r\n assert pos2 != null;\r\n\r\n int x = Math.abs(pos1.column() - pos2.column());\r\n int y = Math.abs(pos1.line() - pos2.line());\r\n\r\n return Math.sqrt(x * x + y * y);\r\n }",
"public double getDistance(){\n\t\treturn this.distance;\n\t}",
"public static final double distance(final double x1, final double x2, final double y1, final double y2) {\r\n return Math.sqrt( ( (x2 - x1) * (x2 - x1)) + ( (y2 - y1) * (y2 - y1)));\r\n }",
"public double distance(final Coordinates other) {\n\t\treturn Math.sqrt(Math.pow((double) x - other.getX(), 2) + Math.pow((double) y - other.getY(), 2));\n\t}",
"public double distance() {\n return distance;\n }",
"public double distance() {\n return distance;\n }",
"public double calcDistance (Planet pIn){\n\t\tdouble dis;\n\t\tdouble dx = xxPos - pIn.xxPos;\n\t\tdouble dy = yyPos - pIn.yyPos;\n\t\tdis = Math.sqrt(dx*dx + dy*dy);\n\t\treturn dis;\n\t}",
"public double calcDistance(GpsCoordinate other)\n\t{\n\t\tdouble lat1 = degToRadian(this.latitude);\n\t\tdouble lng1 = degToRadian(this.longitude);\n\t\tdouble lat2 = degToRadian(other.latitude);\n\t\tdouble lng2 = degToRadian(other.longitude);\n\t\t\n\t\t/*\n\t\t * use haversine Formula to calc the distance\n\t\t * @see: http://en.wikipedia.org/wiki/Haversine_formula\n\t\t */\n\t\tdouble inRootFormula = Math.sqrt(\n\t\t\t\tMath.sin((lat1 - lat2)/2)*Math.sin((lat1 - lat2)/2)+\n\t\t\t\tMath.cos(lat1)*Math.cos(lat2)*Math.sin((lng1-lng2)/2)*Math.sin((lng1-lng2)/2));\n\t\t\n\t\treturn 2* EARTH_RADIUS * Math.asin(inRootFormula);\n\n\t\n\t}",
"private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: distance from camera to base of target\n\t\tfinal double distance = ((h2 - h1) / Math.tan(Math.toRadians(a1 + a2)));\n\n\t\tfinal double d = Math.sqrt(Math.pow(h2 - h1, 2) + Math.pow(distance, 2));\n\t\tSmartDashboard.putNumber(\"Py Distance\", d);\n\n\t\treturn (distance);\n\n\t}",
"public static final double distance(final float x1, final float x2, final float y1, final float y2) {\r\n return Math.sqrt( ( (x2 - x1) * (x2 - x1)) + ( (y2 - y1) * (y2 - y1)));\r\n }",
"public double computeDistance(Object o){\n \n if (o!=null && o.getClass()==this.getClass()){\n NDimensionalPoint newPoint = (NDimensionalPoint) o;\n if (newPoint.values.size()==values.size()){\n double dist = 0.0;\n for (int i=0;i<values.size();i++){\n dist+=Math.pow(newPoint.getValues().get(i) -values.get(i),2);\n }\n return Math.sqrt(dist);\n }else\n {\n return MAX_DIST;\n }\n }else{\n return MAX_DIST;\n }\n }",
"public static double distance(Prototype one, Prototype two)\r\n {\r\n return d(one, two);\r\n }",
"public int calculateDistance(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2){\n double x1 = l1.data.getxCo();\n double y1 = l1.data.getyCo();\n double x2 = l2.data.getxCo();\n double y2 = l2.data.getyCo();\n double dist = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return (int) dist;\n }",
"static double distance(Point a, Point b) {\n\t\tint xDiff = a.x - b.x;\n\t\tint yDiff = a.y - b.y;\n\t\treturn Math.sqrt((xDiff * xDiff) + (yDiff * yDiff));\n\t}",
"public double distance(Point3D p){\n return Math.sqrt(distanceSquared(p));\n }",
"public static final double distance(final int x1, final int x2, final int y1, final int y2) {\r\n return Math.sqrt( ( (x2 - x1) * (x2 - x1)) + ( (y2 - y1) * (y2 - y1)));\r\n }",
"double getDistanceInMiles();",
"public int distanceTo(final int one) {\n int total = 0;\n for (Edge each : pathTo(one)) {\n total += each.getWeight();\n }\n return total;\n }",
"public double getDistance(int x1, int x2) {\n\t\tdouble result = cache.get(x1, x2);\n\t\tif (Double.isNaN(result)) {\n\t\t\tresult = calculateDistance(getAttributeValues(x1), getAttributeValues(x2));\n\t\t\tcache.store(x1, x2, result);\n\t\t}\n\t\treturn result;\n\t}",
"public float getDistance(){\n\t\t\treturn s1.start.supportFinal.dot(normal);\n\t\t}",
"public static float distance(PointF p1, PointF p2){\n return (float) Math.sqrt(Math.pow((p2.x - p1.x), 2) + Math.pow(p2.y - p1.y,2));\n }",
"public static double distance(double x1, double y1, double x2, double y2) {\n\t\tdouble r1 = x2 - x1;\n\t\tdouble r2 = y2 - y1;\n\t\treturn Math.sqrt(r1 * r1 + r2 * r2);\n\t}"
]
| [
"0.74184185",
"0.72780764",
"0.7257786",
"0.71631676",
"0.70974064",
"0.70554703",
"0.7052986",
"0.704932",
"0.70250905",
"0.7013566",
"0.699575",
"0.6962632",
"0.6960641",
"0.6885158",
"0.68707335",
"0.6861633",
"0.68264335",
"0.6793614",
"0.6791826",
"0.67850053",
"0.6777951",
"0.6760019",
"0.67509073",
"0.6749654",
"0.67452645",
"0.67368",
"0.6722897",
"0.670973",
"0.6705418",
"0.6703422",
"0.6702572",
"0.6693013",
"0.66909707",
"0.6677228",
"0.66760164",
"0.6668799",
"0.6658488",
"0.66180736",
"0.6617147",
"0.661436",
"0.660987",
"0.66019034",
"0.65968555",
"0.65962857",
"0.65808994",
"0.65795827",
"0.6576102",
"0.6576094",
"0.65711975",
"0.6563046",
"0.65573186",
"0.6556728",
"0.6547359",
"0.6538346",
"0.65317565",
"0.6531435",
"0.6523112",
"0.6519261",
"0.6511455",
"0.64983463",
"0.6479828",
"0.6456937",
"0.6456246",
"0.64457756",
"0.6439255",
"0.6429099",
"0.6424846",
"0.64220726",
"0.6419061",
"0.6413372",
"0.6407967",
"0.6407455",
"0.6401255",
"0.63924307",
"0.63512623",
"0.6350368",
"0.6341367",
"0.6336463",
"0.63305724",
"0.6330318",
"0.63224196",
"0.631853",
"0.63101083",
"0.63101083",
"0.63083357",
"0.630446",
"0.6297139",
"0.6294489",
"0.62753695",
"0.62743413",
"0.627097",
"0.6269232",
"0.62672806",
"0.62650526",
"0.62639165",
"0.6254448",
"0.625244",
"0.6246608",
"0.6241649",
"0.6236047"
]
| 0.65458906 | 53 |
Created by pascke on 02/08/16. | public interface PesquisaEndpoint {
@POST("pesquisa/filtrar")
Call<ProcessoPagingModel> filtrar(@Body PesquisaModel pesquisaModel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\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}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\n public void init() {\n\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"private void init() {\n\n\t}",
"@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}",
"public void method_4270() {}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@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 void init() {}",
"@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 protected void init() {\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\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n void init() {\n }",
"public void mo4359a() {\n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"@Override\n\tprotected void initialize() {\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\tpublic void init()\n\t{\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo21877s() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m23075a() {\n }",
"private void init() {\n\n\n\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public abstract void mo56925d();",
"@Override\n protected void initialize() \n {\n \n }",
"public void skystonePos4() {\n }",
"public void mo21779D() {\n }",
"private void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}"
]
| [
"0.5951255",
"0.59100956",
"0.5861402",
"0.57850826",
"0.5721186",
"0.5717654",
"0.5717654",
"0.56771755",
"0.56756955",
"0.5671815",
"0.5666701",
"0.56596124",
"0.56391406",
"0.5631988",
"0.56201476",
"0.56201476",
"0.56201476",
"0.56201476",
"0.56201476",
"0.5608609",
"0.5604917",
"0.5600905",
"0.55938345",
"0.55895734",
"0.558661",
"0.5577084",
"0.55636656",
"0.5547434",
"0.5542757",
"0.5528759",
"0.55216336",
"0.55194235",
"0.55187595",
"0.5512679",
"0.55098",
"0.5496276",
"0.54950684",
"0.54950684",
"0.5492449",
"0.5488989",
"0.5488272",
"0.5464994",
"0.54541045",
"0.5454014",
"0.5454014",
"0.5454014",
"0.5449431",
"0.54465204",
"0.544231",
"0.5432275",
"0.54180354",
"0.54122525",
"0.54122525",
"0.54122525",
"0.54056287",
"0.5403964",
"0.5403964",
"0.54038256",
"0.5394519",
"0.5394519",
"0.5394519",
"0.53916",
"0.53884757",
"0.53884757",
"0.5386192",
"0.53830326",
"0.5381394",
"0.5380164",
"0.53719497",
"0.53665006",
"0.5362635",
"0.5358942",
"0.5347793",
"0.5347685",
"0.53459704",
"0.53459704",
"0.53459704",
"0.53459704",
"0.53459704",
"0.53459704",
"0.53360987",
"0.5313079",
"0.530984",
"0.53012013",
"0.52958727",
"0.52958727",
"0.52958727",
"0.52958727",
"0.52958727",
"0.52958727",
"0.52958727",
"0.5280419",
"0.527969",
"0.5277705",
"0.5263923",
"0.52633035",
"0.52605236",
"0.5259501",
"0.5256702",
"0.5256387",
"0.5256387"
]
| 0.0 | -1 |
Inflate the layout for this fragment Bundle bundle = this.getArguments(); username = bundle.getString("USER_NAME"); useremail = bundle.getString("USER_EMAIL"); userphone = bundle.getString("USER_PHONE"); usergender = bundle.getString("USER_GENDER"); | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
SharedPreferences prefs =getContext().getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE);
username= prefs.getString("USER_MOBILE", null);
useremail= prefs.getString("USER_NAME", null);
userphone= prefs.getString("USER_EMAIL", null);
usergender= prefs.getString("USER_GENDER", null);
return inflater.inflate(R.layout.fragment_profile, container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\ttv1 = (TextView)getActivity().findViewById(R.id.username);\n//\t\ttv1.setText(this.getArguments().getString(\"user\"));\n\t\treturn inflater.inflate(R.layout.activity_personal_info, container, false);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (getArguments() != null) {\n username = getArguments().getString(ARG_PARAM1);\n mainUsername = getArguments().getString(ARG_PARAM2);\n authHead = getArguments().getString(ARG_PARAM3);\n pageType = getArguments().getString(ARG_PARAM4);\n }\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_info, container, false);\n\n TextView name = (TextView) v.findViewById(R.id.user_name);\n TextView email = (TextView) v.findViewById(R.id.user_email);\n TextView tvNbTrips = (TextView) v.findViewById(R.id.user_nb_trips);\n TextView login = (TextView) v.findViewById(R.id.user_login);\n String nbTrips = String.valueOf(MyApplication.getInstance().getTrips().size());\n String n = MyApplication.getInstance().getSP_FirstName() + \" \" + MyApplication.getInstance().getSP_LastName();\n String l = MyApplication.getInstance().getSP_Login();\n name.setText(name.getText() + \" \" + n);\n email.setText(email.getText() + \" \" + MyApplication.getInstance().getSP_Email());\n tvNbTrips.setText(tvNbTrips.getText() + \" \" + nbTrips);\n login.setText(login.getText() + \" \" + MyApplication.getInstance().getSP_Login());\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\r\n pImage = (ImageView) view.findViewById(R.id.profile_frag_img);\r\n name = (TextView) view.findViewById(R.id.profile_frag_name);\r\n email = (TextView) view.findViewById(R.id.profile_frag_email);\r\n phone = (TextView) view.findViewById(R.id.profile_frag_phone);\r\n address = (TextView) view.findViewById(R.id.profile_frag_address);\r\n SharedPreferences sharedPreferences = getContext().getSharedPreferences(getString(R.string.shared_pref_user_info),\r\n getContext().MODE_PRIVATE);\r\n String sName = sharedPreferences.getString(\"NAME\", \"NAME\");\r\n String sEmail = sharedPreferences.getString(\"EMAIL\", \"EMAIL\");\r\n String sPhone = sharedPreferences.getString(\"MOBILE\", \"MOBILE\");\r\n String sAddress = sharedPreferences.getString(\"ADDRESS\", \"ADDRESS\");\r\n TextDrawable drawable = TextDrawable.builder().beginConfig().width(250)\r\n .height(250).endConfig().buildRound(sName.substring(0, 1), Color.rgb(204,29,29));\r\n pImage.setImageDrawable(drawable);\r\n name.setText(\"Name: \"+sName);\r\n email.setText(\"Email: \"+sEmail);\r\n phone.setText(\"Phone: +880\"+sPhone);\r\n address.setText(\"Address: \"+sAddress);\r\n\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = FragmentUserInfoBinding.inflate(inflater, container, false);\n binding.nameTv.setText(mUser.getName());\n binding.lastnameTv.setText(mUser.getLastname());\n binding.phoneTv.setText(mUser.getPhone());\n getActivity().setTitle(\"Информация пользователя\");\n\n return binding.getRoot();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\n\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(getString(R.string.LOGIN_PREFS)\n , Context.MODE_PRIVATE);\n String email = sharedPreferences.getString(\"email\", \"missing\");\n\n\n String url = \"https://tcssandroidthuv.000webhostapp.com/get_healthy_app/list.php?cmd=user&email=\"\n + email;\n\n UserAsyncTask userAsyncTask = new UserAsyncTask();\n userAsyncTask.execute(new String[]{url});\n\n mCurrentBMI = (TextView) view.findViewById(R.id.text_current_bmi_display);\n mBMIRange = (TextView) view.findViewById(R.id.text_healthy_bmi_range_display);\n mCurrentCalories = (TextView) view.findViewById(R.id.text_current_calories_display);\n mCaloriesToConsumeToLoseWeight = (TextView) view.findViewById\n (R.id.text_calories_to_consume_to_lose_weight_display);\n\n mExpectedWaterConsumption = (TextView) view.findViewById(R.id.text_expected_water_consumption_display);\n\n return view;\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tthis.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);// 去掉信息栏\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\n\t\tsetContentView(R.layout.fragment_dynamic_detail);\n\t\tintent = getIntent();\n\t\tusername = intent.getStringExtra(\"username\");\n\t\tid = intent.getStringExtra(\"id\");\n\t\tuid = intent.getStringExtra(\"uid\");\n\t\tman = intent.getStringExtra(\"sex\");\n\t\tinitview();\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tthis.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);// 去掉信息栏\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\n\t\tsetContentView(R.layout.fragment_dynamic_detail);\n\t\tintent = getIntent();\n\t\tusername = intent.getStringExtra(\"username\");\n\t\tid = intent.getStringExtra(\"id\");\n\t\tuid = intent.getStringExtra(\"uid\");\n\t\tman = intent.getStringExtra(\"sex\");\n\t\tinitview();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view =inflater.inflate(R.layout.fragment_user_profile, container, false);\n ButterKnife.bind(this,view);\n SessionManager sessionManager = new SessionManager(getContext());\n tvId.setText(sessionManager.getUSER_Id());\n tvName.setText(sessionManager.getFULLNAME());\n tvMailId.setText(sessionManager.getEmail());\n tvMobileNum.setText(sessionManager.getMOBILENUM());\n tvBranch.setText(sessionManager.getBRANCH());\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\t\n\t\tView v = inflater.inflate(R.layout.fragment_register_user, container,false);\n\t\t\n\t\t//TextView title = (TextView)v.findViewById(R.id.title);\n\t\tusername = (EditText)v.findViewById(R.id.username);\n\t\tusername.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tu.setUsername(s.toString());\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tpassword = (EditText)v.findViewById(R.id.password);\n\t\tpassword.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tu.setPassword(s.toString());\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tfname = (EditText)v.findViewById(R.id.firstname);\n\t\tfname.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tu.setFname(s.toString());\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tlname = (EditText)v.findViewById(R.id.lastname);\n\t\tlname.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tu.setLname(s.toString());\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\trollno = (EditText)v.findViewById(R.id.rollno);\n\t\trollno.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tu.setRollno(s.toString());\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*libno = (EditText)v.findViewById(R.id.libNo);\n\t\tlibno.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tu.setLibno(s.toString());\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});*/\n\t\t\n\t\tButton RegisterButton = (Button)v.findViewById(R.id.register_button);\n\t\tRegisterButton.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\t\n\t\t\t\t\n\t\t\t\tString myUrl = Uri.parse(ENDPOINT).buildUpon()\n\t\t\t\t\t\t\t\t.appendPath(\"users\")\n\t\t\t\t\t\t\t\t.build()\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\n\t\t\t\tLog.d(\"Register Fragment\",\"URL:\"+myUrl);\n\t\t\t\t\n\t\t\t\tswitch(v.getId()){\n\t\t\t\t\tcase R.id.register_button: new RegisterUserTask().execute(myUrl);\n\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//case R.id.register_button: new \n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t \n\t\t//return super.onCreateView(inflater, container, savedInstanceState);\n\t\n\t\t});\t\n\t\treturn v ; \n\t\n\n}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootview =inflater.inflate(R.layout.fragment_my_account, container, false);\n personImg = (ImageView)rootview. findViewById(R.id.person_img);\n persontxt = (TextView) rootview.findViewById(R.id.personName);\n personNum = (TextView) rootview.findViewById(R.id.telephoneNum);\n personEmail = (TextView) rootview.findViewById(R.id.emailtxt);\n accountEdit = (Button) rootview.findViewById(R.id.accountedit);\n changeLang = (Button) rootview.findViewById(R.id.changelang);\n signout = (Button) rootview.findViewById(R.id.signout);\n getData();\n\n return rootview;\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n session = SessionManager.getInstance();\n\n userImage = (ImageView) getView().findViewById(R.id.user_image);\n userName = (TextView) getView().findViewById(R.id.user_name);\n userNickName = (TextView) getView().findViewById(R.id.user_nickname);\n userTotalPoints = (TextView) getView().findViewById(R.id.user_total_points);\n userActualPoints = (TextView) getView().findViewById(R.id.user_actual_points);\n userCreationDate = (TextView) getView().findViewById(R.id.gobro_since);\n userBirthDate = (TextView) getView().findViewById(R.id.user_birthdate);\n userEmail = (TextView) getView().findViewById(R.id.user_email);\n ImageButton editUser = (ImageButton) getView().findViewById(R.id.edit_profile_button);\n TextView textView = (TextView) getView().findViewById(R.id.exchangedRewards);\n if (!(\"user\".equals(session.getRole()))) textView.setVisibility(View.GONE);\n LinearLayout pointsLinear = (LinearLayout) getView().findViewById(R.id.linearLayout_Points);\n if (!(\"user\").equals(session.getRole())) pointsLinear.setVisibility(View.GONE);\n\n editUser.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FragmentManager manager = ((FragmentActivity) getContext()).getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n Fragment fragment = (Fragment) new UserProfileEditFragment();\n transaction.replace(R.id.flContent, fragment);\n transaction.addToBackStack(UserProfileEditFragment.class.getName()).commit();\n }\n });\n\n new GetInfoUser().execute(\"http://10.4.41.145/api/users/\" + session.getUsername());\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_account_details, container, false);\n emailTV=view.findViewById(R.id.user_email);\n unameTV=view.findViewById(R.id.user_name);\n dobTV=view.findViewById(R.id.user_dob);\n contactTV=view.findViewById(R.id.user_phone);\n genderTV=view.findViewById(R.id.user_gender);\n countryTV=view.findViewById(R.id.user_country);\n stateTV=view.findViewById(R.id.user_state);\n cityTV=view.findViewById(R.id.user_city);\n landTV=view.findViewById(R.id.user_landmark);\n streetTV=view.findViewById(R.id.user_street);\n hnoTV=view.findViewById(R.id.user_hno);\n pinTV=view.findViewById(R.id.user_pin_code);\n sharedPreferences=getActivity().getSharedPreferences(LoginSharedPref.SHARED_PREF_NAME,MODE_PRIVATE);\n populateDataFromSharedPreferences();\n return view;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n username = SPUtils.getString(Const.USERNAME, \"\");\r\n View view = inflater.inflate(R.layout.fragment_me2, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n return view;\r\n\r\n\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n profileBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_profile, container, false);\n\n SharedPreferences sharedpreferences = getContext().getSharedPreferences(Constants.MyPREFERENCES, Context.MODE_PRIVATE);\n username=sharedpreferences.getString(Constants.USER_NAME,null);\n phone=sharedpreferences.getString(Constants.PHONE,null);\n email=sharedpreferences.getString(Constants.EMAIL,null);\n user_id=sharedpreferences.getString(Constants.USER_ID,user_id);\n\n\n\n\n\n profileBinding.textViewChangePassword.setOnClickListener(v -> {\n startActivity(new Intent(getActivity(), ChangePassword.class));\n });\n\n profileBinding.textViewAddress.setOnClickListener(v -> {\n startActivity(new Intent(getActivity(), AddAddressActivity.class));\n });\n\n profileBinding.textViewHistory.setOnClickListener(v -> {\n startActivity(new Intent(getActivity(), HistoryActivity.class));\n });\n\n profileBinding.textViewLogout.setOnClickListener(v -> {\n startActivity(new Intent(getActivity(), LoginActivity.class));\n getActivity().finish();\n });\n\n profileBinding.textViewTerms.setOnClickListener(view -> {\n startActivity(new Intent(getActivity(), TermsandConditions.class));\n });\n\n profileBinding.textViewHelp.setOnClickListener(view -> {\n startActivity(new Intent(getActivity(), HelpsActivity.class));\n });\n\n profileBinding.textViewEdit.setOnClickListener(view1 -> {\n withEditText(view1);\n });\n\n\n\n getUsers();\n\n return profileBinding.getRoot();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tgetActivity();\n\t\t /*获取SharedPreferences实例。如果不存在将新建一个 */\n\t\t\t\tsharedPreferences = getActivity().getSharedPreferences(PREFERENCE_NAME, MODE);\n\t\t\t\tString name = sharedPreferences.getString(\"username\",\"\");\n\t\tlogout = (Button)getActivity().findViewById(R.id.logout);\n\t\tregister = (Button)getActivity().findViewById(R.id.register);\n\t\thomepage= (Button)getActivity().findViewById(R.id.homepage);\n\t\ttv1 = (TextView)getActivity().findViewById(R.id.username);\n\t\tinitview();\t\n\t\tif(getActivity().getIntent().getExtras() == null){\n\t\t\tif(\"\".equals(name)){\n\t\t\t\tname=\"尚未登录\";\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tname = getActivity().getIntent().getExtras().getString(\"user\");\n\t\t}\n\t\ttv1.setText(name);\n//\t\t\n\t}",
"@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\n progressDialog = new ProgressDialog(getActivity());\n textViewUserName = (TextView) view.findViewById(R.id.textViewUserName);\n textViewAge = (TextView) view.findViewById(R.id.textViewAge);\n textViewGender = (TextView) view.findViewById(R.id.textViewGender);\n textViewExperience = (TextView) view.findViewById(R.id.textViewExperience);\n\n imageViewProfile = (ImageView) view.findViewById(R.id.imageViewProfile);\n\n buttonEditProfile = (Button) view.findViewById(R.id.buttonEditProfile);\n buttonMyVideo = (Button) view.findViewById(R.id.buttonMyVideo);\n buttonMyStory = (Button) view.findViewById(R.id.buttonMyStory);\n buttonSignIn=(Button)view.findViewById(R.id.buttonSingnIn);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=LayoutInflater.from(getActivity()).inflate(R.layout.fragment_edit_name, null);\n\n EditText etName= (EditText) v.findViewById(R.id.et_edit_name);\n\n\n // 初始化姓名\n etName.setText(((MyApplication)getActivity().getApplication()).getUser().getUserName());\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_account, container, false);\n unbinder = ButterKnife.bind(this, view);\n mUsername.setText(username);\n setManagerName();\n\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n getActivity().setTitle(\"Perfil\");\n return inflater.inflate(R.layout.user_profile_info_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_top, container, false);\n\n author= (TextView)view.findViewById(R.id.author);\n title= (TextView)view.findViewById(R.id.title);\n year= (TextView)view.findViewById(R.id.year);\n\n Bundle bundle = getArguments();\n String authorText = bundle.getString(\"author\", \"\");\n String titleText = bundle.getString(\"title\", \"\");\n String yearText = bundle.getString(\"year\", \"\");\n\n\n title.setText(titleText);\n author.setText(authorText);\n year.setText(yearText);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_info, container, false);\n\n SQlite = new SQLiteUserHelper(getContext());\n\n Intent intent = getActivity().getIntent();\n User user = (User) intent.getSerializableExtra(\"user\");\n\n\n tvHoTen = v.findViewById(R.id.tvHoTen);\n tvDate = v.findViewById(R.id.tvDate);\n tvGioiTinh = v.findViewById(R.id.tvGioiTinh);\n tvThayDoi = v.findViewById(R.id.tvThayDoi);\n tvDangXuat = v.findViewById(R.id.tvDangXuat);\n\n tvHoTen.setText(\"Họ & Tên: \"+user.getHoten());\n tvDate.setText(\"Ngày sinh: \"+user.getNgaysinh());\n tvGioiTinh.setText(\"Giới tính: \"+user.getGioitinh());\n tvThayDoi.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent1 = new Intent(getContext(), UpdateUserActivity.class);\n intent1.putExtra(\"user1\", user);\n startActivity(intent1);\n }\n });\n tvDangXuat.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent1 = new Intent(getContext(), DangNhapActivity.class);\n startActivity(intent1);\n }\n });\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_profile, container, false);\n\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getContext());\n\n tvName = (TextView) view.findViewById(R.id.tvNameProfile);\n tvId = (TextView) view.findViewById(R.id.tvIdProfile);\n tvAge = (TextView) view.findViewById(R.id.tvAgeProfile);\n tvPhone = (TextView) view.findViewById(R.id.tvPhoneProfile);\n tvEmail = (TextView) view.findViewById(R.id.tvEmailProfile);\n tvPassword = (TextView) view.findViewById(R.id.tvPasswordProfile);\n\n tvName.setText(preferences.getString(BankContractor.UserAccountDb.COL_NAME,\"nul\"));\n tvId.setText(preferences.getString(BankContractor.UserAccountDb.COL_ID,\"nul\"));\n tvAge.setText(preferences.getString(BankContractor.UserAccountDb.COL_AGE,\"nul\"));\n tvPhone.setText(preferences.getString(BankContractor.UserAccountDb.COL_PHONE,\"nul\"));\n tvEmail.setText(preferences.getString(BankContractor.UserAccountDb.COL_EMAIL,\"nul\"));\n tvPassword.setText(preferences.getString(BankContractor.UserAccountDb.COL_PASSWORD,\"nul\"));\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\n\n //for update account\n userName = view.findViewById(R.id.userName);\n userEmail = view.findViewById(R.id.userEmail);\n updateUserButton = view.findViewById(R.id.btnUpdateAccount);\n\n //for update password\n currentPassword = view.findViewById(R.id.userPassword);\n newPassword = view.findViewById(R.id.newPassword);\n updateUserPasswordButton = view.findViewById(R.id.btnUpdatePassword);\n\n\n sharedPreferenceManager = new SharedPreferenceManager(getActivity());\n userId = sharedPreferenceManager.getUser().getId();\n userEmailId = sharedPreferenceManager.getUser().getEmail();\n\n updateUserButton.setOnClickListener(this);\n updateUserPasswordButton.setOnClickListener(this);\n\n return view;\n }",
"public void setupUserInfo(Bundle upUserInfo) {\n // Getting Info\n String name = upUserInfo.getString(\"userName\");\n String email = upUserInfo.getString(\"userEmail\");\n\n\n // Setting local Variables\n this.tutorName = name;\n this.tutorEmail = email;\n\n TextView nameField = (TextView) findViewById(R.id.UserNameField);\n nameField.setText(name);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Bundle bundle = this.getArguments();\n if (bundle != null) {\n name = bundle.getString(\"name\", \"\"); // Key, default value\n }\n return inflater.inflate(R.layout.fragment_update_fertilizer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n userPref = getActivity().getSharedPreferences(\"user\", getActivity().MODE_PRIVATE);\n userEditor = userPref.edit();\n return inflater.inflate(R.layout.fragment_profile, container, false);\n }",
"@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_profile, container, false);\n\n //initialize shared preference\n SharedPreferences mPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n //link the text view to full name one\n profile_username = (TextView) v.findViewById(R.id.profile_username);\n profile_fullname = (TextView) v.findViewById(R.id.profile_fullname);\n profile_email = (TextView) v.findViewById(R.id.profile_email);\n profile_phonenumber = (TextView) v.findViewById(R.id.profile_phone_number);\n\n //initialize DatabaseHelper\n db = new DatabaseHelper(getActivity());\n\n //get session username\n String shUsername = mPreferences.getString(getString(R.string.sessionUserName), \"\");\n profile_username.setText(shUsername);\n\n Cursor data = db.getAllUserInfo(shUsername);\n String getUsername = \"\";\n String getFullname = \"\";\n String getEmail = \"\";\n String getPhone = \"\";\n while (data.moveToNext()) {\n getUsername = data.getString(1);\n getFullname = data.getString(3);\n getEmail = data.getString(4);\n getPhone = data.getString(5);\n }\n if (getUsername != \"\") {\n //We did it!\n //Toast.makeText(this, \"We did it!\", Toast.LENGTH_LONG).show();\n //profile_username.setText(getUsername);\n profile_fullname.setText(getFullname);\n profile_email.setText(getEmail);\n profile_phonenumber.setText(getPhone);\n } else {\n //Toast.makeText(this, \"Error pulling from database\", Toast.LENGTH_LONG).show();\n }\n /*\n //run query to get info (password going into fullname for test purposes)\n Cursor cursor = db.getPassword(shUsername);\n if(cursor.getCount() == 0){\n Toast.makeText(getActivity(), \"NO PASS DATA\", Toast.LENGTH_SHORT).show();\n }else{\n profile_fullname.setText(cursor.getString(0));\n }\n */\n return v;\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t \n\t oldUsername = getIntent().getStringExtra(\"username\"); \n\t \n\t setContentView(R.layout.create_user_layout);\n\t \n\t saveUserButton = (Button) findViewById(R.id.saveUserButton);\n\t saveUserButton.setOnClickListener(this);\n\t \n\t cancelButton = (Button) findViewById(R.id.cancelButton);\n\t cancelButton.setOnClickListener(this);\n\t \n\t usernameEditText = (EditText) findViewById(R.id.usernameEditText);\n\t usernameEditText.setText(oldUsername);\n\t errorTextView = (TextView) findViewById(R.id.errorTextView);\n\t errorTextView.setTextColor(Color.RED);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_detail_person, container, false);\n\n FirstNameTXT=(TextView)v.findViewById(R.id.FirstNameTXT);\n LastNameTXT=(TextView)v.findViewById(R.id.LastNameTXT);\n PhoneNumberTXT=(TextView)v.findViewById(R.id.PhoneNumberTXT);\n AdressTXT=(TextView)v.findViewById(R.id.AdressTXT);\n PostCodeTXT=(TextView)v.findViewById(R.id.PostCodeTXT);\n CityTXT=(TextView)v.findViewById(R.id.CityTXT);\n\n EditText tmp=(EditText)v.findViewById(R.id.editText);\n registerForContextMenu(tmp);\n\n UptateInfo(personId);\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_information, container, false);\n\n setView();\n\n User user = new User(getActivity());\n SalaryUtil salaryUtil = new SalaryUtil(user);\n\n textViewINSS.setText(\"INSS: R$ \" + salaryUtil.calculateDiscountToString(user.getGrossSalary().getGrossSalary(), new INSS()));\n textViewIRRF.setText(\"IRRF: R$ \" + salaryUtil.calculateDiscountToString(user.getGrossSalary().getGrossSalary(), new IRRF(new INSS())));\n textViewNetSalary.setText(\"Salario liquido: R$ \" + user.getGrossSalary().doubleToStringMoney(salaryUtil.calculateNetSalary()));\n textViewDeduction.setText(\"Deduções: R$ \" + user.getUserJSON().getDeduction());\n textViewFGTS.setText(\"FGTS: R$ \" + salaryUtil.calculateDiscountToString(user.getGrossSalary().getGrossSalary(), new FGTS()));\n textViewGrossSalary.setText(\"Base calculo: R$ \" + user.getGrossSalary().doubleToStringMoney(user.getGrossSalary().getGrossSalary()));\n\n return view;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Log.i(sFragmentName, \"onCreate()\");\n\n Bundle extras = getActivity().getIntent().getExtras();\n\n String fname = extras.getString(\"fname\");\n String iname = extras.getString(\"iname\");\n String indi_id = extras.getString(\"indi\");\n String indvtype = extras.getString(\"indvtype\");\n\n Log.i(sFragmentName, \"onCreate() - fname: \" + fname);\n Log.i(sFragmentName, \"onCreate() - iname: \" + iname);\n Log.i(sFragmentName, \"onCreate() - indi: \" + indi_id);\n Log.i(sFragmentName, \"onCreate() - indvtype: \" + indvtype);\n sFullName = iname;\n int poscomma = iname.indexOf(\",\");\n String formattediname = iname.substring(poscomma + 2, iname.length());\t\t\t// given names\n formattediname = formattediname + \" /\" + iname.substring(0, poscomma) + \"/\";\n\n Log.i(sFragmentName, \"onCreate() - formattediname: \" + formattediname);\n Log.i(sFragmentName, \"onCreate() - sFullName: \" + sFullName);\n }",
"@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\t\n\t\tAppManager.getAppManager().addActivity(this);\n\t\t//获得用户的Id\n\t\tuId=getIntent().getStringExtra(\"DATA0\");\n\t\thead = getIntent().getStringExtra(\"DATA1\");\n\t\tnickName = getIntent().getStringExtra(\"DATA2\");\n\t\tsetContentView(R.layout.local_detail_fragment_activity);\n\t\tbackLayout=(RelativeLayout)findViewById(R.id.backLayout);\n\t\tbackLayout.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t\tAnimationUtil.finishOut2Right(UserDetailFragmentActivity.this);\n\t\t\t}\n\t\t});\n\t\tfragmentTransaction.replace(R.id.local_detail_fragment, new UserFragment());\n\t\tfragmentTransaction.commit();\n\t\t\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\n this.inflater = inflater;\n ButterKnife.bind(this, view);\n userarguments = getArguments();\n currentuser = userarguments.getParcelable(\"currentuser\");\n user = FirebaseAuth.getInstance().getCurrentUser();\n uId = user.getUid();\n dRef = FirebaseDatabase.getInstance().getReference(\"users\").child(uId);\n Glide.with(getActivity()).load(currentuser.getPhotoUrl())\n .transition(withCrossFade())\n .thumbnail(0.5f)\n .transform(new CircleTransform())\n .circleCrop()\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(profilepic);\n// oldphotoUrl = user.getPhotoUrl();\n firstname.setText(currentuser.getFirstname());\n// oldfirstname = firstname.getText().toString().trim();\n middlename.setText(currentuser.getMiddlename());\n// oldmiddlename = middlename.getText().toString().trim();\n lastname.setText(currentuser.getLastname());\n// oldlastname = lastname.getText().toString().trim();\n contact.setText(currentuser.getContact());\n// oldcontact = contact.getText().toString().trim();\n address.setText(currentuser.getAddress());\n// oldaddress = address.getText().toString().trim();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_user_prof, container, false);\n mAuth = FirebaseAuth.getInstance();\n mRef = FirebaseDatabase.getInstance().getReference().child(\"Users\");\n\n SharedPreferences mProfile = getActivity().getSharedPreferences(\"Profile\", Context.MODE_PRIVATE);\n\n editName = v.findViewById(R.id.editName);\n editEmail = v.findViewById(R.id.editEmail);\n editBday = v.findViewById(R.id.editBday);\n editEthnicity = v.findViewById(R.id.editEthnicity);\n editGender = v.findViewById(R.id.editGender);\n\n // check mProfile\n if (mProfile.contains(\"email\")){\n email = mProfile.getString(\"email\", \"<missing>\");\n name = mProfile.getString(\"name\", \"<missing>\");\n birthday = mProfile.getString(\"birthday\", \"<missing>\");\n ethnicity = mProfile.getString(\"ethnicity\", \"<missing>\");\n gender = mProfile.getString(\"gender\", \"<missing>\");\n\n editEmail.setText(email);\n editName.setText(name);\n editBday.setText(birthday);\n editEthnicity.setText(ethnicity);\n editGender.setText(gender);\n }\n else {\n updateFragFromDB();\n }\n return v;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_profile, container, false);\n nameTv = view.findViewById(R.id.nameTv);\n mailTv = view.findViewById(R.id.mailTv);\n imageView = view.findViewById(R.id.image);\n\n\n userId = 1;\n setContent(userId);\n\n ImageButton userDecrease = view.findViewById(R.id.user1);\n ImageButton userIncrease = view.findViewById(R.id.user2);\n\n userDecrease.setOnClickListener(this);\n userIncrease.setOnClickListener(this);\n return view;\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tappContext = (AppContext) getApplicationContext();\n\t\tuser = appContext.getUser();\n\t\tif (user != null) {\n\t\t\tString username = user.getUsername();\n\t\t\tlL_mine.setVisibility(View.GONE);\n\t\t\ttextview_username.setText(username);\n\t\t\tlL_mine2.setVisibility(View.VISIBLE);\n\t\t}\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_user_detail, container, false);\n mUnbinder = ButterKnife.bind(this,view);\n setUserData();\n return view;\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tappContext = (AppContext) getApplicationContext();\r\n\t\tuser = appContext.getUser();\r\n\t\tif (user != null) {\r\n\t\t\tString username = user.getUsername();\r\n\t\t\tlL_mine.setVisibility(View.GONE);\r\n\t\t\ttextview_username.setText(username);\r\n\t\t\tlL_mine2.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\n\t\t View rootView = inflater.inflate(R.layout.activity_memdetail, container, false);\n\t\t name=(TextView)rootView.findViewById(R.id.member_name);\n\t\t mother=(TextView)rootView.findViewById(R.id.mother_name);\n\t\t father=(TextView)rootView.findViewById(R.id.father_name);\n\t\t uid=(TextView)rootView.findViewById(R.id.u_id);\n\t\t relation=(TextView)rootView.findViewById(R.id.relation);\n\t\t age=(TextView)rootView.findViewById(R.id.age);\n\t\t gender=(TextView)rootView.findViewById(R.id.gender);\n\t\t\n\t\turl= ((Member_Details)getActivity()).getUrl();\n\t\tSystem.out.println(url+\"\"+\"We are here\");\n\t\t\n\t\n\tSystem.out.println(pos+\"\"+\"We are pos\");\n\tmakeJsonRequest();\n\t\treturn rootView;\n\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_zestmoney, container, false);\n setUpUI(view);\n mPaymentParams = getArguments().getParcelable(PayuConstants.KEY);\n payuConfig = getArguments().getParcelable(PayuConstants.PAYU_CONFIG);\n salt = getArguments().getString(PayuConstants.SALT);\n return view;\n\n }",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n fragmentView = view;\n boolean hasProfile = false;\n //check si on avait des erreur ou un phone et name a ajouter\n if(args != null && !args.isEmpty()){\n try {\n if(args.containsKey(\"msg\")){\n displayErrMsg(args.getInt(\"msg\"));\n }\n if(args.containsKey(\"name\")){\n String name = args.getString(\"name\");\n if(name!= null && !name.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userName)).setText(name);\n hasProfile = true;\n }\n }\n if(args.containsKey(\"phone\")){\n String phone = args.getString(\"phone\");\n if(phone != null && !phone.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userPhone)).setText(phone);\n hasProfile = true;\n }\n }\n //on set le focus sur le message\n if(hasProfile){\n ((EditText)fragmentView.findViewById(R.id.userMessage)).requestFocus();\n }\n\n }catch(Exception e){\n Tracer.log(TAG, \"onViewCreated.ARGS.exception: \", e);\n }\n\n }\n\n //\n Button buttNext = fragmentView.findViewById(R.id.buttNext);\n //butt create\n buttNext.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n checkMandatoryFieldsAndCreate();\n }\n });\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n profView = inflater.inflate(R.layout.fragment_profile, container, false);\n\n userRef = FirebaseDatabase.getInstance().getReference().child(\"Users\");\n firebaseFireStore = FirebaseFirestore.getInstance();\n\n mAuth = FirebaseAuth.getInstance();\n userID = mAuth.getCurrentUser().getUid();\n\n tvUsername = profView.findViewById(R.id.tvProfUsername);\n tvFullName = profView.findViewById(R.id.tvProfFullName);\n tvClass = profView.findViewById(R.id.tvProfClass);\n tvClub = profView.findViewById(R.id.tvProfClubJoined);\n imageViewProf = profView.findViewById(R.id.imageViewProf);\n\n return profView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_my_profile, container, false);\n\n imageView = (ImageView) v.findViewById(R.id.imageView);\n usernameTextView = (TextView) v.findViewById(R.id.usernameTextView);\n emailTextView = (TextView) v.findViewById(R.id.emailTextView);\n questionTextView = (TextView) v.findViewById(R.id.questionTextView);\n currentPassTextView = (TextView) v.findViewById(R.id.currentPass);\n newPassTextView = (TextView) v.findViewById(R.id.newPass);\n reenterPassTextView = (TextView) v.findViewById(R.id.reNewPass);\n btnChangePassword = (Button) v.findViewById(R.id.btnChangePassword);\n constraintLayout = (ConstraintLayout)v.findViewById(R.id.layoutContraint);\n\n questionTextView.setOnClickListener(this);\n btnChangePassword.setOnClickListener(this);\n imageView.setOnClickListener(this);\n\n\n //get the profile picture\n if(ParseUser.getCurrentUser()!=null) {\n getProfilePicture();\n }\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_login, container, false);\n\n nameEdit = (EditText) view.findViewById(R.id.name);\n phoneEdit = (EditText) view.findViewById(R.id.mobno);\n loginButton = (Button) view.findViewById(R.id.log_btn);\n\n loginButton.setOnClickListener(this);\n\n progress = new ProgressDialog(getActivity());\n progress.setMessage(\"Registering ...\");\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.setIndeterminate(true);\n progress.setCanceledOnTouchOutside(false);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_create_new_user, container, false);\n Firebase.setAndroidContext(getActivity());\n cnubutton = (Button)view.findViewById(R.id.cnubutton);\n cnufirstname = (EditText)view.findViewById(R.id.cnufirstname);\n cnuemailconfirm = (EditText)view.findViewById(R.id.cnuemailconfirm);\n cnuusername = (EditText)view.findViewById(R.id.cnuusername);\n cnupassword = (EditText)view.findViewById(R.id.cnupassword);\n cnupasswordconfirm = (EditText)view.findViewById(R.id.cnupasswordconfirm);\n studentID = (EditText)view.findViewById(R.id.studentID);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_view, container, false);\n\n viewTaskName = (TextView)view.findViewById(R.id.viewTaskName);\n viewTaskTime = (TextView)view.findViewById(R.id.viewTaskTime);\n\n Bundle args = getArguments();\n if(args != null){\n viewTaskName.setText(args.getString(\"name\"));\n viewTaskTime.setText(args.getString(\"time\"));\n }\n\n\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_dashboard, container, false);\n\n\n tv_header = (TextView) v.findViewById(R.id.tv_headersettings);\n typeface = Typeface.createFromAsset(getContext().getAssets(), \"Billabong.ttf\");\n tv_mail = (TextView) v.findViewById(R.id.tv_usermail);\n tv_name = (TextView) v.findViewById(R.id.tv_username);\n image_pp = (ImageView) v.findViewById(R.id.img_userpp);\n// btn_setname = (Button) v.findViewById(R.id.btn_setusername);\n btn_setpsw = (Button) v.findViewById(R.id.btn_setuserpsw);\n// ll_setter=(LinearLayout) v.findViewById(R.id.ll_setter);\n// btn_setname.setOnClickListener(this);\n btn_setpsw.setOnClickListener(this);\n progressBar = (ProgressBar) v.findViewById(R.id.progressBar);\n tv_header.setTypeface(typeface);\n\n\n setprofile();\n\n\n\n\n\n return v;\n\n }",
"@Override\n public void onCreate (Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.register);\n this.user = (EditText) findViewById(R.id.email);\n this.password = (EditText) findViewById(R.id.pass);\n this.rpassword = (EditText) findViewById(R.id.repeat_pass);\n this.name = (EditText) findViewById(R.id.name);\n\n spinnerDialog = new LoadingSpinnerDialog();\n receiver = null;\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter = ArrayAdapter\n .createFromResource(this, R.array.genders, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n this.datePicker = new DatePickerFragment();\n this.gender = (Spinner) findViewById(R.id.gender);\n gender.setAdapter(adapter);\n gender.setOnItemSelectedListener(this);\n genderSelected = \"Male\";\n\n this.register = (Button) findViewById(R.id.register);\n this.date = (Button) findViewById(R.id.date);\n this.register.setOnClickListener(this);\n this.date.setOnClickListener(this);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_user_register_fragment, container, false);\n etName=view.findViewById(R.id.etUname);\n etEmail=view.findViewById(R.id.etULemail);\n etPhn=view.findViewById(R.id.etUphn);\n etPassword=view.findViewById(R.id.etUpass);\n etcPassword=view.findViewById(R.id.etUcpassword);\n btnRegister=view.findViewById(R.id.btnUregister);\n databaseDrivers= FirebaseDatabase.getInstance().getReference(\"Driver_Credentials\");\n mAuth=FirebaseAuth.getInstance();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_login, container, false);\n Button button = (Button) v.findViewById(R.id.login_submit_button);\n button.setOnClickListener(this);\n\n user_text = (EditText) v.findViewById(R.id.login_username_box);\n pass_text = (EditText) v.findViewById(R.id.login_password_box);\n success = false;\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_complete, container, false);\n x.view().inject(this, root);\n initUserNameEditText();\n initSexLayout();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n fragmentAccountBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_account, container, false);\n\n appPreference = AppPreference.getInstance(getContext());\n signInToken = appPreference.getString(SIGNIN_TOKEN);\n\n // if user is login\n if (signInToken.isEmpty()) {\n\n fragmentAccountBinding.tvLoginLogout.setText(\"Login\");\n fragmentAccountBinding.tvUserName.setText(\"Login / Create account\");\n\n intent = new Intent(getContext(), RegistrationActivity.class);\n\n Glide.with(AppConstants.mContext)\n .load(R.drawable.placeholder_products)\n .into(fragmentAccountBinding.ivDisplayPicture);\n\n } else {\n\n userName = appPreference.getString(USER_NAME);\n userAvatar = appPreference.getString(USER_AVATAR);\n\n intent = new Intent(getContext(), OrderListingActivity.class);\n\n fragmentAccountBinding.tvUserName.setText(userName);\n String avatarImagePath = USER_STORAGE_BASE_URL.concat(userAvatar);\n\n fragmentAccountBinding.tvLoginLogout.setText(\"Logout\");\n\n Glide.with(AppConstants.mContext)\n .load(avatarImagePath)\n .placeholder(R.drawable.placeholder_products)\n .diskCacheStrategy(DiskCacheStrategy.NONE)\n .skipMemoryCache(true)\n .into(fragmentAccountBinding.ivDisplayPicture);\n }\n\n initListeners();\n\n return fragmentAccountBinding.getRoot();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_second);\n\t\t\n\t\tUser user = getIntent().getExtras().getParcelable(\"user\");\n\t\ttv_show = (TextView) findViewById(R.id.tv_show);\n\t\ttv_show.setText(user.getName().concat(\"==\")\n\t\t\t\t.concat(String.valueOf(user.getAge())).concat(\"==\")\n\t\t\t\t.concat(String.valueOf(user.isMale())).concat(\"==\")\n\t\t\t\t.concat(String.valueOf(user.getFriends())).concat(\"==\")\n\t\t\t\t.concat(String.valueOf(user.getBook().getBookPage())));\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_friend_by_username, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n messagesViewModel = ViewModelProviders.of(this).get(MessagesViewModel.class);\n getMyData(); //获取我的信息\n getDataFromArgument(); //获取好友信息\n messagesViewModel.setMessageRepository(username); //将好友账号传进去,DAO会自动查询包含该好友的消息\n return inflater.inflate(R.layout.fragment_chat, container, false);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_enter_user_data);\n _name = (EditText) findViewById(R.id.name);\n _birthyear = (NumberPicker) findViewById(R.id.birthYear);\n _gender = (Switch) findViewById(R.id.gender);\n _pregnant = (Switch) findViewById(R.id.pregnant);\n _lactating = (Switch) findViewById(R.id.lactate);\n _weight = (NumberPicker) findViewById(R.id.weightPicker);\n\n setDefaultPersonProfile();\n if (PersonProfile.profileEntered()) {\n readDefaultPersonProfile();\n }\n _name.requestFocusFromTouch();\n UIUtils.ShowKeyboard(this);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_user_profile, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_user_profile, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_user_profile, container, false);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_home);\n UserEmail = getIntent().getStringExtra(\"UserEmail\");\n Toast.makeText(this, \"Welcome\"+UserEmail, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_signup, container, false);\n\n getMainActivity().setBackground(R.drawable.sp_light);\n\n unbinder = ButterKnife.bind(this, view);\n\n if (getArguments() != null) {\n\n llconfirm.setVisibility(View.GONE);\n llPassword.setVisibility(View.GONE);\n viewConfirm.setVisibility(View.GONE);\n viewPassword.setVisibility(View.GONE);\n\n mSocialMediaPlatform = getArguments().getString(AppConstants.SocialMediaPlatform);\n if (mSocialMediaPlatform != null && mSocialMediaPlatform.length() > 0) {\n Name = getArguments().getString(AppConstants.Name);\n Email = getArguments().getString(AppConstants.Email);\n if (getArguments().getString(AppConstants.ProfileImage) != null)\n profilePath = getArguments().getString(AppConstants.ProfileImage);\n\n if (mSocialMediaPlatform.equalsIgnoreCase(WebServiceConstants.PLATFORM_GOOGLE)) {\n mFacebookSocialMediaID = getArguments().getString(AppConstants.SocialMediaId);\n } else if (mSocialMediaPlatform.equalsIgnoreCase(WebServiceConstants.PLATFORM_FACEBOOK)) {\n mGoogleSocialMediaID = getArguments().getString(AppConstants.SocialMediaId);\n } else if (mSocialMediaPlatform.equalsIgnoreCase(WebServiceConstants.PLATFORM_TWITTER)) {\n mTwitterSocialMediaID = getArguments().getString(AppConstants.SocialMediaId);\n }\n\n profilePic = new File(profilePath);\n if (profilePath.length() > 0) {\n Picasso.with(getDockActivity())\n .load(profilePath)\n .into(civProfilePic);\n }\n }\n }\n\n return view;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_user, container, false);\n setuppage(layout);\n return layout;\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(AppConfig.resourceId(this, \"jguserinfo\", \"layout\"));\n\t\tmurl = getIntent().getStringExtra(\"url\");\n\t\tintView();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_signup);\n initVariables();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setListAdapter(new ArrayAdapter<String>(Menu.this, android.R.layout.simple_list_item_1, classNames));\n currentPersonLoggedIn = (Person)getIntent().getSerializableExtra(\"name\");\n username = currentPersonLoggedIn.getUsername();\n }",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n profileGV = view.findViewById(R.id.idGVcourses);\n profileTV = view.findViewById(R.id.patientName);\n\n String patientName = UserProfile.getGivenName() + \" \" + UserProfile.getFamilyName();\n\n profileTV.setText(patientName);\n\n\n Date dob = UserProfile.getDateOfBirth().toDate();\n String height = UserProfile.getHeight() + \"cm\";\n String weight = UserProfile.getWeight() + \"kg\";\n //Format the dob\n Format formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n String dobString = formatter.format(dob);\n\n //Add the fields to the array\n //Each field must be in a model\n ArrayList<ProfileAttributeModel> profileModelArrayList = new ArrayList<ProfileAttributeModel>();\n profileModelArrayList.add(new ProfileAttributeModel(\"Date of Birth\", dobString));\n profileModelArrayList.add(new ProfileAttributeModel(\"Blood\", UserProfile.getBloodType()));\n profileModelArrayList.add(new ProfileAttributeModel(\"Gender\", UserProfile.getGender()));\n profileModelArrayList.add(new ProfileAttributeModel(\"Height\", height));\n profileModelArrayList.add(new ProfileAttributeModel(\"Weight\", weight));\n profileModelArrayList.add(new ProfileAttributeModel(\"Marital Status\", UserProfile.getMaritalStatus()));\n\n //Create the adapter with data nad set the adapter\n ProfileGVAdapter adapter = new ProfileGVAdapter(getActivity(), profileModelArrayList);\n profileGV.setAdapter(adapter);\n }",
"private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register, null);\n\n // Guarda los view para obtener los datos ingresados por el usuario posteriormente\n mEditEmail = (EditText) view.findViewById(R.id.et_email);\n mEditFirstName = (EditText) view.findViewById(R.id.et_firstName);\n mEditLastName = (EditText) view.findViewById(R.id.et_lastName);\n mEditPassword = (EditText) view.findViewById(R.id.et_password);\n mEditPasswordConfirm = (EditText) view.findViewById(R.id.et_confirmPassword);\n\n // Obtiene el botón de register y le asigna un evento\n view.findViewById(R.id.register_button).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n attemptRegister();\n }\n });\n\n // Obtiene el botón de login y le asigna un evento\n view.findViewById(R.id.login_button).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n showLoginScreen();\n }\n });\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate( R.layout.fragment_p2, container, false);\n // TextView text =(TextView)view.findViewById( R.id.text2);\n // text.setText(mParam1);\n\n gender = view.findViewById( R.id.genderRegisterText );\n gender.check( R.id.maleRegisterRadio );\n gender.setOnCheckedChangeListener( new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup radioGroup, int checkedId) {\n switch (checkedId) {\n case R.id.maleRegisterRadio:\n genderValue = \"male\";\n Toast.makeText(getActivity(), \"male\", Toast.LENGTH_SHORT).show();\n\n break;\n case R.id.femaleRegisterRadio:\n Toast.makeText(getActivity(), \"female\", Toast.LENGTH_SHORT).show();\n genderValue= \"female\";\n break;\n\n default:\n // Nothing to do\n }\n }\n } );\n weight =view.findViewById( R.id.weightRegiterText);\n Button btn = (Button) view.findViewById( R.id.btngo2);\nuser = new UserInfo();\n btn.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n\n onButtonPressed(true);\n user.setGender(genderValue);\n try {\n user.setCurrentWheight( Float.valueOf( weight.getText().toString() ));\n\n }catch (Exception e){\n\n }\n SM.sendData2(user);\n\n } });\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\n nameText = (EditText) view.findViewById(R.id.nameText);\n nicText = (EditText) view.findViewById(R.id.nicText);\n saveBtn = (Button) view.findViewById(R.id.saveBtn);\n Log.d(TAG, \"view is creating................................\");\n saveBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n main.saveUser(nameText.getText().toString(), nicText.getText().toString());\n Log.d(TAG, \"user is saving \"+nameText.getText().toString()+\" \" + nicText.getText().toString());\n FragmentNavigator.navigateTo(\"homeFragment\");\n }\n });\n return view;\n }",
"@Override\n public void onResume(){\n super.onResume();\n TextView username = rootView.findViewById(R.id.username);\n TextView email = rootView.findViewById(R.id.email);\n TextView phone = rootView.findViewById(R.id.phone);\n TextView location = rootView.findViewById(R.id.location);\n\n username.setText(ServerConnection.user.get(1));\n email.setText(ServerConnection.user.get(3));\n phone.setText(ServerConnection.user.get(4));\n location.setText(String.format(\"%s, %s\", ServerConnection.user.get(5), ServerConnection.user.get(6)));\n }",
"@Override\n\t public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t \n\t \n\t \n\t LayoutInflater inflater = getActivity().getLayoutInflater();\n\t \n\t final View inflator = inflater.inflate(R.layout.dialog_signin, null);\n\t \n\t \n\t \n\t builder.setView(inflator)\n\t \n\t \n\t .setPositiveButton(\"Set\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t EditText username = (EditText) inflator.findViewById(R.id.username);\n\t \t String str = username.getText().toString();\n\t System.out.println(str);\n\t mEditText.setText(str);\n\t }\n\t })\n\t .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t });\n\t // Create the AlertDialog object and return it\n\t return builder.create();\n\t }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_fragment_two, container, false);\n Bundle bundle=getArguments();\n textView1=(TextView)v.findViewById(R.id.tv1);\n textView2=(TextView)v.findViewById(R.id.tv2);\n textView3=(TextView)v.findViewById(R.id.tv3);\n textView1.setText(bundle.getString(\"a\"));\n textView2.setText(bundle.getString(\"b\"));\n textView3.setText(bundle.getString(\"c\"));\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_contact_us, container, false);\n ButterKnife.bind(this, view);\n mViewModelContactUs = ViewModelProviders.of(this).get(ContactUsViewModel.class);\n mViewModelInfoUser = ViewModelProviders.of(getActivity()).get(InfoUserViewModel.class);\n String userId = SharedPrefUtil.getInstance(getContext()).read(USER_ID, null);\n if (userId == null) {\n LoginViewModel viewModelLogin = ViewModelProviders.of(getActivity()).get(LoginViewModel.class);\n viewModelLogin.isLoggedIn().observe(this, loggedIn -> {\n if (loggedIn) {\n viewModelLogin.getUser().observe(ContactUsFragment.this, loginModelResponse ->\n loadUserInfo(loginModelResponse.getUser().getId()));\n }\n });\n\n } else {\n loadUserInfo(userId);\n }\n\n mLocale = SharedPrefUtil.getInstance(getActivity()).read(LOCALE, Locale.getDefault().getLanguage());\n\n mMenu.setImageResource(R.drawable.ic_menu);\n mTitle.setText(R.string.contact_us);\n mCountryCodePicker.setCountryForPhoneCode(+966);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_user, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_user, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_registration, container, false);\n\n username = rootView.findViewById(R.id.usernameEt);\n email = rootView.findViewById(R.id.emailEt);\n password = rootView.findViewById(R.id.passwordEt);\n phoneNumber = rootView.findViewById(R.id.phoneNumberEt);\n registrationStepOneError = rootView.findViewById(R.id.registrationStepOneError);\n\n\n\n rootView.findViewById(R.id.nextButton).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n String[] userInput = getDara();\n\n String validationOutPut = RegistrationValidation.validateStep1(toGraduate(userInput),userInput[2]);\n\n if(validationOutPut.equals(\"correct\")){\n showError(\"\");\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"registrationOneData\",userInput);\n Navigation.findNavController(view).navigate(R.id.toRegistrationTwo,bundle);\n }\n else{\n showError(validationOutPut);\n }\n\n }\n });\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView= inflater.inflate(R.layout.fragment_user_account, container, false);\n initView();\n app=(MyApplication)getActivity().getApplication();\n myHandler=new MyHandler();\n return rootView;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_halaman, container, false);\r\n\r\n TextView tv = (TextView) v.findViewById(R.id.tv_halaman);\r\n String halaman = getArguments().getString(EXTRAS);\r\n tv.setText(halaman);\r\n\r\n Log.e(TAG, \"onCreateView : Halaman Fragment\" + halaman);\r\n\r\n return v;\r\n\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_seller_edit_profile, container, false);\n ButterKnife.bind(this, view);\n NetworkUtils.grantPermession(getActivity());\n initViews();\n return view;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t\t Bundle savedInstanceState) {\n\t\tsuper.onCreateView(inflater, container, savedInstanceState);\n\t\ttry {\n\t\t\trec_flag = getArguments().getBoolean(\"FLAGG\");\n\t\t\tres_flag=getArguments().getBoolean(\"DUKEM\");\n\t\t\tname=getArguments().getString(\"name\");\n\t\t\tphone_number=getArguments().getString(\"phone\");\n\t\t\tpassword=getArguments().getString(\"password\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcontext = getActivity();\n\t\tsession = new SessionManager(context.getApplicationContext());\n\t\tif (session.isLoggedIn()) {\n\t\t\tLog.d(TAG,\"Session on progress====>\");\n\t\t}\n\n\t\tname=session.getName();\n\t\tpassword=session.getPassword();\n\t\tphone_number=session.getPhone();\n\t\tLog.d(TAG,\"############\"+name+\n\t\t\t\tpassword+phone_number);// Just for console application test\n\t\tSettingConfig conf= new SettingConfig();\n\t\tconf.db_Info(name,password,phone_number);\n\t\tmyApplication = ((MyApplication) context.getApplicationContext());\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\t\t//Bundle i= getIntent().getExtras();\n\t\trootView = inflater.inflate(R.layout.loginview, null);\n\t\tinitView(rootView);\n\t\t//Check the flagg if he user want unsubscription\n\t\tif(rec_flag==true){\n\t\t\toffline();// To make the person offline\n\t\t\tquit();//To make the person quit\n\t\t\t//extrainf();\n\t\t\treturn null;//inflater.inflate(R.layout.valg_sms_call, container, false);\n\t\t}\n\t\t//userUpdate();//onClick(rootView.findViewById(R.id.btonline));\n\t\t//makeonline();\n\t\treturn rootView;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_login, container, false);\n txtTitle = (TextView) view.findViewById(R.id.title);\n return view;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.credential_manager_person,\n\t\t\t\tcontainer, false);\n\n\t\tgravatar = (ImageView) view.findViewById(R.id.imageViewPerson);\n\t\tButton logout = (Button) view.findViewById(R.id.buttonLogout);\n\t\tButton ok = (Button) view.findViewById(R.id.buttonOk);\n\t\temail = (TextView) view.findViewById(R.id.textViewPersonName);\n\n\t\temail.setText(CredentialManager.person.name);\n\n\t\t// Calls async task to set gravatar\n\t\ttry {\n\t\t\tgravatar_url = new URL(CredentialManager.person.gravatar.toString());\n\t\t\tnew SetGravatar().execute(gravatar_url);\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Calls a method of the parent activity Credential Manager\n\t\tlogout.setOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAPI.getInstance().deleteSession();\n\t\t\t\t((PersonWrapper) getActivity()).logout();\n\t\t\t}\n\t\t});\n\t\t\n\t\tok.setOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tgetActivity().setResult(Activity.RESULT_OK);\n\t\t\t\tgetActivity().finish();\n\t\t\t}\n\t\t});\n\n\n\t\treturn view;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n v = inflater.inflate(R.layout.fragment_about_job_hire, container, false);\n arrsalary = getResources().getStringArray(R.array.mucluong);\n arrhv = getResources().getStringArray(R.array.spHocVan);\n arrsex= getResources().getStringArray(R.array.sex);\n init();\n actionGetIntent();\n if(kn.equals(\"\")&&ngoaingu.equals(\"\")&&dotuoi.equals(\"\"))\n {\n// LinearLayout lin = (LinearLayout) v.findViewById(R.id.lininfor);\n// lin.setVisibility(View.GONE);\n// TextView txt = (TextView) v.findViewById(R.id.txtmt);\n// txt.setText(khac);\n }\n txtdiachi.setText(diadiem);\n txtluong.setText(arrsalary[luong] + \" VND\");\n txtdate.setText(ngayup + \"\");\n txtmotacv.setText(motacv + \"\");\n txttencv.setText(tencv + \"\");\n txtbangcap.setText(arrhv[hv] + \"\");\n txtkn.setText(kn + \"\");\n txtdotuoi.setText(dotuoi + \"\");\n txtgt.setText(arrsex[gt] + \"\");\n txtnn.setText(ngoaingu + \"\");\n txtkhac.setText(khac + \"\");\n id = MainActivity.uid;\n\n\n\n\n\n\n\n\n return v;\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Bundle bundle = getArguments();\n if(bundle!=null){\n JobName = bundle.getString(\"JobName\");\n }\n\n // Inflate the layout for this fragment\n View root = inflater.inflate(R.layout.fragment_list_company_review, container, false);\n recyclerView = (RecyclerView) root.findViewById(R.id.rvReviews);\n getReviewListData(); // call a method in which we have implement our GET type web API\n loadUserProfile();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_company_details_company_intro, container, false);\n Toast.makeText(getContext(), company_id+company_name, Toast.LENGTH_SHORT).show();\n companyDetailsCompanyIntroText=v.findViewById(R.id.companyDetailsCompanyIntroText);\n setValues();\n return v;\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.more_account_relogin);\r\n\t\tmContext = getApplicationContext();\r\n\t\tvehicleInfo = (VehicleInfo) getIntent().getSerializableExtra(\"name\");\r\n\r\n\t\tinitView();\r\n\t\tfindId();\r\n\t\tif (userDal == null) {\r\n\t\t\tuserDal = UserDal.getInstance(mContext);\r\n\t\t}\r\n\t\tuserInfo = new UserInfo();\r\n\r\n\t\tcheckPhoneNumber();\r\n\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n spinner = view.findViewById(R.id.filter);\n //今日任务,一周任务,或者所有任务\n missionType = view.findViewById(R.id.missionType);\n recyclerView = view.findViewById(R.id.mission_item_list);\n missionNum = view.findViewById(R.id.missionNum);\n missionCompleted = view.findViewById(R.id.missionCompleted);\n missionSerials=view.findViewById(R.id.missionSerials);\n missionRank = view.findViewById(R.id.missionRank);\n sharedPreference = getContext().getSharedPreferences(\"change\", MODE_PRIVATE);\n userId = sharedPreference.getString(\"userID\",null);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n MyFragment =inflater.inflate(R.layout.fragment_edit_user_profile, container, false);\n return MyFragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_success, container, false);\n //user box\n mIvAvatar = (ImageView) v.findViewById(R.id.iv_avatar);\n mTvName = (TextView) v.findViewById(R.id.tv_name); \n //function\n v.findViewById(R.id.btn_chat).setOnClickListener(this);\n v.findViewById(R.id.btn_share).setOnClickListener(this);\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register_ti, container, false);\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n\n requestQueue = DataSource.getInstance(getContext()).getRequestQueue();\n\n sharedPreferences = getContext().getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n idUser = sharedPreferences.getString(SplashActivity.USER_ID, \"\");\n// idUser = 123456;\n// atividadePersister = AtividadePersister.getInstance(getContext());\n dataSource = DataSource.getInstance(getContext());\n atividades = (ArrayList<Atividade>) dataSource.getAtividades(idUser);\n\n\n initViews(view);\n listeners();\n\n atividades.add(new Atividade(\"Nova Atividade\"));\n ArrayAdapter<Atividade> adapter =\n new ArrayAdapter<Atividade>(getContext(),\n android.R.layout.simple_spinner_item, atividades);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n atividade.setAdapter(adapter);\n return view;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_register, container, false);\r\n context=getActivity();\r\n reg_username=view.findViewById(R.id.reg_username);\r\n reg_password=view.findViewById(R.id.reg_password);\r\n reg_email=view.findViewById(R.id.reg_email);\r\n reg_phone=view.findViewById(R.id.reg_phone);\r\n reg_address=view.findViewById(R.id.reg_address);\r\n reg_btn=view.findViewById(R.id.reg_btn);\r\n\r\n reg_btn.setOnClickListener(this);\r\n\r\n\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (view != null) {\n ViewGroup parent = (ViewGroup) view.getParent();\n if (parent != null) {\n parent.removeView(view);\n }\n }\n try {\n view = inflater.inflate(R.layout.fragment_user_profile, container, false);\n } catch (InflateException e) {\n Log.e(TAG, \"onCreateView: \", e);\n }\n\n emptyMessage = view.findViewById(R.id.userprofile_emptyMessage);\n UserNameTv = view.findViewById(R.id.userprofileFragment_user_name_TextView);\n UserUsernameTv = view.findViewById(R.id.userprofileFragment_userName_TextView);\n UserDescriptionTv = view.findViewById(R.id.userprofileFragment_user_description_TextView);\n mProfileImage = view.findViewById(R.id.userprofileFragment_profileImage);\n mRecyclerView = view.findViewById(R.id.userprofile_recycler_view);\n mAddFriendButton = view.findViewById(R.id.userprofile_addFriend_MaterialButton);\n messageUser = view.findViewById(R.id.userprofile_messageUser_MaterialButton);\n mDeclineFriendReqButton = view.findViewById(R.id.userprofile_declineFriendReq_MaterialButton);\n mAcceptFriendReqButton = view.findViewById(R.id.userprofile_acceptFriend_MaterialButton);\n acceptDeclineLayout = view.findViewById(R.id.accept_decline_layout);\n\n mUser = new User();\n\n BottomNavigationView navBar = getActivity().findViewById(R.id.bottom_navigation);\n navBar.setVisibility(View.GONE);\n\n UserProfileFragmentArgs userProfileFragmentArgs = UserProfileFragmentArgs.fromBundle(getArguments());\n getArgsPassed(userProfileFragmentArgs);\n\n\n buildRecyclerView();\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View mview = inflater.inflate(R.layout.fragment_listofpeople,container,false);\n //init views\n\n\n initview(mview);\n //getting users list\n get_userslist();\n //initiliziting adapters\n loadadapterdatas();\n //set on click listeners\n onclickslisteners();\n return mview;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_profile, container, false);\n initializedView(view);\n initializedListners();\n return view;\n }",
"public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.single_teacher_view, container, false);\n listView = (ListView) rootView.findViewById(android.R.id.list);\n bundle = this.getArguments();\n\t \tteacherUsername = bundle.get(\"teacherUsername\").toString();\n\t \ttFirstname = bundle.get(Constants.FIRSTNAME).toString();\n\t\ttLastname = bundle.get(Constants.LASTNAME).toString();\n\t\ttSubject1 = bundle.get(Constants.SUBJECT1).toString();\n\t\tif(bundle.containsKey(Constants.SUBJECT2)){\n\t\t\ttSubject2 = bundle.get(Constants.SUBJECT2).toString();\n\t\t}\n\t\tif(bundle.containsKey(Constants.SUBJECT3)){\n\t\t\ttSubject3 = bundle.get(Constants.SUBJECT3).toString();\n\t\t}\n\t\tsetupUi(rootView);\n\t\tallTimes = new AllTimes();\n\t\tallTimes.execute();\n\t\tcurrTeacher = new CurrentTeacher();\n\t\tcurrTeacher.execute();\n return rootView;\n\t}",
"@Override\n protected void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(zunder.ebs.zunderapp.R.layout.activity_profile);\n\n // Link the XMl elements with the code\n LinkElements();\n\n //Get authentication from DB (Firebase)\n mAuth = FirebaseAuth.getInstance();\n myRef = FirebaseDatabase.getInstance().getReference(\"user\");\n\n //Load user Information\n loadUserInformation();\n\n //Action listeners for elements\n ActionListeners();\n }"
]
| [
"0.73985404",
"0.7314453",
"0.7086658",
"0.7050867",
"0.7035578",
"0.6982773",
"0.6921515",
"0.6921515",
"0.6869326",
"0.6851221",
"0.6829567",
"0.68233967",
"0.6821943",
"0.6814037",
"0.6779705",
"0.67159915",
"0.67118615",
"0.6708073",
"0.6682286",
"0.66439295",
"0.6624282",
"0.66224456",
"0.6620764",
"0.66158664",
"0.66146827",
"0.66032535",
"0.6601572",
"0.65736616",
"0.65638477",
"0.6562018",
"0.6559519",
"0.65580887",
"0.6556979",
"0.65481085",
"0.65376675",
"0.6527991",
"0.6513002",
"0.6510872",
"0.65107185",
"0.6503696",
"0.6491312",
"0.6488021",
"0.64867246",
"0.64819354",
"0.6475969",
"0.6468371",
"0.6467556",
"0.64374965",
"0.6402047",
"0.63876295",
"0.63737065",
"0.63660717",
"0.636512",
"0.6357228",
"0.634937",
"0.63447165",
"0.6333451",
"0.63323313",
"0.6330869",
"0.6330869",
"0.6330869",
"0.63261575",
"0.6323825",
"0.63221806",
"0.6309654",
"0.63044167",
"0.6284912",
"0.6278988",
"0.62763447",
"0.6271427",
"0.6271189",
"0.6271013",
"0.62691694",
"0.6260178",
"0.62518376",
"0.62489414",
"0.6245323",
"0.6245323",
"0.6234038",
"0.62317425",
"0.6231145",
"0.6230847",
"0.62268186",
"0.62249553",
"0.6221846",
"0.62204015",
"0.6218383",
"0.6213379",
"0.6191938",
"0.61883205",
"0.61830646",
"0.6175508",
"0.61751974",
"0.6172352",
"0.6166118",
"0.6163307",
"0.6161823",
"0.6150331",
"0.6149489",
"0.6148075"
]
| 0.7665514 | 0 |
TODO Autogenerated method stub | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
editButton=(Button)getView().findViewById(R.id.edit_details);
updateButton=(Button)getView().findViewById(R.id.update_details);
final TextView view_username=(TextView)getView().findViewById(R.id.view_conusrname);
final TextView view_useremail=(TextView)getView().findViewById(R.id.view_conusremail);
final TextView view_usermobile=(TextView)getView().findViewById(R.id.view_conusrmobile);
final TextView view_usercity=(TextView)getView().findViewById(R.id.view_usercity);
final TextView view_usergender=(TextView) getView().findViewById(R.id.view_gender);
final TextView view_userdob=(TextView)getView().findViewById(R.id.view_userdob);
view_username.setText(username);
view_useremail.setText(useremail);
view_usermobile.setText(userphone);
view_usercity.setText("HYDERABAD");
view_usergender.setText(usergender);
final EditText edit_username=(EditText) getView().findViewById(R.id.edit_conusrname);
final EditText edit_useremail=(EditText) getView().findViewById(R.id.edit_conusremail);
final EditText edit_usermobile=(EditText) getView().findViewById(R.id.edit_conusrmobile);
final EditText edit_usercity=(EditText) getView().findViewById(R.id.edit_usercity);
final EditText edit_usergender=(EditText) getView().findViewById(R.id.edit_gender);
final EditText edit_userdob=(EditText) getView().findViewById(R.id.edit_userdob);
editButton.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
try {
editButton.setVisibility(View.GONE);
updateButton.setVisibility(View.VISIBLE);
// User Name
if(view_username.getText().equals("Name"))
{ edit_username.setText(""); }
else
{ edit_username.setText(view_username.getText()); }
edit_username.setVisibility(View.VISIBLE);
// User Gender
edit_usergender.setText(view_usergender.getText());
edit_usergender.setVisibility(View.VISIBLE);
// User email
if(view_useremail.getText().equals("Email Id"))
{ edit_useremail.setText(""); }
else
{ edit_useremail.setText(view_useremail.getText()); }
edit_useremail.setVisibility(View.VISIBLE);
// User Mobile
if(view_usermobile.getText().equals("Mobile Number"))
{ edit_usermobile.setText(""); }
else
{ edit_usermobile.setText(view_usermobile.getText()); }
edit_usermobile.setVisibility(View.VISIBLE);
// User City
if(view_usercity.getText().equals("City"))
{ edit_usercity.setText(""); }
else
{ edit_usercity.setText(view_usercity.getText()); }
edit_usercity.setVisibility(View.VISIBLE);
// User City
if(view_userdob.getText().equals("City"))
{ edit_userdob.setText(""); }
else
{ edit_userdob.setText(view_userdob.getText()); }
edit_userdob.setVisibility(View.VISIBLE);
// Make View Text as invisible
view_username.setVisibility(View.GONE);
view_useremail.setVisibility(View.GONE);
view_usermobile.setVisibility(View.GONE);
view_usercity.setVisibility(View.GONE);
view_userdob.setVisibility(View.GONE);
view_usergender.setVisibility(View.GONE);
}
catch (Exception e)
{
e.printStackTrace();
}
}
});
updateButton.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
try {
editButton.setVisibility(View.VISIBLE);
updateButton.setVisibility(View.GONE);
// User Name
if(edit_username.getText().equals("Name"))
{ view_username.setText(""); }
else
{ view_username.setText(edit_username.getText()); }
view_username.setVisibility(View.VISIBLE);
edit_username.setVisibility(View.GONE);
edit_useremail.setVisibility(View.GONE);
edit_usermobile.setVisibility(View.GONE);
edit_usercity.setVisibility(View.GONE);
edit_userdob.setVisibility(View.GONE);
edit_usergender.setVisibility(View.GONE);
// view_username.setVisibility(View.VISIBLE);
view_useremail.setVisibility(View.VISIBLE);
view_usermobile.setVisibility(View.VISIBLE);
view_usercity.setVisibility(View.VISIBLE);
view_userdob.setVisibility(View.VISIBLE);
view_usergender.setVisibility(View.VISIBLE);
}
catch (Exception e)
{
e.printStackTrace();
}
}
});
} | {
"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 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_sign_up, container, false);
mAuth = FirebaseAuth.getInstance();
db = FirebaseFirestore.getInstance();
storageRef = FirebaseStorage.getInstance().getReference();
Button btnSignUp = view.findViewById(R.id.btnSignUp);
final EditText signUpName = view.findViewById(R.id.nameEditTextSignUp);
final EditText signUpEmail = view.findViewById(R.id.emailEditTextSignUp);
final EditText signUpPswd = view.findViewById(R.id.passwdEditTextSignUp);
progressBar = view.findViewById(R.id.progresBarSignUp);
progressBar.setVisibility(View.INVISIBLE);
btnSignUp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
hideKeyboardFrom(getContext(), getView());
progressBar.setVisibility(View.VISIBLE);
userRegister(signUpName, signUpEmail, signUpPswd);
}
});
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348",
"0.66202056",
"0.66176945",
"0.66094035",
"0.65976113",
"0.65937936",
"0.6585841",
"0.6585124",
"0.65741223",
"0.65721804",
"0.65698904",
"0.65695107",
"0.6569451",
"0.6568099",
"0.6565633",
"0.6554688",
"0.65533894",
"0.65447044",
"0.65432465",
"0.6542017",
"0.65385425",
"0.6537571",
"0.65369105",
"0.6535379",
"0.6533447",
"0.6533258",
"0.65316767",
"0.6529574",
"0.6528449",
"0.65262675",
"0.6525467",
"0.6525181",
"0.6524235",
"0.6523963",
"0.65187466",
"0.65138274",
"0.65137535",
"0.6513218",
"0.6513202",
"0.65115535",
"0.651113",
"0.6510943",
"0.6510124",
"0.65094703",
"0.65082514",
"0.65038425",
"0.65023196",
"0.6501983",
"0.65014684",
"0.64982104",
"0.64945936",
"0.6492533",
"0.6491023",
"0.6488248",
"0.64879525",
"0.6487852",
"0.6487744",
"0.64873713",
"0.6487171",
"0.64851",
"0.6485003",
"0.6483167",
"0.6482433",
"0.64824027",
"0.6481711",
"0.6480902",
"0.64779234",
"0.64767206",
"0.6476515",
"0.6475657",
"0.64747864",
"0.64715266",
"0.64714354",
"0.64711314",
"0.6470619",
"0.6468112",
"0.6466466",
"0.64631015",
"0.646268",
"0.6462456",
"0.64620507"
]
| 0.0 | -1 |
Data for "images/island.jpg" is returns, use this as needed | @Override
public void onSuccess(byte[] bytes) {
storageRef.child("profilepics/" + authUser.getUid()+ ".jpg")
.putBytes(bytes)
.addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
Log.d("control", "foto subida");
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getImage();",
"String getImage();",
"WorldImage getImage();",
"public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}",
"java.lang.String getImagePath();",
"public String getImg(){\n switch(image){\n case 0: // Case 0: Ant looks up/north\n return \"imgs/ant_n.png\";\n case 1: // Case 1: Ant looks right/east\n return \"imgs/ant_e.png\";\n case 2: // Case 2: Ant looks down/south\n return \"imgs/ant_s.png\";\n case 3: // Case 3: Ant looks left/west\n return \"imgs/ant_w.png\";\n default: // Default: This shouldn't happen on a normal run. It returns an empty string and prints an error.\n System.err.println(\"Something went wrong while the ant was trying change direction\");\n return \"\";\n }\n }",
"public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }",
"String getImagePath();",
"String getImagePath();",
"String getItemImage();",
"private List<String> getImages(SalonData salonData) {\n List<String> salonImages = new ArrayList<>();\n List<SalonImage> salonImage = salonData.getSalonImage();\n for (int i = 0; i < salonImage.size(); i++) {\n salonImages.add(salonImage.get(i).getImage());\n }\n return salonImages;\n }",
"public void getImagePath(String imagePath);",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();",
"public String getImage() { return image; }",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"public int getImage();",
"public String getImageUrl();",
"public String getStaticPicture();",
"int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}",
"public java.lang.String getWeatherImage()\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(WEATHERIMAGE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@Override\n\tpublic File getImage(String name) {\n\n\t\tFile returnValue = new File(RestService.imageDirectory + name + \".png\");\n\t\t\n\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t{ \n\t\t return returnValue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = new File(RestService.imageDirectory + name + \".jpg\");\n\t\t\t\n\t\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t\t{ \n\t\t\t return returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"public String getImage() {\n return image;\n }",
"public String getImage()\n {\n return image;\n }",
"private static final byte[] xfuzzyload_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -82,\n\t\t\t\t69, 12, -128, -128, -128, -1, -1, -1, -64, -64, -64, -1, -1, 0,\n\t\t\t\t0, 0, 0, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 6, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 75, 8, -86,\n\t\t\t\t-42, 11, 45, -82, -24, 32, -83, -42, -80, 43, -39, -26, -35,\n\t\t\t\t22, -116, 1, -9, 24, -127, -96, 10, 101, 23, 44, 2, 49, -56,\n\t\t\t\t108, 21, 15, -53, -84, -105, 74, -86, -25, 50, -62, -117, 68,\n\t\t\t\t44, -54, 74, -87, -107, 82, 21, 40, 8, 81, -73, -96, 78, 86,\n\t\t\t\t24, 53, 82, -46, 108, -77, -27, -53, 78, -85, -111, -18, 116,\n\t\t\t\t87, 8, 23, -49, -123, 4, 0, 59 };\n\t\treturn data;\n\t}",
"abstract public String imageUrl ();",
"public Image getSeven();",
"public static void main(String[] args) {\n\t\tString str = \"http://192.168.1.188/stw/images/20160814/33db29ec33d5.jpg\";\n\t\tSystem.out.println(str.substring(str.lastIndexOf(\"images\")+7,str.length()));\n\t\t\n\t}",
"java.lang.String getProfileImage();",
"private void processImages() throws MalformedURLException, IOException {\r\n\r\n\t\tNodeFilter imageFilter = new NodeClassFilter(ImageTag.class);\r\n\t\timageList = fullList.extractAllNodesThatMatch(imageFilter, true);\r\n\t\tthePageImages = new HashMap<String, byte[]>();\r\n\r\n\t\tfor (SimpleNodeIterator nodeIter = imageList.elements(); nodeIter\r\n\t\t\t\t.hasMoreNodes();) {\r\n\t\t\tImageTag tempNode = (ImageTag) nodeIter.nextNode();\r\n\t\t\tString tagText = tempNode.getText();\r\n\r\n\t\t\t// Populate imageUrlText String\r\n\t\t\tString imageUrlText = tempNode.getImageURL();\r\n\r\n\t\t\tif (imageUrlText != \"\") {\r\n\t\t\t\t// Print to console, to verify relative link processing\r\n\t\t\t\tSystem.out.println(\"ImageUrl to Retrieve:\" + imageUrlText);\r\n\r\n\t\t\t\tbyte[] imgArray = downloadBinaryData(imageUrlText);\r\n\r\n\t\t\t\tthePageImages.put(tagText, imgArray);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public String getImage() {\n\t\treturn image;\n\t}",
"public String getImage() {\n\t\treturn image;\n\t}",
"public static String getImagePathname(Bundle data) {\n // Extract the path to the image file from the Bundle, which\n // should be stored using the IMAGE_PATHNAME key.\n return data.getString(IMAGE_PATHNAME);\n }",
"@Override\r\n\tpublic Image getImg(int code) {\n\t\treturn seasons[myTime.getDate()[1]][code].getImage();\r\n\t}",
"public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}",
"public Image getBassClef();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();",
"public String getImage() {\n return image;\n }",
"public String getImage() {\n return image;\n }",
"public String getImage() {\n return image;\n }",
"public String getImage() {\n return image;\n }",
"private ArrayList<String> getAllShownImagesPath(Activity activity) {\n Uri uri;\n Cursor cursor;\n int column_index_data, column_index_folder_name;\n ArrayList<String> listOfAllImages = new ArrayList<String>();\n String absolutePathOfImage = null;\n uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n\n String[] projection = { MediaStore.MediaColumns.DATA,\n MediaStore.Images.Media.BUCKET_DISPLAY_NAME };\n\n cursor = activity.getContentResolver().query(uri, projection, null,\n null, null);\n\n column_index_data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n column_index_folder_name = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);\n while (cursor.moveToNext()) {\n absolutePathOfImage = cursor.getString(column_index_data);\n\n listOfAllImages.add(absolutePathOfImage);\n }\n return listOfAllImages;\n }",
"@Nonnull\n Image getImageFor(@Nonnull LocationRepresentation representation);",
"public String getImage(){\n StringBuilder sb = new StringBuilder();\n for (char[] subArray : hidden) {\n sb.append(subArray);\n sb.append(\"\\n\");\n }\n return sb.toString();\n }",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"private static final byte[] pkg_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -1,\n\t\t\t\t-6, -51, 0, 0, 0, -91, 42, 42, -128, -128, -128, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100,\n\t\t\t\t101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4,\n\t\t\t\t1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 64, 8, -86,\n\t\t\t\t-79, -48, 110, -123, 32, 32, -99, 110, -118, 93, 41, -57, -34,\n\t\t\t\t54, 13, 83, 88, 61, -35, -96, 6, -21, 37, -87, 48, 27, 75, -23,\n\t\t\t\t-38, -98, -26, 88, 114, 120, -18, 75, -102, 96, 7, -62, 16, 85,\n\t\t\t\t-116, 39, -38, -121, -105, 44, 46, 121, 68, -122, 39, -124,\n\t\t\t\t-119, 72, 47, 81, -85, 84, -101, 0, 0, 59 };\n\t\treturn data;\n\t}",
"private String extractImageNameFromIdentifier(String image) {\n String[] tokens = image.split(\"/\");\n\n String imageName = tokens[tokens.length-1];\n if(imageName.contains(\":\")) {\n return imageName.split(\":\")[0];\n } else {\n return imageName;\n }\n }",
"public Image getFlat();",
"java.lang.String getCityImageURLs(int index);",
"private static final byte[] pkgload_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 0, 0,\n\t\t\t\t0, -91, 42, 42, -128, -128, -128, 94, 94, 94, -1, -1, -1, -1,\n\t\t\t\t-1, 0, -64, -64, -64, 94, 24, 24, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32,\n\t\t\t\t71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0, 0,\n\t\t\t\t16, 0, 16, 0, 0, 4, 88, 16, 73, 32, 103, -67, 8, -128, 64, 51,\n\t\t\t\t-17, -43, 22, -116, -38, 72, 98, -101, 38, 12, 37, 120, 1, 66,\n\t\t\t\t60, -60, 84, 44, -124, -33, -38, 18, -4, 45, -110, 63, 78, -63,\n\t\t\t\t64, -16, -91, 14, -100, -49, 112, 120, -53, 108, -112, 74, -61,\n\t\t\t\t-14, 102, -85, 90, -103, 8, 1, 111, -53, 45, 2, 10, 84, -62,\n\t\t\t\t82, 74, 30, -62, -102, -38, -79, 90, 0, -109, 104, -53, -16,\n\t\t\t\t66, -37, 77, -120, -109, -39, 21, -85, -98, 29, 1, 0, 59 };\n\t\treturn data;\n\t}",
"public Image getSix();",
"byte[] getProfileImage();",
"public String getImg_0() {\n return img_0;\n }",
"@Override\n public String GetImagePart() {\n return \"coal\";\n }",
"String avatarImage();",
"private Image getImage(String name) {\n InputStream in =\n getClass().getResourceAsStream(\"/canfield/resources/\" + name);\n try {\n return ImageIO.read(in);\n } catch (IOException excp) {\n return null;\n }\n }",
"public String getBandImage(int x) {\n String link = \"https://www.last.fm\" + photosLinks[x];\n try {\n image = Jsoup.connect(link).get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Elements elements = image.getElementsByClass(\"js-gallery-image\");\n return elements.attr(\"src\");\n }",
"public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }",
"public String getImage() {\n\t\treturn null;\n\t}",
"public String getImg() {\n return img;\n }",
"public String getImg() {\n return img;\n }",
"public String getImg() {\n return img;\n }",
"private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }",
"java.util.List<com.google.protobuf.ByteString> getImgDataList();",
"@Override\n public String getImagePath() {\n return IMAGE_PATH;\n }",
"public ImageInfo getImage() {\n return image;\n }",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"public String getaImg() {\n return aImg;\n }",
"void loadImages(int id_image, HouseRepository.GetImageFromHouseCallback callback);",
"public String getImg(){\n return img;\n }",
"public String getImage() {\n return this.Image;\n }",
"public FITSImage(String url) throws Exception {\n\n // access the FITS file\n Fits fits = new Fits(url);\n\n // get basic information from file\n BasicHDU hdu = (ImageHDU) fits.readHDU();\n int bitsPerPixel = hdu.getBitPix();\n header = hdu.getHeader();\n\n if (bitsPerPixel == BasicHDU.BITPIX_BYTE) {\n\n // get image row data\n byte[][] data2D = (byte[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n byte[] data = new byte[width * height];\n\n int counter = 0;\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // create buffered image from row data\n SingleChannelByte8ImageData imageData = new SingleChannelByte8ImageData(width, height, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_SHORT) {\n\n // get image row data\n short[][] data2D = (short[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data and\n // analyze the highest value when transfering the data\n short[] data = new short[width * height];\n\n int highestValue = Integer.MIN_VALUE;\n int counter = 0;\n boolean hasNegativValue = false;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n if (!hasNegativValue)\n hasNegativValue = data2D[h][w] < 0;\n\n highestValue = data2D[h][w] > highestValue ? data2D[h][w] : highestValue;\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // if first bit is not set, shift bits\n if (!hasNegativValue) {\n // compute number of bits to shift\n int shiftBits = BasicHDU.BITPIX_SHORT - ((int) Math.ceil(Math.log(highestValue) / Math.log(2)));\n\n // shift bits of all values\n for (int i = 0; i < data.length; i++) {\n data[i] = (short) (data[i] << shiftBits);\n }\n }\n\n // create buffered image from row data\n SingleChannelShortImageData imageData = new SingleChannelShortImageData(width, height, bitsPerPixel, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_INT) {\n\n // get image row data\n int[][] data2D = (int[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n int[] data = new int[width * height];\n\n int counter = 0;\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // create buffered image from row data\n JavaBufferedImageData imageData = new ARGBInt32ImageData(width, height, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_FLOAT) {\n\n // get image row data\n float[][] data2D = (float[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n short[] data = new short[width * height];\n\n // if it is an MDI magnetogram image use threshold when converting\n // the data\n // otherwise set minimum value to zero and maximum value to 2^16 and\n // scale values between\n String instrument = header.getStringValue(\"INSTRUME\");\n String measurement = header.getStringValue(\"DPC_OBSR\");\n\n if (instrument != null && measurement != null && instrument.equals(\"MDI\") && measurement.equals(\"FD_Magnetogram_Sum\")) {\n\n int counter = 0;\n float doubleThreshold = MDI_THRESHOLD * 2.0f;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n float value = data2D[h][w] + MDI_THRESHOLD;\n value = value < 0.0f ? 0.0f : value > doubleThreshold ? doubleThreshold : value;\n data[counter] = (short) ((value * 65535) / doubleThreshold);\n counter++;\n }\n }\n\n } else {\n\n // get the minimum and maximum value from current data\n float minValue = Float.MAX_VALUE;\n float maxValue = Float.MIN_VALUE;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n minValue = data2D[h][w] < minValue ? data2D[h][w] : minValue;\n maxValue = data2D[h][w] > maxValue ? data2D[h][w] : maxValue;\n }\n }\n\n // transform image row data into 1D image row data\n int counter = 0;\n float difference = maxValue - minValue;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = (short) (((data2D[h][w] - minValue) / difference) * 65536.0f);\n counter++;\n }\n }\n }\n\n // create buffered image from row data\n SingleChannelShortImageData imageData = new SingleChannelShortImageData(width, height, 16, data, new ColorMask());\n image = imageData.getBufferedImage();\n }\n }",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"public LiveData<List<PhotoData>> getGeoLocatedImages(){\n locationImages = mRepository.findGeoLocatedImages();\n\n return locationImages;\n }",
"public static Image loadImage(String name) {\r\n Image result = null;\r\n try {\r\n result = ImageIO.read(IO.class.getClassLoader().getResourceAsStream(\"data/\" + name));\r\n } catch (Exception ex) {\r\n } \r\n return result;\r\n }",
"public String getRestImg() {\r\n return restImg;\r\n }",
"Imagem getImagem();",
"public Image getFour();",
"@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}",
"List<Bitmap> getRecipeImgSmall();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}",
"@GetMapping(path = \"/images\", produces = \"application/json; charset=UTF-8\")\n public @ResponseBody ArrayNode getImageList() {\n final ArrayNode nodes = mapper.createArrayNode();\n for (final Image image : imageRepository.findAllPublic())\n try {\n nodes.add(mapper.readTree(image.toString()));\n } catch (final JsonProcessingException e) {\n e.printStackTrace();\n }\n return nodes;\n }",
"public String getImgpath() {\r\n return imgpath;\r\n }",
"private static final byte[] xfuzzy_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -1,\n\t\t\t\t-1, -1, -82, 69, 12, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t36, -124, -113, -87, -101, -31, -33, 32, 120, 97, 57, 68, -93,\n\t\t\t\t-54, -26, 90, -24, 49, 84, -59, 116, -100, 88, -99, -102, 25,\n\t\t\t\t30, -19, 36, -103, -97, -89, -62, 117, -119, 51, 5, 0, 59 };\n\t\treturn data;\n\t}",
"private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}",
"@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(\"pic\", new DataPart(imagename + \".jpg\", getFileDataFromDrawable(bitmap)));\n return params;\n }",
"public void filmAgeRestImage() {\n\t\tif (ageAll == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/6/68/Edad_TP.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\t\t} else if (age7 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/5/55/Edad_7.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else if (age13 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/b/bd/Edad_13.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else if (age16 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/4/4b/Edad_16.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/c/ca/Edad_18.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\t\t}\n\t}",
"static Image bityNaObraz(String image) throws IOException\n {\n byte[] rysunek = DatatypeConverter.parseBase64Binary(image); \n BufferedImage img = ImageIO.read(new ByteArrayInputStream(rysunek));\n return img;\n }",
"public Image getNine();",
"public String getImg_1() {\n return img_1;\n }",
"public String getImageResource() {\n \t\t// if (isWindows)\n \t\t// return \"/\" + new File(imageResource).getPath();\n \t\t// else\n \t\treturn imageResource;\n \t}",
"private String[] getImgUrls(String html){\n String result=\"\";\n Document doc = Jsoup.parse(html);\n Elements images = doc.select(\"img\");\n for(Element node : images) {\n result = result + \",\" + node.attr(\"src\");\n }\n return result.length()<1?new String[0]:result.substring(1).split(\",\");\n }",
"public abstract Image getImage();",
"public abstract Image getImage();",
"java.lang.String getHotelImageURLs(int index);",
"java.lang.String getPictureUri();",
"public abstract String getImageSuffix();",
"protected abstract Image loadImage();",
"@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}"
]
| [
"0.6903025",
"0.6685787",
"0.64853674",
"0.64749813",
"0.6461522",
"0.64543295",
"0.6436521",
"0.64268774",
"0.64268774",
"0.62923837",
"0.6187688",
"0.615854",
"0.614038",
"0.6104876",
"0.60941786",
"0.6049735",
"0.5930312",
"0.58816177",
"0.5867243",
"0.584652",
"0.58363473",
"0.5827022",
"0.5804205",
"0.5792514",
"0.5789417",
"0.57840484",
"0.57395273",
"0.57388324",
"0.5733187",
"0.57211775",
"0.57211775",
"0.57183826",
"0.571809",
"0.5707425",
"0.5693104",
"0.569087",
"0.5690781",
"0.5690781",
"0.5690781",
"0.5690781",
"0.5688007",
"0.5686093",
"0.56835204",
"0.56814736",
"0.5671162",
"0.5668327",
"0.56564873",
"0.5652338",
"0.5651932",
"0.5651182",
"0.5640042",
"0.5639236",
"0.56310004",
"0.5630469",
"0.5626156",
"0.5625605",
"0.5622797",
"0.5622292",
"0.5620111",
"0.5620111",
"0.5620111",
"0.561152",
"0.5593747",
"0.558161",
"0.55813336",
"0.55714256",
"0.55682385",
"0.55599576",
"0.55535936",
"0.55506146",
"0.5550525",
"0.55446774",
"0.5542932",
"0.554127",
"0.5540539",
"0.5534268",
"0.55295235",
"0.5525968",
"0.55229515",
"0.55199504",
"0.55199504",
"0.55199504",
"0.55184424",
"0.5514471",
"0.55134463",
"0.5512837",
"0.55011845",
"0.55003536",
"0.54989123",
"0.5491262",
"0.5487956",
"0.54859257",
"0.54855454",
"0.54827195",
"0.54823524",
"0.54823524",
"0.54763204",
"0.54754496",
"0.5470686",
"0.5468409",
"0.54668075"
]
| 0.0 | -1 |
which output resource is the productionRate associated with? | public String getName() { return name;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.yandex.ydb.rate_limiter.Resource getResource();",
"public double getProduction()\n {\n\n return this.production;\n }",
"private double getDynamicRate(String resourceName) {\n logger.trace(\"BEGIN double getDynamicRate(String resourceName)\");\n double rate;\n RateEngineResponse response;\n RuleEngineClient client = new RuleEngineClient();\n\n response = client.getRate(resourceName);\n rate = response.getRate();\n //System.out.println(\"Got the response from rule engine. Rate: \" + response.getRate());\n logger.trace(\"END double getDynamicRate(String resourceName)\");\n return rate;\n }",
"public ProductionPower(NumberOfResources outputRes, NumberOfResources inputRes){\n this(0, outputRes, inputRes, 0, 0);\n }",
"public Map<Resource, Integer> getProductionPowerInput() {\n return productionPowerInput;\n }",
"int getResourceCost();",
"public int getRate() {\n return rate_;\n }",
"public float getRate() {\n\treturn durationStretch * nominalRate;\n }",
"@Override\n public String toString(){\n return String.format(\"Gain Resources -> \" + mResourcesGains);\n }",
"public Integer getRate() {\r\n return rate;\r\n }",
"public int getRate() {\n return rate_;\n }",
"public int getCustomInformationTransferRate();",
"public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }",
"public ProductionPower(int points, NumberOfResources outputRes, NumberOfResources inputRes){\n this(points, outputRes, inputRes, 0, 0);\n }",
"double getRate();",
"public int getBasicProduction() {\n return basicProduction;\n }",
"public double getRate() {\n\t\treturn rate;\n\t}",
"@Override\n\tpublic double getRate() {\n\t\treturn 7;\n\t}",
"public double getRate() {\n return rate;\n }",
"public double getRate() {\n return rate;\n }",
"@Override\r\n\tpublic FPGAResource getHardwareResourceUsage() {\r\n\t\tint lutCount = 0;\r\n\r\n\t\tValue inputValue = getDataPort().getValue();\r\n\t\tfor (int i = 0; i < inputValue.getSize(); i++) {\r\n\t\t\tBit inputBit = inputValue.getBit(i);\r\n\t\t\tif (!inputBit.isConstant() && inputBit.isCare()) {\r\n\t\t\t\tlutCount++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tFPGAResource hwResource = new FPGAResource();\r\n\t\thwResource.addLUT(lutCount);\r\n\r\n\t\treturn hwResource;\r\n\t}",
"public int getResourceMode()\r\n {\r\n return getSemanticObject().getIntProperty(swb_resourceMode);\r\n }",
"public float getRate(){\r\n return rate;\r\n }",
"public int getSupplyReadinessRate() {\n return supplyReadinessRate;\n }",
"public Rate getDefaultStandardRate()\r\n {\r\n return (m_defaultStandardRate);\r\n }",
"public float getRate() {\n\t\treturn rate;\n\t}",
"private void calculateRates() {\n if (rateOutput == null || !outputs.containsKey(rateOutput)) throw new RuntimeException(\"Insufficient data to calculate recipe rates\");\n recipesPerMinute = productionRate / outputs.get(rateOutput);\n\n for (String resource : inputs.keySet()) {\n ratesPerMinute.put(resource,-1.0 * recipesPerMinute * inputs.get(resource));\n }\n for (String resource: outputs.keySet()) {\n ratesPerMinute.put(resource, recipesPerMinute * outputs.get(resource));\n }\n }",
"public TempScale getOutputScale() {return outputScale;}",
"void printRate(Rate iRate)\n {\n System.out.println(iRate.getElementValue());\n }",
"public int getSamplingRate( ) {\r\n return samplingRate;\r\n }",
"private String production() {\r\n\t\tint[] prod=tile.getProductionNeedsMet();\r\n\t\tString out=\"Production Met: \"+prod[0]+\" || Production Not Met: \"+prod[1];\r\n\t\treturn out;\r\n\t}",
"public java.lang.Integer getRatetype() {\n\treturn ratetype;\n}",
"public IShippingRate getRateObject();",
"public int getSamplingRate() {\n return samplingRate;\n }",
"public Integer getConsumption() {\r\n return consumption;\r\n }",
"public double getFoodProductionRate() {\r\n\t\treturn foodProductionRate;\r\n\t}",
"int getSmpRate();",
"protected synchronized int getResistivity() { return resistivity; }",
"public SampleMode getSampleMode();",
"public BufferedImage getPlan()\n { \n return imgPlan;\n }",
"public int getSupplyMovementRate() {\n return supplyMovementRate;\n }",
"public String getRateId() {\n return rateId;\n }",
"ProductPlan getProductPlan();",
"public ResourceType getMaxResource() {\n if (food >= energy && food >= ore) {\n return ResourceType.FOOD;\n } else if (energy >= food && energy >= ore) {\n return ResourceType.ENERGY;\n } else {\n return ResourceType.ORE;\n }\n }",
"public int getChargeRate();",
"public ProductionPower(int points, NumberOfResources outputRes, NumberOfResources inputRes, int ofYourChoiceInput, int ofYourChoiceOutput){\n if(ofYourChoiceInput<0 || ofYourChoiceOutput<0 || points<0)\n throw new ArithmeticException();\n this.pointsFaithOut =points;\n this.outputRes=outputRes;\n this.inputRes=inputRes;\n this.ofYourChoiceInput = ofYourChoiceInput;\n this.ofYourChoiceOutput = ofYourChoiceOutput;\n }",
"public Rate rate() {\n _initialize();\n return rate;\n }",
"public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}",
"@Override\n\tpublic boolean isRateplan(){\n\t\treturn false;\n\t}",
"public double getConversionRate() {\n return conversionRate;\n }",
"public void setRate(int rate) { this.rate = rate; }",
"public String getRegularRate() {\n return regularRate;\n }",
"public java.lang.String getRate2(int index) {\n return rate2_.get(index);\n }",
"public float getEnergyRate() { return EnergyRate; }",
"public java.lang.String getRate2(int index) {\n return rate2_.get(index);\n }",
"public double getPayRate()\r\n\t{\r\n\treturn payRate;\r\n\t}",
"public abstract String getOutputFormat();",
"public ProductionPower(){\n this(0, new NumberOfResources(), new NumberOfResources(), 0, 0);\n }",
"int getOutputVoltage();",
"public CostInfo getCostInfo();",
"double getTransRate();",
"public String getAdaptiveRateAlgorithm();",
"@Override\r\n\tpublic double pidGet() {\r\n\t\t/*switch (m_pidSource.value) {\r\n\t\tcase 1://PIDSourceParameter.kRate_val:\r\n\t\t\treturn getRate();\r\n\t\tcase 2:// PIDSourceParameter.kAngle_val:\r\n\t\t\treturn getAngle();\r\n\t\tdefault:\r\n\t\t\treturn 0.0;\r\n\t\t}*/\r\n\t\treturn getAngle();\r\n\t}",
"public int getSessionCreateRate();",
"com.yandex.ydb.rate_limiter.ResourceOrBuilder getResourceOrBuilder();",
"private Rate toLatency(final boolean isPremium, final boolean isSSD) {\n\t\tif (isPremium) {\n\t\t\treturn Rate.BEST;\n\t\t}\n\t\treturn isSSD ? Rate.GOOD : Rate.MEDIUM;\n\t}",
"public abstract String getMaxUsage();",
"public void printByResource() {\r\n TUseStatus useStatus;\r\n\t for (int b=0; b < m_current_users_count; b++)\r\n\t for (int a=0; a < m_current_resources_count; a++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }",
"void maritimeTrade(int ratio, String inputResource, String outResource);",
"public String display(){\r\n\t\tif(this.AWD==true){\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" AWD\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" 2WD\";\r\n\t\t}\r\n \r\n\t}",
"@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}",
"public String toString(){\r\n return \"Depreciating\" + super.toString() + \" rate: \" + String.format(\"%.1f\", rate) + \"%\";\r\n }",
"public Integer getSupervisoryTransmitRate()\r\n\t{\r\n\t\treturn supervisoryTransmitRate;\r\n\t}",
"@Override protected String getRateUnit() {\n return \"events/\" + super.getRateUnit();\n }",
"public Double getReturnRate() {\r\n return returnRate;\r\n }",
"public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}",
"String getBackOffMultiplier();",
"java.lang.String getQuality();",
"@Override\n public Format setOutputFormat(Format format)\n {\n Format outputFormat = super.setOutputFormat(format);\n \n if (logger.isDebugEnabled() && (outputFormat != null))\n logger.debug(\"SwScaler set to output in \" + outputFormat);\n return outputFormat;\n }",
"public String getSampleProcessing() {\n return sampleProcessing;\n }",
"public double printOutput() {\r\n return calculateNetPay();\r\n }",
"public String toString(){\n\t\treturn \"predefinedPeriod:\" + getPredefinedPeriod().getType().getName() + \n\t\t\t\t\"productiveTime:\" + getProductiveTime() + \"qtySchedToProduce:\" + \n\t\t\t\t getQtySchedToProduce() + \"qtyProduced:\" + getQtyProduced() \n\t\t\t\t + \"qtyDefective:\" + getQtyDefective(); \n \t\t\n\t}",
"public String toString() {\n return super.toString() + \"\\n\" + \"Lowest measurable weight: \" + getMinWeight() + \"g\\n\" + \"Highest measurable weight: \" + getMaxWeight() + \"g\\n\";\n }",
"public ResourceInfo getResource() {\n\t\treturn resource;\n\t}",
"String getOutputFormat();",
"@Override\n\tint use() {\n\t\treturn (int)(primaryStat*1.2);\n\t}",
"String getReviewrate();",
"private boolean generateRate() {\n TSDBData rateObj;\n boolean result = false;\n\n if (Flag.getMeteringType().equalsIgnoreCase(\"static\")) {\n rateObj = generateStaticRate();\n } else {\n rateObj = generateDynamicRate();\n }\n if (rateObj.getPoints().size() > 0)\n result = saveRate(rateObj);\n return result;\n }",
"float getCostScale();",
"public int getThisDataRate(){\r\n\t\tString option = (String) comboBox.getSelectedItem();\r\n\t\tif (option.equals(\"250kbs\")){\r\n\t\t\tdataRate = 0;\r\n\t\t}else if(option.equals(\"1mbs\")){\r\n\t\t\tdataRate = 1;\r\n\t\t}else{\r\n\t\t\tdataRate = 2;\r\n\t\t}\r\n\t\treturn dataRate;\r\n\t}",
"protected double getPaymentRate() {\n\t\tdouble rate = 0;\n\n\t\tfor (PayloadBuilderSet set : sets) {\n\t\t\tif (set.isActive())\n\t\t\t\trate += set.getPaymentRate();\n\t\t}\n\n\t\treturn rate;\n\t}",
"io.netifi.proteus.admin.om.Metrics getMetrics();",
"public int getProductionTimer()\n\t{\n\t\treturn currentProductionTimer;\n\t}",
"@Override\n\tpublic void getOutput(ICreationCondition condition, ICreationData data, long amountToApply, IUnitCountList output) {\n\t}",
"public double calculateRate() {\n\t\tdouble rate = 0;\n\t\tfor (int i = 0; i < upgrades.size(); i++) {\n\t\t\trate += upgrades.get(i).getProduction();\n\t\t}\n\t\tbrain.setRate(rate);\n\t\treturn rate;\n\t}",
"public ArrayList<Resource> getDynamicInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientDynamicInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuUtilizationAttribute = new Attribute();\n\t\tcpuUtilizationAttribute.setAttributeType(AttributeType.CPUUtilization);\n\t\tcpuUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getCPUUsage()));\n\t\tcpuUtilizationAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuUtilizationAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramFreeAttribute = new Attribute();\n\t\tramFreeAttribute.setAttributeType(AttributeType.FreeMemory);\n\t\tramFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMFreeInfo()));\n\n\t\tramResource.addAttribute(ramFreeAttribute);\n\n\t\tramFreeAttribute.setDate(new Date());\n\n\t\tAttribute ramUtilizationAttribute = new Attribute();\n\t\tramUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.MemoryUtilization);\n\t\tramUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMUtilizationInfo()));\n\t\tramResource.addAttribute(ramUtilizationAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageFreeAttribute = new Attribute();\n\t\tsstorageFreeAttribute.setAttributeType(AttributeType.FreeStorage);\n\t\tsstorageFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getSStorageFreeInfo()));\n\t\tsstorageFreeAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageFreeAttribute);\n\n\t\tAttribute sstorageUtilizationAttribute = new Attribute();\n\t\tsstorageUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.StorageUtilization);\n\t\tsstorageUtilizationAttribute.setValue(Double\n\t\t\t\t.parseDouble(clientDynamicInfo.getSStorageUtilizationInfo()));\n\t\tsstorageUtilizationAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageUtilizationAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}",
"public double getOutput()\n {\n //\n // Read from input device without holding a lock on this object, since this could\n // be a long-running call.\n //\n final double currentInputValue = pidInput.get();\n\n synchronized (this)\n {\n final String funcName = \"getOutput\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n double prevError = currError;\n double currTime = TrcUtil.getCurrentTime();\n double deltaTime = currTime - prevTime;\n prevTime = currTime;\n currInput = currentInputValue;\n currError = setPoint - currInput;\n if (inverted)\n {\n currError = -currError;\n }\n\n if (pidCoefficients.kI != 0.0)\n {\n //\n // Make sure the total error doesn't get wound up too much exceeding maxOutput.\n //\n double potentialGain = (totalError + currError * deltaTime) * pidCoefficients.kI;\n if (potentialGain >= maxOutput)\n {\n totalError = maxOutput / pidCoefficients.kI;\n }\n else if (potentialGain > minOutput)\n {\n totalError += currError * deltaTime;\n }\n else\n {\n totalError = minOutput / pidCoefficients.kI;\n }\n }\n\n pTerm = pidCoefficients.kP * currError;\n iTerm = pidCoefficients.kI * totalError;\n dTerm = deltaTime > 0.0 ? pidCoefficients.kD * (currError - prevError) / deltaTime : 0.0;\n fTerm = pidCoefficients.kF * setPoint;\n double lastOutput = output;\n output = pTerm + iTerm + dTerm + fTerm;\n\n output = TrcUtil.clipRange(output, minOutput, maxOutput);\n\n if (rampRate != null)\n {\n if (prevOutputTime != 0.0)\n {\n double dt = currTime - prevOutputTime;\n double maxChange = rampRate * dt;\n double change = output - lastOutput;\n change = TrcUtil.clipRange(change, -maxChange, maxChange);\n output = lastOutput + change;\n }\n prevOutputTime = currTime;\n }\n\n if (debugTracer != null)\n {\n printPidInfo(debugTracer);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", output);\n }\n\n return output;\n }\n }",
"@Override\r\n\tpublic double getRx() {\n\t\treturn 2 * this.a;\r\n\t}",
"float getMainUtteranceDynamicGain();",
"public double GetStandardDev();",
"public static float getConsumeRate() {\n return consumerate;\n }"
]
| [
"0.5934903",
"0.58440566",
"0.58032405",
"0.57940364",
"0.56771183",
"0.56767815",
"0.5638577",
"0.5622927",
"0.56195474",
"0.5610783",
"0.55791396",
"0.55788124",
"0.5572072",
"0.55450296",
"0.55014527",
"0.5499529",
"0.5482382",
"0.54814774",
"0.54713756",
"0.54713756",
"0.5439915",
"0.54181683",
"0.5408764",
"0.54087174",
"0.5374795",
"0.5359045",
"0.53555423",
"0.53432393",
"0.5337291",
"0.5329758",
"0.53253263",
"0.53227943",
"0.5318443",
"0.53071576",
"0.52973217",
"0.5288115",
"0.52840286",
"0.52793956",
"0.5271279",
"0.5259806",
"0.524271",
"0.52405244",
"0.5221466",
"0.5210042",
"0.5203609",
"0.5197785",
"0.51956135",
"0.5164925",
"0.5163734",
"0.51597935",
"0.5158752",
"0.5145863",
"0.51320684",
"0.5122077",
"0.5119611",
"0.5105706",
"0.5093124",
"0.50911134",
"0.50876445",
"0.50865144",
"0.5085285",
"0.504413",
"0.5019866",
"0.50195384",
"0.50114757",
"0.5006586",
"0.4999532",
"0.49910286",
"0.49756968",
"0.49750042",
"0.49740368",
"0.4972992",
"0.49665835",
"0.49602756",
"0.49528736",
"0.49500155",
"0.49450344",
"0.49435005",
"0.49298626",
"0.49260953",
"0.49180186",
"0.49154082",
"0.49034032",
"0.4902849",
"0.48985067",
"0.4898375",
"0.48931473",
"0.48928642",
"0.48920342",
"0.4886774",
"0.48806193",
"0.48805752",
"0.48793492",
"0.4873907",
"0.48715562",
"0.48638788",
"0.48634654",
"0.48632553",
"0.48631656",
"0.48599422",
"0.4856265"
]
| 0.0 | -1 |
volume is rate per minute, with inputs having a negative rate | private void calculateRates() {
if (rateOutput == null || !outputs.containsKey(rateOutput)) throw new RuntimeException("Insufficient data to calculate recipe rates");
recipesPerMinute = productionRate / outputs.get(rateOutput);
for (String resource : inputs.keySet()) {
ratesPerMinute.put(resource,-1.0 * recipesPerMinute * inputs.get(resource));
}
for (String resource: outputs.keySet()) {
ratesPerMinute.put(resource, recipesPerMinute * outputs.get(resource));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double volume();",
"public abstract double calcVolume();",
"public abstract double calcVolume();",
"@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}",
"public abstract float volume();",
"public float getVolumeMultiplier();",
"double volume() {\n\t\treturn 0;\n\t}",
"public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}",
"public void calcVolume() {\n this.vol = (0.6666666666666667 * Math.PI) * Math.pow(r, 3);\n }",
"public abstract double getVolume();",
"private static float volumeToGain(int volume) {\n return (float) ((86.0206/100)*volume-80);\n }",
"BigDecimal getVolume();",
"@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}",
"public double get_volume(double r) {\n\t\treturn (Math.PI)*r*r*r*2/3;\t\t//dont 2/3*(Math.PI)*r*r*r -> ans 0\n\t}",
"public double getVolume() { return volume; }",
"double getMaxVolume();",
"@Override\n\tpublic float volume() {\n\t\treturn 0;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"double volume(){\n\n return widgh*height*depth;\n\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"BigDecimal getVolumeTraded();",
"@Override\r\n\tpublic float getVolume() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}",
"public float getVolume()\n {\n return volume;\n }",
"void setVolume(float volume);",
"float getSurfaceVolatility();",
"public double calcVolume(){\n double area=calcArea(); // calcArea of superclass used\r\n return area*h;\r\n }",
"public double getCyclinderVolume();",
"public int getVolume();",
"@Override\r\n\tpublic void setVolume(float volume) {\n\t\t\r\n\t}",
"public double getVolume()\n {\n return this.volume;\n }",
"private double Volume() {\n\t\tdouble volume = (4f / 3f) * Math.PI * Math.pow(_radius, 3);\n\t\treturn volume;\n\t}",
"double getRate();",
"public float getVolume() {\n return 1.0f;\n }",
"int getOriginalVolume();",
"int getVolume();",
"int getVolume();",
"public void setVolume(float volume) {\n }",
"@Override\n\tpublic float volume() {\n\t\tfloat volume = (float) ((4/3) * Math.PI * Math.pow(this.radius, 3));\n\t\treturn volume;\n\t}",
"double volume()\n\t{\n\t\t\n\t\treturn width*height*depth;\n\t\t\n\t}",
"void volume(double volume) {\n execute(\"player.volume = \" + volume);\n }",
"public double getVolume()\n {\n return volume / 512;\n }",
"public float getVolum() {\n return volum;\n }",
"public double getVolume() {\n return volume;\n }",
"public void setVolum(float value) {\n this.volum = value;\n }",
"@Override\n\tpublic void volume() {\n\t\tsolido.volume = (solido.areaBase * altura) / 3;\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public double masse () {return this.volume()*this.element.masseVolumique();}",
"public void increaseVolume()\r\n {\r\n volume++;\r\n }",
"public double volume()\r\n {\r\n double volume = Math.pow(radius, 2) * (height / 3) * Math.PI;\r\n return volume;\r\n }",
"public int volume() {\r\n int xLength = this.getMaximumPoint().getBlockX() - this.getMinimumPoint().getBlockX() + 1;\r\n int yLength = this.getMaximumPoint().getBlockY() - this.getMinimumPoint().getBlockY() + 1;\r\n int zLength = this.getMaximumPoint().getBlockZ() - this.getMinimumPoint().getBlockZ() + 1;\r\n\r\n int volume = xLength * yLength * zLength;\r\n return volume;\r\n }",
"private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ this._prismoidsSectionsAreas.get(i+1).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ Math.sqrt(\n\t\t\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i)\n\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsSectionsAreas.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue()\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.CUBIC_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\tthis._fuelVolume = this._fuelVolume\n\t\t\t\t\t\t\t\t\t\t.plus(this._prismoidsVolumes.get(i));\n\t\tthis._fuelVolume = this._fuelVolume.times(2);\n\t\t\n\t}",
"int getSmpRate();",
"private int convertToAudioStreamVolume(int volume) {\n return (int) Math.ceil((double) volume*mAudioStreamMax/AVRCP_MAX_VOL);\n }",
"@ApiModelProperty(value = \"The number of shares exchanged during the trading day on the exchange.\")\n public BigDecimal getVolume() {\n return volume;\n }",
"double getPWMRate();",
"private int getVol() {\r\n\r\n\t\treturn dayVolume;\r\n\t}",
"public float getRate() {\n\treturn durationStretch * nominalRate;\n }",
"public static double getVolume(){\n Scanner kb = new Scanner(System.in);\n double volume = 0;\n\n System.out.println(\"Please enter in the volume: \");\n volume = kb.nextDouble();\n\n // if they don't enter in a number\n if(volume == 0){\n System.out.println(\"Please enter in a number: \");\n volume = kb.nextDouble();\n return volume;\n }\n\n // if negative number\n if(volume < 0){\n System.out.println(\"The volume must be greater than zero. \\nPlease enter in the volume: \");\n volume = kb.nextDouble();\n return volume;\n }\n\n return volume;\n }",
"public void setRate(float wpm) {\n\tif (wpm > 0 && wpm < 1000) {\n\t setDurationStretch(nominalRate / wpm);\n\t}\n }",
"int getRemainingVolume();",
"public void setVolume(double value) {\n this.volume = value;\n }",
"public double getVelocityRPM();",
"public int getReSampleRate() {\n return 0;\n }",
"public void setVolume(int volume);",
"private void playVideo(float volume) {\n }",
"public double get_volume(double r,double h) {\n\t\treturn (Math.PI)*r*r*h;\n\t}",
"public void setVolume(int level);",
"float getPreGain();",
"public void setRate(int rate) { this.rate = rate; }",
"protected float getSoundVolume()\n {\n return 0.4F;\n }",
"public double get_volume(int l,int b, int h) {\n\t\treturn l*b*h;\n\t}",
"public void increaseVolume() {\r\n\t\tvolume++;\r\n\t}",
"public static void maxVolume() {\n volume = 100;\n System.out.println(\"Volume: \" + volume);\n//end of modifiable zone(JavaCode)........E/883cef54-8649-49b6-b371-11234437d0eb\n }",
"public float getRate(){\r\n return rate;\r\n }",
"public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n }",
"public void setVolume(float volume) {\r\n\t\tthis.volume = volume;\r\n\t}",
"public double getVolume() {\n return super.getLado1() * super.getLado2() * this.altura;\n }",
"@Override\n \tpublic void onUpdateVolume(double arg0) {\n \t}",
"int getVolume() {\n return this.volume;\n }",
"public void setRate();",
"Double volume() {\n return execute(\"player.volume\");\n }",
"public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}",
"public MultiSpectralVolume(Integer threshold)\r\n/* 14: */ {\r\n/* 15:23 */ this.threshold = threshold.intValue();\r\n/* 16: */ }",
"protected float getSoundVolume()\n\t{\n\t\treturn 1F;\n\t}",
"@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }",
"public static void halfVolume() {\n volume = 50;\n System.out.println(\"Volume: \" + volume);\n//end of modifiable zone(JavaCode)........E/30cff6a1-f5dd-43b9-94cb-285201f52ee7\n }",
"public double getTotalVolume() {\n return totalVolume;\n }",
"@Override\n\tpublic double calRate() {\n\t\treturn 0.9f;\n\t}",
"public double volume() {\n\t\treturn this.iWidth * this.iLength * this.iDepth\r\n\t}",
"@Override protected double convertRate(double rate) {\n return super.convertRate(rate);\n }",
"public float getFrameRate() { return 1000f/_interval; }",
"public int calculateVolume() {\n return (int) Math.pow(this.sideLength, 3) ;\n }",
"public int getSampleRate() {\n return 0;\n }",
"public double getVolumeLitres() {\n return volumeLitres;\n }",
"public double getVolume()\r\n\t{\r\n\t\treturn (super.getArea())*h;\r\n\t}",
"public double averageVolume() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).volume();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n \r\n return total;\r\n }",
"public void updateVolume(){\r\n if(currentLoop0) backgroundMusicLoop0.gainControl.setValue(Window.musicVolume);\r\n else backgroundMusicLoop1.gainControl.setValue(Window.musicVolume);\r\n }",
"public void updateRate(double r){\r\n rate *= r;\r\n }",
"public Rational getAudioSampleRate();"
]
| [
"0.6871559",
"0.68449384",
"0.68449384",
"0.67678475",
"0.67380106",
"0.6717317",
"0.66868347",
"0.6675937",
"0.6557882",
"0.6546353",
"0.65377074",
"0.6525566",
"0.6505687",
"0.6505687",
"0.6498828",
"0.6457932",
"0.64247566",
"0.63650775",
"0.62626535",
"0.61886746",
"0.6143596",
"0.6117258",
"0.6108837",
"0.61005527",
"0.60959756",
"0.6088256",
"0.6028227",
"0.60224444",
"0.6013231",
"0.6010993",
"0.60064596",
"0.5985362",
"0.59698564",
"0.5958247",
"0.5956394",
"0.59399563",
"0.5938713",
"0.5938713",
"0.5937442",
"0.5936964",
"0.592621",
"0.59061927",
"0.5889868",
"0.5889695",
"0.58865106",
"0.5876153",
"0.58581513",
"0.58453023",
"0.583949",
"0.58326966",
"0.5821116",
"0.57942206",
"0.5783593",
"0.5782413",
"0.57657605",
"0.5760098",
"0.5741067",
"0.5732105",
"0.572406",
"0.57230836",
"0.5709004",
"0.5694559",
"0.5656599",
"0.56482387",
"0.56455964",
"0.56426007",
"0.56392765",
"0.5638704",
"0.5637016",
"0.5633249",
"0.5626681",
"0.5621118",
"0.56153816",
"0.561376",
"0.5608877",
"0.5608286",
"0.55996567",
"0.559484",
"0.5585791",
"0.5580322",
"0.55792904",
"0.5571814",
"0.55600893",
"0.55562466",
"0.5542186",
"0.5541786",
"0.55369186",
"0.55304486",
"0.5529231",
"0.552717",
"0.55153143",
"0.55011344",
"0.54814214",
"0.5479438",
"0.5461641",
"0.5456428",
"0.5449284",
"0.5447461",
"0.5440641",
"0.5434271",
"0.5413529"
]
| 0.0 | -1 |
returns the EC2 region set for the administrator | public static List<String> getEC2Regions(Long adminId) {
List<String> ec2RegionList = new ArrayList<String>();
Connection con = null;
try {
con = DBUtils.getConn();
PreparedStatement stmt = con.prepareStatement("select * from ec2_region where admin_id=?");
stmt.setLong(1, adminId);
ResultSet rs = stmt.executeQuery();
while (rs.next()) {
ec2RegionList.add(rs.getString("region"));
}
DBUtils.closeStmt(stmt);
} catch (Exception e) {
e.printStackTrace();
}
DBUtils.closeConn(con);
return ec2RegionList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getREGION()\n {\n \n return __REGION;\n }",
"IRegion getRegion();",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getOperateRegion() {\r\n return operateRegion;\r\n }",
"String regionName();",
"String regionName();",
"String regionName();",
"String regionName();",
"public java.util.Enumeration getRegion() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getRegion();\n }",
"public String getRegion() {\n return this.region;\n }",
"public java.util.List<String> getRegionNames() {\n if (regionNames == null) {\n regionNames = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return regionNames;\n }",
"private Location getRegion() {\n Set<? extends Location> locations = blobStore.listAssignableLocations();\n if (!(swiftRegion == null || \"\".equals(swiftRegion))) {\n for (Location location : locations) {\n if (location.getId().equals(swiftRegion)) {\n return location;\n }\n }\n }\n if (locations.size() != 0) {\n return get(locations, 0);\n } else {\n return null;\n }\n }",
"public List<String> regions() {\n return this.regions;\n }",
"kr.pik.message.Profile.HowMe.Region getRegion();",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getRegion() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getRegion\");\r\n\t}",
"public EnumRegion getRegion()\n {\n return region;\n }",
"public Region getRegion() {\n return region;\n }",
"public TypeOfRegion getRegion();",
"public Regions getRegions () {\n return this.regions;\n }",
"@AutoEscape\n public String getRegion();",
"public String getRegionName() {\r\n return regionName;\r\n }",
"public String getRegionName() {\n return regionName;\n }",
"java.lang.String getRegionCode();",
"public WorldRegions getWorldRegions()\n {\n return regions;\n }",
"public byte [] getRegionName() {\n return regionName;\n }",
"public String getRegionId() {\r\n return regionId;\r\n }",
"public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }",
"public CoordinateRadius getRegion();",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"public static void setRegion(Long adminId, List<String> ec2RegionList) {\n\n Connection con = null;\n try {\n con = DBUtils.getConn();\n //delete region\n PreparedStatement stmt = con.prepareStatement(\"delete from ec2_region where admin_id=?\");\n stmt.setLong(1, adminId);\n stmt.execute();\n\n //insert new region\n for (String ec2Region : ec2RegionList) {\n stmt = con.prepareStatement(\"insert into ec2_region (admin_id, region) values (?,?)\");\n stmt.setLong(1, adminId);\n stmt.setString(2, ec2Region);\n stmt.execute();\n DBUtils.closeStmt(stmt);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n DBUtils.closeConn(con);\n\n\n }",
"public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }",
"java.lang.String getRegionId();",
"public NegotiableQuoteAddressRegion getRegion() {\n return (NegotiableQuoteAddressRegion) get(\"region\");\n }",
"public List<MhsmGeoReplicatedRegionInner> regions() {\n return this.regions;\n }",
"public java.lang.String getRegionname() {\n\treturn regionname;\n}",
"public String getRegion_id() {\n return region_id;\n }",
"public String getRegionid() {\n return regionid;\n }",
"Region region();",
"Region region();",
"Region region();",
"Region region();",
"public long getRegionId() {\r\n return regionId;\r\n }",
"String signingRegion();",
"public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}",
"public int getRegionValue() {\n return region_;\n }",
"public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}",
"public String getRegionno() {\n return regionno;\n }",
"public int getRegionid() {\n return regionid;\n }",
"public int getRegionValue() {\n return region_;\n }",
"Integer getRegionId();",
"public String getValidRegionDesc();",
"public String[][] getBonusRegion(String endPath) {\r\n\t\tString[][] bonusRegion = null;\r\n\r\n\t\ttry {// provo a leggere il file xml\r\n\t\t\tbonusRegion = cittaXml.getBonusRegion(endPath);\r\n\t\t} catch (XmlException e) {\r\n\t\t\tlogger.error(err + endPath, e);\r\n\t\t\tbonusRegion = null;\r\n\t\t}\r\n\r\n\t\treturn bonusRegion;// ritorna un array con i bonus della regione\r\n\t}",
"public Region getCurrentRegion() {\n\n return currentRegion;\n }",
"public String getRegionNo() {\n return regionNo;\n }",
"public Long getRegionId() {\n return this.regionId;\n }",
"public List<Region> gets() {\r\n return rdao.getAllRegion();\r\n }",
"public String getStorageRegion() {\n return this.StorageRegion;\n }",
"AdministrativeArea getAdministrativeArea();",
"public List<PDGRegion> getPDGRegions();",
"int getRegionValue();",
"String getAvailability_zone();",
"public BigDecimal getBENEF_REGION() {\r\n return BENEF_REGION;\r\n }",
"public Set<GeneralRegion> getMemberRegions() {\n\t\tSet<GeneralRegion> result = new HashSet<>();\n\t\tfor(String name : getMembers()) {\n\t\t\tresult.add(plugin.getFileManager().getRegion(name));\n\t\t}\n\t\treturn result;\n\t}",
"static String getRegion(Configuration conf, String defaultRegion)\n throws IOException {\n String region = conf.getTrimmed(S3GUARD_DDB_REGION_KEY);\n if (StringUtils.isEmpty(region)) {\n region = defaultRegion;\n }\n try {\n Regions.fromName(region);\n } catch (IllegalArgumentException | NullPointerException e) {\n throw new IOException(\"Invalid region specified: \" + region + \"; \" +\n \"Region can be configured with \" + S3GUARD_DDB_REGION_KEY + \": \" +\n validRegionsString());\n }\n return region;\n }",
"public synchronized final Map<String, PermissionRegion> getRegions() {\n return memoryState.getRegions();\n }",
"public int getRegionid() {\n\treturn regionid;\n}",
"public String getRegionFullName() {\n return regionFullName;\n }",
"public String getStaticRegionId() {\n return staticRegionId;\n }",
"public int getItuRegion() {\n return localItuRegion;\n }",
"public int getC_Region_ID();",
"@Override\n \tpublic SipApplicationRoutingRegion getRegion() {\n \t\treturn null;\n \t}",
"public RegionState getRegionForState(String state);",
"java.lang.String getMasterIpv4ReservedRange();",
"Map<ServerName, List<String>> getDeployedHRIs(final HBaseAdmin admin) throws IOException {\n ClusterStatus status = admin.getClusterStatus();\n Collection<ServerName> regionServers = status.getServers();\n Map<ServerName, List<String>> mm =\n new HashMap<ServerName, List<String>>();\n for (ServerName hsi : regionServers) {\n AdminProtos.AdminService.BlockingInterface server = ((HConnection) connection).getAdmin(hsi);\n\n // list all online regions from this region server\n List<HRegionInfo> regions = ProtobufUtil.getOnlineRegions(server);\n List<String> regionNames = new ArrayList<String>();\n for (HRegionInfo hri : regions) {\n regionNames.add(hri.getRegionNameAsString());\n }\n mm.put(hsi, regionNames);\n }\n return mm;\n }",
"public BigDecimal getIdregions() {\n return (BigDecimal) getAttributeInternal(IDREGIONS);\n }",
"public Object[] getRegionalGISList() {\n return this.getList(AbstractGIS.INQUIRY_REGIONAL_GIS);\n }",
"String getAvailabilityZone();",
"@Nullable public abstract URI region();",
"public RegionManagementDetails getCompleteRegionDetails(String seasonId);",
"@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();",
"@Secured({\"ROLE_ADMIN\",\"ROLE_USER\"})\n\t@GetMapping(\"/regiones\")\n\tpublic List<Region> index() {\n\t\treturn regionService.findAll();\n\t}",
"public List<Region> getAllRegions() {\n\t\treturn regionDao.findWithNamedQuery(Region.QUERY_FIND_ALL, null);\n\t}",
"public static Set<String> getRegionCodeSet() {\n // The capacity is set to 321 as there are 241 different entries,\n // and this offers a load factor of roughly 0.75.\n Set<String> regionCodeSet = new HashSet<String>(321);\n\n regionCodeSet.add(\"AC\");\n regionCodeSet.add(\"AD\");\n regionCodeSet.add(\"AE\");\n regionCodeSet.add(\"AF\");\n regionCodeSet.add(\"AG\");\n regionCodeSet.add(\"AI\");\n regionCodeSet.add(\"AL\");\n regionCodeSet.add(\"AM\");\n regionCodeSet.add(\"AO\");\n regionCodeSet.add(\"AR\");\n regionCodeSet.add(\"AS\");\n regionCodeSet.add(\"AT\");\n regionCodeSet.add(\"AU\");\n regionCodeSet.add(\"AW\");\n regionCodeSet.add(\"AX\");\n regionCodeSet.add(\"AZ\");\n regionCodeSet.add(\"BA\");\n regionCodeSet.add(\"BB\");\n regionCodeSet.add(\"BD\");\n regionCodeSet.add(\"BE\");\n regionCodeSet.add(\"BF\");\n regionCodeSet.add(\"BG\");\n regionCodeSet.add(\"BH\");\n regionCodeSet.add(\"BI\");\n regionCodeSet.add(\"BJ\");\n regionCodeSet.add(\"BL\");\n regionCodeSet.add(\"BM\");\n regionCodeSet.add(\"BN\");\n regionCodeSet.add(\"BO\");\n regionCodeSet.add(\"BQ\");\n regionCodeSet.add(\"BR\");\n regionCodeSet.add(\"BS\");\n regionCodeSet.add(\"BT\");\n regionCodeSet.add(\"BW\");\n regionCodeSet.add(\"BY\");\n regionCodeSet.add(\"BZ\");\n regionCodeSet.add(\"CA\");\n regionCodeSet.add(\"CC\");\n regionCodeSet.add(\"CD\");\n regionCodeSet.add(\"CF\");\n regionCodeSet.add(\"CG\");\n regionCodeSet.add(\"CH\");\n regionCodeSet.add(\"CI\");\n regionCodeSet.add(\"CK\");\n regionCodeSet.add(\"CL\");\n regionCodeSet.add(\"CM\");\n regionCodeSet.add(\"CN\");\n regionCodeSet.add(\"CO\");\n regionCodeSet.add(\"CR\");\n regionCodeSet.add(\"CU\");\n regionCodeSet.add(\"CV\");\n regionCodeSet.add(\"CW\");\n regionCodeSet.add(\"CX\");\n regionCodeSet.add(\"CY\");\n regionCodeSet.add(\"CZ\");\n regionCodeSet.add(\"DE\");\n regionCodeSet.add(\"DJ\");\n regionCodeSet.add(\"DK\");\n regionCodeSet.add(\"DM\");\n regionCodeSet.add(\"DO\");\n regionCodeSet.add(\"DZ\");\n regionCodeSet.add(\"EC\");\n regionCodeSet.add(\"EE\");\n regionCodeSet.add(\"EG\");\n regionCodeSet.add(\"EH\");\n regionCodeSet.add(\"ER\");\n regionCodeSet.add(\"ES\");\n regionCodeSet.add(\"ET\");\n regionCodeSet.add(\"FI\");\n regionCodeSet.add(\"FJ\");\n regionCodeSet.add(\"FK\");\n regionCodeSet.add(\"FM\");\n regionCodeSet.add(\"FO\");\n regionCodeSet.add(\"FR\");\n regionCodeSet.add(\"GA\");\n regionCodeSet.add(\"GB\");\n regionCodeSet.add(\"GD\");\n regionCodeSet.add(\"GE\");\n regionCodeSet.add(\"GF\");\n regionCodeSet.add(\"GG\");\n regionCodeSet.add(\"GH\");\n regionCodeSet.add(\"GI\");\n regionCodeSet.add(\"GL\");\n regionCodeSet.add(\"GM\");\n regionCodeSet.add(\"GN\");\n regionCodeSet.add(\"GP\");\n regionCodeSet.add(\"GR\");\n regionCodeSet.add(\"GT\");\n regionCodeSet.add(\"GU\");\n regionCodeSet.add(\"GW\");\n regionCodeSet.add(\"GY\");\n regionCodeSet.add(\"HK\");\n regionCodeSet.add(\"HN\");\n regionCodeSet.add(\"HR\");\n regionCodeSet.add(\"HT\");\n regionCodeSet.add(\"HU\");\n regionCodeSet.add(\"ID\");\n regionCodeSet.add(\"IE\");\n regionCodeSet.add(\"IL\");\n regionCodeSet.add(\"IM\");\n regionCodeSet.add(\"IN\");\n regionCodeSet.add(\"IQ\");\n regionCodeSet.add(\"IR\");\n regionCodeSet.add(\"IS\");\n regionCodeSet.add(\"IT\");\n regionCodeSet.add(\"JE\");\n regionCodeSet.add(\"JM\");\n regionCodeSet.add(\"JO\");\n regionCodeSet.add(\"JP\");\n regionCodeSet.add(\"KE\");\n regionCodeSet.add(\"KG\");\n regionCodeSet.add(\"KH\");\n regionCodeSet.add(\"KI\");\n regionCodeSet.add(\"KM\");\n regionCodeSet.add(\"KN\");\n regionCodeSet.add(\"KP\");\n regionCodeSet.add(\"KR\");\n regionCodeSet.add(\"KW\");\n regionCodeSet.add(\"KY\");\n regionCodeSet.add(\"KZ\");\n regionCodeSet.add(\"LA\");\n regionCodeSet.add(\"LB\");\n regionCodeSet.add(\"LC\");\n regionCodeSet.add(\"LI\");\n regionCodeSet.add(\"LK\");\n regionCodeSet.add(\"LR\");\n regionCodeSet.add(\"LS\");\n regionCodeSet.add(\"LT\");\n regionCodeSet.add(\"LU\");\n regionCodeSet.add(\"LV\");\n regionCodeSet.add(\"LY\");\n regionCodeSet.add(\"MA\");\n regionCodeSet.add(\"MC\");\n regionCodeSet.add(\"MD\");\n regionCodeSet.add(\"ME\");\n regionCodeSet.add(\"MF\");\n regionCodeSet.add(\"MG\");\n regionCodeSet.add(\"MH\");\n regionCodeSet.add(\"MK\");\n regionCodeSet.add(\"ML\");\n regionCodeSet.add(\"MM\");\n regionCodeSet.add(\"MN\");\n regionCodeSet.add(\"MO\");\n regionCodeSet.add(\"MP\");\n regionCodeSet.add(\"MQ\");\n regionCodeSet.add(\"MR\");\n regionCodeSet.add(\"MS\");\n regionCodeSet.add(\"MT\");\n regionCodeSet.add(\"MU\");\n regionCodeSet.add(\"MV\");\n regionCodeSet.add(\"MW\");\n regionCodeSet.add(\"MX\");\n regionCodeSet.add(\"MY\");\n regionCodeSet.add(\"MZ\");\n regionCodeSet.add(\"NA\");\n regionCodeSet.add(\"NC\");\n regionCodeSet.add(\"NE\");\n regionCodeSet.add(\"NF\");\n regionCodeSet.add(\"NG\");\n regionCodeSet.add(\"NI\");\n regionCodeSet.add(\"NL\");\n regionCodeSet.add(\"NO\");\n regionCodeSet.add(\"NP\");\n regionCodeSet.add(\"NR\");\n regionCodeSet.add(\"NU\");\n regionCodeSet.add(\"NZ\");\n regionCodeSet.add(\"OM\");\n regionCodeSet.add(\"PA\");\n regionCodeSet.add(\"PE\");\n regionCodeSet.add(\"PF\");\n regionCodeSet.add(\"PG\");\n regionCodeSet.add(\"PH\");\n regionCodeSet.add(\"PK\");\n regionCodeSet.add(\"PL\");\n regionCodeSet.add(\"PM\");\n regionCodeSet.add(\"PR\");\n regionCodeSet.add(\"PS\");\n regionCodeSet.add(\"PT\");\n regionCodeSet.add(\"PW\");\n regionCodeSet.add(\"PY\");\n regionCodeSet.add(\"QA\");\n regionCodeSet.add(\"RE\");\n regionCodeSet.add(\"RO\");\n regionCodeSet.add(\"RS\");\n regionCodeSet.add(\"RU\");\n regionCodeSet.add(\"RW\");\n regionCodeSet.add(\"SA\");\n regionCodeSet.add(\"SB\");\n regionCodeSet.add(\"SC\");\n regionCodeSet.add(\"SD\");\n regionCodeSet.add(\"SE\");\n regionCodeSet.add(\"SG\");\n regionCodeSet.add(\"SH\");\n regionCodeSet.add(\"SI\");\n regionCodeSet.add(\"SJ\");\n regionCodeSet.add(\"SK\");\n regionCodeSet.add(\"SL\");\n regionCodeSet.add(\"SM\");\n regionCodeSet.add(\"SN\");\n regionCodeSet.add(\"SO\");\n regionCodeSet.add(\"SR\");\n regionCodeSet.add(\"SS\");\n regionCodeSet.add(\"ST\");\n regionCodeSet.add(\"SV\");\n regionCodeSet.add(\"SX\");\n regionCodeSet.add(\"SY\");\n regionCodeSet.add(\"SZ\");\n regionCodeSet.add(\"TC\");\n regionCodeSet.add(\"TD\");\n regionCodeSet.add(\"TG\");\n regionCodeSet.add(\"TH\");\n regionCodeSet.add(\"TJ\");\n regionCodeSet.add(\"TL\");\n regionCodeSet.add(\"TM\");\n regionCodeSet.add(\"TN\");\n regionCodeSet.add(\"TO\");\n regionCodeSet.add(\"TR\");\n regionCodeSet.add(\"TT\");\n regionCodeSet.add(\"TV\");\n regionCodeSet.add(\"TW\");\n regionCodeSet.add(\"TZ\");\n regionCodeSet.add(\"UA\");\n regionCodeSet.add(\"UG\");\n regionCodeSet.add(\"US\");\n regionCodeSet.add(\"UY\");\n regionCodeSet.add(\"UZ\");\n regionCodeSet.add(\"VA\");\n regionCodeSet.add(\"VC\");\n regionCodeSet.add(\"VE\");\n regionCodeSet.add(\"VG\");\n regionCodeSet.add(\"VI\");\n regionCodeSet.add(\"VN\");\n regionCodeSet.add(\"VU\");\n regionCodeSet.add(\"WF\");\n regionCodeSet.add(\"WS\");\n regionCodeSet.add(\"XK\");\n regionCodeSet.add(\"YE\");\n regionCodeSet.add(\"YT\");\n regionCodeSet.add(\"ZA\");\n regionCodeSet.add(\"ZM\");\n regionCodeSet.add(\"ZW\");\n\n return regionCodeSet;\n }",
"public static AdmCode2GazCandidateMap getAdminCode2GazCandidateMap() {\n return adminCode2GazCandidateMap;\n }",
"public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}",
"com.google.protobuf.ByteString getRegionCodeBytes();",
"public Collection<IRegionalValidity> getValidRegionList();",
"ExactZonesConfig getHostingGridServiceAgentZones(ProcessingUnitInstance processingUnitInstance) throws AdminException;"
]
| [
"0.6749359",
"0.669396",
"0.6546345",
"0.6546345",
"0.6546345",
"0.6529835",
"0.6529835",
"0.6529835",
"0.6529835",
"0.6529835",
"0.652377",
"0.652377",
"0.65119356",
"0.64806217",
"0.6473248",
"0.6473248",
"0.6473248",
"0.6473248",
"0.6468165",
"0.64298296",
"0.63609904",
"0.6359387",
"0.62676454",
"0.62501127",
"0.623927",
"0.6225998",
"0.6187753",
"0.618453",
"0.6087774",
"0.60849214",
"0.60690784",
"0.60589314",
"0.6041674",
"0.6031513",
"0.5993152",
"0.5969971",
"0.5967268",
"0.59604484",
"0.5957224",
"0.5957224",
"0.5957224",
"0.5953261",
"0.5952796",
"0.5924274",
"0.59230214",
"0.590627",
"0.5892384",
"0.5889965",
"0.587742",
"0.5863732",
"0.5863732",
"0.5863732",
"0.5863732",
"0.58636785",
"0.58457595",
"0.58375114",
"0.58362913",
"0.5833322",
"0.58263063",
"0.57844806",
"0.5746164",
"0.5737075",
"0.5735733",
"0.5728487",
"0.5726633",
"0.5716683",
"0.57094646",
"0.57078487",
"0.5699004",
"0.56916916",
"0.56795985",
"0.56611955",
"0.564947",
"0.56264323",
"0.56217724",
"0.5605929",
"0.55896074",
"0.5588281",
"0.5568082",
"0.5542377",
"0.5530271",
"0.55235523",
"0.5490959",
"0.5481462",
"0.5474129",
"0.5466186",
"0.54440796",
"0.5439141",
"0.5435093",
"0.5424197",
"0.53924304",
"0.5377911",
"0.5376812",
"0.53495127",
"0.5337036",
"0.532377",
"0.52910477",
"0.528362",
"0.5273115",
"0.52672976"
]
| 0.6729616 | 1 |
sets the EC2 region for admin user | public static void setRegion(Long adminId, List<String> ec2RegionList) {
Connection con = null;
try {
con = DBUtils.getConn();
//delete region
PreparedStatement stmt = con.prepareStatement("delete from ec2_region where admin_id=?");
stmt.setLong(1, adminId);
stmt.execute();
//insert new region
for (String ec2Region : ec2RegionList) {
stmt = con.prepareStatement("insert into ec2_region (admin_id, region) values (?,?)");
stmt.setLong(1, adminId);
stmt.setString(2, ec2Region);
stmt.execute();
DBUtils.closeStmt(stmt);
}
} catch (Exception e) {
e.printStackTrace();
}
DBUtils.closeConn(con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"[email protected]\", \"region\");\n }",
"public void setRegion(String region);",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(Region region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setC_Region_ID (int C_Region_ID);",
"public void setRegion(String region) {\n this.region = region == null ? null : region.trim();\n }",
"public void setRegion(String region) {\n this.region = region == null ? null : region.trim();\n }",
"public void setRegionManager(final RegionManagerBean injRegionManager) {\n regionManager = injRegionManager;\n }",
"public synchronized static void setInsideSecureLocation(boolean flag){\n editor.putBoolean(IN_REGION, flag);\n editor.commit();\n }",
"public void setRegionname(java.lang.String newRegionname) {\n\tregionname = newRegionname;\n}",
"public static List<String> getEC2Regions(Long adminId) {\n\n List<String> ec2RegionList = new ArrayList<String>();\n\n Connection con = null;\n try {\n con = DBUtils.getConn();\n PreparedStatement stmt = con.prepareStatement(\"select * from ec2_region where admin_id=?\");\n stmt.setLong(1, adminId);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n ec2RegionList.add(rs.getString(\"region\"));\n\n }\n\n DBUtils.closeStmt(stmt);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n DBUtils.closeConn(con);\n\n\n return ec2RegionList;\n\n }",
"public void setRegion(EnumRegion region)\n {\n this.region = region;\n }",
"public void setRegion(CoordinateRadius region);",
"public void secondarySetSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetSuperregion(arg0);\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public void setStorageRegion(String StorageRegion) {\n this.StorageRegion = StorageRegion;\n }",
"public void setOperateRegion(String operateRegion) {\r\n this.operateRegion = operateRegion == null ? null : operateRegion.trim();\r\n }",
"@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);",
"public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }",
"public void setRegion_id(String region_id) {\n this.region_id = region_id;\n }",
"public void setREGION(java.lang.String value)\n {\n if ((__REGION == null) != (value == null) || (value != null && ! value.equals(__REGION)))\n {\n _isDirty = true;\n }\n __REGION = value;\n }",
"public SuperRegionAccessBean () {\n super();\n }",
"public void setSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setSuperregion(arg0);\n }",
"public void setRegion(final TypeOfRegion region);",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }",
"public void setRegionid(int newRegionid) {\n regionid = newRegionid;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"@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}",
"void tempInRegionUI();",
"public void changeRegion(ValueChangeEvent valueChangeEvent) {\n WABEAN mybean = new WABEAN();\r\n mybean.AccessAttribute(\"Country\").setInputValue(null);// second level attribunte\r\n // makes also the third level attribute to null \r\n // mybean.AccessAttribute(\"City\").setInputValue(null);// thierd level no need to make it null\r\n }",
"public void setProviderRegionId(String id) {\n providerRegionId = id;\n }",
"public String getRegion_id() {\n return region_id;\n }",
"public String getRegion() {\n return this.region;\n }",
"public String getRegionid() {\n return regionid;\n }",
"public void setRegionid(int newValue) {\n\tthis.regionid = newValue;\n}",
"public String getOperateRegion() {\r\n return operateRegion;\r\n }",
"WithResourceGroup withRegion(Region location);",
"WithResourceGroup withRegion(Region location);",
"public void setCheflieuregion(String value) {\n setAttributeInternal(CHEFLIEUREGION, value);\n }",
"public SuperRegionAccAccessBean () {\n super();\n }",
"public void setAdminURL(URI adminURL) {\n this.adminURL = adminURL;\n }",
"public void setEU( String eu ) {\r\n this.eu = eu;\r\n }",
"public void setAdminAddr(String adminAddr) {\n this.adminAddr = adminAddr == null ? null : adminAddr.trim();\n }",
"public String getRegionId() {\r\n return regionId;\r\n }",
"public void setAdmin(int admin) {\n this.admin = admin;\n }",
"public CloudinsRegionRecord() {\n super(CloudinsRegion.CLOUDINS_REGION);\n }",
"public void setTexture(TextureRegion region) {\n \ttexture = region;\n \torigin = new Vector2(texture.getRegionWidth()/2.0f,texture.getRegionHeight()/2.0f);\n }",
"WithResourceGroup withRegion(String location);",
"WithResourceGroup withRegion(String location);",
"void setAdminStatus(User user, boolean adminStatus);",
"public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }",
"public void setRegionid(String regionid) {\n this.regionid = regionid;\n }",
"public void assignCurrentAdminUser(final String val) {\n currentAdminUser = val;\n }",
"public void setRegionId(long regionId) {\r\n this.regionId = regionId;\r\n }",
"private final void initializeAdminUser() throws Exception {\r\n String adminEmail = server.getServerProperties().get(ADMIN_EMAIL_KEY);\r\n String adminPassword = server.getServerProperties().get(ADMIN_PASSWORD_KEY);\r\n // First, clear any existing Admin role property.\r\n for (User user : this.email2user.values()) {\r\n user.setRole(\"basic\");\r\n }\r\n // Now define the admin user with the admin property.\r\n if (this.email2user.containsKey(adminEmail)) {\r\n User user = this.email2user.get(adminEmail);\r\n user.setPassword(adminPassword);\r\n user.setRole(\"admin\");\r\n }\r\n else {\r\n User admin = new User();\r\n admin.setEmail(adminEmail);\r\n admin.setPassword(adminPassword);\r\n admin.setRole(\"admin\");\r\n this.updateCache(admin);\r\n }\r\n }",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"@Override\n\tprotected void initializeRegionAndEndpoint(ProcessContext context) {\n\t}",
"public String getRegionName() {\r\n return regionName;\r\n }",
"AdministrativeControl administrativeControl();",
"AdministrativeControl administrativeControl();",
"public void setRegionName(String regionName) {\r\n this.regionName = regionName == null ? null : regionName.trim();\r\n }",
"@AutoEscape\n public String getRegion();",
"public int getRegionid() {\n return regionid;\n }",
"public void grantAdminOnIndividualToSystemUser(Individual i, SystemUser user);",
"IRegion getRegion();",
"private void setTenantAdminSCIMAttributes(int tenantId) {\n\n try {\n UserStoreManager userStoreManager = (UserStoreManager) SCIMCommonComponentHolder.getRealmService()\n .getTenantUserRealm(tenantId).getUserStoreManager();\n\n if (userStoreManager.isSCIMEnabled()) {\n Map<String, String> claimsMap = new HashMap<String, String>();\n String adminUsername = ClaimsMgtUtil.getAdminUserNameFromTenantId(IdentityTenantUtil.getRealmService(),\n tenantId);\n String id = UUID.randomUUID().toString();\n Date date = new Date();\n String createdDate = SCIMCommonUtils.formatDateTime(date);\n\n claimsMap.put(SCIMConstants.META_CREATED_URI, createdDate);\n claimsMap.put(SCIMConstants.USER_NAME_URI, adminUsername);\n claimsMap.put(SCIMConstants.META_LAST_MODIFIED_URI, createdDate);\n claimsMap.put(SCIMConstants.ID_URI, id);\n\n userStoreManager.setUserClaimValues(adminUsername, claimsMap,\n UserCoreConstants.DEFAULT_PROFILE);\n\n SCIMCommonUtils.addAdminGroup(userStoreManager);\n }\n } catch (Exception e) {\n String msg = \"Error while adding SCIM metadata to the tenant admin in tenant ID : \" + tenantId;\n log.error(msg, e);\n }\n }",
"public void setAdminUsername(String adminUsername) {\n\tthis.adminUsername = adminUsername;\n}",
"public String getRegionName() {\n return regionName;\n }",
"public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }",
"public long getRegionId() {\r\n return regionId;\r\n }",
"public Optional<AuthLoginAws> authLoginAws() {\n return Codegen.objectProp(\"authLoginAws\", AuthLoginAws.class).config(config).get();\n }",
"@Override\n public void setRole(User u) {\n loginTrue(u.getName());\n uRole = u.getUserRole();\n switch (uRole) {\n case 1:\n nhanvien.setEnabled(true);\n break;\n case 2:\n quanly.setEnabled(false);\n break;\n case 3:\n break;\n case 4:\n dathang.setEnabled(false);\n break;\n case 5:\n baocao.setEnabled(false);\n break;\n }\n }",
"public static void removeDisownRegenPSRegion(LocalPlayer lp, String arg, String region, RegionManager rgm, Player admin) {\n ProtectedRegion r = rgm.getRegion(region);\n switch (arg) {\n case \"disown\":\n DefaultDomain owners = r.getOwners();\n owners.removePlayer(lp);\n r.setOwners(owners);\n break;\n case \"regen\":\n Bukkit.dispatchCommand(admin, \"region select \" + region);\n Bukkit.dispatchCommand(admin, \"/regen\");\n rgm.removeRegion(region);\n break;\n case \"remove\":\n if (region.substring(0, 2).equals(\"ps\")) {\n PSLocation psl = ProtectionStones.parsePSRegionToLocation(region);\n Block blockToRemove = admin.getWorld().getBlockAt(psl.x, psl.y, psl.z); //TODO getWorld might not work\n blockToRemove.setType(Material.AIR);\n }\n rgm.removeRegion(region);\n break;\n }\n }",
"@ApiModelProperty(value = \"State/region of IP address\")\n public String getRegionName() {\n return regionName;\n }",
"public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }",
"java.lang.String getRegionId();",
"public int getRegionid() {\n\treturn regionid;\n}",
"public static void setParameterRegionInfoFromSession(ParameterData parameterData,HttpSession session) {\n\n\t\tint type=((Admin)session.getAttribute(SessionData.SessionKey.LOGIN_USER)).getLevel();\n\t\tif(type==0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tObject loginRegion = session.getAttribute(SessionData.SessionKey.LOGIN_REGION);\n\t\tif(loginRegion==null) {\n\t\t\treturn;\n\t\t}\n\t\tif(type==1) {\n\t\t\tparameterData.setProvinceId(((Province)loginRegion).getProvinceId());\n\t\t} else if(type==2) {\n\t\t\tparameterData.setCityId(((City)loginRegion).getCityId());\n\t\t} else if(type==3) {\n\t\t\tparameterData.setAreaId(((Area)loginRegion).getAreaId());\n\t\t} else if(type==4) {\n\t\t\tparameterData.setStreetId(((Street)loginRegion).getStreetId());\n\t\t} else if(type==5) {\n\t\t\tparameterData.setEnterpriseId(((Enterprise)loginRegion).getId());\n\t\t} \n\t}",
"public SystemRegionExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void setAdmin(boolean value) {\r\n this.admin = value;\r\n }",
"public Builder setRegionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n regionId_ = value;\n onChanged();\n return this;\n }"
]
| [
"0.6511021",
"0.60071874",
"0.5834073",
"0.5782353",
"0.5767279",
"0.5767279",
"0.5767279",
"0.5694749",
"0.5678433",
"0.5678433",
"0.5678433",
"0.5644982",
"0.5388487",
"0.5359159",
"0.5359159",
"0.5355614",
"0.5340673",
"0.5269053",
"0.52426237",
"0.52413064",
"0.5235191",
"0.5157348",
"0.5103367",
"0.5103367",
"0.51025176",
"0.5099824",
"0.50988317",
"0.5068358",
"0.5068074",
"0.5051472",
"0.503945",
"0.50262344",
"0.5024961",
"0.50204134",
"0.50204134",
"0.50204134",
"0.50115377",
"0.5009884",
"0.5003819",
"0.5003819",
"0.5003819",
"0.5003819",
"0.5003819",
"0.49842915",
"0.49639058",
"0.49518955",
"0.4944184",
"0.4942188",
"0.49375558",
"0.49327758",
"0.48999998",
"0.48800907",
"0.48650414",
"0.48639092",
"0.48639092",
"0.4860211",
"0.48514894",
"0.4841475",
"0.48375994",
"0.4832471",
"0.48254448",
"0.48186284",
"0.4815114",
"0.48145574",
"0.48131788",
"0.48131788",
"0.4807764",
"0.48060843",
"0.48024294",
"0.48023525",
"0.4801628",
"0.47997522",
"0.47898558",
"0.47898558",
"0.47898558",
"0.47774896",
"0.47601622",
"0.47574392",
"0.47574392",
"0.4756677",
"0.47487557",
"0.47455102",
"0.47434527",
"0.47321215",
"0.47248298",
"0.47247732",
"0.47182104",
"0.47161832",
"0.4713017",
"0.47065845",
"0.4700334",
"0.46817267",
"0.4677656",
"0.46748352",
"0.466905",
"0.46651995",
"0.46608236",
"0.46592304",
"0.4655343",
"0.46550074"
]
| 0.6711285 | 0 |
Tests the methods of the Employee class. | public static void main(String[] args) {
Employee harry = new Employee("Hacker Harry", 5000);
harry.raiseSalary(10);
double salary = harry.getSalary();
System.out.println(salary);
System.out.println("The expected: 5500");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void EmployeesTest() {\n\n }",
"@Test\r\n\tpublic void addEmployeeTestCase3() {\n\t\tEmployee employee3 = new Employee();\r\n\t\temployee3.name = \"Lingtan\";\r\n\t\temployee3.role = \"Ui designer\";\r\n\t\temployee3.email = \"[email protected]\";\r\n\t\temployee3.employeeID = \"Ling2655\";\r\n\t\temployee3.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee3.gender = \"Male\";\r\n\t\temployee3.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee3.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee3);\t\r\n\t}",
"@Test\r\n\tpublic void addEmployeeTestCase2() {\n\t\tEmployee employee2 = new Employee();\r\n\t\temployee2.name = \"JD\";\r\n\t\temployee2.role = \"Technical Consultant\";\r\n\t\temployee2.email = \"[email protected]\";\r\n\t\temployee2.employeeID = \"Jd2655\";\r\n\t\temployee2.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee2.gender = \"Male\";\r\n\t\temployee2.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee2.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee2);\r\n\t}",
"@Test\r\n\tpublic void addEmployeeTestCase5() {\n\t\tEmployee employee5 = new Employee();\r\n\t\temployee5.name = \"JosephKuruvila\";\r\n\t\temployee5.role = \"Software Developer\";\r\n\t\temployee5.employeeID = \"Jose2455\";\r\n\t\temployee5.email = \"[email protected]\";\r\n\t\temployee5.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee5.gender = \"Male\";\r\n\t\temployee5.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee5.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tboolean isAddedEmployee = EmployeeOperations.addEmployee(employee5);\r\n\t\tassertTrue(isAddedEmployee);\r\n\t}",
"@Test\r\n\tpublic void addEmployeeTestCase1() {\n\t\tEmployee employee1 = new Employee();\r\n\t\temployee1.name = \"JosephKuruvila\";\r\n\t\temployee1.role = \"Software Developer\";\r\n\t\temployee1.employeeID = \"Jose2455\";\r\n\t\temployee1.email = \"[email protected]\";\r\n\t\temployee1.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee1.gender = \"Male\";\r\n\t\temployee1.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee1.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tboolean isAddedEmployee = EmployeeOperations.addEmployee(employee1);\r\n\t\tassertTrue(isAddedEmployee);\r\n\t}",
"@Test\r\n public void testGetAllEMployees() throws Exception {\r\n try {\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n List<Employee> result = instance.getAllEMployees();\r\n assertTrue(result != null);\r\n assertTrue(result.size() > 0);\r\n } catch (Exception ex) {\r\n assertTrue(ex.getMessage().contains(\"NoDataFromDatabase\"));\r\n }\r\n }",
"@Test\n @DisplayName(\"Test for add employee to employee arrayList if correct\")\n public void testAddEmployeeTrue(){\n assertEquals(\"test\",department.getEmployees().get(0).getFirstName());\n assertEquals(\"test\",department.getEmployees().get(0).getLastName());\n assertEquals(\"test\",department.getEmployees().get(0).getPersonNumber());\n }",
"@Before\n public void setUp() {\n e1 = new Employee(\"Pepper Potts\", 16.0, 152);\n e2 = new Employee(\"Nancy Clementine\", 22.0, 140);\n\n }",
"public void setUp()\n {\n empl = new SalariedEmployee(\"romeo\", 25.0);\n }",
"@Test\n public void whenValidName_thenEmployeeShouldBeFound() {\n String name = \"alex\";\n Employee found = employeeService.getEmployeeByName(name);\n\n assertThat(found.getName())\n .isEqualTo(name);\n }",
"@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}",
"@Test\r\n\tpublic void test_getAllEmployees() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t// .pathParam(\"page\", \"0\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(0))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}",
"@Test\n\tpublic void testingAddNewEmployee() {\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.id(\"act_primary\")).click();\n\t\t\n\t\tdriver.findElement(By.id(\"_asf1\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl1\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase1\")).sendKeys(\"emailAddress\");\n\t\t\n\t\tdriver.findElement(By.id(\"_as_save_multiple\")).click();\n\t\t\n\t\tWebElement newEmployee = driver.findElement(By.linkText(\"FirstName LastName\"));\n\t\tassertNotNull(newEmployee);\n\t\t\n\t}",
"@Ignore\n @Test\n public void testEmployees() {\n Map<String, Object> map = new HashMap<>();\n map.put(\"uid\", \"jjcale\");\n map.put(\"uhUuid\", \"10000004\");\n\n AttributePrincipal principal = new AttributePrincipalImpl(\"jjcale\", map);\n Assertion assertion = new AssertionImpl(principal);\n CasUserDetailsServiceImplj userDetailsService = new CasUserDetailsServiceImplj(userBuilder);\n User user = (User) userDetailsService.loadUserDetails(assertion);\n\n // Basics.\n assertThat(user.getUsername(), is(\"jjcale\"));\n assertThat(user.getUid(), is(\"jjcale\"));\n assertThat(user.getUhUuid(), is(\"10000004\"));\n\n // Granted Authorities.\n assertThat(user.getAuthorities().size(), is(3));\n assertTrue(user.hasRole(Role.ANONYMOUS));\n assertTrue(user.hasRole(Role.UH));\n assertTrue(user.hasRole(Role.EMPLOYEE));\n\n assertFalse(user.hasRole(Role.ADMIN));\n }",
"@Test\r\n\tpublic void testGetEmployee() {\n\t\tTransaction test=new Transaction(null, null, 0, null, null, null, null, null);\r\n\t\t\r\n\t\tassertEquals(test.getID(),null); \r\n\t\t\r\n\t}",
"@Test\n public void getEmployeesForDate(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEMployeesForDate(\"2017-01-01\"));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n }",
"@Test\r\n public void testRegister1() throws Exception {\r\n String employee_account = System.currentTimeMillis() + \"\";\r\n String employee_name = \"XiaoBo\";\r\n int department_id = 1;\r\n int position_id = 1;\r\n String password = \"admin\";\r\n int status = 1;\r\n String date = \"\";\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n int expResult = 1;\r\n Employee result = instance.register(employee_account, employee_name, department_id, position_id, password, status, date);\r\n assertTrue(expResult <= result.getEmployee_id());\r\n }",
"@Test\n public void getEmployeeById() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEmployee(\"dummy\"));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Test\r\n public void testCalculate_salary() {\r\n assertEquals(2, s.calculate_salary(1, 1));\r\n }",
"@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }",
"@Test\n\tpublic void testingMultipleEmployees() {\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.id(\"act_primary\")).click();\n\t\t\n\t\tint beforeAdd = driver.findElements(By.tagName(\"a\")).size();\n\t\t\n\t\tdriver.findElement(By.id(\"_asf1\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl1\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase1\")).sendKeys(\"[email protected]\");\n\t\t\n\t\tdriver.findElement(By.id(\"_asf2\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl2\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase2\")).sendKeys(\"[email protected]\");\n\t\t\n\t\tdriver.findElement(By.id(\"_as_save_multiple\")).click();\n\t\t\n\t\tint afterAdd = driver.findElements(By.tagName(\"a\")).size();\n\t\t\n\t\tint newAdded = beforeAdd - afterAdd;\n\t\t\n\t\tassertEquals(2, newAdded);\n\t\t\n\t}",
"@Test\n void employee_test(){\n Employee test_emp = new Employee();\n test_emp.parseInput(\"Johnson,Eric,77777\");\n assertTrue((test_emp.getLastName().equals(\"Johnson\"))&&(test_emp.getFirstName().equals(\"Eric\"))&&(test_emp.getSalary().equals(\"77777\")));\n }",
"@Test\n public void testGetSex() {\n System.out.println(\"getSex\");\n Manager instance = new Manager();\n int expResult = 0;\n int result = instance.getSex();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void verifyThatEmployeesAreReal() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }",
"@Test\n public void employeeRetrieveTest() {\n Mockito.when(this.rolService.getRoles()).thenReturn(Arrays.asList(new Rol()));\n Assert.assertNotNull(this.rolController.retrieve(new HttpHeaders()));\n }",
"@Test\n public void getEmployeeByIdCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNull(employeeResource.getEmployee(\"notdummy\"));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}",
"@Test\n public void getAvailableEmployeeById() {\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n\n //creating dummy shiftlist\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n //test\n assertNotNull(availableEmployeeResource.getAvailableEmployees(new AvailableEmployee(2,\"2017-02-02\",3)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser(\"dummy3\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy3\"));\n }",
"@Test\n public void createEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n assertFalse(employeeResource.createEmployee(new Employee(\"notdummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1)));\n\n //removing test data after tests to avoid clutter in database\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Test\n public void updateEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertFalse(employeeResource.updateEmployee(new Employee(\"notdummy\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", 1)));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}",
"@Test\n public void updateEmployee() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertTrue(employeeResource.updateEmployee(new Employee(\"dummy\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", 1)));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Test\r\n public void testUpdateEmployee1() throws Exception {\r\n try {\r\n\r\n int employee_id = 0;\r\n int department_id = 1;\r\n int position_id = 1;\r\n int status = 1;\r\n String date = \"\";\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n boolean expResult = false;\r\n boolean result = instance.updateEmployee(employee_id, department_id, position_id, status, date);\r\n assertEquals(expResult, result);\r\n } catch (Exception ex) {\r\n assertTrue(ex.getMessage().contains(\"Wrong Required Parameters\"));\r\n }\r\n }",
"@Test\n public void testGetNumberOfPersonWithHobby() {\n System.out.println(\"getNumberOfPersonWithHobby\");\n String hobbyName = \"Football\";\n FacadePerson instance = new FacadePerson(emf);\n int expResult = 2;\n int result = instance.getNumberOfPersonWithHobby(hobbyName);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n\n }",
"@Test\n public void removeEmployee() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n //removing dummy data to avoid clutter in database\n assertTrue(employeeResource.removeEmployee(\"dummy\"));\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Test\n public void getEmployeesForShift(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEmployeesForShift(\"dummy\", 1));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n }",
"@Test\n public void getAllEmployees() {\n List<Employees> employeesList = employeeDAO.getEmployees().collect(Collectors.toList());\n Assertions.assertEquals(107, employeesList.size());\n }",
"@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Employee sum = null;\n assertFalse(emp.equals(sum));\n sum = new Employee(1, \"Anu\", \"Sha\", 12345678, new Date(), 600000);\n assertFalse(emp.equals(sum));\n sum = new Employee(1, \"Auk\", \"Sau\", 12345678, new Date(), 600000);\n assertEquals(emp, sum);\n \n }",
"@Test\n\tvoid getEmployes() throws SQLException {\n\t\tLigue ligue = new Ligue(\"Fléchettes\");\n\t\tEmploye employe = ligue.addEmploye(\"Bouchard\", \"Gérard\", \"[email protected]\", \"azerty\", LocalDate.now()); \n\t\tassertEquals(employe, ligue.getEmployes().first());\n\t\t//Vérifier qu'il n'est pas ajouté 2 fois\n\t}",
"@Test\n public void testGetName() {\n System.out.println(\"getName\");\n Manager instance = new Manager();\n String expResult = \"\";\n String result = instance.getName();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\r\n public void testLogin1() throws Exception {\r\n String employee_account = \"D00198309\";\r\n String password = \"admin\";\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n Employee result = instance.login(employee_account, password);\r\n assertTrue(result != null);\r\n }",
"@Test\n public void removeEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n assertFalse(employeeResource.removeEmployee(\"notdummy\"));\n\n //removing dummy data to avoid clutter in database\n employeeResource.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Test\n public void testGetUsername() {\n System.out.println(\"getUsername\");\n Manager instance = new Manager();\n String expResult = \"\";\n String result = instance.getUsername();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void getEmpleadoTest() {\n EmpleadoEntity entity = data.get(0);\n EmpleadoEntity resultEntity = empleadoLogic.getEmpleado(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombreEmpleado(), resultEntity.getNombreEmpleado());\n Assert.assertEquals(entity.getNombreUsuario(), resultEntity.getNombreUsuario());\n }",
"@Test\n void parser_Test() throws IOException {\n Parser test_parse = new Parser();\n List<Employee> test_list;\n test_list = test_parse.parseInput(\"data\\\\exercise42_test_input.txt\");\n assertEquals(\"Hideo\",test_list.get(1).getFirstName());\n }",
"@Test\r\n\tpublic void test_updateEmployeeDetail() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"id\", \"2\")//\r\n\t\t\t\t.body(new EmployeeDto(2L, \"sunil\", \"changed\", \"[email protected]\"))//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.put(\"/api/v1/employee\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"id\", equalTo(2))//\r\n\t\t\t\t.body(\"firstName\", equalTo(\"sunil\"))//\r\n\t\t\t\t.body(\"lastName\", equalTo(\"changed\"))//\r\n\t\t\t\t.body(\"emailId\", equalTo(\"[email protected]\"));\r\n\r\n\t}",
"@Test\n\tpublic void postCallMethod() throws JsonGenerationException, JsonMappingException, IOException {\n\t\tpostMethod = new RestClient();\n\n\t\t// Header Value to Pass with GET Method (URI is already ready in before Method)\n\t\tHashMap<String, String> header = new HashMap<String, String>();\n\t\theader.put(\"Content-Type\", \"application/json\");\n\n\t\t// Create Java Object (POJO) in which data is stored\n\t\tString name = \"Manish\" + TestUtil.getCurrentDateTimeStamp();\n\t\tSystem.out.println(\"Name: \" + name);\n\t\tEmployee employee = new Employee(name, \"10000\", \"25\", null);\n\n\t\t// Convert POJO into JSON Object\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.writeValue(new File(System.getProperty(\"user.dir\") + \"/src/main/java/employee.json\"), employee);\n\n\t\t// java Object to JSON in string (Marshelling)\n\t\tString usersJsonString = mapper.writeValueAsString(employee);\n\n\t\t// POST method is called using URI,JSON body and headers and response is saved\n\t\t// in variable\n\t\tresponseUnderPostRequest = postMethod.post(URI, usersJsonString, header);\n\n\t\t// Output of POST call\n\t\t// Validation part (For POST method output is 1.StatusCode,2.Response\n\t\t// JSON,3.Header)\n\t\t// 1. Retrieve Response Status Code and Assert it\n\t\tint StatusCode = responseUnderPostRequest.getStatusLine().getStatusCode();\n\t\tAssert.assertEquals(StatusCode, RESPONSE_STATUS_CODE_200);\n\n\t\t// 2.Retrieve Response JSON Object as a String\n\t\tString jsonString = EntityUtils.toString(responseUnderPostRequest.getEntity(), \"UTF-8\");\n\n\t\t/*\n\t\t * JSONObject jsonObject=new JSONObject(jsonString);\n\t\t * System.out.println(jsonObject);\n\t\t */\n\n\t\t// Convert JSON Object to java object POJO (Unmarshelling) and Assert with\n\t\t// Previous JAVA Object POJO\n\t\tEmployee responseUser = mapper.readValue(jsonString, Employee.class);\n\t\tAssert.assertTrue(responseUser.getName().equals(employee.getName()));\n\t}",
"Employee() {\n\t}",
"@Test\n public void testGetManagerType() {\n System.out.println(\"getManagerType\");\n Manager instance = new Manager();\n int expResult = 0;\n int result = instance.getManagerType();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testGetManagerId() {\n System.out.println(\"getManagerId\");\n Manager instance = new Manager();\n int expResult = 0;\n int result = instance.getManagerId();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"public void addEmployee(Employee emp) {\n\t\t\r\n\t}",
"@Test\n public void testGetPointId() {\n System.out.println(\"getPointId\");\n Manager instance = new Manager();\n int expResult = 0;\n int result = instance.getPointId();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"public static void main(String[] args) {\n\t\t\n\t\tEmployee theEmployee = new Employee();\n\t\t\n//\t\twhat does it mean below setter? by this section we assign value to variables.\n\t\ttheEmployee.setId(1000);\n\t\ttheEmployee.setName(\"Ramesh\");\n\t\ttheEmployee.setPosition(\"Mangaer\");\n\t\ttheEmployee.setSalary(10000.88);\n//\t\tby thes getters we print the data.\n\t\tSystem.out.println(theEmployee.getId());\n\t\tSystem.out.println(theEmployee.getName());\n\t\tSystem.out.println(theEmployee.getPosition());\n\t\tSystem.out.println(theEmployee.getSalary());\n\t\tSystem.out.println(theEmployee.getClass());\n\t\n\t\tSystem.out.println(\"====================================\");\n\t\t\n\t\tEmployee theEmployee1 = new Employee();\n\t\t\n\t\ttheEmployee1.setId(2);\n\t\ttheEmployee1.setName(\"Rahim\");\n\t\ttheEmployee1.setPosition(\"Team leader\");\n\t\ttheEmployee1.setSalary(22.88);\n\t\t\n\t\tSystem.out.println(theEmployee1.getId());\n\t\tSystem.out.println(theEmployee1.getName());\n\t\tSystem.out.println(theEmployee1.getPosition());\n\t\tSystem.out.println(theEmployee1.getSalary());\n\t\tSystem.out.println(theEmployee1.getClass());\n\t\t\n\t\t\n\tSystem.out.println(\"============================\");\n\t\n\tEmployee theEmployee2 = new Employee();\n\t\n\ttheEmployee2.setId(9);\n\ttheEmployee2.setName(\"Ramin\");\n\ttheEmployee2.setPosition(\"Superwiser\");\n\ttheEmployee2.setSalary(15000.00);\n\t\n\tSystem.out.println(theEmployee2.getId());\n\tSystem.out.println(theEmployee2.getName());\n\tSystem.out.println(theEmployee2.getPosition());\n\tSystem.out.println(theEmployee2.getSalary());\n\tSystem.out.println(theEmployee2.getClass());\n\t\n\t\t\n\t}",
"public static void main(String[] args) {\n Test_findByEmpno();\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tEmployee_Demo ans= new Employee_Demo();\r\n\t\t\r\n\t\tans.setAge(25);\r\n\t\tans.setEmployeeName(\"sankar suresh\");\r\n\t\tans.setCity(\"pondicherry\");\r\n\t\tans.setemployeID(785303);\r\n\t\tans.setSalary(30000);\r\n\t\tans.setSex(\"male\");\r\n\t\tSystem.out.println(\"age of the emp :\"+ans.getAge());\r\n\t\tSystem.out.println(\"City of the emp :\"+ans.getCity());\r\n\t\tSystem.out.println(\" salary of the emp :\"+ans.getSalary());\r\n\t\tSystem.out.println(ans.getEmployeID());\r\n\t\tSystem.out.println(ans.getSex());\r\n\r\n\t\t\r\n\r\n\t}",
"@Test\n public void testEmergencyAddress() {\n // TODO: test EmergencyAddress\n }",
"@Test\n\tpublic void testDeletingEmployee() {\n\t\t\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.linkText(\"FirstName LastName\")).click();\n\t\tdriver.findElement(By.linkText(\"Click Here\")).click();\n\t\t\n\t\tAlert alert = driver.switchTo().alert();\n\t\talert.accept();\n\t\t\n\t\tassertEquals(0, driver.findElements(By.linkText(\"FirstName LastName\")).size());\n\t\t\n\t}",
"@Test\n public void testPerson() {\n }",
"@Test\r\n\tpublic void test_getEmployeeById() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"id\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employee\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200);\r\n\t}",
"public void testGetAllTitles() {\r\n System.out.println(\"getAllEmployees\");\r\n List expResult = null;\r\n List result = TitleDao.getAllTitles();\r\n assertEquals(expResult, result);\r\n }",
"@Override\n\tpublic int saveEmployee() {\n\t\tEmployeeDao dao= new EmployeeDao();\n\t\tint result=dao.saveEmployee(new Employee(101349, \"Deevanshu\", 50000));\n\t\treturn result;\n\t}",
"public static void main(String[] args) {\n\r\n System.out.println(\"* * * * * Welcome to the employee inform * * * * * \");\r\n\r\n Employee_Company Jane = new Employee_Company();\r\n Employee_Company Lucas = new Employee_Company();\r\n Employee_Company Intern_Sophia = new Employee_Company();\r\n Employee_Company Intern_Ava = new Employee_Company();\r\n Employee_Company Intern_James = new Employee_Company();\r\n Employee_Company Intern_Nicholas = new Employee_Company();\r\n\r\n\r\n Lucas.Set_name_employee(\"Lucas Smith\");\r\n Lucas.Set_Email_employee(\"[email protected]\");\r\n Lucas.Set_role_employee(\"Software Engineer\");\r\n Lucas.setSalary_employee(103438);\r\n\r\n\r\n Jane.Set_name_employee(\"Jane charlotte\");\r\n Jane.Set_Email_employee(\"[email protected]\");\r\n Jane.setSalary_employee(623100);\r\n Jane.Set_role_employee(\"CEO Tech Company\");\r\n\r\n\r\n Intern_Sophia.Set_name_employee(\"Sophia Wood\");\r\n Intern_Sophia.Set_Intern_application('A');\r\n Intern_Sophia.Set_role_employee(\"Intern Artificial Intelligence \");\r\n\r\n\r\n Intern_Ava.Set_name_employee(\"Ava Richardson\");\r\n Intern_Ava.Set_Intern_application('B');\r\n Intern_Ava.Set_role_employee(\"Intern Computer Science\");\r\n\r\n\r\n Intern_James.Set_name_employee(\"James Benjamin\");\r\n Intern_James.Set_Intern_application('B');\r\n Intern_James.Set_role_employee(\"Intern Business Analyst\");\r\n\r\n\r\n Intern_Nicholas.Set_name_employee(\"Nicholas Miller\");\r\n Intern_Nicholas.Set_Intern_application('C');\r\n Intern_Nicholas.Set_role_employee(\"Intern Systems Integration Engineering\");\r\n\r\n\r\n\r\n System.out.println(\"\\n\\t*** Tech Company employee information ***\");\r\n System.out.println(\"1. View Salary\");\r\n System.out.println(\"2. View Name of the Employee\");\r\n System.out.println(\"3. View Email Address\");\r\n System.out.println(\"4. View Employee Role\");\r\n System.out.println(\"5. View Intern Application grade\");\r\n\r\n\r\n\r\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"Direction: Input the number is addressed in Tech Company employee information\");\r\n int input_user = input.nextInt();\r\n\r\n switch (input_user){\r\n case 1 -> {\r\n System.out.println(\"Here is the salary of the employee of Tech Company\");\r\n System.out.println(\"Salary of Software engineering: \"+Lucas.getSalary_employee());\r\n System.out.println(\"Salary of CEO: \"+Jane.getSalary_employee());\r\n }\r\n case 2 ->{\r\n System.out.println(\"Here is the name of the employee of Tech Company\");\r\n System.out.println(\"The software engineering of Tech Company name of the employee is: \"+Jane.Get_name_employee());\r\n System.out.println(\"The CEO Tech Company name of the employee is: \"+Lucas.Get_name_employee());\r\n }\r\n case 3 ->{\r\n System.out.println(\"Here is the Email Address of employee of Tech Company\");\r\n System.out.println(\"Jane Charlotte is CEO of Tech company Email Address its : \"+Jane.Get_Email_employee());\r\n System.out.println(\"Lucas Smith is Software Engineering of Tech Company Email Address its: \"+Lucas.Get_Email_employee());\r\n }\r\n case 4 ->{\r\n System.out.println(\"Here is the Employee Role of Tech Company\");\r\n System.out.println(Jane.Get_role_employee());\r\n System.out.println(Lucas.Get_role_employee());\r\n }\r\n case 5 ->{\r\n System.out.println(\"Here is all the Intern get accepted to Tech Company \");\r\n System.out.println(\"1.\"+Intern_Ava.Get_name_employee()+\" GPA college: \"+Intern_Ava.Get_Intern_application()+\"- \"+\" Application: Accepted \"+Intern_Ava.Get_role_employee());\r\n System.out.println(\"2.\"+Intern_Sophia.Get_name_employee()+\" GPA college: \"+Intern_Sophia.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Sophia.Get_role_employee());\r\n System.out.println(\"3.\"+Intern_James.Get_name_employee()+\" GPA college: \"+Intern_James.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_James.Get_role_employee());\r\n System.out.println(\"4.\"+Intern_Nicholas.Get_name_employee()+\"GPA college: \"+Intern_Nicholas.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Nicholas.Get_role_employee());\r\n }\r\n }\r\n\r\n\r\n\r\n }",
"@Test\n public void testGetSexString() {\n System.out.println(\"getSexString\");\n Manager instance = new Manager();\n String expResult = \"\";\n String result = instance.getSexString();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void getEmployeeByCategory() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEmployeeCategory(1));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"public void listEmployees() {\n\t\tSession session = factory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tList employees = session.createQuery(\"FROM Employee\").list();\n\t\t\tfor (@SuppressWarnings(\"rawtypes\")\n\t\t\tIterator iterator = employees.iterator(); iterator.hasNext();) {\n\t\t\t\tEmployee employee = (Employee) iterator.next();\n\t\t\t\tSystem.out.print(\"First Name: \" + employee.getFirstName());\n\t\t\t\tSystem.out.print(\" Last Name: \" + employee.getLastName());\n\t\t\t\tSystem.out.println(\" Salary: \" + employee.getSalary());\n\t\t\t}\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif (transaction != null)\n\t\t\t\ttransaction.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}",
"@Override\n\tpublic void updateEmployee() {\n\n\t}",
"@Test\n public void findById_2(){\n String firstName=\"prakash\",lastName=\"s\";\n int age=21;\n String city=\"chennai\", houseNo=\"c-1\";\n Address address1=new Address(city, houseNo);\n Employee employee1=new Employee(firstName,lastName,age,address1);\n employee1=mongo.save(employee1);\n Employee fetched=employeeService.findById(employee1.getId());\n Assertions.assertEquals(firstName, fetched.getFirstName());\n Assertions.assertEquals(lastName,fetched.getLastName());\n Assertions.assertEquals(employee1.getId(),fetched.getId());\n Assertions.assertEquals(age, fetched.getAge());\n\n }",
"@Test\n\tpublic void testActualizaEmp() {\n\n\t\tboolean valor = serv.actualizaEmp(empl, \"tel\", \"55677354\");\n\t\tassertEquals(\"Se esperaba un false\",valor, true);\n\t}",
"public void getEmployee() {\r\n //what needs to be returned?\r\n }",
"@Test\n\tpublic void testFindEmployeeOrders() {\n\t\tSystem.out.println(\"started test testFindEmployeeOrders\");\n\t\tlong start = System.currentTimeMillis();\n\t\tFlux<Order> empFoundOrders = employeeController.findEmployeeOrders(employee.getAge()).take(10);\n\t\tStepVerifier.create(empFoundOrders)\n\t\t\t\t\t.expectSubscription()\n\t\t\t\t\t.expectNextCount(10)\n\t\t\t\t\t.verifyComplete();\n\t\tlong end = System.currentTimeMillis();\n\t\tdouble totatSeconds = (end-start)/1000;\n\t\tSystem.out.println(\"completed test testFindEmployeeOrders in time \"+totatSeconds);\n\t}",
"public Employee() {\n }",
"public Employee() {\n }",
"public Employee() {\n }",
"@Test\n public void testGetFirstName() {\n System.out.println(\"getFirstName\");\n String expResult = \"Bill\";\n String result = customer.getFirstName();\n assertEquals(expResult, result);\n }",
"@Test\n public void testFindAll_Person_TimeSlot() {\n // more or less tested in testFindEntity_Person_TimeSlot()\n }",
"public void xxx() {\n System.out.println(\"Salary: \" + salary);\n printInfo();\n\n Employee e = new Employee(\"Andy\", \"123\", 26);\n// System.out.println(\"Name: \" + e.name + \"; Age: \" + e.age + \";ID: \" + e.id);\n\n Manager m = new Manager(\"Andylee\", \"124\", 27);\n// System.out.println(\"Name: \" + m.name + \"; Age: \" + m.age + \";ID: \" + m.id);\n\n }",
"@Test\r\n\tpublic void test3(){\n\t \tE1.setLastName(\"LN1\");\r\n\t\tE2.setLastName(\"LN2\");\r\n\t String actual = E1.getLastName();\r\n String expected = \"LN1\";\r\n assertEquals(actual,expected);\r\n }",
"@Test\n public void test() {\n\n /*\n * Testing to find all list of Offices\n */\n List<Employee> all = employeeDao.findAll();\n Assert.assertNotNull(all);\n for (Employee eml : all) {\n System.out.println(eml.toString());\n }\n Assert.assertEquals(5, all.size());\n\n /*\n * Testing to find Employee by ID\n */\n Employee employeeById = employeeDao.findById(3);\n Assert.assertNotNull(employeeById);\n Assert.assertEquals(\"Борис\", employeeById.getFirstName());\n Assert.assertEquals(3, employeeById.getOffice().getId().longValue());\n\n /*\n * Testing to find Employee by Filter without REQUIRED PARAMETER: OFFICE_ID\n */\n EmployeeFilter filterWithoutRequiredOfficeId = new EmployeeFilter();\n filterWithoutRequiredOfficeId.firstName = \"и\";\n List<Employee> employeeListWithoutRequiredOfficeId = employeeDao.findByFilter(filterWithoutRequiredOfficeId);\n Assert.assertNull(employeeListWithoutRequiredOfficeId);\n\n /*\n * Testing to find Employee by Filter with REQUIRED PARAMETER: OFFICE_ID + potential parameter firstNAme and citizenshipCode\n */\n EmployeeFilter filter = new EmployeeFilter();\n filter.officeId = 3;\n filter.firstName = \"рис\";\n List<Employee> employeeByFilterList = employeeDao.findByFilter(filter);\n Assert.assertNotNull(employeeByFilterList);\n for (Employee emp : employeeByFilterList) {\n System.out.println(emp.toString());\n }\n Assert.assertEquals(3, employeeByFilterList.get(0).getId().longValue());\n\n EmployeeFilter filter1 = new EmployeeFilter();\n filter1.officeId = 1;\n filter1.citizenshipCode = \"601\";\n List<Employee> employeeList = employeeDao.findByFilter(filter1);\n Assert.assertNotNull(employeeList);\n for (Employee emp : employeeList) {\n System.out.println(emp.toString());\n }\n Assert.assertEquals(1, employeeList.size());\n Assert.assertEquals(\"Российская Федерация\", employeeList.get(0).getCountry().getName());\n Assert.assertEquals(\"Никита\", employeeList.get(0).getFirstName());\n\n /*\n * Testing to save(add) new Employee\n */\n Office setableOffice = officeDao.findById(1);\n Document setableDocument = documentDao.findByCode(String.valueOf(21));\n Country setableCountry = countryDao.findByCode(String.valueOf(601));\n Assert.assertNotNull(setableOffice);\n Employee savableEmployee = new Employee();\n savableEmployee.setOffice(setableOffice);\n savableEmployee.setFirstName(\"Евгений\");\n savableEmployee.setPosition(\"программист\");\n savableEmployee.setDocument(setableDocument);\n savableEmployee.setCountry(setableCountry);\n employeeDao.save(savableEmployee);\n Employee empl2 = employeeDao.findById(6);\n System.out.println(empl2.toString());\n Assert.assertEquals(\"Евгений\", empl2.getFirstName());\n\n /*\n * Testing to update Employee by ID\n */\n Employee updatebleEmployee = employeeDao.findById(6);\n updatebleEmployee.setFirstName(\"Евгения\");\n updatebleEmployee.setSecondName(\"Лоськова\");\n updatebleEmployee.setPosition(\"младший программист\");\n updatebleEmployee.setIsIdentified(true);\n employeeDao.update(updatebleEmployee);\n System.out.println(employeeDao.findById(6).toString());\n Assert.assertEquals(\"Лоськова\", employeeDao.findById(6).getSecondName());\n }",
"@Test\n public void testGetPersonByPhone() {\n System.out.println(\"getPersonByPhone\");\n String number = \"42676936\";\n FacadePerson instance = new FacadePerson(emf);\n String expResult = \"Andreas\";\n String result = instance.getPersonByPhone(number).getFirstName();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }",
"@Test\n public void testGetLastName() {\n System.out.println(\"getLastName\");\n String expResult = \"Gates\";\n String result = customer.getLastName();\n assertEquals(expResult, result);\n }",
"public static void main (String[] args) //self testing main method\r\n {\n Employee emp = new Employee (\"John\", \"Smith\", \"P0444444\");\r\n System.out.println(emp.toString());\r\n System.out.println(emp.getFirstName());\r\n System.out.println(emp.getLastName());\r\n System.out.println(emp.getID());\r\n // change employee information\r\n emp.setFirstName(\"Joanne\");\r\n emp.setLastName(\"Johnson\");\r\n emp.setID(\"P0123456\");\r\n // display again\r\n System.out.println(emp.toString());\r\n }",
"@Override\n\tpublic void deleteEmployee() {\n\n\t}",
"@Test\n public void testFindAll_Event_Job() {\n // more or less tested in testFindEntity_Event_Job()\n }",
"public Employee() {\t}",
"public Employee() {\n\t\tSystem.out.println(\"Employee Contructor Called...\");\n\t}",
"@Test\n public void testSetName() {\n System.out.println(\"setName\");\n user.setName(\"Mauricio\");\n assertEquals(\"Mauricio\", user.getName());\n }",
"public static void main(String[] args) throws NullPointerException {\n\n\t\t// default constructor\n\t\tEmployeeInfo employeeInfo = new EmployeeInfo();\n\t\tEmployeeInfo employeeInfo1 = new EmployeeInfo(\" FORTUNE COMPANY \");\n\n\t\tEmployeeInfo emp1 = new EmployeeInfo(1, \"Abrah Lincoln\", \"Accounts\", \"Manager\", \"Hodgenville, KY\");\n\t\tEmployeeInfo emp2 = new EmployeeInfo(2, \"John F Kenedey\", \"Marketing\", \"Executive\", \"Brookline, MA\");\n\t\tEmployeeInfo emp3 = new EmployeeInfo(3, \"Franklin D Rossevelt\", \"Customer Realation\", \"Assistnt Manager\",\n\t\t\t\t\"Hyde Park, NY\");\n\n\n\t\t// Printing Employee information in this pattern\n\t\t// \"ID Name Number Department Position Years Worked Pension Bonus Total salary \"\n\n\t\tSystem.out.println(emp1.employeeId() + \"\\t\" + emp1.employeeName() + \"\\t\\t\" + emp1.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp1.getJobTitle() + \"\\t\\t\\t\" + emp1.getYearsWorked() + \"\\t\\t\" + emp1.calculateEmployeePension()\n\t\t\t\t+ \"\\t\" + emp1.calculateEmployeeBonus() + \"\\t\\t\" + emp1.calculateSalary());\n\n\t\tSystem.out.println(emp2.employeeId() + \"\\t\" + emp2.employeeName() + \"\\t\\t\" + emp2.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp2.getJobTitle() + \"\\t\\t\" + emp2.getYearsWorked() + \"\\t\\t\" + emp2.calculateEmployeePension() + \"\\t \"\n\t\t\t\t+ emp2.calculateEmployeeBonus() + \"\\t\\t\" + emp2.calculateSalary());\n\n\t\tSystem.out.println(emp3.employeeId() + \"\\t\" + emp3.employeeName() + \"\\t\" + emp3.getDepartment() + \"\\t\"\n\t\t\t\t+ emp3.getJobTitle() + \"\\t\" + emp3.getYearsWorked() + \"\\t\\t \" + emp3.calculateEmployeePension() + \"\\t\"\n\t\t\t\t+ emp3.calculateEmployeeBonus() + \" \\t\\t\" + emp3.calculateSalary());\n\n\n\n\t}",
"@Test\r\n\tpublic void test2(){\n\t \tE1.setFirstName(\"FN1\");\r\n\t\tE2.setFirstName(\"FN2\");\r\n\t String actual = E1.getFirstName();\r\n String expected = \"FN1\";\r\n assertEquals(actual,expected);\r\n }",
"public Employee() {\n\t\tsuper();\n\t}",
"public Employee(){\n\t\t\n\t}",
"public Employee(){\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Test\n public void getStaff() {\n \n Assert.assertEquals(aService.getDoctorAge(), 23);\n Assert.assertEquals(nService.getDoctorName(), \"Karriem\");\n }",
"@Override\n public void setEmployees() throws EmployeeCreationException {\n\n }",
"boolean hasEmployee();",
"boolean hasEmployee();",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"----------------HR representatives Log in----------------\");\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter your USERNAME: \");\n\t\tString username = input.nextLine();\n\t\tSystem.out.println(\"Please enter your PASSWORD: \");\n\t\tString password = input.nextLine();\n\t\tSystem.out.println();\n\t\t\n\t\t//test public static int getEmployeeID (String user, String password) method\n\t\tint empID = DAManager.getEmployeeID(username, password);\n\t\t\n\t\tif (empID == 0) {\n\t\t\tSystem.out.println(\"You are an unauthorized user.\");\n\t\t\tSystem.exit(0);\n\t\t}else {\n\t\t\tSystem.out.println(\"You have passed the credential check.\\n\");\n\t\t\tSystem.out.println(\"Your information is : \");\n\t\t\t//test public static Employee getEmployeeByID(int empid) method \n\t\t\tEmployee HR_emp = DAManager.getEmployeeByID(empID);\n\t\t\tHR_emp.display();\n\t\t\t\n\t\t\t//test public static void addEmployee (Employe emp) method\n\t\t\tSystem.out.println(\"\\nAdd one employee inte EMPLOYEE table\");\n\t\t Employee added_emp = new Employee(207, \"Yuhang\", \"Zhao\", \"[email protected]\", \"111-222-3333\", java.sql.Date.valueOf(\"2020-09-01\"), \"IT_PROG\", 30000, 0.0,102,60);\n\t\t\tDAManager.addEmployee(added_emp);\n\t\t\t\n\t\t\t//test public static ArrayList<Employe> getAllEmployees() method\n\t\t\tSystem.out.println(\"\\nGet an ArrayList including all employee info\");\n\t\t\tArrayList<Employee> empList = DAManager.getAllEmployees();\n\t\t\tSystem.out.println(\"The 1st employee info within this arrayList is:\");\n\t\t\t(empList.get(0)).display();\n\t\t\tSystem.out.println(\"The number of employees in EMPLOYEES table is: \"+ empList.size());\n\t\t\t\n\t\t\t//test public static ArrayList<Employe> getEmployeesByDepartmentID (int depid) method \n\t\t\tSystem.out.println(\"\\nGet an ArrayList including all employee info in the department_ID 60: \");\n\t\t\tArrayList<Employee> empListByDep = DAManager.getEmployeesByDepartmentID(60);\n\t\t\tSystem.out.println(\"The 1st employee info within this arrayList is:\");\n\t\t\t(empListByDep.get(0)).display();\n\t\t\tSystem.out.println(\"The number of employees in deaprtment ID 60 is: \"+empListByDep.size());\n\t\t\t\n\t\t\t//test public static int updateEmployee (Employee emp) method\n\t\t\tSystem.out.println(\"\\nUpdate the employee#99 info\");\n\t\t\tEmployee updated_emp = new Employee(207, \"James\", \"Bob\", \"[email protected]\", \"123-345-1111\", java.sql.Date.valueOf(\"2019-11-01\"), \"FI_ACCOUNT\", 24000, 0.0, 108, 100);\n\t\t\tDAManager.updateEmployee(updated_emp);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//test public static boolean batchUpdate(String[] SQLs) method\n\t\t\tSystem.out.println(\"\\nTest batchUpdate method: \");\n\t\t\tString batchSQL1 = \"INSERT INTO EMPLOYEES(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, hire_date, job_id) \" + \n\t\t\t\t\t\"VALUES(208, 'Lebron', 'James', '[email protected]', '111-111-2222', TO_DATE('01-Jan-2017', 'DD-MM-YYYY','NLS_DATE_LANGUAGE = American'), 'IT_PROG')\";\n\t\t\tString batchSQL2 = \"INSERT INTO EMPLOYEES(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, hire_date, job_id) \" + \n\t\t\t\t\t\"VALUES(209, 'Kevin', 'Durant', '[email protected]', '111-222-3333', SYSDATE, 'AD_VP')\";\n\t\t\tString batchSQL3 = \"INSERT INTO EMPLOYEES(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, hire_date, job_id) \" + \n\t\t\t\t\t\"VALUES(210, 'Kris', 'Smith', '[email protected]', '111-333-4444', SYSDATE, 'ST_MAN')\";\n\t\t\tString[] SQLs = new String[3];\n\t\t\tSQLs[0] = batchSQL1;\n\t\t\tSQLs[1] = batchSQL2;\n\t\t\tSQLs[2] = batchSQL3;\n\t\t\tif(DAManager.batchUpdate(SQLs)) {\n\t\t\t\tSystem.out.println(\"Success. This transaction is successfully executed!\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Failed. All SQL statements are rolled back.\");\n\t\t\t};\n\t\t\t\n\t\t\t//test public static int deleteEmployeeByID (int empid) method\n\t\t\tSystem.out.println(\"\\nDelete the employee#210\");\n\t\t\tDAManager.deleteEmployeeByID(210);\n\t\t}\n\n\t}",
"@Test\n public void addContacts() {\n }",
"@Test\r\n public void testDoctor_info() {\r\n System.out.println(\"doctor_info\");\r\n doctor instance = new doctor();\r\n instance.doctor_info();\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 }",
"public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"[email protected]\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}",
"@Test\n public void Person_givenUsername_thenPersonHasGivenUsername() {\n }"
]
| [
"0.777356",
"0.7586604",
"0.7483968",
"0.7420682",
"0.73841166",
"0.7108935",
"0.68831223",
"0.68609583",
"0.682081",
"0.6780084",
"0.6761019",
"0.6648124",
"0.66101843",
"0.66044533",
"0.65644103",
"0.65546256",
"0.655458",
"0.6527269",
"0.65196115",
"0.6491626",
"0.6466049",
"0.6457182",
"0.63837546",
"0.63822836",
"0.63740665",
"0.6365928",
"0.63291687",
"0.63268787",
"0.6321446",
"0.6267815",
"0.6261681",
"0.6245414",
"0.6223278",
"0.62232494",
"0.621092",
"0.6203221",
"0.61585075",
"0.6156775",
"0.61487234",
"0.61480397",
"0.6134569",
"0.6083231",
"0.60796255",
"0.6064526",
"0.6037936",
"0.6033401",
"0.602865",
"0.6026496",
"0.60230464",
"0.6021206",
"0.60169935",
"0.60117114",
"0.60077477",
"0.6003145",
"0.5993774",
"0.5971662",
"0.59631145",
"0.5936934",
"0.5926928",
"0.5920722",
"0.5917679",
"0.59162664",
"0.5915863",
"0.59044886",
"0.5902202",
"0.5900209",
"0.58906215",
"0.5885528",
"0.58833003",
"0.5871587",
"0.58701664",
"0.58701664",
"0.58701664",
"0.5865431",
"0.5865285",
"0.5854584",
"0.5854567",
"0.5850069",
"0.5837114",
"0.5828395",
"0.5827119",
"0.5825196",
"0.58237004",
"0.582302",
"0.5813778",
"0.58133745",
"0.5804238",
"0.57989115",
"0.5797733",
"0.57917845",
"0.57917845",
"0.5790043",
"0.5789216",
"0.5788009",
"0.5787488",
"0.5787488",
"0.5779762",
"0.5779516",
"0.57784235",
"0.5775336",
"0.5773519"
]
| 0.0 | -1 |
Default constructor. Used to internal transactions. | public ProvisioningEngineerController() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Transaction() {\n this(0, 0, null);\n }",
"public Transaction() {\n }",
"public TokenTransactions() {}",
"public Txn() {\n }",
"public VerifyTransactionImpl() {\n super();\n }",
"protected Settlement() {\n // empty constructor\n }",
"public Transaction(){\n\t\t\n\t\ttransactions = new HashMap<String, ArrayList<Products>>();\n\t}",
"private ThreadLocalTransaction() {\n }",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"public TransactionStateUpdater() {\n super();\n }",
"public PTPTransactionManager () {\n transactions = new HashMap<>();\n completeTransactions = new HashSet<>();\n }",
"public TransactionLogDAOImpl() {\n\t\tsuper();\n\t}",
"private PurchaseDB() {}",
"public TManagerImp() {\n transactions = new ConcurrentHashMap<>();\n }",
"private TMDBContract() {\n }",
"private DBContract() {}",
"private DBContract() {}",
"public ServiceCacheDB()\n\t{\n\t\tthis(0);\n\t}",
"private DatabaseOperations() {\n }",
"protected DaoRWImpl() {\r\n super();\r\n }",
"public Store() {\r\n\t\tsuper();\r\n\t}",
"private Db() {\n super(Ke.getDatabase(), null);\n }",
"public PaymentTransaction() {\n\t\tsuper(\"PAYMENT_TRANSACTION\", edu.uga.csci4050.group3.jooq.team3.Team3.TEAM3);\n\t}",
"public itemDBContract(){}",
"public SalesRecords() {\n super();\n }",
"private TexeraDb() {\n super(\"texera_db\", null);\n }",
"protected CompanyJPA() {\n\t}",
"public DynamoDB_Wrapper() {/* Empty */}",
"private Transaction(Engine destination, ByteBuffer bytes) {\n this(destination);\n deserialize(bytes);\n setStatus(Status.COMMITTED);\n\n }",
"public Contracts() {\r\n super();\r\n \r\n }",
"public TransactionSystem()\n\t{\n\t\ttransactionQueue = new LinkedList<Transaction>();\n\t\tSystem.out.println(\"Transaction system created!\");\n\t}",
"private DatabaseContract() {}",
"public TradeData() {\r\n\r\n\t}",
"public EntityTransactionException() {\r\n\t\tsuper();\r\n\t}",
"public StateDAOImpl() {\n super();\n }",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"public Merchant() {\n\n\t}",
"private TableAccessET() {\n\n }",
"public Connection() {\n\t\t\n\t}",
"public DaoConnection() {\n\t\t\n\t}",
"@JsonCreator(mode = JsonCreator.Mode.DEFAULT)\n private UpdateTransaction() {\n this.sourceId = Optional.empty();\n this.type = Optional.empty();\n this.description = Optional.empty();\n this.balance = Optional.empty();\n this.inputDate = Optional.empty();\n }",
"public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"[email protected]\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }",
"public DB() {\r\n\t\r\n\t}",
"private Transaction(Engine destination) {\n super(new ToggleQueue(INITIAL_CAPACITY), destination,\n destination.broker);\n this.id = Long.toString(Time.now());\n }",
"public Trabajador() {\n\t\tsuper();\n\t}",
"public Account() {\n this(null, 0);\n }",
"public Order() {\n\t}",
"public Contract() {\n // initialise instance variables\n generateContractId();\n }",
"private Store() {\n\t}",
"public TransactionsFragment() {\n }",
"public BaseContract() {}",
"public TWorkTrustDetailDAOImpl() {\n\t\tsuper();\n\t}",
"public DatabaseOperations(){\n\n }",
"Transaction createTransaction();",
"public Trade() {\n\t}",
"public KVDatabase() {\n //private constructor to prevent instantiation.\n }",
"public SalesRecord() {\n super(Sales.SALES);\n }",
"protected XMLRepositoryImpl() {\n }",
"public A_transaction() {\n initComponents();\n }",
"public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}",
"public Persistence() {}",
"public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }",
"public Store() {\n }",
"protected Product() {\n\t\t\n\t}",
"public EstadosSql() {\r\n }",
"protected StockItem()\r\n \t{\r\n \t\tlimit = new LimitSystem(this);\r\n \t}",
"private DatabaseContract()\n {\n }",
"public Commit() {\n }",
"public Commit() {\n }",
"public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n }",
"public MiradorTransaction(FujabaTransaction fujaba_tx) {\n tx_name_ = fujaba_tx.getName();\n tx_id_ = fujaba_tx.getId();\n merge_side_ = fujaba_tx.getMergeSide();\n initialize(fujaba_tx);\n }",
"public DatabaseTable() { }",
"public DbUtils() {\r\n // do nothing\r\n }",
"public LocksRecord() {\n\t\tsuper(org.jooq.example.gradle.db.information_schema.tables.Locks.LOCKS);\n\t}",
"public MessageTran() {\n\t}",
"public GenericTcalRecord() {\n this(-1);\n }",
"public OrderLogRecord() {\n super(OrderLog.ORDER_LOG);\n }",
"public SavingsAccount() {\n super();\n }",
"protected DBMaintainer() {\n }",
"public SavingsAccount() {\n\t}",
"protected Product()\n\t{\n\t}",
"public TbStock() {\r\n\t\tsuper();\r\n\t}",
"public Identity() {\n\n\t}",
"public GlAccountBank () {\n\t\tsuper();\n\t}",
"protected abstract Transaction createAndAdd();",
"public PurchaseOrderItem () {\n\t\tsuper();\n\t}",
"public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }",
"private DatabaseManager() {\n // Default constructor\n }",
"public sqlDatabase() {\n }",
"private StoneContract() {\n }",
"public Persistence() {\n\t\tconn = dbConnection();\n\t}",
"public Merchant() {}",
"protected AbstractContext() {\n this(new FastHashtable<>());\n }",
"public iptablesDBContract() {\n\t}",
"public Customer () {\n\t\tsuper();\n\t}",
"public Order() {\n\t\tsuper();\n\t\titems = new HashMap<>();\n\t}",
"private Connection () {}",
"public KaChingContract() {\n\t}",
"public CuentaDeposito() {\n super();\n }",
"Customer() \n\t{\n\t}",
"StmTransaction() {\n\n // Spin until we get a next rev number and put it in the queue of rev numbers in use w/o concurrent change.\n // (We avoid concurrent change because if another thread bumped the revisions in use, it might also have\n // cleaned up the revision before we said we were using it.)\n while ( true ) {\n long sourceRevNumber = lastCommittedRevisionNumber.get();\n sourceRevisionsInUse.add( sourceRevNumber );\n if ( sourceRevNumber == lastCommittedRevisionNumber.get() ) {\n this.sourceRevisionNumber = sourceRevNumber;\n break;\n }\n sourceRevisionsInUse.remove( sourceRevNumber );\n }\n\n // Use the next negative pending revision number to mark our writes.\n this.targetRevisionNumber = new AtomicLong( lastPendingRevisionNumber.decrementAndGet() );\n\n // Track the versioned items read and written by this transaction.\n this.versionedItemsRead = new HashSet<>();\n this.versionedItemsWritten = new HashSet<>();\n\n // Flag a write conflict as early as possible.\n this.newerRevisionSeen = false;\n\n // Establish a link for putting this transaction in a linked list of completed transactions.\n this.nextTransactionAwaitingCleanUp = new AtomicReference<>( null );\n\n }"
]
| [
"0.8042317",
"0.76308215",
"0.7435229",
"0.71628493",
"0.6909412",
"0.6861925",
"0.68332523",
"0.67854697",
"0.6777501",
"0.6749927",
"0.6737407",
"0.6686776",
"0.6664397",
"0.6657259",
"0.6655172",
"0.6617471",
"0.6617471",
"0.66094893",
"0.6599678",
"0.6533714",
"0.65310675",
"0.6527214",
"0.64794815",
"0.6468235",
"0.64537066",
"0.6434209",
"0.6423537",
"0.64182466",
"0.641212",
"0.6412054",
"0.64117986",
"0.6405738",
"0.639037",
"0.6387337",
"0.6380806",
"0.6378998",
"0.6359303",
"0.63538677",
"0.6344713",
"0.63416064",
"0.6341215",
"0.63346004",
"0.63298875",
"0.6319133",
"0.63052803",
"0.6302091",
"0.6301621",
"0.6301504",
"0.6290543",
"0.62823296",
"0.6265936",
"0.6263861",
"0.62538594",
"0.6248211",
"0.62425435",
"0.6241167",
"0.62321323",
"0.62299377",
"0.62247217",
"0.62211096",
"0.6220703",
"0.6220091",
"0.62141377",
"0.62131816",
"0.6210793",
"0.6210318",
"0.6210177",
"0.6205182",
"0.6205182",
"0.62043035",
"0.6202352",
"0.6198622",
"0.6195429",
"0.6187745",
"0.618646",
"0.61836916",
"0.61754054",
"0.6172095",
"0.617064",
"0.6160053",
"0.6156976",
"0.6153847",
"0.6151014",
"0.6149874",
"0.6142837",
"0.61328554",
"0.6130148",
"0.6124839",
"0.61246026",
"0.61199856",
"0.6119498",
"0.6117748",
"0.61154115",
"0.6108744",
"0.6105066",
"0.6104919",
"0.61043274",
"0.6104071",
"0.60993814",
"0.6081641",
"0.6077504"
]
| 0.0 | -1 |
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. | public void run() {
/*
r8 = this;
r1 = com.umeng.commonsdk.proguard.b.b; Catch:{ Throwable -> 0x00c9 }
monitor-enter(r1); Catch:{ Throwable -> 0x00c9 }
r0 = r8.a; Catch:{ all -> 0x00c6 }
if (r0 == 0) goto L_0x00c4;
L_0x0009:
r0 = r8.b; Catch:{ all -> 0x00c6 }
if (r0 == 0) goto L_0x00c4;
L_0x000d:
r0 = com.umeng.commonsdk.proguard.b.a; Catch:{ all -> 0x00c6 }
if (r0 != 0) goto L_0x00c4;
L_0x0013:
r0 = 1;
com.umeng.commonsdk.proguard.b.a = r0; Catch:{ all -> 0x00c6 }
r0 = "walle-crash";
r2 = 1;
r2 = new java.lang.Object[r2]; Catch:{ all -> 0x00c6 }
r3 = 0;
r4 = new java.lang.StringBuilder; Catch:{ all -> 0x00c6 }
r4.<init>(); Catch:{ all -> 0x00c6 }
r5 = "report thread is ";
r4 = r4.append(r5); Catch:{ all -> 0x00c6 }
r5 = com.umeng.commonsdk.proguard.b.a; Catch:{ all -> 0x00c6 }
r4 = r4.append(r5); Catch:{ all -> 0x00c6 }
r4 = r4.toString(); Catch:{ all -> 0x00c6 }
r2[r3] = r4; Catch:{ all -> 0x00c6 }
com.umeng.commonsdk.statistics.common.e.a(r0, r2); Catch:{ all -> 0x00c6 }
r0 = r8.b; Catch:{ all -> 0x00c6 }
r0 = com.umeng.commonsdk.proguard.c.a(r0); Catch:{ all -> 0x00c6 }
r2 = android.text.TextUtils.isEmpty(r0); Catch:{ all -> 0x00c6 }
if (r2 != 0) goto L_0x00c4;
L_0x0045:
r2 = new java.lang.StringBuilder; Catch:{ all -> 0x00c6 }
r2.<init>(); Catch:{ all -> 0x00c6 }
r3 = r8.a; Catch:{ all -> 0x00c6 }
r3 = r3.getFilesDir(); Catch:{ all -> 0x00c6 }
r2 = r2.append(r3); Catch:{ all -> 0x00c6 }
r3 = "/";
r2 = r2.append(r3); Catch:{ all -> 0x00c6 }
r3 = "stateless";
r2 = r2.append(r3); Catch:{ all -> 0x00c6 }
r3 = "/";
r2 = r2.append(r3); Catch:{ all -> 0x00c6 }
r3 = "umpx_internal";
r3 = r3.getBytes(); Catch:{ all -> 0x00c6 }
r4 = 0;
r3 = android.util.Base64.encodeToString(r3, r4); Catch:{ all -> 0x00c6 }
r2 = r2.append(r3); Catch:{ all -> 0x00c6 }
r2 = r2.toString(); Catch:{ all -> 0x00c6 }
r3 = r8.a; Catch:{ all -> 0x00c6 }
r4 = 10;
com.umeng.commonsdk.stateless.f.a(r3, r2, r4); Catch:{ all -> 0x00c6 }
r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild; Catch:{ all -> 0x00c6 }
r2.<init>(); Catch:{ all -> 0x00c6 }
r3 = r8.a; Catch:{ all -> 0x00c6 }
r3 = r2.buildSLBaseHeader(r3); Catch:{ all -> 0x00c6 }
r4 = new org.json.JSONObject; Catch:{ JSONException -> 0x00cb }
r4.<init>(); Catch:{ JSONException -> 0x00cb }
r5 = "content";
r4.put(r5, r0); Catch:{ JSONException -> 0x00cb }
r0 = "ts";
r6 = java.lang.System.currentTimeMillis(); Catch:{ JSONException -> 0x00cb }
r4.put(r0, r6); Catch:{ JSONException -> 0x00cb }
r0 = new org.json.JSONObject; Catch:{ JSONException -> 0x00cb }
r0.<init>(); Catch:{ JSONException -> 0x00cb }
r5 = "crash";
r0.put(r5, r4); Catch:{ JSONException -> 0x00cb }
r4 = new org.json.JSONObject; Catch:{ JSONException -> 0x00cb }
r4.<init>(); Catch:{ JSONException -> 0x00cb }
r5 = "tp";
r4.put(r5, r0); Catch:{ JSONException -> 0x00cb }
r0 = r8.a; Catch:{ JSONException -> 0x00cb }
r5 = "umpx_internal";
r0 = r2.buildSLEnvelope(r0, r3, r4, r5); Catch:{ JSONException -> 0x00cb }
if (r0 == 0) goto L_0x00c4;
L_0x00bc:
r2 = "exception";
r0 = r0.has(r2); Catch:{ JSONException -> 0x00cb }
if (r0 != 0) goto L_0x00c4;
L_0x00c4:
monitor-exit(r1); Catch:{ all -> 0x00c6 }
L_0x00c5:
return;
L_0x00c6:
r0 = move-exception;
monitor-exit(r1); Catch:{ all -> 0x00c6 }
throw r0; Catch:{ Throwable -> 0x00c9 }
L_0x00c9:
r0 = move-exception;
goto L_0x00c5;
L_0x00cb:
r0 = move-exception;
goto L_0x00c4;
*/
throw new UnsupportedOperationException("Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }",
"static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }",
"public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }",
"private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }",
"public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }",
"private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }",
"private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }",
"private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }",
"public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }",
"public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }",
"protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }",
"private void m50366E() {\n }",
"public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }",
"void m1864a() {\r\n }",
"void m5768b() throws C0841b;",
"public boolean method_2088(class_689 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"void m5770d() throws C0841b;",
"public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }",
"public final void mo91715d() {\n }",
"public void method_4270() {}",
"public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }",
"private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }",
"static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private static class_1205 method_6442(String param0, int param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2112(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }",
"void m5769c() throws C0841b;",
"void m5771e() throws C0841b;",
"@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }",
"public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }",
"public void method_2111(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }",
"@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }",
"public boolean method_2243() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }",
"private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }",
"public void method_2116(class_689 param1, boolean param2) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }",
"static void m7753b() {\n f8029a = false;\n }",
"public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }",
"public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }",
"public void method_7080(String param1, class_1293 param2) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void m9741j() throws cf {\r\n }",
"private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }",
"public boolean method_2153(boolean param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2259(String param1, double param2, double param4, double param6, int param8, double param9, double param11, double param13, double param15) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void m50367F() {\n }",
"public void mo21779D() {\n }",
"public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }",
"private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }",
"public void method_2249(boolean param1, class_81 param2) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void mo115190b() {\n }",
"public final void mo1285b() {\n }",
"public void mo23813b() {\n }",
"public boolean method_208() {\r\n return false;\r\n }",
"public final void mo11687c() {\n }",
"public final void mo51373a() {\n }",
"public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }",
"void mo72113b();",
"public boolean method_2434() {\r\n return false;\r\n }",
"public void mo21787L() {\n }",
"boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }",
"private void kk12() {\n\n\t}",
"void mo80457c();",
"@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }",
"public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }",
"private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }",
"public void m23075a() {\n }",
"void mo80452a();",
"public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }",
"public void mo12628c() {\n }",
"public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }",
"void mo41086b();",
"private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"public void mo21785J() {\n }",
"public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }",
"protected boolean func_70041_e_() { return false; }",
"static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }"
]
| [
"0.7616838",
"0.7573048",
"0.7525757",
"0.74508786",
"0.7450473",
"0.7437555",
"0.7381664",
"0.7381664",
"0.7366731",
"0.735352",
"0.7341992",
"0.7314967",
"0.73080236",
"0.73053473",
"0.7273281",
"0.72523504",
"0.722139",
"0.719779",
"0.7177453",
"0.7136381",
"0.7105981",
"0.7040835",
"0.70237154",
"0.70186365",
"0.69916016",
"0.6960345",
"0.69401664",
"0.69072855",
"0.6888791",
"0.6851495",
"0.6828259",
"0.67950964",
"0.6783922",
"0.67778486",
"0.67729396",
"0.6771093",
"0.6767952",
"0.6767891",
"0.6742762",
"0.67067826",
"0.67010987",
"0.66994643",
"0.6698351",
"0.66983265",
"0.6669684",
"0.6667753",
"0.66552746",
"0.6612992",
"0.6611936",
"0.66088414",
"0.6593323",
"0.65687865",
"0.656545",
"0.6539634",
"0.65135396",
"0.65097314",
"0.65093327",
"0.6489766",
"0.6436787",
"0.6431981",
"0.6430648",
"0.6404067",
"0.6401186",
"0.6371352",
"0.6369688",
"0.63681245",
"0.63573414",
"0.63297135",
"0.6327071",
"0.6324539",
"0.63169736",
"0.6304591",
"0.63035244",
"0.62983245",
"0.62819105",
"0.6280212",
"0.62414116",
"0.62279886",
"0.6227547",
"0.62274706",
"0.6224533",
"0.6219261",
"0.6219083",
"0.6205477",
"0.6198607",
"0.6194666",
"0.61806285",
"0.61702055",
"0.6168226",
"0.61650664",
"0.61628413",
"0.61616725",
"0.61566406",
"0.61554694",
"0.6151414",
"0.61403525",
"0.6126472",
"0.61151254",
"0.6112036",
"0.61024994",
"0.6095945"
]
| 0.0 | -1 |
TODO Autogenerated method stub | protected Class[] getDestinationClassesImpl() 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 | protected Class[] getSourceClassesImpl() 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 |
Activity must implement this | public interface OnUserCenterFragmentInteractionListener {
void OnUserCenterFragmentInteractionListener(Uri uri);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}",
"@Override\n\tpublic void starctActivity(Context context) {\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void needReloain(Activity activity) {\n }",
"private void openActivity() {\n }",
"@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n\r\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }",
"@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}",
"public interface ISEActivityAttatcher {\n void onCreate(Bundle savedInstanceState);\n void onStart();\n void onRestart();\n void onResume();\n void onPause();\n void onStop();\n void onDestroy();\n void onActivityResult(int requestCode, int resultCode, Intent data);\n boolean isRecyled();\n}",
"protected ApiActivityBase() {\n super();\n }",
"@Override\n\tprotected void onAttachedToActivity() {\n\t\tsuper.onAttachedToActivity();\n\t}",
"void onActivityReady();",
"@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}",
"public interface ActivityInterface {\n public void initView();\n public void setUICallbacks();\n public int getLayout();\n public void updateUI();\n}",
"public interface IBaseView {\n\n void showToastMessage(String message);\n\n void setProgressBar(boolean show);\n\n void showNetworkFailureMessage(boolean show);\n\n Context getPermission();\n\n void startNewActivity();\n\n}",
"@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}",
"public interface MeetingAddActivityView {\n\n void startMeetingsActivity();\n void successInfo(String msg);\n void errorInfo(String msg);\n void startGetCustomers();\n}",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t}",
"protected interface Activity {\r\n boolean isActive(File dir);\r\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n protected void onHandleIntent(Intent intent) {\n\n }",
"public interface MeetingsActivityView {\n void startMainActivity();\n\n void startMeetingDetailsActivity();\n\n void startMeetingAddActivity();\n\n void errorInfo(String msg);\n\n void errorMeetingCompletedInfo(String msg);\n void successMeetingCompletedInfo(String msg);\n\n\n void startGetMeetings();\n}",
"@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n act = (BaseActivity) activity;\r\n\r\n }",
"private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }",
"void doActivity();",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"public interface ActivityView extends AceView {\n void finish();\n}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"public Activity() {\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"public interface MyBaseActivityImp {\n\n /**\n * 跳转Activity;\n *\n * @param paramClass Activity参数\n */\n void gotoActivity(Class<?> paramClass);\n\n /**\n * 跳转Activity,带有Bundle参数;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivity(Class<?> paramClass, Bundle bundle);\n\n /**\n * 跳转Activity,带有Bundle参数,并且该Activity不会压入栈中,返回后自动关闭;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivityNoHistory(Class<?> paramClass, Bundle bundle);\n\n /**\n * @param paramClass\n * @param bundle\n * @param paramInt\n */\n void gotoActivityForResult(Class<?> paramClass, Bundle bundle, int paramInt);\n\n /**\n * init View\n */\n void initView();\n\n /**\n *\n */\n void onEvent(Object o);\n}",
"@Override\n public Activity getViewActivity() {\n return this;\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public Void visitStartActivityTask(StartActivityTask<Void> startActivityTask) {\n return null;\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < 23) {\n onAttachToContext(activity);\n }\n }",
"public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}",
"public interface ActivityInterface {\n\n int getLayout();\n\n void initView();\n}",
"public interface MainView extends MvpView{\n void startAnekdotActivity(int type);\n}",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n onAttachToContext(activity);\n }\n }",
"@Override\n public void onNewIntent(Activity activity, Intent data) {\n }",
"@Override\n protected void onNewIntent(Intent intent) {\n }",
"@SuppressWarnings(\"deprecation\")\n @Override public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < 23) {\n onAttachToContext(activity);\n }\n }",
"protected abstract Intent getIntent();",
"protected ScllActivity iGetActivity() {\n\t\treturn (ScllActivity) getActivity();\n\t}",
"@Override\n protected void onHandleIntent(Intent workIntent) {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"public interface IActivityBase {\n\n void showToast(String msg);\n void showAlert(String msg);\n\n}",
"protected void startRegActivity() {\n }",
"public interface IRegisterActivityView extends IActivityView{\n void onRegisteredSuccessfully();\n void onError(String message);\n}",
"public interface OmnomActivity {\n\tpublic static final int REQUEST_CODE_ENABLE_BLUETOOTH = 100;\n\tpublic static final int REQUEST_CODE_SCAN_QR = 101;\n\n\tvoid start(Intent intent, int animIn, int animOut, boolean finish);\n\n\tvoid startForResult(Intent intent, int animIn, int animOut, int code);\n\n\tvoid start(Class<?> cls);\n\n\tvoid start(Class<?> cls, boolean finish);\n\n\tvoid start(Intent intent, boolean finish);\n\n\tActivity getActivity();\n\n\tint getLayoutResource();\n\n\tvoid initUi();\n\n\tPreferenceProvider getPreferences();\n\n\tSubscription subscribe(final Observable observable, final Action1<? extends Object> onNext, final Action1<Throwable> onError);\n\n\tvoid unsubscribe(final Subscription subscription);\n\n}",
"public interface IViewListActivity {\n\n Context getBaseContext();\n\n View findViewById(final int id);\n\n void onResultList(final List<Filme> filmes);\n\n void setSupportActionBar(Toolbar toolbar);\n\n void startSearch();\n\n void onErrorSearch(final String errorMsg);\n\n void onSuccess(final Filme filme);\n\n}",
"public interface IActivity {\n void bindData();\n\n void bindListener();\n}",
"public interface ActivityLauncher {\r\n\r\n\tpublic void launchActivity();\r\n\r\n\tpublic void finishCurrentActivity();\r\n\r\n}",
"public interface MainActivityView {\n\n}",
"public void goTestActivity()\n\t {\n\t }",
"private void openVerificationActivity() {\n }",
"@Override\n public void onResume(Activity activity) {\n }",
"public interface C0869a {\n Intent getSupportParentActivityIntent();\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n Log.v(TAG, \"on attach\");\n callback = (Callback)activity;\n }",
"@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}",
"@Override\n\tpublic void onAttach(Activity activity){\n\t\tsuper.onAttach(activity);\n try {\n mToDoArchivedCallback = (ToggleToDoItemArchivedState) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(activity.toString()\n + \" must implement ToggleToDoItemArchivedState\");\n }\t\t\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\thandleIntent(getIntent());\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }",
"Activity activity();",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tRemoteUtil.getInstance().addActivity(this);\n\t}",
"protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tmActivityManager = (ActivityManager) (getSystemService(Context.ACTIVITY_SERVICE));\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}",
"@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}",
"public boolean interceptStartActivityIfNeed(Intent intet, ActivityOptions activityOptions) {\n return false;\n }",
"protected abstract Activity getActivity(final T androidComponent);",
"public interface IActivityDelegate {\n\n void onCreateBefore(Bundle savedInstanceState);\n\n void onCreate(Bundle savedInstanceState);\n\n void onSaveInstanceState(Bundle outState);\n\n void onResume();\n\n void onPause();\n\n void onDestroy();\n\n void onBackPressed();\n\n void finish();\n\n void overridePendingTransition(int enterAnim, int exitAnim);\n\n void onActivityResult(int requestCode, int resultCode, Intent data);\n}",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tthis.mActivity = activity;\r\n\t}",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n commonOnAttach(activity);\n }\n }",
"@Override\n public void onContext() {\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (callbackManager != null) callbackManager.setActivity(activity);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n AppManager.getAppManager().addActivity(this);\n }",
"public interface IBaseView {\n\n void toActivity(Class<?> clazz);\n\n void showProgressBar();\n\n void cancelProgressBar();\n\n void setTransBar();\n\n}",
"public interface BaseView {\n void onError(String errCode);\n\n void checkPermission(String... permissions);\n\n void showProgressDialog();\n void dismissProgressDialog();\n\n void onAuthFailed();\n}",
"@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tthis.activity = activity;\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t}",
"public CanliSkorAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"@Override\n public void onNewIntent(Intent intent) {\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the SettingsManualInputDialogListener so we can send events to the host\n mListener = (SettingsManualInputDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement SettingsManualInputDialogListener\");\n }\n }",
"public interface CreateAccountBaseView {\n Activity getActivity();\n}"
]
| [
"0.72386795",
"0.71330786",
"0.70794415",
"0.6991057",
"0.6830289",
"0.6754049",
"0.67311007",
"0.67068255",
"0.668494",
"0.668494",
"0.6618008",
"0.6613616",
"0.6518534",
"0.65151036",
"0.650465",
"0.648688",
"0.6452704",
"0.64524186",
"0.64412344",
"0.64278185",
"0.642037",
"0.6412114",
"0.6387139",
"0.6387139",
"0.6387139",
"0.63763654",
"0.6361922",
"0.6358115",
"0.6333988",
"0.6323439",
"0.6318635",
"0.63096577",
"0.63028294",
"0.62781054",
"0.6256881",
"0.6256881",
"0.62453127",
"0.6236945",
"0.6229531",
"0.6229531",
"0.6228536",
"0.6220791",
"0.6209092",
"0.6199017",
"0.61928225",
"0.61888754",
"0.6185725",
"0.6174966",
"0.61711156",
"0.6167432",
"0.61604017",
"0.61587894",
"0.61583906",
"0.61576134",
"0.61576134",
"0.61576134",
"0.61576134",
"0.61576134",
"0.61576134",
"0.61502486",
"0.6149873",
"0.6137296",
"0.6131915",
"0.61058426",
"0.6099822",
"0.60981196",
"0.6088375",
"0.6087608",
"0.6064235",
"0.6058553",
"0.60373396",
"0.60314083",
"0.6030829",
"0.6025593",
"0.6019161",
"0.6016693",
"0.6013304",
"0.5996347",
"0.59902966",
"0.598668",
"0.5984195",
"0.5981815",
"0.59684825",
"0.59559625",
"0.59527904",
"0.59436536",
"0.5940331",
"0.59402287",
"0.5910126",
"0.59100825",
"0.590399",
"0.5894604",
"0.5891608",
"0.5864699",
"0.586252",
"0.586252",
"0.586165",
"0.58599776",
"0.5857867",
"0.5856767",
"0.5847789"
]
| 0.0 | -1 |
name > parameter Constructs a new web service gateway decomposition. | public YAWLServiceGateway(String id, YSpecification specification) {
super(id, specification);
_yawlServices = new HashMap<String, YAWLServiceReference>();
_enablementParameters = new HashMap<String, YParameter>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ShipmentGatewayDhl createShipmentGatewayDhl();",
"ServiceEndpointPolicy.DefinitionStages.Blank define(String name);",
"ORGateway createORGateway();",
"public WebService_Detalle_alquiler_factura() {\n }",
"ShipmentGatewayConfig createShipmentGatewayConfig();",
"Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}",
"public GatewayInfo() {\n\n\t}",
"@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}",
"public WSDL() {\r\n\t\tthis(\"\", \"\");\r\n\t}",
"public HandicapParameterSet() {\n }",
"@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}",
"private WebServicesFabrica(){}",
"ANDGateway createANDGateway();",
"public BlueMeshService build(){\n BlueMeshService bms = new BlueMeshService();\n \n bms.setUUID(uuid);\n bms.setDeviceId(deviceId);\n bms.enableBluetooth(bluetoothEnabled);\n bms.setup();\n \n return bms;\n }",
"public abstract Endpoint createEndpoint(String bindingId, Object implementor);",
"public interface GatewayInfo {\n\n /**\n * Return Pipeline ID of the Microservice Pipeline\n *\n * @return the Pipeline ID\n */\n String getPipelineId();\n\n /**\n * Return the service name for the API Gateway, used in the gateway rest point URL.\n * http://localhost:18630/rest/v1/gateway/<ServiceName>\n *\n * @return the Gateway Service name\n */\n String getServiceName();\n\n /**\n * Return the REST Service API Endpoint.\n *\n * @return the REST Service HTTP URL\n */\n String getServiceUrl();\n\n /**\n * Return true to use protected Data Collector URL\n * \"http://localhost:18630/rest/v1/gateway/<service name>.\".\n *\n * Otherwise, Gateway URL is an unprotected Data Collector URL -\n * \"http://localhost:18630/public-rest/v1/gateway/<service name>.\"\n *\n * @return Return true to use protected Gateway Endpoint\n */\n boolean getNeedGatewayAuth();\n\n /**\n * Return the Gateway secret to use in the HTTP request header.\n *\n * To avoid users calling REST Service URL directly instead of going through gateway URL,\n * we use GATEWAY_SECRET header, and REST Service will process requests only if secret matches.\n *\n * @return the gateway secret\n */\n String getSecret();\n\n}",
"@WebService(targetNamespace = \"http://payment.services.adyen.com\", name = \"PaymentPortType\")\r\n@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})\r\npublic interface PaymentPortType {\r\n\r\n @WebResult(name = \"captureResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"capture\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Capture\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"captureResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CaptureResponse\")\r\n public com.adyen.services.payment.ModificationResult capture(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"refundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Refund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundResponse\")\r\n public com.adyen.services.payment.ModificationResult refund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransfer\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransferResponse\")\r\n public com.adyen.services.payment.FundTransferResult fundTransfer(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.FundTransferRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"authoriseReferralResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authoriseReferral\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferral\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseReferralResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferralResponse\")\r\n public com.adyen.services.payment.ModificationResult authoriseReferral(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refundWithData\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithData\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundWithDataResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithDataResponse\")\r\n public com.adyen.services.payment.PaymentResult refundWithData(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Cancel\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelResponse\")\r\n public com.adyen.services.payment.ModificationResult cancel(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise3d\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3D\")\r\n @WebMethod(operationName = \"authorise3d\")\r\n @ResponseWrapper(localName = \"authorise3dResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3DResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise3D(\r\n @WebParam(name = \"paymentRequest3d\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest3D paymentRequest3D\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"balanceCheck\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheck\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"balanceCheckResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheckResponse\")\r\n public com.adyen.services.payment.BalanceCheckResult balanceCheck(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.BalanceCheckRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"directdebit\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Directdebit\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"directdebitResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.DirectdebitResponse\")\r\n public com.adyen.services.payment.DirectDebitResponse2 directdebit(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.DirectDebitRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelOrRefundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancelOrRefund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelOrRefundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefundResponse\")\r\n public com.adyen.services.payment.ModificationResult cancelOrRefund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"checkFraud\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraud\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"checkFraudResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraudResponse\")\r\n public com.adyen.services.payment.PaymentResult checkFraud(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n}",
"public Gateway() {\n genClient = new GenericClient<Gateway>(this);\n }",
"public InfoTransferService(String name) {\n super(name);\n }",
"ShipmentGatewayFedex createShipmentGatewayFedex();",
"ShipmentGatewayUsps createShipmentGatewayUsps();",
"InboundServicesType createInboundServicesType();",
"LinkedService.DefinitionStages.Blank define(String name);",
"PortDefinition createPortDefinition();",
"@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}",
"@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}",
"@WebService(name = \"GodinezLunchPort\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/wsdl/1.0/GodinezLunchWS\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface GodinezLunchWS {\r\n\r\n\r\n /**\r\n * \r\n * @param calculateDistanceRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.CalculateDistanceResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/calculateDistance\")\r\n @WebResult(name = \"calculateDistanceResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceResponse\")\r\n public CalculateDistanceResponse calculateDistance(\r\n @WebParam(name = \"calculateDistanceRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceRequest\")\r\n CalculateDistanceRequest calculateDistanceRequest);\r\n\r\n /**\r\n * \r\n * @param getNearbyPlacesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetNearbyPlacesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getNearbyPlaces\")\r\n @WebResult(name = \"getNearbyPlacesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesResponse\")\r\n public GetNearbyPlacesResponse getNearbyPlaces(\r\n @WebParam(name = \"getNearbyPlacesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesRequest\")\r\n GetNearbyPlacesRequest getNearbyPlacesRequest);\r\n\r\n /**\r\n * \r\n * @param getAllCategoriesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetAllCategoriesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getAllCategories\")\r\n @WebResult(name = \"getAllCategoriesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesResponse\")\r\n public GetAllCategoriesResponse getAllCategories(\r\n @WebParam(name = \"getAllCategoriesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesRequest\")\r\n GetAllCategoriesRequest getAllCategoriesRequest);\r\n\r\n /**\r\n * \r\n * @param getMyFavoritesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetMyFavoritesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getMyFavorites\")\r\n @WebResult(name = \"getMyFavoritesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesResponse\")\r\n public GetMyFavoritesResponse getMyFavorites(\r\n @WebParam(name = \"getMyFavoritesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesRequest\")\r\n GetMyFavoritesRequest getMyFavoritesRequest);\r\n\r\n}",
"public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);",
"@WebService(targetNamespace = \"http://www.example.org/s2/\", name = \"s2\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface S2 {\n\n @WebMethod(operationName = \"S2Operation\", action = \"http://www.example.org/s2/S2Operation\")\n @WebResult(name = \"FulfillmentResponse\", targetNamespace = \"http://www.example.org/s2/\", partName = \"parameters\")\n public FulfillmentResponse s2Operation(\n @WebParam(partName = \"parameters\", name = \"FulfillmentRequest\", targetNamespace = \"http://www.example.org/s2/\")\n FulfillmentRequest parameters\n );\n}",
"@WebService(targetNamespace = \"http://www.ftn.uns.ac.rs/izvestaj\", name = \"IzvestajServicePortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface IzvestajServicePortType {\n\n @WebMethod(action = \"http://www.ftn.uns.ac.rs/izvestaj/ws/dodajIzvestaj\")\n @WebResult(name = \"res\", targetNamespace = \"http://www.ftn.uns.ac.rs/izvestaj\", partName = \"res\")\n public java.lang.String dodajIzvestaj(\n @WebParam(partName = \"izvestaj\", name = \"izvestaj\")\n Izvestaj izvestaj\n );\n}",
"public SplitPolicyGeneralizedHyperplane() {\n }",
"public ServiceSum(String name) {\n\t\tserviceName = name;\n\t}",
"Service newService();",
"Schule createSchule();",
"Schueler createSchueler();",
"SourceBuilder createService();",
"Shipment createShipment();",
"Parameter createParameter();",
"@WebService(name = \"OPERACIONES\", targetNamespace = \"http://UDDI/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OPERACIONES {\n\n\n /**\n * \n * @param a\n * @param b\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"horas\", targetNamespace = \"http://UDDI/\", className = \"uddi.Horas\")\n @ResponseWrapper(localName = \"horasResponse\", targetNamespace = \"http://UDDI/\", className = \"uddi.HorasResponse\")\n @Action(input = \"http://UDDI/OPERACIONES/horasRequest\", output = \"http://UDDI/OPERACIONES/horasResponse\")\n public double horas(\n @WebParam(name = \"a\", targetNamespace = \"\")\n double a,\n @WebParam(name = \"b\", targetNamespace = \"\")\n double b);\n\n}",
"public FreezeService(String name) {\n super(name);\n }",
"public BoletoPaymentRequest() {\n\n }",
"@WebService(name = \"TrainPortType\", targetNamespace = \"http://mohamed.nl/treinservice/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TrainPortType {\n\n\n /**\n * \n * @param station\n * @return\n * returns int\n * @throws GetTotalRidesError\n */\n @WebMethod(action = \"getTotalRides\")\n @WebResult(name = \"totalrides\", targetNamespace = \"http://mohamed.nl/treinservice/response/\", partName = \"total\")\n public int getTotalRides(\n @WebParam(name = \"station\", targetNamespace = \"http://mohamed.nl/treinservice/request/\", partName = \"station\")\n String station)\n throws GetTotalRidesError\n ;\n\n /**\n * \n * @param station\n * @return\n * returns int\n * @throws GetTotalEnergyConsumptionError\n */\n @WebMethod(action = \"getTotalEnergyConsumption\")\n @WebResult(name = \"energy\", targetNamespace = \"http://mohamed.nl/treinservice/response/\", partName = \"total-energy\")\n public int getTotalEnergyConsumption(\n @WebParam(name = \"station\", targetNamespace = \"http://mohamed.nl/treinservice/request/\", partName = \"station\")\n String station)\n throws GetTotalEnergyConsumptionError\n ;\n\n /**\n * \n * @param station\n * @return\n * returns int\n * @throws GetTotalEnergyConsumptionPerHourError\n */\n @WebMethod(action = \"getTotalEnergyConsumptionPerHour\")\n @WebResult(name = \"energy\", targetNamespace = \"http://mohamed.nl/treinservice/response/\", partName = \"energy-per-hour\")\n public int getTotalEnergyConsumptionPerHour(\n @WebParam(name = \"station\", targetNamespace = \"http://mohamed.nl/treinservice/request/\", partName = \"station\")\n String station)\n throws GetTotalEnergyConsumptionPerHourError\n ;\n\n /**\n * \n * @param station\n * @return\n * returns int\n * @throws GetTotalEnergyConsumptionHourError\n */\n @WebMethod(action = \"getTotalEnergyConsumptionHour\")\n @WebResult(name = \"energy\", targetNamespace = \"http://mohamed.nl/treinservice/response/\", partName = \"energy-per-hour\")\n public int getTotalEnergyConsumptionHour(\n @WebParam(name = \"station-hours\", targetNamespace = \"http://mohamed.nl/treinservice/request/\", partName = \"station\")\n StationHours station)\n throws GetTotalEnergyConsumptionHourError\n ;\n\n /**\n * \n * @param station\n * @return\n * returns java.lang.String\n * @throws GetAllRidesError\n */\n @WebMethod(action = \"getAllRides\")\n @WebResult(name = \"rides\", targetNamespace = \"http://mohamed.nl/treinservice/response/\", partName = \"stations\")\n public String getAllRides(\n @WebParam(name = \"station\", targetNamespace = \"http://mohamed.nl/treinservice/request/\", partName = \"station\")\n String station)\n throws GetAllRidesError\n ;\n\n /**\n * \n * @param station\n * @return\n * returns java.lang.String\n * @throws GetStationedTrainsError\n */\n @WebMethod(action = \"getStationedTrains\")\n @WebResult(name = \"stationed-trains\", targetNamespace = \"http://mohamed.nl/treinservice/response/\", partName = \"stationed-trains\")\n public String getStationedTrains(\n @WebParam(name = \"station\", targetNamespace = \"http://mohamed.nl/treinservice/request/\", partName = \"station\")\n String station)\n throws GetStationedTrainsError\n ;\n\n}",
"UMOImmutableEndpoint createOutboundEndpoint(UMOEndpointBuilder builder, UMOManagementContext managementContext) throws UMOException;",
"@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}",
"@WebService(name = \"OrderPortType\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OrderPortType {\n\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"getDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType getDish(\n @WebParam(name = \"getDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"addDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType addDish(\n @WebParam(name = \"addDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse\n */\n @WebMethod\n @WebResult(name = \"getDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetDishListResponse getDishList(\n @WebParam(name = \"getDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"getOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType getOrder(\n @WebParam(name = \"getOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"addOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType addOrder(\n @WebParam(name = \"addOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse\n */\n @WebMethod\n @WebResult(name = \"getOrderListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetOrderListResponse getOrderList(\n @WebParam(name = \"getOrderListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType\n */\n @WebMethod\n @WebResult(name = \"getOrderDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishListType getOrderDishList(\n @WebParam(name = \"getOrderDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType\n */\n @WebMethod\n @WebResult(name = \"addOrderDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishType addOrderDish(\n @WebParam(name = \"addOrderDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderDishRequest parameter);\n\n}",
"Param createParam();",
"Param createParam();",
"Param createParam();",
"@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}",
"@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}",
"public abstract ServiceLocator create(String name);",
"public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }",
"DynamicPort createDynamicPort();",
"public interface GPAdimWS {\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.provincia\")\n Call<List<Provincia>> listProvincia();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.especialidad\")\n Call<List<Especialidad>> listEspecialidad();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.cobertura\")\n Call<List<Cobertura>> listCobertura();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.medico/byCoberturaProvinciaEspecialidad/{cobertura}/{provincia}/{especialidad}\")\n Call<List<Medico>> listMedico(@Path(\"cobertura\") String cobertura, @Path(\"provincia\") Long provincia, @Path(\"especialidad\") Long especialidad);\n @POST(\"webresources/com.gylgroup.gp.turno\")\n Call<Turno> createTurno(@Body Turno turno);\n}",
"public BrokerAlgo() {}",
"public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }",
"ParameterRefinement createParameterRefinement();",
"public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }",
"public SapFactoryImpl() {\n super();\n }",
"public HTTPBindingOperation(String name) throws WSDLException {\n super(Base.HTTPBINDING_OPERATION_ID, Base.HTTPBINDING_OPERATION_NAME, null, name);\n }",
"GeneratedInterface generate(Class interfaze, String targetNamespace, String wsdlLocation, String serviceName, String portName) throws Fabric3Exception;",
"@Override\n protected String getName() {return _parms.name;}",
"@WebServiceRef(wsdlLocation=\"file:C:\\\\Users\\\\Petru\\\\IdeaProjects\\\\safedata\\\\src\\\\main\\\\java\\\\safedata/view-source_safedata1.r1soft.ro_9080_Policy2_wsdl.wsdl\")\n\n\n\n\n public List<String> getPolicies(String username, String password,String backupServer) {\n\n username=System.getenv(\"safedata_user\");\n password=System.getenv(\"safedata_pass\");\n\n System.out.println(username+\" \"+password);\n List<Policy> policies = null;\n List<String> policyDescription = new LinkedList<String>();\n\n //PolicyService port;\n Policy_Service service = new Policy_Service();\n\n PolicyService port = service.getPolicyServiceImplPort();\n\n Map<String, Object> requestContext = ((BindingProvider) port).getRequestContext();\n\n requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, \"http://\" + backupServer + \":9080/Policy2?wsdl\");\n\n //Map<String, List<String>> requestHeaders = new HashMap<String, List<String>>();\n\n requestContext.put(BindingProvider.USERNAME_PROPERTY, username);\n requestContext.put(BindingProvider.PASSWORD_PROPERTY, password);\n\n\n try {\n policies = port.getPolicies();\n System.out.println(\"Number of policies found:\"+policies.size());\n for (int i=0; i<policies.size(); i++) {\n\n //System.out.println(policies.get(i).getName());\n String policyName = policies.get(i).getName();\n System.out.println(policyName);\n policyDescription.add(policyName);\n\n //System.out.println(policyDescription.get(i));\n }\n\n\n } catch (OperationFailedFault_Exception e) {\n e.printStackTrace();\n }\n\n return policyDescription;\n\n }",
"public static network newInstance(String param1, String param2) {\n network fragment = new network();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public CC_OperationParameterGroup() {\n }",
"public Notification(AGateway gateway)\r\n/* 11: */ {\r\n/* 12:31 */ setGateway(gateway);\r\n/* 13: */ }",
"PaymentHandler createPaymentHandler();",
"public Service(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name) {\n super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);\n software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, \"scope is required\"), java.util.Objects.requireNonNull(name, \"name is required\") });\n }",
"Schulleiter createSchulleiter();",
"Service_Resource createService_Resource();",
"public ServiceCompte() {\n\t\tsuper();\n\t}",
"@WebService(name = \"BVAC_AGENCYSoap\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BVACAGENCYSoap {\r\n\r\n\r\n /**\r\n * L\\u1ea5y danh sách lo\\u1ea1i \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetDMLoaiAnChi\", action = \"http://tempuri.org/GetDMLoaiAnChi\")\r\n @WebResult(name = \"GetDMLoaiAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetDMLoaiAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChi\")\r\n @ResponseWrapper(localName = \"GetDMLoaiAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChiResponse\")\r\n public String getDMLoaiAnChi(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * L\\u1ea5y danh sách \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetAnChiByAgency\", action = \"http://tempuri.org/GetAnChiByAgency\")\r\n @WebResult(name = \"GetAnChiByAgencyResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetAnChiByAgency\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgency\")\r\n @ResponseWrapper(localName = \"GetAnChiByAgencyResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgencyResponse\")\r\n public String getAnChiByAgency(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * C\\u1eadp nh\\u1eadt danh sách \\u1ea5n ch\\u1ec9 \\u0111ã s\\u1eed d\\u1ee5ng\r\n * \r\n * @param anChis\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"UpdateListAnChi\", action = \"http://tempuri.org/UpdateListAnChi\")\r\n @WebResult(name = \"UpdateListAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"UpdateListAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChi\")\r\n @ResponseWrapper(localName = \"UpdateListAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChiResponse\")\r\n public String updateListAnChi(\r\n @WebParam(name = \"anChis\", targetNamespace = \"http://tempuri.org/\")\r\n String anChis);\r\n\r\n}",
"@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}",
"ShipmentGatewayConfigType createShipmentGatewayConfigType();",
"@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}",
"@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}",
"public BaseNetHandler(String name)\n\t{\n\t\tthis.name = name;\n\t\tthis.packets = new ArrayList<>();\n\t}",
"public ShopService(String name)\n\t{\n\t\tthis.name = name;\n\t}",
"FuelingStation createFuelingStation();",
"public TranslatorGeneratorBaseClientWeb(final String translatorType,\r\n\t\t\t\t\t\t\t\t final GenerationParameters generationParams,\r\n\t\t\t\t\t\t\t\t final ParsedInfoHandler parsedInfoHandler,\r\n\t\t\t\t\t\t\t\t final String generationPackage)\r\n\t{\r\n\t\tsuper(translatorType, generationParams, parsedInfoHandler, generationPackage) ;\r\n\t}",
"protected static ServiceRequest createServiceRequest( Element elem, String webinfPath )\n throws XMLParsingException, IOException {\n String requestName = XMLTools.getAttrValue( elem, null, \"name\", null );\n String attr = XMLTools.getAttrValue( elem, null, \"isGetable\", null );\n boolean canGet = ( attr != null && attr.equals( \"1\" ) ) ? true : false;\n\n attr = XMLTools.getAttrValue( elem, null, \"isPostable\", null );\n boolean canPost = ( attr != null && attr.equals( \"1\" ) ) ? true : false;\n\n String getForm = XMLTools.getNodeAsString( elem, StringTools.concat( 100, \"./\", dotPrefix, \"GetForm\" ), cnxt,\n null );\n String postForm = XMLTools.getNodeAsString( elem, StringTools.concat( 100, \"./\", dotPrefix, \"PostForm\" ), cnxt,\n null );\n List<Element> list = XMLTools.getElements( elem, StringTools.concat( 100, \"./\", dotPrefix,\n \"RequestParameters/\", dotPrefix, \"Key\" ),\n cnxt );\n List<String> htmlKeys = new ArrayList<String>();\n for ( Element key : list ) {\n htmlKeys.add( key.getTextContent() );\n }\n String getSnippetPath = null;\n if ( getForm != null && getForm.length() > 0 ) {\n StringBuilder builder = new StringBuilder( 150 );\n builder.append( webinfPath );\n if ( !webinfPath.endsWith( \"/\" ) ) {\n builder.append( \"/\" );\n }\n builder.append( getForm );\n getSnippetPath = builder.toString();\n }\n\n String postSnippetPath = null;\n if ( postForm != null && postForm.length() > 0 ) {\n StringBuilder builder = new StringBuilder( 150 );\n builder.append( webinfPath );\n if ( !webinfPath.endsWith( \"/\" ) ) {\n builder.append( \"/\" );\n }\n builder.append( postForm );\n postSnippetPath = builder.toString();\n }\n\n return new ServiceRequest( requestName, getSnippetPath, postSnippetPath, canPost, canGet, htmlKeys );\n }",
"CdapStartServiceStep createCdapStartServiceStep();",
"public static Port CreatePort(String name, Component component, Port p1,CompoundType compoundType)\n\t{\n\t\tPort p = behavFactory.createPort();\n\t\tExportBinding eb = interFactory.createExportBinding();\n\t\tPartElementReference PER = interFactory.createPartElementReference();\t\n\t\tPER.setTargetPart(component);\n\t\teb.setTargetInstance(PER);\n\t\teb.setTargetPort(p1);\n\t\tp.setBinding(eb);\n\t\tp.setName(name);\n\t\tp.setType(p1.getType());\n\t\tp.setComponentType(compoundType);\n\t\tcompoundType.getPort().add(p);\n\t\treturn p;\n\t}",
"static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }",
"public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}",
"void createRequest(EnumOperationType opType, IParameter parameter);",
"@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}",
"@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}",
"@WebService(targetNamespace = \"http://publicar.uytubeLogica/\", name = \"WebServices\")\r\n@XmlSeeAlso({ObjectFactory.class, net.java.dev.jaxb.array.ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface WebServices {\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRRequest\", output = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRResponse\")\r\n public void cambiarPrivLDR(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/operacionPruebaRequest\", output = \"http://publicar.uytubeLogica/WebServices/operacionPruebaResponse\")\r\n public void operacionPrueba();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPublicasPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarDispUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanalArray listarCanalesPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtUsuario listarDatosUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioResponse\")\r\n public void seguirUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/valorarVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/valorarVideoResponse\")\r\n public void valorarVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n boolean arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray infoLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanal mostrarInfoCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaResponse\")\r\n public void agregarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtRequest\", output = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtInfoVideo verDetallesVideoExt(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/responderComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/responderComentarioResponse\")\r\n public void responderComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n DtFecha arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVisitaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVisitaResponse\")\r\n public void agregarVisita(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioResponse\")\r\n public void nuevoUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n DtFecha arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n byte[] arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n java.lang.String arg7,\r\n @WebParam(partName = \"arg8\", name = \"arg8\")\r\n java.lang.String arg8,\r\n @WebParam(partName = \"arg9\", name = \"arg9\")\r\n Privacidad arg9,\r\n @WebParam(partName = \"arg10\", name = \"arg10\")\r\n java.lang.String arg10\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarLoginRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarLoginResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarLogin(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularResponse\")\r\n public void nuevaListaParticular(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioResponse\")\r\n public void nuevoComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n DtFecha arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaResponse\")\r\n public void eliminarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionRequest\", output = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public java.lang.String getEstadoValoracion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCategoriasRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCategoriasResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCategoriaArray listarCategorias();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoHistorialArray listarVideoHistorial(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberListaReproduccionPropia(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarComentariosRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarComentariosResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtComentarioArray listarComentarios(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray obtenerDtsVideosListaReproduccionUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccion infoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/aniadirVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/aniadirVideoResponse\")\r\n public void aniadirVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n int arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n DtFecha arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n java.lang.String arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n DtCategoria arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n Privacidad arg7\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueLeSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray infoVideosCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioResponse\")\r\n public void bajaUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoAddVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoAddVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideo infoAddVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cargarDatosRequest\", output = \"http://publicar.uytubeLogica/WebServices/cargarDatosResponse\")\r\n public void cargarDatos();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioResponse\")\r\n public void dejarUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n}",
"public interface Sbpayment {\n\n /**\n * Create Default sbpayment with sbpayment.properties in resource\n */\n static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }\n\n /**\n * Create Default sbpayment with the file path in resource\n *\n * @param filePath properties file path in resource\n */\n static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }\n\n /**\n * Create Default sbpayment with properties object\n *\n * @param properties The {@link Properties}\n */\n static Sbpayment newInstance(Properties properties) {\n return new DefaultSbpayment(SpsConfig.from(properties));\n }\n\n /**\n * Create Default sbpayment with config object\n *\n * @param config The {@link SpsConfig}\n */\n static Sbpayment newInstance(SpsConfig config) {\n return new DefaultSbpayment(config);\n }\n\n /**\n * SPS Information\n */\n SpsConfig.SpsInfo getSpsInfo();\n\n\n /**\n * Gets made getMapper\n *\n * @return SpsMapper\n */\n SpsMapper getMapper();\n\n /**\n * Gets made getClient\n *\n * @return SpsClient\n */\n SpsClient getClient();\n\n /**\n * Gets made getReceiver\n *\n * @return SpsReceiver\n */\n SpsReceiver getReceiver();\n}",
"ParameterStructInstance createParameterStructInstance();",
"ParameterBinding createParameterBinding();",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"@WebService\npublic interface SendMsgInterface {\n String sendFlightDynamic(String var1, String var2, ArrayList<FlightDynamic> var3, ArrayList<FlightPairWrapper> var4);\n\n String sendOci(String syncNo,ArrayList<String> ociJsonList);\n}",
"public DataReceiveService(String name) {\n super(name);\n }",
"@WebService(name = \"Itinerary\", targetNamespace = \"http://service.second.webservice.kth.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Itinerary {\n\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.util.List<se.kth.webservice.second.service.TravelPath>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAvailableItineraries\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAvailableItineraries\")\n @ResponseWrapper(localName = \"getAvailableItinerariesResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAvailableItinerariesResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getAvailableItinerariesRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getAvailableItinerariesResponse\")\n public List<TravelPath> getAvailableItineraries(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns se.kth.webservice.second.service.Airport\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAirportById\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirportById\")\n @ResponseWrapper(localName = \"getAirportByIdResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirportByIdResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getAirportByIdRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getAirportByIdResponse\")\n public Airport getAirportById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns se.kth.webservice.second.service.Airline\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAirlineById\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirlineById\")\n @ResponseWrapper(localName = \"getAirlineByIdResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetAirlineByIdResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getAirlineByIdRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getAirlineByIdResponse\")\n public Airline getAirlineById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.kth.webservice.second.service.Departure>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeparturesFromRoute\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetDeparturesFromRoute\")\n @ResponseWrapper(localName = \"getDeparturesFromRouteResponse\", targetNamespace = \"http://service.second.webservice.kth.se/\", className = \"se.kth.webservice.second.service.GetDeparturesFromRouteResponse\")\n @Action(input = \"http://service.second.webservice.kth.se/Itinerary/getDeparturesFromRouteRequest\", output = \"http://service.second.webservice.kth.se/Itinerary/getDeparturesFromRouteResponse\")\n public List<Departure> getDeparturesFromRoute(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}",
"@WebService(targetNamespace = \"http://soap.spring.com/ws/poverenik\", name = \"Poverenik\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface Poverenik {\n\n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String sayHi(\n @WebParam(partName = \"text\", name = \"text\")\n String text\n );\n \n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String saveExplanation(\n @WebParam(partName = \"xml\", name = \"xml\")\n String xml\n );\n \n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String saveReport(\n @WebParam(partName = \"izvestaj\", name = \"izvestaj\")\n String izvestaj\n );\n}",
"@WebService(name = \"SoapHodieSoap\", targetNamespace = \"http://hodielog.com.br/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapHodieSoap {\n\n\n /**\n * \n * Get shipments data from the HODIE system\n * \n * \n * @param pass\n * @param shipmentDate\n * @param user\n * @return\n * returns br.com.hodielog.ReturnData\n */\n @WebMethod(action = \"http://hodielog.com.br/shipments\")\n @WebResult(partName = \"return\")\n public ReturnData shipments(\n @WebParam(name = \"shipmentDate\", partName = \"shipmentDate\")\n String shipmentDate,\n @WebParam(name = \"user\", partName = \"user\")\n String user,\n @WebParam(name = \"pass\", partName = \"pass\")\n String pass);\n\n}",
"@Override\n\t\tpublic String buildBasicService() {\n\t\t\treturn bulidService();\n\t\t}"
]
| [
"0.59182936",
"0.571827",
"0.56925344",
"0.5669096",
"0.566493",
"0.55806464",
"0.55634815",
"0.5547306",
"0.55443573",
"0.55215406",
"0.5515064",
"0.5507447",
"0.54988736",
"0.54769087",
"0.5419831",
"0.5414575",
"0.5404591",
"0.5397998",
"0.53648984",
"0.5352251",
"0.53411174",
"0.53313774",
"0.53192896",
"0.5298499",
"0.52708817",
"0.52560824",
"0.5237834",
"0.52294755",
"0.522292",
"0.5222082",
"0.52207816",
"0.5220554",
"0.51698273",
"0.5151235",
"0.51398224",
"0.51136047",
"0.51097727",
"0.5104857",
"0.510469",
"0.5100401",
"0.5098253",
"0.5090083",
"0.50748503",
"0.50722975",
"0.5071891",
"0.5070984",
"0.5070984",
"0.5070984",
"0.5063354",
"0.5057411",
"0.5054071",
"0.5050566",
"0.50479984",
"0.50367516",
"0.50306904",
"0.5028456",
"0.50271386",
"0.5026813",
"0.50234085",
"0.5017922",
"0.5015962",
"0.5008116",
"0.5006989",
"0.49953553",
"0.49857983",
"0.49850374",
"0.49780917",
"0.49757385",
"0.49720174",
"0.49701846",
"0.49615514",
"0.49594173",
"0.49523124",
"0.4952302",
"0.49496016",
"0.49463177",
"0.49308157",
"0.49248385",
"0.49197385",
"0.49124944",
"0.4912336",
"0.49109048",
"0.4909076",
"0.49072883",
"0.4907198",
"0.49014977",
"0.48950005",
"0.48948008",
"0.48934656",
"0.48921055",
"0.48914447",
"0.48789123",
"0.48787272",
"0.48775452",
"0.4870004",
"0.48675913",
"0.48665118",
"0.48623222",
"0.48579857",
"0.48577932",
"0.48517808"
]
| 0.0 | -1 |
Verifies this service gateway decomposition against YAWL semantics. | public void verify(YVerificationHandler handler) {
super.verify(handler);
for (YParameter parameter : _enablementParameters.values()) {
parameter.verify(handler);
}
for (YAWLServiceReference yawlService : _yawlServices.values()) {
yawlService.verify(handler);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean verify(String hostname, SSLSession ssls) {\n return true;\n }",
"int isValid() throws IOException, SoapException;",
"protected void verifyProtocol() throws IOException {\n try {\n outputStream.writeBytes(new RootRequest(repository).getRequestString(), \"US-ASCII\");\n outputStream.writeBytes(new UseUnchangedRequest().getRequestString(), \"US-ASCII\");\n outputStream.writeBytes(new ValidRequestsRequest().getRequestString(), \"US-ASCII\");\n outputStream.writeBytes(\"noop \\n\", \"US-ASCII\");\n } catch (UnconfiguredRequestException e) {\n throw new RuntimeException(\"Internal error verifying CVS protocol: \" + e.getMessage());\n }\n outputStream.flush();\n\n StringBuffer responseNameBuffer = new StringBuffer();\n int c;\n while ((c = inputStream.read()) != -1) {\n responseNameBuffer.append((char)c);\n if (c == '\\n') break;\n }\n\n String response = responseNameBuffer.toString();\n if (!response.startsWith(\"Valid-requests\")) {\n throw new IOException(\"Unexpected server response: \" + response);\n }\n }",
"protected abstract boolean isResponseValid(SatelMessage response);",
"public boolean verify();",
"@org.junit.Test\n public void testTLSHOKSignedEndorsing() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItTLSHOKSignedEndorsingPort\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n String portNumber = PORT2;\n if (STAX_PORT.equals(test.getPort())) {\n portNumber = STAX_PORT2;\n }\n updateAddressPort(samlPort, portNumber);\n\n if (test.isStreaming()) {\n SecurityTestUtil.enableStreaming(samlPort);\n }\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }",
"@Override\n protected Result check() throws Exception { \n try {\n GetOSVersionRes res = this.service.getOSVersion(new GetOSVersionReq());\n // only return the OS name to avoid any potential\n // security problem if the version was exposed...\n return Result.healthy(res.getReturn().getOs().getOsName());\n } catch(Exception e) {\n return Result.unhealthy(e.getMessage());\n }\n }",
"public abstract boolean verify();",
"@org.junit.Test\n public void testTLSHOKSignedEndorsingSaml2() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItTLSHOKSignedEndorsingSaml2Port\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n String portNumber = PORT2;\n if (STAX_PORT.equals(test.getPort())) {\n portNumber = STAX_PORT2;\n }\n updateAddressPort(samlPort, portNumber);\n\n if (test.isStreaming()) {\n SecurityTestUtil.enableStreaming(samlPort);\n }\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }",
"private boolean validateConnection() {\n boolean success = _vcVlsi.testConnection();\n if (!success) {\n _log.log(Level.WARNING, \"Found VC connection dropped; reconnecting\");\n return connect();\n }\n return success;\n }",
"private void checkIfAlive() {\n synchronized (this) {\n if (!mIsAlive) {\n Log.e(LOG_TAG, \"use of a released dataHandler\", new Exception(\"use of a released dataHandler\"));\n //throw new AssertionError(\"Should not used a MXDataHandler\");\n }\n }\n }",
"@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}",
"public void verifyBusinessRules(Coin Coin) throws Exception {\n\t}",
"@org.junit.Test\n public void testAsymmetricSaml2Bearer() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItAsymmetricSaml2BearerPort\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n updateAddressPort(samlPort, test.getPort());\n\n if (test.isStreaming()) {\n SecurityTestUtil.enableStreaming(samlPort);\n }\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }",
"protected boolean checkLicense() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@org.junit.Test\n public void testSymmetricSV() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItSymmetricSVPort\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n updateAddressPort(samlPort, test.getPort());\n\n if (test.isStreaming()) {\n SecurityTestUtil.enableStreaming(samlPort);\n }\n\n // TODO Endorsing Streaming not supported yet Streaming\n if (!test.isStreaming()) {\n samlPort.doubleIt(25);\n }\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }",
"@org.junit.Test\n public void testTLSSenderVouchesSaml2() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItTLSSenderVouchesSaml2Port\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n String portNumber = PORT2;\n if (STAX_PORT.equals(test.getPort())) {\n portNumber = STAX_PORT2;\n }\n updateAddressPort(samlPort, portNumber);\n\n if (test.isStreaming()) {\n SecurityTestUtil.enableStreaming(samlPort);\n }\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }",
"@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }",
"@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }",
"private void validateFermatPacketSignature(FermatPacket fermatPacketReceive){\n\n System.out.println(\" WsCommunicationVPNClient - validateFermatPacketSignature\");\n\n /*\n * Validate the signature\n */\n boolean isValid = AsymmectricCryptography.verifyMessageSignature(fermatPacketReceive.getSignature(), fermatPacketReceive.getMessageContent(), vpnServerIdentity);\n\n System.out.println(\" WsCommunicationVPNClient - isValid = \" + isValid);\n\n /*\n * if not valid signature\n */\n if (!isValid){\n throw new RuntimeException(\"Fermat Packet received has not a valid signature, go to close this connection maybe is compromise\");\n }\n\n }",
"@Override\n @SuppressFBWarnings(\"BC_UNCONFIRMED_CAST\")\n protected void validateSecurityMethods() throws SuiteBroken {\n // GATTT, PATTT, GHTTT, PHTTT\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n }",
"public boolean isValid()\r\n {\r\n //Override this method in MediaItem object\r\n return getSemanticObject().getBooleanProperty(swb_valid,false);\r\n }",
"private void verify(Document doc) throws Exception {\n secEngine.processSecurityHeader(doc, null, this, crypto);\n }",
"public boolean isBwaswAlgorithm() {\n\t\treturn bwaswAlgorithm;\n\t}",
"@Override\n\t\t\t\t\t\tpublic boolean verify(String hostname,\n\t\t\t\t\t\t\t\tSSLSession session) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}",
"public static void verify() {\n\n\t\t\t\n\t\t\t\n\t\t\n\t}",
"@After\n \tpublic void confirm() {\n \t\tcheckGlobalStatus();\n \n \t\tIterator<CyNetworkView> viewIt = viewManager.getNetworkViewSet().iterator();\n \n \t\tCyNetworkView view = viewIt.next(); \n \t\tCyNetwork network = view.getModel();\n \t\t\n \t\tcheckNetwork(network);\n \t\tcheckNetworkView(network);\n \t\tcheckAttributes(network);\n \t}",
"@Override\n public boolean isValid() {\n final BlockChainInt outputHash = getOutputHash();\n\n return inputs.stream().map(input -> input.verifySignature(outputHash)).reduce(true, (a, b) -> a && b)\n && outputs.stream().map(output -> output.getAmount() >= 0).reduce(true, (a, b) -> a && b)\n && getTransactionFee() >= 0;\n }",
"public void verifyServerCertificates(boolean yesno);",
"public boolean isValidated() throws Exception\r\n {\n return false;\r\n }",
"public boolean checkTestVector() throws Exception {\n\n this.doCalculate();\n\n byte[] expectedOutput=null;\n switch ( this.type ) {\n case ENCRYPT:\n expectedOutput = this.cipherText; \n break;\n case DECRYPT:\n expectedOutput = this.payLoad;\n break;\n default:\n throw new Exception(\"not allowed\");\n }\n\n return Arrays.equals(this.calculatedOutput, expectedOutput);\n }",
"@org.junit.Test\n public void testTLSSenderVouches() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItTLSSenderVouchesPort\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n String portNumber = PORT2;\n if (STAX_PORT.equals(test.getPort())) {\n portNumber = STAX_PORT2;\n }\n updateAddressPort(samlPort, portNumber);\n\n if (test.isStreaming()) {\n SecurityTestUtil.enableStreaming(samlPort);\n }\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }",
"@Override\r\n protected Result check() throws Exception {\n try {\r\n Response response = webTarget.request().get();\r\n\r\n if (!response.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL)) {\r\n\r\n return Result.unhealthy(\"Received status: \" + response.getStatus());\r\n }\r\n\r\n return Result.healthy();\r\n } catch (Exception e) {\r\n\r\n return Result.unhealthy(e.getMessage());\r\n }\r\n }",
"@org.junit.Test\n public void testAsymmetricSigned() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItAsymmetricSignedPort\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n updateAddressPort(samlPort, test.getPort());\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }",
"public boolean validate_connection() {\n throw new NO_IMPLEMENT(reason);\n }",
"@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }",
"public void verify() {\n lblSourcePackageFolder();\n lblClasspath();\n btAddJARFolder();\n btRemove();\n lblOutputFolderOrJAR();\n txtOutputFolder();\n btBrowse();\n lstClasspath();\n cboSourcePackageFolder();\n btMoveUp();\n btMoveDown();\n lblOnlineError();\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"public void validateRpd8s12()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd8s2()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd3s12()\n {\n // This guideline cannot be automatically tested.\n }",
"public boolean validate() throws Exception {\n return true;\n }",
"public boolean validate() throws Exception {\n return true;\n }",
"boolean isValidForNow ();",
"private static boolean verify(Socket s) {\r\n\t\t//TODO: Implement this.\r\n\t\treturn true;\r\n\t}",
"public void verify() throws InternalSkiException {\n if (SERVER_KEY_VALUE==null || \"\".equals(SERVER_KEY_VALUE.trim())) {\n throw new InternalSkiException(\"Cannot validate server key!\");\n }\n\n byte[] tokenKey = getTokenKey();\n byte[] systemKey = getSystemKey();\n\n if (tokenKey==null || systemKey==null) {\n throw new InternalSkiException(\"Cannot validate token or system keys!\");\n }\n }",
"@Test\r\n\tpublic void testYOBValid() {\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(1880));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(2019));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(2018));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(1881));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(1960));\r\n\t\t\r\n\t}",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkProtocol() {\n\t\tboolean flag = oTest.checkProtocol();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}",
"@Test\n public void testCheckPolyspaceBin() throws Exception {\n PolyspaceBinConfig.DescriptorImpl desc_bin = new PolyspaceBinConfig.DescriptorImpl();\n\n FormValidation path_bin_not_found = desc_bin.doCheckPolyspacePath(BIN_NOT_FOUND); // Folder was not created\n assertEquals(FormValidation.Kind.WARNING, path_bin_not_found.kind);\n assertEquals(com.mathworks.polyspace.jenkins.config.Messages.polyspaceBinNotFound(), path_bin_not_found.renderHtml());\n\n FormValidation path_bin_not_valid = desc_bin.doCheckPolyspacePath(BIN_NOT_VALID); // Folder exists it but it does not contain a polyspace binary\n assertEquals(FormValidation.Kind.WARNING, path_bin_not_valid.kind);\n assertEquals(com.mathworks.polyspace.jenkins.config.Messages.polyspaceBinNotValid(), path_bin_not_valid.renderHtml());\n\n FormValidation path_bin_wrong_config = desc_bin.doCheckPolyspacePath(FAKE_BIN_FOLDER); // Folder exists but contains a wrong polyspace binary\n assertEquals(FormValidation.Kind.ERROR, path_bin_wrong_config.kind);\n assertEquals(com.mathworks.polyspace.jenkins.config.Messages.polyspaceBinWrongConfig() + \" '\" + FAKE_POLYSPACE + \" -h'\", path_bin_wrong_config.renderHtml());\n }",
"public boolean isValid(HTTPProxyEvent event);",
"@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}",
"private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}",
"protected boolean isOnPayline() {\n return getY()==getHeight();\n }",
"@Test\n public void testWildflyOpenSSL() throws Throwable {\n assumeThat(hasWildfly).isTrue();\n assertThat(bindSocketFactory(Default))\n .describedAs(\"Sockets from mode \" + Default)\n .isIn(OpenSSL, Default_JSSE);\n }",
"public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }",
"boolean hasDdzConfirmRule();",
"private void checkFormat() {\n if (y.pixelStride != 1) {\n throw new IllegalArgumentException(String.format(\n \"Pixel stride for Y plane must be 1 but got %d instead\",\n y.pixelStride\n ));\n }\n if (u.pixelStride != v.pixelStride || u.rowStride != v.rowStride) {\n throw new IllegalArgumentException(String.format(\n \"U and V planes must have the same pixel and row strides \" +\n \"but got pixel=%d row=%d for U \" +\n \"and pixel=%d and row=%d for V\",\n u.pixelStride, u.rowStride,\n v.pixelStride, v.rowStride\n ));\n }\n if (u.pixelStride != 1 && u.pixelStride != 2) {\n throw new IllegalArgumentException(\n \"Supported pixel strides for U and V planes are 1 and 2\"\n );\n }\n }",
"public void run() throws Exception {\n FakeActivationID aid = new FakeActivationID(logger);\n RMCProxy fp = new RMCProxy(logger);\n ActivatableInvocationHandler handler = new\n ActivatableInvocationHandler(aid, fp);\n\tFakeActivationID aid2 = new FakeActivationID(logger);\n RMCProxy fp2 = new RMCProxy(logger);\n ActivatableInvocationHandler handler2 = new\n ActivatableInvocationHandler(aid2, fp2);\n aid2.setTrustEquivalence(false);\n assertion(!handler.checkTrustEquivalence(handler2),\n \"checkTrustEquivalence should return false,\"\n + \" if ActivationID.checkTrustEquivalence returns false\");\n }",
"@java.lang.Override\n public boolean hasVpnGateway() {\n return stepInfoCase_ == 10;\n }",
"private void validaciónDeRespuesta()\n\t{\n\t\ttry {\n\n\t\t\tString valorCifrado = in.readLine();\n\t\t\tString hmacCifrado = in.readLine();\n\t\t\tbyte[] valorDecifrado = decriptadoSimetrico(parseBase64Binary(valorCifrado), llaveSecreta, algSimetrica);\n\t\t\tString elString = printBase64Binary(valorDecifrado);\n\t\t\tbyte[] elByte = parseBase64Binary(elString);\n\n\t\t\tSystem.out.println( \"Valor decifrado: \"+elString + \"$\");\n\n\t\t\tbyte[] hmacDescifrado = decriptarAsimetrico(parseBase64Binary(hmacCifrado), llavePublica, algAsimetrica);\n\n\t\t\tString hmacRecibido =printBase64Binary(hmacDescifrado);\n\t\t\tbyte[] hmac = hash(elByte, llaveSecreta, HMACSHA512);\n\t\t\tString hmacGenerado = printBase64Binary(hmac);\n\n\n\n\n\t\t\tboolean x= hmacRecibido.equals(hmacGenerado);\n\t\t\tif(x!=true)\n\t\t\t{\n\t\t\t\tout.println(ERROR);\n\t\t\t\tSystem.out.println(\"Error, no es el mismo HMAC\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Se confirmo que el mensaje recibido proviene del servidor mediante el HMAC\");\n\t\t\t\tout.println(OK);\n\t\t\t}\n\n\n\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error con el hash\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean isOK() {\n\t\treturn adaptee.isOK();\n\t}",
"public void validateRpd8s18()\n {\n // This guideline cannot be automatically tested.\n }",
"public void verifyConnectivity() {\n\n // Attempt to make a valid request to the VPLEX management server.\n URI requestURI = _baseURI.resolve(VPlexApiConstants.URI_CLUSTERS);\n ClientResponse response = null;\n try {\n response = get(requestURI);\n String responseStr = response.getEntity(String.class);\n s_logger.info(\"Verify connectivity response is {}\", responseStr);\n if (responseStr == null || responseStr.equals(\"\")) {\n s_logger.error(\"Response from VPLEX was empty.\");\n throw VPlexApiException.exceptions.connectionFailure(_baseURI.toString());\n }\n int responseStatus = response.getStatus();\n if (responseStatus != VPlexApiConstants.SUCCESS_STATUS) {\n s_logger.info(\"Verify connectivity response status is {}\", responseStatus);\n if (responseStatus == VPlexApiConstants.AUTHENTICATION_STATUS) {\n // Bad user name and/or password.\n throw VPlexApiException.exceptions.authenticationFailure(_baseURI.toString());\n } else {\n // Could be a 404 because the IP was not that for a VPLEX.\n throw VPlexApiException.exceptions.connectionFailure(_baseURI.toString());\n }\n }\n } catch (VPlexApiException vae) {\n throw vae;\n } catch (Exception e) {\n // Could be a java.net.ConnectException for an invalid IP address\n // or a java.net.SocketTimeoutException for a bad port.\n throw VPlexApiException.exceptions.connectionFailure(_baseURI.toString());\n } finally {\n if (response != null) {\n response.close();\n }\n }\n }",
"@Test\r\n\tpublic void testYOBInvalid() {\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(1879));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(1878));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(2020));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(-1879));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(3000));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(0));\r\n\t}",
"@Override\n\t\t\t\tpublic boolean verify(String urlHostName, SSLSession session) {\n\t\t\t\t\treturn true;\n\t\t\t\t}",
"public void verifyPassivate() {\n // TODO - How to test the EJB passivate?\n throw new RuntimeException(\"Test not implemented yet.\");\n }",
"boolean checkVerification();",
"@Override\n public boolean checkAvailability(BasketEntryDto basketEntryDto) {\n // Add communication to product micro service here for product validation\n return Boolean.TRUE;\n }",
"public abstract Result check(WebBundleDescriptor descriptor);",
"private boolean stabilizedOnUpdate(\n final UpdateMonitoringScheduleRequest updateMonitoringScheduleRequest,\n final UpdateMonitoringScheduleResponse updateMonitoringScheduleResponse,\n final ProxyClient<SageMakerClient> proxyClient,\n final ResourceModel model,\n final CallbackContext callbackContext) {\n\n if(model.getMonitoringScheduleArn() == null){\n model.setMonitoringScheduleArn(updateMonitoringScheduleResponse.monitoringScheduleArn());\n }\n\n final ScheduleStatus monitoringScheduleState = proxyClient.injectCredentialsAndInvokeV2(\n TranslatorForRequest.translateToReadRequest(model),\n proxyClient.client()::describeMonitoringSchedule).monitoringScheduleStatus();\n\n switch (monitoringScheduleState) {\n case SCHEDULED:\n case STOPPED:\n logger.log(String.format(\"%s [%s] has been stabilized with state %s during update operation.\",\n ResourceModel.TYPE_NAME, model.getPrimaryIdentifier(), monitoringScheduleState));\n return true;\n case PENDING:\n logger.log(String.format(\"%s [%s] is stabilizing during update.\", ResourceModel.TYPE_NAME, model.getPrimaryIdentifier()));\n return false;\n default:\n throw new CfnGeneralServiceException(\"Stabilizing during update of \" + model.getPrimaryIdentifier());\n\n }\n }",
"@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"public void updateStructure()\n\t{\n\t\tboolean itWorked = true;\n\t\t\n\t\t// Get block's rotational information as a ForgeDirection\n\t\tForgeDirection rotation = ForgeDirection.getOrientation(Utils.backFromMeta(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)));\n\t\t\n\t\t//\n\t\t// Step one: validate all blocks\n\t\t//\n\t\t\n\t\t// Get the MachineStructures from the MachineStructureRegistrar\n\t\t// But if the machine is already set up it should only check the desired structure.\n\t\tfor (MachineStructure struct : (structureComplete() ? MachineStructureRegistrar.getStructuresForMachineID(getMachineID()) : MachineStructureRegistrar.getStructuresForMachineID(getMachineID())))\n\t\t{\n\t\t\t// Check each block in requirements\n\t\t\tfor (PReq req : struct.requirements)\n\t\t\t{\n\t\t\t\t// Get the rotated block coordinates.\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\n\t\t\t\t// Check the requirement.\n\t\t\t\tif (!req.requirement.isMatch(tier, worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord))\n\t\t\t\t{\n\t\t\t\t\t// If it didn't work, stop checking.\n\t\t\t\t\titWorked = false; break;\n\t\t\t\t}\n\t\t\t\t// If it did work keep calm and carry on\n\t\t\t}\n\t\t\t\n\t\t\t// We've gone through all the blocks. They all match up!\n\t\t\tif (itWorked)\n\t\t\t{\n\t\t\t\t// **If the structure is new only**\n\t\t\t\t// Which implies the blocks have changed between checks\n\t\t\t\tif (struct.ID != structureID)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// This is only called when structures are changed/first created.\n\t\t\t\t\t//\n\t\t\t\t\t\n\t\t\t\t\t// Save what structure we have.\n\t\t\t\t\tstructureID = struct.ID;\n\t\t\t\t\t\n\t\t\t\t\t// Make an arraylist to save all teh structures\n\t\t\t\t\tArrayList<StructureUpgradeEntity> newEntities = new ArrayList<StructureUpgradeEntity>();\n\n\t\t\t\t\t// Tell all of the blocks to join us!\n\t\t\t\t\tfor (PReq req : struct.requirements)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the blocks that the structure has checked.\n\t\t\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z); if (brock == null) continue;\n\n\t\t\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t\t\t((IStructureAware)brock).onStructureCreated(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check the tile entity for upgrades\n\t\t\t\t\t\tTileEntity ent = worldObj.getTileEntity(pos.x, pos.y, pos.z);\n\t\t\t\t\t\tif (ent != null && ent instanceof StructureUpgradeEntity)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStructureUpgradeEntity structEnt = (StructureUpgradeEntity)ent;\n\t\t\t\t\t\t\tnewEntities.add(structEnt);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* // Not sure about this.\n\t\t\t\t\t\t\tif (structEnt.coreX != xCoord && structEnt.coreY != yCoord && structEnt.coreZ != zCoord)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstructEnt.onCoreConnected()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// do stuff with that\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// I haven't figured out how the hell to do toArray() in this crap\n\t\t\t\t\t// so here's a weird combination of iterator and for loop\n\t\t\t\t\tupgrades = new StructureUpgradeEntity[newEntities.size()];\n\t\t\t\t\tfor (int i = 0; i < newEntities.size(); i++)\n\t\t\t\t\t\tupgrades[i] = newEntities.get(i);\n\n\t\t\t\t\t// Tell all of the structure blocks to stripe it up!\n\t\t\t\t\tfor (RelativeFaceCoords relPos : struct.relativeStriped)\n\t\t\t\t\t{\n\t\t\t\t\t\tBlockPosition pos = relPos.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If it's a structure block tell it to stripe up\n\t\t\t\t\t\tif (brock != null && brock instanceof StructureBlock)\n\t\t\t\t\t\t\tworldObj.setBlockMetadataWithNotify(pos.x, pos.y, pos.z, 2, 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// If not, reset the loop and try again.\n\t\t\telse { itWorked = true; continue; }\n\t\t}\n\t\t\n\t\t//\n\t\t// None of the structures worked!\n\t\t//\n\t\t\n\t\t// If we had a structure before, we need to clear it\n\t\tif (structureComplete())\n\t\t{\n\t\t\tfor (PReq req : MachineStructureRegistrar.getMachineStructureByID(structureID).requirements)\n\t\t\t{\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\n\t\t\t\t// This will also un-stripe all structure blocks.\n\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t((IStructureAware)brock).onStructureBroken(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t}\n\t\t\t// We don't have a structure.\n\t\t\tstructureID = null;\n\t\t}\n\t\t\n\t}",
"public boolean doBusiness() {\n\t\tif(!verifyService.verify()) {\n\t\t\treturn false;\n\t\t}\n\t\t//doBusiness业务逻辑\n\t\tSystem.out.println(\"处理业务逻辑。。。。\");\n\t\t\n\t\t//业务逻辑处理完后发送消息\n\t\tsendMsgService.sendMsg();\n\t\treturn true;\n\t}",
"@Override\n\tpublic final void checkLicense() {\n\t}",
"@Override\n public boolean verify(Verificator verificator) {\n return verificator.verifyResources(this);\n }",
"public boolean wasOkay();",
"public boolean doRemoteSetupAndVerification() throws Exception {\n return true;\n }",
"public void validateRpd8s3()\n {\n // This guideline cannot be automatically tested.\n }",
"@java.lang.Override\n public boolean hasVpnGateway() {\n return stepInfoCase_ == 10;\n }",
"public boolean hasY() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasY() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasY() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public void validate() throws Exception{\n \ttry{\n \tSparqlConnection conn = new SparqlConnection(this.jsonRenderedSparqlConnection); \n \t}\n \tcatch(Exception e){\n \t\tthrow new Exception(\"unable to create ontology info: \" + e.getMessage(), e);\n \t}\n }",
"public boolean isValid() {\n return handle > 0;\n }",
"@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}",
"private void confirm() {\n\t\tcheckGlobalStatus();\n\n\t\tfinal Set<CyNetwork> networks = networkManager.getNetworkSet();\n\t\tfinal Iterator<CyNetwork> itr = networks.iterator();\n\t\tCyNetwork network = itr.next();\n\n\t\tcheckNetwork(network);\n\t}",
"private void checkBlFunctAdvert() {\n if (blAdapt.isMultipleAdvertisementSupported()) {\n checkPermLocation();\n } else {\n DialogCreator.createDialogAlert(this, R.string.txt_bl_adv_needed, R.string.txt_bl_descr_adv_needed, R.string.txt_ok, null,\n new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n finish();\n }\n });\n }\n }",
"public void validateRpd8s20()\n {\n // This guideline cannot be automatically tested.\n }",
"@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }",
"private void verifyServerHandshake(InputStream inputStream, String secWebSocketKey) throws IOException {\n try {\n SessionInputBufferImpl sessionInputBuffer = new SessionInputBufferImpl(new HttpTransportMetricsImpl(),\n 8192);\n sessionInputBuffer.bind(inputStream);\n HttpMessageParser<HttpResponse> parser = new DefaultHttpResponseParser(sessionInputBuffer);\n HttpResponse response = parser.parse();\n\n StatusLine statusLine = response.getStatusLine();\n if (statusLine == null) {\n throw new InvalidServerHandshakeException(\"There is no status line\");\n }\n\n int statusCode = statusLine.getStatusCode();\n if (statusCode != 101) {\n throw new InvalidServerHandshakeException(\n \"Invalid status code. Expected 101, received: \" + statusCode);\n }\n\n Header[] upgradeHeader = response.getHeaders(\"Upgrade\");\n if (upgradeHeader.length == 0) {\n throw new InvalidServerHandshakeException(\"There is no header named Upgrade\");\n }\n String upgradeValue = upgradeHeader[0].getValue();\n if (upgradeValue == null) {\n throw new InvalidServerHandshakeException(\"There is no value for header Upgrade\");\n }\n upgradeValue = upgradeValue.toLowerCase();\n if (!upgradeValue.equals(\"websocket\")) {\n throw new InvalidServerHandshakeException(\n \"Invalid value for header Upgrade. Expected: websocket, received: \" + upgradeValue);\n }\n\n Header[] connectionHeader = response.getHeaders(\"Connection\");\n if (connectionHeader.length == 0) {\n throw new InvalidServerHandshakeException(\"There is no header named Connection\");\n }\n String connectionValue = connectionHeader[0].getValue();\n if (connectionValue == null) {\n throw new InvalidServerHandshakeException(\"There is no value for header Connection\");\n }\n connectionValue = connectionValue.toLowerCase();\n if (!connectionValue.equals(\"upgrade\")) {\n throw new InvalidServerHandshakeException(\n \"Invalid value for header Connection. Expected: upgrade, received: \" + connectionValue);\n }\n\n// Header[] secWebSocketAcceptHeader = response.getHeaders(\"Sec-WebSocket-Accept\");\n// if (secWebSocketAcceptHeader.length == 0) {\n// throw new InvalidServerHandshakeException(\"There is no header named Sec-WebSocket-Accept\");\n// }\n// String secWebSocketAcceptValue = secWebSocketAcceptHeader[0].getValue();\n// if (secWebSocketAcceptValue == null) {\n// throw new InvalidServerHandshakeException(\"There is no value for header Sec-WebSocket-Accept\");\n// }\n\n// String keyConcatenation = secWebSocketKey + GUID;\n// byte[] sha1 = DigestUtils.sha1(keyConcatenation);\n// String secWebSocketAccept = Base64.encodeBase64String(sha1);\n// if (!secWebSocketAcceptValue.equals(secWebSocketAccept)) {\n// throw new InvalidServerHandshakeException(\n// \"Invalid value for header Sec-WebSocket-Accept. Expected: \" + secWebSocketAccept\n// + \", received: \" + secWebSocketAcceptValue);\n// }\n } catch (HttpException e) {\n throw new InvalidServerHandshakeException(e.getMessage());\n }\n }",
"void validateState() throws EPPCodecException {\n // add/chg/rem\n if ((addDsData == null) && (chgDsData == null) && (remKeyTag == null)) {\n throw new EPPCodecException(\"EPPSecDNSExtUpdate required attribute missing\");\n }\n \n // Ensure there is only one non-null add, chg, or rem\n\t\tif (((addDsData != null) && ((chgDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((chgDsData != null) && ((addDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((remKeyTag != null) && ((chgDsData != null) || (addDsData != null)))) {\n\t\t\tthrow new EPPCodecException(\"Only one add, chg, or rem is allowed\");\n\t\t}\n }",
"public boolean canHandleOutdatedMessaged() {\n\t return false;\n\t}",
"public boolean hasY() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public static void verifyServiceCertified(ServiceReqDetails createServiceInUI, User user) {\n\t\tSupplier<RestResponse> serviceGetter = () -> FunctionalInterfaces.swallowException(\n\t\t\t\t() -> ServiceRestUtils.getServiceByNameAndVersion(user, createServiceInUI.getName(), \"1.0\"));\n\t\tFunction<RestResponse, Boolean> serviceVerificator = restResp -> restResp.getErrorCode() == HttpStatus.SC_OK;\n\t\tRestResponse certifiedResourceResopnse = FunctionalInterfaces.retryMethodOnResult(serviceGetter,\n\t\t\t\tserviceVerificator);\n\t\tassertTrue(certifiedResourceResopnse.getErrorCode() == HttpStatus.SC_OK);\n\n\t}",
"public void validateRpd8s21()\n {\n // This guideline cannot be automatically tested.\n }",
"public final boolean bw() {\n return this.ad != null;\n }",
"private JwtConsumer validateSoftwareStatement(VerificationKeyResolver resolver)\n {\n return new JwtConsumerBuilder()\n .setExpectedIssuer(true, issuer)// Ensure expected issuer\n .setVerificationKeyResolver(resolver) // Verify the signature\n .setJwsAlgorithmConstraints(signatureConstraint)// Restrict the list of allowed signing algorithms\n .build();\n }",
"@Test\n public void keepAliveMechanismCheck() {\n System.out.println(\"* Device JUnit4Test: keepAliveMechanismCheck()\");\n long waitInterval = 1000;\n\n // authenticate the device and get the initial timestamp\n authenticateSimulatedDevice();\n long preKeepAlive = mDeviceInstance.getTimestampLastKeepAlive();\n \n // sleep a delay and send the timestamp keepalive\n TestsConfig.delay(waitInterval);\n mSimulatedDevice.writeln(Config.kDeviceKeepAlive);\n TestsConfig.delay(100);\n long afterKeepAlive = mDeviceInstance.getTimestampLastKeepAlive();\n assertTrue(afterKeepAlive > preKeepAlive + waitInterval);\n }",
"private void handleVerify(boolean isDoubleVerify) {\n if (listVerifyResult.isEmpty()) {\n return;\n }\n\n // Extract zip file input\n String folderSaveResult = helper.getFolderSave(\"Choose extract folder zip files\");\n if (folderSaveResult.isEmpty() || folderSaveResult == null) {\n return;\n }\n\n boolean usingInputKey = this.gui.getCheckboxVerify().isSelected();\n\n for (ModelResult modelResult : listVerifyResult) {\n int id = modelResult.getId();\n long startVerify = System.nanoTime();\n updateVerifyFileStatus(\"Unzip file...\", 0, id);\n String fileNameNoEx = helper.getFileNameNoExtension(modelResult.getFileName());\n // Unzip file\n String unzipedFolder = folderSaveResult + \"\\\\\" + fileNameNoEx;\n modelResult.setFolderRS(unzipedFolder);\n boolean unzipRs = helper.unZip(modelResult.getFilePath(), unzipedFolder);\n\n if (unzipRs) {\n updateVerifyFileStatus(\"Unzip file successfully\", 0, id);\n } else {\n updateVerifyFileStatus(\"Unzip file failed\", 0, id);\n return;\n }\n\n // Read Input Files from unzip folder\n ModelInputVerify miv = helper.readInputVerify(unzipedFolder);\n if (miv == null || miv.getPublickey().isEmpty() && usingInputKey) {\n updateVerifyFileStatus(\"Public key from input not found\", 0, id);\n return;\n }\n\n ModelFriendKey mFriendKey = null;\n if (usingInputKey) {\n mFriendKey = new ModelFriendKey(\"\", miv.getPublickey(), \"\");\n mFriendKey.setAlgorithm(miv.getPublickeyAlgorithm());\n } else {\n String frKeyNameSelected = String.valueOf(gui.getCbbFriendKeyVerify().getSelectedItem());\n mFriendKey = friendKey.get(frKeyNameSelected);\n\n if (mFriendKey == null) {\n updateVerifyFileStatus(\"Friend key not found\", 0, id);\n return;\n }\n\n }\n\n String hash = miv.getSignatureHashAlgorithm();\n String cryptoAlgorithm = mFriendKey.getAlgorithm();\n String algorithm = hash + \"with\" + cryptoAlgorithm;\n\n if (hash.equals(\"SHA512\") && cryptoAlgorithm.equals(\"DSA\")) {\n updateVerifyFileStatus(cryptoAlgorithm + \" is Not support \" + hash + \" algorithm\", 0, id);\n return;\n }\n\n boolean verifyRs = false;\n\n if (!isDoubleVerify) {\n verifyRs = Verify(miv.getFilePath(), miv.getSignature(), mFriendKey, algorithm);\n } else {\n verifyRs = VerifyDoubleSign(miv.getFilePath(), miv.getSignature(), mFriendKey, algorithm);\n }\n\n long endTime = System.nanoTime();\n long duration = (endTime - startVerify) / 1000000; //divide by 1000000 to get milliseconds.\n if (verifyRs) {\n updateVerifyFileStatus(\"File Valid\", (int) duration, id);\n } else {\n updateVerifyFileStatus(\"File Invalid\", (int) duration, id);\n }\n }\n }",
"boolean verifyJobDatabase();"
]
| [
"0.4872605",
"0.48407736",
"0.48215064",
"0.48131728",
"0.46851337",
"0.4672299",
"0.46460974",
"0.46309352",
"0.46203235",
"0.46053603",
"0.45850724",
"0.4571998",
"0.4561228",
"0.45567575",
"0.45323193",
"0.4523657",
"0.448363",
"0.44781685",
"0.44781685",
"0.44590273",
"0.44560814",
"0.44317567",
"0.44294614",
"0.44191062",
"0.44159874",
"0.44104412",
"0.4409998",
"0.44040656",
"0.44018772",
"0.44012928",
"0.43997627",
"0.43966872",
"0.43810567",
"0.43728423",
"0.4368723",
"0.43638918",
"0.43624884",
"0.43565077",
"0.43443474",
"0.4326622",
"0.4319924",
"0.4315674",
"0.4315674",
"0.43046516",
"0.430205",
"0.43003982",
"0.4299913",
"0.4294932",
"0.42845303",
"0.42839897",
"0.4278139",
"0.42740515",
"0.42726302",
"0.42707285",
"0.42674205",
"0.4266002",
"0.42628226",
"0.42619556",
"0.42603648",
"0.426021",
"0.4259596",
"0.42577654",
"0.4257658",
"0.42531303",
"0.42487374",
"0.42485264",
"0.4242679",
"0.42398098",
"0.4237023",
"0.4233481",
"0.4231903",
"0.42298946",
"0.4229208",
"0.422077",
"0.422021",
"0.42201966",
"0.42196387",
"0.42154294",
"0.42139053",
"0.42088643",
"0.42088643",
"0.4208387",
"0.42056492",
"0.42041776",
"0.41988915",
"0.41988406",
"0.41955253",
"0.4195502",
"0.4195499",
"0.41938728",
"0.41931865",
"0.41929162",
"0.4192075",
"0.41902325",
"0.41892266",
"0.41852045",
"0.41840452",
"0.41798413",
"0.4177887",
"0.4177647"
]
| 0.5331748 | 0 |
Outputs this service gateway to an XML representation. | public String toXML() {
StringBuilder xml = new StringBuilder();
//just do the decomposition facts (not the surrounding element) - to keep life simple
xml.append(super.toXML());
for (YParameter parameter : _enablementParameters.values()) {
xml.append(parameter.toXML());
}
for (YAWLServiceReference service : _yawlServices.values()) {
xml.append(service.toXML());
}
return xml.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}",
"protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\n\n out.writeAttribute(\"id\", getId());\n out.writeAttribute(\"accelerator\", getKeyStrokeText(getAccelerator()));\n\n out.writeEndElement();\n }",
"public void writeXML(OutputStream stream) throws IOException {\n\t\tPrintWriter out = new PrintWriter(stream);\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<VLDocking version=\\\"2.1\\\">\");\n\t\tfor(int i = 0; i < desktops.size(); i++) {\n\t\t\tWSDesktop desktop = (WSDesktop) desktops.get(i);\n\t\t\tdesktop.writeDesktopNode(out);\n\t\t}\n\t\tout.println(\"</VLDocking>\");\n\n\t\tout.flush();\n\t}",
"public void dump( Result out ) throws JAXBException;",
"public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }",
"protected abstract void toXml(PrintWriter result);",
"public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}",
"@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}",
"@Override\n\tpublic byte[] generateOutput() {\n\t\tthis.plainOut = new PlainOutputConversion();\n\n\t\tString output = \"\";\n\t\ttry {\n\t\t\toutput = constructTextfromXML(this.rootXML, true);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn output.getBytes();\n\t}",
"public String toXml() {\n\t\treturn(toString());\n\t}",
"@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }",
"@Override\n public void toXml(XmlContext xc) {\n\n }",
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public String toXML() {\n return null;\n }",
"public String write(Document serviceDoc) {\r\n\t\ttry {\r\n\t\t\tTransformerFactory transformerFactory = TransformerFactory\r\n\t\t\t\t\t.newInstance();\r\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\tStringWriter sw = new StringWriter();\r\n\t\t\tStreamResult xmlResult = new StreamResult(sw);\r\n\t\t\tDOMSource source = new DOMSource(serviceDoc);\r\n\t\t\ttransformer.transform(source, xmlResult);\r\n\t\t\tSystem.out.println(\"Writing XML document for Help When Outdoor\");\r\n\t\t\treturn sw.toString();\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\n\n //out.writeAttribute(ID_ATTRIBUTE_TAG, getId());\n out.writeAttribute(\"nationalAdvantages\", nationalAdvantages.toString());\n out.writeStartElement(\"Nations\");\n for (Map.Entry<Nation, NationState> entry : nations.entrySet()) {\n out.writeStartElement(\"Nation\");\n out.writeAttribute(ID_ATTRIBUTE_TAG, entry.getKey().getId());\n out.writeAttribute(\"state\", entry.getValue().toString());\n out.writeEndElement();\n }\n out.writeEndElement();\n\n out.writeEndElement();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getGatewayId() != null)\n sb.append(\"GatewayId: \").append(getGatewayId()).append(\",\");\n if (getCapabilityNamespace() != null)\n sb.append(\"CapabilityNamespace: \").append(getCapabilityNamespace()).append(\",\");\n if (getCapabilityConfiguration() != null)\n sb.append(\"CapabilityConfiguration: \").append(getCapabilityConfiguration());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public final String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<?xml version=\\\"1.0\\\"?>\").append(br());\n toXML(sb, 0);\n return sb.toString();\n }",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public String toXML() {\n return null;\n }",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"public static void wsdl() {\n\t\trender(\"Services/MonitoringService.wsdl\");\n\t}",
"public String toString()\r\n {\r\n\t\tString value = \"\";\r\n\t\tif (endpointInterface != null && endpointInterface.length() > 0) {\r\n\t\t\tvalue += \"endpointInterface = \\\"\" + endpointInterface + \"\\\"\";\r\n\t\t}\r\n\t\tif (name != null && name.length() > 0) {\r\n\t\t\tif (value.length() != 0) {\r\n\t\t\t\tvalue += \", \";\r\n\t\t\t}\r\n\t\t\tvalue += \"name = \\\"\" + name + \"\\\"\";;\r\n\t\t}\r\n\t\tif (serviceName != null && serviceName.length() > 0) {\r\n\t\t\tif (value.length() != 0) {\r\n\t\t\t\tvalue += \", \";\r\n\t\t\t}\r\n\t\t\tvalue += \"serviceName = \\\"\" + serviceName + \"\\\"\";;\r\n\t\t}\r\n\t\tif (targetNamespace != null && targetNamespace.length() > 0) {\r\n\t\t\tif (value.length() != 0) {\r\n\t\t\t\tvalue += \", \";\r\n\t\t\t}\r\n\t\t\tvalue += \"targetNamespace = \\\"\" + targetNamespace + \"\\\"\";;\r\n\t\t}\r\n\t\tif (portName != null && portName.length() > 0) {\r\n\t\t\tif (value.length() != 0) {\r\n\t\t\t\tvalue += \", \";\r\n\t\t\t}\r\n\t\t\tvalue += \"portName = \\\"\" + portName + \"\\\"\";;\r\n\t\t}\r\n\t\tif (wsdlLocation != null && wsdlLocation.length() > 0) {\r\n\t\t\tif (value.length() != 0) {\r\n\t\t\t\tvalue += \", \";\r\n\t\t\t}\r\n\t\t\tvalue += \"wsdlLocation = \\\"\" + wsdlLocation + \"\\\"\";;\r\n\t\t}\r\n\t\tvalue = \"WebService(\" + value + \")\";\r\n\t\treturn value;\r\n\t}",
"public void writeXML(OutputStream stream) throws IOException {\n\t\tPrintWriter out = new PrintWriter(stream);\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<VLToolBars version=\\\"1.0\\\">\");\n\t\txmlWriteContainer(out);\n\n\t\tout.println(\"</VLToolBars>\");\n\t\tout.flush();\n\t}",
"private static void writeAsXml(Object o, Writer writer) throws Exception\n {\n JAXBContext jaxb = JAXBContext.newInstance(o.getClass());\n \n Marshaller xmlConverter = jaxb.createMarshaller();\n xmlConverter.setProperty(\"jaxb.formatted.output\", true);\n xmlConverter.marshal(o, writer);\n }",
"@Override\r\n public String toString() {\r\n return JAXBToStringBuilder.valueOf(this, JAXBToStringStyle.SIMPLE_STYLE);\r\n }",
"@Override\n public String toString()\n {\n StringBuilder sb = new StringBuilder();\n sb.append(\"<Merchant \");\n IContentGenerator dbaGenerator = m_pciMerchant.getDBAGenerator();\n IContentGenerator otherIndustriesGenerator = m_pciMerchant.getOtherIndustriesGenerator();\n sb.append(\"acquirer-relationship=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getAcquirerRelationship()));\n sb.append(\"\\\" agent-relationship=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getAgentRelationship()));\n sb.append(\"\\\" ecommerce=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getECommerce()));\n sb.append(\"\\\" grocery=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getGrocery()));\n sb.append(\"\\\" mail-order=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getMailOrder()));\n sb.append(\"\\\" payment-application=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPaymentApplication()));\n sb.append(\"\\\" payment-version=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPaymentVersion()));\n sb.append(\"\\\" petroleum=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPetroleum()));\n sb.append(\"\\\" retail=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getRetail()));\n sb.append(\"\\\" telecommunication=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getTelecommunication()));\n sb.append(\"\\\" travel=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getTravel()));\n sb.append(\"\\\" company=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getCompany()));\n sb.append(\"\\\" email-address=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getEmailAddress()));\n sb.append(\"\\\" first-name=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getFirstName()));\n sb.append(\"\\\" last-name=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getLastName()));\n sb.append(\"\\\" phone-number=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getPhoneNumber()));\n sb.append(\"\\\" title=\\\"\");\n sb.append(StringUtils.xmlEscape(m_pciMerchant.getTitle()));\n sb.append(\"\\\">\");\n ContactAddress address = m_pciMerchant.getAddress();\n if (address != null)\n {\n sb.append(\"<Address city=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getCity()));\n sb.append(\"\\\" country=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getCountry()));\n sb.append(\"\\\" line1=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getLine1()));\n sb.append(\"\\\" line2=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getLine2()));\n sb.append(\"\\\" state=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getState()));\n sb.append(\"\\\" zip=\\\"\");\n sb.append(StringUtils.xmlEscape(address.getZip()));\n sb.append(\"\\\"/>\");\n }\n if (dbaGenerator != null)\n {\n sb.append(dbaGenerator.toString());\n }\n if (otherIndustriesGenerator != null)\n {\n sb.append(otherIndustriesGenerator.toString());\n }\n sb.append(\"</Merchant>\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }",
"@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }",
"public String toString() {\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tbuf.append(\"WSDL name=\");\r\n\t\tbuf.append(name);\r\n\t\tbuf.append(\", TargetNamespace=\");\r\n\t\tbuf.append(targetNamespace);\r\n\t\tbuf.append(\"\\n\");\r\n\r\n\t\tfor (Iterator iter = messages.entrySet().iterator(); iter.hasNext(); ) {\r\n\t\t\tMessage m = (Message) ((Map.Entry) iter.next()).getValue();\r\n\t\t\tbuf.append(\"Message:\");\r\n\t\t\tbuf.append(m.toString());\r\n\t\t\tbuf.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\tfor (Iterator iter = portTypes.entrySet().iterator(); iter.hasNext(); ) {\r\n\t\t\tPortType pt = (PortType) ((Map.Entry) iter.next()).getValue();\r\n\t\t\tbuf.append(\"PortType:\");\r\n\t\t\tbuf.append(pt.toString());\r\n\t\t\tbuf.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\tfor (Iterator iter = bindings.entrySet().iterator(); iter.hasNext(); ) {\r\n\t\t\tBinding binding = (Binding) ((Map.Entry) iter.next()).getValue();\r\n\t\t\tbuf.append(\"Binding:\");\r\n\t\t\tbuf.append(binding.toString());\r\n\t\t\tbuf.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\tfor (Iterator iter = services.entrySet().iterator(); iter.hasNext(); ) {\r\n\t\t\tService service = (Service) ((Map.Entry) iter.next()).getValue();\r\n\t\t\tbuf.append(\"Service:\");\r\n\t\t\tbuf.append(service.toString());\r\n\t\t\tbuf.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\treturn buf.toString();\r\n\t}",
"private void display() {\n // TODO add your handling code here:\n String body = \"<ns1:SinglePayoutRequest>\\n\"\n + \"\t<ns1:CardPayoutRequest>\\n\"\n + \"\t\t<ns1:Account>\\n\"\n + \"\t\t\t<ns1:PayGateId>\" + payGateIDField.getText() + \"</ns1:PayGateId>\\n\"\n + \"\t\t\t<ns1:Password>\" + passwordField.getText() + \"</ns1:Password>\\n\"\n + \"\t\t</ns1:Account>\\n\"\n + \"\t\t<ns1:Customer>\\n\"\n + \"\t\t\t<ns1:FirstName>\" + firstnameField.getText() + \"</ns1:FirstName>\\n\"\n + \"\t\t\t<ns1:LastName>\" + lastnameField.getText() + \"</ns1:LastName>\\n\"\n + \"\t\t\t<ns1:Email>\" + emailField.getText() + \"</ns1:Email>\\n\"\n + \"\t\t</ns1:Customer>\\n\"\n + \"\t\t<ns1:CardNumber>\" + cardNumberField.getText() + \"</ns1:CardNumber>\\n\"\n + \"\t\t<ns1:CardExpiryDate>\" + cardExpiryDateField.getText() + \"</ns1:CardExpiryDate>\\n\"\n + \"\t\t<ns1:Order>\\n\"\n + \"\t\t\t<ns1:MerchantOrderId>\" + merchantOrderIDField.getText() + \"</ns1:MerchantOrderId>\\n\"\n + \"\t\t\t<ns1:Currency>\" + currencyField.getText() + \"</ns1:Currency>\\n\"\n + \"\t\t\t<ns1:Amount>\" + amountField.getText() + \"</ns1:Amount>\\n\"\n + \"\t\t</ns1:Order>\\n\"\n + \"\t</ns1:CardPayoutRequest>\\n\"\n + \"</ns1:SinglePayoutRequest>\\n\";\n requestArea.setText(body);\n }",
"public Element toXMLElement() {\n Element result = createNewRootElement(getXMLElementTagName());\n Document doc = result.getOwnerDocument();\n for (TradeRoute tradeRoute : tradeRoutes) {\n result.appendChild(tradeRoute.toXMLElement(null, doc));\n }\n return result;\n }",
"@Override\n public void writeTo(MwsWriter w) {\n w.write(\"http://mws.amazonservices.com/Finances/2015-05-01\", \"PayWithAmazonEvent\",this);\n }",
"public abstract void writeTo(OutputStream out)\n throws SOAPException, IOException;",
"void toXml(OutputStream out, boolean format) throws IOException;",
"@Override\n public String toXML() {\n if (_xml == null)\n _xml = String.format(XML, getStanzaId(), to);\n return _xml;\n }",
"public void generate() {\n\t\t// Print generation stamp\n\t\tcontext.getNaming().putStamp(elementInterface, out);\n\t\t// Print the code\n\t\t// Print header\n\t\tout.println(\"package \"+modelPackage+\";\");\n\t\tout.println();\n\t\tout.println(\"public interface \"+elementInterface);\n\t\tif (context.isGenerateVisitor()) {\n\t\t\tout.println(indent+\"extends \"+context.getNaming().getVisitableInterface(modelName));\n\t\t}\n\t\tout.println(\"{\");\n\t\tif (context.isGenerateID()) {\n\t\t\tout.println(indent+\"/** Get the id */\");\n\t\t\tout.println(indent+\"public String getId();\");\n\t\t\tout.println(indent+\"/** Set the id */\");\n\t\t\tout.println(indent+\"public void setId(String id);\");\n\t\t\tout.println();\n\t\t}\n\t\tif (context.isGenerateBidirectional()) {\n\t\t\tout.println(indent+\"/** Delete */\");\n\t\t\tout.println(indent+\"public void delete();\");\n\t\t}\n\t\tout.println(indent+\"/** Override toString */\");\n\t\tout.println(indent+\"public String toString();\");\n//\t\tif (context.isGenerateInvariant()) {\n//\t\t\tout.println();\n//\t\t\tout.println(indent+\"/** Parse all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean parseInvariants(ILog log);\");\n//\t\t\tout.println(indent+\"/** Evaluate all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean evaluateInvariants(ILog log);\");\n//\t\t}\n\t\tout.println(\"}\");\n\t}",
"@Override\n\tprotected void writeToXml(EwsServiceXmlWriter writer) throws Exception {\n\t\tthis.item.getId().writeToXml(writer);\n\n\t}",
"protected abstract void writeToXml(EwsServiceXmlWriter writer)\n\t\t\tthrows Exception;",
"public String generateXml(Map<String, Object> parameters, String service, String version) throws TransformersException {\n\t\treturn generateXml(parameters, service, getMethodName(service), version);\n\t}",
"private void print(FromHostResult < CustomerData > result) {\n try {\n System.out.println(\"Host bytes converted : \"\n + result.getBytesProcessed());\n System.out.println(\"Result JAXB instance as XML :\");\n JAXBContext jaxbContext = JAXBContext.newInstance(CustomerData.class);\n Marshaller marshaller = jaxbContext.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n marshaller.marshal(\n new ObjectFactory().createCustomerData(result.getValue()),\n System.out);\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"public void writeXML(InvCatalogImpl catalog, OutputStream os) throws IOException {\r\n // Output the document, use standard formatter\r\n //XMLOutputter fmt = new XMLOutputter();\r\n //fmt.setNewlines(true);\r\n //fmt.setIndent(\" \");\r\n //fmt.setTrimAllWhite( true);\r\n XMLOutputter fmt = new XMLOutputter(org.jdom.output.Format.getPrettyFormat()); // LOOK maybe compact ??\r\n fmt.output(writeCatalog(catalog), os);\r\n }",
"@Override\r\n public String toString() {\r\n \r\n assert iRootElement!=null;\r\n \r\n return iRootElement.toString();\r\n \r\n }",
"@Override\n public String toString() {\n\n // Add schema location attribute\n this.addSchemaLocation(\"http://www.w3.org/2001/XMLSchema-instance\", \"schemaLocation\", \"xsi\",\n \"http://xsd.sepamail.eu/1206/ xsd/sepamail_missive.xsd \");\n\n // XML options instance\n XmlOptions options = new XmlOptions();\n\n // Set the properties of the XML options\n options.setSavePrettyPrint();\n options.setSaveSuggestedPrefixes(this.suggestedPrefixes);\n options.setUseCDataBookmarks();\n\n try {\n\n // Build XML document using the constructed XML object\n SAXBuilder sxb = new SAXBuilder();\n Document xmlDocument =\n sxb.build(new InputStreamReader(new ByteArrayInputStream(missiveDocument.xmlText(options).getBytes()),\n \"UTF-8\"));\n\n // Pretty print the XML document\n XMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n xmlOutputter.output(xmlDocument, output);\n\n // String with XML content\n return new String(output.toByteArray());\n\n } catch ( JDOMException | IOException ex) {\n\n // TODO: error logging\n System.out.println(ex.getMessage());\n }\n\n return null;\n }",
"public java.lang.String toString() {\n // call toString() with includeNS true by default and declareNS false\n String xml = this.toString(true, false);\n return xml;\n }",
"private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}",
"private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }",
"protected String toXMLFragment() {\n StringBuffer xml = new StringBuffer();\n if (isSetStepConfig()) {\n StepConfig stepConfig = getStepConfig();\n xml.append(\"<StepConfig>\");\n xml.append(stepConfig.toXMLFragment());\n xml.append(\"</StepConfig>\");\n } \n if (isSetExecutionStatusDetail()) {\n StepExecutionStatusDetail executionStatusDetail = getExecutionStatusDetail();\n xml.append(\"<ExecutionStatusDetail>\");\n xml.append(executionStatusDetail.toXMLFragment());\n xml.append(\"</ExecutionStatusDetail>\");\n } \n return xml.toString();\n }",
"protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n super.toXML(out, getXMLElementTagName());\n }",
"public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}",
"public XMLOutputter() {\r\n }",
"private void write( TypeItem type ) throws SAXException, IOException {\n\t\t\t\t\n\t\tDocumentHandler outHandler = new XMLSerializer(\n\t\t\tcontroller.getOutput(type),\n\t\t\tnew OutputFormat(\"xml\",null,true) );\n\t\tXMLWriter out = new XMLWriter(outHandler);\n\t\t\t\t\n\t\toutHandler.setDocumentLocator( new LocatorImpl() );\n\t\toutHandler.startDocument();\n\t\toutHandler.processingInstruction(\"xml-stylesheet\",\n\t\t\t\"type='text/xsl' href='classFileDebug.xsl'\");\n\t\twriteClass( type, out );\n\t\toutHandler.endDocument();\n\t}",
"public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }",
"private static void printSOAPResponse(SOAPMessage soapResponse) throws Exception {\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n \n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n soapResponse.writeTo(stream);\n String message = new String(stream.toByteArray(), \"utf-8\");\n \n \n Source sourceContent = soapResponse.getSOAPPart().getContent();\n System.out.print(\"\\nResponse SOAP Message = \");\n StreamResult result = new StreamResult(System.out);\n transformer.transform(sourceContent, result);\n \n \n \n }",
"private void jaxbObjectToXML(Object object, Writer outputWriter) throws JAXBException {\r\n \r\n JAXBContext context = JAXBContext.newInstance(object.getClass());\r\n Marshaller marshaller = context.createMarshaller();\r\n \r\n // for pretty-print XML in JAXB\r\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\r\n // Marshaller.JAXB_ENCODING exemplo: \"ISO-8859-1\" apenas para referência\r\n marshaller.setProperty(Marshaller.JAXB_ENCODING, CHAR_ENCODING);\r\n \r\n // write to System.out for debugging (TODO: REMOVE THIS LINE IN THE FUTURE)\r\n //marshaller.marshal(object, System.out);\r\n \r\n // write to file\r\n marshaller.marshal(object, outputWriter);\r\n \r\n }",
"public void writeDocumentToOutput() {\n log.debug(\"Statemend of XML document...\");\r\n // writeDocumentToOutput(root,0);\r\n log.debug(\"... end of statement\");\r\n }",
"public void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n super.toXML(out, getXMLElementTagName());\n }",
"public interface OutputHandler\n{\n\n public abstract void printKeyAttributes(GraphMLWriteContext graphmlwritecontext, XmlWriter xmlwriter);\n\n public abstract void printKeyOutput(GraphMLWriteContext graphmlwritecontext, XmlWriter xmlwriter);\n\n public abstract void printDataAttributes(GraphMLWriteContext graphmlwritecontext, XmlWriter xmlwriter);\n\n public abstract void printDataOutput(GraphMLWriteContext graphmlwritecontext, XmlWriter xmlwriter);\n}",
"public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }",
"public void outputForGraphviz() {\n\t\tString label = \"\";\n\t\tfor (int j = 0; j <= lastindex; j++) {\n\t\t\tif (j > 0) label += \"|\";\n\t\t\tlabel += \"<p\" + ptrs[j].myname + \">\";\n\t\t\tif (j != lastindex) label += \"|\" + String.valueOf(keys[j+1]);\n\t\t\t// Write out any link now\n\t\t\tBTree.writeOut(myname + \":p\" + ptrs[j].myname + \" -> \" + ptrs[j].myname + \"\\n\");\n\t\t\t// Tell your child to output itself\n\t\t\tptrs[j].outputForGraphviz();\n\t\t}\n\t\t// Write out this node\n\t\tBTree.writeOut(myname + \" [shape=record, label=\\\"\" + label + \"\\\"];\\n\");\n\t}",
"public String toXMLString() {\n\t\treturn toXMLString(XML_TAB, XML_NEW_LINE);\n\t}",
"public void toXml(Repository repository) {\n try {\n JAXBContext context = JAXBContext.newInstance(Contracts.class);\n Marshaller marshaller = context.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n File output = new File(\"contracts.xml\");\n Contracts contracts = new Contracts();\n List<Contract> contractList = repository.toArrayList();\n contracts.setContractList(contractList);\n marshaller.marshal(contracts, output);\n } catch (JAXBException e) {\n logger.error(e);\n }\n }",
"@Override\n public String getServicesXMLPath()\n {\n return servicesXMLPath;\n }",
"public String toXml() throws JAXBException {\n JAXBContext jc = JAXBContext.newInstance(TimeModel.class);\n Marshaller marshaller = jc.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n StringWriter out = new StringWriter();\n marshaller.marshal(this, out);\n return out.toString();\n }",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"public void writeToXML(Writer bw) throws IOException {\n\t\tbw.write(\"<ColorReferenceExport>\");\n\t\tIterator itr = mappings.keySet().iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString key = (String) itr.next();\n\t\t\tbw.write(\"<ColorUnit>\\n<Key>\" + key + \"</Key>\\n\");\n\t\t\tbw.write(\"<ColorRGB>\" + ((Color) mappings.get(key)).getRGB()\n\t\t\t\t\t+ \"</ColorRGB>\\n</ColorUnit>\");\n\t\t}\n\t\tbw.write(\"\\n</ColorReferenceExport>\");\n\t}",
"String toXML() throws RemoteException;",
"public void output(IndentedWriter out, SerializationContext sCxt) \n {\n }",
"public void xmlPresentation () {\n System.out.println ( \"****** XML Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n Books books = new Books();\n books.setBooks(new ArrayList<Book>());\n\n bookArrayList = new Request().postRequestBook();\n\n for (Book aux: bookArrayList) {\n books.getBooks().add(aux);\n }\n\n try {\n javax.xml.bind.JAXBContext jaxbContext = JAXBContext.newInstance(Books.class);\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n jaxbMarshaller.marshal(books, System.out);\n } catch (JAXBException e) {\n System.out.println(\"Error: \"+ e);\n }\n ClientEntry.showMenu ( );\n }",
"public void writeXMLServer(String file_name)\n\t\t{\n\t\t\t\t \n\t\t\t\t//Attempt to write server to an XML file in current working directory\n\t\t\t\ttry {\n\t\t\t\t JAXBContext jaxbc = JAXBContext.newInstance(Server.class);\n\t\t\t\t Marshaller marshaller = jaxbc.createMarshaller();\n\t\t\t\t marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\t\t OutputStream out = null;\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t out = new FileOutputStream(file_name);\n\t\t\t\t marshaller.marshal(this, out);\n\t\t\t\t } \n\t\t\t\t catch (FileNotFoundException e) \n\t\t\t\t {\n\t\t\t\t e.printStackTrace();\n\t\t\t\t } \n\t\t\t\t finally \n\t\t\t\t {\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t out.close();\n\t\t\t\t } \n\t\t\t\t catch (IOException e) \n\t\t\t\t {\n\t\t\t\t \t e.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t } catch (JAXBException e) {\n\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t}",
"public Root(OutputWSConfig outputWSConfig, OutputWSService outputWSService) {\n this.outputWSConfig = outputWSConfig;\n this.outputWSService = outputWSService;\n setStatusService(new StatusService());\n }",
"public String toXml() {\n StringWriter outputStream = new StringWriter();\n try {\n PrintWriter output = new PrintWriter(outputStream);\n try {\n output.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n toXml(output);\n return outputStream.toString();\n }\n catch (Exception ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n finally {\n output.close();\n }\n }\n finally {\n try {\n outputStream.close();\n }\n catch (IOException ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n }\n }",
"void printToFile() throws IOException {\n\t\tBufferedWriter writer = new BufferedWriter( new FileWriter(\"Provider_Directory.txt\") );\n\t\twriter.write(\"PROVIDER DIRECTORY:\");\n\t\tfor (int i = 0; i < services.size(); i++) {\n\t\t\tString service = services.get(i).getServiceName() + \" (\" + services.get(i).getServiceNumber() + \") for $\" + services.get(i).getServiceFee();\n\t\t\twriter.write(\"\\t\");\n\t\t\twriter.write(service);\n\t\t}\n\t\twriter.close();\n\t}",
"public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}",
"@Override\n public void writeXml(XmlWriter xmlWriter) {\n try {\n xmlWriter.element(\"debug\")\n .attribute(\"message\", message)\n .pop();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected void writeElementsToXml(EwsServiceXmlWriter writer)\n\t\t\tthrows Exception {\n\t\tthis.propertySet.writeToXml(writer, this.getServiceObjectType());\n\t}",
"public void createOutput() {\n\t\tsetOutput(new Output());\n\t}",
"Element toXML();",
"public String getGateway() {\n return gateway;\n }",
"public static String buildSessionXML() throws JsonProcessingException {\n\t\tSessionBean sBean = new SessionBean();\n\t\tsBean.setClientType(\"REST Client\");\n\t\tXmlMapper mapper = new XmlMapper();\n\t\treturn mapper.writeValueAsString(sBean);\n\t}",
"public void toXML(FreeColXMLWriter xw) throws XMLStreamException {\n xw.writeStartElement(getTagName());\n\n xw.writeAttribute(FreeColObject.ID_ATTRIBUTE_TAG,\n (AIObject)getTransportable());\n\n xw.writeAttribute(CARRIER_TAG, getCarrier());\n\n xw.writeAttribute(TRIES_TAG, getTries());\n\n xw.writeAttribute(SPACELEFT_TAG, getSpaceLeft());\n\n if (plan.twait != null) {\n xw.writeLocationAttribute(TWAIT_TAG, plan.twait);\n }\n\n if (plan.cwait != null) {\n xw.writeLocationAttribute(CWAIT_TAG, plan.cwait);\n }\n\n if (plan.cdst != null) {\n xw.writeLocationAttribute(CDST_TAG, plan.cdst);\n }\n\n if (plan.tdst != null) {\n xw.writeLocationAttribute(TDST_TAG, plan.tdst);\n }\n\n xw.writeAttribute(TURNS_TAG, plan.turns);\n\n xw.writeAttribute(MODE_TAG, plan.mode);\n\n xw.writeAttribute(FALLBACK_TAG, plan.fallback);\n\n xw.writeEndElement();\n }",
"public void print(StringBuffer toStringBuffer) {\n\tsuper.print(toStringBuffer);\n if (hasWebServices()) {\n for (Iterator itr = getWebServices().iterator();itr.hasNext();) {\n WebService aWebService = (WebService) itr.next();\n toStringBuffer.append(\"\\n Web Service : \");\n aWebService.print(toStringBuffer);\n }\n }\n }",
"@Override\n public String toString() {\n return endpoint;\n }",
"protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n toXML(out, getXMLElementTagName());\n }",
"void printToConsole() {\n\t\tSystem.out.println(\"PROVIDER DIRECTORY:\");\n\t\tfor (int i = 0; i < services.size(); i++) {\n\t\t\tString service = services.get(i).getServiceName() + \" (\" + services.get(i).getServiceNumber() + \") for $\" + services.get(i).getServiceFee();\n\t\t\tSystem.out.println(\"\\t\" + service);\n\t\t}\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getContainerName() != null)\n sb.append(\"ContainerName: \").append(getContainerName()).append(\",\");\n if (getProxyConfigurationProperties() != null)\n sb.append(\"ProxyConfigurationProperties: \").append(getProxyConfigurationProperties()).append(\",\");\n if (getType() != null)\n sb.append(\"Type: \").append(getType());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }",
"public String getXml() {\n return xml;\n }",
"@Override\n public void writeStartDocument()\n throws XMLStreamException\n {\n if (mEncoding == null) {\n mEncoding = WstxOutputProperties.DEFAULT_OUTPUT_ENCODING;\n }\n writeStartDocument(mEncoding, WstxOutputProperties.DEFAULT_XML_VERSION);\n }",
"public abstract void writeToXml(T o, XmlSerializer serializer, Context context)\n throws IOException;",
"public void writeXML(InvCatalogImpl catalog, OutputStream os) throws IOException {\n writeXML(catalog, os, false);\n }",
"public void writeXml(Writer w) throws IOException {\n\t\t\tBufferedWriter bw = ((w instanceof BufferedWriter) ? ((BufferedWriter) w) : new BufferedWriter(w));\n\t\t\t\n\t\t\tbw.write(\"<\" + STATISTICS_TYPE +\n\t\t\t\t\t\" \" + DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.docCount + \"\\\"\" +\n\t\t\t\t\t\" \" + PENDING_DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.pendingDocCount + \"\\\"\" +\n\t\t\t\t\t\" \" + PROCESSING_DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.processingDocCount + \"\\\"\" +\n\t\t\t\t\t\" \" + FINISHED_COUNT_ATTRIBUTE + \"=\\\"\" + this.finishedDocCount + \"\\\"\" +\n\t\t\t\t\t\">\");\n\t\t\tbw.newLine();\n\t\t\t\n\t\t\tString[] docStates = this.getDocStates();\n\t\t\tfor (int s = 0; s < docStates.length; s++) {\n\t\t\t\tbw.write(\"<\" + STATUS_TYPE +\n\t\t\t\t\t\t\" \" + NAME_ATTRIBUTE + \"=\\\"\" + grammar.escape(docStates[s]) + \"\\\"\" +\n\t\t\t\t\t\t\" \" + DOC_COUNT_ATTRIBUTE + \"=\\\"\" + this.getStatusDocCount(docStates[s]) + \"\\\"\" +\n\t\t\t\t\t\t\"/>\");\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t\t\n\t\t\tbw.write(\"</\" + STATISTICS_TYPE + \">\");\n\t\t\tbw.newLine();\n\t\t\t\n\t\t\tif (bw != w)\n\t\t\t\tbw.flush();\n\t\t}",
"@Override\n public void emitOutput() {\n }",
"public String toString() {\n return getServiceId();\n }"
]
| [
"0.5960349",
"0.5904195",
"0.56770533",
"0.5659082",
"0.56271136",
"0.5624035",
"0.55944306",
"0.5565504",
"0.55458367",
"0.5529325",
"0.5520956",
"0.54821956",
"0.5449634",
"0.5444618",
"0.54283285",
"0.5417705",
"0.5394326",
"0.53900415",
"0.538715",
"0.53780895",
"0.53780895",
"0.53673893",
"0.5361521",
"0.5357914",
"0.5347726",
"0.5347726",
"0.5347726",
"0.5345005",
"0.5337433",
"0.53367543",
"0.5331871",
"0.5277414",
"0.5263797",
"0.52570945",
"0.52570945",
"0.52222043",
"0.52134055",
"0.52064973",
"0.52028257",
"0.520131",
"0.52008736",
"0.5200499",
"0.51929164",
"0.51851344",
"0.51649475",
"0.5162885",
"0.51582074",
"0.5129443",
"0.5128676",
"0.5127937",
"0.5127212",
"0.5126721",
"0.51250213",
"0.5122565",
"0.5100646",
"0.5090163",
"0.5089902",
"0.5072103",
"0.50577986",
"0.5037612",
"0.5022058",
"0.50167394",
"0.5015198",
"0.50142646",
"0.50079083",
"0.49886858",
"0.49825102",
"0.49735656",
"0.49682942",
"0.49541476",
"0.49422744",
"0.49323845",
"0.49308282",
"0.4924061",
"0.491972",
"0.4914319",
"0.49047616",
"0.4900375",
"0.48920292",
"0.48874006",
"0.48835522",
"0.48760557",
"0.48753652",
"0.487438",
"0.48412874",
"0.4840894",
"0.48389488",
"0.48298392",
"0.4829677",
"0.48214933",
"0.48173526",
"0.4816121",
"0.48052266",
"0.4798564",
"0.47980228",
"0.4792064",
"0.47909558",
"0.47882703",
"0.476946",
"0.47550085"
]
| 0.589704 | 2 |
Gets the named YAWL Service associated with this gateway. | public YAWLServiceReference getYawlService(String yawlServiceID) {
return _yawlServices.get(yawlServiceID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public YAWLServiceReference getYawlService() {\n if (_yawlServices.values().size() > 0) {\n return _yawlServices.values().iterator().next();\n }\n return null;\n }",
"String getServiceName();",
"String getServiceName();",
"java.lang.String getServiceName();",
"java.lang.String getServiceName();",
"public String getServiceName();",
"@Override\n public ServiceName getServiceName() {\n return ServiceName.DARK_SKY;\n }",
"public String getService() {\n\t\treturn service.get();\n\t}",
"public abstract String getServiceName();",
"public final Service getService(final String name) {\r\n Service x, y;\r\n\r\n for (x = this.m_services[name.hashCode()\r\n & (this.m_services.length - 1)]; x != null; x = x.m_next) {\r\n for (y = x; y != null; y = y.m_equal) {\r\n if (name.equals(y.m_name))\r\n return y;\r\n }\r\n }\r\n\r\n return null;\r\n }",
"public Object getService(String serviceName);",
"Object getService(String serviceName);",
"public String getServiceName()\n {\n return serviceName;\n }",
"public String getServiceName() {\n return serviceName;\n }",
"public YAWLServiceGateway(String id, YSpecification specification) {\n super(id, specification);\n _yawlServices = new HashMap<String, YAWLServiceReference>();\n _enablementParameters = new HashMap<String, YParameter>();\n }",
"private HttpService getHTTPService() {\n\t\tHttpService sobjHTTPService = null;\n\t\tServiceReference srefHTTPService = bc\n\t\t\t\t.getServiceReference(HttpService.class.getName());\n\n\t\tif (srefHTTPService != null) {\n\t\t\tsobjHTTPService = (HttpService) bc.getService(srefHTTPService);\n\t\t} else {\n\t\t\tlogger.error(\"Could not find a HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\tif (sobjHTTPService == null) {\n\t\t\tlogger.error(\"Could retrieve the HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn sobjHTTPService;\n\t}",
"public String getServiceName() {\n return serviceName;\n }",
"public String getServiceName()\r\n {\r\n return serviceName;\r\n }",
"public String getServiceName() {\n return this.serviceName;\n }",
"net.zyuiop.ovhapi.api.objects.license.windows.Windows getServiceName(java.lang.String serviceName) throws java.io.IOException;",
"public String getServiceName() {\r\n return this.serviceName;\r\n }",
"public String getServiceName() {\n return this.serviceName;\n }",
"public ServiceName getServiceName() {\n return serviceName;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public LocationService getService()\n {\n return LocationService.this;\n }",
"public TTSService getService() {\n return TTSService.this;\n }",
"public Object getService() {\n return service;\n }",
"public BindingService getService() {\n return BindingService.this;\n }",
"public Service getService()\n {\n return (Service) getSource();\n }",
"public String getServiceName(){\n return serviceName;\n }",
"public WebServiceDriverManager getWebServiceDriverManager() {\n return (WebServiceDriverManager) this.getManagerStore()\n .get(WebServiceDriverManager.class.getCanonicalName());\n }",
"java.lang.String getService();",
"java.lang.String getService();",
"java.lang.String getService();",
"public String getServiceName()\n {\n return this.mServiceName;\n }",
"public Service getService() {\n return serviceInstance;\n }",
"public java.lang.String getServiceName(){\n return localServiceName;\n }",
"public ServiceInstance lookupInstance(String serviceName);",
"public AbstractService getService() {\n return service;\n }",
"public WebServiceDriver getWebServiceDriver() {\n return this.getWebServiceDriverManager().getWebServiceDriver();\n }",
"public java.lang.String getServiceClass() {\n return serviceClass;\n }",
"public static TargetService getService() {\n FacesContext context = FacesContext.getCurrentInstance();\n return (TargetService) context.getApplication().evaluateExpressionGet(\n context, \"#{targetServiceNH}\", TargetService.class);\n }",
"@Override\r\n\tpublic Object getServiceObject(IMyxName name) {\n\t\tif (name.equals(INTERFACE_NAME_IN_GUISYNCHRONIZER))\r\n\t\t\treturn this;\r\n\t\telse if(name.equals(INTERFACE_NAME_OUT_CLIENTSERVICE))\r\n\t\t\treturn clientService;\r\n\t\treturn null;\r\n\t}",
"Object getService(String serviceName, boolean checkExistence);",
"public Service getService() {\n\t\treturn _service;\n\t}",
"public IServerService getService() {\n return ServerService.this;\n }",
"private Service getService() {\n return service;\n }",
"@Override\n public String getServiceEndpoint(String serviceName) {\n return serviceEndpoints.get(serviceName);\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }",
"public String getService(){\n\t\t return service;\n\t}",
"protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"ICordysGatewayClient getGatewayClientInstance();",
"public Class getServiceClass() { return serviceClass; }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n return s;\n }\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Service getService(final String serviceName) {\n final String[] arr = serviceName.split(\"::\");\n if (arr.length != 2) {\n logger.error(\n \"Servicename didnt match pattern 'archive::service': {}\",\n serviceName);\n return null;\n }\n final Archive archive = getArchive(arr[0]);\n if (archive != null) {\n return archive.getService(arr[1]);\n }\n logger.error(\"Could not find archive '{}'\", arr[0]);\n return null;\n }",
"WakeUpService getService() {\n\n return WakeUpService.this;\n }",
"public Service getServiceForName(String name) throws SessionQueryException\n {\n Service returnedService = null;\n\n try\n {\n ComponentStruct component = getSessionManagementAdminService().getComponent(name);\n returnedService = new Service(name, component.isRunning, component.isMaster);\n }\n catch(Exception e)\n {\n throw new SessionQueryException(String.format(\"Could not receive service for %s.\", name), e);\n }\n\n return returnedService;\n }",
"WorkoutService getService() {\n return WorkoutService.this;\n }",
"public ServiceXML getService(String className) {\n return allXMLServices.get(className);\n }",
"public Service getService(Object serviceKey) throws RemoteException {\n Service theService = (Service) serviceList.get(serviceKey);\n return theService;\n }",
"public QName getServiceName() {\n\t\treturn null;\n\t}",
"ClassOfService getClassOfService();",
"public java.lang.CharSequence getService() {\n return service;\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }",
"public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }",
"public java.lang.CharSequence getService() {\n return service;\n }",
"public GeoService getService() {\n return GeoService.this;\n }",
"protected abstract String getATiempoServiceName();",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"private Object obtainService(String osgiURL)\r\n\t\t\t\tthrows InvalidSyntaxException {\r\n\t\t\tOSGiURLParser urlParser = new OSGiURLParser(osgiURL);\r\n\t\t\ttry {\r\n\t\t\t\turlParser.parse();\r\n\t\t\t}\r\n\t\t\tcatch (IllegalStateException stateException) {\r\n\t\t\t\tlogger.log(Level.SEVERE, \"An exception occurred while trying to parse this osgi URL\", stateException);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif (urlParser.getServiceInterface() == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\treturn getService(m_bundleContext, urlParser);\r\n\t\t}",
"public Service getService() {\n\t\treturn this;\n\t}",
"public DriverService getDriverService() {\n return driverService;\n }",
"public final String getAwsCredentialsProviderService() {\n return properties.get(AWS_CREDENTIALS_PROVIDER_SERVICE_PROPERTY);\n }",
"public Text getService() {\n return service;\n }",
"public WebServiceEndpoint getEndpointByName(String endpointName) {\n for(Iterator iter = getEndpoints().iterator(); iter.hasNext();) {\n WebServiceEndpoint next = (WebServiceEndpoint) iter.next();\n if( next.getEndpointName().equals(endpointName) ) {\n return next;\n }\n }\n return null;\n }",
"public String getTypeOfService(){\n\t\treturn typeOfService;\n\t}",
"public com.liferay.portal.kernel.service.ClassNameService getClassNameService() {\n\t\treturn classNameService;\n\t}",
"public static Object getService(String name, ServletContext sc) {\r\n\t\tAppContextWrapper acw = new ServletContextWrapper(sc);\r\n\t\tServiceFacade serviceFacade = new ServiceFacade();\r\n\t\tServiceFactory serviceFactory = serviceFacade.getServiceFactory(acw);\r\n\t\treturn serviceFactory.getService(name, acw);\r\n\t}",
"public GeoLocation getService() {\n return GeoLocation.this;\n }",
"UpdateService getService() {\n\t\t\treturn UpdateService.this;\r\n\t\t}",
"protected StatusService getStatusService() {\n return getLockssDaemon().getStatusService();\n }",
"public Class getServiceInterface() {\n return null;\n }",
"public String getName() {\n\t return ZoieUpdateHandler.class.getName();\n\t }",
"public Service getService(String id) {\n Service service = catalog.getService(id);\n Assert.notNull(service, \"No service with id '%s' found\", id);\n return service;\n }"
]
| [
"0.6802498",
"0.5717001",
"0.5717001",
"0.56943554",
"0.56943554",
"0.5642872",
"0.56212205",
"0.53843457",
"0.53617096",
"0.52967346",
"0.5296496",
"0.52942646",
"0.5282528",
"0.5271209",
"0.52495205",
"0.5246327",
"0.52432483",
"0.5241653",
"0.5225424",
"0.5224739",
"0.52005935",
"0.51885617",
"0.5174119",
"0.51709855",
"0.51709855",
"0.51709855",
"0.51650006",
"0.51650006",
"0.5103462",
"0.5103462",
"0.5103462",
"0.5097918",
"0.50899845",
"0.50677997",
"0.50608104",
"0.50472575",
"0.5026206",
"0.49877232",
"0.49800017",
"0.49800017",
"0.49800017",
"0.49592078",
"0.49368572",
"0.4919312",
"0.49120808",
"0.4900285",
"0.4867104",
"0.48642433",
"0.4858741",
"0.4846656",
"0.4835429",
"0.4828966",
"0.4827471",
"0.4769275",
"0.47609898",
"0.47498056",
"0.47498056",
"0.47466704",
"0.47415975",
"0.4739171",
"0.4739171",
"0.4739171",
"0.47326893",
"0.47271174",
"0.47223508",
"0.47159302",
"0.47159302",
"0.47156197",
"0.47082716",
"0.47006744",
"0.46979183",
"0.46879756",
"0.46870157",
"0.4683373",
"0.46695518",
"0.46557206",
"0.4652568",
"0.46516752",
"0.46516752",
"0.4650551",
"0.46489722",
"0.46466464",
"0.46175015",
"0.46175015",
"0.46175015",
"0.46148914",
"0.46119028",
"0.46039662",
"0.46027336",
"0.4588323",
"0.4585561",
"0.4584195",
"0.45817202",
"0.45806366",
"0.45800668",
"0.45776436",
"0.4572602",
"0.45604187",
"0.45589527",
"0.4557781"
]
| 0.6609036 | 1 |
Gets the YAWL Service associated with this gateway. | public YAWLServiceReference getYawlService() {
if (_yawlServices.values().size() > 0) {
return _yawlServices.values().iterator().next();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public YAWLServiceReference getYawlService(String yawlServiceID) {\n return _yawlServices.get(yawlServiceID);\n }",
"public LocationService getService()\n {\n return LocationService.this;\n }",
"public TTSService getService() {\n return TTSService.this;\n }",
"private HttpService getHTTPService() {\n\t\tHttpService sobjHTTPService = null;\n\t\tServiceReference srefHTTPService = bc\n\t\t\t\t.getServiceReference(HttpService.class.getName());\n\n\t\tif (srefHTTPService != null) {\n\t\t\tsobjHTTPService = (HttpService) bc.getService(srefHTTPService);\n\t\t} else {\n\t\t\tlogger.error(\"Could not find a HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\tif (sobjHTTPService == null) {\n\t\t\tlogger.error(\"Could retrieve the HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn sobjHTTPService;\n\t}",
"public Service getService() {\n return serviceInstance;\n }",
"public WebServiceDriverManager getWebServiceDriverManager() {\n return (WebServiceDriverManager) this.getManagerStore()\n .get(WebServiceDriverManager.class.getCanonicalName());\n }",
"public Object getService() {\n return service;\n }",
"public BindingService getService() {\n return BindingService.this;\n }",
"public YAWLServiceGateway(String id, YSpecification specification) {\n super(id, specification);\n _yawlServices = new HashMap<String, YAWLServiceReference>();\n _enablementParameters = new HashMap<String, YParameter>();\n }",
"public Service getService()\n {\n return (Service) getSource();\n }",
"ICordysGatewayClient getGatewayClientInstance();",
"public IServerService getService() {\n return ServerService.this;\n }",
"public AbstractService getService() {\n return service;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public String getService() {\n\t\treturn service.get();\n\t}",
"public GeoLocation getService() {\n return GeoLocation.this;\n }",
"public GeoService getService() {\n return GeoService.this;\n }",
"public Service getService() {\n\t\treturn _service;\n\t}",
"private Service getService() {\n return service;\n }",
"WakeUpService getService() {\n\n return WakeUpService.this;\n }",
"public WebServiceDriver getWebServiceDriver() {\n return this.getWebServiceDriverManager().getWebServiceDriver();\n }",
"WorkoutService getService() {\n return WorkoutService.this;\n }",
"public DownloadService getService() {\n return DownloadService.this;\n }",
"public Service getService() {\n\t\treturn this;\n\t}",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public MediaPlayerService getService() {\n return MediaPlayerService.this;\n }",
"MqttHandler getService() {\n return MqttHandler.getInstance();\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"protected StatusService getStatusService() {\n return getLockssDaemon().getStatusService();\n }",
"public DriverService getDriverService() {\n return driverService;\n }",
"UpdateService getService() {\n\t\t\treturn UpdateService.this;\r\n\t\t}",
"public ResourceService getResourceService() {\n return resourceService;\n }",
"public CountriesApiService getApiService() {\n if (apiService == null) {\n synchronized (RestClient.class) {\n if (apiService == null)\n new RestClient();\n }\n }\n return apiService;\n }",
"public static LocationServices getInstance() {\n\t\tif (instance == null) {\t\n\t\t\tinstance = new LocationServices();\n\t\t}\n\t\treturn instance;\n\t}",
"public go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder() {\n return getService();\n }",
"public go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder() {\n return getService();\n }",
"public go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder() {\n return getService();\n }",
"public ApiService apiService() {\n\t\treturn apiService;\n\t}",
"@Override\n public GetWirelessGatewayResult getWirelessGateway(GetWirelessGatewayRequest request) {\n request = beforeClientExecution(request);\n return executeGetWirelessGateway(request);\n }",
"public static TargetService getService() {\n FacesContext context = FacesContext.getCurrentInstance();\n return (TargetService) context.getApplication().evaluateExpressionGet(\n context, \"#{targetServiceNH}\", TargetService.class);\n }",
"public static ServerServiceAsync getService() {\n\n return GWT.create(ServerService.class);\n }",
"public Class getServiceClass() { return serviceClass; }",
"public synchronized YahooLocationHelper getInstance(){\r\n\t\tif (m_Instance == null){\r\n\t\t\tm_Instance = new YahooLocationHelper();\r\n\t\t}\r\n\t\t\r\n\t\treturn m_Instance;\r\n\t}",
"public OrdersBusinessInterface getService() {\r\n\t\treturn service;\r\n\t}",
"public ConfigurationService getConfigurationService() {\n return configurationService;\n }",
"public EndpointService endpointService() {\n return this.endpointService;\n }",
"public Mqttservice getService() {\n return Mqttservice.this;\n }",
"public java.lang.String getServiceClass() {\n return serviceClass;\n }",
"public static IWebService getService(final Context context) {\n return getClient(context).mService;\n }",
"public void setYawlService(YAWLServiceReference yawlService) {\n if (yawlService != null) {\n _yawlServices.put(yawlService.getURI(), yawlService);\n }\n }",
"BLEService getService() {\n return BLEService.this;\n }",
"private PolicyService getService(String targetEndPoint)\n throws Exception\n {\n log.debug(\"\") ;\n log.debug(\"----\\\"----\") ;\n log.debug(\"setUp()\") ;\n log.debug(\" Target : '\" + targetEndPoint + \"'\") ;\n\n if ((null == targetEndPoint) || (targetEndPoint.length() <= 0))\n {\n targetEndPoint = CommunityConfig.getServiceUrl() ;\n }\n log.debug(\" Target : '\" + targetEndPoint + \"'\") ;\n\n PolicyServiceService locator = null;\n PolicyService service = null;\n //\n // Create our service locator.\n locator = new PolicyServiceServiceLocator();\n\n //\n // Create our service.\n service = locator.getPolicyService(new URL(targetEndPoint));\n\n log.debug(\"----\\\"----\") ;\n log.debug(\"\") ;\n return service;\n }",
"protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }",
"LocService getService() {\n return LocService.this;\n }",
"public RouteStopManager getRouteStopManager() {\n\t\tif (routeStopManager == null) {\n\t\t\tIRouteStopDAO routeStopDAO = new RouteStopDAOSqlite(dbHelper);\n\t\t\trouteStopManager = new RouteStopManager(routeStopDAO);\n\t\t\trouteStopManager.setManagerHolder(this);\n\t\t}\n\t\treturn routeStopManager;\n\t}",
"public Object getService(String serviceName);",
"Object getService(String serviceName);",
"@Override\n public OzoneManager getOzoneManager() {\n return this.omhaService.getServices().get(0);\n }",
"public SSLService createDynamicSSLService() {\n return new SSLService(env, sslConfigurations, sslContexts) {\n\n @Override\n Map<SSLConfiguration, SSLContextHolder> loadSSLConfigurations() {\n // we don't need to load anything...\n return Collections.emptyMap();\n }\n\n /**\n * Returns the existing {@link SSLContextHolder} for the configuration\n * @throws IllegalArgumentException if not found\n */\n @Override\n SSLContextHolder sslContextHolder(SSLConfiguration sslConfiguration) {\n SSLContextHolder holder = sslContexts.get(sslConfiguration);\n if (holder == null) {\n // normally we'd throw here but let's create a new one that is not cached and will not be monitored for changes!\n holder = createSslContext(sslConfiguration);\n }\n return holder;\n }\n };\n }",
"public static PsmlManagerService getService() {\n return (PsmlManagerService) TurbineServices.getInstance().getService(\n PsmlManagerService.SERVICE_NAME);\n }",
"public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }",
"public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }",
"public Class getServiceInterface() {\n return null;\n }",
"public static YelpGate getInstance()\n\t{\n\t\tif (instance == null)\n\t\t{\n\t\t\tsynchronized (YelpGate.class) \n\t\t\t{\n\t\t\t\tif (instance == null) \n\t\t\t\t{\n\t\t\t\t\tinstance = new YelpGate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public String getServiceName();",
"public Text getService() {\n return service;\n }",
"public static synchronized PlatformInit getService() {\n\t\tif(theService == null || theService.initialised)\n\t\t\treturn theService;\n\t\treturn null;\n\t}",
"public WebhookService webhookService() {\n\t\treturn webhookService;\n\t}",
"public EPPService getService() {\n\t\treturn service;\n\t}",
"public static SchedulerService get() {\n return SINGLETON;\n }",
"public final String getAwsCredentialsProviderService() {\n return properties.get(AWS_CREDENTIALS_PROVIDER_SERVICE_PROPERTY);\n }",
"@Override\n public ServiceName getServiceName() {\n return ServiceName.DARK_SKY;\n }",
"public <T extends SocketService> T getSocketService(Class<T> cls){\n\t\ttry{\n\t\t\tfor(T candidate : _context.getBeansOfType(cls).values()){\n\t\t\t\tif(candidate.getClass().equals(cls)){\n\t\t\t\t\treturn candidate;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (BeansException ex){\n\t\t\tLOGGER.warn(ex, ex);\t\t\n\t\t}\n\t\treturn null;\n\t}",
"public String getWsdlLocation()\r\n {\r\n return wsdlLocation;\r\n }",
"public String getServiceName()\n {\n return serviceName;\n }",
"public BluetoothService getService() {\n return _service;\n }",
"public SystemServiceManager getSystemServiceManager() {\n return this.mService.mSystemServiceManager;\n }",
"public SyncJobService getSyncJobService() {\n\t\tif (syncJobService == null) {\n\t\t\tsyncJobService = Registry.getCoreApplicationContext().getBean(\"syncJobService\", SyncJobService.class);\n\t\t}\n\t\treturn syncJobService;\n\t}",
"IHttpService getHttpService();",
"protected static Service getService() throws AnaplanAPIException, UnknownAuthenticationException {\n if (service != null) {\n return service;\n }\n\n ConnectionProperties props = getConnectionProperties();\n service = DefaultServiceProvider.getService(props, Constants.X_ACONNECT_HEADER_KEY, Constants.X_ACONNECT_HEADER_VALUE);\n service.authenticate();\n return service;\n }",
"public Class getServiceClass()\n {\n return serviceClass;\n }",
"@Override\r\n\tpublic BaseService<Role> getService() {\n\t\treturn roleService;\r\n\t}",
"String getServiceName();",
"String getServiceName();",
"public String getServiceName() {\n return serviceName;\n }",
"public Service getService(Object serviceKey) throws RemoteException {\n Service theService = (Service) serviceList.get(serviceKey);\n return theService;\n }",
"public String getServiceName() {\n return serviceName;\n }",
"public ServiceDAO getServiceDAO() {\n\t\treturn serviceDAO;\n\t}",
"public static IPayService getInstance(ApplicationContext context) {\r\n return (IPayService) context.getBean(SERVICE_BEAN_ID);\r\n }",
"@Override\n public <T> T getToolService(Class<T> serviceClass)\n {\n if (serviceClass.isAssignableFrom(getClass()))\n {\n return (T)this;\n }\n return null;\n }",
"private Object obtainService(String osgiURL)\r\n\t\t\t\tthrows InvalidSyntaxException {\r\n\t\t\tOSGiURLParser urlParser = new OSGiURLParser(osgiURL);\r\n\t\t\ttry {\r\n\t\t\t\turlParser.parse();\r\n\t\t\t}\r\n\t\t\tcatch (IllegalStateException stateException) {\r\n\t\t\t\tlogger.log(Level.SEVERE, \"An exception occurred while trying to parse this osgi URL\", stateException);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif (urlParser.getServiceInterface() == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\treturn getService(m_bundleContext, urlParser);\r\n\t\t}"
]
| [
"0.65011513",
"0.55856276",
"0.53546464",
"0.5350463",
"0.52978534",
"0.5268066",
"0.52636695",
"0.5228919",
"0.5214975",
"0.5193907",
"0.51892287",
"0.51839256",
"0.5160044",
"0.51429886",
"0.51429886",
"0.51429886",
"0.50993174",
"0.50820297",
"0.5069198",
"0.50542796",
"0.5044364",
"0.50406134",
"0.50216985",
"0.5010835",
"0.49559093",
"0.49514925",
"0.49131873",
"0.49131873",
"0.49131873",
"0.48938513",
"0.48884034",
"0.48849407",
"0.48849407",
"0.48849407",
"0.48711985",
"0.48711985",
"0.48711985",
"0.48410964",
"0.48196852",
"0.47983932",
"0.4793855",
"0.47735497",
"0.47664905",
"0.47537205",
"0.47537205",
"0.47537205",
"0.4747725",
"0.47333682",
"0.47174898",
"0.4711637",
"0.4707636",
"0.46896446",
"0.46731716",
"0.46601945",
"0.46507254",
"0.4646913",
"0.46434295",
"0.46355924",
"0.46320266",
"0.4631845",
"0.46269953",
"0.46264032",
"0.46181983",
"0.4614833",
"0.46023282",
"0.45960903",
"0.45782945",
"0.45619127",
"0.45597655",
"0.45572475",
"0.45572475",
"0.45539066",
"0.45529646",
"0.45493537",
"0.45422584",
"0.4522163",
"0.45189315",
"0.4517958",
"0.45157778",
"0.45093298",
"0.4509323",
"0.45015562",
"0.45008922",
"0.44837287",
"0.44822106",
"0.448208",
"0.4475446",
"0.44725585",
"0.44678324",
"0.44666755",
"0.44655746",
"0.44555035",
"0.44555035",
"0.4455404",
"0.44520116",
"0.44500428",
"0.444249",
"0.44406173",
"0.4439646",
"0.44379914"
]
| 0.68952286 | 0 |
Sets the YAWL Service associated with this gateway. | public void setYawlService(YAWLServiceReference yawlService) {
if (yawlService != null) {
_yawlServices.put(yawlService.getURI(), yawlService);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public YAWLServiceGateway(String id, YSpecification specification) {\n super(id, specification);\n _yawlServices = new HashMap<String, YAWLServiceReference>();\n _enablementParameters = new HashMap<String, YParameter>();\n }",
"public abstract void setYjaService(AbsYJACommonService yjaService) throws Exception;",
"protected void setService(AbsYJACommonService yjaService) throws Exception {\n\t\tthis.yjaService = yjaService;\n\t\tthis.yjaService.setInitialInfo(actionModel);\n\t}",
"public abstract void setServiceName(String serviceName);",
"public YAWLServiceReference getYawlService() {\n if (_yawlServices.values().size() > 0) {\n return _yawlServices.values().iterator().next();\n }\n return null;\n }",
"private void setService(Service service) {\n this.service = service;\n }",
"public void setWebServiceDriver(CloseableHttpClient httpClient) {\n this.getManagerStore().put(WebServiceDriverManager.class.getCanonicalName(),\n new WebServiceDriverManager((() -> httpClient),this));\n }",
"public YAWLServiceReference getYawlService(String yawlServiceID) {\n return _yawlServices.get(yawlServiceID);\n }",
"public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }",
"void setClassOfService(ClassOfService serviceClass);",
"public SwitchYardServiceTaskHandler() {\n super(SWITCHYARD_SERVICE);\n }",
"public final ListS3 setSslContextService(final String sslContextService) {\n properties.put(SSL_CONTEXT_SERVICE_PROPERTY, sslContextService);\n return this;\n }",
"public void setAttributeService(AttributeService attributeService) {\n this.attributeService = attributeService;\n }",
"public void setWebServiceDriver(Supplier<CloseableHttpClient> webServiceSupplier) {\n this.getManagerStore().put(WebServiceDriverManager.class.getCanonicalName(),\n new WebServiceDriverManager(webServiceSupplier, this));\n }",
"protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }",
"public void setWebServiceDriver(WebServiceDriver driver) {\n this.getManagerStore().put(WebServiceDriverManager.class.getCanonicalName(),\n new WebServiceDriverManager(driver, this));\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public final void setService(java.lang.String service)\r\n\t{\r\n\t\tsetService(getContext(), service);\r\n\t}",
"public void setBlockService(BlockService blockService) {\n _blockService = blockService;\n }",
"void setBluetoothService(BluetoothService bluetoothService);",
"protected void setEmployeeSalaryService(EmployeeSalaryService service) {\n this.employeeSalaryService = service;\n }",
"default void setEventService(EventService service) {\n bind(service);\n }",
"public abstract void setServiceType(String serviceType);",
"public void setService(CentralSystemServiceFactory service) {\n\t\tthis.service = service;\n\t}",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setStatusService(StatusService statusService) {\r\n this.statusService = statusService;\r\n }",
"void setTimerServiceResource(TimerService timerService);",
"public void setServicePath(String servicePath) {\n this.servicePath = servicePath;\n }",
"public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }",
"protected void setDictionaryService(DictionaryService dictionaryService) {\n this.dictionaryService = dictionaryService;\n }",
"public SwitchYardServiceInvoker(ServiceDomain serviceDomain) {\n this(serviceDomain, null);\n }",
"@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\n\t\t\tYC_SERVICE_BINDER = IYCService.Stub.asInterface(service);\n\n\t\t}",
"@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}",
"@Autowired\n\tpublic void setConfigService(ConfigService configService) {\n\t\tthis.configService = configService;\n\t}",
"@Required\n\tpublic void setTargetService(TargetService service) {\n\t\tthis.targetService = service;\n\t}",
"public final GetHTTP setSslContextService(final String sslContextService) {\n properties.put(SSL_CONTEXT_SERVICE_PROPERTY, sslContextService);\n return this;\n }",
"public static void setMockSystemService(String serviceName, Object service) {\n if (service != null) {\n sMockServiceMap.put(serviceName, service);\n } else {\n sMockServiceMap.remove(serviceName);\n }\n }",
"public void setServiceName(String serviceName)\r\n {\r\n this.serviceName = serviceName;\r\n }",
"public void setServiceClass(java.lang.String serviceClass) {\n this.serviceClass = serviceClass;\n }",
"public void setService (String service) {\n\t this.service = service;\n\t}",
"public void setService(Text newService) {\n service = newService;\n }",
"public void setDictionaryService(DictionaryService dictionaryService)\n {\n this.dictionaryService = dictionaryService;\n }",
"public void setConfigurationService(ConfigurationService kualiConfigurationService) {\n this.kualiConfigurationService = kualiConfigurationService;\n }",
"void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;",
"public void setServiceName(String serviceName)\n {\n this.serviceName = serviceName;\n }",
"protected void setBadgeTemplateService(BadgeTemplateService service) {\n this.badgeTemplateService = service;\n }",
"public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }",
"public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }",
"public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }",
"public void setYylsh(java.lang.String param) {\r\n localYylshTracker = param != null;\r\n\r\n this.localYylsh = param;\r\n }",
"public abstract void setService(OntologyGenerationComponentServiceInterface<T,R> service);",
"public void setDictionaryService(DictionaryService dictionaryService) {\n\t\tthis.dictionaryService = dictionaryService;\n\t}",
"public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }",
"public Event setService(String service) {\n this.service = service;\n return this;\n }",
"public final ListS3 setAwsCredentialsProviderService(final String awsCredentialsProviderService) {\n properties.put(AWS_CREDENTIALS_PROVIDER_SERVICE_PROPERTY, awsCredentialsProviderService);\n return this;\n }",
"@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n final CurrencyRatesService.LocalBinder binder = (CurrencyRatesService.LocalBinder) service;\n currencyRatesService = binder.getService();\n isServiceBound = true;\n }",
"@Override public ServerConfig https(final boolean enabled) {\n httpsEnabled = enabled;\n return this;\n }",
"@Reference\n public void setUserDirectoryService(UserDirectoryService userDirectoryService) {\n this.userDirectoryService = userDirectoryService;\n }",
"public void setConfigurationService(ConfigurationService configurationService) {\n this.configurationService = configurationService;\n }",
"public void setSkuService(final ProductSkuService skuService) {\n\t\tthis.skuService = skuService;\n\t}",
"void setCurrent(String serviceName, String currentAddress)\n\t{\n\t\tthis.currentAddress = currentAddress;\n\t\tthis.serviceName = serviceName;\n\t}",
"public void setBluetoothService(BluetoothService bluetoothService) {\n this.bluetoothService = bluetoothService;\n }",
"public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }",
"public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }",
"@Autowired\n public void setRoleService(RoleService roleService) {\n this.roleService = roleService;\n }",
"public void setUserDirectoryService(UserDirectoryService userDirectoryService) {\n this.userDirectoryService = userDirectoryService;\n }",
"public void setUserDirectoryService(UserDirectoryService userDirectoryService) {\n this.userDirectoryService = userDirectoryService;\n }",
"public WidgetUpdateService() {\n super(\"WidgetUpdateService\");\n }",
"public void setServiceBrake(boolean sBrake) {\n\t\tthis.serviceBrake = sBrake;\n\t\tthis.brakeFailureStatus();\n if(!this.brakeFailureActive){\n this.serviceBrake = sBrake;\n } else {\n\t\t\tthis.serviceBrake = false;\n\t\t}\n }",
"protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }",
"public void bindService() {\n mIntent = new Intent();\n mIntent.setPackage(\"com.eebbk.studyos.themes\");\n mIntent.setAction(THEME_SERVICE_ACTION);\n mContext.bindService(mIntent,mConnection, Context.BIND_AUTO_CREATE);\n }",
"@ReactMethod\n public void setUseConnectionService(final boolean use) {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n useConnectionService_ = use;\n setAudioDeviceHandler();\n }\n });\n }",
"public SwitchYardServiceTaskHandler(String name) {\n super(name);\n }",
"@Override\n public void setBusinessObjectService(BusinessObjectService businessObjectService) {\n this.businessObjectService = businessObjectService;\n }",
"public interface AWSServiceCatalog {\n\n /**\n * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata\n * (such as supported regions) of the service.\n *\n * @see RegionUtils#getRegionsForService(String)\n */\n String ENDPOINT_PREFIX = \"servicecatalog\";\n\n /**\n * Overrides the default endpoint for this client (\"servicecatalog.us-east-1.amazonaws.com\"). Callers can use this\n * method to control which AWS region they want to work with.\n * <p>\n * Callers can pass in just the endpoint (ex: \"servicecatalog.us-east-1.amazonaws.com\") or a full URL, including the\n * protocol (ex: \"servicecatalog.us-east-1.amazonaws.com\"). If the protocol is not specified here, the default\n * protocol from this client's {@link ClientConfiguration} will be used, which by default is HTTPS.\n * <p>\n * For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available\n * endpoints for all AWS services, see: <a\n * href=\"http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912\">\n * http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912</a>\n * <p>\n * <b>This method is not threadsafe. An endpoint should be configured when the client is created and before any\n * service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in\n * transit or retrying.</b>\n *\n * @param endpoint\n * The endpoint (ex: \"servicecatalog.us-east-1.amazonaws.com\") or a full URL, including the protocol (ex:\n * \"servicecatalog.us-east-1.amazonaws.com\") of the region specific AWS endpoint this client will communicate\n * with.\n */\n void setEndpoint(String endpoint);\n\n /**\n * An alternative to {@link AWSServiceCatalog#setEndpoint(String)}, sets the regional endpoint for this client's\n * service calls. Callers can use this method to control which AWS region they want to work with.\n * <p>\n * By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the\n * {@link ClientConfiguration} supplied at construction.\n * <p>\n * <b>This method is not threadsafe. A region should be configured when the client is created and before any service\n * requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit\n * or retrying.</b>\n *\n * @param region\n * The region this client will communicate with. See {@link Region#getRegion(com.amazonaws.regions.Regions)}\n * for accessing a given region. Must not be null and must be a region where the service is available.\n *\n * @see Region#getRegion(com.amazonaws.regions.Regions)\n * @see Region#createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)\n * @see Region#isServiceSupported(String)\n */\n void setRegion(Region region);\n\n /**\n * <p>\n * Retrieves information about a specified product.\n * </p>\n * <p>\n * This operation is functionally identical to <a>DescribeProductView</a> except that it takes as input\n * <code>ProductId</code> instead of <code>ProductViewId</code>.\n * </p>\n * \n * @param describeProductRequest\n * @return Result of the DescribeProduct operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.DescribeProduct\n */\n DescribeProductResult describeProduct(DescribeProductRequest describeProductRequest);\n\n /**\n * <p>\n * Retrieves information about a specified product.\n * </p>\n * <p>\n * This operation is functionally identical to <a>DescribeProduct</a> except that it takes as input\n * <code>ProductViewId</code> instead of <code>ProductId</code>.\n * </p>\n * \n * @param describeProductViewRequest\n * @return Result of the DescribeProductView operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.DescribeProductView\n */\n DescribeProductViewResult describeProductView(DescribeProductViewRequest describeProductViewRequest);\n\n /**\n * <p>\n * Provides information about parameters required to provision a specified product in a specified manner. Use this\n * operation to obtain the list of <code>ProvisioningArtifactParameters</code> parameters available to call the\n * <a>ProvisionProduct</a> operation for the specified product.\n * </p>\n * \n * @param describeProvisioningParametersRequest\n * @return Result of the DescribeProvisioningParameters operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.DescribeProvisioningParameters\n */\n DescribeProvisioningParametersResult describeProvisioningParameters(DescribeProvisioningParametersRequest describeProvisioningParametersRequest);\n\n /**\n * <p>\n * Retrieves a paginated list of the full details of a specific request. Use this operation after calling a request\n * operation (<a>ProvisionProduct</a>, <a>TerminateProvisionedProduct</a>, or <a>UpdateProvisionedProduct</a>).\n * </p>\n * \n * @param describeRecordRequest\n * @return Result of the DescribeRecord operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.DescribeRecord\n */\n DescribeRecordResult describeRecord(DescribeRecordRequest describeRecordRequest);\n\n /**\n * <p>\n * Returns a paginated list of all paths to a specified product. A path is how the user has access to a specified\n * product, and is necessary when provisioning a product. A path also determines the constraints put on the product.\n * </p>\n * \n * @param listLaunchPathsRequest\n * @return Result of the ListLaunchPaths operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.ListLaunchPaths\n */\n ListLaunchPathsResult listLaunchPaths(ListLaunchPathsRequest listLaunchPathsRequest);\n\n /**\n * <p>\n * Returns a paginated list of all performed requests, in the form of RecordDetails objects that are filtered as\n * specified.\n * </p>\n * \n * @param listRecordHistoryRequest\n * @return Result of the ListRecordHistory operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.ListRecordHistory\n */\n ListRecordHistoryResult listRecordHistory(ListRecordHistoryRequest listRecordHistoryRequest);\n\n /**\n * <p>\n * Requests a <i>Provision</i> of a specified product. A <i>ProvisionedProduct</i> is a resourced instance for a\n * product. For example, provisioning a CloudFormation-template-backed product results in launching a CloudFormation\n * stack and all the underlying resources that come with it.\n * </p>\n * <p>\n * You can check the status of this request using the <a>DescribeRecord</a> operation.\n * </p>\n * \n * @param provisionProductRequest\n * @return Result of the ProvisionProduct operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @throws DuplicateResourceException\n * The specified resource is a duplicate.\n * @sample AWSServiceCatalog.ProvisionProduct\n */\n ProvisionProductResult provisionProduct(ProvisionProductRequest provisionProductRequest);\n\n /**\n * <p>\n * Returns a paginated list of all the ProvisionedProduct objects that are currently available (not terminated).\n * </p>\n * \n * @param scanProvisionedProductsRequest\n * @return Result of the ScanProvisionedProducts operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.ScanProvisionedProducts\n */\n ScanProvisionedProductsResult scanProvisionedProducts(ScanProvisionedProductsRequest scanProvisionedProductsRequest);\n\n /**\n * <p>\n * Returns a paginated list all of the <code>Products</code> objects to which the caller has access.\n * </p>\n * <p>\n * The output of this operation can be used as input for other operations, such as <a>DescribeProductView</a>.\n * </p>\n * \n * @param searchProductsRequest\n * @return Result of the SearchProducts operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.SearchProducts\n */\n SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);\n\n /**\n * <p>\n * Requests termination of an existing ProvisionedProduct object. If there are <code>Tags</code> associated with the\n * object, they are terminated when the ProvisionedProduct object is terminated.\n * </p>\n * <p>\n * This operation does not delete any records associated with the ProvisionedProduct object.\n * </p>\n * <p>\n * You can check the status of this request using the <a>DescribeRecord</a> operation.\n * </p>\n * \n * @param terminateProvisionedProductRequest\n * @return Result of the TerminateProvisionedProduct operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.TerminateProvisionedProduct\n */\n TerminateProvisionedProductResult terminateProvisionedProduct(TerminateProvisionedProductRequest terminateProvisionedProductRequest);\n\n /**\n * <p>\n * Requests updates to the configuration of an existing ProvisionedProduct object. If there are tags associated with\n * the object, they cannot be updated or added with this operation. Depending on the specific updates requested,\n * this operation may update with no interruption, with some interruption, or replace the ProvisionedProduct object\n * entirely.\n * </p>\n * <p>\n * You can check the status of this request using the <a>DescribeRecord</a> operation.\n * </p>\n * \n * @param updateProvisionedProductRequest\n * @return Result of the UpdateProvisionedProduct operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.UpdateProvisionedProduct\n */\n UpdateProvisionedProductResult updateProvisionedProduct(UpdateProvisionedProductRequest updateProvisionedProductRequest);\n\n /**\n * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and\n * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client\n * has been shutdown, it should not be used to make any more requests.\n */\n void shutdown();\n\n /**\n * Returns additional metadata for a previously executed successful request, typically used for debugging issues\n * where a service isn't acting as expected. This data isn't considered part of the result data returned by an\n * operation, so it's available through this separate, diagnostic interface.\n * <p>\n * Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic\n * information for an executed request, you should use this method to retrieve it as soon as possible after\n * executing a request.\n *\n * @param request\n * The originally executed request.\n *\n * @return The response metadata for the specified request, or null if none is available.\n */\n ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);\n\n}",
"protected void setConfigurationContextService(ConfigurationContextService service) {\n if (log.isDebugEnabled()) {\n log.debug(\"carbon-registry deployment synchronizer component bound to the configuration context service\");\n }\n RegistryServiceReferenceHolder.setConfigurationContextService(service);\n }",
"public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }",
"public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }",
"public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }",
"public SwitchYardServiceInvoker(ServiceDomain serviceDomain, String targetNamespace) {\n _serviceDomain = serviceDomain;\n _targetNamespace = targetNamespace;\n }",
"public void setService(Service value) {\n\t\tthis._service = value;\n\t}",
"protected void setServiceProcess(ServiceProcess serviceProcess) {\n\t\tthis.serviceProcess = serviceProcess;\n\t}",
"public NcrackClient onTargetService(TargetService targetService) {\n this.targetService = targetService;\n return this;\n }",
"public void setTechnologyServiceBL(TechnologyServiceBL technologyServiceBL) {\n this.technologyServiceBL = technologyServiceBL;\n }",
"@Autowired\n\tpublic void setRegistratorService (RegistratorService registratorService) {\n\t\tthis.registratorService = registratorService;\n\t}",
"@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tConfig.HisiSettingService = ServiceSettingsInfoAidl.Stub.asInterface(service);\n\t\t}",
"@Reference(\n name = \"listener.manager.service\",\n service = org.apache.axis2.engine.ListenerManager.class,\n cardinality = ReferenceCardinality.OPTIONAL,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetListenerManager\")\n protected void setListenerManager(ListenerManager listenerManager) {\n if (log.isDebugEnabled()) {\n log.debug(\"Listener manager bound to the API manager component\");\n }\n APIManagerConfigurationService service = ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService();\n if (service != null) {\n service.getAPIManagerConfiguration().reloadSystemProperties();\n }\n }",
"@Override\n protected void reconfigureService() {\n }",
"@Reference(\n name = \"user.realmservice.default\",\n service = org.wso2.carbon.user.core.service.RealmService.class,\n cardinality = ReferenceCardinality.MANDATORY,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetRealmService\")\n protected void setRealmService(RealmService realmService) {\n DataHolder.getInstance().setRealmService(realmService);\n }",
"public AWSLambdaClient(AWSCredentials awsCredentials) {\n this(awsCredentials, new ClientConfiguration());\n }",
"public void setServiceDAO(ServiceDAO serviceDAO) {\n\t\tthis.serviceDAO = serviceDAO;\n\t}",
"protected void setServiceRegistry(ServiceRegistry serviceRegistry) {\n this.serviceRegistry = serviceRegistry;\n }",
"protected void setServiceRegistry(ServiceRegistry serviceRegistry) {\n this.serviceRegistry = serviceRegistry;\n }",
"@Reference(\n name = \"event.output.adapter.service\",\n service = org.wso2.carbon.event.output.adapter.core.OutputEventAdapterService.class,\n cardinality = ReferenceCardinality.MANDATORY,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetOutputEventAdapterService\")\n protected void setOutputEventAdapterService(OutputEventAdapterService outputEventAdapterService) {\n ServiceReferenceHolder.getInstance().setOutputEventAdapterService(outputEventAdapterService);\n }",
"public void setSwingUI(SwingUI swingUI) {\r\n\t\tthis.swingUI = swingUI;\r\n\t}",
"public void setUseGlobalService(boolean flag);",
"public void setLibroService(\n com.example.plugins.service.LibroService libroService) {\n this.libroService = libroService;\n }",
"public AWSLambdaClient() {\n this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());\n }"
]
| [
"0.6269435",
"0.5978348",
"0.5455875",
"0.5162967",
"0.50912887",
"0.50082433",
"0.50002897",
"0.49995238",
"0.4981743",
"0.49052262",
"0.48723054",
"0.48593092",
"0.48574013",
"0.4843249",
"0.4840039",
"0.47794896",
"0.47638363",
"0.4740767",
"0.47387788",
"0.4719918",
"0.47190782",
"0.47089723",
"0.46751207",
"0.46646425",
"0.46498224",
"0.46498224",
"0.46498224",
"0.46239656",
"0.46083114",
"0.46038243",
"0.45933464",
"0.45857114",
"0.45536432",
"0.45328432",
"0.45242977",
"0.45208153",
"0.45163548",
"0.45068997",
"0.44515127",
"0.4442388",
"0.4437367",
"0.4434191",
"0.44255495",
"0.44093376",
"0.4407062",
"0.44031197",
"0.4399263",
"0.43923336",
"0.43881562",
"0.43881562",
"0.43881562",
"0.43845668",
"0.43795964",
"0.4364239",
"0.43610916",
"0.43594518",
"0.43437374",
"0.43434253",
"0.43191957",
"0.4315926",
"0.43128043",
"0.43029156",
"0.43027237",
"0.4302424",
"0.43020052",
"0.43020052",
"0.42959994",
"0.42863023",
"0.42863023",
"0.4279628",
"0.42717266",
"0.4270728",
"0.42663908",
"0.42644444",
"0.42602742",
"0.42477924",
"0.42278448",
"0.4222684",
"0.42209268",
"0.42209268",
"0.42209268",
"0.4219468",
"0.42136607",
"0.4212255",
"0.4205755",
"0.41980267",
"0.41918182",
"0.4190275",
"0.4188345",
"0.41792706",
"0.41661316",
"0.416458",
"0.41612968",
"0.415704",
"0.415704",
"0.415043",
"0.41487986",
"0.41481653",
"0.41455576",
"0.41454697"
]
| 0.6567575 | 0 |
Gets the enablement parameters. | public Map<String, YParameter> getEnablementParameters() {
return _enablementParameters;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Set<String> getEnablementParameterNames() {\n return _enablementParameters.keySet();\n }",
"public EngineParameters getEngineParameters() {\n\t\treturn engineParameters;\n\t}",
"@Override\n public List<ParameterAssignment> getParameters()\n {\n return parameters;\n }",
"public byte[] getEncryptionAlgParams()\n {\n try\n {\n return encodeObj(encryptionAlgorithm.getParameters());\n }\n catch (Exception e)\n {\n throw new RuntimeException(\"exception getting encryption parameters \" + e);\n }\n }",
"public Parameters getConfigParameters();",
"public ParameterList getAdjustableParams();",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }",
"List<PowreedCommandParameter> getParameters();",
"public Boolean getEnable() {\n\t\treturn enable;\n\t}",
"public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environmentParams;\r\n\t}",
"public List<Map> getAllParameters() {\n List<Map> allProductParameters = new ArrayList<Map>();\n if (processorParametres != null) allProductParameters.add(processorParametres);\n if (sellerParametres != null) allProductParameters.add(sellerParametres);\n if (storageParametres != null) allProductParameters.add(storageParametres);\n\n return allProductParameters;\n }",
"private void enableDisable() throws Exception\n\t{\n\t\tfor (String param : parameters.keySet())\n\t\t{\n\t\t\tif (piseMarshaller.getPrecond(param) != null)\n\t\t\t{\n\t\t\t\tElement element = parameters.get(param); \n\t\t\t\tif (processPrecond(param) == true)\n\t\t\t\t{\n\t\t\t\t\telement.enabled = true;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\telement.enabled = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected SoEnabledElementsList getEnabledElements() {\n\t \t\treturn enabledElements;\n\t \t}",
"@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}",
"public String[] getParameters() {\n return parameters;\n }",
"public Map getReportParameters() {\r\n\t return ReportHelperTrt.getReportParameters();\r\n\t }",
"@Override\n public List<Param<?>> params() {\n return this.settings;\n }",
"public String[] getParameters() {\r\n return parameters;\r\n }",
"public String getEnable() {\r\n return enable;\r\n }",
"public Boolean getEnable() {\n return enable;\n }",
"public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }",
"public String[] getParameters() {\n\t\treturn parameters;\n\t}",
"public Properties getParameters() {\r\n return mParameters;\r\n }",
"public Boolean getEnable() {\n return this.enable;\n }",
"public List<ModuleArgumentItem> getParams() {\n return params;\n }",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"java.lang.String getEnabled();",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[1];\n params[0] = maxIterations;\n return params;\n }",
"public Boolean getEnable() {\n return enable;\n }",
"public String[] getParameters() {\r\n return scope != null? scope.getParameters() : null;\r\n }",
"@Override\n\t@SystemSetupParameterMethod\n\tpublic List<SystemSetupParameter> getInitializationOptions()\n\t{\n\t\tfinal List<SystemSetupParameter> params = new ArrayList<SystemSetupParameter>();\n\t\tparams.add(createBooleanSystemSetupParameter(IMPORT_SBD_SAMPLE_PRODUCT_DATA, \"Import SBD Sample Product Data\", true));\n\t\tparams.add(createBooleanSystemSetupParameter(IMPORT_PROJECT_DATA, \"Import Project Data\", true));\n\t\tparams.add(createBooleanSystemSetupParameter(CoreSystemSetup.ACTIVATE_SOLR_CRON_JOBS, \"Activate Solr Cron Jobs\", true));\n\t\t\n\t\t// Add more Parameters here as your require\n\n\t\treturn params;\n\t}",
"public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}",
"public ArrayList getParameters() {\n return parameters;\n }",
"public String[] getTrainingSettings();",
"public List<Parameter> getParamters() {\r\n return this.lstParameters;\r\n }",
"public Map<String, List<String>> getParameters() {\n\t\t\treturn parameters;\n\t\t}",
"public Parameter[] getParameters()\r\n {\r\n return m_params;\r\n }",
"public Parameters getParameters();",
"public String getParameters() {\n return this.Parameters;\n }",
"public Object[] getParameters() {\n \t// return the parameters as used for the rule validation\n Object[] params = new Object[1];\n params[0] = charge;\n return params;\n }",
"public Map getParameters();",
"public void setEnablementParameter(YParameter parameter) {\n if (YParameter.getTypeForEnablement().equals(parameter.getDirection())) {\n if (null != parameter.getName()) {\n _enablementParameters.put(parameter.getName(), parameter);\n } else if (null != parameter.getElementName()) {\n _enablementParameters.put(parameter.getElementName(), parameter);\n }\n } else {\n throw new RuntimeException(\"Can only set enablement type param as such.\");\n }\n }",
"@Override\n public Collection<Parameter> jaxb_parameters() {\n Collection<jaxb.Parameter> pset = new HashSet<>();\n\n boolean write_quecontrol = has_queue_control;\n boolean write_min_rate = Float.isFinite(min_rate_vph);\n boolean write_max_rate = Float.isFinite(max_rate_vph);\n\n // write has_queue_control\n if(write_quecontrol){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"queue_control\");\n p.setValue(has_queue_control ? \"true\" : \"false\");\n pset.add(p);\n\n jaxb.Parameter p1 = new jaxb.Parameter();\n p1.setName(\"override_threshold\");\n p1.setValue(String.format(\"%.2f\",override_threshold));\n pset.add(p1);\n }\n\n // write min rate\n if(write_min_rate){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"min_rate_vphpl\");\n p.setValue(String.format(\"%.0f\",min_rate_vph));\n pset.add(p);\n }\n\n // write max rate\n if(write_max_rate){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"max_rate_vphpl\");\n p.setValue(String.format(\"%.0f\",max_rate_vph));\n pset.add(p);\n }\n\n return pset;\n }",
"public Parameters getParameters() {\r\n return params;\r\n }",
"@Override\n\tpublic LinkedHashMap<String,?> getRequiredParams() {\n\t\tLinkedHashMap<String,String> requiredParams = new LinkedHashMap<>();\n\t\trequiredParams.put(\"crv\", crv.toString());\n\t\trequiredParams.put(\"kty\", getKeyType().getValue());\n\t\trequiredParams.put(\"x\", x.toString());\n\t\trequiredParams.put(\"y\", y.toString());\n\t\treturn requiredParams;\n\t}",
"public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}",
"public Map<String, String> getSellerParametres() {\n return sellerParametres;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }",
"java.lang.String getSolverSpecificParameters();",
"public Boolean getEnabled() {\r\n return enabled;\r\n }",
"@Override\n\tpublic ParameterSet requiredParameters()\n\t{\n\t\t// Parameter p0 = new\n\t\t// Parameter(\"Dummy Parameter\",\"Lets user know that the function has been selected.\",FormLine.DROPDOWN,new\n\t\t// String[] {\"true\"},0);\n\t\tParameter p0 = getNumThreadsParameter(10, 4);\n\t\tParameter p1 = new Parameter(\"Old Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p2 = new Parameter(\"Old Max\", \"Image Intensity Value\", \"4095.0\");\n\t\tParameter p3 = new Parameter(\"New Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p4 = new Parameter(\"New Max\", \"Image Intensity Value\", \"65535.0\");\n\t\tParameter p5 = new Parameter(\"Gamma\", \"0.1-5.0, value of 1 results in no change\", \"1.0\");\n\t\tParameter p6 = new Parameter(\"Output Bit Depth\", \"Depth of the outputted image\", Parameter.DROPDOWN, new String[] { \"8\", \"16\", \"32\" }, 1);\n\t\t\n\t\t// Make an array of the parameters and return it\n\t\tParameterSet parameterArray = new ParameterSet();\n\t\tparameterArray.addParameter(p0);\n\t\tparameterArray.addParameter(p1);\n\t\tparameterArray.addParameter(p2);\n\t\tparameterArray.addParameter(p3);\n\t\tparameterArray.addParameter(p4);\n\t\tparameterArray.addParameter(p5);\n\t\tparameterArray.addParameter(p6);\n\t\treturn parameterArray;\n\t}",
"@Override\n public String getParameters() {\n return parameters;\n }",
"private void enableFields() {\n\t\t\t\t\t\tholderMain.editTextParametername.setEnabled(true);\n\t\t\t\t\t\tholderMain.editTextParameterValue.setEnabled(true);\n\n\t\t\t\t\t}",
"public synchronized final Vector getPreprocessingParams() {\n return getParams(PREPROCESSING);\n }",
"public Map<String, Expression> getParameters() {\r\n \t\treturn parameters;\r\n \t}",
"public Boolean getEnabled() {\n return enabled;\n }",
"public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}",
"public ArrayList getXsltParams() {\n return xsltParams;\n }",
"String [] getParameters();",
"public ImmutableMap<String, Integer> getProcessorParametres() {\n return processorParametres;\n }",
"public java.lang.Boolean getEnabled() {\n return enabled;\n }",
"public Map getParams() {\n\t\treturn _params;\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"reg_No\", regNo);\n params.put(\"manufacturer\", manufacture);\n params.put(\"model_Variant\", modelVar);\n params.put(\"PrevPolicyNo\", prevPolicyNo);\n params.put(\"mobile\", mobile);\n params.put(\"inspection_id\", pref.getInspectioID());\n\n Log.e(TAG, \"Posting params: \" + params.toString());\n\n return params;\n }",
"public Set<Parameter> getSearchedParameters() {\n\t\treturn new HashSet<Parameter>(parameterEntries.keySet());\n\t}",
"@Override\n\tpublic boolean getEnabled();",
"public Parameters getParameters() {\n \treturn parameters;\n }",
"public Boolean enable() {\n return this.enable;\n }",
"public Map<String, List<String>> parameters() {\n return parameters;\n }",
"public com.novell.www.resource.service.ResourceRequestParam[] getRequestParams() {\r\n return requestParams;\r\n }",
"public Properties getParameters() {\n\t\treturn null;\n\t}",
"public String getEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public String getEnableFlag() {\n\t\treturn enableFlag;\n\t}",
"@Override\n public Parameters getParams() {\n return parameters;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n// params.put(\"ead_tokan\", AppConfig.EAD_TOKEN);\n// params.put(\"ead_email\", email);\n params.put(\"npl_token\", \"a\");\n params.put(\"npl_aid\", mediaId);\n params.put(\"npl_id\", userId);\n return params;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", leaderboardEntry.getEmail());\n params.put(\"level_num\", String.valueOf(leaderboardEntry.getLevel_num()));\n params.put(\"score\", String.valueOf(leaderboardEntry.getScore()));\n params.put(\"moves\", String.valueOf(leaderboardEntry.getMoves()));\n params.put(\"time\", leaderboardEntry.getTime());\n return params;\n }",
"public Object[] getParams() {\n\t\treturn iExtendedReason;\n\t}",
"com.google.protobuf.ByteString\n getEnabledBytes();",
"public String getParams() {\r\n\t\treturn this.params;\r\n\t}",
"@Override\n\tpublic Parameter[] getGridSearchParameters() {\n\t\treturn new Parameter[] { kernelCoefficient, kernelDegree, kernelGamma, parameterC, parameterNu };\n\t}",
"Map<String, String> getParameters();",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public boolean getEnabled() {\n return enabled;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Brand_Id\", Brand_Id);\n params.put(\"Brand_Name\", Brand_Name);\n params.put(\"description\", description);\n params.put(\"brand_status\",brand_status);\n params.put(\"reason\", reason);\n params.put(\"Creation_Date\", Creation_Date);\n params.put(\"Updated_Date\", Updated_Date);\n params.put(\"Admin_Id\", Admin_Id);\n\n return params;\n }",
"public String getSalesInstanceReportParameters() {\n return salesInstanceReportParameters;\n }",
"public final SSLParameters getSupportedSSLParameters() {\n return spiImpl.engineGetSupportedSSLParameters();\n }",
"protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}",
"public Parameter[] getParameters() {\n return values;\n }",
"public Map<String, String> getParameters() {\r\n return _parameters;\r\n }",
"public List<ParameterDefinition> getParameterList() {\n if (this.telemetryName != null) {\n TelemetryChartDefinition teleDef = \n this.getTelemetrys().get(telemetryName);\n if (teleDef == null) {\n TelemetryClient client = ProjectBrowserSession.get().getTelemetryClient();\n try {\n teleDef = client.getChartDefinition(this.telemetryName);\n this.getTelemetrys().put(telemetryName, teleDef);\n return teleDef.getParameterDefinition();\n }\n catch (TelemetryClientException e) {\n this.feedback = \"Exception when retrieving Telemetry chart definition: \" + e.getMessage();\n }\n }\n else {\n return teleDef.getParameterDefinition();\n }\n }\n return new ArrayList<ParameterDefinition>();\n }",
"public List getParameterValues() {\r\n\t\treturn parameterValues;\r\n\t}",
"public List<JParameter> getParams() {\n return params;\n }",
"public ArrayList<String> getParameterValues() { return this.params; }",
"public boolean enabled(){\n return enabled;\n }",
"public Parameters getParameters() {\n return parametersReference.get();\n }",
"public List<IGeneratorParameter> getParameters() {\n return null;\n }",
"public ArrayList<ESqlStatementType> getEnabledStatements() {\r\n return enabledStatements;\r\n }",
"public Boolean getbEnable() {\n return bEnable;\n }"
]
| [
"0.7715468",
"0.64735013",
"0.5892701",
"0.58602834",
"0.58536303",
"0.58434945",
"0.579251",
"0.57786477",
"0.5716546",
"0.56985486",
"0.56782514",
"0.5649314",
"0.56337065",
"0.5628194",
"0.56054187",
"0.56034386",
"0.55974185",
"0.55927724",
"0.5586075",
"0.5583779",
"0.5578792",
"0.5567163",
"0.5558528",
"0.55443597",
"0.5538657",
"0.55367756",
"0.55367756",
"0.55367756",
"0.55315024",
"0.5526543",
"0.55255693",
"0.5508538",
"0.5503824",
"0.54959714",
"0.5484337",
"0.5480933",
"0.546568",
"0.5458439",
"0.5450465",
"0.54458004",
"0.54372424",
"0.54222536",
"0.54198885",
"0.54195",
"0.54075277",
"0.54068893",
"0.53993744",
"0.5393379",
"0.53930634",
"0.53893447",
"0.53867644",
"0.5381309",
"0.5374348",
"0.5369686",
"0.5362866",
"0.5360783",
"0.53496903",
"0.53470707",
"0.53439146",
"0.5340457",
"0.5336416",
"0.53258526",
"0.53235173",
"0.5318067",
"0.53134435",
"0.53130484",
"0.53089106",
"0.52978885",
"0.52904904",
"0.52887356",
"0.5278983",
"0.5277186",
"0.52702016",
"0.52661425",
"0.526027",
"0.5256995",
"0.5256583",
"0.5243008",
"0.52315354",
"0.52306086",
"0.5229376",
"0.5225363",
"0.5221985",
"0.5221985",
"0.5215844",
"0.5212272",
"0.52049774",
"0.5202654",
"0.5195394",
"0.5191397",
"0.5189323",
"0.5188963",
"0.51837194",
"0.5180149",
"0.5180093",
"0.5179886",
"0.51798075",
"0.51716167",
"0.51703465",
"0.51665443"
]
| 0.83780783 | 0 |
Returns the parameter names for enablement. | protected Set<String> getEnablementParameterNames() {
return _enablementParameters.keySet();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, YParameter> getEnablementParameters() {\n return _enablementParameters;\n }",
"public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }",
"public Collection<String> getParamNames();",
"public String[] getParameterNames() {\r\n return parameterNames;\r\n }",
"@TestMethod(value=\"testGetParameterNames\")\n public String[] getParameterNames() {\n \tString[] params = new String[3];\n params[0] = \"maxIterations\";\n params[1] = \"lpeChecker\";\n params[2] = \"maxResonStruc\";\n return params;\n }",
"public String getParamDefs() {\n return super.getParamDefs() + \", \" + PlainValueFunction.paramNameTypes;\n }",
"public static Set<String> getRegisteredParameterNames() {\n\n return REGISTERED_PARAMETER_NAMES;\n }",
"public final Iterator<String> parameterNames() {\n return m_parameters.keySet().iterator();\n }",
"public static Set<String> getRegisteredParameterNames() {\n\n\t\treturn REGISTERED_PARAMETER_NAMES;\n\t}",
"public Set<String> getParameterNames() {\n\t\treturn Collections.unmodifiableSet(parameters.keySet());\n\t}",
"@Override\n\t\tpublic Enumeration getParameterNames() {\n\t\t\treturn null;\n\t\t}",
"@TestMethod(value=\"testGetParameterNames\")\n public String[] getParameterNames() {\n String[] params = new String[1];\n params[0] = \"maxIterations\";\n return params;\n }",
"public java.util.Enumeration getInitParameterNames()\n {\n \treturn config.getInitParameterNames();\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.LoadParameter[] getParameterNameValuePairs();",
"public List<String> getParametersLabel() {\n\t\treturn PARAMETERS;\n\t}",
"List<PowreedCommandParameter> getParameters();",
"public Enumeration getInitParameterNames() {\n\t\treturn _initParameters.keys();\n\t}",
"public String[] getParamTypeNames()\n/* */ {\n/* 353 */ return this.parameterTypeNames;\n/* */ }",
"Enumeration getParameterNames();",
"@Override\n\tpublic Enumeration<String> getParameterNames() {\n\t\treturn null;\n\t}",
"public String[] getParameters() {\r\n return parameters;\r\n }",
"String [] getParameters();",
"public String[] getParameters() {\n\t\treturn parameters;\n\t}",
"public String[] getParameters() {\n return parameters;\n }",
"public Enumeration<String> getParaNames() {\n\t\treturn request.getParameterNames();\n\t}",
"public List<Parameter> getParamters() {\r\n return this.lstParameters;\r\n }",
"public Set<String> getPersistentParameterNames() {\r\n\t\treturn getNames(persistentParameters);\r\n\t}",
"public SortedSet<String> getAvailableParameters() {\n if (allAvailableParameters == null) {\n allAvailableParameters = new TreeSet<String>();\n\n try {\n List<String> dataTypeList = new ArrayList<String>();\n dataTypeList.add(dataType);\n Set<String> parameters = DataDeliveryHandlers\n .getParameterHandler()\n .getNamesByDataTypes(dataTypeList);\n if (parameters != null) {\n allAvailableParameters.addAll(parameters);\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the parameter list.\", e);\n }\n }\n return allAvailableParameters;\n }",
"public Set<String> getPersistentParameterNames() {\n\t\treturn Collections.unmodifiableSet(persistentParameters.keySet());\n\t}",
"public final String getKeys() {\n StringBuilder sb = new StringBuilder();\n boolean append = false;\n for (Key key : this.parameters.keySet()) {\n if (append)\n sb.append(\",\");\n sb.append(key);\n append = true;\n }\n return sb.toString();\n }",
"@Override\n public List<ParameterAssignment> getParameters()\n {\n return parameters;\n }",
"@Override\n public String getParameters() {\n return parameters;\n }",
"public String[] getPropertyNames();",
"private void listParameters(JavaSamplerContext context)\n {\n if (getLogger().isDebugEnabled())\n {\n Iterator argsIt = context.getParameterNamesIterator();\n while (argsIt.hasNext())\n {\n String name = (String) argsIt.next();\n getLogger().debug(name + \"=\" + context.getParameter(name));\n }\n }\n }",
"public ParameterList getAdjustableParams();",
"public Set<Parameter> getSearchedParameters() {\n\t\treturn new HashSet<Parameter>(parameterEntries.keySet());\n\t}",
"public Collection<String> getParameterIds();",
"public Set<String> getTemporaryParameterNames() {\n\t\treturn Collections.unmodifiableSet(temporaryParameters.keySet());\n\t}",
"public Set<String> getTemporaryParameterNames() {\r\n\t\treturn getNames(temporaryParameters);\r\n\t}",
"public List<GroupParameter> getParameters();",
"public String[] getParameters() {\r\n return scope != null? scope.getParameters() : null;\r\n }",
"@Override\n protected String getName() {return _parms.name;}",
"@Override\n public List<KParameter> getParameters() {\n return getReflected().getParameters();\n }",
"@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}",
"private void listParameters(String methodName, JavaSamplerContext context) {\n\t\tIterator<String> iter = context.getParameterNamesIterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tString name = iter.next();\n\t\t\tlog.debug(\"inside {}, name {} = {}\",\n\t\t\t\t\tnew Object[] { methodName, name, context.getParameter(name) });\n\t\t}\n\t}",
"public List<IGeneratorParameter> getParameters() {\n return null;\n }",
"public Parameter[] getParameters()\r\n {\r\n return m_params;\r\n }",
"public String getParameters() {\n return this.Parameters;\n }",
"public Variable[] getParameters();",
"public Map<String, List<String>> getParameters() {\n\t\t\treturn parameters;\n\t\t}",
"public Map getParameters();",
"public List<JParameter> getParams() {\n return params;\n }",
"public List<ParameterDefinition> getParameterList() {\n if (this.telemetryName != null) {\n TelemetryChartDefinition teleDef = \n this.getTelemetrys().get(telemetryName);\n if (teleDef == null) {\n TelemetryClient client = ProjectBrowserSession.get().getTelemetryClient();\n try {\n teleDef = client.getChartDefinition(this.telemetryName);\n this.getTelemetrys().put(telemetryName, teleDef);\n return teleDef.getParameterDefinition();\n }\n catch (TelemetryClientException e) {\n this.feedback = \"Exception when retrieving Telemetry chart definition: \" + e.getMessage();\n }\n }\n else {\n return teleDef.getParameterDefinition();\n }\n }\n return new ArrayList<ParameterDefinition>();\n }",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }",
"public Enumeration<String> getParameterNames() {\n if ( isMultipart() ) {\n return this.multipart.getParameterNames();\n }\n else {\n return super.getParameterNames();\n }\n }",
"public String getScriptOfParameters() {\r\n\t\tString str = \"\";\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tstr += var.getName() + \",\";\r\n\t\t}\r\n\t\tif (str.endsWith(\",\")) {\r\n\t\t\tstr = str.substring(0, str.length() - 1);\r\n\t\t}\r\n\t\treturn str;\r\n\t}",
"public List<ModuleArgumentItem> getParams() {\n return params;\n }",
"public Parameters getParameters();",
"String getExampleParameters();",
"java.lang.String getSolverSpecificParameters();",
"IParameterCollection getParameters();",
"public java.lang.Object[] getNamedParams() {\n return namedParams;\n }",
"java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();",
"ParameterList getParameters();",
"public Map<String, Expression> getParameters() {\r\n \t\treturn parameters;\r\n \t}",
"public ArrayList<String> getParameterValues() { return this.params; }",
"public List getParameterValues() {\r\n\t\treturn parameterValues;\r\n\t}",
"public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}",
"public List<Map> getAllParameters() {\n List<Map> allProductParameters = new ArrayList<Map>();\n if (processorParametres != null) allProductParameters.add(processorParametres);\n if (sellerParametres != null) allProductParameters.add(sellerParametres);\n if (storageParametres != null) allProductParameters.add(storageParametres);\n\n return allProductParameters;\n }",
"public Parameter[] getParameters() {\n return values;\n }",
"public String getAllParam() { return this.allParam; }",
"public List<Parameter> getParameter( )\n {\n return _parameter;\n }",
"public Collection<SPParameter> getParameters(){\n return mapOfParameters.values();\n }",
"public ArrayList getParameters() {\n return parameters;\n }",
"String[] getPropertyKeys();",
"public ParameterList getParameters() {\n\t\treturn _parameters;\n\t}",
"public abstract List<String> getPreFacesRequestAttrNames();",
"@LabeledParameterized.Parameters\n public static List<Object[]> parameters() {\n List<Object[]> modes = Lists.newArrayList();\n for (TypeOfEventStore typeOfEventStore : TypeOfEventStore.values()) {\n modes.add(Objects.o(typeOfEventStore));\n }\n return modes;\n }",
"@Override\n public String[] getPropertyNames() {\n final String[] names = new String[this.properties.size()];\n this.properties.keySet().toArray(names);\n return names;\n }",
"java.util.List<gen.grpc.hospital.examinations.Parameter> \n getParameterList();",
"public String getParameterGroupName() {\n return parameterGroupName;\n }",
"public String getParameterName( )\n {\n return _strParameterName;\n }",
"java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();",
"String getParamsAsString();",
"@Override\n\tpublic Annotation[] getParameterAnnotations() {\n\t\treturn new Annotation[]{};\n\t}",
"Map<String, String> getParameters();",
"public List<String> getOptionsNames();",
"public String[] getStatusVariableNames();",
"@Override\n public Collection<Parameter> jaxb_parameters() {\n Collection<jaxb.Parameter> pset = new HashSet<>();\n\n boolean write_quecontrol = has_queue_control;\n boolean write_min_rate = Float.isFinite(min_rate_vph);\n boolean write_max_rate = Float.isFinite(max_rate_vph);\n\n // write has_queue_control\n if(write_quecontrol){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"queue_control\");\n p.setValue(has_queue_control ? \"true\" : \"false\");\n pset.add(p);\n\n jaxb.Parameter p1 = new jaxb.Parameter();\n p1.setName(\"override_threshold\");\n p1.setValue(String.format(\"%.2f\",override_threshold));\n pset.add(p1);\n }\n\n // write min rate\n if(write_min_rate){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"min_rate_vphpl\");\n p.setValue(String.format(\"%.0f\",min_rate_vph));\n pset.add(p);\n }\n\n // write max rate\n if(write_max_rate){\n jaxb.Parameter p = new jaxb.Parameter();\n p.setName(\"max_rate_vphpl\");\n p.setValue(String.format(\"%.0f\",max_rate_vph));\n pset.add(p);\n }\n\n return pset;\n }",
"char[][] getTypeParameterNames();",
"java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> \n getParamsList();",
"java.lang.String getParameterName();",
"public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}",
"public String dumpServiceParameters() {\n String[] arr = this.getParameterArr();\n StringBuffer buf = new StringBuffer();\n buf.append(this.className);\n if (arr.length > 0) buf.append(',');\n\n char ch = ',';\n for (int i=0; i< arr.length; i++) {\n buf.append(arr[i]);\n if (ch == ',') ch ='='; else ch = ',';\n if (i !=arr.length-1) buf.append(ch);\n }\n return buf.toString();\n }",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[1];\n params[0] = maxIterations;\n return params;\n }",
"@Override\n public List<Param<?>> params() {\n return this.settings;\n }",
"public Map<String, List<String>> parameters() {\n return parameters;\n }",
"java.lang.String getEnabled();",
"public List<ConstraintParameter> getParameters() {\n\t\t// TODO send out a copy..not the reference to our actual data\n\t\treturn m_parameters;\n\t}",
"@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}"
]
| [
"0.75663555",
"0.72233063",
"0.71781725",
"0.7104104",
"0.6838347",
"0.6837371",
"0.6817234",
"0.67965287",
"0.67887676",
"0.6712132",
"0.6687627",
"0.6682469",
"0.6613998",
"0.6553053",
"0.6526915",
"0.64719516",
"0.6465228",
"0.6424316",
"0.64104295",
"0.6390538",
"0.63731176",
"0.63571286",
"0.63515085",
"0.6327573",
"0.6304452",
"0.6289597",
"0.6180088",
"0.61749625",
"0.61600745",
"0.6145796",
"0.61256605",
"0.6052161",
"0.6044618",
"0.60330915",
"0.6024921",
"0.59741825",
"0.594419",
"0.59263915",
"0.59202725",
"0.59166205",
"0.59036624",
"0.5893643",
"0.5892929",
"0.58856267",
"0.58836997",
"0.5872162",
"0.58704895",
"0.5861949",
"0.5857608",
"0.5830721",
"0.58197784",
"0.5810318",
"0.5790186",
"0.57835114",
"0.5769443",
"0.5765501",
"0.5755681",
"0.57426625",
"0.57338035",
"0.5722543",
"0.5715654",
"0.57107913",
"0.57107335",
"0.56985795",
"0.5691127",
"0.5684488",
"0.5682869",
"0.56804013",
"0.5676703",
"0.5675632",
"0.56728226",
"0.56712955",
"0.56497025",
"0.5649368",
"0.5639278",
"0.56363297",
"0.56362236",
"0.56349945",
"0.5631556",
"0.56290257",
"0.55967855",
"0.5596463",
"0.5589602",
"0.558283",
"0.5577469",
"0.5571605",
"0.5570453",
"0.55695534",
"0.55682594",
"0.5563586",
"0.55512565",
"0.5541807",
"0.55300087",
"0.55288595",
"0.5527028",
"0.5525788",
"0.55187535",
"0.55093694",
"0.5491555",
"0.54914975"
]
| 0.8754484 | 0 |
These parameters become available to yawl services when a task is enabled. | public void setEnablementParameter(YParameter parameter) {
if (YParameter.getTypeForEnablement().equals(parameter.getDirection())) {
if (null != parameter.getName()) {
_enablementParameters.put(parameter.getName(), parameter);
} else if (null != parameter.getElementName()) {
_enablementParameters.put(parameter.getElementName(), parameter);
}
} else {
throw new RuntimeException("Can only set enablement type param as such.");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initTsnParams(){\n }",
"public CustomEntitiesTaskParameters() {}",
"@Override\r\n\tpublic void PreExecute(TaskConfig config){\n\t}",
"public void updateTaskDetailsInDB(UniverseDefinitionTaskParams taskParams) {\n getRunnableTask().setTaskDetails(RedactingService.filterSecretFields(Json.toJson(taskParams)));\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"todo\");\n params.put(\"task\", task);\n params.put(\"startTime\", startTime);\n params.put(\"endTime\", endTime);\n params.put(\"created_for\", created_for);\n params.put(\"created_by\",created_by);\n\n\n return params;\n }",
"protected void setupParameters() {\n \n \n\n }",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {getTask} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateTaskWithOptionalParameters\" })\n public void testGetTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getTask_mandatory.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/\"\n + connectorProperties.getProperty(\"taskIdOptional\");\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"id\"), apiRestResponse.getBody().getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\"), apiRestResponse.getBody().getString(\n \"createTime\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"status\"), apiRestResponse.getBody()\n .getString(\"status\"));\n }",
"TransportLayerAttributes getConfig();",
"@Override\n public String getInputParameter(String task) {\n try {\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task);\n JSONArray response = new JSONArray();\n if (inputParameters != null) {\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"id\", input.getId());\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n i.put(\"tiid\", task);\n response.add(i);\n }\n return response.toString();\n }\n return null;\n\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public Map<String, YParameter> getEnablementParameters() {\n return _enablementParameters;\n }",
"abstract boolean shouldTaskActivate();",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {createTask} integration test with optional parameters.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testCreateTaskWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_optional.json\");\n final String taskIdOptional = esbRestResponse.getBody().getString(\"id\");\n connectorProperties.setProperty(\"taskIdOptional\", taskIdOptional);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/\" + taskIdOptional;\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(connectorProperties.getProperty(\"textTaskOptional\"), apiRestResponse.getBody().getString(\n \"text\"));\n Assert.assertEquals(connectorProperties.getProperty(\"status\"), apiRestResponse.getBody().getString(\"status\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\").split(\"\\\\.\")[0], apiRestResponse\n .getBody().getString(\"createTime\"));\n }",
"@Test(dependsOnMethods = { \"testCreateTaskWithMandatoryParameters\" },\n description = \"podio {createTask} integration test with optonal parameters.\")\n public void testCreateTaskWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_optional.json\");\n String taskId = esbRestResponse.getBody().getString(\"task_id\");\n \n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"external_id\"),\n apiRestResponse.getBody().getString(\"external_id\"));\n }",
"public void setTask(Task task) {\n this.task = task;\n }",
"protected void setupTask(Task task) {\n }",
"@Override\n public void activateTask(@NonNull String taskId) {\n }",
"void onTaskPrepare();",
"@Test(dependsOnMethods = { \"testCreateTaskWithNegativeCase\" },\n description = \"podio {getTask} integration test with mandatory parameters.\")\n public void testGetTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getTask_mandatory.json\");\n \n String taskId = connectorProperties.getProperty(\"taskId\");\n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n }",
"private void setTaskEnabled(boolean enabled)\n {\n final String funcName = \"setTaskEnabled\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"enabled=%s\", Boolean.toString(enabled));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (enabled)\n {\n TrcTaskMgr.getInstance().registerTask(instanceName, this, TrcTaskMgr.TaskType.STOP_TASK);\n TrcTaskMgr.getInstance().registerTask(instanceName, this, TrcTaskMgr.TaskType.POSTCONTINUOUS_TASK);\n }\n else\n {\n TrcTaskMgr.getInstance().unregisterTask(this, TrcTaskMgr.TaskType.STOP_TASK);\n TrcTaskMgr.getInstance().unregisterTask(this, TrcTaskMgr.TaskType.POSTCONTINUOUS_TASK);\n }\n }",
"@Override\n\tpublic void preExecuteTask(Task t,Map context) {\n\t\tlog.info(\"Task Id:\"+t.getTaskId()+\"--Task Name:\"+t.getTaskName()+\"--Task begin execute!\");\n\t}",
"@Test(dependsOnMethods = { \"testAssignTaskWithNegativeCase\" },\n description = \"podio {updateTask} integration test with optonal parameters.\")\n public void testUpdateTaskWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:updateTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_updateTask_optional.json\");\n String taskId = esbRestResponse.getBody().getString(\"task_id\");\n \n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"external_id\"),\n apiRestResponse.getBody().getString(\"external_id\"));\n }",
"public void setTask(Task inTask){\n punchTask = inTask;\n }",
"public static void printTaskConfiguration(ScheduledTask task){\r\n\t\ttask.printTaskConfiguration();\r\n\t}",
"@Override\n public Map<String, Object> getConfigParams() {\n return null;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"user_id\", globalClass.getId());\n params.put(\"view\", \"getMyTaskRewardsByUser\");\n\n Log.d(TAG, \"getParams: \"+params);\n return params;\n }",
"public String getTask(){\n\treturn task;\n}",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {createTask} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testCreateTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_mandatory.json\");\n final String taskIdMandatory = esbRestResponse.getBody().getString(\"id\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/\" + taskIdMandatory;\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(connectorProperties.getProperty(\"textTaskMandatory\"), apiRestResponse.getBody().getString(\n \"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\").split(\"\\\\.\")[0], apiRestResponse\n .getBody().getString(\"createTime\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"status\"), apiRestResponse.getBody()\n .getString(\"status\"));\n }",
"public TaskDefinition() {\n\t\tthis.started = Boolean.FALSE; // default\n\t\tthis.startTime = new Date(); // makes it easier during task creation\n\t\t// as we have a default date populated\n\t\tthis.properties = new HashMap<>();\n\t}",
"@Override\n public String getOutputParameter(String task) {\n try {\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task);\n JSONArray response = new JSONArray();\n if (outputParameters != null) {\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"id\",output.getId());\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n i.put(\"tiid\", task);\n response.add(i);\n }\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task result enum\n\t */\n\tpublic TaskReturnType Run();\n\n}",
"public void setTask(PickingRequest task) {\n this.task = task;\n }",
"public boolean getShowInTaskInfo() {\n return showInTaskInfo;\n }",
"public TaskProvider getTaskProvider();",
"public void setTask(TaskDTO task) {\n\t\tthis.task = task;\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void onInitializeTasks() {\n }",
"@Override\n public String getTaskType() {\n return \"T\";\n }",
"public void setParameters(String taskID, String taskName, String startTime, String endTime, String priority) {\n\t\t_testCmdUpdate.setParameter(CmdParameters.PARAM_NAME_TASK_ID, taskID);\n\t\t_testCmdUpdate.setParameter(CmdParameters.PARAM_NAME_TASK_SNAME, taskName);\n\t\t_testCmdUpdate.setParameter(CmdParameters.PARAM_NAME_TASK_STARTTIME, startTime);\n\t\t_testCmdUpdate.setParameter(CmdParameters.PARAM_NAME_TASK_ENDTIME, endTime);\n\t\t_testCmdUpdate.setParameter(CmdParameters.PARAM_NAME_TASK_PRIORITY, priority);\n\t}",
"public interface AMParams {\r\n static final String RM_WEB = \"rm.web\";\r\n static final String APP_ID = \"app.id\";\r\n static final String JOB_ID = \"job.id\";\r\n static final String TASK_ID = \"task.id\";\r\n static final String TASK_TYPE = \"task.type\";\r\n static final String ATTEMPT_STATE = \"attempt.state\";\r\n static final String COUNTER_GROUP = \"counter.group\";\r\n static final String COUNTER_NAME = \"counter.name\";\r\n}",
"public void initiateValues(Task task)\r\n {\n int icon;\r\n switch (task.getType()) {\r\n case Task.TASK_DELIVERY:\r\n icon = R.drawable.ic_delivery;\r\n break;\r\n case Task.TASK_PICKUP:\r\n icon = R.drawable.ic_pickup;\r\n break;\r\n default:\r\n icon = R.drawable.ic_delivery;\r\n }\r\n ((Toolbar)findViewById(R.id.package_toolbar)).setNavigationIcon(icon);\r\n\r\n //task fields\r\n TextView number = (TextView)findViewById(R.id.route_id_field);\r\n TextView type = (TextView)findViewById(R.id.task_type_field);\r\n TextView address = (TextView)findViewById(R.id.task_address_field);\r\n TextView timeslot = (TextView)findViewById(R.id.task_timeslot_field);\r\n\r\n number.setText(task.getId()+\"\");\r\n type.setText(((task.getType()==0)?\"Levering\":\"Henting\")+ \" (\" + task.getSize() + \" kolli)\");\r\n address.setText(task.getAddress() + \", \" + task.getZip() + \" \" + task.getCity());\r\n long timeSlotStart = task.getTimeSlotStart();\r\n long timeSlotEnd = task.getTimeSlotEnd();\r\n //set timeslot for package if it exists\r\n if(timeSlotStart != 0 && timeSlotEnd != 0)\r\n timeslot.setText(task.getTimeSlotStartString() + \" - \" + task.getTimeSlotEndString());\r\n\r\n //sender fields\r\n TextView sender_name = (TextView)findViewById(R.id.sender_name_field);\r\n TextView sender_phone = (TextView)findViewById(R.id.sender_phone_field);\r\n TextView sender_address = (TextView)findViewById(R.id.sender_address_field);\r\n\r\n sender_name.setText(task.getSender().getName());\r\n sender_phone.setText(task.getSender().getPhone());\r\n sender_address.setText(task.getSender().getAddress());\r\n\r\n //receiver fields\r\n TextView receiver_name = (TextView)findViewById(R.id.receiver_name_field);\r\n TextView receiver_phone = (TextView)findViewById(R.id.receiver_phone_field);\r\n TextView receiver_address = (TextView)findViewById(R.id.receiver_address_field);\r\n\r\n receiver_name.setText(task.getReceiver().getName());\r\n receiver_phone.setText(task.getReceiver().getPhone());\r\n receiver_address.setText(task.getReceiver().getAddress());\r\n }",
"private void onTaskStateRequest(final TaskEvent event)\n {\n event.setTaskState(task.getSettings());\n }",
"void setParameters() {\n\t\t\n\t}",
"public String getTaskType() { return \"?\"; }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Define if the task is required.\")\n @JsonProperty(JSON_PROPERTY_IS_REQUIRED)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getIsRequired() {\n return isRequired;\n }",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {updateTask} integration test with optional parameters.\", dependsOnMethods = { \"testCreateTaskWithOptionalParameters\" })\n public void testUpdateTaskWithOptionalParameters() throws IOException, JSONException {\n esbRequestHeadersMap.put(\"Action\", \"urn:updateTask\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/\"\n + connectorProperties.getProperty(\"taskIdOptional\");\n RestResponse<JSONObject> apiRestResponseBefore = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_updateTask_optional.json\");\n \n RestResponse<JSONObject> apiRestResponseAfter = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertNotEquals(apiRestResponseBefore.getBody().getString(\"text\"), apiRestResponseAfter.getBody()\n .getString(\"text\"));\n Assert.assertNotEquals(apiRestResponseBefore.getBody().getString(\"status\"), apiRestResponseAfter.getBody()\n .getString(\"status\"));\n \n Assert.assertEquals(connectorProperties.getProperty(\"textTaskUpdated\"), apiRestResponseAfter.getBody()\n .getString(\"text\"));\n Assert.assertEquals(connectorProperties.getProperty(\"statusUpdated\"), apiRestResponseAfter.getBody().getString(\n \"status\"));\n }",
"@Override\n public boolean updateOutputParameter(String task, HashMap outputParameters) {\n boolean response = false;\n try {\n response = dataAccessTosca.updateOutputParameter(task, outputParameters);\n return response;\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return false;\n }",
"public void setUsedInTasks(boolean yesNo) {\n this.usedInTasks = yesNo;\n }",
"public String getTask() {\n return task;\n }",
"public String getTask() {\n return task;\n }",
"public void setTC(boolean value) {\n this.TC = value;\n }",
"public void setupTask(TaskAttemptContext context) throws IOException {\n }",
"TaskDetail(int setTask, Integer setDescription, boolean isBasicControl, boolean canRepeat) {\n task = setTask;\n description = setDescription;\n basicControl = isBasicControl;\n canBeRepeated = canRepeat;\n }",
"public void setTaskList(List<WTask> list)\n\t{\n\t\tthis.taskList = list;\n\t}",
"public Task(Task source) {\n if (source.Application != null) {\n this.Application = new Application(source.Application);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.TaskInstanceNum != null) {\n this.TaskInstanceNum = new Long(source.TaskInstanceNum);\n }\n if (source.ComputeEnv != null) {\n this.ComputeEnv = new AnonymousComputeEnv(source.ComputeEnv);\n }\n if (source.EnvId != null) {\n this.EnvId = new String(source.EnvId);\n }\n if (source.RedirectInfo != null) {\n this.RedirectInfo = new RedirectInfo(source.RedirectInfo);\n }\n if (source.RedirectLocalInfo != null) {\n this.RedirectLocalInfo = new RedirectLocalInfo(source.RedirectLocalInfo);\n }\n if (source.InputMappings != null) {\n this.InputMappings = new InputMapping[source.InputMappings.length];\n for (int i = 0; i < source.InputMappings.length; i++) {\n this.InputMappings[i] = new InputMapping(source.InputMappings[i]);\n }\n }\n if (source.OutputMappings != null) {\n this.OutputMappings = new OutputMapping[source.OutputMappings.length];\n for (int i = 0; i < source.OutputMappings.length; i++) {\n this.OutputMappings[i] = new OutputMapping(source.OutputMappings[i]);\n }\n }\n if (source.OutputMappingConfigs != null) {\n this.OutputMappingConfigs = new OutputMappingConfig[source.OutputMappingConfigs.length];\n for (int i = 0; i < source.OutputMappingConfigs.length; i++) {\n this.OutputMappingConfigs[i] = new OutputMappingConfig(source.OutputMappingConfigs[i]);\n }\n }\n if (source.EnvVars != null) {\n this.EnvVars = new EnvVar[source.EnvVars.length];\n for (int i = 0; i < source.EnvVars.length; i++) {\n this.EnvVars[i] = new EnvVar(source.EnvVars[i]);\n }\n }\n if (source.Authentications != null) {\n this.Authentications = new Authentication[source.Authentications.length];\n for (int i = 0; i < source.Authentications.length; i++) {\n this.Authentications[i] = new Authentication(source.Authentications[i]);\n }\n }\n if (source.FailedAction != null) {\n this.FailedAction = new String(source.FailedAction);\n }\n if (source.MaxRetryCount != null) {\n this.MaxRetryCount = new Long(source.MaxRetryCount);\n }\n if (source.Timeout != null) {\n this.Timeout = new Long(source.Timeout);\n }\n if (source.MaxConcurrentNum != null) {\n this.MaxConcurrentNum = new Long(source.MaxConcurrentNum);\n }\n if (source.RestartComputeNode != null) {\n this.RestartComputeNode = new Boolean(source.RestartComputeNode);\n }\n if (source.ResourceMaxRetryCount != null) {\n this.ResourceMaxRetryCount = new Long(source.ResourceMaxRetryCount);\n }\n }",
"public Parameters getConfigParameters();",
"@Override\n\tpublic void startRequest(int taskId) {\n\n\t}",
"protected Set<String> getEnablementParameterNames() {\n return _enablementParameters.keySet();\n }",
"@Override\n\t\t\tpublic void setTaskName(String name) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void activateFlower(@NonNull String taskId) {\n }",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listTasks} integration test with optional parameters.\", dependsOnMethods = {\n \"testCreateTaskWithOptionalParameters\", \"testCreateTaskWithMandatoryParameters\" })\n public void testListTasksWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listTasks\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listTasks_optional.json\");\n final JSONObject esbItemObject = esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks?page=1&pageSize=1\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n final JSONObject apiItemObject = apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0);\n \n Assert.assertEquals(esbRestResponse.getBody().getInt(\"page\"), 1);\n Assert.assertEquals(apiRestResponse.getBody().getInt(\"page\"), 1);\n \n Assert.assertEquals(esbRestResponse.getBody().getInt(\"pageSize\"), 1);\n Assert.assertEquals(apiRestResponse.getBody().getInt(\"pageSize\"), 1);\n \n Assert.assertEquals(esbItemObject.getString(\"id\"), apiItemObject.getString(\"id\"));\n Assert.assertEquals(esbItemObject.getString(\"text\"), apiItemObject.getString(\"text\"));\n Assert.assertEquals(esbItemObject.getString(\"createTime\"), apiItemObject.getString(\"createTime\"));\n Assert.assertEquals(esbItemObject.getString(\"status\"), apiItemObject.getString(\"status\"));\n }",
"@ApiOperation(value = \"List of tasks\", nickname=\"listTasks\", tags = { \"Tasks\" })\n @ApiImplicitParams({\n @ApiImplicitParam(name = \"name\", dataType = \"string\", value = \"Only return tasks with the given version.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"nameLike\", dataType = \"string\", value = \"Only return tasks with a name like the given name.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"nameLikeIgnoreCase\", dataType = \"string\", value = \"Only return tasks with a name like the given name ignoring case.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"description\", dataType = \"string\", value = \"Only return tasks with the given description.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"priority\", dataType = \"string\", value = \"Only return tasks with the given priority.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"minimumPriority\", dataType = \"string\", value = \"Only return tasks with a priority greater than the given value.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"maximumPriority\", dataType = \"string\", value = \"Only return tasks with a priority lower than the given value.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"assignee\", dataType = \"string\", value = \"Only return tasks assigned to the given user.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"assigneeLike\", dataType = \"string\", value = \"Only return tasks assigned with an assignee like the given value.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"owner\", dataType = \"string\", value = \"Only return tasks owned by the given user.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"ownerLike\", dataType = \"string\", value = \"Only return tasks assigned with an owner like the given value.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"unassigned\", dataType = \"string\", value = \"Only return tasks that are not assigned to anyone. If false is passed, the value is ignored.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"delegationState\", dataType = \"string\", value = \"Only return tasks that have the given delegation state. Possible values are pending and resolved.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"candidateUser\", dataType = \"string\", value = \"Only return tasks that can be claimed by the given user. This includes both tasks where the user is an explicit candidate for and task that are claimable by a group that the user is a member of.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"candidateGroup\", dataType = \"string\", value = \"Only return tasks that can be claimed by a user in the given group.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"candidateGroups\", dataType = \"string\", value = \"Only return tasks that can be claimed by a user in the given groups. Values split by comma.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"ignoreAssignee\", dataType = \"boolean\", value = \"Allows to select a task (typically in combination with candidateGroups or candidateUser) and ignore the assignee (as claimed tasks will not be returned when using candidateGroup or candidateUser)\"),\n @ApiImplicitParam(name = \"involvedUser\", dataType = \"string\", value = \"Only return tasks in which the given user is involved.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"taskDefinitionKey\", dataType = \"string\", value = \"Only return tasks with the given task definition id.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"taskDefinitionKeyLike\", dataType = \"string\", value = \"Only return tasks with a given task definition id like the given value.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"caseInstanceId\", dataType = \"string\", value = \"Only return tasks which are part of the case instance with the given id.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"caseInstanceIdWithChildren\", dataType = \"string\", value = \"Only return tasks which are part of the case instance and its children with the given id.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"caseDefinitionId\", dataType = \"string\", value = \"Only return tasks which are part of a case instance which has a case definition with the given id.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"caseDefinitionKey\", dataType = \"string\", value = \"Only return tasks which are part of a case instance which has a case definition with the given key.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"caseDefinitionKeyLike\", dataType = \"string\", value = \"Only return tasks which are part of a case instance which has a case definition with the given key like the passed parameter.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"caseDefinitionKeyLikeIgnoreCase\", dataType = \"string\", value = \"Only return tasks which are part of a case instance which has a case definition with the given key like the passed parameter.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"planItemInstanceId\", dataType = \"string\", value = \"Only return tasks which are associated with the a plan item instance with the given id\", paramType = \"query\"),\n @ApiImplicitParam(name = \"propagatedStageInstanceId\", dataType = \"string\", value = \"Only return tasks which have the given id as propagated stage instance id\", paramType = \"query\"),\n @ApiImplicitParam(name = \"scopeId\", dataType = \"string\", value = \"Only return tasks which are part of the scope (e.g. case instance) with the given id.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"withoutScopeId\", dataType = \"boolean\", value = \"If true, only returns tasks without a scope id set. If false, the withoutScopeId parameter is ignored.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"subScopeId\", dataType = \"string\", value = \"Only return tasks which are part of the sub scope (e.g. plan item instance) with the given id.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"scopeType\", dataType = \"string\", value = \"Only return tasks which are part of the scope type (e.g. bpmn, cmmn, etc).\", paramType = \"query\"),\n @ApiImplicitParam(name = \"createdOn\", dataType = \"string\",format = \"date-time\", value = \"Only return tasks which are created on the given date.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"createdBefore\", dataType = \"string\",format = \"date-time\", value = \"Only return tasks which are created before the given date.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"createdAfter\", dataType = \"string\",format = \"date-time\", value = \"Only return tasks which are created after the given date.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"dueOn\", dataType = \"string\",format = \"date-time\", value = \"Only return tasks which are due on the given date.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"dueBefore\", dataType = \"string\", format = \"date-time\", value = \"Only return tasks which are due before the given date.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"dueAfter\", dataType = \"string\", format = \"date-time\", value = \"Only return tasks which are due after the given date.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"withoutDueDate\", dataType = \"boolean\", value = \"Only return tasks which do not have a due date. The property is ignored if the value is false.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"excludeSubTasks\", dataType = \"boolean\", value = \"Only return tasks that are not a subtask of another task.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"active\", dataType = \"boolean\", value = \"If true, only return tasks that are not suspended (either part of a process that is not suspended or not part of a process at all). If false, only tasks that are part of suspended process instances are returned.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"includeTaskLocalVariables\", dataType = \"boolean\", value = \"Indication to include task local variables in the result.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"includeProcessVariables\", dataType = \"boolean\", value = \"Indication to include process variables in the result.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"tenantId\", dataType = \"string\", value = \"Only return tasks with the given tenantId.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"tenantIdLike\", dataType = \"string\", value = \"Only return tasks with a tenantId like the given value.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"withoutTenantId\", dataType = \"boolean\", value = \"If true, only returns tasks without a tenantId set. If false, the withoutTenantId parameter is ignored.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"withoutProcessInstanceId\", dataType = \"boolean\", value = \"If true, only returns tasks without a process instance id set. If false, the withoutProcessInstanceId parameter is ignored.\", paramType = \"query\"),\n @ApiImplicitParam(name = \"candidateOrAssigned\", dataType = \"string\", value = \"Select tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups).\", paramType = \"query\"),\n @ApiImplicitParam(name = \"category\", dataType = \"string\", value = \"Select tasks with the given category. Note that this is the task category, not the category of the process definition (namespace within the BPMN Xml).\\n\", paramType = \"query\"),\n @ApiImplicitParam(name = \"categoryIn\", dataType = \"string\", value = \"Select tasks for the given categories. Note that this is the task category, not the category of the process definition (namespace within the BPMN Xml).\\n\", paramType = \"query\"),\n @ApiImplicitParam(name = \"categoryNotIn\", dataType = \"string\", value = \"Select tasks which are not assigned to the given categories. Does not return tasks without categories. Note that this is the task category, not the category of the process definition (namespace within the BPMN Xml).\\n\", paramType = \"query\"),\n @ApiImplicitParam(name = \"withoutCategory\", dataType = \"string\", value = \"Select tasks without a category assigned. Note that this is the task category, not the category of the process definition (namespace within the BPMN Xml).\\n\", paramType = \"query\"),\n })\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Indicates request was successful and the tasks are returned\"),\n @ApiResponse(code = 404, message = \"Indicates a parameter was passed in the wrong format or that delegationState has an invalid value (other than pending and resolved). The status-message contains additional information.\")\n })\n @GetMapping(value = \"/cmmn-runtime/tasks\", produces = \"application/json\")\n public DataResponse<TaskResponse> getTasks(@ApiParam(hidden = true) @RequestParam Map<String, String> requestParams) {\n TaskQueryRequest request = new TaskQueryRequest();\n\n // Populate filter-parameters\n if (requestParams.containsKey(\"name\")) {\n request.setName(requestParams.get(\"name\"));\n }\n\n if (requestParams.containsKey(\"nameLike\")) {\n request.setNameLike(requestParams.get(\"nameLike\"));\n }\n \n if (requestParams.containsKey(\"nameLikeIgnoreCase\")) {\n request.setNameLikeIgnoreCase(requestParams.get(\"nameLikeIgnoreCase\"));\n }\n\n if (requestParams.containsKey(\"description\")) {\n request.setDescription(requestParams.get(\"description\"));\n }\n\n if (requestParams.containsKey(\"descriptionLike\")) {\n request.setDescriptionLike(requestParams.get(\"descriptionLike\"));\n }\n\n if (requestParams.containsKey(\"priority\")) {\n request.setPriority(Integer.valueOf(requestParams.get(\"priority\")));\n }\n\n if (requestParams.containsKey(\"minimumPriority\")) {\n request.setMinimumPriority(Integer.valueOf(requestParams.get(\"minimumPriority\")));\n }\n\n if (requestParams.containsKey(\"maximumPriority\")) {\n request.setMaximumPriority(Integer.valueOf(requestParams.get(\"maximumPriority\")));\n }\n\n if (requestParams.containsKey(\"assignee\")) {\n request.setAssignee(requestParams.get(\"assignee\"));\n }\n\n if (requestParams.containsKey(\"assigneeLike\")) {\n request.setAssigneeLike(requestParams.get(\"assigneeLike\"));\n }\n\n if (requestParams.containsKey(\"owner\")) {\n request.setOwner(requestParams.get(\"owner\"));\n }\n\n if (requestParams.containsKey(\"ownerLike\")) {\n request.setOwnerLike(requestParams.get(\"ownerLike\"));\n }\n\n if (requestParams.containsKey(\"unassigned\")) {\n request.setUnassigned(Boolean.valueOf(requestParams.get(\"unassigned\")));\n }\n\n if (requestParams.containsKey(\"delegationState\")) {\n request.setDelegationState(requestParams.get(\"delegationState\"));\n }\n\n if (requestParams.containsKey(\"candidateUser\")) {\n request.setCandidateUser(requestParams.get(\"candidateUser\"));\n }\n\n if (requestParams.containsKey(\"involvedUser\")) {\n request.setInvolvedUser(requestParams.get(\"involvedUser\"));\n }\n\n if (requestParams.containsKey(\"candidateGroup\")) {\n request.setCandidateGroup(requestParams.get(\"candidateGroup\"));\n }\n\n if (requestParams.containsKey(\"candidateGroups\")) {\n request.setCandidateGroupIn(csvToList(\"candidateGroups\", requestParams));\n }\n\n if (requestParams.containsKey(\"ignoreAssignee\") && Boolean.valueOf(requestParams.get(\"ignoreAssignee\"))) {\n request.setIgnoreAssignee(true);\n }\n\n if (requestParams.containsKey(\"caseDefinitionId\")) {\n request.setCaseDefinitionId(requestParams.get(\"caseDefinitionId\"));\n }\n\n if (requestParams.containsKey(\"caseDefinitionKey\")) {\n request.setCaseDefinitionKey(requestParams.get(\"caseDefinitionKey\"));\n }\n\n if (requestParams.containsKey(\"caseDefinitionKeyLike\")) {\n request.setCaseDefinitionKeyLike(requestParams.get(\"caseDefinitionKeyLike\"));\n }\n\n if (requestParams.containsKey(\"caseDefinitionKeyLikeIgnoreCase\")) {\n request.setCaseDefinitionKeyLikeIgnoreCase(requestParams.get(\"caseDefinitionKeyLikeIgnoreCase\"));\n }\n\n if (requestParams.containsKey(\"caseInstanceId\")) {\n request.setCaseInstanceId(requestParams.get(\"caseInstanceId\"));\n }\n \n if (requestParams.containsKey(\"caseInstanceIdWithChildren\")) {\n request.setCaseInstanceIdWithChildren(requestParams.get(\"caseInstanceIdWithChildren\"));\n }\n\n if (requestParams.containsKey(\"planItemInstanceId\")) {\n request.setPlanItemInstanceId(requestParams.get(\"planItemInstanceId\"));\n }\n\n if (requestParams.containsKey(\"propagatedStageInstanceId\")) {\n request.setPropagatedStageInstanceId(requestParams.get(\"propagatedStageInstanceId\"));\n }\n\n if (requestParams.containsKey(\"scopeId\")) {\n request.setScopeId(requestParams.get(\"scopeId\"));\n }\n \n if (requestParams.containsKey(\"withoutScopeId\") && Boolean.valueOf(requestParams.get(\"withoutScopeId\"))) {\n request.setWithoutScopeId(Boolean.TRUE);\n }\n\n if (requestParams.containsKey(\"subScopeId\")) {\n request.setSubScopeId(requestParams.get(\"subScopeId\"));\n }\n\n if (requestParams.containsKey(\"scopeType\")) {\n request.setScopeType(requestParams.get(\"scopeType\"));\n }\n\n if (requestParams.containsKey(\"createdOn\")) {\n request.setCreatedOn(RequestUtil.getDate(requestParams, \"createdOn\"));\n }\n\n if (requestParams.containsKey(\"createdBefore\")) {\n request.setCreatedBefore(RequestUtil.getDate(requestParams, \"createdBefore\"));\n }\n\n if (requestParams.containsKey(\"createdAfter\")) {\n request.setCreatedAfter(RequestUtil.getDate(requestParams, \"createdAfter\"));\n }\n\n if (requestParams.containsKey(\"excludeSubTasks\")) {\n request.setExcludeSubTasks(Boolean.valueOf(requestParams.get(\"excludeSubTasks\")));\n }\n\n if (requestParams.containsKey(\"taskDefinitionKey\")) {\n request.setTaskDefinitionKey(requestParams.get(\"taskDefinitionKey\"));\n }\n\n if (requestParams.containsKey(\"taskDefinitionKeyLike\")) {\n request.setTaskDefinitionKeyLike(requestParams.get(\"taskDefinitionKeyLike\"));\n }\n\n if (requestParams.containsKey(\"dueDate\")) {\n request.setDueDate(RequestUtil.getDate(requestParams, \"dueDate\"));\n }\n\n if (requestParams.containsKey(\"dueBefore\")) {\n request.setDueBefore(RequestUtil.getDate(requestParams, \"dueBefore\"));\n }\n\n if (requestParams.containsKey(\"dueAfter\")) {\n request.setDueAfter(RequestUtil.getDate(requestParams, \"dueAfter\"));\n }\n\n if (requestParams.containsKey(\"active\")) {\n request.setActive(Boolean.valueOf(requestParams.get(\"active\")));\n }\n\n if (requestParams.containsKey(\"includeTaskLocalVariables\")) {\n request.setIncludeTaskLocalVariables(Boolean.valueOf(requestParams.get(\"includeTaskLocalVariables\")));\n }\n\n if (requestParams.containsKey(\"includeProcessVariables\")) {\n request.setIncludeProcessVariables(Boolean.valueOf(requestParams.get(\"includeProcessVariables\")));\n }\n\n if (requestParams.containsKey(\"tenantId\")) {\n request.setTenantId(requestParams.get(\"tenantId\"));\n }\n\n if (requestParams.containsKey(\"tenantIdLike\")) {\n request.setTenantIdLike(requestParams.get(\"tenantIdLike\"));\n }\n\n if (requestParams.containsKey(\"withoutTenantId\") && Boolean.valueOf(requestParams.get(\"withoutTenantId\"))) {\n request.setWithoutTenantId(Boolean.TRUE);\n }\n \n if (requestParams.containsKey(\"withoutProcessInstanceId\") && Boolean.valueOf(requestParams.get(\"withoutProcessInstanceId\"))) {\n request.setWithoutProcessInstanceId(Boolean.TRUE);\n }\n\n if (requestParams.containsKey(\"candidateOrAssigned\")) {\n request.setCandidateOrAssigned(requestParams.get(\"candidateOrAssigned\"));\n }\n\n if (requestParams.containsKey(\"category\")) {\n request.setCategory(requestParams.get(\"category\"));\n }\n\n if (requestParams.containsKey(\"withoutCategory\") && Boolean.valueOf(requestParams.get(\"withoutCategory\"))) {\n request.setWithoutCategory(Boolean.TRUE);\n }\n\n if (requestParams.containsKey(\"categoryIn\")) {\n request.setCategoryIn(csvToList(\"categoryIn\", requestParams));\n }\n\n if (requestParams.containsKey(\"categoryNotIn\")) {\n request.setCategoryNotIn(csvToList(\"categoryNotIn\", requestParams));\n }\n\n return getTasksFromQueryRequest(request, requestParams);\n }",
"@Test(dependsOnMethods = { \"testIncompleteTaskWithNegativeCase\" },\n description = \"podio {listTasks} integration test with optional parameters.\")\n public void testListTaskskWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listTasks\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listTasks_optional.json\");\n \n String esbResponseArrayString = esbRestResponse.getBody().getString(\"output\");\n JSONArray esbResponseArray = new JSONArray(esbResponseArrayString);\n JSONObject esbObject = esbResponseArray.getJSONObject(0).getJSONObject(\"responsible\");\n \n String apiEndPoint =\n apiUrl + \"/task?grouping=created_by&created_by=user:\"\n + connectorProperties.getProperty(\"userId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n String apiResponseArrayString = apiRestResponse.getBody().getString(\"output\");\n JSONArray apiResponseArray = new JSONArray(apiResponseArrayString);\n JSONObject apiObject = apiResponseArray.getJSONObject(0).getJSONObject(\"responsible\");\n \n Assert.assertEquals(esbResponseArray.length(), apiResponseArray.length());\n Assert.assertEquals(esbObject.getString(\"user_id\"), apiObject.getString(\"user_id\"));\n Assert.assertEquals(esbObject.getString(\"profile_id\"), apiObject.getString(\"profile_id\"));\n }",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listTasks} integration test with mandatory parameters.\", dependsOnMethods = {\n \"testCreateTaskWithOptionalParameters\", \"testCreateTaskWithMandatoryParameters\" })\n public void testListTasksWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listTasks\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listTasks_mandatory.json\");\n final JSONObject esbItemObject = esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n final JSONObject apiItemObject = apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0);\n \n Assert.assertEquals(esbRestResponse.getBody().getInt(\"totalItems\"), apiRestResponse.getBody().getInt(\n \"totalItems\"));\n Assert.assertEquals(esbItemObject.getString(\"id\"), apiItemObject.getString(\"id\"));\n Assert.assertEquals(esbItemObject.getString(\"text\"), apiItemObject.getString(\"text\"));\n Assert.assertEquals(esbItemObject.getString(\"createTime\"), apiItemObject.getString(\"createTime\"));\n Assert.assertEquals(esbItemObject.getString(\"status\"), apiItemObject.getString(\"status\"));\n }",
"public boolean getUsedInTasks() {\n return usedInTasks;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"privacy\");\n params.put(\"flag\", switch_value);\n params.put(\"email\", email);\n return params;\n }",
"public void setShowInTaskInfo(boolean show) {\n this.showInTaskInfo = show;\n }",
"@Override\n public void startTask(TrcRobot.RunMode runMode)\n {\n }",
"@Override\r\n\tpublic void PostExecute(TaskConfig config){\n\t}",
"@Override\r\n public void generateTasks() {\r\n int tasks = Integer.parseInt(this.getProperty(\"numTask\", \"1000\"));\r\n setNumOfTasks(tasks);\r\n //TODO:fixed port here !!!! need to change!!!\r\n serverPort = Integer.parseInt(this.getProperty(\"reqServerPort\", \"5560\")); \r\n PROC_MAX = Integer.parseInt(this.getProperty(\"reqServerMaxConcurrentClients\",\"10\"));\r\n location = this.getProperty(\"location\", \"rutgers\");\r\n energyplusPropertyFile = this.getProperty(\"energyplusTemplate\", \"energyplus.property\");\r\n \r\n winnerTakeAll = Boolean.parseBoolean(this.getProperty(\"winnerTakeAll\",\"true\"));\r\n jobDistributionMap = new HashMap<Integer,Integer>();\r\n copyJobDistributionMap = new HashMap<Integer,Integer>();\r\n //System.out.println(\"energyplusPropertyFile:\"+energyplusPropertyFile);\r\n \r\n initInfoSystem();\r\n initDistributionSystem();\r\n startFedServer();\r\n }",
"public void setRequiredParam(boolean requiredParam) {\n this.isRequiredParam = requiredParam;\n }",
"public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }",
"public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }",
"@Override\n public void taskStarting() {\n\n }",
"int getTask() {\n return task;\n }",
"public boolean hasTaskId() {\n return fieldSetFlags()[23];\n }",
"public ServiceTaskExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\n\tpublic void initTask() {\n\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\tif(rankInfo!=null){\n\t\t\tgetTask().getTaskInfo().setProcess((int)rankInfo.getSoul());\n\t\t}\n\t}",
"public void setTaskId(UUID taskId) {\n this.taskId = taskId;\n }",
"public void setTaskInstance(Task taskInstance) {\n\t\tthis.taskInstance = taskInstance;\n\t}",
"public void setTaskName(String name) {\n\r\n\t}",
"public boolean allParametersForAdvanceAccountingLinesSet() {\n // not checking the object code because that will need to be set no matter what - every advance accounting line will use that\n return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&\n !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));\n }",
"public ParameterData(int taskNumber) {\n this.taskNumber = taskNumber;\n description = null;\n dateTime = null;\n matchDate = null;\n filterString = null;\n timeSearch = null;\n }",
"@Override\r\n\tpublic void setTaskName(String name) {\n\r\n\t}",
"final void setAuthentication(boolean required)\r\n {\r\n requires_AUT = required;\r\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", _phoneNo);\n params.put(\"token\", token);\n params.put(\"role\", String.valueOf(pref.getResposibility()));\n return params;\n }",
"public void setTaskName(String taskName) {\r\n\t\tthis.taskName=taskName;\r\n\t}",
"public static String getTaskConfiguration(ScheduledTask task){\r\n\t\treturn task.getTaskConfiguration();\r\n\t}",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public void completeTask(Long taskId, Map<String, Object> outboundTaskVars, String userId, boolean disposeKsession) {\n TaskServiceSession taskSession = null;\n try {\n taskSession = taskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n long pInstanceId = taskObj.getTaskData().getProcessInstanceId();\n if(taskObj.getTaskData().getStatus() != Status.InProgress) {\n log.warn(\"completeTask() task with following id will be changed to status of InProgress: \"+taskId);\n taskSession.taskOperation(Operation.Start, taskId, userId, null, null, null);\n eventSupport.fireTaskStarted(taskId, userId);\n }\n \n if(outboundTaskVars == null)\n outboundTaskVars = new HashMap<String, Object>(); \n \n //~~ Nick: intelligent mapping the task input parameters as the results map\n // that said, copy the input parameters to the result map\n Map<String, Object> newOutboundTaskVarMap = null;\n if (isEnableIntelligentMapping()) {\n long documentContentId = taskObj.getTaskData().getDocumentContentId();\n if(documentContentId == -1)\n throw new RuntimeException(\"completeTask() documentContent must be created with addTask invocation\");\n \n // 1) constructure a purely empty new HashMap, as the final results map, which will be mapped out to the process instance\n newOutboundTaskVarMap = new HashMap<String, Object>();\n // 2) put the original input parameters first\n newOutboundTaskVarMap.putAll(populateHashWithTaskContent(documentContentId, \"documentContent\"));\n // 3) put the user modified into the final result map, replace the original values with the user modified ones if any\n newOutboundTaskVarMap.putAll(outboundTaskVars);\n } //~~ intelligent mapping\n else {\n newOutboundTaskVarMap = outboundTaskVars;\n }\n \n ContentData contentData = this.convertTaskVarsToContentData(newOutboundTaskVarMap, null);\n taskSession.taskOperation(Operation.Complete, taskId, userId, null, contentData, null);\n eventSupport.fireTaskCompleted(taskId, userId);\n \n StringBuilder sBuilder = new StringBuilder(\"completeTask()\");\n this.dumpTaskDetails(taskObj, sBuilder);\n \n // add TaskChangeDetails to outbound variables so that downstream branches can route accordingly\n TaskChangeDetails changeDetails = new TaskChangeDetails();\n changeDetails.setNewStatus(Status.Completed);\n changeDetails.setReason(TaskChangeDetails.NORMAL_COMPLETION_REASON);\n changeDetails.setTaskId(taskId);\n newOutboundTaskVarMap.put(TaskChangeDetails.TASK_CHANGE_DETAILS, changeDetails);\n \n kSessionProxy.completeWorkItem(taskObj.getTaskData().getWorkItemId(), newOutboundTaskVarMap, pInstanceId, sessionId);\n \n if(disposeKsession)\n kSessionProxy.disposeStatefulKnowledgeSessionAndExtras(taskObj.getTaskData().getProcessSessionId());\n }catch(org.jbpm.task.service.PermissionDeniedException x) {\n rollbackTrnx();\n throw x;\n }catch(RuntimeException x) {\n rollbackTrnx();\n if(x.getCause() != null && (x.getCause() instanceof javax.transaction.RollbackException) && (x.getMessage().indexOf(\"Could not commit transaction\") != -1)) {\n String message = \"completeTask() RollbackException thrown most likely because the following task object is dirty : \"+taskId;\n log.error(message);\n throw new PermissionDeniedException(message);\n }else {\n throw x;\n }\n }catch(Exception x) {\n throw new RuntimeException(x);\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }",
"void refreshTaskInformation();",
"@Override\n public Class<? extends Task> taskClass() {\n return AmpoolSourceTask.class;\n }",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"Task(String n, int s, int c, boolean f,\n\t\t String m, int w)\n\t\t{\n\t\t\tmaster = m;\n\t\t\tweight = w;\n\n\t\t\tname = n;\n\t\t\ts_reqt = s;\n\t\t\tcmb_rec = c;\n\t\t\tfblock = f;\n\t\t}",
"PropertiesTask setProperties( Properties properties );",
"public void setupTask() {\n\t\tif (!hasInternetConnection()) {\n\t\t\tdlgNoInet.show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsetupMessageHandler();\n\t\t\n\t\t// Activate text box if user is logged in.\n\t\tString userid = checkLogin();\n\t\tLog.d(\"TIMER\", \"User logged in: \" + userid);\n\t\tif (userid != null && userid.length() > 0 && etMessage != null) {\n\t\t\tsetupSendMessageListener();\n\t\t\tetMessage.setEnabled(true);\n\t\t\thideVirtualKeyboard();\n\t\t}\n\t\t\n\t\t// Setup the message cursor object.\n\t\tsetupMessageCursor();\n\n\t\t// Start message listener if base url is set.\n\t\tstartMessageListener();\n\t}",
"protected TaskFlow( ) { }",
"private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }",
"public boolean hasTaskId() {\n return fieldSetFlags()[9];\n }",
"public Task getTask() { return task; }",
"public interface ITask extends PropertyChangeListener{\n\tvoid execute();\n\tvoid interrupt();\n\tboolean toBeRemoved();\n\n\t//Using update tick\n\tboolean updateTick();\n\n\t//Using time\n\t//long getWaittime();\n\t//long getEndtime();\n\n\n}"
]
| [
"0.5671398",
"0.56510746",
"0.5612066",
"0.5500709",
"0.5484891",
"0.5473475",
"0.5435301",
"0.54311365",
"0.5396615",
"0.53623444",
"0.5327999",
"0.5304106",
"0.5301988",
"0.52856183",
"0.52555025",
"0.52479553",
"0.52270925",
"0.52217823",
"0.52115923",
"0.5167247",
"0.5107494",
"0.50918734",
"0.50914025",
"0.5083111",
"0.50772125",
"0.5070945",
"0.50585043",
"0.5057409",
"0.50565237",
"0.50418866",
"0.5037467",
"0.5036356",
"0.5027353",
"0.5021611",
"0.5011242",
"0.50080323",
"0.5003867",
"0.5000008",
"0.49855888",
"0.4979131",
"0.49759635",
"0.49683195",
"0.49614203",
"0.49553698",
"0.49388665",
"0.49378884",
"0.4936375",
"0.4936375",
"0.49284106",
"0.49241218",
"0.4922644",
"0.49212205",
"0.49054134",
"0.48982468",
"0.48909414",
"0.48870972",
"0.48824996",
"0.48808888",
"0.48775607",
"0.4873551",
"0.4866113",
"0.48636234",
"0.48426244",
"0.4841019",
"0.48369884",
"0.48299742",
"0.48271906",
"0.48263717",
"0.4825071",
"0.4822552",
"0.4822552",
"0.48223236",
"0.48074067",
"0.48065722",
"0.48052892",
"0.48029",
"0.48021138",
"0.4801758",
"0.48001504",
"0.47979158",
"0.47916555",
"0.47899017",
"0.47884285",
"0.4787035",
"0.4787023",
"0.47836182",
"0.4782032",
"0.4779799",
"0.47784996",
"0.47704598",
"0.47704598",
"0.47704598",
"0.47704598",
"0.47679657",
"0.47658837",
"0.47527358",
"0.47481182",
"0.47408548",
"0.47403437",
"0.47371554",
"0.4734753"
]
| 0.0 | -1 |
write your code here | public static void main(String[] args) throws Exception {
int[] i = {1,2,3,4,4};
List<String> l = Files.readAllLines(Paths.get("C:\\Temp\\a.txt"));
for (String s:l)
System.out.println(s);
String[] s = {"aaa", "bbb", "ccc"};
for (String str:s)
System.out.println(str);
try (InputStream is = new FileInputStream("C:\\Temp\\pic.jpeg");
OutputStream os = new FileOutputStream("C:\\Temp\\pic2.jpeg");
MyAutoClosable mac = new MyAutoClosable()) {
int val;
byte[] b = new byte[10];
while ((val = is.read(b)) > 0){
os.write(b, 0, val);
System.out.print(b);
}
}
catch (FileNotFoundException fnfe) {
throw fnfe;
}
System.out.print("done");
Base.print();
Child.print();
(new Base()).printObj();
(new Child()).printObj();
} | {
"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 |
TODO Autogenerated method stub | @Override
public void run() {
super.run();
try {
// 循环等待对话
while (!interrupted()) {
readStr = readString();
type = getXmlType(readStr);// 解析类型
actionType(type);// 根据类型做出反应
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"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 |
FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULE, RequestMethod.POST); | @Override
public void mySchedule(String date) {
FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);
request.add("username", application.getSystemUtils().getDefaultUsername());
request.add("token", application.getSystemUtils().getToken());
request.add("date", date);
request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());
request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);
request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));
addQueue(MethodCode.EVENT_MYSCHEDULE, request);
// startQueue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}",
"public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}",
"public interface ApiService {\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_userLogin\")\n Call<LoginBean> login(@Field(\"username\") String userName, @Field(\"password\") String psw);\n\n\n @POST(\"D{ealer_estateLis}t\")\n Call<NewListBean> newList(@Path(\"ealer_estateLis\") String replaceableUrl);\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_estateDetail\")\n Call<SecondHandListBean> getSecondList(@Field(\"project_key\") String key);\n\n}",
"public interface WebRequests {\n\n\n\n @POST(Constants.API+Constants.SIGN_IN)\n Call<JsonObject> signin(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n\n @POST(Constants.API+Constants.SIGN_UP)\n Call<JsonObject> signup(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n @POST(Constants.API+Constants.VERIFYOTP)\n Call<JsonObject> verifyOtp(@Body JsonObject task);\n\n// {\n// \"user_mobile_ver_code\":\"1234\",\n// \"access_token\": \"57b6a4e15f9fc\"\n// }\n\n @POST(Constants.API+Constants.GET_CITY)\n Call<JsonObject> get_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.GET_VERIFYDEVICEID)\n Call<JsonObject> get_verify_deviceId(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.SAVE_CITY)\n Call<JsonObject> save_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n// \"user_city\":\"Bangalore\"\n// }\n\n @POST(Constants.API+Constants.GET_BRANDS)\n Call<JsonObject> getBrands(@Body JsonObject task);\n// {\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n\n @POST(Constants.API+Constants.GET_CITYMARKET)\n Call<JsonObject> getCityMarket(@Body JsonObject task);\n\n// 1.Request( for all citymarketlist):\n// {\n// \"city_id\":\"57a1c61edf3e78293ea41087\"\n// }\n\n// 2.Request(citymarket list of perticular category):\n// {\n// \"city_id\":\"57b6a735830f09cd1d59158f\",\n// \"category_id\":\"57b5ab6166724dec7409fff0\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST)\n Call<JsonObject> getShopList(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST_SEARCH)\n Call<JsonObject> getShopListBySearch(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n @POST(Constants.API+Constants.GET_SHOPDETAILS)\n Call<JsonObject> getShopDetails(@Body JsonObject task);\n\n// {\n// \"merchant_id\":\"57b6f746fbb597ba108b4568\"\n// }\n//\n//\n @POST(Constants.API+Constants.GET_SUBCATEGORYLIST)\n Call<JsonObject> getSubCategories(@Body JsonObject task);\n//\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\"\n// }\n\n @POST(Constants.API+Constants.GET_PRODUCTLIST)\n Call<JsonObject> getProductList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_SOCKETID)\n Call<JsonObject> update_socket(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_LIST)\n Call<JsonObject> chat_list(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_VIEW)\n Call<JsonObject> chat_view(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.DELETE_ADDRESS)\n Call<JsonObject> deleteAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.ADD_ADDRESS)\n Call<JsonObject> addAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n\n @POST(Constants.API+Constants.UPDATE_ADDRESS)\n Call<JsonObject> updateAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.GET_ADDRESS)\n Call<JsonObject> getAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_OFFERS)\n Call<JsonObject> getOffers(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY)\n Call<JsonObject> getOrdersList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.CREATE_ORDERS)\n Call<JsonObject> createOrders(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_PROFILE)\n Call<JsonObject> updateProfile(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.UPDATE_TRANSACTIONID)\n Call<JsonObject> updateTransactionId(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CANCEL_ORDER)\n Call<JsonObject> cancelOrder(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY_BY_MERCHANT)\n Call<JsonObject> getOrdersMerchantList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n}",
"@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }",
"@FormUrlEncoded\n @POST(Service.PATH_MASTER_TIME_PLAN_BY_DATE)\n Call<ApiTimePlanObject> postMasterTimePlanByDate(\n @Field(\"UserId\") int userId,\n @Field(\"DateTimeSelect\") String Date\n );",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"@FormUrlEncoded\n @POST(Service.PATH_TIME_PLAN_BY_DATE)\n Call<ApiTimePlanByDateObject> postTimePlanByDate(\n @Field(\"UserId\") int doctorId,\n @Field(\"DateTimeSelect\") String date\n );",
"public interface ArkadasEkleServis {\n @POST(\"/api/PostArkadasEkle\")\n Call<ArkadasEkleModelCB> arkadasekleServis(@Body ArkadasEkleModel arkadasEkleModel);\n}",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"void request(RequestParams params);",
"public interface RegisterService {\n @POST(\"register.php\")\n Call<RegisterResponse>getRegisterResponse(@Body RegisterForm registerForm);\n}",
"public void addTimer(){\n RequestQueue rq = Volley.newRequestQueue(getApplicationContext());\n\n StringRequest request = new StringRequest(Request.Method.POST, URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //display\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error)\n {\n error.printStackTrace();\n }\n }) {\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\";\n }\n\n @Override\n public byte[] getBody() {\n Gson gson = new Gson();\n String json = gson.toJson(dateStart);\n json = json.concat(\",\").concat(gson.toJson(dateEnd));\n\n try{ return (json).getBytes(\"utf-8\"); }\n catch (UnsupportedEncodingException e) { return null; }\n }\n };\n rq.add(request);\n }",
"public interface ApiInterface {\n @POST(\"scarecrow/json.php\")\n Call<Data> getUserValidity(@Body User userLoginCredential);\n\n}",
"com.uzak.inter.bean.test.TestRequest.TestBeanRequest getRequest();",
"public interface RestService {\n\n @POST(\"/ComenziRestaurant/task3\")\n public void sendComanda(@Body Comanda comanda, Callback<Integer> callback);\n\n @GET(\"/ComenziRestaurant/task1\")\n public void getProduse(Callback<Collection<Produs>> callback);\n\n @GET(\"/ComenziRestaurant/task2\")\n public void getMese(Callback<Collection<Masa>> callback);\n\n\n\n\n}",
"public void addTicket(){\n RequestQueue rq = Volley.newRequestQueue(getApplicationContext());\n\n StringRequest request = new StringRequest(Request.Method.POST, ticketURL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //display\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error)\n {\n error.printStackTrace();\n }\n }) {\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\";\n }\n\n @Override\n public byte[] getBody() {\n Gson gson = new Gson();\n String json = gson.toJson(1);\n\n try{ return (json).getBytes(\"utf-8\"); }\n catch (UnsupportedEncodingException e) { return null; }\n }\n };\n rq.add(request);\n }",
"private static void makeFvRequest(String fvReqMethod, String fvReqJsonString){\n\t\tSystem.out.println(fvReqJsonString);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//print request\n\t\tFlowvisorApiCall fvApiCall = new FlowvisorApiCall(FV_URI);\n\n\t\tString fvResponse = null;\n\t\tfvApiCall.sendFvRequest(fvReqJsonString);\n\t\tfvResponse = fvApiCall.getFvResponse();\n\n\t\tif (fvResponse != null){\n\t\t\tSystem.out.println(fvResponse+\"\\n\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//print response\n\t\t\tJsonObject fvResponceJsonObj = JsonObject.readFrom( fvResponse );\t\n\n\t\t\tif(fvResponceJsonObj.get(\"error\") != null){\n\t\t\t\tif(fvResponceJsonObj.get(\"error\").isObject()){\n\t\t\t\t\tJsonObject errorJsonObj = fvResponceJsonObj.get(\"error\").asObject();\n\t\t\t\t\tSystem.err.println(\"Flowvisor Request \\\"\"+fvReqMethod+\"\\\" unsatisfied\");\n\t\t\t\t\tSystem.err.println(\"\\tMessage from FV :\"+errorJsonObj.get(\"message\").asString());\n\t\t\t\t\tSystem.err.println(\"\\t Received Error Code :\"+fvErrorCodeMap.get(errorJsonObj.get(\"code\").asInt())+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(SLICE_CREATE_CHECK){\n\t\t\t\tswitch(fvReqMethod){\n\t\t\t\tcase \"add-slice\": \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// If new slice added, list-slices\n\t\t\t\t\tJsonObject listSlicesJsonReq= new JsonObject();\n\t\t\t\t\tlistSlicesJsonReq.add(\"id\",1).add(\"method\", \"list-slices\").add(\"jsonrpc\", \"2.0\");\n\t\t\t\t\tmakeFvRequest(\"list-slices\", listSlicesJsonReq.toString());\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase \"add-flowspace\": \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// If new flowspace is added, list-flowspace\n\t\t\t\t\tJsonObject listFlowspacesJsonReq= new JsonObject();\n\t\t\t\t\tlistFlowspacesJsonReq.add(\"id\",2).add(\"method\", \"list-flowspace\").add(\"params\", new JsonObject()).add(\"jsonrpc\", \"2.0\");\n\t\t\t\t\tmakeFvRequest(\"list-flowspace\", listFlowspacesJsonReq.toString());\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tdefault:\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse System.err.println(\"CreateSliceForReq.makeFvRequest: \\\"null\\\" respond from flowvisor\");\n\n\n\t}",
"public void request() {\n }",
"public interface MpesaApiService {\n\n @POST(\"mpesasearch\")\n Call<MpesaResponse> sendRequest(@Body MpesaTranscodeRequest transcodeRequest);\n}",
"protected Response createInsertingrequest(String urlFA,JSONObject jsonObject,HttpBasicAuthFilter auth,String type){\n ClientConfig config = new ClientConfig();\n Client client = ClientBuilder.newClient(config);\n WebTarget target;\n target = client.target(getBaseURI(urlFA));\n //Response plainAnswer =null; \n target.register(auth);\n \n Invocation.Builder invocationBuilder =target.request(MediaType.APPLICATION_JSON);\n MultivaluedHashMap<String,Object> mm=new MultivaluedHashMap<String,Object>();\n mm.add(\"content-type\", MediaType.APPLICATION_JSON);\n mm.add(\"Accept\", \"application/json\");\n mm.add(\"charsets\", \"utf-8\");\n invocationBuilder.headers(mm);\n //preliminary operation of request creation ended\n Response plainAnswer=null;\n switch(type){\n case \"post\":\n {\n plainAnswer=invocationBuilder\n .post(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON_TYPE));\n break;\n }\n case \"put\":\n {\n plainAnswer =invocationBuilder\n .put(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON));\n break;\n }\n }\n return plainAnswer;\n }",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"private static HttpUriRequest doPostMethod(String url, Map<String, String> param) throws UnsupportedEncodingException {\n HttpPost httpPost = new HttpPost(url);\n httpPost.setConfig(requestConfig);\n // 创建参数列表\n if (param != null) {\n List<NameValuePair> paramList = new ArrayList<>();\n for (String key : param.keySet()) {\n paramList.add(new BasicNameValuePair(key, param.get(key)));\n }\n // 模拟表单\n UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList, \"utf-8\");\n httpPost.setEntity(entity);\n }\n return httpPost;\n }",
"public static void main(String[] args) {\n\t String jsonInput = \"{\\\"name\\\":\\\"AAAA\\\",\\\"type\\\":\\\"admin\\\"}\";\r\n//\t\t ClientConfig clientConfig = new ClientConfig();\r\n//\t\t\tClient client = ClientBuilder.newClient(clientConfig);\r\n//\t\t\tURI serviceURI = UriBuilder.fromUri(url).build();\r\n//\t\t\tWebTarget webTarget = client.target(serviceURI);\r\n//\t\t\tSystem.out.println(webTarget.path(\"getRecords\").request()\r\n//\t\t\t\t\t.accept(MediaType.APPLICATION_JSON).get(String.class).toString());\r\n\t\t\r\n\t\tClient client = ClientBuilder.newClient( new ClientConfig());\r\n\t\tWebTarget webTarget = client.target(\"http://localhost:9000/webservices\").path(\"update\").path(\"Report\");\r\n\t\t\r\n\r\n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\r\n\t\tResponse response = invocationBuilder.post(Entity.entity(jsonInput, MediaType.APPLICATION_JSON));\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\tSystem.out.println(response.getStatus());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public interface QMApi {\n @GET(\"10001/getProvinceCityAreaList\")\n Call<BaseResModel<AddressEntity>> getProvinceCityAreaList(@Query(\"localVersion\") String localVersion);\n\n @POST(\"10001/qmLogin\")\n Call<BaseResModel<UserInfoEntity>> login(@Body RequestBody jsonBody);\n}",
"public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }",
"public static void post(String endpointURL, String jsonBody) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n RequestBody body = RequestBody.create(JSON, jsonBody);\n Request request = new Request.Builder().url(HOST + endpointURL).post(body).build();\n\n try {\n Response response = client.newCall(request).execute();\n System.out.println(response);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void accessWebService() {\n\r\n JsonReadTask task = new JsonReadTask();\r\n // passes values for the urls string array\r\n task.execute(new String[] { url });\r\n }",
"public interface NetService {\n\n\n @FormUrlEncoded\n @POST(\"getcode\")\n Call<CodeResponse> getCode(@Field(\"tel\") String tel);\n\n @FormUrlEncoded\n @POST(\"setinfo\")\n Call<UserInfo> updateUserInfo(@FieldMap() Map appNo);\n\n @FormUrlEncoded\n @POST(\"setmode\")\n Call<ResultData> setMode(@Field(\"tel\") String tel, @Field(\"up\")String up, @Field(\"down\")String down, @Field(\"time\")String time);\n\n @FormUrlEncoded\n @POST(\"getMode\")\n Call<List<ModelData>> getMode(@Field(\"tel\")String tel);\n\n @FormUrlEncoded\n @GET(\"getnews\")\n Call<BaseResponse> getNews();\n\n\n}",
"void sendJson(Object data);",
"public JsonServlet() {\n\t\tsuper();\n\t}",
"public interface RequestServer {\n\n @GET(\"caseplatform/mobile/system-eventapp!register.action\")\n Call<StringResult> register(@Query(\"account\") String account, @Query(\"password\") String password, @Query(\"name\") String name,\n @Query(\"mobilephone\") String mobilephone, @Query(\"identityNum\") String identityNum);\n\n @GET(\"caseplatform/mobile/login-app!login.action\")\n Call<String> login(@Query(\"name\") String username, @Query(\"password\") String password);\n\n @GET(\"caseplatform/mobile/system-eventapp!setUserPassword.action\")\n Call<StringResult> setPassword(@Query(\"account\") String account,\n @Query(\"newPassword\") String newPassword,\n @Query(\"oldPassword\") String oldPassword);\n\n @GET(\"caseplatform/mobile/system-eventapp!getEventInfo.action\")\n Call<Event> getEvents(@Query(\"account\") String account, @Query(\"eventType\") String eventType);\n\n @GET(\"caseplatform/mobile/system-eventapp!reportEventInfo.action \")\n Call<EventUpload> reportEvent(\n @Query(\"account\") String account,\n @Query(\"eventType\") String eventType,\n @Query(\"address\") String address,\n @Query(\"eventX\") String eventX,\n @Query(\"eventY\") String eventY,\n @Query(\"eventMs\") String eventMs,\n @Query(\"eventMc\") String eventMc,\n @Query(\"eventId\") String eventId,\n @Query(\"eventClyj\") String eventClyj,\n @Query(\"eventImg\") String eventImg,\n @Query(\"eventVideo\") String eventVideo,\n @Query(\"eventVoice\") String eventVoice\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!getUserInfo.action\")\n Call<UserInfo> getUserInfo(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @GET(\"caseplatform/mobile/system-eventapp!getOrgDataInfo.action\")\n Call<OrgDataInfo> getOrgData(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @Multipart\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Part(\"video\") File video, @Part(\"videoFileName\") String videoFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Query(\"audio\") File audio, @Query(\"audioFileName\") String audioFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Query(\"img\") File img, @Query(\"imgFileName\") String imgFileName);\n\n @POST(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/system-eventapp!jobgps.action\")\n Call<StringResult> setCoordinate(@Query(\"account\") String account,\n @Query(\"address\") String address,\n @Query(\"x\") String x,\n @Query(\"y\") String y,\n @Query(\"coordsType\") String coordsType,\n @Query(\"device_id\") String device_id\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!Mbtrajectory.action\")\n Call<Task> getTask(@Query(\"account\") String account);\n\n}",
"public interface Server {\n\n @GET\n Call<CalonModel> getCalon(@Url String url);\n\n}",
"public interface ApiInterface {\n\n\n @Headers({\"Content-Type: application/json\",})\n @POST(\"transport/public/registrations\")\n Call<Void> Register(@Body User user);\n\n\n //loginProcess\n @GET(\"user\")\n @Headers({\"Content-Type: application/json\"})\n Call<cUser> postWithFormParams();\n\n\n //userMe\n @GET(\"transport/user/me\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> UserMe();\n\n\n\n //drivers\n @GET(\"transport/drivers\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> drivers(\n @Query(\"latitud\") double latitud,\n @Query(\"longitud\") double longitud);\n\n\n}",
"public interface GsonAPIService {\n\n @Get(\"{query}/pm10.json\")\n @Head(\"Cache-Control:max-age=640000\")\n Call<List<PM25>> getWeather(@Path(\"query\") String query, @Query(\"city\") String city, @Query(\"token\") String token);\n}",
"public FellowCommuReq() {\n super();\n setRequestUrl(\"FellowCommuReq\");\n }",
"public interface RestApi {\n\n @GET(\"/ride.asp\")\n Call<List<Model>> getData (@Query(\"userid\") int userId,\n @Query(\"from_name\") String fromName,\n @Query(\"from_lat\") double lat,\n @Query(\"from_lng\") double lng,\n @Query(\"to_name\") String toName,\n @Query(\"to_lat\") double toLat,\n @Query(\"to_lng\") double toLng,\n @Query(\"time\") long time);\n}",
"public void postTest(LabTest labTest) {\n URL url = null;\n try {\n url = new URL(apiAddress+\"postTest\");\n\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(labTest);\n String encodedString = Base64.getEncoder().encodeToString(json.getBytes());\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setInstanceFollowRedirects( false );\n con.setRequestMethod( \"GET\" );\n con.setRequestProperty( \"Content-Type\", \"application/json\");\n con.setRequestProperty( \"charset\", \"utf-8\");\n con.setRequestProperty( \"Content-Length\", Integer.toString( encodedString.getBytes().length ));\n con.setRequestProperty(\"Data\", encodedString);\n con.setUseCaches( false );\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void erweimaHttpPost() {\n\t\tHttpUtils httpUtils = new HttpUtils();\n\t\tUtils utils = new Utils();\n\t\tString[] verstring = utils.getVersionInfo(getActivity());\n\t\tRequestParams params = new RequestParams();\n\t\tparams.addHeader(\"ccq\", utils.getSystemVersion()+\",\"+ verstring[0]+\",\"+verstring[2]);\n\t\tparams.addBodyParameter(\"token\",\n\t\t\t\tnew DButil().gettoken(getActivity()));\n\t\tparams.addBodyParameter(\"member_id\",\n\t\t\t\tnew DButil().getMember_id(getActivity()));\n\t\thttpUtils.send(HttpMethod.POST, JiekouUtils.TUIGUANGERWEIMA, params,\n\t\t\t\tnew RequestCallBack<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"static String request(String requestMethod, String input, String endURL)\n {\n StringBuilder result;\n result = new StringBuilder();\n try\n {\n String targetURL = firstURL + endURL;\n URL ServiceURL = new URL(targetURL);\n HttpURLConnection httpConnection = (HttpURLConnection) ServiceURL.openConnection();\n httpConnection.setRequestMethod(requestMethod);\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n httpConnection.setDoOutput(true);\n\n switch (requestMethod) {\n case \"POST\":\n\n httpConnection.setDoInput(true);\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(input.getBytes());\n outputStream.flush();\n\n result = new StringBuilder(\"1\");\n break;\n case \"GET\":\n\n BufferedReader responseBuffer = new BufferedReader(new InputStreamReader((httpConnection.getInputStream())));\n String tmp;\n while ((tmp = responseBuffer.readLine()) != null) {\n result.append(tmp);\n }\n break;\n }\n\n if (httpConnection.getResponseCode() != 200)\n throw new RuntimeException(\"HTTP GET Request Failed with Error code : \" + httpConnection.getResponseCode());\n\n httpConnection.disconnect();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return result.toString();\n }",
"void dispatchRequest(String urlPath) throws Exception;",
"protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setCharacterEncoding(\"utf-8\");\n\t\tString method = req.getParameter(\"method\");\n//\t\tSystem.out.println(\"PPPPPPPPPPPPPPP\");\n\t\tif (\"Time_qunee\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if (\"Time_qunee_pre\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_pre(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if (\"Time_qunee_fold\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_fold(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if(\"Create_root_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createRootInfoJson());\n\t\t}\n\t\telse if(\"Create_montior_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createMontiorInfoJson());\n\t\t}\n\t}",
"@POST(\"test\")\n Observable<SuperResponse> postTestData(@Body RequestBody params);",
"@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler(AppController.getAppContext());\n\n\n\n try {\n JSONObject response = requestHandler.sendPostRequest(URLs.URL_UPDATE_TOKEN_DAILY, null, Request.Method.POST);\n return response.toString();\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n return null;\n }",
"public interface ShortUrlApi {\n\n @POST(\"shorturl\")\n @Converter(ShortUrlConverter.class)\n Call<String> shortUrl(@Body String longUrl,@Query(\"access_token\")String accessToken);\n\n class ShortUrlConverter extends JacksonConverter<String,String> {\n @Override\n public byte[] request(ObjectMapper mapper, Type type, String longUrl) throws IOException {\n return String.format(\"{\\\"action\\\":\\\"long2short\\\",\\\"long_url”:”%s”}\",longUrl).getBytes(CHARSET_UTF8);\n }\n\n @Override\n public String response(ObjectMapper mapper, Type type, byte[] response) throws IOException {\n JsonNode jsonNode = mapper.readTree(response);\n return jsonNode.path(\"short_url\").asText();\n }\n }\n}",
"public interface ApiInterface {\n\n @POST(\"/request/getAll\")\n Call<List<Request>> getRequest(@Body Location location);\n\n @POST(\"/request/create\")\n Call<Request> createRequest(@Body Request request);\n\n @POST(\"/deliver/accept/\")\n Call<Request> acceptRequest(@Query(\"id\") String requestId);\n\n}",
"@Test\n\tpublic void test_1_post(){\n\t\tJSONObject request = new JSONObject();\n\t\trequest.put(\"name\", \"Rahul\");\n\t\trequest.put(\"job\", \"Engineer\");\n\t\tSystem.out.println(request.toJSONString());\n\t\t\n\t\tgiven().\n\t\t header(\"Content-Type\",\"application/json\").\n\t\t accept(ContentType.JSON).\n\t\t body(request.toJSONString()).\n\t\t when().\n\t\t \tpost(\"https://reqres.in/api/users/2\").\n\t\t then().\n\t\t statusCode(201);\n\t\t \n\t\t\n\t}",
"private void sendJson(){\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n JSONObject jsonBodyObj = new JSONObject();\n String url = \"http://10.0.2.2:5000/user\";\n try{\n jsonBodyObj.put(\"key1\", encodedString);\n jsonBodyObj.put(\"key2\", courseslistid.get(spinnerCourses.getSelectedItemPosition()));\n\n }catch (JSONException e){\n e.printStackTrace();\n }\n final String requestBody = jsonBodyObj.toString();\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST,\n url, null, new Response.Listener<JSONObject>(){\n @Override public void onResponse(JSONObject response) {\n Log.i(\"Response\",String.valueOf(response));\n }\n }, new Response.ErrorListener() {\n @Override public void onErrorResponse(VolleyError error) {\n VolleyLog.e(\"Error: \", error.getMessage());\n }\n }){\n @Override public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }\n\n\n @Override public byte[] getBody() {\n try {\n return requestBody == null ? null : requestBody.getBytes(\"utf-8\");\n } catch (UnsupportedEncodingException uee) {\n VolleyLog.wtf(\"Unsupported Encoding while trying to get the bytes of %s using %s\",\n requestBody, \"utf-8\");\n return null;\n }\n }\n };\n\n requestQueue.add(jsonObjectRequest);\n Toast.makeText(getApplicationContext(), \"Yoklama Alma Başarılı!\", Toast.LENGTH_LONG).show();\n\n }",
"@POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n /*public String getJson(@FormParam(\"operador\")String operador,@FormParam(\"idFile\")int idFile, \r\n @FormParam(\"idUser\")int idUser,@FormParam(\"grupo\")boolean grupo,@FormParam(\"lat\")double latitud, \r\n @FormParam(\"lon\")double longitud, @FormParam(\"hora\")String hora, @FormParam(\"fecha\")String fecha,\r\n @FormParam(\"timeMask\")String timeMask,@FormParam(\"dateMask\")String dateMask,\r\n @FormParam(\"wifis\")String wifis) throws SQLException, URISyntaxException, ClassNotFoundException{*/\r\n public String getJson(Parametros parametros) throws SQLException, URISyntaxException, ClassNotFoundException{\r\n //TODO return proper representation object\r\n \r\n Integer idFile = parametros.idFile;\r\n Integer idUser = parametros.idUser;\r\n boolean grupo = parametros.grupo;\r\n String operador = parametros.operador;\r\n float longitud = parametros.lon;\r\n float latitud = parametros.lat;\r\n String hora = parametros.hora;\r\n String dateMask = parametros.dateMask;\r\n String fecha = parametros.fecha;\r\n String timeMask = parametros.timeMask;\r\n String wifis = parametros.wifis;\r\n \r\n boolean userRegistrado=false;\r\n Fichero fichero = new Fichero(0,0,\"hola\",\"estoy aqui\",\"a esta hora\",\"en esta fecha\",\"con estas wifis\");\r\n try{\r\n Calendar ahora = Calendar.getInstance();\r\n int grupoBBDD =0;\r\n double lat=0;\r\n double lon=0;\r\n String horaBBDD=\"8:00\";\r\n String timeMaskBBDD=\"4\";\r\n String dateMaskBBDD=\"4\";\r\n \r\n ahora.add(Calendar.HOUR, 1);//Cambio de hora por el servidor de Heroku\r\n Connection connection = null;\r\n try{\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n String url =\"jdbc:postgresql://localhost:5432/postgres\";\r\n String usuario=\"postgres\";\r\n String contraseña=\"123\";\r\n\r\n connection = DriverManager.getConnection(url, usuario, contraseña);\r\n \r\n if(!connection.isClosed()){\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs= stmt.executeQuery(\"SELECT Id, Departamento FROM Usuarios\");\r\n while(rs.next()){\r\n if((rs.getInt(\"Id\"))==idUser){\r\n userRegistrado=true;\r\n grupoBBDD=rs.getInt(\"Departamento\");\r\n if(grupo && grupoBBDD!=0){\r\n Statement stmt2 = connection.createStatement();\r\n ResultSet rs2= stmt2.executeQuery(\"SELECT * FROM Departamentos WHERE Id='\" +Integer.toString(grupoBBDD)+\"'\"); \r\n while(rs2.next()){\r\n horaBBDD=rs2.getString(\"Horario\");\r\n timeMaskBBDD=rs2.getString(\"Mascara_hora\");\r\n dateMaskBBDD=rs2.getString(\"Mascara_fecha\");\r\n break;\r\n }\r\n rs2.close();\r\n stmt2.close();\r\n }\r\n Statement stmt3 = connection.createStatement();\r\n ResultSet rs3= stmt3.executeQuery(\"SELECT ssid, potencia FROM wifis\");\r\n while(rs3.next()){\r\n wifisFijas.add(rs3.getString(\"ssid\"));\r\n wifisPotencias.add(Integer.toString(rs3.getInt(\"potencia\")));\r\n }\r\n rs3.close();\r\n stmt3.close();\r\n Statement stmt4 = connection.createStatement();\r\n ResultSet rs4= stmt4.executeQuery(\"SELECT * FROM coordenadas\");\r\n while(rs4.next()){\r\n lat=rs4.getFloat(\"Latitud\");\r\n lon=rs4.getFloat(\"Longitud\");\r\n radio=rs4.getInt(\"Radio\");\r\n }\r\n rs4.close();\r\n stmt4.close();\r\n break;\r\n }\r\n\r\n\r\n }\r\n //Gson gson = new Gson();\r\n //String ficheroJSON = gson.toJson(fichero);\r\n rs.close();\r\n stmt.close();\r\n connection.close();\r\n //return ficheroJSON;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(e.getClass().getName()+\": \"+e.getMessage());\r\n System.exit(0);\r\n \r\n }\r\n \r\n //for (int i=0;i<listaUsers.length;i++){\r\n //if(listaUsers[i][0]==idUser){\r\n if(userRegistrado){\r\n //userRegistrado = true;\r\n if(!grupo){\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, idUser),claveGPS(lat,lon,latitud,longitud,radio,idFile,idUser),claveHora(idFile, idUser,ahora,timeMask,hora),claveFecha(idFile, idUser,ahora,dateMask,fecha),claveWifi(wifis, idUser, idFile));\r\n //fichero.setClaveHora(\"Estoy entrando donde no hay grupo\");\r\n //break;\r\n }\r\n else{\r\n //if(listaUsers[i][1]==0){\r\n if(grupoBBDD==0){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"Estoy entrando donde el grupo es 0\");\r\n }\r\n else{\r\n //fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, listaUsers[i][1]),claveGPS(lat,lon,idFile,listaUsers[i][1]),claveHora(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[1],mapHora.get(listaUsers[i][1])[0]),claveFecha(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[2],fecha),claveWifi(wifis,listaUsers[i][1],idFile));\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, grupoBBDD),claveGPS(lat,lon,latitud,longitud,radio,grupoBBDD,grupoBBDD),claveHora(idFile, grupoBBDD,ahora,timeMaskBBDD,horaBBDD),claveFecha(idFile, grupoBBDD,ahora,dateMaskBBDD,fecha),claveWifi(wifis,grupoBBDD,idFile));\r\n //fichero.setClaveHora(\"Estoy entrando en mi cifrado de grupo\");\r\n }\r\n //break;\r\n }\r\n }\r\n //}\r\n if(!userRegistrado){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"No estoy registrado\");\r\n }\r\n }catch(Exception e){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n }\r\n \r\n \r\n Gson gson = new Gson();\r\n String ficheroJSON = gson.toJson(fichero);\r\n return ficheroJSON;\r\n }",
"public void waitingChargeApiCall(final JSONObject js) {\n RequestQueue queue = Volley.newRequestQueue(context);\n JsonObjectRequestWithHeader jsonObjReq = new JsonObjectRequestWithHeader(Request.Method.POST,\n Constants.URL_WAITING_CHARGE, js,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.v(\"Response\", response.toString());\n try {\n if (response.getBoolean(\"result\")) {\n Toast.makeText(context, response.getString(\"response\"), Toast.LENGTH_SHORT).show();\n showRateDialog();\n\n } else {\n Toast.makeText(context, response.getString(\"response\"), Toast.LENGTH_SHORT).show();\n showRateDialog();\n }\n progressDialog.dismiss();\n\n\n } catch (JSONException e) {\n progressDialog.dismiss();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(\"Response\", \"Error: \" + error.getMessage());\n progressDialog.dismiss();\n }\n });\n\n int socketTimeout = 30000;//30 seconds - change to what you want\n RetryPolicy policy = new DefaultRetryPolicy(socketTimeout, DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);\n jsonObjReq.setRetryPolicy(policy);\n queue.add(jsonObjReq);\n }",
"public interface ApiService {\n @POST(\"/AutoComplete/autocomplete/json\")\n void placeAuto(@Query(\"input\") String input, @Query(\"key\") String key, Callback<AutoComplete> callback);\n\n @POST(\"/geocode/json\")\n void getLatLng(@Query(\"address\") String address, @Query(\"key\") String key, Callback<GeocodingMain> callback);\n\n @POST(\"/directions/json\")\n void getroute(@Query(\"origin\") String origin, @Query(\"destination\") String destination, @Query(\"key\") String key, Callback<Directions> callback);\n\n @POST(\"/geocode/json\")\n void reverseGeoCoding(@Query(\"latlng\") String latLng, @Query(\"key\") String key, Callback<RevGeocodingMain> callback);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n}",
"public interface IRegWeight {\r\n\r\n @POST(\"diabetes/patientUsers/registerWeight\")\r\n Call<RegWeight> setSendregisterWeightFrom(@Body rowPeso rPeso);\r\n\r\n @POST(\"diabetes/patientUsers/updateWeight\")\r\n Call<RegWeight> setSendWeightUpdateFrom(@Body rowPesoUpdate rPeso);\r\n\r\n public class RegWeight{\r\n @Getter\r\n @Setter\r\n private int idCodResult;\r\n @Getter\r\n @Setter\r\n private String resultDescription;\r\n @Getter\r\n @Setter\r\n private int idRegisterDB;\r\n\r\n }\r\n\r\n\r\n}",
"public interface NetworkAPI {\n //Login Screen\n @Multipart\n @POST(\"/doLogin\")\n void doLogin(@Part(\"email\") TypedString api,\n @Part(\"password\") TypedString password,\n @Part(\"action\") TypedString action,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n Callback<JsonObject> response);\n\n //Add services Screen\n @Multipart\n @POST(\"/getServices\")\n void getAllServices(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"user_id\") TypedString user_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n Callback<JsonObject> response);\n\n //Service details\n @Multipart\n @POST(\"/getServiceDetails\")\n void getServicesDetails(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"user_id\") TypedString user_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"service_id\") TypedString service_id,\n Callback<JsonObject> response);\n\n //Save service request\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetails(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale, //// added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);\n\n//elenco_partecipanti_al_corso_cognome_nome_e_c_f_\n //Save service request without bp file\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);\n\n\n\n //User Selection Screen\n @Multipart\n @POST(\"/doLogin\")\n void getUserType(@Part(\"email\") TypedString api,\n @Part(\"password\") TypedString password,\n @Part(\"action\") TypedString action,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"tipout\") TypedString user_type,\n Callback<JsonObject> response);\n\n //For company data without bpfile\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithoutBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI, // added by Mayur for the request which needs this parametr\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);\n\n //For company data with bp file\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale, // added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);\n/*certificazione_accreditamento_dellorganismo_di_formazione,\ncv_formatori,\ncalendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\nallegatiDesc*/\n\n //Service details\n /*@Multipart\n @POST(\"/changePassword\")\n void changePassword(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"existing_password\") TypedString existing_password,\n @Part(\"new_password\") TypedString new_password,\n @Part(\"confirm_password\") TypedString confirm_password,\n Callback<JsonObject> response);*/\n\n @GET(\"/index_production.php\")\n void changePassword(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"existing_password\") String existing_password,\n @Query(\"new_password\") String new_password,\n @Query(\"confirm_password\") String confirm_password,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n //@Query(\"action\") String action,\n\n @GET(\"/getUserServices\")\n void requestService(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n\n @GET(\"/getVersionList\")\n // @GET(\"/index_new.php\")\n void getVersameti(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n @GET(\"/updateVersionList\")\n void editVersameti(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n @Query(\"AzNome\") String AzNome,\n @Query(\"AnnoComp\") String AnnoComp,\n @Query(\"cf\") String cf,\n @Query(\"piva\") String piva,\n @Query(\"ebv_ver\") String ebv_ver,\n @Query(\"INPS\") String INPS,\n @Query(\"GEN\") String GEN,\n @Query(\"FEB\") String FEB,\n @Query(\"MAR\") String MAR,\n @Query(\"APR\") String APR,\n @Query(\"MAG\") String MAG,\n @Query(\"GIU\") String GIU,\n @Query(\"LUG\") String LUG,\n @Query(\"AGO\") String AGO,\n @Query(\"SET\") String SET,\n @Query(\"OTT\") String OTT,\n @Query(\"NOV\") String NOV,\n @Query(\"DIC\") String DIC,\n Callback<JsonObject> response);\n\n @GET(\"/getSeatList\")\n void getSedi(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n /* http://www.ebveneto.it/web_services/index_new.php?action=updateSeatList&tabella=Aziende&user_id=00097A&idSede=&\n // Nome=&Via=&Cap=&Comune=&Frazione=&Prov=&Tipo=&fonte=*/\n\n @GET(\"/updateSeatList\")\n void editSedi(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n @Query(\"idSede\") String idSede,\n @Query(\"Nome\") String Nome,\n @Query(\"Via\") String Via,\n @Query(\"Cap\") String Cap,\n @Query(\"Comune\") String Comune,\n @Query(\"Frazione\") String Frazione,\n @Query(\"Prov\") String Prov,\n @Query(\"Tipo\") String Tipo,\n @Query(\"fonte\") String fonte,\n Callback<JsonObject> response);\n\n\n @Multipart\n @POST(\"/updateUserConsent\")\n void updateUserConsent(@Part(\"tabella\") TypedString tabella,\n @Part(\"id\") TypedString user_id,\n @Part(\"action\") TypedString action,\n Callback<JsonObject> response);\n\n\n //Save service request\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetails(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @PartMap Map<String, TypedString> userId,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n // @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @PartMap Map<String, TypedFile> dynamicFiles,\n Callback<JsonObject> response);\n\n @GET(\"/index_production_march19.php?action=getAppVersion&type=android\")\n void updateAvailable(Callback<JsonObject> response);\n\n @Multipart\n @POST(\"/uploadAttach\")\n void uploadAttachment(\n @Part(\"user_id\") TypedString user_id,\n @Part(\"ids\") TypedString ids,\n @PartMap Map<String, TypedFile> dynamicFiles,\n @Part(\"action\") TypedString action,\n Callback<JsonObject> response);\n\n}",
"public interface SalesForceApi {\n\n //public static final String PROPERTY_SERVICES = \"/services/Soap/u/36.0/00Dg0000003L8Y6\";\n public static final String PROPERTY_SERVICES = \"services/Soap/u/37.0\";\n\n //@Headers({\"Content-Type: text/xml\", \"Accept-Charset: utf-8\"})\n @POST(PROPERTY_SERVICES)\n Call<LoginResponseEnvelope> login(@Body LoginRequestEnvelope body);\n\n //@POST(PROPERTY_SERVICES + \"/00Dg0000003L8Y6\")\n @POST(\"{url}\")\n Call<RetrieveResponseEnvelope> retrieve(@Body RetrieveRequestEnvelope body, @Path(\"url\") String url);\n\n}",
"public interface FairRepairService {\n String ENDPOINT = \"http://fairrepair.onsisdev.info/providerapi/\";\n\n @POST(\"signup\")\n @Multipart\n Call<SignInResponse> signUp(@PartMap Map<String, RequestBody> requestMap);\n\n @POST(\"login\")\n @FormUrlEncoded\n Call<SignInResponse> login(@FieldMap Map<String, String> params);\n\n @POST(\"forgotpassword\")\n @FormUrlEncoded\n Call<SignInResponse> forgotPassword(@FieldMap Map<String, String> params);\n\n @POST(\"logout\")\n @FormUrlEncoded\n Call<SignInResponse> logout(@FieldMap Map<String, String> params);\n\n @POST(\"getprofile\")\n @FormUrlEncoded\n Call<SignInResponse> getProfile(@FieldMap Map<String, String> params);\n\n @POST(\"editprofile\")\n @Multipart\n Call<SignInResponse> editProfile(@PartMap Map<String, RequestBody> params);\n\n @POST(\"changepassword\")\n @FormUrlEncoded\n Call<SignInResponse> resetPassword(@FieldMap Map<String, String> params);\n\n @POST(\"staticpages\")\n @FormUrlEncoded\n Call<SignInResponse> getStaticPages(@FieldMap Map<String, String> params);\n\n @POST(\"getservicetype\")\n @FormUrlEncoded\n Call<SignInResponse> getServiceType(@FieldMap Map<String, String> params);\n\n @POST(\"changeAvailability\")\n @FormUrlEncoded\n Call<SignInResponse> changeAvailability(@FieldMap Map<String, String> params);\n\n @POST(\"requestaccept\")\n @FormUrlEncoded\n Call<SignInResponse> acceptRequest(@FieldMap Map<String, String> requestMap);\n\n @POST(\"cancelrequest\")\n @FormUrlEncoded\n Call<SignInResponse> cancelRequest(@FieldMap Map<String, String> requestMap);\n\n @POST(\"billing\")\n @FormUrlEncoded\n Call<SignInResponse> generateBill(@FieldMap Map<String, String> requestMap);\n\n @POST(\"completerequest\")\n @FormUrlEncoded\n Call<SignInResponse> completeRequest(@FieldMap Map<String, String> requestMap);\n\n @POST(\"updatelatlong\")\n @FormUrlEncoded\n Call<SignInResponse> updateLatLng(@FieldMap Map<String, String> requestMap);\n\n @POST(\"arraived\")\n @FormUrlEncoded\n Call<SignInResponse> arrived(@FieldMap Map<String, String> requestMap);\n\n /********\n * Factory class that sets up a new ribot services\n *******/\n class Factory {\n\n public static FairRepairService makeFairRepairService(Context context) {\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient okHttpClient = new OkHttpClient.Builder()\n .connectTimeout(2, TimeUnit.MINUTES)\n .readTimeout(2, TimeUnit.MINUTES)\n .addInterceptor(new UnauthorisedInterceptor(context))\n .addInterceptor(logging)\n .build();\n\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(FairRepairService.ENDPOINT)\n .client(okHttpClient)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n return retrofit.create(FairRepairService.class);\n }\n }\n}",
"public interface TKService {\n\n @POST(\"/user/jar/v1/login\")\n Call<Login> loginUser(@Body LoginCredentials data);\n\n @GET(\"/employee/jar/v1/{compID}\")\n Call<Employee> getAllEmployees(@Path(\"compID\") int id);\n\n /*@FormUrlEncoded\n @POST(\"/employee/jar/v1/sync/dtr/{compID}\")\n Call<BasicResponse> sendDTR(\n @Path(\"compID\") int id,\n @Field(\"start_date\") String sd,\n @Field(\"end_date\") String ed,\n @Field(\"branch_id\") int bid,\n @Field(\"company_id\") int cid,\n @Field(\"user_id\") int uid,\n @Field(\"dtr\") DTRSyncList list);*/\n\n @POST(\"/employee/jar/v1/sync/dtr/{compID}\")\n Call<BasicResponse> submitDTR(@Path(\"compID\") int id, @Body DTRSync data);\n\n @FormUrlEncoded\n @POST(\"/employee/jar/v1/sync/dtr/{compID}\")\n Call<BasicResponse> sendDTR(\n @Path(\"compID\") int id,\n @Field(\"branch_id\") int bid,\n @Field(\"user_id\") int uid,\n @Field(\"start_date\") String date,\n @Field(\"emp_id\") String barcode,\n @Field(\"time_in\") String timeIn,\n @Field(\"time_out\") String timeOut,\n @Field(\"lunch_in\") String lunchIn,\n @Field(\"lunch_out\") String lunchOut,\n @Field(\"img_url\") String imgUrl);\n}",
"private JsonObject callSpark(JsonObject o, String coords) {\n\t\t\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tString sparkMasterIp = context.getInitParameter(\"sparkMasterIp\");\r\n\t\tString cassandraIp = context.getInitParameter(\"cassandraIp\");\r\n\t\t\r\n\t\tString url = \"http://\"+sparkMasterIp+\":6066/v1/submissions/create\";\r\n\r\n\t\tString payload = \"{\"+\"\\\"action\\\" : \\\"CreateSubmissionRequest\\\",\"+\r\n \"\\\"appArgs\\\" : [ \\\"\"+coords+\"\\\", \\\"1\\\" ],\"+\r\n \"\\\"appResource\\\" : \\\"file:/job-dependencies/CVSTSparkJobEngine-0.0.1-SNAPSHOT.jar\\\",\"+\r\n \"\\\"clientSparkVersion\\\" : \\\"1.3.0\\\",\"+\r\n \"\\\"environmentVariables\\\" : {\"+\r\n \"\\\"SPARK_ENV_LOADED\\\" : \\\"1\\\"\"+\r\n \"},\"+\r\n \"\\\"mainClass\\\" : \\\"ca.yorku.ceras.cvstsparkjobengine.job.LegisJob\\\",\"+\r\n \"\\\"sparkProperties\\\" : {\"+\r\n\t\"\\\"spark.jars\\\" : \\\"file:/job-dependencies/CVSTSparkJobEngine-0.0.1-SNAPSHOT.jar\\\",\"+\r\n \"\\\"spark.driver.extraClassPath\\\" : \\\"file:/job-dependencies/RoaringBitmap-0.4.5.jar:file:/job-dependencies/activation-1.1.jar:file:/job-dependencies/akka-actor_2.10-2.2.3-shaded-protobuf.jar:file:/job-dependencies/akka-remote_2.10-2.2.3-shaded-protobuf.jar:file:/job-dependencies/akka-slf4j_2.10-2.2.3-shaded-protobuf.jar:file:/job-dependencies/apacheds-i18n-2.0.0-M15.jar:file:/job-dependencies/apacheds-kerberos-codec-2.0.0-M15.jar:file:/job-dependencies/api-asn1-api-1.0.0-M20.jar:file:/job-dependencies/api-util-1.0.0-M20.jar:file:/job-dependencies/asm-3.1.jar:file:/job-dependencies/asm-5.0.3.jar:file:/job-dependencies/asm-analysis-5.0.3.jar:file:/job-dependencies/asm-commons-5.0.3.jar:file:/job-dependencies/asm-tree-5.0.3.jar:file:/job-dependencies/asm-util-5.0.3.jar:file:/job-dependencies/avro-1.7.6-cdh5.3.0.jar:file:/job-dependencies/aws-java-sdk-1.7.14.jar:file:/job-dependencies/cassandra-clientutil-2.1.5.jar:file:/job-dependencies/cassandra-driver-core-2.1.10.jar:file:/job-dependencies/chill-java-0.5.0.jar:file:/job-dependencies/chill_2.10-0.5.0.jar:file:/job-dependencies/commons-beanutils-1.7.0.jar:file:/job-dependencies/commons-beanutils-core-1.8.0.jar:file:/job-dependencies/commons-cli-1.2.jar:file:/job-dependencies/commons-codec-1.7.jar:file:/job-dependencies/commons-collections-3.2.1.jar:file:/job-dependencies/commons-compress-1.4.1.jar:file:/job-dependencies/commons-configuration-1.6.jar:file:/job-dependencies/commons-daemon-1.0.13.jar:file:/job-dependencies/commons-digester-1.8.jar:file:/job-dependencies/commons-el-1.0.jar:file:/job-dependencies/commons-httpclient-3.1.jar:file:/job-dependencies/commons-io-2.4.jar:file:/job-dependencies/commons-lang-2.6.jar:file:/job-dependencies/commons-lang3-3.3.2.jar:file:/job-dependencies/commons-logging-1.1.1.jar:file:/job-dependencies/commons-math-2.1.jar:file:/job-dependencies/commons-math3-3.2.jar:file:/job-dependencies/commons-net-2.2.jar:file:/job-dependencies/compress-lzf-1.0.0.jar:file:/job-dependencies/config-1.0.2.jar:file:/job-dependencies/core-3.1.1.jar:file:/job-dependencies/curator-client-2.6.0.jar:file:/job-dependencies/curator-framework-2.4.0.jar:file:/job-dependencies/curator-recipes-2.4.0.jar:file:/job-dependencies/findbugs-annotations-1.3.9-1.jar:file:/job-dependencies/gson-2.4.jar:file:/job-dependencies/guava-16.0.1.jar:file:/job-dependencies/hadoop-annotations-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-auth-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-aws-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-client-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-common-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-core-2.5.0-mr1-cdh5.3.0.jar:file:/job-dependencies/hadoop-hdfs-2.5.0-cdh5.3.0-tests.jar:file:/job-dependencies/hadoop-hdfs-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-mapreduce-client-app-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-common-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-core-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-jobclient-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-shuffle-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-api-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-client-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-common-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-server-common-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hamcrest-core-1.3.jar:file:/job-dependencies/hbase-client-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-common-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-common-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-hadoop-compat-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-hadoop-compat-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-hadoop2-compat-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-hadoop2-compat-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-prefix-tree-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-protocol-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-server-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-server-0.98.6-cdh5.3.0.jar:file:/job-dependencies/high-scale-lib-1.1.1.jar:file:/job-dependencies/hsqldb-1.8.0.10.jar:file:/job-dependencies/htrace-core-2.04.jar:file:/job-dependencies/httpclient-4.1.2.jar:file:/job-dependencies/httpcore-4.1.2.jar:file:/job-dependencies/ivy-2.4.0.jar:file:/job-dependencies/jackson-annotations-2.2.3.jar:file:/job-dependencies/jackson-core-2.2.3.jar:file:/job-dependencies/jackson-core-asl-1.8.8.jar:file:/job-dependencies/jackson-databind-2.2.3.jar:file:/job-dependencies/jackson-jaxrs-1.8.8.jar:file:/job-dependencies/jackson-mapper-asl-1.8.8.jar:file:/job-dependencies/jackson-module-scala_2.10-2.2.3.jar:file:/job-dependencies/jackson-xc-1.7.1.jar:file:/job-dependencies/jamon-runtime-2.3.1.jar:file:/job-dependencies/jasper-compiler-5.5.23.jar:file:/job-dependencies/jasper-runtime-5.5.23.jar:file:/job-dependencies/java-xmlbuilder-0.4.jar:file:/job-dependencies/javax.servlet-3.0.0.v201112011016.jar:file:/job-dependencies/jaxb-api-2.1.jar:file:/job-dependencies/jaxb-impl-2.2.3-1.jar:file:/job-dependencies/jcl-over-slf4j-1.7.5.jar:file:/job-dependencies/jersey-client-1.9.jar:file:/job-dependencies/jersey-core-1.8.jar:file:/job-dependencies/jersey-json-1.8.jar:file:/job-dependencies/jersey-server-1.8.jar:file:/job-dependencies/jets3t-0.9.0.jar:file:/job-dependencies/jettison-1.1.jar:file:/job-dependencies/jetty-6.1.26.cloudera.4.jar:file:/job-dependencies/jetty-continuation-8.1.14.v20131031.jar:file:/job-dependencies/jetty-http-8.1.14.v20131031.jar:file:/job-dependencies/jetty-io-8.1.14.v20131031.jar:file:/job-dependencies/jetty-server-8.1.14.v20131031.jar:file:/job-dependencies/jetty-sslengine-6.1.26.cloudera.4.jar:file:/job-dependencies/jetty-util-6.1.26.cloudera.4.jar:file:/job-dependencies/jetty-util-8.1.14.v20131031.jar:file:/job-dependencies/jffi-1.2.10-native.jar:file:/job-dependencies/jffi-1.2.10.jar:file:/job-dependencies/jnr-constants-0.9.0.jar:file:/job-dependencies/jnr-ffi-2.0.7.jar:file:/job-dependencies/jnr-posix-3.0.27.jar:file:/job-dependencies/jnr-x86asm-1.0.2.jar:file:/job-dependencies/joda-convert-1.2.jar:file:/job-dependencies/joda-time-2.3.jar:file:/job-dependencies/jodd-core-3.6.3.jar:file:/job-dependencies/jsch-0.1.42.jar:file:/job-dependencies/json4s-ast_2.10-3.2.10.jar:file:/job-dependencies/json4s-core_2.10-3.2.10.jar:file:/job-dependencies/json4s-jackson_2.10-3.2.10.jar:file:/job-dependencies/jsp-2.1-6.1.14.jar:file:/job-dependencies/jsp-api-2.1-6.1.14.jar:file:/job-dependencies/jsp-api-2.1.jar:file:/job-dependencies/jsr166e-1.1.0.jar:file:/job-dependencies/jsr305-1.3.9.jar:file:/job-dependencies/jul-to-slf4j-1.7.5.jar:file:/job-dependencies/junit-4.11.jar:file:/job-dependencies/kryo-2.21.jar:file:/job-dependencies/leveldbjni-all-1.8.jar:file:/job-dependencies/log4j-1.2.17.jar:file:/job-dependencies/lz4-1.2.0.jar:file:/job-dependencies/mesos-0.21.0-shaded-protobuf.jar:file:/job-dependencies/metrics-core-2.2.0.jar:file:/job-dependencies/metrics-core-3.0.2.jar:file:/job-dependencies/metrics-core-3.1.0.jar:file:/job-dependencies/metrics-graphite-3.1.0.jar:file:/job-dependencies/metrics-json-3.1.0.jar:file:/job-dependencies/metrics-jvm-3.1.0.jar:file:/job-dependencies/minlog-1.2.jar:file:/job-dependencies/netty-3.9.0.Final.jar:file:/job-dependencies/netty-all-4.0.23.Final.jar:file:/job-dependencies/netty-buffer-4.0.33.Final.jar:file:/job-dependencies/netty-codec-4.0.33.Final.jar:file:/job-dependencies/netty-common-4.0.33.Final.jar:file:/job-dependencies/netty-handler-4.0.33.Final.jar:file:/job-dependencies/netty-transport-4.0.33.Final.jar:file:/job-dependencies/objenesis-1.2.jar:file:/job-dependencies/oro-2.0.8.jar:file:/job-dependencies/paranamer-2.3.jar:file:/job-dependencies/parquet-column-1.6.0rc3.jar:file:/job-dependencies/parquet-common-1.6.0rc3.jar:file:/job-dependencies/parquet-encoding-1.6.0rc3.jar:file:/job-dependencies/parquet-format-2.2.0-rc1.jar:file:/job-dependencies/parquet-generator-1.6.0rc3.jar:file:/job-dependencies/parquet-hadoop-1.6.0rc3.jar:file:/job-dependencies/parquet-jackson-1.6.0rc3.jar:file:/job-dependencies/protobuf-java-2.4.1-shaded.jar:file:/job-dependencies/protobuf-java-2.5.0.jar:file:/job-dependencies/py4j-0.8.2.1.jar:file:/job-dependencies/pyrolite-2.0.1.jar:file:/job-dependencies/quasiquotes_2.10-2.0.1.jar:file:/job-dependencies/reflectasm-1.07-shaded.jar:file:/job-dependencies/scala-compiler-2.10.4.jar:file:/job-dependencies/scala-library-2.10.4.jar:file:/job-dependencies/scala-reflect-2.10.5.jar:file:/job-dependencies/scalap-2.10.0.jar:file:/job-dependencies/scalatest_2.10-2.1.5.jar:file:/job-dependencies/servlet-api-2.5-6.1.14.jar:file:/job-dependencies/servlet-api-2.5.jar:file:/job-dependencies/slf4j-api-1.7.5.jar:file:/job-dependencies/slf4j-log4j12-1.7.5.jar:file:/job-dependencies/snappy-java-1.0.4.1.jar:file:/job-dependencies/spark-cassandra-connector-java_2.10-1.3.1.jar:file:/job-dependencies/spark-cassandra-connector_2.10-1.3.1.jar:file:/job-dependencies/spark-catalyst_2.10-1.3.0.jar:file:/job-dependencies/spark-core_2.10-1.3.0-cdh5.4.7.jar:file:/job-dependencies/spark-hbase-0.0.2-clabs.jar:file:/job-dependencies/spark-network-common_2.10-1.3.0-cdh5.4.7.jar:file:/job-dependencies/spark-network-shuffle_2.10-1.3.0-cdh5.4.7.jar:file:/job-dependencies/spark-sql_2.10-1.3.0.jar:file:/job-dependencies/spark-streaming_2.10-1.2.0-cdh5.3.0-tests.jar:file:/job-dependencies/spark-streaming_2.10-1.2.0-cdh5.3.0.jar:file:/job-dependencies/stream-2.7.0.jar:file:/job-dependencies/tachyon-0.5.0.jar:file:/job-dependencies/tachyon-client-0.5.0.jar:file:/job-dependencies/uncommons-maths-1.2.2a.jar:file:/job-dependencies/unused-1.0.0.jar:file:/job-dependencies/xmlenc-0.52.jar:file:/job-dependencies/xz-1.0.jar:file:/job-dependencies/zookeeper-3.4.5-cdh5.3.0.jar\\\",\"+\r\n\t\"\\\"spark.executor.extraClassPath\\\" : \\\"file:/job-dependencies/RoaringBitmap-0.4.5.jar:file:/job-dependencies/activation-1.1.jar:file:/job-dependencies/akka-actor_2.10-2.2.3-shaded-protobuf.jar:file:/job-dependencies/akka-remote_2.10-2.2.3-shaded-protobuf.jar:file:/job-dependencies/akka-slf4j_2.10-2.2.3-shaded-protobuf.jar:file:/job-dependencies/apacheds-i18n-2.0.0-M15.jar:file:/job-dependencies/apacheds-kerberos-codec-2.0.0-M15.jar:file:/job-dependencies/api-asn1-api-1.0.0-M20.jar:file:/job-dependencies/api-util-1.0.0-M20.jar:file:/job-dependencies/asm-3.1.jar:file:/job-dependencies/asm-5.0.3.jar:file:/job-dependencies/asm-analysis-5.0.3.jar:file:/job-dependencies/asm-commons-5.0.3.jar:file:/job-dependencies/asm-tree-5.0.3.jar:file:/job-dependencies/asm-util-5.0.3.jar:file:/job-dependencies/avro-1.7.6-cdh5.3.0.jar:file:/job-dependencies/aws-java-sdk-1.7.14.jar:file:/job-dependencies/cassandra-clientutil-2.1.5.jar:file:/job-dependencies/cassandra-driver-core-2.1.10.jar:file:/job-dependencies/chill-java-0.5.0.jar:file:/job-dependencies/chill_2.10-0.5.0.jar:file:/job-dependencies/commons-beanutils-1.7.0.jar:file:/job-dependencies/commons-beanutils-core-1.8.0.jar:file:/job-dependencies/commons-cli-1.2.jar:file:/job-dependencies/commons-codec-1.7.jar:file:/job-dependencies/commons-collections-3.2.1.jar:file:/job-dependencies/commons-compress-1.4.1.jar:file:/job-dependencies/commons-configuration-1.6.jar:file:/job-dependencies/commons-daemon-1.0.13.jar:file:/job-dependencies/commons-digester-1.8.jar:file:/job-dependencies/commons-el-1.0.jar:file:/job-dependencies/commons-httpclient-3.1.jar:file:/job-dependencies/commons-io-2.4.jar:file:/job-dependencies/commons-lang-2.6.jar:file:/job-dependencies/commons-lang3-3.3.2.jar:file:/job-dependencies/commons-logging-1.1.1.jar:file:/job-dependencies/commons-math-2.1.jar:file:/job-dependencies/commons-math3-3.2.jar:file:/job-dependencies/commons-net-2.2.jar:file:/job-dependencies/compress-lzf-1.0.0.jar:file:/job-dependencies/config-1.0.2.jar:file:/job-dependencies/core-3.1.1.jar:file:/job-dependencies/curator-client-2.6.0.jar:file:/job-dependencies/curator-framework-2.4.0.jar:file:/job-dependencies/curator-recipes-2.4.0.jar:file:/job-dependencies/findbugs-annotations-1.3.9-1.jar:file:/job-dependencies/gson-2.4.jar:file:/job-dependencies/guava-16.0.1.jar:file:/job-dependencies/hadoop-annotations-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-auth-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-aws-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-client-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-common-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-core-2.5.0-mr1-cdh5.3.0.jar:file:/job-dependencies/hadoop-hdfs-2.5.0-cdh5.3.0-tests.jar:file:/job-dependencies/hadoop-hdfs-2.5.0-cdh5.3.0.jar:file:/job-dependencies/hadoop-mapreduce-client-app-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-common-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-core-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-jobclient-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-mapreduce-client-shuffle-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-api-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-client-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-common-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hadoop-yarn-server-common-2.6.0-cdh5.4.7.jar:file:/job-dependencies/hamcrest-core-1.3.jar:file:/job-dependencies/hbase-client-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-common-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-common-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-hadoop-compat-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-hadoop-compat-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-hadoop2-compat-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-hadoop2-compat-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-prefix-tree-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-protocol-0.98.6-cdh5.3.0.jar:file:/job-dependencies/hbase-server-0.98.6-cdh5.3.0-tests.jar:file:/job-dependencies/hbase-server-0.98.6-cdh5.3.0.jar:file:/job-dependencies/high-scale-lib-1.1.1.jar:file:/job-dependencies/hsqldb-1.8.0.10.jar:file:/job-dependencies/htrace-core-2.04.jar:file:/job-dependencies/httpclient-4.1.2.jar:file:/job-dependencies/httpcore-4.1.2.jar:file:/job-dependencies/ivy-2.4.0.jar:file:/job-dependencies/jackson-annotations-2.2.3.jar:file:/job-dependencies/jackson-core-2.2.3.jar:file:/job-dependencies/jackson-core-asl-1.8.8.jar:file:/job-dependencies/jackson-databind-2.2.3.jar:file:/job-dependencies/jackson-jaxrs-1.8.8.jar:file:/job-dependencies/jackson-mapper-asl-1.8.8.jar:file:/job-dependencies/jackson-module-scala_2.10-2.2.3.jar:file:/job-dependencies/jackson-xc-1.7.1.jar:file:/job-dependencies/jamon-runtime-2.3.1.jar:file:/job-dependencies/jasper-compiler-5.5.23.jar:file:/job-dependencies/jasper-runtime-5.5.23.jar:file:/job-dependencies/java-xmlbuilder-0.4.jar:file:/job-dependencies/javax.servlet-3.0.0.v201112011016.jar:file:/job-dependencies/jaxb-api-2.1.jar:file:/job-dependencies/jaxb-impl-2.2.3-1.jar:file:/job-dependencies/jcl-over-slf4j-1.7.5.jar:file:/job-dependencies/jersey-client-1.9.jar:file:/job-dependencies/jersey-core-1.8.jar:file:/job-dependencies/jersey-json-1.8.jar:file:/job-dependencies/jersey-server-1.8.jar:file:/job-dependencies/jets3t-0.9.0.jar:file:/job-dependencies/jettison-1.1.jar:file:/job-dependencies/jetty-6.1.26.cloudera.4.jar:file:/job-dependencies/jetty-continuation-8.1.14.v20131031.jar:file:/job-dependencies/jetty-http-8.1.14.v20131031.jar:file:/job-dependencies/jetty-io-8.1.14.v20131031.jar:file:/job-dependencies/jetty-server-8.1.14.v20131031.jar:file:/job-dependencies/jetty-sslengine-6.1.26.cloudera.4.jar:file:/job-dependencies/jetty-util-6.1.26.cloudera.4.jar:file:/job-dependencies/jetty-util-8.1.14.v20131031.jar:file:/job-dependencies/jffi-1.2.10-native.jar:file:/job-dependencies/jffi-1.2.10.jar:file:/job-dependencies/jnr-constants-0.9.0.jar:file:/job-dependencies/jnr-ffi-2.0.7.jar:file:/job-dependencies/jnr-posix-3.0.27.jar:file:/job-dependencies/jnr-x86asm-1.0.2.jar:file:/job-dependencies/joda-convert-1.2.jar:file:/job-dependencies/joda-time-2.3.jar:file:/job-dependencies/jodd-core-3.6.3.jar:file:/job-dependencies/jsch-0.1.42.jar:file:/job-dependencies/json4s-ast_2.10-3.2.10.jar:file:/job-dependencies/json4s-core_2.10-3.2.10.jar:file:/job-dependencies/json4s-jackson_2.10-3.2.10.jar:file:/job-dependencies/jsp-2.1-6.1.14.jar:file:/job-dependencies/jsp-api-2.1-6.1.14.jar:file:/job-dependencies/jsp-api-2.1.jar:file:/job-dependencies/jsr166e-1.1.0.jar:file:/job-dependencies/jsr305-1.3.9.jar:file:/job-dependencies/jul-to-slf4j-1.7.5.jar:file:/job-dependencies/junit-4.11.jar:file:/job-dependencies/kryo-2.21.jar:file:/job-dependencies/leveldbjni-all-1.8.jar:file:/job-dependencies/log4j-1.2.17.jar:file:/job-dependencies/lz4-1.2.0.jar:file:/job-dependencies/mesos-0.21.0-shaded-protobuf.jar:file:/job-dependencies/metrics-core-2.2.0.jar:file:/job-dependencies/metrics-core-3.0.2.jar:file:/job-dependencies/metrics-core-3.1.0.jar:file:/job-dependencies/metrics-graphite-3.1.0.jar:file:/job-dependencies/metrics-json-3.1.0.jar:file:/job-dependencies/metrics-jvm-3.1.0.jar:file:/job-dependencies/minlog-1.2.jar:file:/job-dependencies/netty-3.9.0.Final.jar:file:/job-dependencies/netty-all-4.0.23.Final.jar:file:/job-dependencies/netty-buffer-4.0.33.Final.jar:file:/job-dependencies/netty-codec-4.0.33.Final.jar:file:/job-dependencies/netty-common-4.0.33.Final.jar:file:/job-dependencies/netty-handler-4.0.33.Final.jar:file:/job-dependencies/netty-transport-4.0.33.Final.jar:file:/job-dependencies/objenesis-1.2.jar:file:/job-dependencies/oro-2.0.8.jar:file:/job-dependencies/paranamer-2.3.jar:file:/job-dependencies/parquet-column-1.6.0rc3.jar:file:/job-dependencies/parquet-common-1.6.0rc3.jar:file:/job-dependencies/parquet-encoding-1.6.0rc3.jar:file:/job-dependencies/parquet-format-2.2.0-rc1.jar:file:/job-dependencies/parquet-generator-1.6.0rc3.jar:file:/job-dependencies/parquet-hadoop-1.6.0rc3.jar:file:/job-dependencies/parquet-jackson-1.6.0rc3.jar:file:/job-dependencies/protobuf-java-2.4.1-shaded.jar:file:/job-dependencies/protobuf-java-2.5.0.jar:file:/job-dependencies/py4j-0.8.2.1.jar:file:/job-dependencies/pyrolite-2.0.1.jar:file:/job-dependencies/quasiquotes_2.10-2.0.1.jar:file:/job-dependencies/reflectasm-1.07-shaded.jar:file:/job-dependencies/scala-compiler-2.10.4.jar:file:/job-dependencies/scala-library-2.10.4.jar:file:/job-dependencies/scala-reflect-2.10.5.jar:file:/job-dependencies/scalap-2.10.0.jar:file:/job-dependencies/scalatest_2.10-2.1.5.jar:file:/job-dependencies/servlet-api-2.5-6.1.14.jar:file:/job-dependencies/servlet-api-2.5.jar:file:/job-dependencies/slf4j-api-1.7.5.jar:file:/job-dependencies/slf4j-log4j12-1.7.5.jar:file:/job-dependencies/snappy-java-1.0.4.1.jar:file:/job-dependencies/spark-cassandra-connector-java_2.10-1.3.1.jar:file:/job-dependencies/spark-cassandra-connector_2.10-1.3.1.jar:file:/job-dependencies/spark-catalyst_2.10-1.3.0.jar:file:/job-dependencies/spark-core_2.10-1.3.0-cdh5.4.7.jar:file:/job-dependencies/spark-hbase-0.0.2-clabs.jar:file:/job-dependencies/spark-network-common_2.10-1.3.0-cdh5.4.7.jar:file:/job-dependencies/spark-network-shuffle_2.10-1.3.0-cdh5.4.7.jar:file:/job-dependencies/spark-sql_2.10-1.3.0.jar:file:/job-dependencies/spark-streaming_2.10-1.2.0-cdh5.3.0-tests.jar:file:/job-dependencies/spark-streaming_2.10-1.2.0-cdh5.3.0.jar:file:/job-dependencies/stream-2.7.0.jar:file:/job-dependencies/tachyon-0.5.0.jar:file:/job-dependencies/tachyon-client-0.5.0.jar:file:/job-dependencies/uncommons-maths-1.2.2a.jar:file:/job-dependencies/unused-1.0.0.jar:file:/job-dependencies/xmlenc-0.52.jar:file:/job-dependencies/xz-1.0.jar:file:/job-dependencies/zookeeper-3.4.5-cdh5.3.0.jar\\\",\"+\r\n \"\\\"spark.driver.supervise\\\" : \\\"false\\\",\"+\r\n \"\\\"spark.app.name\\\" : \\\"ca.yorku.ceras.cvstsparkjobengine.job.LegisJob\\\",\"+\r\n \"\\\"spark.eventLog.enabled\\\": \\\"false\\\",\"+\r\n \"\\\"spark.submit.deployMode\\\" : \\\"cluster\\\",\"+\r\n \"\\\"spark.master\\\" : \\\"spark://\"+sparkMasterIp+\":6066\\\",\"+\r\n\t\"\\\"spark.cassandra.connection.host\\\" : \\\"\"+cassandraIp+\"\\\",\"+\r\n \"\\\"spark.executor.cores\\\" : \\\"1\\\",\"+\r\n \"\\\"spark.cores.max\\\" : \\\"1\\\"\"+\r\n \"}\"+\r\n\"}'\";\r\n\t\t\r\n\t\tClient client = ClientBuilder.newClient();\r\n\t\tResponse response = client.target(url).request(MediaType.APPLICATION_JSON_TYPE).post(Entity.json(payload));\r\n\t\t\r\n\t\t// check response status code\r\n if (response.getStatus() != 200) {\r\n throw new RuntimeException(\"Failed : HTTP error code : \" + response.getStatus());\r\n }\r\n \r\n\t\tJsonReader reader = new JsonReader(new StringReader(response.readEntity(String.class)));\r\n\t\treader.setLenient(true);\r\n\t\tJsonObject jsonResponse = new JsonParser().parse(reader).getAsJsonObject();\r\n\t\t\r\n\t\tString submissionId = jsonResponse.get(\"submissionId\").getAsString();\r\n\t\t\r\n\t\turl = \"http://\"+sparkMasterIp+\":6066/v1/submissions/status/\" + submissionId;\r\n\t\t\r\n\t\tString status = \"\";\r\n\t\t\r\n\t\tint attempts = 0;\r\n\t\t\r\n\t\twhile (attempts < 600) {\t\t\t\r\n\t\t\tresponse = client.target(url).request(MediaType.APPLICATION_JSON_TYPE).get();\r\n\t\t\t\r\n\t\t\t// check response status code\r\n\t if (response.getStatus() != 200) {\r\n\t throw new RuntimeException(\"Failed : HTTP error code : \" + response.getStatus());\r\n\t }\r\n\t \r\n\t String result = response.readEntity(String.class);\r\n\t \r\n\t //System.out.println(\"RESULT: \" + result);\r\n\t \r\n\t if (result.contains(\"FINISHED\")) {\r\n\t \tstatus = \"FINISHED\";\r\n\t \tbreak;\r\n\t } else if (result.contains(\"FAILED\")) {\r\n\t \tstatus = \"FAILED\";\r\n\t \tbreak;\r\n\t }\r\n\t \r\n\t try {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t \r\n\t attempts++;\r\n\t\t}\r\n\t\t\r\n\t\tif (status.equals(\"\"))\r\n\t\t\tthrow new RuntimeException(\"Failed to retrieve Spark job status\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\treader.close();\r\n\t\t\tclient.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tint cont = 0;\r\n\t\t\r\n\t\tfor (JsonElement route : o.get(\"routes\").getAsJsonArray()) {\r\n\t\t\tfor (JsonElement leg : route.getAsJsonObject().get(\"legs\").getAsJsonArray()) {\r\n\t\t\t\tfor (JsonElement step : leg.getAsJsonObject().get(\"steps\").getAsJsonArray()) {\r\n\t\t\t\t\tJsonObject stepObject = step.getAsJsonObject();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (status.equals(\"FINISHED\")) {\r\n\t\t\t\t\t\tstepObject.addProperty(\"score\", \"\"+SCORES[cont]);\r\n\t\t\t\t\t\tcont++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tstepObject.addProperty(\"score\", \"FAILED\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tlong endTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tServletContextInitializer.logger.info(\"TIME SPENT WITH SPARK: \" + (endTime-startTime) + \" milliseconds\");\r\n\t\t\r\n\t\treturn o;\r\n\t}",
"public static String doPostJson(String url, String json) {\n try {\n RequestBody requestBody = FormBody.create(MediaType.parse(\"application/json; charset=utf-8\"), json);\n Request request = new Request.Builder().url(url).post(requestBody).build();\n Response response = mHttpClient.newCall(request).execute();\n if (response != null && response.isSuccessful()) {\n String out = response.body().string();\n logger.info(\"http post rlt:\" + out);\n return out;\n }\n } catch (Exception e) {\n log.error(e.getMessage());\n }\n return \"error\";\n }",
"public interface RokyInfoService {\n\n @FormUrlEncoded\n @POST(\"SpiritServiceApp/v1/send/singleEbike\")\n Call<ResponseBody> singleEbike(@Field(\"ueSn\") String ueSn, @Field(\"data\") String data);\n\n @GET(\"SpiritServiceApp/v1/devices\")\n Call<DevicesMsg> devices(@Query(\"ue_sn_array\") String ueSnArray);\n\n\n @GET(\"SpiritServiceApp/stock/ccus\")\n Call<DevicesMsg> ccus(@Query(\"maxId\") String maxId);\n\n}",
"public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}",
"@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler();\n\n String id = String.valueOf(SharedPrefManagerTechnician.getInstance(context).getTechnician().getId());\n //creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"technician_id\", id);\n\n //returing the response\n return requestHandler.sendPostRequest(Apis.GET_CREATE_JOB_LIST_URL, params);\n }",
"public interface Find_myHttpUtiles {\n @FormUrlEncoded\n @POST(\"home/nearest\")\n Call<Bean3> gethttp(@FieldMap Map<String, String> m);\n\n}",
"WebClientServiceRequest serviceRequest();",
"Request _request(String operation);",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n HttpTransport HTTP_TRANSPORT = new NetHttpTransport();\r\n JsonFactory JSON_FACTORY = new JacksonFactory();\r\n HttpRequestFactory requestFactory\r\n = HTTP_TRANSPORT.createRequestFactory(new HttpRequestInitializer() {\r\n @Override\r\n public void initialize(HttpRequest request) {\r\n request.setParser(new JsonObjectParser(JSON_FACTORY));\r\n }\r\n });\r\n\r\n GenericUrl url = new GenericUrl(\"https://openbus.emtmadrid.es:9443/emt-proxy-server/last/geo/GetArriveStop.php\");\r\n\r\n GenericData data = new GenericData();\r\n data.put(\"idClient\",\"[email protected]\");\r\n data.put(\"passKey\", \"3C162353-56FE-4572-9FB4-ED7D2D79E58E\");\r\n data.put(\"idStop\", \"3727\");\r\n\r\n HttpRequest requestGoogle = requestFactory.buildPostRequest(url, new UrlEncodedContent(data));\r\n\r\n\r\n GenericJson json = requestGoogle.execute().parseAs(GenericJson.class);\r\n\r\n \r\n ArrayList arrives = (ArrayList) json.get(\"arrives\");\r\n request.setAttribute(\"llegadas\", arrives);\r\n //para jsp\r\n //request.getRequestDispatcher(\"pintaremt.jsp\").forward(request, response);\r\n //para freemarker\r\n try {\r\n HashMap root = new HashMap();\r\n \r\n //root.put(\"content\",\"hola\");\r\n root.put(\"llegadas\",arrives);\r\n Template temp = Configuration.getInstance().getFreeMarker().getTemplate(\"Freebus.ftl\");\r\n temp.process(root, response.getWriter());\r\n } catch (TemplateException ex) {\r\n Logger.getLogger(GoogleHttpConsumingApi.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n\r\n }",
"public interface INetService {\n String baseUrl = \"https://app.netease.im/api/\";\n\n /**\n * 注册\n * @param username\n * @param nickname\n * @param pwd\n * @return\n */\n @POST(\"createDemoUser\")\n Flowable<BaseModel<String>> createUser(@Query(\"username\") String username,\n @Query(\"nickname\") String nickname,\n @Query(\"password\") String pwd);\n\n\n}",
"public interface AntrianSendAPI {\n String URL_FILE = \"/response_place.php\";\n\n @FormUrlEncoded\n @POST(URL_FILE)\n void reserve(\n @Field(\"api_key\") String apiKey,\n @Field(\"antrian_numb\") Integer antrianNumb,\n @Field(\"antrian_code\") String antrianCode,\n @Field(\"user_token\") String userToken,\n Callback<Response> callback);\n}",
"public void sendDataOnServer()\n {\n\n SimpleDateFormat dateFormate = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat timeFormate = new SimpleDateFormat(\"HH:mm\");\n\n\n HashMap<String , Object> param = new HashMap<>();\n param.put(\"class_uid\" , SessionManager.getUser_id(getActivity()));\n param.put(\"class_club_id\" , SessionManager.getUser_Club_id(getActivity()));\n param.put(\"class_name\" , classTitleEditView.getText().toString());\n param.put(\"class_startDate\" , Utill.formattedDateFromString(\"d-MMM-yyyy\" , \"yyyy-MM-dd\" , enterStartDateBtn.getText().toString()));\n\n\n\n param.put(\"class_days\" , weekStr);\n\n param.put(\"class_duration\" ,classDurationSpinner.durationItem.get(selectDurationSpinner.getSelectedItemPosition()) );\n param.put(\"class_startTime\" , timeFormate.format(startTimeCalender.getTime()));\n param.put(\"class_endTime\" , timeFormate.format(endTimeCalender.getTime()));\n param.put(\"class_cost\" , costEditTv.getText().toString());\n param.put(\"class_color\" , recursiveBookingCourtColourArrayList.get(colorCodeSpinner.getSelectedItemPosition()).getCat_color());\n param.put(\"class_noOfParticipents\" , participantEditTv.getText().toString());\n\n httpRequest.getResponse(activity, WebService.createCclassLink, param, new OnServerRespondingListener(activity) {\n @Override\n public void onSuccess(JSONObject jsonObject) {\n\n Log.e(\"jsonObject\",jsonObject+\"\");\n //{\"status\":\"true\",\"message\":\"Class created successfully\",\"class_id\":4}\n\n try\n {\n Utill.hideKeybord(getActivity());\n if (jsonObject.getBoolean(\"status\"))\n {\n\n getActivity().getSupportFragmentManager().popBackStack();\n getActivity().getSupportFragmentManager().popBackStack();\n //updateclassListListener.onBackFragment();\n }\n else\n {\n Utill.showDialg(jsonObject.getString(\"message\") , getActivity());\n }\n\n }\n catch (Exception e)\n {\n Utill.showToast(getActivity() , e.getMessage());\n }\n }\n });\n\n }",
"public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }",
"public void postDatatoServer(String type, JSONObject data) {\n Log.w(\"Note\", data.toString());\r\n final Home baseHomeActivity = (Home) getActivity();\r\n\r\n JsonObjectRequest jsonArrayRequest =\r\n new JsonObjectRequest(\r\n Request.Method.POST, serverURL + \"/\" + type + \"/\", data, this, this) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n HashMap<String, String> headers = new HashMap<String, String>();\r\n headers.put(\"Authorization\", \"Token \" + baseHomeActivity.mToken);\r\n return headers;\r\n }\r\n };\r\n baseHomeActivity.mQueue.add(jsonArrayRequest);\r\n }",
"@Override\n public HttpMethods getMethod() {\n return HttpMethods.EVAL;\n }",
"public static void insertarTiempoAplicacion(Context context, int idusu, String duracion) {\n String url = \"http://161.35.14.188/Persuhabit/tiempoaplicacion\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idusu\", idusu);\n params.put(\"duracion\", duracion);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }",
"public interface Apiservice {\n\n @POST(\"mobile/login\")\n Call<UsuarioIngreso> postusuaruio(@Body Usuario usuario);\n\n @POST(\"mobile/FetchEBCDS\")\n Call<EBCD> getEBCD(@Body Codigo codigo);\n\n @POST(\"mobile/FetchInvoiceData\")\n Call<List<FetchInvoiceData>> fetchInvoiceData(@Body Codigo codigo);\n}",
"public interface ScheduleScreenApi {\n\n @GET(Urls.REQUEST_SCHEDULE_SCREEN)\n Call<ScheduleScreenData> requestScheduleData();\n}",
"public void submitRequest(String location, WebViewModel vmodel) {\n String weatherUrl = \"https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/\" + location + \"?key=QZ2CJDXT7CYASXM6598KXSPDX\";\n //URL below is free API testing\n //String weatherUrl = \"https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/%22%20+%20location%20+%20%22?key=QZ2CJDXT7CYASXM6598KXSPDX\";\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest\n (Request.Method.GET, weatherUrl, null, new Response.Listener<JSONObject>() {\n\n @RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onResponse(JSONObject response) {\n String cityName = \"\";\n String countryName = \"\";\n String time = \"\";\n String temperature = \"\";\n String maxTemp = \"\";\n String minTemp = \"\";\n String skyCondition = \"\";\n String humidity = \"\";\n String tomorrow = \"\";\n String tonight = \"\";\n JSONArray daysArray;\n SimpleDateFormat dateProperFormat;\n\n try {\n location_splicer(response.getString(\"resolvedAddress\"));\n } catch(JSONException e) {\n System.out.println(\"Error gathering location\");\n }\n try {\n cityName = cityName + cityName_holder;\n } catch (Exception e) {\n System.out.println(\"Error gathering cityName\");\n }\n try {\n countryName = countryName + countryName_holder;\n } catch (Exception e) {\n System.out.println(\"Error gathering countryName\");\n }\n\n //Let's get weather objects for each day.\n try {\n daysArray = response.getJSONArray(\"days\");\n } catch (JSONException e) {\n e.printStackTrace();\n daysArray = null;\n System.out.println(\"ERROR DAYSARRAY\");\n }\n\n try {\n Date currentTime = Calendar.getInstance().getTime();\n Locale locale = Locale.getDefault();\n dateProperFormat =\n new SimpleDateFormat (\"yyyy-MM-dd\", locale);\n\n time = daysArray.getJSONObject(0).getString(\"datetime\");\n\n }catch (JSONException e) {\n System.out.println(\"Error gathering time\");\n }\n\n try {\n temperature = daysArray.getJSONObject(0).getString(\"temp\");\n //temperature = response.getJSONObject(\"currentConditions\").getString(\"temp\");\n if (temperature.length() > 2) {\n temperature = temperature.substring(0,2);\n }\n //temperature = response.getJSONArray(\"days\").getJSONObject(0).getString(\"temp\");\n }catch (JSONException e) {\n System.out.println(\"Error gathering temperature\");\n }\n try {\n maxTemp = daysArray.getJSONObject(0).getString(\"tempmax\");\n } catch (JSONException e) {\n System.out.println(\"Error getting max temperature\");\n }\n try {\n minTemp = daysArray.getJSONObject(0).getString(\"tempmin\");\n } catch (JSONException e) {\n System.out.println(\"Error getting max temperature\");\n }\n try {\n skyCondition = daysArray.getJSONObject(0).getString(\"icon\");\n\n //response.getJSONObject(\"currentConditions\").getString(\"conditions\");\n } catch (JSONException e) {\n System.out.println(\"Error gathering conditions\");\n }\n try {\n humidity = daysArray.getJSONObject(0).getString(\"humidity\");\n } catch (JSONException e) {\n System.out.println(\"Error gathering humidity\");\n }\n try {\n JSONArray hours = daysArray.getJSONObject(0).getJSONArray(\"hours\");\n tonight = \"unknown\";\n for (int i = 0; i < hours.length(); i++) {\n if (hours.getJSONObject(i).getString(\"datetime\").equals(\"23:00:00\")) {\n tonight = hours.getJSONObject(i).getString(\"temp\");\n }\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n tomorrow = daysArray.getJSONObject(1).getString(\"tempmax\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n WeatherReport newReport = new WeatherReport(cityName, countryName);\n\n newReport.updateWeatherReport(time, temperature, condition_parcer(skyCondition), humidity, maxTemp, minTemp, tomorrow, tonight);\n System.out.println(\"***JSON DATA***\");\n System.out.println(time);\n System.out.println(cityName);\n System.out.println(countryName);\n System.out.println(temperature);\n System.out.println(skyCondition);\n System.out.println(newReport.getHumidity());\n vmodel.addWeatherReport(newReport, context);\n System.out.println(\"Checking vmodel: \" +\n vmodel.getRecentReport().getLocationName_city() +\n \" is set as current city\");\n\n }\n }, error -> System.out.println(\"ERROR GETTING WEATHER\"));\n\n\n // Access the RequestQueue through your singleton class.\n this.addToRequestQueue(jsonObjectRequest);\n\n }",
"private void sendRequest(String URL) {\n RequestQueue requestQueue = Volley.newRequestQueue(context);\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL, new JSONObject(headers)\n , new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.e(\"sendRequest Response\", response.toString());\n try {\n //temp\n JSONObject j = new JSONObject();\n j = response;\n Log.e(\"j\",j.toString());\n\n //responseJSONObject = new JSONObject(response);\n serverResponse.saveResponse(response);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Response_Error\",databaseURL + \" : \" + error.toString());\n }\n });\n\n requestQueue.add(jsonObjectRequest);\n }",
"@Test\r\n\tpublic void test01_post() {\n\t\tJSONObject obj=new JSONObject();\r\n\t\tobj.put(\"Gazi1\", \"7979893089\");\r\n\t\tobj.put(\"Reshma\", \"6291172991\");\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(obj.toJSONString());\r\n\t\tgiven().header(\"Content-Type\",\"Application/JSON\")\r\n\t\t.contentType(ContentType.JSON).accept(ContentType.JSON)\r\n\t\t.body(obj.toJSONString()).when().post(\"https://reqres.in/api/users\").then()\r\n\t\t.statusCode(201);\r\n\t\t\r\n\t}",
"@JsonPost\n @RequestMapping(mapping = \"/probable-td-request\", requestMethod = RequestMethod.POST)\n public void tdRequest(@RequestParameter(isJsonBody = true, value = \"application\") String jsonString, LoginDTO loginDTO) throws Exception {\n coLocationApplicationService.insertApplicationWhichContainConnectionID(jsonString, loginDTO, CoLocationConstants.TD, CoLocationConstants.STATE.TD_APPLICATION_SUBMITTED.getValue());\n\n\n long connectionID = new JsonParser().parse(jsonString).getAsJsonObject().get(\"connection_id\").getAsLong();\n\n //remove the application from td list\n CoLocationProbableTDDTO coLocationProbableTDDTO = coLocationProbableTDService.getCoLocationProbableTDByConnectionID(connectionID);\n coLocationProbableTDDTO.setTDRequested(true);\n\n\n coLocationProbableTDService.updateCoLocationProbableTDClient(coLocationProbableTDDTO);\n\n\n }",
"public interface BaseRequstBody {\n\n @GET(\"/product/getCarts\")\n Observable<HomeBean> requstAllData();\n\n\n @POST(\"product/updateCarts/\")\n @FormUrlEncoded\n Observable<HomeBean> UpDataData(@FieldMap HashMap<String,String> parms);\n\n\n}",
"public interface TvApi {\n\n /*\n 获取电视节目表\n */\n @POST(\"getProgram\")\n Call<TvShowData> getProgram(@Query(\"code\") String code, @Query(\"date\") String date, @Query(\"key\") String key);\n\n /*\n 获取频道类型列表\n */\n @POST(\"getCategory\")\n Call<TvTypeData> getCategory(@Query(\"key\") String key);\n\n /*\n\n */\n @POST(\"getChannel\")\n Call<TvChannelData> getChannel(@Query(\"pId\") String pId, @Query(\"key\") String key);\n}",
"@Test\n\tpublic void postCallMethod() throws JsonGenerationException, JsonMappingException, IOException {\n\t\tpostMethod = new RestClient();\n\n\t\t// Header Value to Pass with GET Method (URI is already ready in before Method)\n\t\tHashMap<String, String> header = new HashMap<String, String>();\n\t\theader.put(\"Content-Type\", \"application/json\");\n\n\t\t// Create Java Object (POJO) in which data is stored\n\t\tString name = \"Manish\" + TestUtil.getCurrentDateTimeStamp();\n\t\tSystem.out.println(\"Name: \" + name);\n\t\tEmployee employee = new Employee(name, \"10000\", \"25\", null);\n\n\t\t// Convert POJO into JSON Object\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.writeValue(new File(System.getProperty(\"user.dir\") + \"/src/main/java/employee.json\"), employee);\n\n\t\t// java Object to JSON in string (Marshelling)\n\t\tString usersJsonString = mapper.writeValueAsString(employee);\n\n\t\t// POST method is called using URI,JSON body and headers and response is saved\n\t\t// in variable\n\t\tresponseUnderPostRequest = postMethod.post(URI, usersJsonString, header);\n\n\t\t// Output of POST call\n\t\t// Validation part (For POST method output is 1.StatusCode,2.Response\n\t\t// JSON,3.Header)\n\t\t// 1. Retrieve Response Status Code and Assert it\n\t\tint StatusCode = responseUnderPostRequest.getStatusLine().getStatusCode();\n\t\tAssert.assertEquals(StatusCode, RESPONSE_STATUS_CODE_200);\n\n\t\t// 2.Retrieve Response JSON Object as a String\n\t\tString jsonString = EntityUtils.toString(responseUnderPostRequest.getEntity(), \"UTF-8\");\n\n\t\t/*\n\t\t * JSONObject jsonObject=new JSONObject(jsonString);\n\t\t * System.out.println(jsonObject);\n\t\t */\n\n\t\t// Convert JSON Object to java object POJO (Unmarshelling) and Assert with\n\t\t// Previous JAVA Object POJO\n\t\tEmployee responseUser = mapper.readValue(jsonString, Employee.class);\n\t\tAssert.assertTrue(responseUser.getName().equals(employee.getName()));\n\t}",
"public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}",
"public interface NewsWebService {\n\n\n @GET(\"v1/banner/2\")\n Call<ResponseBody> getBanner();\n\n @POST(\"v1/news/all\")\n Call<ResponseBody> getNews(@Body RequestBody body);\n\n @GET(\"v1/news/{newsId}\")\n Call<ResponseBody> getNewsDetail(@Path(\"newsId\") Long newsId);\n\n}",
"@Test\n\tpublic void postExample() {\n\t\tString APIUrl = \"http://34.210.101.131:8081/topics\";\n\t\tString APIBody=\"{\\\"topicComplexity\\\":\\\"5\\\",\\\"topicName\\\":\\\"MCQ\\\"}\";\n\t\t// Building request using requestSpecBuilder\n\t\tRequestSpecBuilder builder = new RequestSpecBuilder();\n\t\t \n\t\tbuilder.setBody(APIBody);\n\t\tbuilder.setContentType(\"application/json\");\n\t\t//RequestSpecification requestSpec = (RequestSpecification) builder.build();\n\t\tRequestSpecification request = RestAssured.given();\n\t\tRestAssured.given().auth().preemptive().basic(\"[email protected]\",\"testdata@123\");\n\t\t//com.jayway.restassured.specification.RequestSpecification requestSpec = builder.build();\t \n\t\t \n\t\n\t\t\t\t\n\t\tResponse response = request.post(\"http://34.210.101.131:8081/topics\");\n\t\tfloat code = response.getStatusCode();\n\t\tSystem.out.println(\"status code is\"+code);\n\t\tString data =response.asString();\n\t\tSystem.out.println(\"Data is\"+data);\n\t\t\n\n\t\t\n\t\t\n\t}",
"public String post();",
"public interface EventClient {\n @GET(\"/api/events/{shortDate}\")\n Call<ArrayList<Event>> getEvents(@Path(\"shortDate\") String shortDate);\n\n @DELETE(\"/api/events/{id}\")\n Call<ResponseBody> deleteEvent(@Path(\"id\") String id);\n\n @POST(\"/api/events/\")\n Call<ResponseBody> postEvent(@Body Event event);\n}",
"public interface RequestInterface {\n\n @POST(\"server/index.php\")\n Call<ServerResponse> operation(@Body ServerRequest request);\n}",
"public void sendRRequests() {\n\n }",
"public interface APIService {\n\n @FormUrlEncoded\n @POST(\"receipts.php\")\n Call<Receipt> verifyParticipant(@Field(\"regID\") int regID, @Field(\"mobile\") String mobile);\n}",
"@GET(\"iss-now.json/\")\n Call<ISStatus> GetLocation();",
"public interface OrderUsingService {\n @Headers({\n \"Content-Type: application/json\",\n \"Accept: application/json\"\n })\n @POST(\"usingorder\")\n Call<OrderUsingResponse> orderUsing(@Body OrderUsingRequest orderUsingRequest);\n}",
"boolean doCommandDeviceTimerPost(JSONObject timerJSON);",
"public void rateRideApiCall(final JSONObject js) {\n RequestQueue queue = Volley.newRequestQueue(context);\n JsonObjectRequestWithHeader jsonObjReq = new JsonObjectRequestWithHeader(Request.Method.POST,\n Constants.URL_RATE_RIDE, js,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n AppLogger.generateLog(\"trip_rating\");\n Log.v(\"Response\", response.toString());\n try {\n if (response.getBoolean(\"result\")) {\n Toast.makeText(context, response.getString(\"response\"), Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, response.getString(\"response\"), Toast.LENGTH_SHORT).show();\n\n }\n progressDialog.dismiss();\n\n Intent intent = new Intent(context, DashboardActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n overridePendingTransition(0, 0);\n finish();\n\n } catch (JSONException e) {\n progressDialog.dismiss();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(\"Response\", \"Error: \" + error.getMessage());\n progressDialog.dismiss();\n }\n });\n\n int socketTimeout = 30000;//30 seconds - change to what you want\n RetryPolicy policy = new DefaultRetryPolicy(socketTimeout, DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);\n jsonObjReq.setRetryPolicy(policy);\n queue.add(jsonObjReq);\n }",
"R request();",
"org.naru.park.ParkModel.UIParkRequest getRequest();",
"public interface SimpleHabitApi {\n @FormUrlEncoded\n @POST(\"getCurrentProgram.php\")\n Call<GetCurrentProgramResponse> getCurrentProgram (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n\n @FormUrlEncoded\n @POST(\"getCategoriesPrograms.php\")\n Call<GetCategoriesAndProgramsResponse> getCategoriesAndPrograms (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n\n @FormUrlEncoded\n @POST(\"getTopics.php\")\n Call<GetTopicsResponses> getTopics (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n}",
"@POST(\"pomodorotasks\")\n Call<PomodoroTask> pomodorotasksPost(\n @Body PomodoroTask pomodoroTask\n );",
"HeartBeat.Req getHeartBeatReq();",
"@POST\n Call<Post> createPost(@Body Post post);"
]
| [
"0.59909123",
"0.5924405",
"0.58874595",
"0.5884898",
"0.58635265",
"0.58367974",
"0.5811394",
"0.57828516",
"0.57498235",
"0.5736886",
"0.5734366",
"0.56997293",
"0.5689201",
"0.5679024",
"0.5650599",
"0.5641006",
"0.5627458",
"0.56028605",
"0.559295",
"0.55876833",
"0.55813533",
"0.55646414",
"0.5563221",
"0.5555222",
"0.5549934",
"0.5547097",
"0.5543027",
"0.5541989",
"0.5541835",
"0.5531058",
"0.55065495",
"0.5487636",
"0.54781395",
"0.5475066",
"0.54705787",
"0.54647124",
"0.5462669",
"0.54568547",
"0.5454174",
"0.54527783",
"0.5451635",
"0.5426529",
"0.54223007",
"0.5418817",
"0.5409835",
"0.5399775",
"0.5386289",
"0.53821045",
"0.53765696",
"0.53707796",
"0.53701645",
"0.5344999",
"0.5342451",
"0.5339984",
"0.5339706",
"0.53360695",
"0.5327201",
"0.5326921",
"0.5323071",
"0.5317311",
"0.5311697",
"0.5294196",
"0.52859336",
"0.5285591",
"0.5283653",
"0.5282978",
"0.5282711",
"0.5276202",
"0.52759546",
"0.5272128",
"0.5260329",
"0.5259574",
"0.5253937",
"0.5227003",
"0.52188754",
"0.5215366",
"0.5209126",
"0.520536",
"0.52014935",
"0.51996183",
"0.51970994",
"0.51970446",
"0.51965475",
"0.5189935",
"0.51765656",
"0.51756",
"0.51742995",
"0.5171221",
"0.5167785",
"0.5161931",
"0.515663",
"0.5155607",
"0.5155341",
"0.5152284",
"0.5152262",
"0.5149474",
"0.5149207",
"0.51433146",
"0.5141874",
"0.51378495"
]
| 0.6766161 | 0 |
FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MONTHCALENDAR, RequestMethod.POST); | @Override
public void monthCalendar(String date) {
FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MONTHCALENDARV2, RequestMethod.POST);
request.add("token", application.getSystemUtils().getToken());
request.add("username", application.getSystemUtils().getDefaultUsername());
request.add("date", date);
request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());
request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);
request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));
addQueue(MethodCode.EVENT_MONTHCALENDAR, request);
// startQueue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }",
"@FormUrlEncoded\n @POST(Service.PATH_TIME_PLAN_BY_DATE)\n Call<ApiTimePlanByDateObject> postTimePlanByDate(\n @Field(\"UserId\") int doctorId,\n @Field(\"DateTimeSelect\") String date\n );",
"@FormUrlEncoded\n @POST(Service.PATH_MASTER_TIME_PLAN_BY_DATE)\n Call<ApiTimePlanObject> postMasterTimePlanByDate(\n @Field(\"UserId\") int userId,\n @Field(\"DateTimeSelect\") String Date\n );",
"private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}",
"@FormUrlEncoded\n @POST(Service.PATH_DOCTOR_MONTH_READY_TIME)\n Call<ApiMonthReadyTimeObject> postDoctorMonthReadyTime(\n @Field(\"DoctorUserId\") int doctorId,\n @Field(\"MonthYear\") String date\n );",
"@Override\n public String getEndPoint() {\n return \"/v1/json/schedule\";\n }",
"public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}",
"@POST\n Response createCalendar(Calendar calendar);",
"public interface QMApi {\n @GET(\"10001/getProvinceCityAreaList\")\n Call<BaseResModel<AddressEntity>> getProvinceCityAreaList(@Query(\"localVersion\") String localVersion);\n\n @POST(\"10001/qmLogin\")\n Call<BaseResModel<UserInfoEntity>> login(@Body RequestBody jsonBody);\n}",
"public interface ApiService {\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_userLogin\")\n Call<LoginBean> login(@Field(\"username\") String userName, @Field(\"password\") String psw);\n\n\n @POST(\"D{ealer_estateLis}t\")\n Call<NewListBean> newList(@Path(\"ealer_estateLis\") String replaceableUrl);\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_estateDetail\")\n Call<SecondHandListBean> getSecondList(@Field(\"project_key\") String key);\n\n}",
"public interface Server {\n\n @GET\n Call<CalonModel> getCalon(@Url String url);\n\n}",
"public interface ArkadasEkleServis {\n @POST(\"/api/PostArkadasEkle\")\n Call<ArkadasEkleModelCB> arkadasekleServis(@Body ArkadasEkleModel arkadasEkleModel);\n}",
"public void addTimer(){\n RequestQueue rq = Volley.newRequestQueue(getApplicationContext());\n\n StringRequest request = new StringRequest(Request.Method.POST, URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //display\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error)\n {\n error.printStackTrace();\n }\n }) {\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\";\n }\n\n @Override\n public byte[] getBody() {\n Gson gson = new Gson();\n String json = gson.toJson(dateStart);\n json = json.concat(\",\").concat(gson.toJson(dateEnd));\n\n try{ return (json).getBytes(\"utf-8\"); }\n catch (UnsupportedEncodingException e) { return null; }\n }\n };\n rq.add(request);\n }",
"public interface MpesaApiService {\n\n @POST(\"mpesasearch\")\n Call<MpesaResponse> sendRequest(@Body MpesaTranscodeRequest transcodeRequest);\n}",
"public FellowCommuReq() {\n super();\n setRequestUrl(\"FellowCommuReq\");\n }",
"public Date getRequestDate();",
"public interface NetService {\n\n\n @FormUrlEncoded\n @POST(\"getcode\")\n Call<CodeResponse> getCode(@Field(\"tel\") String tel);\n\n @FormUrlEncoded\n @POST(\"setinfo\")\n Call<UserInfo> updateUserInfo(@FieldMap() Map appNo);\n\n @FormUrlEncoded\n @POST(\"setmode\")\n Call<ResultData> setMode(@Field(\"tel\") String tel, @Field(\"up\")String up, @Field(\"down\")String down, @Field(\"time\")String time);\n\n @FormUrlEncoded\n @POST(\"getMode\")\n Call<List<ModelData>> getMode(@Field(\"tel\")String tel);\n\n @FormUrlEncoded\n @GET(\"getnews\")\n Call<BaseResponse> getNews();\n\n\n}",
"public static String createCalEvent(HttpServletRequest request, HttpServletResponse response) {\r\n Delegator delegator = (Delegator) request.getAttribute(\"delegator\");\r\n LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute(\"dispatcher\");\r\n Map<String,Object> params = UtilHttp.getParameterMap(request);\r\n String returnValue = ModelService.RESPOND_SUCCESS;\r\n Map<String, Object> result = null;\r\n Map<String, Object> context = new HashMap<String,Object>();\r\n \ttry {\r\n \t\tcontext.put(\"partyId\", params.get(\"partyId\"));\r\n \t\tcontext.put(\"roleTypeId\", \"CAL_OWNER\");\r\n \t\tcontext.put(\"statusId\", \"PRTYASGN_ASSIGNED\");\r\n \t\tcontext.put(\"workEffortName\", params.get(\"workEffortName\"));\r\n \t\tcontext.put(\"description\", params.get(\"description\"));\r\n \t\tcontext.put(\"currentStatusId\", params.get(\"currentStatusId\"));\r\n \t\tcontext.put(\"scopeEnumId\", params.get(\"scopeEnumId\"));\r\n \t\tcontext.put(\"estimatedStartDate\", params.get(\"estimatedStartDate\"));\r\n \t\tcontext.put(\"estimatedCompletionDate\", params.get(\"estimatedCompletionDate\"));\r\n \t\tcontext.put(\"workEffortTypeId\", params.get(\"workEffortTypeId\"));\r\n// \t\tGenericValue userLogin = delegator.findOne(\"UserLogin\", UtilMisc.toMap(\"userLoginId\", \"system\"), true);\r\n \t\tGenericValue userLogin = (GenericValue) request.getSession().getAttribute(\"userLogin\");\r\n \t\tcontext.put(\"userLogin\", userLogin);\r\n \t\t\r\n \t\t//call create work effort service\r\n\t\t\t\tresult = dispatcher.runSync(\"createWorkEffortAndPartyAssign\", context);\r\n\t\t\t\tcontext.clear();\r\n\t\t\t\tString workEffortId =null;\r\n\t\t\t\tworkEffortId=(String) result.get(\"workEffortId\");\r\n\t\t\t\t\r\n\t\t\t\t//call service for create Content\r\n\t\t\t\tif(workEffortId!=null)\r\n\t \t{\r\n\t \t\tcontext.put(\"contentId\", workEffortId);\r\n\t \t\tcontext.put(\"dataResourceId\", workEffortId);\r\n\t \t\tcontext.put(\"userLogin\", userLogin);\r\n\t \t\t//call service for create DataResource\r\n\t \t\tresult = dispatcher.runSync(\"createDataResource\", context);\r\n\t \t\tif(result.get(\"dataResourceId\")!=null)\r\n\t \t\t{\t\r\n\t \t\t\tcontext.put(\"ownerContentId\", \"TI_EVENT\");\r\n\t \t\t\t//call service for create content\r\n\t \t\t\tresult = dispatcher.runSync(\"createContent\", context);\r\n\t \t\t\tString contentId= (String) result.get(\"contentId\");\r\n\t \t\t\tif(contentId!=null)\r\n\t \t\t\t{\r\n\t \t\t\t\tcontext.put(\"textData\", params.get(\"textData\"));\r\n\t \t\t\t\t//call service for create Electronic text\r\n\t \t\t\t\tresult = dispatcher.runSync(\"createElectronicText\", context);\r\n\t \t\t\t\tif(result.get(\"dataResourceId\")!=null)\r\n\t \t\t\t\t{\r\n\t \t\t\t\t\tcontext.clear();\r\n\t \t\t\t\t\tcontext.put(\"workEffortId\", workEffortId);\r\n\t \t\t\t\t\tcontext.put(\"contentId\", contentId);\r\n\t \t\t\t\t\tcontext.put(\"workEffortContentTypeId\", \"TI_EVENT_TEXT\");\r\n\t \t\t\t\t\tcontext.put(\"fromDate\",new Timestamp(System.currentTimeMillis()));\r\n\t \t\t\t\t\tcontext.put(\"thruDate\",new Timestamp(System.currentTimeMillis()));\r\n\t \t\t\t\t\t//service for associate content to workeffort \r\n\t \t\t\t\t\tGenericValue workEffortContent= delegator.create(\"WorkEffortContent\", context);\r\n\t \t\t\t\t}\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\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t\r\n \r\n if(UtilValidate.isNotEmpty(result)){\r\n\t if (!result.containsKey(ModelService.RESPONSE_MESSAGE)) {\r\n\t \treturnValue = ModelService.RESPOND_SUCCESS;\r\n\t } else {\r\n\t \treturnValue = (String) result.get(ModelService.RESPONSE_MESSAGE);\r\n\t }\r\n }\r\n request.setAttribute(\"responseMessage\", \"Event created..\");\r\n return returnValue;\r\n }",
"protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setCharacterEncoding(\"utf-8\");\n\t\tString method = req.getParameter(\"method\");\n//\t\tSystem.out.println(\"PPPPPPPPPPPPPPP\");\n\t\tif (\"Time_qunee\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if (\"Time_qunee_pre\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_pre(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if (\"Time_qunee_fold\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_fold(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if(\"Create_root_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createRootInfoJson());\n\t\t}\n\t\telse if(\"Create_montior_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createMontiorInfoJson());\n\t\t}\n\t}",
"com.uzak.inter.bean.test.TestRequest.TestBeanRequest getRequest();",
"public interface EventClient {\n @GET(\"/api/events/{shortDate}\")\n Call<ArrayList<Event>> getEvents(@Path(\"shortDate\") String shortDate);\n\n @DELETE(\"/api/events/{id}\")\n Call<ResponseBody> deleteEvent(@Path(\"id\") String id);\n\n @POST(\"/api/events/\")\n Call<ResponseBody> postEvent(@Body Event event);\n}",
"public interface RegisterService {\n @POST(\"register.php\")\n Call<RegisterResponse>getRegisterResponse(@Body RegisterForm registerForm);\n}",
"public interface RestService {\n\n @POST(\"/ComenziRestaurant/task3\")\n public void sendComanda(@Body Comanda comanda, Callback<Integer> callback);\n\n @GET(\"/ComenziRestaurant/task1\")\n public void getProduse(Callback<Collection<Produs>> callback);\n\n @GET(\"/ComenziRestaurant/task2\")\n public void getMese(Callback<Collection<Masa>> callback);\n\n\n\n\n}",
"@POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n /*public String getJson(@FormParam(\"operador\")String operador,@FormParam(\"idFile\")int idFile, \r\n @FormParam(\"idUser\")int idUser,@FormParam(\"grupo\")boolean grupo,@FormParam(\"lat\")double latitud, \r\n @FormParam(\"lon\")double longitud, @FormParam(\"hora\")String hora, @FormParam(\"fecha\")String fecha,\r\n @FormParam(\"timeMask\")String timeMask,@FormParam(\"dateMask\")String dateMask,\r\n @FormParam(\"wifis\")String wifis) throws SQLException, URISyntaxException, ClassNotFoundException{*/\r\n public String getJson(Parametros parametros) throws SQLException, URISyntaxException, ClassNotFoundException{\r\n //TODO return proper representation object\r\n \r\n Integer idFile = parametros.idFile;\r\n Integer idUser = parametros.idUser;\r\n boolean grupo = parametros.grupo;\r\n String operador = parametros.operador;\r\n float longitud = parametros.lon;\r\n float latitud = parametros.lat;\r\n String hora = parametros.hora;\r\n String dateMask = parametros.dateMask;\r\n String fecha = parametros.fecha;\r\n String timeMask = parametros.timeMask;\r\n String wifis = parametros.wifis;\r\n \r\n boolean userRegistrado=false;\r\n Fichero fichero = new Fichero(0,0,\"hola\",\"estoy aqui\",\"a esta hora\",\"en esta fecha\",\"con estas wifis\");\r\n try{\r\n Calendar ahora = Calendar.getInstance();\r\n int grupoBBDD =0;\r\n double lat=0;\r\n double lon=0;\r\n String horaBBDD=\"8:00\";\r\n String timeMaskBBDD=\"4\";\r\n String dateMaskBBDD=\"4\";\r\n \r\n ahora.add(Calendar.HOUR, 1);//Cambio de hora por el servidor de Heroku\r\n Connection connection = null;\r\n try{\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n String url =\"jdbc:postgresql://localhost:5432/postgres\";\r\n String usuario=\"postgres\";\r\n String contraseña=\"123\";\r\n\r\n connection = DriverManager.getConnection(url, usuario, contraseña);\r\n \r\n if(!connection.isClosed()){\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs= stmt.executeQuery(\"SELECT Id, Departamento FROM Usuarios\");\r\n while(rs.next()){\r\n if((rs.getInt(\"Id\"))==idUser){\r\n userRegistrado=true;\r\n grupoBBDD=rs.getInt(\"Departamento\");\r\n if(grupo && grupoBBDD!=0){\r\n Statement stmt2 = connection.createStatement();\r\n ResultSet rs2= stmt2.executeQuery(\"SELECT * FROM Departamentos WHERE Id='\" +Integer.toString(grupoBBDD)+\"'\"); \r\n while(rs2.next()){\r\n horaBBDD=rs2.getString(\"Horario\");\r\n timeMaskBBDD=rs2.getString(\"Mascara_hora\");\r\n dateMaskBBDD=rs2.getString(\"Mascara_fecha\");\r\n break;\r\n }\r\n rs2.close();\r\n stmt2.close();\r\n }\r\n Statement stmt3 = connection.createStatement();\r\n ResultSet rs3= stmt3.executeQuery(\"SELECT ssid, potencia FROM wifis\");\r\n while(rs3.next()){\r\n wifisFijas.add(rs3.getString(\"ssid\"));\r\n wifisPotencias.add(Integer.toString(rs3.getInt(\"potencia\")));\r\n }\r\n rs3.close();\r\n stmt3.close();\r\n Statement stmt4 = connection.createStatement();\r\n ResultSet rs4= stmt4.executeQuery(\"SELECT * FROM coordenadas\");\r\n while(rs4.next()){\r\n lat=rs4.getFloat(\"Latitud\");\r\n lon=rs4.getFloat(\"Longitud\");\r\n radio=rs4.getInt(\"Radio\");\r\n }\r\n rs4.close();\r\n stmt4.close();\r\n break;\r\n }\r\n\r\n\r\n }\r\n //Gson gson = new Gson();\r\n //String ficheroJSON = gson.toJson(fichero);\r\n rs.close();\r\n stmt.close();\r\n connection.close();\r\n //return ficheroJSON;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(e.getClass().getName()+\": \"+e.getMessage());\r\n System.exit(0);\r\n \r\n }\r\n \r\n //for (int i=0;i<listaUsers.length;i++){\r\n //if(listaUsers[i][0]==idUser){\r\n if(userRegistrado){\r\n //userRegistrado = true;\r\n if(!grupo){\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, idUser),claveGPS(lat,lon,latitud,longitud,radio,idFile,idUser),claveHora(idFile, idUser,ahora,timeMask,hora),claveFecha(idFile, idUser,ahora,dateMask,fecha),claveWifi(wifis, idUser, idFile));\r\n //fichero.setClaveHora(\"Estoy entrando donde no hay grupo\");\r\n //break;\r\n }\r\n else{\r\n //if(listaUsers[i][1]==0){\r\n if(grupoBBDD==0){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"Estoy entrando donde el grupo es 0\");\r\n }\r\n else{\r\n //fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, listaUsers[i][1]),claveGPS(lat,lon,idFile,listaUsers[i][1]),claveHora(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[1],mapHora.get(listaUsers[i][1])[0]),claveFecha(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[2],fecha),claveWifi(wifis,listaUsers[i][1],idFile));\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, grupoBBDD),claveGPS(lat,lon,latitud,longitud,radio,grupoBBDD,grupoBBDD),claveHora(idFile, grupoBBDD,ahora,timeMaskBBDD,horaBBDD),claveFecha(idFile, grupoBBDD,ahora,dateMaskBBDD,fecha),claveWifi(wifis,grupoBBDD,idFile));\r\n //fichero.setClaveHora(\"Estoy entrando en mi cifrado de grupo\");\r\n }\r\n //break;\r\n }\r\n }\r\n //}\r\n if(!userRegistrado){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"No estoy registrado\");\r\n }\r\n }catch(Exception e){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n }\r\n \r\n \r\n Gson gson = new Gson();\r\n String ficheroJSON = gson.toJson(fichero);\r\n return ficheroJSON;\r\n }",
"public interface CalenderApi {\n\n /**\n * 获取AccessToken\n * @param accessTokenBean\n * @return\n */\n @Headers(\"Content-Type: application/json\" )\n @POST(\"/oauth/token\")\n Observable<AccessTokenResponse> getAccessToken(@Body AccessTokenBean accessTokenBean);\n\n /**\n * 获取RefreshToken\n * @param refreshTokenBean\n * @return\n */\n @Headers(\"Content-Type: application/json\" )\n @POST(\"/oauth/token\")\n Observable<AccessTokenResponse> refreshAccessToken(@Body RefreshTokenBean refreshTokenBean);\n\n /**\n * 取消授权\n * @param revokeTokenBean\n * @return\n */\n @Headers(\"Content-Type: application/json\" )\n @POST(\"/oauth/token\")\n Observable<AccessTokenResponse> revokeToken(@Body RevokeTokenBean revokeTokenBean);\n\n /**\n * 获取日历列表\n * @return\n */\n @GET(\"/v1/calendars\")\n Observable<CalendarBean> getCalendarList();\n\n /**\n * 获取日历时间列表\n * @param fromDate\n * @param toDate\n * @return\n */\n @GET(\"/v1/events?tzid=Etc/UTC\")\n Observable<EventBean> getEventList(@Query(\"from\") String fromDate, @Query(\"to\") String toDate);\n\n}",
"public interface ApiInterface {\n @POST(\"scarecrow/json.php\")\n Call<Data> getUserValidity(@Body User userLoginCredential);\n\n}",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public interface WebRequests {\n\n\n\n @POST(Constants.API+Constants.SIGN_IN)\n Call<JsonObject> signin(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n\n @POST(Constants.API+Constants.SIGN_UP)\n Call<JsonObject> signup(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n @POST(Constants.API+Constants.VERIFYOTP)\n Call<JsonObject> verifyOtp(@Body JsonObject task);\n\n// {\n// \"user_mobile_ver_code\":\"1234\",\n// \"access_token\": \"57b6a4e15f9fc\"\n// }\n\n @POST(Constants.API+Constants.GET_CITY)\n Call<JsonObject> get_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.GET_VERIFYDEVICEID)\n Call<JsonObject> get_verify_deviceId(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.SAVE_CITY)\n Call<JsonObject> save_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n// \"user_city\":\"Bangalore\"\n// }\n\n @POST(Constants.API+Constants.GET_BRANDS)\n Call<JsonObject> getBrands(@Body JsonObject task);\n// {\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n\n @POST(Constants.API+Constants.GET_CITYMARKET)\n Call<JsonObject> getCityMarket(@Body JsonObject task);\n\n// 1.Request( for all citymarketlist):\n// {\n// \"city_id\":\"57a1c61edf3e78293ea41087\"\n// }\n\n// 2.Request(citymarket list of perticular category):\n// {\n// \"city_id\":\"57b6a735830f09cd1d59158f\",\n// \"category_id\":\"57b5ab6166724dec7409fff0\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST)\n Call<JsonObject> getShopList(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST_SEARCH)\n Call<JsonObject> getShopListBySearch(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n @POST(Constants.API+Constants.GET_SHOPDETAILS)\n Call<JsonObject> getShopDetails(@Body JsonObject task);\n\n// {\n// \"merchant_id\":\"57b6f746fbb597ba108b4568\"\n// }\n//\n//\n @POST(Constants.API+Constants.GET_SUBCATEGORYLIST)\n Call<JsonObject> getSubCategories(@Body JsonObject task);\n//\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\"\n// }\n\n @POST(Constants.API+Constants.GET_PRODUCTLIST)\n Call<JsonObject> getProductList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_SOCKETID)\n Call<JsonObject> update_socket(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_LIST)\n Call<JsonObject> chat_list(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_VIEW)\n Call<JsonObject> chat_view(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.DELETE_ADDRESS)\n Call<JsonObject> deleteAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.ADD_ADDRESS)\n Call<JsonObject> addAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n\n @POST(Constants.API+Constants.UPDATE_ADDRESS)\n Call<JsonObject> updateAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.GET_ADDRESS)\n Call<JsonObject> getAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_OFFERS)\n Call<JsonObject> getOffers(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY)\n Call<JsonObject> getOrdersList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.CREATE_ORDERS)\n Call<JsonObject> createOrders(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_PROFILE)\n Call<JsonObject> updateProfile(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.UPDATE_TRANSACTIONID)\n Call<JsonObject> updateTransactionId(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CANCEL_ORDER)\n Call<JsonObject> cancelOrder(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY_BY_MERCHANT)\n Call<JsonObject> getOrdersMerchantList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n}",
"public interface GsonAPIService {\n\n @Get(\"{query}/pm10.json\")\n @Head(\"Cache-Control:max-age=640000\")\n Call<List<PM25>> getWeather(@Path(\"query\") String query, @Query(\"city\") String city, @Query(\"token\") String token);\n}",
"@Override\r\n\tprotected String requestText() {\n\t\tConsultarIndiceEjecucionAnioRequest consultarIndiceEjecucionAnioRequest = new ConsultarIndiceEjecucionAnioRequest();\r\n\t\tconsultarIndiceEjecucionAnioRequest.setPeriodo(periodo);\r\n\t\tString request = JSONHelper.serializar(consultarIndiceEjecucionAnioRequest);\r\n\t\treturn request;\r\n\t}",
"public String fillRequestBody(){\n\n Gson gson = new Gson();\n ApiSetlistRequestDTO apiSetlistRequestDTO = gson.fromJson(fileOperations.bufferedReader(configurationGet.getApiSetlistRequestJSonBodyResourcePath()), ApiSetlistRequestDTO.class);\n\n apiSetlistRequestDTO.setPage(30303030);\n apiSetlistRequestDTO.setPerPage(8888888);\n apiSetlistRequestDTO.setTotal(300000000);\n apiSetlistRequestDTO.setTotalPages(88888888);\n\n Datum data = new Datum();\n data.setId(10);\n data.setName(\"fghfdasfghgfdsfg\");\n data.setYear(453453);\n data.setColor(\"#f43242\");\n data.setPantoneValue(\"Test dfgfdgfdg Value\");\n\n Datum data2 = new Datum();\n data2.setId(15);\n data2.setName(\"burak\");\n data2.setYear(19);\n data2.setColor(\"#tyuyrefe\");\n data2.setPantoneValue(\"fsd\");\n\n List<Datum> datumList = apiSetlistRequestDTO.getData();\n datumList.set(0,data);\n datumList.set(5,data2);\n\n apiSetlistRequestDTO.setData(datumList);\n\n /*for (Datum data : exampleTestClass.getData()){\n data.setId(10);\n data.setName(\"Sarı\");\n data.setYear(5000);\n data.setColor(\"#999999999\");\n data.setPantoneValue(\"Test Pandone Value\");\n }*/\n\n logger.info(\"Manipule Edilen Data:\" + gson.toJson(apiSetlistRequestDTO));\n\n return gson.toJson(apiSetlistRequestDTO);\n }",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"public interface RequestServer {\n\n @GET(\"caseplatform/mobile/system-eventapp!register.action\")\n Call<StringResult> register(@Query(\"account\") String account, @Query(\"password\") String password, @Query(\"name\") String name,\n @Query(\"mobilephone\") String mobilephone, @Query(\"identityNum\") String identityNum);\n\n @GET(\"caseplatform/mobile/login-app!login.action\")\n Call<String> login(@Query(\"name\") String username, @Query(\"password\") String password);\n\n @GET(\"caseplatform/mobile/system-eventapp!setUserPassword.action\")\n Call<StringResult> setPassword(@Query(\"account\") String account,\n @Query(\"newPassword\") String newPassword,\n @Query(\"oldPassword\") String oldPassword);\n\n @GET(\"caseplatform/mobile/system-eventapp!getEventInfo.action\")\n Call<Event> getEvents(@Query(\"account\") String account, @Query(\"eventType\") String eventType);\n\n @GET(\"caseplatform/mobile/system-eventapp!reportEventInfo.action \")\n Call<EventUpload> reportEvent(\n @Query(\"account\") String account,\n @Query(\"eventType\") String eventType,\n @Query(\"address\") String address,\n @Query(\"eventX\") String eventX,\n @Query(\"eventY\") String eventY,\n @Query(\"eventMs\") String eventMs,\n @Query(\"eventMc\") String eventMc,\n @Query(\"eventId\") String eventId,\n @Query(\"eventClyj\") String eventClyj,\n @Query(\"eventImg\") String eventImg,\n @Query(\"eventVideo\") String eventVideo,\n @Query(\"eventVoice\") String eventVoice\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!getUserInfo.action\")\n Call<UserInfo> getUserInfo(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @GET(\"caseplatform/mobile/system-eventapp!getOrgDataInfo.action\")\n Call<OrgDataInfo> getOrgData(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @Multipart\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Part(\"video\") File video, @Part(\"videoFileName\") String videoFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Query(\"audio\") File audio, @Query(\"audioFileName\") String audioFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Query(\"img\") File img, @Query(\"imgFileName\") String imgFileName);\n\n @POST(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/system-eventapp!jobgps.action\")\n Call<StringResult> setCoordinate(@Query(\"account\") String account,\n @Query(\"address\") String address,\n @Query(\"x\") String x,\n @Query(\"y\") String y,\n @Query(\"coordsType\") String coordsType,\n @Query(\"device_id\") String device_id\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!Mbtrajectory.action\")\n Call<Task> getTask(@Query(\"account\") String account);\n\n}",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"WebClientServiceRequest serviceRequest();",
"@Path(\"/api/khy\")\n@Produces(\"application/json\")\npublic interface LegaliteDysRESTApis {\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-durum-guncelle\")\n SimpleResponse belgeDurumGuncelle(BelgeDurumuModel belgeDurum);\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-al\")\n SimpleResponse belgeGonder(BelgeAlRestModel request);\n}",
"public JsonServlet() {\n\t\tsuper();\n\t}",
"public void request() {\n }",
"public void postTest(LabTest labTest) {\n URL url = null;\n try {\n url = new URL(apiAddress+\"postTest\");\n\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(labTest);\n String encodedString = Base64.getEncoder().encodeToString(json.getBytes());\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setInstanceFollowRedirects( false );\n con.setRequestMethod( \"GET\" );\n con.setRequestProperty( \"Content-Type\", \"application/json\");\n con.setRequestProperty( \"charset\", \"utf-8\");\n con.setRequestProperty( \"Content-Length\", Integer.toString( encodedString.getBytes().length ));\n con.setRequestProperty(\"Data\", encodedString);\n con.setUseCaches( false );\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static void makeFvRequest(String fvReqMethod, String fvReqJsonString){\n\t\tSystem.out.println(fvReqJsonString);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//print request\n\t\tFlowvisorApiCall fvApiCall = new FlowvisorApiCall(FV_URI);\n\n\t\tString fvResponse = null;\n\t\tfvApiCall.sendFvRequest(fvReqJsonString);\n\t\tfvResponse = fvApiCall.getFvResponse();\n\n\t\tif (fvResponse != null){\n\t\t\tSystem.out.println(fvResponse+\"\\n\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//print response\n\t\t\tJsonObject fvResponceJsonObj = JsonObject.readFrom( fvResponse );\t\n\n\t\t\tif(fvResponceJsonObj.get(\"error\") != null){\n\t\t\t\tif(fvResponceJsonObj.get(\"error\").isObject()){\n\t\t\t\t\tJsonObject errorJsonObj = fvResponceJsonObj.get(\"error\").asObject();\n\t\t\t\t\tSystem.err.println(\"Flowvisor Request \\\"\"+fvReqMethod+\"\\\" unsatisfied\");\n\t\t\t\t\tSystem.err.println(\"\\tMessage from FV :\"+errorJsonObj.get(\"message\").asString());\n\t\t\t\t\tSystem.err.println(\"\\t Received Error Code :\"+fvErrorCodeMap.get(errorJsonObj.get(\"code\").asInt())+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(SLICE_CREATE_CHECK){\n\t\t\t\tswitch(fvReqMethod){\n\t\t\t\tcase \"add-slice\": \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// If new slice added, list-slices\n\t\t\t\t\tJsonObject listSlicesJsonReq= new JsonObject();\n\t\t\t\t\tlistSlicesJsonReq.add(\"id\",1).add(\"method\", \"list-slices\").add(\"jsonrpc\", \"2.0\");\n\t\t\t\t\tmakeFvRequest(\"list-slices\", listSlicesJsonReq.toString());\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase \"add-flowspace\": \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// If new flowspace is added, list-flowspace\n\t\t\t\t\tJsonObject listFlowspacesJsonReq= new JsonObject();\n\t\t\t\t\tlistFlowspacesJsonReq.add(\"id\",2).add(\"method\", \"list-flowspace\").add(\"params\", new JsonObject()).add(\"jsonrpc\", \"2.0\");\n\t\t\t\t\tmakeFvRequest(\"list-flowspace\", listFlowspacesJsonReq.toString());\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tdefault:\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse System.err.println(\"CreateSliceForReq.makeFvRequest: \\\"null\\\" respond from flowvisor\");\n\n\n\t}",
"public void addTicket(){\n RequestQueue rq = Volley.newRequestQueue(getApplicationContext());\n\n StringRequest request = new StringRequest(Request.Method.POST, ticketURL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //display\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error)\n {\n error.printStackTrace();\n }\n }) {\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\";\n }\n\n @Override\n public byte[] getBody() {\n Gson gson = new Gson();\n String json = gson.toJson(1);\n\n try{ return (json).getBytes(\"utf-8\"); }\n catch (UnsupportedEncodingException e) { return null; }\n }\n };\n rq.add(request);\n }",
"public interface ScheduleScreenApi {\n\n @GET(Urls.REQUEST_SCHEDULE_SCREEN)\n Call<ScheduleScreenData> requestScheduleData();\n}",
"public interface ShortUrlApi {\n\n @POST(\"shorturl\")\n @Converter(ShortUrlConverter.class)\n Call<String> shortUrl(@Body String longUrl,@Query(\"access_token\")String accessToken);\n\n class ShortUrlConverter extends JacksonConverter<String,String> {\n @Override\n public byte[] request(ObjectMapper mapper, Type type, String longUrl) throws IOException {\n return String.format(\"{\\\"action\\\":\\\"long2short\\\",\\\"long_url”:”%s”}\",longUrl).getBytes(CHARSET_UTF8);\n }\n\n @Override\n public String response(ObjectMapper mapper, Type type, byte[] response) throws IOException {\n JsonNode jsonNode = mapper.readTree(response);\n return jsonNode.path(\"short_url\").asText();\n }\n }\n}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n HttpTransport HTTP_TRANSPORT = new NetHttpTransport();\r\n JsonFactory JSON_FACTORY = new JacksonFactory();\r\n HttpRequestFactory requestFactory\r\n = HTTP_TRANSPORT.createRequestFactory(new HttpRequestInitializer() {\r\n @Override\r\n public void initialize(HttpRequest request) {\r\n request.setParser(new JsonObjectParser(JSON_FACTORY));\r\n }\r\n });\r\n\r\n GenericUrl url = new GenericUrl(\"https://openbus.emtmadrid.es:9443/emt-proxy-server/last/geo/GetArriveStop.php\");\r\n\r\n GenericData data = new GenericData();\r\n data.put(\"idClient\",\"[email protected]\");\r\n data.put(\"passKey\", \"3C162353-56FE-4572-9FB4-ED7D2D79E58E\");\r\n data.put(\"idStop\", \"3727\");\r\n\r\n HttpRequest requestGoogle = requestFactory.buildPostRequest(url, new UrlEncodedContent(data));\r\n\r\n\r\n GenericJson json = requestGoogle.execute().parseAs(GenericJson.class);\r\n\r\n \r\n ArrayList arrives = (ArrayList) json.get(\"arrives\");\r\n request.setAttribute(\"llegadas\", arrives);\r\n //para jsp\r\n //request.getRequestDispatcher(\"pintaremt.jsp\").forward(request, response);\r\n //para freemarker\r\n try {\r\n HashMap root = new HashMap();\r\n \r\n //root.put(\"content\",\"hola\");\r\n root.put(\"llegadas\",arrives);\r\n Template temp = Configuration.getInstance().getFreeMarker().getTemplate(\"Freebus.ftl\");\r\n temp.process(root, response.getWriter());\r\n } catch (TemplateException ex) {\r\n Logger.getLogger(GoogleHttpConsumingApi.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n\r\n }",
"void request(RequestParams params);",
"public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}",
"static String request(String requestMethod, String input, String endURL)\n {\n StringBuilder result;\n result = new StringBuilder();\n try\n {\n String targetURL = firstURL + endURL;\n URL ServiceURL = new URL(targetURL);\n HttpURLConnection httpConnection = (HttpURLConnection) ServiceURL.openConnection();\n httpConnection.setRequestMethod(requestMethod);\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n httpConnection.setDoOutput(true);\n\n switch (requestMethod) {\n case \"POST\":\n\n httpConnection.setDoInput(true);\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(input.getBytes());\n outputStream.flush();\n\n result = new StringBuilder(\"1\");\n break;\n case \"GET\":\n\n BufferedReader responseBuffer = new BufferedReader(new InputStreamReader((httpConnection.getInputStream())));\n String tmp;\n while ((tmp = responseBuffer.readLine()) != null) {\n result.append(tmp);\n }\n break;\n }\n\n if (httpConnection.getResponseCode() != 200)\n throw new RuntimeException(\"HTTP GET Request Failed with Error code : \" + httpConnection.getResponseCode());\n\n httpConnection.disconnect();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return result.toString();\n }",
"public interface PackageService {\n\n @POST(Api.EXPRESS_FIELD)\n @FormUrlEncoded\n Observable<BaseResponse<PackageBean>> queryPackage(@Field(\"showapi_appid\") String appid,\n @Field(\"showapi_sign\") String sign,\n @Field(\"com\") String com,\n @Field(\"nu\") String nu);\n}",
"public interface SalesForceApi {\n\n //public static final String PROPERTY_SERVICES = \"/services/Soap/u/36.0/00Dg0000003L8Y6\";\n public static final String PROPERTY_SERVICES = \"services/Soap/u/37.0\";\n\n //@Headers({\"Content-Type: text/xml\", \"Accept-Charset: utf-8\"})\n @POST(PROPERTY_SERVICES)\n Call<LoginResponseEnvelope> login(@Body LoginRequestEnvelope body);\n\n //@POST(PROPERTY_SERVICES + \"/00Dg0000003L8Y6\")\n @POST(\"{url}\")\n Call<RetrieveResponseEnvelope> retrieve(@Body RetrieveRequestEnvelope body, @Path(\"url\") String url);\n\n}",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n WebFunction.JsonHeaderInit(resp);\r\n ArticleService svc=new ArticleService();\r\n JSONObject ResultJson = svc.GetType(\"1\");\r\n WebFunction.ResponseJson(resp, ResultJson);\r\n }",
"Request _request(String operation);",
"private JSON() {\n\t}",
"public interface TvApi {\n\n /*\n 获取电视节目表\n */\n @POST(\"getProgram\")\n Call<TvShowData> getProgram(@Query(\"code\") String code, @Query(\"date\") String date, @Query(\"key\") String key);\n\n /*\n 获取频道类型列表\n */\n @POST(\"getCategory\")\n Call<TvTypeData> getCategory(@Query(\"key\") String key);\n\n /*\n\n */\n @POST(\"getChannel\")\n Call<TvChannelData> getChannel(@Query(\"pId\") String pId, @Query(\"key\") String key);\n}",
"public interface RestApi {\n\n @GET(\"/ride.asp\")\n Call<List<Model>> getData (@Query(\"userid\") int userId,\n @Query(\"from_name\") String fromName,\n @Query(\"from_lat\") double lat,\n @Query(\"from_lng\") double lng,\n @Query(\"to_name\") String toName,\n @Query(\"to_lat\") double toLat,\n @Query(\"to_lng\") double toLng,\n @Query(\"time\") long time);\n}",
"Call mo35727a(Request request);",
"public interface TKService {\n\n @POST(\"/user/jar/v1/login\")\n Call<Login> loginUser(@Body LoginCredentials data);\n\n @GET(\"/employee/jar/v1/{compID}\")\n Call<Employee> getAllEmployees(@Path(\"compID\") int id);\n\n /*@FormUrlEncoded\n @POST(\"/employee/jar/v1/sync/dtr/{compID}\")\n Call<BasicResponse> sendDTR(\n @Path(\"compID\") int id,\n @Field(\"start_date\") String sd,\n @Field(\"end_date\") String ed,\n @Field(\"branch_id\") int bid,\n @Field(\"company_id\") int cid,\n @Field(\"user_id\") int uid,\n @Field(\"dtr\") DTRSyncList list);*/\n\n @POST(\"/employee/jar/v1/sync/dtr/{compID}\")\n Call<BasicResponse> submitDTR(@Path(\"compID\") int id, @Body DTRSync data);\n\n @FormUrlEncoded\n @POST(\"/employee/jar/v1/sync/dtr/{compID}\")\n Call<BasicResponse> sendDTR(\n @Path(\"compID\") int id,\n @Field(\"branch_id\") int bid,\n @Field(\"user_id\") int uid,\n @Field(\"start_date\") String date,\n @Field(\"emp_id\") String barcode,\n @Field(\"time_in\") String timeIn,\n @Field(\"time_out\") String timeOut,\n @Field(\"lunch_in\") String lunchIn,\n @Field(\"lunch_out\") String lunchOut,\n @Field(\"img_url\") String imgUrl);\n}",
"protected Response createInsertingrequest(String urlFA,JSONObject jsonObject,HttpBasicAuthFilter auth,String type){\n ClientConfig config = new ClientConfig();\n Client client = ClientBuilder.newClient(config);\n WebTarget target;\n target = client.target(getBaseURI(urlFA));\n //Response plainAnswer =null; \n target.register(auth);\n \n Invocation.Builder invocationBuilder =target.request(MediaType.APPLICATION_JSON);\n MultivaluedHashMap<String,Object> mm=new MultivaluedHashMap<String,Object>();\n mm.add(\"content-type\", MediaType.APPLICATION_JSON);\n mm.add(\"Accept\", \"application/json\");\n mm.add(\"charsets\", \"utf-8\");\n invocationBuilder.headers(mm);\n //preliminary operation of request creation ended\n Response plainAnswer=null;\n switch(type){\n case \"post\":\n {\n plainAnswer=invocationBuilder\n .post(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON_TYPE));\n break;\n }\n case \"put\":\n {\n plainAnswer =invocationBuilder\n .put(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON));\n break;\n }\n }\n return plainAnswer;\n }",
"public interface InterestContentAPI {\n\n @POST(\"InterestContentMappings\")\n Call<InterestContentMapping> postInterestContent(@Body InterestContentMapping body);\n}",
"public JSONObject perform(String req_type, String req_json) {\n\t\tContentCatalog CC = (ContentCatalog)Framework.getService(ContentCatalog.class);\n\t\ttry {\n\t\t\t\n\t\t\tMethod perform = null;\n\t\t\t\n\t\t\t// decompilation approach\n\t\t\t//Method perform = ContentCatalog.class.getDeclaredMethod(INSTANCE.getPerformName(), new Class[] {String.class, String.class, int.class, int.class});\n\t\t\t\n\t\t\t// enumeration approach \n\t\t\tClass[] signature = {String.class, String.class, int.class, int.class};\n\t\t\tMethod[] methods = ContentCatalog.class.getDeclaredMethods();\n\t\t\tfor (int i = 0; i < methods.length; i++) {\n\t\t\t\tClass[] params = methods[i].getParameterTypes();\n\t\t\t\tif ( params.length == signature.length ) {\n\t\t\t\t\tint j;\n\t\t\t\t for (j = 0; j < signature.length && params[j].isAssignableFrom( signature[j] ); j++ ) {}\n\t\t\t\t if ( j == signature.length ) {\n\t\t\t\t \tperform = methods[i];\n\t\t\t\t \tbreak;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (perform != null) {\n\t\t\t\tJSONObject json = (JSONObject) perform.invoke(CC, new Object[] { req_type, req_json, new Integer(200), new Integer(5)});\n\t\t\t\treturn json;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn new JSONObject();\n\t\t\t}\n\t\t\t\n\t\t} catch (Throwable t) {\n\t\t\tthrow new RuntimeException(t.toString());\n\t\t}\n\t}",
"public void submitRequest(String location, WebViewModel vmodel) {\n String weatherUrl = \"https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/\" + location + \"?key=QZ2CJDXT7CYASXM6598KXSPDX\";\n //URL below is free API testing\n //String weatherUrl = \"https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/%22%20+%20location%20+%20%22?key=QZ2CJDXT7CYASXM6598KXSPDX\";\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest\n (Request.Method.GET, weatherUrl, null, new Response.Listener<JSONObject>() {\n\n @RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onResponse(JSONObject response) {\n String cityName = \"\";\n String countryName = \"\";\n String time = \"\";\n String temperature = \"\";\n String maxTemp = \"\";\n String minTemp = \"\";\n String skyCondition = \"\";\n String humidity = \"\";\n String tomorrow = \"\";\n String tonight = \"\";\n JSONArray daysArray;\n SimpleDateFormat dateProperFormat;\n\n try {\n location_splicer(response.getString(\"resolvedAddress\"));\n } catch(JSONException e) {\n System.out.println(\"Error gathering location\");\n }\n try {\n cityName = cityName + cityName_holder;\n } catch (Exception e) {\n System.out.println(\"Error gathering cityName\");\n }\n try {\n countryName = countryName + countryName_holder;\n } catch (Exception e) {\n System.out.println(\"Error gathering countryName\");\n }\n\n //Let's get weather objects for each day.\n try {\n daysArray = response.getJSONArray(\"days\");\n } catch (JSONException e) {\n e.printStackTrace();\n daysArray = null;\n System.out.println(\"ERROR DAYSARRAY\");\n }\n\n try {\n Date currentTime = Calendar.getInstance().getTime();\n Locale locale = Locale.getDefault();\n dateProperFormat =\n new SimpleDateFormat (\"yyyy-MM-dd\", locale);\n\n time = daysArray.getJSONObject(0).getString(\"datetime\");\n\n }catch (JSONException e) {\n System.out.println(\"Error gathering time\");\n }\n\n try {\n temperature = daysArray.getJSONObject(0).getString(\"temp\");\n //temperature = response.getJSONObject(\"currentConditions\").getString(\"temp\");\n if (temperature.length() > 2) {\n temperature = temperature.substring(0,2);\n }\n //temperature = response.getJSONArray(\"days\").getJSONObject(0).getString(\"temp\");\n }catch (JSONException e) {\n System.out.println(\"Error gathering temperature\");\n }\n try {\n maxTemp = daysArray.getJSONObject(0).getString(\"tempmax\");\n } catch (JSONException e) {\n System.out.println(\"Error getting max temperature\");\n }\n try {\n minTemp = daysArray.getJSONObject(0).getString(\"tempmin\");\n } catch (JSONException e) {\n System.out.println(\"Error getting max temperature\");\n }\n try {\n skyCondition = daysArray.getJSONObject(0).getString(\"icon\");\n\n //response.getJSONObject(\"currentConditions\").getString(\"conditions\");\n } catch (JSONException e) {\n System.out.println(\"Error gathering conditions\");\n }\n try {\n humidity = daysArray.getJSONObject(0).getString(\"humidity\");\n } catch (JSONException e) {\n System.out.println(\"Error gathering humidity\");\n }\n try {\n JSONArray hours = daysArray.getJSONObject(0).getJSONArray(\"hours\");\n tonight = \"unknown\";\n for (int i = 0; i < hours.length(); i++) {\n if (hours.getJSONObject(i).getString(\"datetime\").equals(\"23:00:00\")) {\n tonight = hours.getJSONObject(i).getString(\"temp\");\n }\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n tomorrow = daysArray.getJSONObject(1).getString(\"tempmax\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n WeatherReport newReport = new WeatherReport(cityName, countryName);\n\n newReport.updateWeatherReport(time, temperature, condition_parcer(skyCondition), humidity, maxTemp, minTemp, tomorrow, tonight);\n System.out.println(\"***JSON DATA***\");\n System.out.println(time);\n System.out.println(cityName);\n System.out.println(countryName);\n System.out.println(temperature);\n System.out.println(skyCondition);\n System.out.println(newReport.getHumidity());\n vmodel.addWeatherReport(newReport, context);\n System.out.println(\"Checking vmodel: \" +\n vmodel.getRecentReport().getLocationName_city() +\n \" is set as current city\");\n\n }\n }, error -> System.out.println(\"ERROR GETTING WEATHER\"));\n\n\n // Access the RequestQueue through your singleton class.\n this.addToRequestQueue(jsonObjectRequest);\n\n }",
"public void setRequestDate(Date requestDate) { this.requestDate = requestDate; }",
"public interface NewsWebService {\n\n\n @GET(\"v1/banner/2\")\n Call<ResponseBody> getBanner();\n\n @POST(\"v1/news/all\")\n Call<ResponseBody> getNews(@Body RequestBody body);\n\n @GET(\"v1/news/{newsId}\")\n Call<ResponseBody> getNewsDetail(@Path(\"newsId\") Long newsId);\n\n}",
"public static void main(String[] args) {\n\t String jsonInput = \"{\\\"name\\\":\\\"AAAA\\\",\\\"type\\\":\\\"admin\\\"}\";\r\n//\t\t ClientConfig clientConfig = new ClientConfig();\r\n//\t\t\tClient client = ClientBuilder.newClient(clientConfig);\r\n//\t\t\tURI serviceURI = UriBuilder.fromUri(url).build();\r\n//\t\t\tWebTarget webTarget = client.target(serviceURI);\r\n//\t\t\tSystem.out.println(webTarget.path(\"getRecords\").request()\r\n//\t\t\t\t\t.accept(MediaType.APPLICATION_JSON).get(String.class).toString());\r\n\t\t\r\n\t\tClient client = ClientBuilder.newClient( new ClientConfig());\r\n\t\tWebTarget webTarget = client.target(\"http://localhost:9000/webservices\").path(\"update\").path(\"Report\");\r\n\t\t\r\n\r\n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\r\n\t\tResponse response = invocationBuilder.post(Entity.entity(jsonInput, MediaType.APPLICATION_JSON));\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\tSystem.out.println(response.getStatus());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private AppointmentCashRequest appointmentCashRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppointmentCashRequest appointmentCashRequest = new AppointmentCashRequest();\n appointmentCashRequest.set_id(appoinmentid);\n appointmentCashRequest.setAmount(txt_serviceamout.getText().toString());\n Log.w(TAG,\"appointmentCashRequest\"+ \"--->\" + new Gson().toJson(appointmentCashRequest));\n return appointmentCashRequest;\n }",
"private static HttpUriRequest doPostMethod(String url, Map<String, String> param) throws UnsupportedEncodingException {\n HttpPost httpPost = new HttpPost(url);\n httpPost.setConfig(requestConfig);\n // 创建参数列表\n if (param != null) {\n List<NameValuePair> paramList = new ArrayList<>();\n for (String key : param.keySet()) {\n paramList.add(new BasicNameValuePair(key, param.get(key)));\n }\n // 模拟表单\n UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList, \"utf-8\");\n httpPost.setEntity(entity);\n }\n return httpPost;\n }",
"public interface APiJavService {\n\n\n @Headers({\"Authorization: com.explara.eventconnect\",\n \"Content-Type: application/json\"})\n @POST(\"api/api/fetch-exhibitors-by-event-id\")\n Call<ExhibitorresponseDto> fetchExhibitorsWithooutRx(@Body RequestDto requestBody);\n\n\n @Headers({\"Authorization: com.explara.eventconnect\",\n \"Content-Type: application/json\"})\n @POST(\"api/api/fetch-exhibitors-by-event-id\")\n ExhibitorresponseDto fetchExhibitors(@Body RequestDto requestBody);\n\n}",
"public interface Apiservice {\n\n @POST(\"mobile/login\")\n Call<UsuarioIngreso> postusuaruio(@Body Usuario usuario);\n\n @POST(\"mobile/FetchEBCDS\")\n Call<EBCD> getEBCD(@Body Codigo codigo);\n\n @POST(\"mobile/FetchInvoiceData\")\n Call<List<FetchInvoiceData>> fetchInvoiceData(@Body Codigo codigo);\n}",
"public interface SimpleHabitApi {\n @FormUrlEncoded\n @POST(\"getCurrentProgram.php\")\n Call<GetCurrentProgramResponse> getCurrentProgram (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n\n @FormUrlEncoded\n @POST(\"getCategoriesPrograms.php\")\n Call<GetCategoriesAndProgramsResponse> getCategoriesAndPrograms (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n\n @FormUrlEncoded\n @POST(\"getTopics.php\")\n Call<GetTopicsResponses> getTopics (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n}",
"public abstract VKRequest mo118416a(JSONObject jSONObject);",
"public interface RestApis {\n\n @POST(\"verifyPassword?key= AIzaSyAUjt3lOrt0cFwbbd5Ag8M1-ISzQlE0Wjg\")\n Call<LoginResponse> loginUser(@Body LoginBody loginBody);\n\n @GET(\"events.json\")\n Call<EventKeyModel> getAllEvents();\n\n @PATCH(\"events/{eventid}\")\n Call<Void> punchit(@Path(\"eventid\") String eventid,@Body AddpunchedListModel addpunchedListModel);\n\n @POST(\"signupNewUser?key= AIzaSyAUjt3lOrt0cFwbbd5Ag8M1-ISzQlE0Wjg\")\n Call<LoginResponse> registerUser(@Body LoginBody loginBody);\n\n @POST(\"users/{uid}\")\n Call<Void> registerUserDb(@Path(\"uid\")String uid,@Body UserDetailsModel eventsDetailsBodyModel);\n}",
"private void erweimaHttpPost() {\n\t\tHttpUtils httpUtils = new HttpUtils();\n\t\tUtils utils = new Utils();\n\t\tString[] verstring = utils.getVersionInfo(getActivity());\n\t\tRequestParams params = new RequestParams();\n\t\tparams.addHeader(\"ccq\", utils.getSystemVersion()+\",\"+ verstring[0]+\",\"+verstring[2]);\n\t\tparams.addBodyParameter(\"token\",\n\t\t\t\tnew DButil().gettoken(getActivity()));\n\t\tparams.addBodyParameter(\"member_id\",\n\t\t\t\tnew DButil().getMember_id(getActivity()));\n\t\thttpUtils.send(HttpMethod.POST, JiekouUtils.TUIGUANGERWEIMA, params,\n\t\t\t\tnew RequestCallBack<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tInteger method = Integer.parseInt(req.getParameter(\"method\"));\n\t\tLocaleMissionManager locmissMgr = new LocaleMissionManager();\n\t\tLocaleApplianceItemManager locAppItemMgr = new LocaleApplianceItemManager();\n\t\t\n\t\tswitch (method) {\n\t\tcase 1: // 添加现场任务委托单\n\t\t\tJSONObject retObj = new JSONObject();\n\t\t\ttry{\n\t\t\t\tString Name = req.getParameter(\"Name\").trim();\n\t\t\t\tint CustomerId = Integer.parseInt(req.getParameter(\"CustomerId\").trim());\n\t\t\t\tString ZipCode = req.getParameter(\"ZipCode\");\n\t\t\t\tString Department = req.getParameter(\"Department\");\n\t\t\t\tString Address = req.getParameter(\"Address\");\n\t\t\t\tString Tel = req.getParameter(\"Tel\");\n\t\t\t\tString ContactorTel = req.getParameter(\"ContactorTel\");\n\t\t\t\tString TentativeDate = req.getParameter(\"TentativeDate\");\n\t\t\t\t//String MissionDesc = req.getParameter(\"MissionDesc\").trim();\t//检测项目及台件数\n\t\t\t\t//String Staffs = req.getParameter(\"Staffs\").trim();\n\t\t\t\tString SiteManagerId = req.getParameter(\"SiteManagerId\");\n\t\t\t\tString Contactor = req.getParameter(\"Contactor\");\n\t\t\t\tString RegionId = req.getParameter(\"RegionId\");\n\t\t\t\tString Remark = req.getParameter(\"Remark\");\n\t\t\t\tString Appliances = req.getParameter(\"Appliances\").trim();\t//检验的器具\n\t\t\t\tJSONArray appliancesArray = new JSONArray(Appliances);\t//检查的器具\n\t\t\t\t\n\t\t\t\tString HeadNameId = req.getParameter(\"HeadName\");\n\t\t\t\tif(HeadNameId==null||HeadNameId.length()==0){\n\t\t\t\t\tthrow new Exception(\"抬头名称不能为空!\");\t\t\t\t\n\t\t\t\t}\n\t\t\t\tAddressManager addrMgr = new AddressManager();\t\t\t\n\t\t\t\tAddress HeadNameAddr = new AddressManager().findById(Integer.parseInt(HeadNameId));\t//台头名称的单位\n\t\t\t\t\n\t\t\t\t/************ 检查输入的人员信息中的用户是否存在 *******************/\n\t\t\t\t/*StringBuffer staffs = new StringBuffer(\"\");\n\t\t\t\tif(Staffs!=null&&Staffs.length()>0){\n\t\t\t\t\tStaffs = Staffs.replace(';', ';');// 分号若为全角转为半角\n\t\t\t\t\tUserManager userMgr = new UserManager();\n\t\t\t\t\tKeyValueWithOperator k1 = new KeyValueWithOperator(\"status\", 0, \"=\"); \n\t\t\t\t\tString[] staff = Staffs.split(\";+\");\n\t\t\t\t\t\n\t\t\t\t\tfor(String user : staff){\n\t\t\t\t\t\tKeyValueWithOperator k2 = new KeyValueWithOperator(\"name\", user, \"=\"); \n\t\t\t\t\t\tif(userMgr.getTotalCount(k1,k2) <= 0){\n\t\t\t\t\t\t\tthrow new Exception(String.format(\"现场检测人员 ‘%s’ 不存在或无效!\", user));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstaffs.append(user).append(\";\");\n\t\t\t\t\t}\n\t\t\t\t}*/\n\t\t\t\tTimestamp ts;\n if(TentativeDate==null||TentativeDate.length()==0){\n\t\t\t\t ts = null;\t//暂定日期\n }else{\n\t\t\t ts = new Timestamp(DateTimeFormatUtil.DateFormat.parse(TentativeDate).getTime());\t//暂定日期\n }\n String Brief = com.jlyw.util.LetterUtil.String2Alpha(Name);\n\t\t\t\t\n Customer cus=new Customer();\n \n cus.setId(CustomerId);\n\t\t\t\tLocaleMission localmission = new LocaleMission();\n\t\t\t\tlocalmission.setAddress_1(Address==null?\"\":Address);\n\t\t\t\tlocalmission.setCustomer(cus);\n\t\t\t\tlocalmission.setCustomerName(Name);\n\t\t\t\tlocalmission.setBrief(Brief);\n\t\t\t\tlocalmission.setZipCode(ZipCode==null?\"\":ZipCode);\n\t\t\t\tlocalmission.setContactor(Contactor==null?\"\":Contactor);\n\t\t\t\tlocalmission.setTel(Tel==null?\"\":Tel);\n\t\t\t\tlocalmission.setContactorTel(ContactorTel==null?\"\":ContactorTel);\n\t\t\t\t//localmission.setMissionDesc(MissionDesc);\n\t\t\t\tlocalmission.setDepartment(Department);\n\t\t\t\t//localmission.setStaffs(staffs.toString());\n\t\t\t\tlocalmission.setTentativeDate(ts);\n\t\t\t\tRegion region = new Region();\n\t\t\t\tregion.setId(Integer.parseInt(RegionId));\n\t\t\t\tlocalmission.setRegion(region);\n\t\t\t\tlocalmission.setRemark(Remark);\n\t\t\t\tlocalmission.setAddress(HeadNameAddr);\n\t\t\t\t\n\t\t\t\t/************更新委托单位信息***********/\n\t\t\t\tCustomer cus0=(new CustomerManager()).findById(CustomerId);\n\t\t\t\tif(Name!=null&&Name.length()>0){\n\t\t\t\t\tcus0.setName(Name);\n\t\t\t\t}\n\t\t\t\tif(Address!=null&&Address.length()>0){\n\t\t\t\t\tcus0.setAddress(Address);\n\t\t\t\t}\n\t\t\t\tif(Tel!=null&&Tel.length()>0){\n\t\t\t\t\tcus0.setTel(Tel);\n\t\t\t\t}\n\t\t\t\tif(ZipCode!=null&&ZipCode.length()>0){\n\t\t\t\t\tcus0.setZipCode(ZipCode);\n\t\t\t\t}\n\t\t\t\tif(!(new CustomerManager()).update(cus0)){\n\t\t\t\t\tthrow new Exception(\"更新委托单位失败!\");\t\t\t\t\n\t\t\t\t}\n\t\t\t\t/************更新委托单位联系人信息***********/\t\n\t\t\t\t Timestamp now = new Timestamp(System.currentTimeMillis());// 取当前时间\n\t\t\t\tCustomerContactorManager cusConMgr = new CustomerContactorManager();\n\t\t\t\tList<CustomerContactor> cusConList = cusConMgr.findByVarProperty(new KeyValueWithOperator(\"customerId\", CustomerId, \"=\"), new KeyValueWithOperator(\"name\", Contactor, \"=\"));\n\t\t\t\tif(cusConList != null){\n\t\t\t\t\tif(cusConList.size() > 0){\n\t\t\t\t\t\tCustomerContactor c = cusConList.get(0);\n\t\t\t\t\t\tif(ContactorTel.length() > 0){\n\t\t\t\t\t\t\tif(!ContactorTel.equalsIgnoreCase(c.getCellphone1()) && (c.getCellphone2() == null || c.getCellphone2().length() == 0)){\n\t\t\t\t\t\t\t\tc.setCellphone2(c.getCellphone1());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tc.setCellphone1(ContactorTel);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tc.setLastUse(now);\n\t\t\t\t\t\tc.setCount(c.getCount()+1);\n\t\t\t\t\t\tif(!cusConMgr.update(c))\n\t\t\t\t\t\t\tthrow new Exception(\"更新单位联系人失败!\");\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tCustomerContactor c = new CustomerContactor();\n\t\t\t\t\t\tc.setCustomerId(CustomerId);\n\t\t\t\t\t\tc.setName(Contactor);\n\t\t\t\t\t\tc.setCellphone1(ContactorTel);\n\t\t\t\t\t\tc.setLastUse(now);\n\t\t\t\t\t\tc.setCount(1);\n\t\t\t\t\t\tif(!cusConMgr.save(c))\n\t\t\t\t\t\t\tthrow new Exception(\"更新单位联系人失败!\");\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//生成现场任务委托书号\n\t\t\t\tString year = String.format(\"%04d\", Calendar.getInstance().get(Calendar.YEAR));\n\t\t\t\tString queryString = \"select max(model.code) from LocaleMission as model where model.code like ? and LENGTH(model.code)=10\";\n\t\t\t\tList<Object> retList = locmissMgr.findByHQL(queryString, year+\"%\");\n\t\t\t\tInteger codeBeginInt = Integer.parseInt(\"000000\");\n\t\t\t\tif(retList.size() > 0 && retList.get(0) != null){\n\t\t\t\t\tcodeBeginInt = Integer.parseInt(retList.get(0).toString().substring(4,10)) + 1;\n\t\t\t\t}\n\t\t\t\tString Code = year + String.format(\"%06d\", codeBeginInt);\n\t\t\t\tlocalmission.setCode(Code);\n\t\t\t\t\n\n\t\t\t\tSysUser newUser = new SysUser();;\n\t\t\t\tif(SiteManagerId!=null&&SiteManagerId.length()>0){\n\t\t\t\t\tnewUser.setId(Integer.parseInt(SiteManagerId));\n\t\t\t\t\tlocalmission.setSysUserBySiteManagerId(newUser);\n\t\t\t\t}else{\n\t\t\t\t\tlocalmission.setSysUserBySiteManagerId(null);\n\t\t\t\t}\n\t\t\t\tlocalmission.setStatus(4);// status: 1 未完成 2 已完成 3已删除 4负责人未核定 5负责人已核定\t\t\t\t\n\n\t\t\t\t\n\t\t\t\tTimestamp now0 = new Timestamp(System.currentTimeMillis());// 取当前时间\n\t\t\t\tlocalmission.setCreateTime(now0);// 创建时间为当前时间\n\t\t\t\tlocalmission.setSysUserByCreatorId((SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser));\n\t\t\t\tlocalmission.setModificatorDate(now0);// 记录时间为当前时间\n\t\t\t\tlocalmission.setSysUserByModificatorId((SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser));\n\t\t\t\t\n\t\t\t\tApplianceSpeciesManager speciesMgr = new ApplianceSpeciesManager();\t//器具分类管理Mgr\n\t\t\t\tApplianceStandardNameManager sNameMgr = new ApplianceStandardNameManager();\t//器具标准名称管理Mgr\n\t\t\t\tAppliancePopularNameManager popNameMgr = new AppliancePopularNameManager();\t//器具常用名称管理Mgr\n\t\t\t\tQualificationManager qualMgr = new QualificationManager();\t//检测人员资质管理Mgr\n\t\t\t\tApplianceManufacturerManager mafMgr = new ApplianceManufacturerManager();\t//制造厂管理Mgr\n\t\t\t\tList<LocaleApplianceItem> localeAppItemList = new ArrayList<LocaleApplianceItem>();\t//现场业务中要添加的器具\n\t\t\t\tList<SysUser> alloteeList = new ArrayList<SysUser>();\t//委托单列表对应的派定人:\n\t\t\t\tList<Integer> qualList = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/******************** 添加器具信息 ******************/\n\t\t\t\tfor(int i = 0; i < appliancesArray.length(); i++){\n\t\t\t\t\tJSONObject jsonObj = appliancesArray.getJSONObject(i);\n\t\t\t\t\tLocaleApplianceItem localeAppItem = new LocaleApplianceItem();\n\t\t\t\t\t\n\t\t\t\t\t/********************** 添加器具信息 ************************/\n\t\t\t\t\tString SpeciesType = jsonObj.get(\"SpeciesType\").toString();\t//器具分类类型\n\t\t\t\t\tString ApplianceSpeciesId = jsonObj.get(\"ApplianceSpeciesId\").toString();\t//器具类别ID/标准名称ID\n\t\t\t\t\tString ApplianceName = jsonObj.getString(\"ApplianceName\");\t//器具名称\n\t\t\t\t\tString Manufacturer= jsonObj.getString(\"Manufacturer\");\t//制造厂\n\t\t\t\t\t\n\t\t\t\t\tif(SpeciesType!=null&&SpeciesType.length()>0){\n\t\t\t\t\t\tif(Integer.parseInt(SpeciesType) == 0){\t//0:标准名称;1:分类名称\n\t\t\t\t\t\t\tlocaleAppItem.setSpeciesType(false);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tString stdName = sNameMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = stdName;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//按需增加制造厂\n\t\t\t\t\t\t\tif(Manufacturer != null && Manufacturer.trim().length() > 0){\n\t\t\t\t\t\t\t\tint intRet = mafMgr.getTotalCount(new KeyValueWithOperator(\"applianceStandardName.id\", Integer.parseInt(ApplianceSpeciesId), \"=\"), new KeyValueWithOperator(\"manufacturer\", Manufacturer.trim(), \"=\"));\n\t\t\t\t\t\t\t\tif(intRet == 0){\n\t\t\t\t\t\t\t\t\tApplianceStandardName sNameTemp = new ApplianceStandardName();\n\t\t\t\t\t\t\t\t\tsNameTemp.setId(Integer.parseInt(ApplianceSpeciesId));\n\t\t\t\t\t\t\t\t\tApplianceManufacturer maf = new ApplianceManufacturer();\n\t\t\t\t\t\t\t\t\tmaf.setApplianceStandardName(sNameTemp);\n\t\t\t\t\t\t\t\t\tmaf.setManufacturer(Manufacturer.trim());\n\t\t\t\t\t\t\t\t\tmaf.setBrief(LetterUtil.String2Alpha(Manufacturer.trim()));\n\t\t\t\t\t\t\t\t\tmaf.setStatus(0);\n\t\t\t\t\t\t\t\t\tmafMgr.save(maf);\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\tlocaleAppItem.setSpeciesType(true);\t\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = speciesMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlocaleAppItem.setApplianceSpeciesId(Integer.parseInt(ApplianceSpeciesId));\t\t\t\t\t\n\t\t\t\t\t\tlocaleAppItem.setApplianceName(ApplianceName);\t//存器具名称\t\t\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setAppFactoryCode(jsonObj.getString(\"ApplianceCode\"));\t\t//出厂编号\n\t\t\t\t\tlocaleAppItem.setAppManageCode(jsonObj.getString(\"AppManageCode\"));\t\t//管理编号\n\t\t\t\t\tlocaleAppItem.setModel(jsonObj.getString(\"Model\"));\t\t//型号规格\n\t\t\t\t\tlocaleAppItem.setRange(jsonObj.getString(\"Range\"));\t\t//测量范围\n\t\t\t\t\tlocaleAppItem.setAccuracy(jsonObj.getString(\"Accuracy\"));\t//精度等级\n\t\t\t\t\tlocaleAppItem.setManufacturer(jsonObj.getString(\"Manufacturer\"));\t\t//制造厂商\n\t\t\t\t\tlocaleAppItem.setCertType(jsonObj.getString(\"ReportType\"));\t//报告形式\n\t\t\t\t\tif(jsonObj.has(\"TestFee\")&&jsonObj.getString(\"TestFee\").length()>0&&jsonObj.getString(\"TestFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setTestCost(Double.valueOf(jsonObj.getString(\"TestFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"RepairFee\")&&jsonObj.getString(\"RepairFee\").length()>0&&jsonObj.getString(\"RepairFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setRepairCost(Double.valueOf(jsonObj.getString(\"RepairFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"MaterialFee\")&&jsonObj.getString(\"MaterialFee\").length()>0&&jsonObj.getString(\"MaterialFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setMaterialCost(Double.valueOf(jsonObj.getString(\"MaterialFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setQuantity(Integer.parseInt(jsonObj.get(\"Quantity\").toString()));//台件数\t\n\t\t\t\t\tif(jsonObj.has(\"AssistStaff\")&&jsonObj.getString(\"AssistStaff\")!=null&&jsonObj.getString(\"AssistStaff\").trim().length()>0){\n\t\t\t\t\t\tlocaleAppItem.setAssistStaff(jsonObj.getString(\"AssistStaff\"));\t//存辅助派定人或替代人\t\t\n\t\t\t\t\t}\t\t\n\t\t\t\t\t/********************** 判断派定人是否存在及有效,并加入到alloteeList ****************************/\n\t\t\t\t\tString Allotee = jsonObj.getString(\"WorkStaff\");\n\t\t\t\t\tif(Allotee != null && Allotee.trim().length() > 0){\n\t\t\t\t\t\tAllotee = Allotee.trim();\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Object[]> qualRetList = qualMgr.getQualifyUsers(Allotee, localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, qualList);\n\t\t\t\t\t\tif(qualRetList != null && qualRetList.size() > 0){\n\t\t\t\t\t\t\tboolean alloteeChecked = false;\n\t\t\t\t\t\t\tfor(Object[] objArray : qualRetList){\n\t\t\t\t\t\t\t\tif(!qualMgr.checkUserQualify((Integer)objArray[0], localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, FlagUtil.QualificationType.Type_Except)){\t//没有该检验项目的检验排外属性\n\t\t\t\t\t\t\t\t\talloteeChecked = true;\n\t\t\t\t\t\t\t\t\tSysUser tempUser = new SysUser();\n\t\t\t\t\t\t\t\t\ttempUser.setId((Integer)objArray[0]);\n\t\t\t\t\t\t\t\t\ttempUser.setName((String)objArray[1]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlocaleAppItem.setSysUser(tempUser);\t\t//派定人\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(!alloteeChecked){\n\t\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlocaleAppItem.setSysUser(null);\t\t//派定人\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tlocaleAppItemList.add(localeAppItem);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (locAppItemMgr.saveByBatch(localeAppItemList,localmission)) { // 添加成功\n\t\t\t\t\tretObj.put(\"IsOK\", true);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"写入数据库失败!\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\ttry {\n\t\t\t\t\tretObj.put(\"IsOK\", false);\n\t\t\t\t\tretObj.put(\"msg\", String.format(\"处理失败!错误信息:%s\",(e != null && e.getMessage() != null)?e.getMessage():\"无\"));\n\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 1\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 1\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(\"text/html;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retObj.toString());\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 2: // 通过customerName查询现场任务委托单\n\t\t\tJSONObject resObj2 = new JSONObject();\n\t\t\ttry {\n\t\t\t\tString localmissionName = req.getParameter(\"QueryName\");\n\n\t\t\t\tif (localmissionName == null) {// 避免NullPointerException\n\t\t\t\t\tlocalmissionName = \"\";\n\t\t\t\t}\n\t\t\t\tString LocalemissionName = URLDecoder.decode(localmissionName,\"UTF-8\");\n\t\t\t\t\n\t\t\t\tint page = 1;// 查询页码\n\t\t\t\tif (req.getParameter(\"page\") != null)\n\t\t\t\t\tpage = Integer.parseInt(req.getParameter(\"page\").toString());\n\t\t\t\tint rows = 10;// 每页显示10行\n\t\t\t\tif (req.getParameter(\"rows\") != null)\n\t\t\t\t\trows = Integer.parseInt(req.getParameter(\"rows\").toString());\n\t\t\t\tList<LocaleMission> result;\n\t\t\t\tint total = 0;// 查询结果总数\n\t\t\t\tif (LocalemissionName == null || LocalemissionName.trim().length() == 0){// 默认查询,不输入单位名称\n\t\t\t\t\tresult = locmissMgr.findPagedAll(page, rows, new KeyValueWithOperator(\"status\", 3, \"<>\"));// 查询未被删除的任务\n\t\t\t\t\ttotal = locmissMgr.getTotalCount(new KeyValueWithOperator(\"status\", 3, \"<>\"));// 未被删除的任务总数\n\t\t\t\t} else{// 输入单位名称\n\t\t\t\t\tresult = locmissMgr.findPagedAll(page, rows, \n\t\t\t\t\t\t\tnew KeyValueWithOperator(\"customerName\", LocalemissionName,\"=\"), \n\t\t\t\t\t\t\tnew KeyValueWithOperator(\"status\", 3, \"<>\"));// 根据单位名称查询未被删除任务\n\t\t\t\t\ttotal = locmissMgr.getTotalCount(new KeyValueWithOperator(\"customer\", LocalemissionName, \"=\"),\n\t\t\t\t\t\t\tnew KeyValueWithOperator(\"status\", 3, \"<>\"));// 根据单位名称查询未被删除的任务总数\n\t\t\t\t}\n\t\t\t\tTimestamp today = new Timestamp(System.currentTimeMillis());// 取当前时间\n\t\t\t\t\n\t\t\t\tJSONArray options = new JSONArray();\n\t\t\t\tfor (LocaleMission loc : result) {\n\t\t\t\t\t// System.out.println(\"loc.getStatus():\"+loc.getStatus());\n\t\t\t\t\tif (loc.getStatus() != 3) {\n\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\toption.put(\"Id\", loc.getId());\n\t\t\t\t\t\toption.put(\"Name\", loc.getCustomerName());\n\t\t\t\t\t\toption.put(\"Code\", loc.getCode());\n\t\t\t\t\t\toption.put(\"CustomerId\", loc.getCustomer().getId());\n\t\t\t\t\t\toption.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\t\t\toption.put(\"Brief\", loc.getBrief());\n\t\t\t\t\t\toption.put(\"Region\", loc.getRegion().getName());\n\t\t\t\t\t\toption.put(\"RegionId\", loc.getRegion().getId());\n\t\t\t\t\t\toption.put(\"Address\", loc.getAddress_1());\n\t\t\t\t\t\toption.put(\"Remark\", loc.getRemark()==null?\"\":loc.getRemark());\n\t\t\t\t\t\toption.put(\"Tel\", loc.getTel());\n\t\t\t\t\t\toption.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\t\t\toption.put(\"Status\", loc.getStatus());\n\t\t\t\t\t\toption.put(\"Contactor\", loc.getContactor());\n\t\t\t\t\t\toption.put(\"ContactorTel\", loc.getContactorTel());\n\t\t\t\t\t\toption.put(\"Department\", loc.getDepartment());\n\t\t\t\t\t\toption.put(\"ExactTime\", loc.getExactTime()==null?\"\":DateTimeFormatUtil.DateTimeFormat.format(loc.getExactTime()));\n\t\t\t\t\t\t//option.put(\"MissionDesc\", loc.getMissionDesc());\n\t\t\t\t\t\toption.put(\"ModificatorDate\", loc.getModificatorDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getModificatorDate()));\n\t\t\t\t\t\toption.put(\"ModificatorId\", loc.getSysUserByModificatorId().getName());\n\t\t\t\t\t\toption.put(\"SiteManagerName\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getName());\n\t\t\t\t\t\toption.put(\"SiteManagerId\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getId());\n\t\t\t\t\t\toption.put(\"Staffs\", loc.getStaffs());\n\t\t\t\t\t\t//option.put(\"MissionDescEnter\", loc.getMissionDesc().replace(\"\\r\\n\", \"<br/>\"));\n\t\t\t\t\t\toption.put(\"Status\", loc.getStatus());\n\t\t\t\t\t\toption.put(\"Tag\", \"0\");//已核定\n\t\t\t\t\t\toption.put(\"CheckDate\", loc.getCheckDate()==null?\"\":DateTimeFormatUtil.DateTimeFormat.format(loc.getCheckDate()));//核定时间\n\t\t\t\t\t\toption.put(\"TentativeDate\", loc.getTentativeDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getTentativeDate()));\n\t\t\t\t\t\tif(loc.getStatus()==4&&loc.getTentativeDate()!=null){ //未核定\n\t\t\t\t\t\t\tif(loc.getTentativeDate().after(today)){//已到暂定日期可是未安排\n\t\t\t\t\t\t\t\toption.put(\"Tag\", \"1\");//未核定;;;已到暂定日期可是未安排\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\toption.put(\"Tag\", \"2\");//未核定;;;未到暂定日期\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\toptions.put(option);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresObj2.put(\"total\", total);\n\t\t\t\tresObj2.put(\"rows\", options);\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry{\n\t\t\t\t\tresObj2.put(\"total\", 0);\n\t\t\t\t\tresObj2.put(\"rows\", new JSONArray());\n\t\t\t\t}catch(Exception ex){}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 2\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 2\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\t\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(resObj2.toString());\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 3: // 修改现场任务委托单\n\t\t\tJSONObject retObj3 = new JSONObject();\n\t\t\ttry {\n\t\t\t\tString Id = req.getParameter(\"Id\").trim();\n\t\t\t\tString CustomerName = req.getParameter(\"Name\");\n\t\t\t\tint CustomerId=Integer.parseInt(req.getParameter(\"CustomerId\"));\n\t\t\t\tString ZipCode = req.getParameter(\"ZipCode\");\n\t\t\t\tString Department = req.getParameter(\"Department\");\n\t\t\t\tString Address = req.getParameter(\"Address\");\n\t\t\t\tString Tel = req.getParameter(\"Tel\");\n\t\t\t\tString ContactorTel = req.getParameter(\"ContactorTel\");\n\t\t\t\tString TentativeDate = req.getParameter(\"TentativeDate\");\n\t\t\t\tString CheckDate = req.getParameter(\"CheckDate\");//核定日期\n\t\t\t\t\n\t\t\t\tString SiteManagerId = req.getParameter(\"SiteManagerId\");\n\t\t\t\n\t\t\t\tString Contactor = req.getParameter(\"Contactor\");\n\t\t\t\tString RegionId = req.getParameter(\"RegionId\");\n\t\t\t\tString Remark = req.getParameter(\"Remark\");\n\t\t\t\tString HeadNameId = req.getParameter(\"HeadName\");\n\t\t\t\tif(HeadNameId==null||HeadNameId.length()==0){\n\t\t\t\t\tthrow new Exception(\"抬头名称不能为空!\");\t\t\t\t\n\t\t\t\t}\n\t\t\t\tAddressManager addrMgr = new AddressManager();\t\t\t\n\t\t\t\tAddress HeadNameAddr = new AddressManager().findById(Integer.parseInt(HeadNameId));\t//台头名称的单位\n\t\t\t\tString Appliances = req.getParameter(\"Appliances\").trim();\t//检验的器具\n\t\t\t\t\n\t\t\t\tJSONArray appliancesArray = new JSONArray(Appliances);\t//检查的器具\n\t\t\t\t\n\t\t\t\tint lid = Integer.parseInt(Id);// 获取Id\n\t\t\t\tLocaleMission localmission = locmissMgr.findById(lid);// 根据查询现场任务\n\t\t\t\tif(localmission == null){\n\t\t\t\t\tthrow new Exception(\"该现场检测业务不存在!\");\n\t\t\t\t}\n\t\t\t\tif(localmission.getStatus()==2||localmission.getStatus()==3){\n\t\t\t\t\tthrow new Exception(\"该现场检测业务'已完工'或‘已注销’,不能修改!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tTimestamp ts;\n if(TentativeDate==null||TentativeDate.length()==0){\n\t\t\t\t ts = null;\t//暂定日期\n }else{\n\t\t\t ts = new Timestamp(DateTimeFormatUtil.DateFormat.parse(TentativeDate).getTime());\t//暂定日期\n }\n Timestamp now = new Timestamp(System.currentTimeMillis());// 取当前时间\n \n localmission.setCustomerName(CustomerName==null?\"\":CustomerName);\n\t\t\t\tlocalmission.setAddress_1(Address==null?\"\":Address);\n\t\t\t\tlocalmission.setZipCode(ZipCode==null?\"\":ZipCode);\n\t\t\t\tlocalmission.setContactor(Contactor==null?\"\":Contactor);\n\t\t\t\tlocalmission.setTel(Tel==null?\"\":Tel);\n\t\t\t\tlocalmission.setContactorTel(ContactorTel==null?\"\":ContactorTel);\n\t\t\t\t//localmission.setMissionDesc(MissionDesc);\n\t\t\t\tlocalmission.setDepartment(Department);\n\t\t\t\t//localmission.setStaffs(staffs.toString());\n\t\t\t\tlocalmission.setTentativeDate(ts);\n\t\t\t\tRegion region = new Region();\n\t\t\t\tregion.setId(Integer.parseInt(RegionId));\n\t\t\t\tlocalmission.setRegion(region);\n\t\t\t\tlocalmission.setRemark(Remark);\n\t\t\t\tlocalmission.setAddress(HeadNameAddr);\n\t\t\t\t/************更新委托单位信息***********/\n\t\t\t\tCustomer cus=(new CustomerManager()).findById(CustomerId);\n\t\t\t\tif(CustomerName!=null&&CustomerName.length()>0){\n\t\t\t\t\tcus.setName(CustomerName);\n\t\t\t\t}\n\t\t\t\tif(Address!=null&&Address.length()>0){\n\t\t\t\t\tcus.setAddress(Address);\n\t\t\t\t}\n\t\t\t\tif(Tel!=null&&Tel.length()>0){\n\t\t\t\t\tcus.setTel(Tel);\n\t\t\t\t}\n\t\t\t\tif(ZipCode!=null&&ZipCode.length()>0){\n\t\t\t\t\tcus.setZipCode(ZipCode);\n\t\t\t\t}\n\t\t\t\tif(!(new CustomerManager()).update(cus)){\n\t\t\t\t\tthrow new Exception(\"更新委托单位失败!\");\t\t\t\t\n\t\t\t\t}\n\t\t\t\t/************更新委托单位联系人信息***********/\t\n\t\t\t\tCustomerContactorManager cusConMgr = new CustomerContactorManager();\n\t\t\t\tList<CustomerContactor> cusConList = cusConMgr.findByVarProperty(new KeyValueWithOperator(\"customerId\", CustomerId, \"=\"), new KeyValueWithOperator(\"name\", Contactor, \"=\"));\n\t\t\t\tif(cusConList != null){\n\t\t\t\t\tif(cusConList.size() > 0){\n\t\t\t\t\t\tCustomerContactor c = cusConList.get(0);\n\t\t\t\t\t\tif(ContactorTel.length() > 0){\n\t\t\t\t\t\t\tif(!ContactorTel.equalsIgnoreCase(c.getCellphone1()) && (c.getCellphone2() == null || c.getCellphone2().length() == 0)){\n\t\t\t\t\t\t\t\tc.setCellphone2(c.getCellphone1());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tc.setCellphone1(ContactorTel);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tc.setLastUse(now);\n\t\t\t\t\t\tc.setCount(c.getCount()+1);\n\t\t\t\t\t\tif(!cusConMgr.update(c))\n\t\t\t\t\t\t\tthrow new Exception(\"更新单位联系人失败!\");\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tCustomerContactor c = new CustomerContactor();\n\t\t\t\t\t\tc.setCustomerId(CustomerId);\n\t\t\t\t\t\tc.setName(Contactor);\n\t\t\t\t\t\tc.setCellphone1(ContactorTel);\n\t\t\t\t\t\tc.setLastUse(now);\n\t\t\t\t\t\tc.setCount(1);\n\t\t\t\t\t\tif(!cusConMgr.save(c))\n\t\t\t\t\t\t\tthrow new Exception(\"更新单位联系人失败!\");\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlocalmission.setCustomer(cus);\t\t\t\n\t\t\t\tif(CheckDate!=null&&CheckDate.length()>0){ //核定\n\t\t\t\t\tTimestamp CheckTime = new Timestamp(DateTimeFormatUtil.DateFormat.parse(CheckDate).getTime());\n\t\t\t\t\tlocalmission.setCheckDate(CheckTime);\n\t\t\t\t\tif(localmission.getStatus()==4){\n\t\t\t\t\t\t//localmission.setStatus(5);//已核定\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSysUser newUser = new SysUser();\n\t\t\t\tif(SiteManagerId!=null&&SiteManagerId.length()>0){ //负责人\n\t\t\t\t\tnewUser.setId(Integer.parseInt(SiteManagerId));\n\t\t\t\t\tlocalmission.setSysUserBySiteManagerId(newUser);\t\n\t\t\t\t}else{\n\t\t\t\t\tlocalmission.setSysUserBySiteManagerId(null);\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlocalmission.setModificatorDate(now);// 记录时间为当前时间\n\t\t\t\tlocalmission.setSysUserByModificatorId((SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser));\n\t\t\t\t\n\t\t\t\tApplianceSpeciesManager speciesMgr = new ApplianceSpeciesManager();\t//器具分类管理Mgr\n\t\t\t\tApplianceStandardNameManager sNameMgr = new ApplianceStandardNameManager();\t//器具标准名称管理Mgr\n\t\t\t\tAppliancePopularNameManager popNameMgr = new AppliancePopularNameManager();\t//器具常用名称管理Mgr\n\t\t\t\tQualificationManager qualMgr = new QualificationManager();\t//检测人员资质管理Mgr\n\t\t\t\tApplianceManufacturerManager mafMgr = new ApplianceManufacturerManager();\t//制造厂管理Mgr\n\t\t\t\t\n\t\t\t\tList<LocaleApplianceItem> localeAppItemList = new ArrayList<LocaleApplianceItem>();\t//现场业务中要添加的器具\n\t\t\t\tList<SysUser> alloteeList = new ArrayList<SysUser>();\t//委托单列表对应的派定人:\n\t\t\t\tList<Integer> qualList = new ArrayList<Integer>();\n\t\t\t\n\t\t\t\t/******************** 添加器具信息 ******************/\n\t\t\t\tfor(int i = 0; i < appliancesArray.length(); i++){\n\t\t\t\t\tJSONObject jsonObj = appliancesArray.getJSONObject(i);\n\t\t\t\t\tLocaleApplianceItem localeAppItem = new LocaleApplianceItem();\n\t\t\t\t\t\n\t\t\t\t\t/********************** 添加器具信息 ************************/\n\t\t\t\t\tString SpeciesType = (jsonObj.has(\"SpeciesType\")?jsonObj.get(\"SpeciesType\").toString():\"\");\t//器具分类类型\n\t\t\t\t\tString ApplianceSpeciesId = (jsonObj.has(\"ApplianceSpeciesId\")?jsonObj.get(\"ApplianceSpeciesId\").toString():\"\");\t//器具类别ID/标准名称ID\n\t\t\t\t\tString ApplianceName = jsonObj.getString(\"ApplianceName\");\t//器具名称\n\t\t\t\t\tString Manufacturer= jsonObj.getString(\"Manufacturer\");\t//制造厂\n\t\t\t\t\tif(SpeciesType!=null&&SpeciesType.length()>0){\n\t\t\t\t\t\tif(Integer.parseInt(SpeciesType) == 0){\t//0:标准名称;1:分类名称\n\t\t\t\t\t\t\tlocaleAppItem.setSpeciesType(false);\t\n\t\t\t\t\t\t\tString stdName = sNameMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = stdName;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//按需增加制造厂\n\t\t\t\t\t\t\tif(Manufacturer != null && Manufacturer.trim().length() > 0){\n\t\t\t\t\t\t\t\tint intRet = mafMgr.getTotalCount(new KeyValueWithOperator(\"applianceStandardName.id\", Integer.parseInt(ApplianceSpeciesId), \"=\"), new KeyValueWithOperator(\"manufacturer\", Manufacturer.trim(), \"=\"));\n\t\t\t\t\t\t\t\tif(intRet == 0){\n\t\t\t\t\t\t\t\t\tApplianceStandardName sNameTemp = new ApplianceStandardName();\n\t\t\t\t\t\t\t\t\tsNameTemp.setId(Integer.parseInt(ApplianceSpeciesId));\n\t\t\t\t\t\t\t\t\tApplianceManufacturer maf = new ApplianceManufacturer();\n\t\t\t\t\t\t\t\t\tmaf.setApplianceStandardName(sNameTemp);\n\t\t\t\t\t\t\t\t\tmaf.setManufacturer(Manufacturer.trim());\n\t\t\t\t\t\t\t\t\tmaf.setBrief(LetterUtil.String2Alpha(Manufacturer.trim()));\n\t\t\t\t\t\t\t\t\tmaf.setStatus(0);\n\t\t\t\t\t\t\t\t\tmafMgr.save(maf);\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\tlocaleAppItem.setSpeciesType(true);\t\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = speciesMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlocaleAppItem.setApplianceSpeciesId(Integer.parseInt(ApplianceSpeciesId));\t\t\t\t\t\n\t\t\t\t\t\tlocaleAppItem.setApplianceName(ApplianceName);\t//存器具名称\t\t\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setAppFactoryCode(jsonObj.getString(\"ApplianceCode\"));\t\t//出厂编号\n\t\t\t\t\tlocaleAppItem.setAppManageCode(jsonObj.getString(\"AppManageCode\"));\t\t//管理编号\n\t\t\t\t\tlocaleAppItem.setModel(jsonObj.getString(\"Model\"));\t\t//型号规格\n\t\t\t\t\tlocaleAppItem.setRange(jsonObj.getString(\"Range\"));\t\t//测量范围\n\t\t\t\t\tlocaleAppItem.setAccuracy(jsonObj.getString(\"Accuracy\"));\t//精度等级\n\t\t\t\t\tlocaleAppItem.setManufacturer(jsonObj.getString(\"Manufacturer\"));\t\t//制造厂商\n\t\t\t\t\tlocaleAppItem.setCertType(jsonObj.getString(\"ReportType\"));\t//报告形式\n\t\t\t\t\tif(jsonObj.has(\"TestFee\")&&jsonObj.getString(\"TestFee\").length()>0&&jsonObj.getString(\"TestFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setTestCost(Double.valueOf(jsonObj.getString(\"TestFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"RepairFee\")&&jsonObj.getString(\"RepairFee\").length()>0&&jsonObj.getString(\"RepairFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setRepairCost(Double.valueOf(jsonObj.getString(\"RepairFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"MaterialFee\")&&jsonObj.getString(\"MaterialFee\").length()>0&&jsonObj.getString(\"MaterialFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setMaterialCost(Double.valueOf(jsonObj.getString(\"MaterialFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setQuantity(Integer.parseInt(jsonObj.get(\"Quantity\").toString()));//台件数\t\n\t\t\t\t\tif(jsonObj.has(\"AssistStaff\")&&jsonObj.getString(\"AssistStaff\")!=null&&jsonObj.getString(\"AssistStaff\").trim().length()>0)\n\t\t\t\t\t\tlocaleAppItem.setAssistStaff(jsonObj.getString(\"AssistStaff\"));\t//存辅助派定人或替代人\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t/********************** 判断派定人是否存在及有效,并加入到alloteeList ****************************/\n\t\t\t\t\tString Allotee = jsonObj.getString(\"WorkStaff\");\n\t\t\t\t\tif(Allotee != null && Allotee.trim().length() > 0){\n\t\t\t\t\t\tAllotee = Allotee.trim();\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Object[]> qualRetList = qualMgr.getQualifyUsers(Allotee, localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, qualList);\n\t\t\t\t\t\tif(qualRetList != null && qualRetList.size() > 0){\n\t\t\t\t\t\t\tboolean alloteeChecked = false;\n\t\t\t\t\t\t\tfor(Object[] objArray : qualRetList){\n\t\t\t\t\t\t\t\tif(!qualMgr.checkUserQualify((Integer)objArray[0], localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, FlagUtil.QualificationType.Type_Except)){\t//没有该检验项目的检验排外属性\n\t\t\t\t\t\t\t\t\talloteeChecked = true;\n\t\t\t\t\t\t\t\t\tSysUser tempUser = new SysUser();\n\t\t\t\t\t\t\t\t\ttempUser.setId((Integer)objArray[0]);\n\t\t\t\t\t\t\t\t\ttempUser.setName((String)objArray[1]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlocaleAppItem.setSysUser(tempUser);\t\t//派定人\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(!alloteeChecked){\n\t\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlocaleAppItem.setSysUser(null);\t\t//派定人\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\tif(jsonObj.has(\"Id\")&&jsonObj.getString(\"Id\")!=null&&jsonObj.getString(\"Id\").trim().length()>0)\n\t\t\t\t\t\tlocaleAppItem.setId(Integer.parseInt(jsonObj.getString(\"Id\")));\n\t\t\t\t\tlocaleAppItemList.add(localeAppItem);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (locAppItemMgr.updateByBatch(localeAppItemList,localmission)) { // 修改现场业务,删除原现场业务中的器具信息,添加新的器具信息\n\t\t\t\t\tretObj3.put(\"IsOK\", true);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"更新数据库失败!\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry {\n\t\t\t\t\tretObj3.put(\"IsOK\", false);\n\t\t\t\t\tretObj3.put(\"msg\", String.format(\"处理失败!错误信息:%s\",(e != null && e.getMessage() != null)?e.getMessage() : \"无\"));\n\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 3\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 3\", e);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresp.setContentType(\"text/html;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retObj3.toString());\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 4: // 删除现场任务委托单\n\t\t\tJSONObject retJSON4 = new JSONObject();\n\t\t\ttry{\n\t\t\t\tint id = Integer.parseInt(req.getParameter(\"id\"));\n\t\t\t\tLocaleMission localmission = locmissMgr.findById(id);\n\t\t\t\tif(localmission.getStatus()==2||localmission.getStatus()==3){\n\t\t\t\t\tthrow new Exception(\"该现场检测业务'已完工'或‘已注销’,不能修改!\");\n\t\t\t\t}\n\t\t\t\tSysUser user = (SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser);\n\t\t\n\t\t\t\tif((!user.getId().equals(localmission.getSysUserByCreatorId().getId()))&&(!user.getName().equals(\"系统管理员\"))){\n\t\t\t\t\tthrow new Exception(\"你不是创建人或者系统管理员,不能删除!\");\n\t\t\t\t}\n\t\t\t\n\t\t\t\tlocalmission.setStatus(3);// 将指定Id任务状态置为3,表示已删除\n\t\t\t\tif(locmissMgr.update(localmission)){\n\t\t\t\t\tretJSON4.put(\"IsOK\", true);\n\t\t\t\t}else{\n\t\t\t\t\tthrow new Exception(\"更新数据库失败!\");\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\ttry{\n\t\t\t\t\tretJSON4.put(\"IsOK\", false);\n\t\t\t\t\tretJSON4.put(\"msg\", String.format(\"处理失败!错误信息:%s\",(e != null && e.getMessage() != null)?e.getMessage() : \"无\"));\n\t\t\t\t}catch(Exception ex){}\n\t\t\t\t\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 3\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 3\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retJSON4.toString());\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 5: // 查询车辆出车情况\n\t\t{\n\t\t\t\n\t\t\tString dateTime = req.getParameter(\"dateTime\");\n\t\t\tTimestamp ts = Timestamp.valueOf(String.format(\"%s 00:00:00\",\n\t\t\t\t\tdateTime.trim()));\n\t\t\tString CarNo = \"\";\n\t\t\tif (req.getParameter(\"Lisence\") != null)\n\t\t\t\tCarNo = URLDecoder.decode(req.getParameter(\"Lisence\").trim(),\n\t\t\t\t\t\t\"UTF-8\"); // 解决jquery传递中文乱码问题\n\t\t\tVehicleMissionManager vemissmag = new VehicleMissionManager();\n\t\t\tVehicleManager vemag = new VehicleManager();\n\t\t\tJSONObject res = new JSONObject();\n\t\t\ttry {\n\t\t\t\tint page = 1;\n\t\t\t\tif (req.getParameter(\"page\") != null)\n\t\t\t\t\tpage = Integer\n\t\t\t\t\t\t\t.parseInt(req.getParameter(\"page\").toString());\n\t\t\t\tint rows = 10;\n\t\t\t\tif (req.getParameter(\"rows\") != null)\n\t\t\t\t\trows = Integer\n\t\t\t\t\t\t\t.parseInt(req.getParameter(\"rows\").toString());\n\t\t\t\tList<VehicleMission> vehiclemission;\n\t\t\t\tList<Vehicle> vehicle;\n\t\t\t\tint total = 0;\n\t\t\t\tint limit=0;\n\t\t\t\tJSONArray options = new JSONArray();\n\n\t\t\t\tif (CarNo.length() == 0) {// 没有填写车辆牌照\n\t\t\t\t\t// System.out.println(\"0001111\");\n\t\t\t\t\tvehicle = vemag.findPagedAll(page, rows,\n\t\t\t\t\t\t\tnew KeyValueWithOperator(\"status\", 0, \"=\"));// 查询正常车辆\n\t\t\t\t\ttotal = vemag.getTotalCount(new KeyValueWithOperator(\n\t\t\t\t\t\t\t\"status\", 0, \"=\"));// 正常车辆数量\n\t\t\t\t\tfor (Vehicle ve : vehicle) {\n\t\t\t\t\t\tint[] CCCS = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n\t\t\t\t\t\n\t\t\t\t\t\tint veid = ve.getId();\n\t\t\t\t\t\tString license = vemag.findById(veid).getLicence();// 根据车辆id获取车牌号\n\t\t\t\t\t\tlimit= (vemag.findById(veid).getLimit()==null?0:vemag.findById(veid).getLimit());\n\t\t\t\t\t\tString driverName = \"\";\n\t\t\t\t\t\tif (vemag.findById(veid).getSysUser() != null) {\n\t\t\t\t\t\t\tdriverName = vemag.findById(veid).getSysUser().getName();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// System.out.println(license);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// System.out.println(driverName);\n\t\t\t\t\t\tCalendar ca = Calendar.getInstance();// 新建一个日历实例\n\t\t\t\t\t\tca.setTime(ts);\n\t\t\t\t\t\tint dow = ca.get(Calendar.DAY_OF_WEEK);// 得到选择的日期是一周的第几天\n\t\t\t\t\t\t//System.out.println(dow);\n\t\t\t\t\t\tif(dow==1)//选择的日期为周日,系统默认周日为一周第一天,可是咱们的周日为第七天\n\t\t\t\t\t\t\tca.add(Calendar.DATE, 2 - dow-7);// 获取该周的星期一的日期,周一为一周第一天 (刘振修改了,因为发现之前得到的是周日)\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tca.add(Calendar.DATE, 2 - dow);// 获取该周的星期一的日期,周一为一周第一天 (刘振修改了,因为发现之前得到的是周日)\n\t\t\t\t\t\tTimestamp mon = new Timestamp(ca.getTimeInMillis());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(mon);\n\t\t\t\t\t\tca.add(Calendar.DATE, 7);// 获取该周周日的日期,周日为一周最后一天\n\t\t\t\t\t\tTimestamp nextmon = new Timestamp(ca.getTimeInMillis());\n\t\t\t\t\t\t//System.out.println(nextmon);\n\t\t\t\t\t\t\n\t\t\t\t\t\tvehiclemission = vemissmag.findByVarProperty(new KeyValueWithOperator(\"drivingVehicle.vehicle\", ve, \"=\"),\n\t\t\t\t\t\t\t\tnew KeyValueWithOperator(\"drivingVehicle.beginDate\", nextmon,\"<\"), new KeyValueWithOperator(\"drivingVehicle.endDate\", mon, \">=\"),\n\t\t\t\t\t\t\t\tnew KeyValueWithOperator(\"localeMission.status\", 3, \"<>\"),new KeyValueWithOperator(\"drivingVehicle.vehicle.status\", 1, \"<>\"));// 查询任务安排在该周的现场任务\n\t\t\t\t\t\tif (vehiclemission.size() > 0) {// 如果存在查询结果\n\t\t\t\t\t\t\tString[] available = timeJudge(vehiclemission, mon,CCCS);\n\t\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\t\toption.put(\"driverName\", driverName);\n\t\t\t\t\t\t\toption.put(\"limit\", limit);\n\t\t\t\t\t\t\toption.put(\"vehicleid\", license);\n\t\t\t\t\t\t\toption.put(\"onea\", available[0]);\n\t\t\t\t\t\t\toption.put(\"onep\", available[1]);\n\t\t\t\t\t\t\toption.put(\"twoa\", available[2]);\n\t\t\t\t\t\t\toption.put(\"twop\", available[3]);\n\t\t\t\t\t\t\toption.put(\"threea\", available[4]);\n\t\t\t\t\t\t\toption.put(\"threep\", available[5]);\n\t\t\t\t\t\t\toption.put(\"foura\", available[6]);\n\t\t\t\t\t\t\toption.put(\"fourp\", available[7]);\n\t\t\t\t\t\t\toption.put(\"fivea\", available[8]);\n\t\t\t\t\t\t\toption.put(\"fivep\", available[9]);\n\t\t\t\t\t\t\toption.put(\"sixa\", available[10]);\n\t\t\t\t\t\t\toption.put(\"sixp\", available[11]);\n\t\t\t\t\t\t\toption.put(\"sevena\", available[12]);\n\t\t\t\t\t\t\toption.put(\"sevenp\", available[13]);\n\t\t\t\t\t\t\toptions.put(option);\n\t\t\t\t\t\t} else {// 查找不到任务说明本周都是空闲\n\t\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\t\toption.put(\"driverName\", driverName);\n\t\t\t\t\t\t\toption.put(\"limit\", limit);\n\t\t\t\t\t\t\toption.put(\"vehicleid\", license);\n\t\t\t\t\t\t\toption.put(\"onea\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"onep\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"twoa\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"twop\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"threea\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"threep\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"foura\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"fourp\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"fivea\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"fivep\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"sixa\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"sixp\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"sevena\", \"空闲\");\n\t\t\t\t\t\t\toption.put(\"sevenp\", \"空闲\");\n\t\t\t\t\t\t\toptions.put(option);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {// 填写了车辆牌照\n\t\t\t\t\tvehicle = vemag.findPagedAll(page, rows,\n\t\t\t\t\t\t\tnew KeyValueWithOperator(\"licence\", \"%\"+CarNo+\"%\", \"like\"),\n\t\t\t\t\t\t\tnew KeyValueWithOperator(\"status\", 0, \"=\"));// 根据填写车牌查找车辆\n\t\t\t\t\tint[] CCCS = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n\t\t\t\t\tif (vehicle.size() > 0) {// 查找到车辆\n\t\t\t\t\t\tfor (Vehicle ve : vehicle) {\n\t\t\t\t\t\t\ttotal = 1;\n\t\t\t\t\t\t\tint veid = ve.getId();// 获取车辆Id\n\t\t\t\t\t\t\tString driverName = \"\";\n\t\t\t\t\t\t\tlimit= (vemag.findById(veid).getLimit()==null?0:vemag.findById(veid).getLimit());\n\t\t\t\t\t\t\tif (vemag.findById(veid).getSysUser() != null) {\n\t\t\t\t\t\t\t\tdriverName = vemag.findById(veid).getSysUser()\n\t\t\t\t\t\t\t\t\t\t.getName();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCalendar ca = Calendar.getInstance();// 新建一个日历实例\n\t\t\t\t\t\t\tca.setTime(ts);\n\t\t\t\t\t\t\tint dow = ca.get(Calendar.DAY_OF_WEEK);// 得到选择的日期是一周的第几天\n\t\t\t\t\t\t\t//System.out.println(dow);\n\t\t\t\t\t\t\tif(dow==1)//选择的日期为周日,系统默认周日为一周第一天,可是咱们的周日为第七天\n\t\t\t\t\t\t\t\tca.add(Calendar.DATE, 2 - dow-7);// 获取该周的星期一的日期,周一为一周第一天 (刘振修改了,因为发现之前得到的是周日)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tca.add(Calendar.DATE, 2 - dow);// 获取该周的星期一的日期,周一为一周第一天 (刘振修改了,因为发现之前得到的是周日)\n\t\t\t\t\t\t\tTimestamp mon = new Timestamp(ca.getTimeInMillis());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(mon);\n\t\t\t\t\t\t\tca.add(Calendar.DATE, 7);// 获取该周周日的日期,周日为一周最后一天\n\t\t\t\t\t\t\tTimestamp nextmon = new Timestamp(ca.getTimeInMillis());\n\t\t\t\t\t\t\tvehiclemission = vemissmag.findByVarProperty(new KeyValueWithOperator(\"drivingVehicle.vehicle\", ve, \"=\"),\n\t\t\t\t\t\t\t\t\tnew KeyValueWithOperator(\"drivingVehicle.beginDate\", nextmon,\"<\"), new KeyValueWithOperator(\"drivingVehicle.beginDate\",mon, \">=\"),\n\t\t\t\t\t\t\t\t\tnew KeyValueWithOperator(\"localeMission.status\", 3, \"<>\"),new KeyValueWithOperator(\"drivingVehicle.vehicle.status\", 1, \"<>\"));\n\t\t\t\t\t\t\tif (vehiclemission.size() > 0) {\n\t\t\t\t\t\t\t\tString[] available = timeJudge(vehiclemission, mon,CCCS);\n\t\t\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\t\t\toption.put(\"driverName\", ve.getSysUser()==null?\"\":ve.getSysUser().getName());\n\t\t\t\t\t\t\t\toption.put(\"vehicleid\", ve.getLicence());\n\t\t\t\t\t\t\t\toption.put(\"limit\", limit);\n\t\t\t\t\t\t\t\toption.put(\"onea\", available[0]);\n\t\t\t\t\t\t\t\toption.put(\"onep\", available[1]);\n\t\t\t\t\t\t\t\toption.put(\"twoa\", available[2]);\n\t\t\t\t\t\t\t\toption.put(\"twop\", available[3]);\n\t\t\t\t\t\t\t\toption.put(\"threea\", available[4]);\n\t\t\t\t\t\t\t\toption.put(\"threep\", available[5]);\n\t\t\t\t\t\t\t\toption.put(\"foura\", available[6]);\n\t\t\t\t\t\t\t\toption.put(\"fourp\", available[7]);\n\t\t\t\t\t\t\t\toption.put(\"fivea\", available[8]);\n\t\t\t\t\t\t\t\toption.put(\"fivep\", available[9]);\n\t\t\t\t\t\t\t\toption.put(\"sixa\", available[10]);\n\t\t\t\t\t\t\t\toption.put(\"sixp\", available[11]);\n\t\t\t\t\t\t\t\toption.put(\"sevena\", available[12]);\n\t\t\t\t\t\t\t\toption.put(\"sevenp\", available[13]);\n\t\t\t\t\t\t\t\toptions.put(option);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\t\t\toption.put(\"driverName\", ve.getSysUser()==null?\"\":ve.getSysUser().getName());\n\t\t\t\t\t\t\t\toption.put(\"vehicleid\", ve.getLicence());\n\t\t\t\t\t\t\t\toption.put(\"limit\", limit);\n\t\t\t\t\t\t\t\toption.put(\"onea\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"onep\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"twoa\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"twop\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"threea\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"threep\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"foura\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"fourp\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"fivea\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"fivep\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"sixa\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"sixp\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"sevena\", \"空闲\");\n\t\t\t\t\t\t\t\toption.put(\"sevenp\", \"空闲\");\n\t\t\t\t\t\t\t\toptions.put(option);\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\tres.put(\"total\", total);\n\t\t\t\tres.put(\"rows\", options);\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry{\n\t\t\t\t\tres.put(\"total\", 0);\n\t\t\t\t\tres.put(\"rows\", new JSONArray());\n\t\t\t\t}catch(Exception e1){}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 5\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 5\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(res.toString());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tcase 6:// 业务调度中查询现场业务\n\t\t{\n\t\t\tJSONObject res = new JSONObject();\n\t\t\ttry {\n\t\t\t\tString QueryName = req.getParameter(\"QueryName\");\n\t\t\t\tString BeginDate = req.getParameter(\"History_BeginDate\");\n\t\t\t\tString EndDate = req.getParameter(\"History_EndDate\");\n\t\t\t\t//String MissionStatus = req.getParameter(\"MissionStatus\");\n\t\t\t\tString Department = req.getParameter(\"Department\");\n\t\t\t\tif (QueryName == null) {// 避免NullPointerException\n\t\t\t\t\tQueryName = \"\";\n\t\t\t\t}\n\t\t\t\tif (BeginDate == null) {// 避免NullPointerException\n\t\t\t\t\tBeginDate = \"\";\n\t\t\t\t}\n\t\t\t\tif (EndDate == null) {// 避免NullPointerException\n\t\t\t\t\tEndDate = \"\";\n\t\t\t\t}\n\t\t\t\t//if (MissionStatus == null) {// 避免NullPointerException\n\t\t\t\t//\tMissionStatus = \"\";\n\t\t\t\t//}\n\t\t\t\tif (Department == null) {// 避免NullPointerException\n\t\t\t\t\tDepartment = \"\";\n\t\t\t\t}\n\t\t\t\tint page = 1;// 查询页码\n\t\t\t\tif (req.getParameter(\"page\") != null)\n\t\t\t\t\tpage = Integer\n\t\t\t\t\t\t\t.parseInt(req.getParameter(\"page\").toString());\n\t\t\t\tint rows = 10;// 每页显示10行\n\t\t\t\tif (req.getParameter(\"rows\") != null)\n\t\t\t\t\trows = Integer\n\t\t\t\t\t\t\t.parseInt(req.getParameter(\"rows\").toString());\n\n\t\t\t\tString queryStr = \"from LocaleMission as model where (model.status = 1 or model.status = 5)\"; //已分配或已核定\n\t\t\t\tList<Object> keys = new ArrayList<Object>();\n\t\t\t\t//List<KeyValueWithOperator> condList = new ArrayList<KeyValueWithOperator>();\n\t\t\t\t//condList.add(new KeyValueWithOperator(\"status\", 3, \"<>\"));//注销\n\t\t\t\t\n\t\t\t\tif (QueryName != null && QueryName.trim().length() > 0) {\n\t\t\t\t\tString Name = URLDecoder.decode(QueryName.trim(),\n\t\t\t\t\t\t\t\"UTF-8\");\n\t\t\t\t\t\n\t\t\t\t\t//condList.add(new KeyValueWithOperator(\"customerName\",Name, \"=\"));\n\t\t\t\t\tqueryStr=queryStr+\" and model.customerName like ?\";\n\t\t\t\t\tkeys.add(\"%\" + Name + \"%\");\n\t\t\t\t}\n\n\t\t\t\tif (Department != null && Department.trim().length() > 0) {\n\t\t\t\t\tString department = URLDecoder.decode(Department.trim(),\n\t\t\t\t\t\t\t\"UTF-8\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tqueryStr=queryStr+\" and model.department like ?\";\n\t\t\t\t\tkeys.add(\"%\" + department + \"%\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (BeginDate != null && BeginDate.trim().length() > 0&&(EndDate == null || EndDate.trim().length() == 0)) {\n\t\t\t\t\tTimestamp beginTs = Timestamp.valueOf(String.format(\"%s 00:00:00\", BeginDate.trim()));\n\t\t\t\t\t//condList.add(new KeyValueWithOperator(\"tentativeDate\",beginTs, \">=\"));\n\t\t\t\t\t\n\t\t\t\t\tqueryStr=queryStr+\" and (model.tentativeDate >= ? or model.checkDate >= ? or model.exactTime >= ?)\";\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\t\n\t\t\t\t}else if (EndDate != null && EndDate.trim().length() > 0&&(BeginDate == null || BeginDate.trim().length() == 0)) {\n\t\t\t\t\tTimestamp endTs = Timestamp.valueOf(String.format(\n\t\t\t\t\t\t\t\"%s 23:59:00\", EndDate.trim()));\n\t\t\t\t\t\n\t\t\t\t // condList.add(new KeyValueWithOperator(\"tentativeDate\",endTs, \"<=\"));\n\t\t\t\t\tqueryStr=queryStr+\" and (model.tentativeDate <= ? or model.checkDate <= ? or model.exactTime <= ?)\";\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t}else if (BeginDate != null && BeginDate.trim().length() > 0&&EndDate != null && EndDate.trim().length() > 0) {\n\t\t\t\t\tTimestamp endTs = Timestamp.valueOf(String.format(\n\t\t\t\t\t\t\t\"%s 23:59:00\", EndDate.trim()));\n\t\t\t\t\tTimestamp beginTs = Timestamp.valueOf(String.format(\"%s 00:00:00\", BeginDate.trim()));\n\t\t\t\t\n\t\t\t\t // condList.add(new KeyValueWithOperator(\"tentativeDate\",endTs, \"<=\"));\n\t\t\t\t\tqueryStr=queryStr+\" and ((model.tentativeDate >= ? and model.tentativeDate <= ? ) or (model.checkDate >= ? and model.checkDate <= ? ) or (model.exactTime >= ? and model.exactTime <= ?))\";\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t}\n\n\t\t\t\tList<LocaleMission> result = locmissMgr.findPageAllByHQL(queryStr+\" order by model.createTime desc,model.id asc\",page,rows, keys);// \n\t\t\t\tint total = locmissMgr.getTotalCountByHQL(\"select count(model)\"+queryStr,keys);// \n\n\t\t\t\tJSONArray options = new JSONArray();\n\t\t\t\tTimestamp today = new Timestamp(System.currentTimeMillis());// 取当前时间\n\t\t\t\tfor (LocaleMission loc : result) {\n\t\t\t\t\t// System.out.println(\"loc.getStatus():\"+loc.getStatus());\n\t\t\t\t\t\n\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\toption.put(\"Id\", loc.getId());\n\t\t\t\t\t\toption.put(\"Name\", loc.getCustomerName());\n\t\t\t\t\t\toption.put(\"Code\", loc.getCode());\n\t\t\t\t\t\toption.put(\"CustomerId\", loc.getCustomer().getId());\n\t\t\t\t\t\toption.put(\"CreatorName\", loc.getSysUserByCreatorId().getName());\n\t\t\t\t\t\toption.put(\"CreateDate\",DateTimeFormatUtil.DateTimeFormat.format(loc.getCreateTime()) + loc.getSysUserByCreatorId().getName());\n\t\t\t\t\t\toption.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\t\t\toption.put(\"Brief\", loc.getBrief());\n\t\t\t\t\t\toption.put(\"RegionId\", loc.getRegion().getId());\n\t\t\t\t\t\toption.put(\"Region\", loc.getRegion().getName());\n\t\t\t\t\t\toption.put(\"Address\", loc.getAddress_1());\n\t\t\t\t\t\toption.put(\"Remark\", loc.getRemark()==null?\"\":loc.getRemark());\n\t\t\t\t\t\toption.put(\"Tel\", loc.getTel());\n\t\t\t\t\t\toption.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\t\t\toption.put(\"Status\", loc.getStatus());\n\t\t\t\t\t\toption.put(\"Contactor\", loc.getContactor());\n\t\t\t\t\t\toption.put(\"ContactorTel\", loc.getContactorTel());\n\t\t\t\t\t\toption.put(\"Department\", loc.getDepartment());\n\t\t\t\t\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\toption.put(\"ExactTime\", loc.getExactTime()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getExactTime()));\n\t\t\t\t\t\t//option.put(\"MissionDesc\", loc.getMissionDesc());\n\t\t\t\t\t\toption.put(\"ModificatorDate\", loc.getModificatorDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getModificatorDate()));\n\t\t\t\t\t\toption.put(\"ModificatorId\", loc.getSysUserByModificatorId().getName());\n\t\t\t\t\t\toption.put(\"SiteManagerName\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getName());\n\t\t\t\t\t\toption.put(\"SiteManagerId\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getId());\n\t\t\t\t\t\t//找现场业务下面的各个器具指派人\n\t\t\t\t\t\tString staffs=\"\";\n\t\t\t\t\t\tString queryString=\"from LocaleApplianceItem as a where a.localeMission.id = ?\";\n\t\t\t\t\t\tList<SysUser> workStaffs= locAppItemMgr.findByHQL(\"select distinct a.sysUser \"+queryString, loc.getId());\n\t\t\t\t\t\tif(!workStaffs.isEmpty()){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (SysUser user : workStaffs) {\n\t\t\t\t\t\t\t\tstaffs = staffs + user.getName()+\";\"; \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(loc.getSysUserBySiteManagerId()!=null){\n\t\t\t\t\t\t\tif(staffs.indexOf(loc.getSysUserBySiteManagerId().getName()+\";\")<0){\n\t\t\t\t\t\t\t\tstaffs = staffs + loc.getSysUserBySiteManagerId().getName()+\";\"; \t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//找现场业务下面的各个器具信息\n\t\t\t\t\t\tString missionDesc=\"\";\n\t\t\t\t\t\tList<LocaleApplianceItem> locAppList= locAppItemMgr.findByHQL(queryString, loc.getId());\n\t\t\t\t\t\tif(!locAppList.isEmpty()){\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (LocaleApplianceItem locApp : locAppList) {\n\t\t\t\t\t\t\t\tmissionDesc = missionDesc + locApp.getApplianceName()+\" \"+locApp.getQuantity()+\"<br/>\"; \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"Staffs\", staffs);\n\t\t\t\t\t\toption.put(\"VehicleLisences\", loc.getVehicleLisences()==null?\"\":loc.getVehicleLisences());\n\t\t\t\t\t\toption.put(\"MissionDesc\", missionDesc);\n\t\t\t\t\t\toption.put(\"Status\", loc.getStatus());\n\t\t\t\t\t\toption.put(\"Tag\", \"0\");//已核定\n\t\t\t\t\t\toption.put(\"Feedback\", loc.getFeedback()==null?\"\":loc.getFeedback());//反馈\n\t\t\t\t\t\toption.put(\"CheckDate\", loc.getCheckDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getCheckDate()));//核定时间\n\t\t\t\t\t\toption.put(\"TentativeDate\", loc.getTentativeDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getTentativeDate()));\n\t\t\t\t\t\tif(loc.getStatus()==4&&loc.getTentativeDate()!=null){ //未核定\n\t\t\t\t\t\t\tif(loc.getTentativeDate().after(today)){//已到暂定日期可是未安排\n\t\t\t\t\t\t\t\toption.put(\"Tag\", \"1\");//未核定;;;已到暂定日期可是未安排\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\toption.put(\"Tag\", \"2\");//未核定;;;未到暂定日期\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\toptions.put(option);\n\t\t\t\t}\n\t\t\t\tres.put(\"total\", total);\n\t\t\t\tres.put(\"rows\", options);\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tres.put(\"total\", 0);\n\t\t\t\t\tres.put(\"rows\", new JSONArray());\n\t\t\t\t} catch (JSONException ex) {\n\t\t\t\t}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 6\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 6\", e);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\t\n\t\t\t\tresp.getWriter().write(res.toString());\n\t\t\t}\n\n\t\t\tbreak;\n\t\t}\n\t\tcase 7:// 车辆调度\n\t\t{\n\t\t\tJSONObject retObj7 = new JSONObject();\n\t\t\ttry {\n\t\t\t\tString vehiclearrange = req.getParameter(\"vehiclearrange\").trim();// 车辆安排JSON\n\t\t\t\tJSONArray vehiclearrangeArray = new JSONArray(vehiclearrange);\n\t\t\t\tString missionarrange = req.getParameter(\"missionarrange\").trim();// 任务安排JSON\n\t\t\t\tJSONArray missionarrangeArray = new JSONArray(missionarrange);\n\t\t\t\tTimestamp beginTs;// 调度起始时间\n\t\t\t\tTimestamp endTs ;// 调度结束时间\n\t\t\t\n\t\t\t\tString ExactTime = req.getParameter(\"ExactTime\").trim();// 确定时间\n\t\t\t\tString BeginDate = req.getParameter(\"BeginDate\").trim();// 开始时间(发车时间)\n\t\t\t\tString AssemblingPlace = req.getParameter(\"AssemblingPlace\");// 集合地点\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\tbeginTs = Timestamp.valueOf(BeginDate);\n\t\t\t\tendTs = Timestamp.valueOf(String.format(\"%s 17:00:00\", ExactTime.trim()));\n\t\t\t\t\n\t\t\t\tVehicleManager vehmag = new VehicleManager();\n\t\t\t\tVehicleMissionManager vmmag = new VehicleMissionManager();\n\t\t\t\tLocaleMissionManager lmmag = new LocaleMissionManager();\n\t\t\t\tUserManager umag = new UserManager();\n\t\t\t\t\n\t\t\t\t/****************新建出车记录***********/\n\t\t\t\tString license = vehiclearrangeArray.getJSONObject(0).getString(\"vehicleid\"); // 获取调度车辆的牌照\n\t\t\t\tDrivingVehicle drivingvehicle=new DrivingVehicle();\n\t\t\t\tString driverName = req.getParameter(\"DriverName\");// 获取司机姓名\n\t\t\t\tList<SysUser> driver = umag.findByVarProperty(new KeyValueWithOperator(\"name\", driverName, \"=\"));// 获取司机的SysUser对象\n\t\t\t\tint driverid = -1;\n\t\t\t\tif (driver.size() > 0) {\n\t\t\t\t\tdriverid = driver.get(0).getId();// 获取司机id\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"司机姓名错误!\");\n\t\t\t\t}\n\t\t\t\tString People = req.getParameter(\"People\");// 坐车人员\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t/************ 检查输入的“坐车人员”信息中的用户是否存在 *******************/\t\n\t\t\t\tStringBuffer staffs = new StringBuffer(\"\");\n\t\t\t\tif(People!=null&&People.length()>0){\t\t\t\t\t\t\n\t\t\t\t\tPeople = People.replace(';', ';');// 分号若为全角转为半角\n\t\t\t\t\tUserManager userMgr = new UserManager();\n\t\t\t\t\tKeyValueWithOperator k1 = new KeyValueWithOperator(\"status\", 0, \"=\"); \n\t\t\t\t\tString[] staff = People.split(\";+\");\n\t\t\t\t\t\n\t\t\t\t\tfor(String user : staff){\n\t\t\t\t\t\tKeyValueWithOperator k2 = new KeyValueWithOperator(\"name\", user, \"=\"); \n\t\t\t\t\t\tif(userMgr.getTotalCount(k1,k2) <= 0){\n\t\t\t\t\t\t\tthrow new Exception(String.format(\"现场检测人员 ‘%s’ 不存在或无效!\", user));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstaffs.append(user).append(\";\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tPeople=staffs.toString();\t\n\t\t\t\t\n\t\t\t\tdrivingvehicle.setAssemblingPlace(AssemblingPlace);\n\t\t\t\tdrivingvehicle.setBeginDate(beginTs);\n\t\t\t\tdrivingvehicle.setStatus(0);\n\t\t\t\tdrivingvehicle.setSysUserByDriverId(driver.get(0)); // 驾驶员\n\t\t\t\tdrivingvehicle.setEndDate(endTs);\t\t\t\t\t\n\t\t\t\tdrivingvehicle.setPeople(People);\n\t\t\t\tdrivingvehicle.setVehicle(vehmag.findByVarProperty(new KeyValueWithOperator(\"licence\", license,\"=\")).get(0));// 车辆\n\t\t\t\tif (!(new DrivingVehicleManager()).save(drivingvehicle)) {\n\t\t\t\t\tthrow new Exception(\"新建出车记录失败\");\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/*********************对每一个现场任务,新增一条VehicleMission记录*****************************/\n\t\t\t\tif (vehiclearrangeArray.length() > 0&& missionarrangeArray.length() > 0) {//,任务安排和车辆安排不为空\t\t\t\t\n//\t\t\t\t\tif (beginTs.after(endTs)) {\n//\t\t\t\t\t\tthrow new Exception(\"调度时间错误,任务发车时间和任务确定时间不在同一天\");\n//\t\t\t\t\t}\n\t\t\t\t\tfor (int i = 0; i < missionarrangeArray.length(); i++) {// 任务JSONArray遍历\n\t\t\t\t\t\tJSONObject misarr = missionarrangeArray.getJSONObject(i);\n\t\t\t\t\t\tint missionId = misarr.getInt(\"Id\");// 获取任务id\n\t\t\t\t\t\tLocaleMission lmission = lmmag.findById(missionId);// 根据任务id获取任务\n\t\t\t\t\t\tif(lmission.getStatus()==2||lmission.getStatus()==3){\n\t\t\t\t\t\t\tthrow new Exception(\"该现场检测业务'已完工'或‘已注销’,不能修改!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString templisences=(lmission.getVehicleLisences()==null?\"\":lmission.getVehicleLisences());//原任务所乘坐的车的车牌号\n\t\t\t\t\t\tString sssemblingPlace=(AssemblingPlace==null?\"\":AssemblingPlace);\n\t\t\t\t\t\tif(templisences.indexOf(license)<0){\n\t\t\t\t\t\t\tlmission.setVehicleLisences(templisences + license +\"(\"+ sssemblingPlace + \");\");//更新现场任务中的所乘车辆信息\n\t\t\t\t\t\t\t//lmission.setVehicleLisences(templisences + license + \";\");//更新现场任务中的所乘车辆信息\n\t\t\t\t\t\t}\n\t\t\t\t\t\tVehicleMission vm=new VehicleMission();//新增任务-出车记录信息\n\t\t\t\t\t\tvm.setDrivingVehicle(drivingvehicle);\n\t\t\t\t\t\tvm.setLocaleMission(lmission);\t\n\t\t\t\t\t\tif (vmmag.save(vm)) {\n\t\t\t\t\t\t\t// System.out.println(\"分配成功\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new Exception(\"分配失败\");//新增任务-出车记录信息\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tlmission.setStatus(1);//更新现场任务的状态(已分配),(是不是也要更新任务“确定时间”)\n\t\t\t\t\t\tlmission.setExactTime(beginTs);\t\t\t\t\t\t\n\t\t\t\t\t\tif (lmmag.update(lmission)) {\n\t\t\t\t\t\t\t//System.out.println(\"更新成功\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new Exception(\"任务状态更新失败\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tretObj7.put(\"IsOK\", true);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// System.out.println(\"update failed\");\n\t\t\t\ttry {\n\t\t\t\t\tretObj7.put(\"IsOK\", false);\n\t\t\t\t\tretObj7.put(\"msg\", String.format(\"处理失败!错误信息:%s\",\n\t\t\t\t\t\t\t(e != null && e.getMessage() != null) ? e\n\t\t\t\t\t\t\t\t\t.getMessage() : \"无\"));\n\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 7\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 7\", e);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresp.setContentType(\"text/html;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retObj7.toString());\n\t\t\t}\n\n\t\t\tbreak;\n\t\t}\n\t\tcase 8:// 查询现场业务(现场业务管理中使用)\n\t\t{\n\t\t\tJSONObject res = new JSONObject();\n\t\t\ttry {\n\t\t\t\tString QueryName = req.getParameter(\"QueryName\");\n\t\t\t\tString BeginDate = req.getParameter(\"History_BeginDate\");\n\t\t\t\tString EndDate = req.getParameter(\"History_EndDate\");\n\t\t\t\tString MissionStatus = req.getParameter(\"MissionStatus\");\n\t\t\t\tString Department = req.getParameter(\"Department\");\n\t\t\t\tString Code = req.getParameter(\"Code\");\n\t\t\t\tif (QueryName == null) {// 避免NullPointerException\n\t\t\t\t\tQueryName = \"\";\n\t\t\t\t}\n\t\t\t\tif (BeginDate == null) {// 避免NullPointerException\n\t\t\t\t\tBeginDate = \"\";\n\t\t\t\t}\n\t\t\t\tif (EndDate == null) {// 避免NullPointerException\n\t\t\t\t\tEndDate = \"\";\n\t\t\t\t}\n\t\t\t\tif (MissionStatus == null) {// 避免NullPointerException\n\t\t\t\t\tMissionStatus = \"\";\n\t\t\t\t}\n\t\t\t\tif (Department == null) {// 避免NullPointerException\n\t\t\t\t\tDepartment = \"\";\n\t\t\t\t}\n\t\t\t\tint page = 1;// 查询页码\n\t\t\t\tif (req.getParameter(\"page\") != null)\n\t\t\t\t\tpage = Integer\n\t\t\t\t\t\t\t.parseInt(req.getParameter(\"page\").toString());\n\t\t\t\tint rows = 10;// 每页显示10行\n\t\t\t\tif (req.getParameter(\"rows\") != null)\n\t\t\t\t\trows = Integer\n\t\t\t\t\t\t\t.parseInt(req.getParameter(\"rows\").toString());\n\n\t\t\t\tString queryStr = \"from LocaleMission as model where model.status <> 3 \";\n\t\t\t\tList<Object> keys = new ArrayList<Object>();\n\t\t\t\t//List<KeyValueWithOperator> condList = new ArrayList<KeyValueWithOperator>();\n\t\t\t\t//condList.add(new KeyValueWithOperator(\"status\", 3, \"<>\"));//注销\n\t\t\t\t\n\t\t\t\tif (QueryName != null && QueryName.trim().length() > 0) {\n\t\t\t\t\tString Name = URLDecoder.decode(QueryName.trim(),\n\t\t\t\t\t\t\t\"UTF-8\");\n\t\t\t\t\t\n\t\t\t\t\t//condList.add(new KeyValueWithOperator(\"customerName\",Name, \"=\"));\n\t\t\t\t\tqueryStr=queryStr+\" and model.customerName like ?\";\n\t\t\t\t\tkeys.add(\"%\" + Name + \"%\");\n\t\t\t\t}\n\t\t\t\tif (MissionStatus != null && MissionStatus.trim().length() > 0) {\n\t\t\t\t\tint status = Integer.parseInt(URLDecoder.decode(MissionStatus.trim(),\"UTF-8\"));\n\n\t\t\t\t\tif(status==0){//未完工\n\t\t\t\t\t\tqueryStr=queryStr+\" and model.status <> ?\";\n\t\t\t\t\t\n\t\t\t\t\t\tkeys.add(2);\n\t\t\t\t\t}else{\n\t\t\t\t\t//condList.add(new KeyValueWithOperator(\"status\",status, \"=\"));\n\t\t\t\t\t\tqueryStr=queryStr+\" and model.status = ?\";\n\t\t\t\t\t\tkeys.add(status);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (Department != null && Department.trim().length() > 0) {\n\t\t\t\t\tString department = URLDecoder.decode(Department.trim(),\n\t\t\t\t\t\t\t\"UTF-8\");\n\t\t\t\t\t\n\t\t\t\t\t//condList.add(new KeyValueWithOperator(\"department\",\"%\"+department+\"%\", \"like\"));\n\t\t\t\t\tqueryStr=queryStr+\" and model.department like ?\";\n\t\t\t\t\tkeys.add(\"%\" + department + \"%\");\n\t\t\t\t}\n\t\t\t\tif (BeginDate != null && BeginDate.trim().length() > 0&&(EndDate == null || EndDate.trim().length() == 0)) {\n\t\t\t\t\tTimestamp beginTs = Timestamp.valueOf(String.format(\"%s 00:00:000\", BeginDate.trim()));\n\t\t\t\t\t//condList.add(new KeyValueWithOperator(\"tentativeDate\",beginTs, \">=\"));\n\t\t\t\t\t\n\t\t\t\t\tqueryStr=queryStr+\" and (model.tentativeDate >= ? or model.checkDate >= ? or model.exactTime >= ?)\";\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\t\n\t\t\t\t}else if (EndDate != null && EndDate.trim().length() > 0&&(BeginDate == null || BeginDate.trim().length() == 0)) {\n\t\t\t\t\tTimestamp endTs = Timestamp.valueOf(String.format(\n\t\t\t\t\t\t\t\"%s 23:59:00\", EndDate.trim()));\n\t\t\t\t\t\n\t\t\t\t // condList.add(new KeyValueWithOperator(\"tentativeDate\",endTs, \"<=\"));\n\t\t\t\t\tqueryStr=queryStr+\" and (model.tentativeDate <= ? or model.checkDate <= ? or model.exactTime <= ?)\";\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t}else if (BeginDate != null && BeginDate.trim().length() > 0&&EndDate != null && EndDate.trim().length() > 0) {\n\t\t\t\t\tTimestamp endTs = Timestamp.valueOf(String.format(\"%s 23:59:00\", EndDate.trim()));\n\t\t\t\t\tTimestamp beginTs = Timestamp.valueOf(String.format(\"%s 00:00:000\", BeginDate.trim()));\n\t\t\t\t\n\t\t\t\t // condList.add(new KeyValueWithOperator(\"tentativeDate\",endTs, \"<=\"));\n\t\t\t\t\tqueryStr=queryStr+\" and ((model.tentativeDate >= ? and model.tentativeDate <= ? ) or (model.checkDate >= ? and model.checkDate <= ? ) or (model.exactTime >= ? and model.exactTime <= ?))\";\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t\tkeys.add(beginTs);\n\t\t\t\t\tkeys.add(endTs);\n\t\t\t\t}\n\t\t\t\tif (Code != null && Code.trim().length() > 0) {\n\t\t\t\t\tString code = URLDecoder.decode(Code.trim(),\n\t\t\t\t\t\t\t\"UTF-8\");\n\t\t\t\t\tqueryStr=queryStr+\" and model.code like ?\";\n\t\t\t\t\tkeys.add(\"%\" + code + \"%\");\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tList<LocaleMission> result = locmissMgr.findPageAllByHQL(queryStr+\" order by model.checkDate asc,model.id asc\",page,rows, keys);// 查询未被删除的任务\n\t\t\t\tint total = locmissMgr.getTotalCountByHQL(\"select count(model)\"+queryStr,keys);// 未被删除的任务总数\n\n\t\t\t\tJSONArray options = new JSONArray();\n\t\t\t\tTimestamp today = new Timestamp(System.currentTimeMillis());// 取当前时间\n\t\t\t\tfor (LocaleMission loc : result) {\n\t\t\t\t\t// System.out.println(\"loc.getStatus():\"+loc.getStatus());\n\t\t\t\t\t\n\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\toption.put(\"Id\", loc.getId());\n\t\t\t\t\t\toption.put(\"Name\", loc.getCustomerName());\n\t\t\t\t\t\toption.put(\"Code\", loc.getCode());\n\t\t\t\t\t\toption.put(\"CustomerId\", loc.getCustomer().getId());\n\t\t\t\t\t\t//option.put(\"CreatorName\", loc.getSysUserByCreatorId().getName());\n\t\t\t\t\t\toption.put(\"CreateDate\",DateTimeFormatUtil.DateTimeFormat.format(loc.getCreateTime())+\" \"+loc.getSysUserByCreatorId().getName());\n\t\t\t\t\t\toption.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\t\t\toption.put(\"Brief\", loc.getBrief());\n\t\t\t\t\t\toption.put(\"RegionId\", loc.getRegion().getId());\n\t\t\t\t\t\toption.put(\"Region\", loc.getRegion().getName());\n\t\t\t\t\t\toption.put(\"Address\", loc.getAddress_1());\n\t\t\t\t\t\toption.put(\"Remark\", loc.getRemark()==null?\"\":loc.getRemark());\n\t\t\t\t\t\toption.put(\"Tel\", loc.getTel());\n\t\t\t\t\t\toption.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\t\t\toption.put(\"Status\", loc.getStatus());\n\t\t\t\t\t\toption.put(\"Contactor\", loc.getContactor());\n\t\t\t\t\t\toption.put(\"ContactorTel\", loc.getContactorTel());\n\t\t\t\t\t\toption.put(\"Department\", loc.getDepartment());\n\t\t\t\t\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\toption.put(\"ExactTime\", loc.getExactTime()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getExactTime()));\n\t\t\t\t\t\t//option.put(\"MissionDesc\", loc.getMissionDesc());\n\t\t\t\t\t\toption.put(\"ModificatorDate\", loc.getModificatorDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getModificatorDate()));\n\t\t\t\t\t\toption.put(\"ModificatorId\", loc.getSysUserByModificatorId().getName());\n\t\t\t\t\t\toption.put(\"SiteManagerName\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getName());\n\t\t\t\t\t\toption.put(\"SiteManagerId\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getId());\n\t\t\t\t\t\t//找现场业务下面的各个器具指派人\n\t\t\t\t\t\tString staffs=\"\";\n\t\t\t\t\t\tString queryString=\"from LocaleApplianceItem as a where a.localeMission.id = ?\";\n\t\t\t\t\t\tList<SysUser> workStaffs= locAppItemMgr.findByHQL(\"select distinct a.sysUser \"+queryString, loc.getId());\n\t\t\t\t\t\tif(!workStaffs.isEmpty()){\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (SysUser user : workStaffs) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tstaffs = staffs + user.getName()+\";\"; \t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(loc.getSysUserBySiteManagerId()!=null){\n\t\t\t\t\t\t\tif(staffs.indexOf(loc.getSysUserBySiteManagerId().getName()+\";\")<0){\n\t\t\t\t\t\t\t\tstaffs = staffs + loc.getSysUserBySiteManagerId().getName()+\";\"; \t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//找现场业务下面的各个器具指派人\n\t\t\t\t\t\t//String AssistStaff=\"\";\n\t\t\t\t\t\t//String queryString1=\"from LocaleApplianceItem as a where a.localeMission.id = ?\";\n\t\t\t\t\t\tList<String> AssistStaffs= locAppItemMgr.findByHQL(\"select distinct a.assistStaff \"+queryString, loc.getId());\n\t\t\t\t\t\tif(!AssistStaffs.isEmpty()){\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String staff : AssistStaffs) {\n\t\t\t\t\t\t\t\tif(staff!=null)\n\t\t\t\t\t\t\t\t\tstaffs = staffs + staff +\";\"; \t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//找现场业务下面的各个器具信息\n\t\t\t\t\t\tString missionDesc=\"\";\n\t\t\t\t\t\tList<LocaleApplianceItem> locAppList= locAppItemMgr.findByHQL(queryString, loc.getId());\n\t\t\t\t\t\tif(!locAppList.isEmpty()){\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (LocaleApplianceItem locApp : locAppList) {\n\t\t\t\t\t\t\t\tmissionDesc = missionDesc + locApp.getApplianceName()+\" \"+locApp.getQuantity()+\"<br/>\"; \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"Staffs\", staffs);\n\t\t\t\t\t\toption.put(\"VehicleLisences\", loc.getVehicleLisences()==null?\"\":loc.getVehicleLisences());\n\t\t\t\t\t\toption.put(\"MissionDesc\", missionDesc);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//option.put(\"Status\", loc.getStatus());\n\t\t\t\t\t\toption.put(\"Tag\", \"0\");//已核定\n\t\t\t\t\t\toption.put(\"Feedback\", loc.getFeedback()==null?\"\":loc.getFeedback());//反馈\n\t\t\t\t\t\toption.put(\"CheckDate\", loc.getCheckDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getCheckDate()));//核定时间\n\t\t\t\t\t\toption.put(\"TentativeDate\", loc.getTentativeDate()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getTentativeDate()));\n\t\t\t\t\t\tif(loc.getStatus()==4&&loc.getTentativeDate()!=null){ //未核定\n\t\t\t\t\t\t\tif(loc.getTentativeDate().after(today)){//已到暂定日期可是未安排\n\t\t\t\t\t\t\t\toption.put(\"Tag\", \"1\");//未核定;;;已到暂定日期可是未安排\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\toption.put(\"Tag\", \"2\");//未核定;;;未到暂定日期\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\toption.put(\"HeadNameId\", loc.getAddress()==null?\"\":loc.getAddress().getId());\n\t\t\t\t\t\toption.put(\"HeadNameName\", loc.getAddress()==null?\"\":loc.getAddress().getHeadName());\n\t\t\t\t\t\toptions.put(option);\n\t\t\t\t}\n\t\t\t\tres.put(\"total\", total);\n\t\t\t\tres.put(\"rows\", options);\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tres.put(\"total\", 0);\n\t\t\t\t\tres.put(\"rows\", new JSONArray());\n\t\t\t\t} catch (JSONException ex) {\n\t\t\t\t}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 8\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 8\", e);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\t\n\t\t\t\tresp.getWriter().write(res.toString());\n\t\t\t}\n\n\t\t\tbreak;\n\t\t}\n\t\tcase 9: // 现场任务反馈操作\n\t\t\tJSONObject retJSON9 = new JSONObject();\n\t\t\ttry{\n\t\t\t\tint id = Integer.parseInt(req.getParameter(\"Id\"));\n\t\t\t\tString Feedback = req.getParameter(\"Feedback\");\n\t\t\t\tLocaleMission localmission = locmissMgr.findById(id);\n\t\t\t\n\t\t\t\tSysUser loginuser=(SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser);\n\t\t\t\tTimestamp today = new Timestamp(System.currentTimeMillis());// 取当前时间\n\t\t\t\tString loginname = (loginuser==null?\"\":loginuser.getName());\n\t\t\t\tString now=DateTimeFormatUtil.DateTimeFormat.format(today);\n\t\t\t\t\n\t\t\t\tFeedback=String.format(\"%s (%s %s)\", Feedback,loginname,now);\t\t\t\n\t\t\t\tlocalmission.setFeedback(Feedback);\n\t\t\t\t//localmission.setStatus(2);// 将指定Id任务状态置为2,表示已完工\n\t\t\t\t\n\t\t\t\tif(locmissMgr.update(localmission)){\n\t\t\t\t\tretJSON9.put(\"IsOK\", true);\n\t\t\t\t}else{\n\t\t\t\t\tthrow new Exception(\"更新数据库失败!\");\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\ttry{\n\t\t\t\t\tretJSON9.put(\"IsOK\", false);\n\t\t\t\t\tretJSON9.put(\"msg\", String.format(\"处理失败!错误信息:%s\",(e != null && e.getMessage() != null)?e.getMessage() : \"无\"));\n\t\t\t\t}catch(Exception ex){}\n\t\t\t\t\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 9\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 9\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(\"text/html;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retJSON9.toString());\n\t\t\t}\n\t\t\tbreak;\t\n\t\tcase 10: // 其他交通方式,车辆信息里面添“来车”“自行车”等;\n\t\t\tJSONObject retJSON10 = new JSONObject();\n\t\t\ttry{\n\t\t\t\tint id = Integer.parseInt(req.getParameter(\"id\"));\n\t\t\t\n\t\t\t\tString ExactTime =req.getParameter(\"ExactTime\");\n\t\t\t\tString Remark =req.getParameter(\"Remark\");\n\t\t\t\tString QTway =req.getParameter(\"QTway\");\n\t\t\t\t\n\t\t\t\tTimestamp extime=new java.sql.Timestamp(DateTimeFormatUtil.DateFormat.parse(ExactTime).getTime());\t\n\t\t\t\tLocaleMission localmission = locmissMgr.findById(id);\n\t\t\t\tif(localmission.getStatus()==2||localmission.getStatus()==3){\n\t\t\t\t\tthrow new Exception(\"该现场检测业务'已完工'或‘已注销’,不能修改!\");\n\t\t\t\t}\n\t\t\t\tif(QTway!=null&&QTway.length()>0){\n\t\t\t\t\tlocalmission.setVehicleLisences(URLDecoder.decode(QTway.trim(),\"UTF-8\"));\n\t\t\t\t}\n\t\t\t\tlocalmission.setStatus(1);// 将指定Id任务状态置为1,表示已分配\n\t\t\t\tlocalmission.setExactTime(extime);// \n\t\t\t\tif(Remark!=null&&Remark.length()>0){\n\t\t\t\t\tlocalmission.setRemark(URLDecoder.decode(Remark,\"UTF-8\"));// \n\t\t\t\t}\n\t\t\t\t//List<VehicleMission> veMiList = (new VehicleMissionManager()).findByVarProperty(new KeyValueWithOperator(\"localeMission\",localmission,\"=\"));\n\t\t\t\t\n\t\t\t\tif(!locmissMgr.update(localmission))\n\t\t\t\t\tthrow new Exception(\"更新数据库失败!\");;\n\t\t\t\tretJSON10.put(\"IsOK\", true);\n\t\t\t}catch(Exception e){\n\t\t\t\ttry{\n\t\t\t\t\tretJSON10.put(\"IsOK\", false);\n\t\t\t\t\tretJSON10.put(\"msg\", String.format(\"处理失败!错误信息:%s\",(e != null && e.getMessage() != null)?e.getMessage() : \"无\"));\n\t\t\t\t}catch(Exception ex){}\n\t\t\t\t\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 10\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 10\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retJSON10.toString());\n\t\t\t}\n\t\t\tbreak;\n\t \tcase 11:// 查询现场业务的器具信息\n\t\t\n\t\t\tJSONObject res = new JSONObject();\n\t\t\ttry {\n\t\t\t\tString Id = req.getParameter(\"Id\");\n\t\t\t\tif(Id!=null&&Id.length()>0){\n\t\t\t\t \n\t\t\t\t\tList<LocaleApplianceItem> result = locAppItemMgr.findByVarProperty(new KeyValueWithOperator(\"localeMission.id\",Integer.parseInt(Id),\"=\"));// \n\t\t\t\t\tint total = locAppItemMgr.getTotalCount(new KeyValueWithOperator(\"localeMission.id\",Integer.parseInt(Id),\"=\"));// \n\t\t\t\t\tApplianceSpeciesManager speciesMgr = new ApplianceSpeciesManager();\n\t\t\t\t\tApplianceStandardNameManager standardNameMgr = new ApplianceStandardNameManager();\n\t\t\t\t\tJSONArray options = new JSONArray();\n\t\t\t\t\tif(result != null && result.size() > 0){\n\t\t\t\t\t\tfor (LocaleApplianceItem loc : result) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\t\t\toption.put(\"Id\", loc.getId());\n\t\t\t\t\t\t\t\tif(loc.getSpeciesType()!=null){\n\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesId\", loc.getApplianceSpeciesId());\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\t\tif(loc.getSpeciesType()){\t//器具授权(分类)名称\n\t\t\t\t\t\t\t\t\t\toption.put(\"SpeciesType\", \"1\");\t//器具分类类型\n\t\t\t\t\t\t\t\t\t\tApplianceSpecies spe = speciesMgr.findById(loc.getApplianceSpeciesId());\n\t\t\t\t\t\t\t\t\t\tif(spe != null){\n\t\t\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesName\", spe.getName());\n\t\t\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesNameStatus\", spe.getStatus());\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else{\t//器具标准名称\n\t\t\t\t\t\t\t\t\t\toption.put(\"SpeciesType\", \"0\");\n\t\t\t\t\t\t\t\t\t\tApplianceStandardName stName = standardNameMgr.findById(loc.getApplianceSpeciesId());\n\t\t\t\t\t\t\t\t\t\tif(stName != null){\n\t\t\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesName\", stName.getName());\n\t\t\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesNameStatus\", stName.getStatus());\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\toption.put(\"ApplianceName\", loc.getApplianceName()==null?\"\":loc.getApplianceName());\t//器具名称(常用名称)\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesId\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesName\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\t\toption.put(\"ApplianceName\", \"\");\t//\n\t\t\t\t\t\t\t\t\toption.put(\"SpeciesType\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\t\toption.put(\"ApplianceSpeciesNameStatus\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\toption.put(\"ApplianceCode\", loc.getAppFactoryCode()==null?\"\":loc.getAppFactoryCode());\t//出厂编号\n\t\t\t\t\t\t\t\toption.put(\"AppManageCode\", loc.getAppManageCode()==null?\"\":loc.getAppManageCode());\t//管理编号\n\t\t\t\t\t\t\t\toption.put(\"Model\", loc.getApplianceName()==null?\"\":loc.getModel()==null?\"\":loc.getModel());\t//型号规格\n\t\t\t\t\t\t\t\toption.put(\"Range\", loc.getRange()==null?\"\":loc.getRange());\t\t//测量范围\n\t\t\t\t\t\t\t\toption.put(\"Accuracy\", loc.getAccuracy()==null?\"\":loc.getAccuracy());\t//精度等级\n\t\t\t\t\t\t\t\toption.put(\"Manufacturer\", loc.getManufacturer()==null?\"\":loc.getManufacturer());\t//制造厂商\n\t\t\t\t\t\t\t\toption.put(\"ReportType\", loc.getCertType()==null?\"\":loc.getCertType());\t//报告形式\n\t\t\t\t\t\t\t\toption.put(\"TestFee\", loc.getTestCost()==null?\"\":loc.getTestCost());\t//检测费\n\t\t\t\t\t\t\t\toption.put(\"RepairFee\", loc.getRepairCost()==null?\"\":loc.getRepairCost());\t//检测费\n\t\t\t\t\t\t\t\toption.put(\"MaterialFee\", loc.getMaterialCost()==null?\"\":loc.getMaterialCost());\t//检测费\n\t\t\t\t\t\t\t\toption.put(\"Quantity\", loc.getQuantity()==null?\"\":loc.getQuantity());\t//台/件数\n\t\t\t\t\t\t\t\toption.put(\"WorkStaff\", loc.getSysUser()==null?\"\":loc.getSysUser().getName());\t//派定人\n\t\t\t\t\t\t\t\toption.put(\"AssistStaff\", loc.getAssistStaff()==null?\"\":loc.getAssistStaff());\t//\n\t\t\t\t\t\t\t\toption.put(\"Remark\", loc.getRemark()==null?\"\":loc.getRemark());\t//\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\toptions.put(option);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tres.put(\"total\", total);\n\t\t\t\t\t\tres.put(\"rows\", options);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tres.put(\"total\", 0);\n\t\t\t\t\t\tres.put(\"rows\", new JSONArray());\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tthrow new Exception(\"Id空\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tres.put(\"total\", 0);\n\t\t\t\t\tres.put(\"rows\", new JSONArray());\n\t\t\t\t} catch (JSONException ex) {\n\t\t\t\t}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 11\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 11\", e);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\t\n\t\t\t\tresp.getWriter().write(res.toString());\n\t\t\t}\n\n\t\t\tbreak;\n\t \tcase 12: //查找委托单位的现场任务的历史器具信息\n\t\t\tJSONObject retJSON = new JSONObject();\n\t\t\tint totalSize = 0;\n\t\t\ttry {\n\t\t\t\tJSONArray jsonArray = new JSONArray();\n\t\t\t\tint page = 0;\t//当前页面\n\t\t\t\tif (req.getParameter(\"page\") != null)\n\t\t\t\t\tpage = Integer.parseInt(req.getParameter(\"page\").toString());\n\t\t\t\tint rows = 10;\t//页面大小\n\t\t\t\tif (req.getParameter(\"rows\") != null)\n\t\t\t\t\trows = Integer.parseInt(req.getParameter(\"rows\").toString());\n\t\t\t\tString CustomerName = req.getParameter(\"CustomerName\");\n\t\t\t\tif(CustomerName != null && CustomerName.trim().length() > 0){\n\t\t\t\t\tString ApplianceName = req.getParameter(\"ApplianceName\");\n\t\t\t\t\tString BeginDate = req.getParameter(\"BeginDate\");\n\t\t\t\t\tString EndDate = req.getParameter(\"EndDate\");\n\t\t\t\t\tString cusName = URLDecoder.decode(CustomerName.trim(), \"UTF-8\"); //解决jquery传递中文乱码问题\n\t\t\t\t\t//System.out.println(cusName);\n\t\t\t\t\tList<KeyValueWithOperator> condList = new ArrayList<KeyValueWithOperator>();\n\t\t\t\t\t\n\t\t\t\t\tcondList.add(new KeyValueWithOperator(\"localeMission.customerName\",cusName,\"=\"));\n\t\t\t\t\tif(BeginDate != null && BeginDate.length() > 0){\n\t\t\t\t\t\tcondList.add(new KeyValueWithOperator(\"localeMission.exactTime\", new Timestamp(java.sql.Date.valueOf(BeginDate).getTime()), \">=\"));\n\t\t\t\t\t}\n\t\t\t\t\tif(EndDate != null && EndDate.length() > 0){\n\t\t\t\t\t\tcondList.add(new KeyValueWithOperator(\"localeMission.exactTime\", new Timestamp(java.sql.Date.valueOf(EndDate).getTime()), \"<\"));\n\t\t\t\t\t}\n\t\t\t\t\tif(ApplianceName != null && ApplianceName.trim().length() > 0 ){\n\t\t\t\t\t\tString appName = URLDecoder.decode(ApplianceName.trim(), \"UTF-8\");\n\t\t\t\t\t\tcondList.add(new KeyValueWithOperator(\"applianceName\", \"%\"+appName+\"%\", \"like\"));\n\t\t\t\t\t}\n\t\t\t\t\tcondList.add(new KeyValueWithOperator(\"localeMission.status\", 3, \"<>\"));\n\t\t\t\t\ttotalSize = locAppItemMgr.getTotalCount(condList);\n\t\t\t\t\tList<LocaleApplianceItem> retList = locAppItemMgr.findPagedAllBySort(page, rows, \"localeMission.exactTime\", false, condList);\n\t\t\t\t\tif(retList != null && retList.size() > 0){\n\t\t\t\t\t\tApplianceSpeciesManager speciesMgr = new ApplianceSpeciesManager();\n\t\t\t\t\t\tApplianceStandardNameManager standardNameMgr = new ApplianceStandardNameManager();\n\t\t\t\t\t\n\t\t\t\t\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\tfor(LocaleApplianceItem locApp : retList){\n\t\t\t\t\t\t\tJSONObject jsonObj = new JSONObject();\n\t\t\t\t\t\t\tjsonObj.put(\"CustomerName\", locApp.getLocaleMission().getCustomerName());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(locApp.getSpeciesType()!=null){\n\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesId\", locApp.getApplianceSpeciesId());\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(locApp.getSpeciesType()){\t//器具授权(分类)名称\n\t\t\t\t\t\t\t\t\tjsonObj.put(\"SpeciesType\", 1);\t//器具分类类型\n\t\t\t\t\t\t\t\t\tApplianceSpecies spe = speciesMgr.findById(locApp.getApplianceSpeciesId());\n\t\t\t\t\t\t\t\t\tif(spe != null){\n\t\t\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesName\", spe.getName());\n\t\t\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesNameStatus\", spe.getStatus());\n\t\t\t\t\t\t\t\t\t}else{\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{\t//器具标准名称\n\t\t\t\t\t\t\t\t\tjsonObj.put(\"SpeciesType\", 0);\n\t\t\t\t\t\t\t\t\tApplianceStandardName stName = standardNameMgr.findById(locApp.getApplianceSpeciesId());\n\t\t\t\t\t\t\t\t\tif(stName != null){\n\t\t\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesName\", stName.getName());\n\t\t\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesNameStatus\", stName.getStatus());\n\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceName\", locApp.getApplianceName()==null?\"\":locApp.getApplianceName());\t//器具名称(常用名称)\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesId\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesName\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceName\", \"\");\t//\n\t\t\t\t\t\t\t\tjsonObj.put(\"SpeciesType\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t\tjsonObj.put(\"ApplianceSpeciesNameStatus\", \"\");\t//器具分类Id(或器具标准名称ID)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//jsonObj.put(\"ApplianceName\", locApp.getApplianceName()==null?\"\":locApp.getApplianceName());\t//器具名称(常用名称)\n\t\t\t\t\t\t\tjsonObj.put(\"ApplianceCode\", locApp.getAppFactoryCode()==null?\"\":locApp.getAppFactoryCode());\t//出厂编号\n\t\t\t\t\t\t\tjsonObj.put(\"AppManageCode\", locApp.getAppManageCode()==null?\"\":locApp.getAppManageCode());\t//管理编号\n\t\t\t\t\t\t\tjsonObj.put(\"Model\", locApp.getApplianceName()==null?\"\":locApp.getModel()==null?\"\":locApp.getModel());\t//型号规格\n\t\t\t\t\t\t\tjsonObj.put(\"Range\", locApp.getRange()==null?\"\":locApp.getRange());\t\t//测量范围\n\t\t\t\t\t\t\tjsonObj.put(\"Accuracy\", locApp.getAccuracy()==null?\"\":locApp.getAccuracy());\t//精度等级\n\t\t\t\t\t\t\tjsonObj.put(\"Manufacturer\", locApp.getManufacturer()==null?\"\":locApp.getManufacturer());\t//制造厂商\n\t\t\t\t\t\t\tjsonObj.put(\"ReportType\", locApp.getCertType()==null?\"\":locApp.getCertType());\t//报告形式\n\t\t\t\t\t\t\tjsonObj.put(\"TestFee\", locApp.getTestCost()==null?\"\":locApp.getTestCost());\t//检测费\n\t\t\t\t\t\t\tjsonObj.put(\"Quantity\", locApp.getQuantity()==null?\"\":locApp.getQuantity());\t//台/件数\n\t\t\t\t\t\t\tjsonObj.put(\"WorkStaff\", locApp.getSysUser()==null?\"\":locApp.getSysUser().getName());\t//派定人\n\t\t\t\t\t\t\tjsonObj.put(\"AssistStaff\", locApp.getAssistStaff()==null?\"\":locApp.getAssistStaff());\t//\n\t\t\t\t\t\t\tjsonObj.put(\"Remark\", locApp.getRemark()==null?\"\":locApp.getRemark());\t//\n\t\t\t\t\t\t\tjsonArray.put(jsonObj);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tthrow new Exception(\"委托单位名称为空!\");\n\t\t\t\t}\n\t\t\t\tretJSON.put(\"total\", totalSize);\n\t\t\t\tretJSON.put(\"rows\", jsonArray);\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tretJSON.put(\"total\", 0);\n\t\t\t\t\tretJSON.put(\"rows\", new JSONArray());\n\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t}\n\t\t\t\tif(e.getClass() == java.lang.Exception.class){\t//自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 12\", e);\n\t\t\t\t}else{\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 12\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(\"text/json;charset=utf-8\");\n\t\t\t\t//System.out.println(retJSON.toString());\n\t\t\t\tresp.getWriter().write(retJSON.toString());\n\t\t\t}\n\t\t\tbreak;\n\t \tcase 13://查询现场任务条目(用于打印)\n\t\t\tJSONObject resJson7 = new JSONObject();\n\t\t\ttry{\n\t\t\t\tString localeMissionId = req.getParameter(\"localeMissionId\"); \n\t\t\t\tList<KeyValueWithOperator> quoList = new ArrayList<KeyValueWithOperator>();\n\t\t\t\tList<LocaleApplianceItem> locAppItemList;\n\t\t\t\tCustomerManager cusMgr=new CustomerManager();\n\t\t\t\tCommissionSheetManager comsheetMgr=new CommissionSheetManager();\n\t\t\t\tList<CommissionSheet> comsheetList=new ArrayList<CommissionSheet>();\n\t\t\t\tint total5;\n\t\t\t\tif(localeMissionId == null)\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception(\"任务书号无效!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlocAppItemList = locAppItemMgr.findByVarProperty(new KeyValueWithOperator(\"localeMission.id\",Integer.parseInt(localeMissionId),\"=\"));\n\t\t\t\t\ttotal5 = locAppItemMgr.getTotalCount(new KeyValueWithOperator(\"localeMission.id\",Integer.parseInt(localeMissionId),\"=\"));\n\t\t\t\t}\n\t\t\t\tJSONArray optionsq = new JSONArray();\n\t\t\t\tint id=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor (LocaleApplianceItem locAppItem : locAppItemList) {\n\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\tString applianceInfo=\"\";\n\t\t\t\t\tif(locAppItem.getSpeciesType()!=null){\n\t\t\t\t\t\toption.put(\"Id\", id++);\n\t\t\t\t\t\tif(locAppItem.getApplianceName()==null||locAppItem.getApplianceName().length()==0){\n\t\t\t\t\t\t\tif(!locAppItem.getSpeciesType()){\n\t\t\t\t\t\t\t\tApplianceStandardNameManager standardNameMgr = new ApplianceStandardNameManager();\n\t\t\t\t\t\t\t\tApplianceStandardName stName = standardNameMgr.findById(locAppItem.getApplianceSpeciesId());\n\t\t\t\t\t\t\t\tif(stName != null){\n\t\t\t\t\t\t\t\t\toption.put(\"ApplianceName\", stName.getName());\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\tcontinue;\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\toption.put(\"ApplianceName\", locAppItem.getApplianceName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"Quantity\", locAppItem.getQuantity());\n\t\t\t\t\t\t\n\t\t\t\t\t\tcomsheetList=comsheetMgr.findByVarProperty(new KeyValueWithOperator(\"localeApplianceItemId\", locAppItem.getId(), \"=\"),\n\t\t\t\t\t\t\t\t\tnew KeyValueWithOperator(\"status\",FlagUtil.CommissionSheetStatus.Status_YiZhuXiao, \"<>\"));\n\t\t\t\t\t\tif(comsheetList!=null&&comsheetList.size()>0){\n\t\t\t\t\t\t\tapplianceInfo = applianceInfo + comsheetList.get(0).getCode()+\"/\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tapplianceInfo = applianceInfo + option.getString(\"ApplianceName\");\n\t\t\t\t\t\toption.put(\"Model\",locAppItem.getModel()==null?\"\":locAppItem.getModel());\n\t\t\t\t\t\toption.put(\"Accuracy\", locAppItem.getAccuracy()==null?\"\":locAppItem.getAccuracy());\n\t\t\t\t\t\toption.put(\"Range\", locAppItem.getRange()==null?\"\":locAppItem.getRange());\t\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"AppFactoryCode\", locAppItem.getAppFactoryCode()==null?\"\":locAppItem.getAppFactoryCode());\n\t\t\t\t\t\toption.put(\"AppManageCode\", locAppItem.getAppManageCode()==null?\"\":locAppItem.getAppManageCode());\n\t\t\t\t\t\toption.put(\"Manufacturer\", locAppItem.getManufacturer()==null?\"\":locAppItem.getManufacturer());\n\t\t\t\t\t\tif(option.getString(\"Model\").length()>0){\n\t\t\t\t\t\t\tapplianceInfo = applianceInfo + \"/\" + option.getString(\"Model\");\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\tif(option.getString(\"Range\").length()>0){\n\t\t\t\t\t\t\tapplianceInfo = applianceInfo + \"/\" + option.getString(\"Range\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(option.getString(\"Accuracy\").length()>0){\n\t\t\t\t\t\t\tapplianceInfo = applianceInfo + \"/\" + option.getString(\"Accuracy\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(option.getString(\"AppFactoryCode\").length()>0){\n\t\t\t\t\t\t\tapplianceInfo = applianceInfo + \"/\" + option.getString(\"AppFactoryCode\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(option.getString(\"AppManageCode\").length()>0){\n\t\t\t\t\t\t\tapplianceInfo = applianceInfo + \"/\" + option.getString(\"AppManageCode\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"applianceInfo\", applianceInfo);\n\t\t\t\t\t\tString CertType=\"\";\n\t\t\t\t\t\tif(locAppItem.getCertType()!=null&&locAppItem.getCertType().length()>0){\n\t\t\t\t\t\t\tif(locAppItem.getCertType().equals(\"1\")){\n\t\t\t\t\t\t\t\tCertType=\"检定\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(locAppItem.getCertType().equals(\"2\")){\n\t\t\t\t\t\t\t\tCertType=\"校准\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(locAppItem.getCertType().equals(\"3\")){\n\t\t\t\t\t\t\t\tCertType=\"检测\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(locAppItem.getCertType().equals(\"4\")){\n\t\t\t\t\t\t\t\tCertType=\"检验\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toption.put(\"CertType\", CertType);\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"TestCost\",locAppItem.getTestCost()==null?\"\":locAppItem.getTestCost());\n\t\t\t\t\t\toption.put(\"RepairCost\",locAppItem.getRepairCost()==null?\"\":locAppItem.getRepairCost());\n\t\t\t\t\t\toption.put(\"MaterialCost\",locAppItem.getMaterialCost()==null?\"\":locAppItem.getMaterialCost());\n\t\t\t\t\t\toption.put(\"WorkStaff\",locAppItem.getSysUser()==null?\"\":locAppItem.getSysUser().getName());\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toptionsq.put(option);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tfor (int i=0;i<21;i++) { //为了调试,空21行\n//\t\t\t\t\tJSONObject option = new JSONObject();\n//\t\t\t\t\toption.put(\"Id\", id++);\n//\t\t\t\t\toption.put(\"ApplianceName\", \" \");\t\n//\t\t\t\t\toption.put(\"applianceInfo\", \"\");\n//\t\t\t\t\toption.put(\"Model\",\" \");\n//\t\t\t\t\toption.put(\"Accuracy\", \" \");\n//\t\t\t\t\toption.put(\"Range\", \" \");\n//\t\t\t\t\toption.put(\"Quantity\", \" \");\n//\t\t\t\t\toption.put(\"AppFactoryCode\",\"\");\n//\t\t\t\t\toption.put(\"AppManageCode\", \"\");\n//\t\t\t\t\toption.put(\"Manufacturer\", \"\");\n//\t\t\t\t\toption.put(\"CertType\", \" \");\n//\t\t\t\t\toption.put(\"RepairCost\",\"\");\n//\t\t\t\t\toption.put(\"MaterialCost\",\"\");\n//\t\t\t\t\toption.put(\"TestCost\",\"\");\n//\t\t\t\t\toption.put(\"WorkStaff\",\"\");\n//\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\toptionsq.put(option);\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(id<=10){\n\t\t\t\t\tint temp=id;\n\t\t\t\t\tfor (int i=0;i<(10-temp);i++) { //首页10行\n\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\toption.put(\"Id\", id++);\n\t\t\t\t\t\toption.put(\"ApplianceName\", \" \");\t\n\t\t\t\t\t\toption.put(\"applianceInfo\", \"\");\n\t\t\t\t\t\toption.put(\"Model\",\" \");\n\t\t\t\t\t\toption.put(\"Accuracy\", \" \");\n\t\t\t\t\t\toption.put(\"Range\", \" \");\n\t\t\t\t\t\toption.put(\"Quantity\", \" \");\n\t\t\t\t\t\toption.put(\"AppFactoryCode\",\"\");\n\t\t\t\t\t\toption.put(\"AppManageCode\", \"\");\n\t\t\t\t\t\toption.put(\"Manufacturer\", \"\");\n\t\t\t\t\t\toption.put(\"CertType\", \" \");\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"TestCost\",\"\");\n\t\t\t\t\t\toption.put(\"RepairCost\",\"\");\n\t\t\t\t\t\toption.put(\"MaterialCost\",\"\");\n\t\t\t\t\t\toption.put(\"WorkStaff\",\"\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toptionsq.put(option);\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tint temp=id-10;\n\t\t\t\t\tfor (int i=0;i<(23-temp%22);i++) { //每页22行\n\t\t\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\t\t\toption.put(\"Id\", id++);\n\t\t\t\t\t\toption.put(\"ApplianceName\", \" \");\n\t\t\t\t\t\toption.put(\"applianceInfo\", \"\");\n\t\t\t\t\t\toption.put(\"Model\",\" \");\n\t\t\t\t\t\toption.put(\"Accuracy\", \" \");\n\t\t\t\t\t\toption.put(\"Range\", \" \");\n\t\t\t\t\t\toption.put(\"Quantity\", \" \");\n\t\t\t\t\t\toption.put(\"AppFactoryCode\",\"\");\n\t\t\t\t\t\toption.put(\"AppManageCode\", \"\");\n\t\t\t\t\t\toption.put(\"Manufacturer\", \"\");\n\t\t\t\t\t\toption.put(\"CertType\", \" \");\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toption.put(\"TestCost\",\"\");\n\t\t\t\t\t\toption.put(\"RepairCost\",\"\");\n\t\t\t\t\t\toption.put(\"MaterialCost\",\"\");\n\t\t\t\t\t\toption.put(\"WorkStaff\",\"\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toptionsq.put(option);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresJson7.put(\"total\", id);\n\t\t\t\tresJson7.put(\"rows\", optionsq);\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLocaleMission loc=locmissMgr.findById(Integer.parseInt(localeMissionId));\n\t\t\t\tresJson7.put(\"CustomerName\", loc.getCustomerName());\n\t\t\t\tresJson7.put(\"Code\", loc.getCode());\n\t\t\t\tresJson7.put(\"Department\", loc.getDepartment());\n\t\t\t\tresJson7.put(\"Address\", loc.getAddress_1());\n\t\t\t\tresJson7.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\tresJson7.put(\"Contactor\", loc.getContactor());\n\t\t\t\tresJson7.put(\"ContactorTel\", loc.getTel()==null?\"\":loc.getTel());\n\t\t\t\tresJson7.put(\"SiteManager\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getName());\n\t\t\t\tresJson7.put(\"HeadNameName\", loc.getAddress().getHeadName());\n\t\t\t\tresJson7.put(\"HeadNameAddress\", loc.getAddress().getAddress());\n\t\t\t\tresJson7.put(\"HeadNameFax\", loc.getAddress().getFax()==null?\"\":loc.getAddress().getFax());\n\t\t\t\tresJson7.put(\"HeadNameTel\", loc.getAddress().getTel()==null?\"\":loc.getAddress().getTel());//查询电话\n\t\t\t\tresJson7.put(\"HeadNameComplainTel\", loc.getAddress().getComplainTel()==null?\"\":loc.getAddress().getComplainTel());//投诉电话\n\t\t\t\tresJson7.put(\"HeadNameZipCode\", loc.getAddress().getZipCode()==null?\"\":loc.getAddress().getZipCode());//\n\t\t\t\t\n\t\t\t\tresJson7.put(\"PrintType\", \"\");//打印类型,0代表正常的表,1代表空表\n\t\t\t\t\n\t\t\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tif(loc.getExactTime()!=null){\n\t\t\t\t\tresJson7.put(\"ExactTime\", sf.format(loc.getExactTime()));//报价时间\\\n\t\t\t\t}else{\n\t\t\t\t\tresJson7.put(\"ExactTime\", \"\");//报价时间\\\n\t\t\t\t}\n\t\t\t\tresJson7.put(\"IsOK\", true);\n\t\t\t\treq.getSession().setAttribute(\"AppItemsList\", resJson7);\n\t\t\t\n\t\t\t\tresp.sendRedirect(\"/jlyw/TaskManage/LocaleMissionPrint.jsp\");\n\t\t\t}catch(Exception e){\n\t\t\t\ttry {\n\t\t\t\t\tresJson7.put(\"total\", 0);\n\t\t\t\t\tresJson7.put(\"rows\", new JSONArray());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresJson7.put(\"IsOK\", false);\n\t\t\t\t\t\tresJson7.put(\"msg\", String.format(\"查找现场委托书器具条目失败!错误信息:%s\", (e!=null && e.getMessage()!=null)?e.getMessage():\"无\"));\n\t\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e1) {}\n\t\t\t\tif(e.getClass() == java.lang.Exception.class){\t//自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 13\", e);\n\t\t\t\t}else{\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 13\", e);\n\t\t\t\t}\n\t\t\t\treq.getSession().setAttribute(\"AppItemsList\", resJson7);\n\t\t\t\t\n\t\t\t\tresp.sendRedirect(\"/jlyw/TaskManage/LocaleMissionPrint.jsp\");\n\t\t\t}\n\t\t\tbreak;\t\n\t \tcase 14: // 现场业务书导入到现场委托单时,根据委托单位名查询现场委托书号\n\t\t\tJSONArray jsonArray = new JSONArray();\n\t\t\ttry {\n\t\t\t\tString queryNameStr = req.getParameter(\"QueryName\");\t//查询的 “名称”\n\t\t\t\t\n\t\t\t\tif(queryNameStr != null && queryNameStr.trim().length() > 0){\n\t\t\t\t\tString queryName = new String(queryNameStr.trim().getBytes(\"ISO-8859-1\"), \"UTF-8\");\t//解决URL传递中文乱码问题\n\t\t\t\t\t\n\t\t\t\t\tList<LocaleMission> locList = locmissMgr.findPagedAllBySort(0,50,\"tentativeDate\",false,new KeyValueWithOperator(\"customerName\", queryName, \"=\"),new KeyValueWithOperator(\"status\", 3, \"<>\"));//\n\t\t\t\t\tfor(LocaleMission loc : locList){\n\t\t\t\t\t\tJSONObject jsonObj = new JSONObject();\t\t\t\t\t\t\n\t\t\t\t\t\tjsonObj.put(\"code\", loc.getCode());\t//现场委托书号\t\n\t\t\t\t\t\tjsonObj.put(\"Id\", loc.getId());\t//现场任务ID\t\t\n\t\t\t\t\t\tjsonObj.put(\"CustomerName\", loc.getCustomerName());\t\t\t\t\t\n\t\t\t\t\t\tjsonObj.put(\"CustomerAddress\", loc.getAddress_1());\n\t\t\t\t\t\tjsonObj.put(\"CustomerTel\", loc.getTel());\n\t\t\t\t\t\tjsonObj.put(\"CustomerZipCode\", loc.getZipCode());\n\t\t\t\t\t\tjsonObj.put(\"LocaleCommissionDate\",loc.getExactTime()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getExactTime()));\n\t\t\t\t\t\t/*if(loc.getExactTime() != null){\n\t\t\t\t\t\t\tTimestamp eTime = loc.getExactTime();\n\t\t\t\t\t\t\teTime.setDate(eTime.getDate() + 7);\n\t\t\t\t\t\t\tjsonObj.put(\"PromiseDate\",DateTimeFormatUtil.DateFormat.format(eTime));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tjsonObj.put(\"PromiseDate\",\"\");\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tjsonObj.put(\"ContactPerson\", loc.getContactor());\n\t\t\t\t\t\tjsonObj.put(\"ContactorTel\", loc.getContactorTel()==null?\"\":loc.getContactorTel());\n\t\t\t\t\t\tjsonObj.put(\"LocaleStaffId\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getName());\n\t\t\t\t\t\tjsonArray.put(jsonObj);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tif(e.getClass() == java.lang.Exception.class){\t//自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 14\", e);\n\t\t\t\t}else{\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 14\", e);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(SysStringUtil.ResponseContentType.Type_EasyUICombobox);\n\t\t\t\tresp.getWriter().write(jsonArray.toString());\n\t\t\t}\n\t\t\tbreak;\n\t \tcase 15: // 现场委托书号的模糊查询\n\t\t\tJSONArray jsonarray = new JSONArray();\n\t\t\ttry {\n\t\t\t\tString queryNameStr = req.getParameter(\"QueryName\");\t//查询的 “名称”\n\t\t\t\t\n\t\t\t\tif(queryNameStr != null && queryNameStr.trim().length() > 0){\n\t\t\t\t\tString queryName = new String(queryNameStr.trim().getBytes(\"ISO-8859-1\"), \"UTF-8\");\t//解决URL传递中文乱码问题\n\t\t\t\n\t\t\t\t\tList<LocaleMission> locList = locmissMgr.findPagedAllBySort(0,50,\"tentativeDate\",false,new KeyValueWithOperator(\"code\", \"%\"+queryName+\"%\", \"like\"),new KeyValueWithOperator(\"status\", 3, \"<>\"));//非注销\n\t\t\t\t\tfor(LocaleMission loc : locList){\n\t\t\t\t\t\tJSONObject jsonObj = new JSONObject();\t\t\t\t\t\t\n\t\t\t\t\t\tjsonObj.put(\"code\", loc.getCode());\t//现场委托书号\t\n\t\t\t\t\t\tjsonObj.put(\"Id\", loc.getId());\t//现场任务ID\t\t\n\t\t\t\t\t\tjsonObj.put(\"CustomerName\", loc.getCustomerName());\t\t\t\t\t\n\t\t\t\t\t\tjsonObj.put(\"CustomerAddress\", loc.getAddress_1());\n\t\t\t\t\t\tjsonObj.put(\"LocaleCommissionDate\",loc.getExactTime()==null?\"\":DateTimeFormatUtil.DateFormat.format(loc.getExactTime()));\n\t\t\t\t\t\tif(loc.getExactTime() != null){\n\t\t\t\t\t\t\tTimestamp eTime = loc.getExactTime();\n\t\t\t\t\t\t\teTime.setDate(eTime.getDate() + 9);\n\t\t\t\t\t\t\tjsonObj.put(\"PromiseDate\",DateTimeFormatUtil.DateFormat.format(eTime));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tjsonObj.put(\"PromiseDate\",\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tjsonObj.put(\"CustomerTel\", loc.getTel());\n\t\t\t\t\t\tjsonObj.put(\"CustomerZipCode\", loc.getZipCode());\n\t\t\t\t\t\tjsonObj.put(\"ContactPerson\", loc.getContactor());\n\t\t\t\t\t\tjsonObj.put(\"ContactorTel\", loc.getContactorTel()==null?\"\":loc.getContactorTel());\n\t\t\t\t\t\tjsonObj.put(\"LocaleStaffId\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getName());\n\t\t\t\t\t\tjsonarray.put(jsonObj);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tif(e.getClass() == java.lang.Exception.class){\t//自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 15\", e);\n\t\t\t\t}else{\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 15\", e);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(SysStringUtil.ResponseContentType.Type_EasyUICombobox);\n\t\t\t\tresp.getWriter().write(jsonarray.toString());\n\t\t\t}\n\t\t\tbreak;\n\t \tcase 16: // 核定现场任务委托单\n\t\t\tJSONObject retObj16 = new JSONObject();\n\t\t\ttry {\n\t\t\t\tString Id = req.getParameter(\"Id\").trim();\n\t\t\t\tString CustomerName = req.getParameter(\"Name\");\n\t\t\t\tint CustomerId=Integer.parseInt(req.getParameter(\"CustomerId\"));\n\t\t\t\tString ZipCode = req.getParameter(\"ZipCode\");\n\t\t\t\tString Department = req.getParameter(\"Department\");\n\t\t\t\tString Address = req.getParameter(\"Address\");\n\t\t\t\tString Tel = req.getParameter(\"Tel\");\n\t\t\t\tString ContactorTel = req.getParameter(\"ContactorTel\");\n\t\t\t\tString TentativeDate = req.getParameter(\"TentativeDate\");\n\t\t\t\tString CheckDate = req.getParameter(\"CheckDate\");//核定日期\n\t\t\t\t\n\t\t\t\tString SiteManagerId = req.getParameter(\"SiteManagerId\");\n\t\t\t\n\t\t\t\tString Contactor = req.getParameter(\"Contactor\");\n\t\t\t\tString RegionId = req.getParameter(\"RegionId\");\n\t\t\t\tString Remark = req.getParameter(\"Remark\");\n\t\t\t\tString HeadNameId = req.getParameter(\"HeadName\");\n\t\t\t\tif(HeadNameId==null||HeadNameId.length()==0){\n\t\t\t\t\tthrow new Exception(\"抬头名称不能为空!\");\t\t\t\t\n\t\t\t\t}\n\t\t\t\tAddressManager addrMgr = new AddressManager();\t\t\t\n\t\t\t\tAddress HeadNameAddr = new AddressManager().findById(Integer.parseInt(HeadNameId));\t//台头名称的单位\n\t\t\t\tString Appliances = req.getParameter(\"Appliances\").trim();\t//检验的器具\n\t\t\t\t\n\t\t\t\tJSONArray appliancesArray = new JSONArray(Appliances);\t//检查的器具\n\t\t\t\t\n\t\t\t\tint lid = Integer.parseInt(Id);// 获取Id\n\t\t\t\tLocaleMission localmission = locmissMgr.findById(lid);// 根据查询现场任务\n\t\t\t\tif(localmission == null){\n\t\t\t\t\tthrow new Exception(\"该现场检测业务不存在!\");\n\t\t\t\t}\n\t\t\t\tif(localmission.getStatus()==2||localmission.getStatus()==3){\n\t\t\t\t\tthrow new Exception(\"该现场检测业务'已完工'或‘已注销’,不能修改!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tTimestamp ts;\n if(TentativeDate==null||TentativeDate.length()==0){\n\t\t\t\t ts = null;\t//暂定日期\n }else{\n\t\t\t ts = new Timestamp(DateTimeFormatUtil.DateFormat.parse(TentativeDate).getTime());\t//暂定日期\n }\n Timestamp now = new Timestamp(System.currentTimeMillis());// 取当前时间\n \n localmission.setCustomerName(CustomerName==null?\"\":CustomerName);\n\t\t\t\tlocalmission.setAddress_1(Address==null?\"\":Address);\n\t\t\t\tlocalmission.setAddress(HeadNameAddr);\n\t\t\t\tlocalmission.setZipCode(ZipCode==null?\"\":ZipCode);\n\t\t\t\tlocalmission.setContactor(Contactor==null?\"\":Contactor);\n\t\t\t\tlocalmission.setTel(Tel==null?\"\":Tel);\n\t\t\t\tlocalmission.setContactorTel(ContactorTel==null?\"\":ContactorTel);\n\t\t\t\t//localmission.setMissionDesc(MissionDesc);\n\t\t\t\tlocalmission.setDepartment(Department);\n\t\t\t\t//localmission.setStaffs(staffs.toString());\n\t\t\t\tlocalmission.setTentativeDate(ts);\n\t\t\t\tRegion region = new Region();\n\t\t\t\tregion.setId(Integer.parseInt(RegionId));\n\t\t\t\tlocalmission.setRegion(region);\n\t\t\t\tlocalmission.setRemark(Remark);\n\t\t\t\t/************更新委托单位信息***********/\n\t\t\t\tCustomer cus=(new CustomerManager()).findById(CustomerId);\n\t\t\t\tif(CustomerName!=null&&CustomerName.length()>0){\n\t\t\t\t\tcus.setName(CustomerName);\n\t\t\t\t}\n\t\t\t\tif(Address!=null&&Address.length()>0){\n\t\t\t\t\tcus.setAddress(Address);\n\t\t\t\t}\n\t\t\t\tif(Tel!=null&&Tel.length()>0){\n\t\t\t\t\tcus.setTel(Tel);\n\t\t\t\t}\n\t\t\t\tif(ZipCode!=null&&ZipCode.length()>0){\n\t\t\t\t\tcus.setZipCode(ZipCode);\n\t\t\t\t}\n\t\t\t\tif(!(new CustomerManager()).update(cus)){\n\t\t\t\t\tthrow new Exception(\"更新委托单位失败!\");\t\t\t\t\n\t\t\t\t}\n\t\t\t\t/************更新委托单位联系人信息***********/\t\n\t\t\t\tCustomerContactorManager cusConMgr = new CustomerContactorManager();\n\t\t\t\tList<CustomerContactor> cusConList = cusConMgr.findByVarProperty(new KeyValueWithOperator(\"customerId\", CustomerId, \"=\"), new KeyValueWithOperator(\"name\", Contactor, \"=\"));\n\t\t\t\tif(cusConList != null){\n\t\t\t\t\tif(cusConList.size() > 0){\n\t\t\t\t\t\tCustomerContactor c = cusConList.get(0);\n\t\t\t\t\t\tif(ContactorTel.length() > 0){\n\t\t\t\t\t\t\tif(!ContactorTel.equalsIgnoreCase(c.getCellphone1()) && (c.getCellphone2() == null || c.getCellphone2().length() == 0)){\n\t\t\t\t\t\t\t\tc.setCellphone2(c.getCellphone1());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tc.setCellphone1(ContactorTel);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tc.setLastUse(now);\n\t\t\t\t\t\tc.setCount(c.getCount()+1);\n\t\t\t\t\t\tif(!cusConMgr.update(c))\n\t\t\t\t\t\t\tthrow new Exception(\"更新单位联系人失败!\");\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tCustomerContactor c = new CustomerContactor();\n\t\t\t\t\t\tc.setCustomerId(CustomerId);\n\t\t\t\t\t\tc.setName(Contactor);\n\t\t\t\t\t\tc.setCellphone1(ContactorTel);\n\t\t\t\t\t\tc.setLastUse(now);\n\t\t\t\t\t\tc.setCount(1);\n\t\t\t\t\t\tif(!cusConMgr.save(c))\n\t\t\t\t\t\t\tthrow new Exception(\"更新单位联系人失败!\");\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(CheckDate!=null&&CheckDate.length()>0){ //核定\n\t\t\t\t\tTimestamp CheckTime = new Timestamp(DateTimeFormatUtil.DateFormat.parse(CheckDate).getTime());\n\t\t\t\t\tlocalmission.setCheckDate(CheckTime);\n\t\t\t\t\tif(localmission.getStatus()==4){\n\t\t\t\t\t\tlocalmission.setStatus(5);//已核定\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSysUser newUser = new SysUser();\n\t\t\t\tif(SiteManagerId!=null&&SiteManagerId.length()>0){ //负责人\n\t\t\t\t\tnewUser.setId(Integer.parseInt(SiteManagerId));\n\t\t\t\t\tlocalmission.setSysUserBySiteManagerId(newUser);\t\n\t\t\t\t}else{\n\t\t\t\t\tlocalmission.setSysUserBySiteManagerId(null);\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlocalmission.setModificatorDate(now);// 记录时间为当前时间\n\t\t\t\tlocalmission.setSysUserByModificatorId((SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser));\n\t\t\t\t\n\t\t\t\tApplianceSpeciesManager speciesMgr = new ApplianceSpeciesManager();\t//器具分类管理Mgr\n\t\t\t\tApplianceStandardNameManager sNameMgr = new ApplianceStandardNameManager();\t//器具标准名称管理Mgr\n\t\t\t\tAppliancePopularNameManager popNameMgr = new AppliancePopularNameManager();\t//器具常用名称管理Mgr\n\t\t\t\tQualificationManager qualMgr = new QualificationManager();\t//检测人员资质管理Mgr\n\t\t\t\tApplianceManufacturerManager mafMgr = new ApplianceManufacturerManager();\t//制造厂管理Mgr\n\t\t\t\t\n\t\t\t\tList<LocaleApplianceItem> localeAppItemList = new ArrayList<LocaleApplianceItem>();\t//现场业务中要添加的器具\n\t\t\t\tList<SysUser> alloteeList = new ArrayList<SysUser>();\t//委托单列表对应的派定人:\n\t\t\t\tList<Integer> qualList = new ArrayList<Integer>();\n\t\t\t\n\t\t\t\t/******************** 添加器具信息 ******************/\n\t\t\t\tfor(int i = 0; i < appliancesArray.length(); i++){\n\t\t\t\t\tJSONObject jsonObj = appliancesArray.getJSONObject(i);\n\t\t\t\t\tLocaleApplianceItem localeAppItem = new LocaleApplianceItem();\n\t\t\t\t\t\n\t\t\t\t\t/********************** 添加器具信息 ************************/\n\t\t\t\t\tString SpeciesType = jsonObj.get(\"SpeciesType\").toString();\t//器具分类类型\n\t\t\t\t\tString ApplianceSpeciesId = jsonObj.get(\"ApplianceSpeciesId\").toString();\t//器具类别ID/标准名称ID\n\t\t\t\t\tString ApplianceName = jsonObj.getString(\"ApplianceName\");\t//器具名称\n\t\t\t\t\tString Manufacturer= jsonObj.getString(\"Manufacturer\");\t//制造厂\n\t\t\t\t\tif(SpeciesType!=null&&SpeciesType.length()>0){\n\t\t\t\t\t\tif(Integer.parseInt(SpeciesType) == 0){\t//0:标准名称;1:分类名称\n\t\t\t\t\t\t\tlocaleAppItem.setSpeciesType(false);\t\n\t\t\t\t\t\t\tString stdName = sNameMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = stdName;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//按需增加制造厂\n\t\t\t\t\t\t\tif(Manufacturer != null && Manufacturer.trim().length() > 0){\n\t\t\t\t\t\t\t\tint intRet = mafMgr.getTotalCount(new KeyValueWithOperator(\"applianceStandardName.id\", Integer.parseInt(ApplianceSpeciesId), \"=\"), new KeyValueWithOperator(\"manufacturer\", Manufacturer.trim(), \"=\"));\n\t\t\t\t\t\t\t\tif(intRet == 0){\n\t\t\t\t\t\t\t\t\tApplianceStandardName sNameTemp = new ApplianceStandardName();\n\t\t\t\t\t\t\t\t\tsNameTemp.setId(Integer.parseInt(ApplianceSpeciesId));\n\t\t\t\t\t\t\t\t\tApplianceManufacturer maf = new ApplianceManufacturer();\n\t\t\t\t\t\t\t\t\tmaf.setApplianceStandardName(sNameTemp);\n\t\t\t\t\t\t\t\t\tmaf.setManufacturer(Manufacturer.trim());\n\t\t\t\t\t\t\t\t\tmaf.setBrief(LetterUtil.String2Alpha(Manufacturer.trim()));\n\t\t\t\t\t\t\t\t\tmaf.setStatus(0);\n\t\t\t\t\t\t\t\t\tmafMgr.save(maf);\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\tlocaleAppItem.setSpeciesType(true);\t\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = speciesMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlocaleAppItem.setApplianceSpeciesId(Integer.parseInt(ApplianceSpeciesId));\t\t\t\t\t\n\t\t\t\t\t\tlocaleAppItem.setApplianceName(ApplianceName);\t//存器具名称\t\t\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setAppFactoryCode(jsonObj.getString(\"ApplianceCode\"));\t\t//出厂编号\n\t\t\t\t\tlocaleAppItem.setAppManageCode(jsonObj.getString(\"AppManageCode\"));\t\t//管理编号\n\t\t\t\t\tlocaleAppItem.setModel(jsonObj.getString(\"Model\"));\t\t//型号规格\n\t\t\t\t\tlocaleAppItem.setRange(jsonObj.getString(\"Range\"));\t\t//测量范围\n\t\t\t\t\tlocaleAppItem.setAccuracy(jsonObj.getString(\"Accuracy\"));\t//精度等级\n\t\t\t\t\tlocaleAppItem.setManufacturer(jsonObj.getString(\"Manufacturer\"));\t\t//制造厂商\n\t\t\t\t\tlocaleAppItem.setCertType(jsonObj.getString(\"ReportType\"));\t//报告形式\n\t\t\t\t\tif(jsonObj.has(\"TestFee\")&&jsonObj.getString(\"TestFee\").length()>0&&jsonObj.getString(\"TestFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setTestCost(Double.valueOf(jsonObj.getString(\"TestFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"RepairFee\")&&jsonObj.getString(\"RepairFee\").length()>0&&jsonObj.getString(\"RepairFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setRepairCost(Double.valueOf(jsonObj.getString(\"RepairFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"MaterialFee\")&&jsonObj.getString(\"MaterialFee\").length()>0&&jsonObj.getString(\"MaterialFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setMaterialCost(Double.valueOf(jsonObj.getString(\"MaterialFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setQuantity(Integer.parseInt(jsonObj.get(\"Quantity\").toString()));//台件数\t\n\t\t\t\t\tif(jsonObj.has(\"AssistStaff\")&&jsonObj.getString(\"AssistStaff\")!=null&&jsonObj.getString(\"AssistStaff\").trim().length()>0)\n\t\t\t\t\t\tlocaleAppItem.setAssistStaff(jsonObj.getString(\"AssistStaff\"));\t//存辅助派定人或替代人\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t/********************** 判断派定人是否存在及有效,并加入到alloteeList ****************************/\n\t\t\t\t\tString Allotee = jsonObj.getString(\"WorkStaff\");\n\t\t\t\t\tif(Allotee != null && Allotee.trim().length() > 0){\n\t\t\t\t\t\tAllotee = Allotee.trim();\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Object[]> qualRetList = qualMgr.getQualifyUsers(Allotee, localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, qualList);\n\t\t\t\t\t\tif(qualRetList != null && qualRetList.size() > 0){\n\t\t\t\t\t\t\tboolean alloteeChecked = false;\n\t\t\t\t\t\t\tfor(Object[] objArray : qualRetList){\n\t\t\t\t\t\t\t\tif(!qualMgr.checkUserQualify((Integer)objArray[0], localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, FlagUtil.QualificationType.Type_Except)){\t//没有该检验项目的检验排外属性\n\t\t\t\t\t\t\t\t\talloteeChecked = true;\n\t\t\t\t\t\t\t\t\tSysUser tempUser = new SysUser();\n\t\t\t\t\t\t\t\t\ttempUser.setId((Integer)objArray[0]);\n\t\t\t\t\t\t\t\t\ttempUser.setName((String)objArray[1]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlocaleAppItem.setSysUser(tempUser);\t\t//派定人\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(!alloteeChecked){\n\t\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlocaleAppItem.setSysUser(null);\t\t//派定人\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\t\t\t\t\tif(jsonObj.has(\"Id\")&&jsonObj.getString(\"Id\")!=null&&jsonObj.getString(\"Id\").trim().length()>0)\n\t\t\t\t\t\tlocaleAppItem.setId(Integer.parseInt(jsonObj.getString(\"Id\")));\n\t\t\t\t\tlocaleAppItemList.add(localeAppItem);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (locAppItemMgr.updateByBatch(localeAppItemList,localmission)) { // 修改现场业务,删除原现场业务中的器具信息,添加新的器具信息\n\t\t\t\t\tretObj16.put(\"IsOK\", true);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"更新数据库失败!\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry {\n\t\t\t\t\tretObj16.put(\"IsOK\", false);\n\t\t\t\t\tretObj16.put(\"msg\", String.format(\"处理失败!错误信息:%s\",(e != null && e.getMessage() != null)?e.getMessage() : \"无\"));\n\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 16\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 16\", e);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresp.setContentType(\"text/html;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retObj16.toString());\n\t\t\t}\n\t\t\tbreak;\n\t \tcase 17: // 补登现场任务委托单\n\t\t\tJSONObject retObj17 = new JSONObject();\n\t\t\ttry{\n\t\t\t\tString Name = req.getParameter(\"Name\").trim();\n\t\t\t\tint CustomerId = Integer.parseInt(req.getParameter(\"CustomerId\").trim());\n\t\t\t\tString ZipCode = req.getParameter(\"ZipCode\");\n\t\t\t\tString Department = req.getParameter(\"Department\");\n\t\t\t\tString Address = req.getParameter(\"Address\");\n\t\t\t\tString Tel = req.getParameter(\"Tel\");\n\t\t\t\tString ContactorTel = req.getParameter(\"ContactorTel\");\n\t\t\t\tString TentativeDate = req.getParameter(\"TentativeDate\");\n\t\t\t\t//String MissionDesc = req.getParameter(\"MissionDesc\").trim();\t//检测项目及台件数\n\t\t\t\t//String Staffs = req.getParameter(\"Staffs\").trim();\n\t\t\t\tString SiteManagerId = req.getParameter(\"SiteManagerId\");\n\t\t\t\tString Contactor = req.getParameter(\"Contactor\");\n\t\t\t\tString RegionId = req.getParameter(\"RegionId\");\n\t\t\t\tString Remark = req.getParameter(\"Remark\");\n\t\t\t\tString Appliances = req.getParameter(\"Appliances\").trim();\t//检验的器具\n\t\t\t\tJSONArray appliancesArray = new JSONArray(Appliances);\t//检查的器具\n\t\t\t\t\n\t\t\t\tString ExactTime = req.getParameter(\"ExactTime\").trim();\t//确定检验时间\n\t\t\t\tString LocaleMissionCode = req.getParameter(\"LocaleMissionCode\").trim();\t//委托书号\n\t\t\t\tString Drivername=req.getParameter(\"Drivername\");\n\t\t\t\tString Licence=req.getParameter(\"Licence\");\n\t\t\t\t\n\t\t\t\tString QTway = req.getParameter(\"QTway\");\n\t\t\t\tQTway = URLDecoder.decode(new String(QTway.trim().getBytes(\"ISO-8859-1\")),\"UTF-8\"); \n\t\t\t\tSystem.out.println(QTway);\n\t\t\t\tTimestamp beginTs = Timestamp.valueOf(String.format(\"%s 08:30:00\", ExactTime.trim()));\n\t\t\t\tTimestamp endTs = Timestamp.valueOf(String.format(\"%s 17:00:00\", ExactTime.trim()));\n\t\t\t\t\n\t\t\t\tTimestamp ts;\n if(TentativeDate==null||TentativeDate.length()==0){\n\t\t\t\t ts = null;\t//暂定日期\n }else{\n\t\t\t ts = new Timestamp(DateTimeFormatUtil.DateFormat.parse(TentativeDate).getTime());\t//暂定日期\n }\n String Brief = com.jlyw.util.LetterUtil.String2Alpha(Name);\n\t\t\t\t\n Customer cus=new Customer();\n cus.setId(CustomerId);\n\t\t\t\tLocaleMission localmission = new LocaleMission();\n\t\t\t\tlocalmission.setAddress_1(Address==null?\"\":Address);\n\t\t\t\tlocalmission.setCustomer(cus);\n\t\t\t\tlocalmission.setCustomerName(Name);\n\t\t\t\tlocalmission.setBrief(Brief);\n\t\t\t\tlocalmission.setZipCode(ZipCode==null?\"\":ZipCode);\n\t\t\t\tlocalmission.setContactor(Contactor==null?\"\":Contactor);\n\t\t\t\tlocalmission.setTel(Tel==null?\"\":Tel);\n\t\t\t\tlocalmission.setContactorTel(ContactorTel==null?\"\":ContactorTel);\n\t\t\t\t//localmission.setMissionDesc(MissionDesc);\n\t\t\t\tlocalmission.setDepartment(Department);\n\t\t\t\t//localmission.setStaffs(staffs.toString());\n\t\t\t\tlocalmission.setTentativeDate(ts);\n\t\t\t\tRegion region = new Region();\n\t\t\t\tregion.setId(Integer.parseInt(RegionId));\n\t\t\t\tlocalmission.setRegion(region);\n\t\t\t\tlocalmission.setRemark(Remark);\n\t\t\t\tlocalmission.setVehicleLisences(URLDecoder.decode(new String(Licence.trim().getBytes(\"ISO-8859-1\")) , \"UTF-8\"));\n\t\t\t\t\n\t\t\t\tString Code=URLDecoder.decode(new String(LocaleMissionCode.trim().getBytes(\"ISO-8859-1\")) , \"UTF-8\");\n\t\t\t\tif(Code==null||Code.length()!=7)\n\t\t\t\t\tthrow new Exception(\"委托书号\"+Code+\"格式不正确,只能是七位\");\n\t\t\t\tList<LocaleMission> locMissionList = locmissMgr.findByVarProperty(new KeyValueWithOperator(\"code\",Code,\"=\"),new KeyValueWithOperator(\"status\",3,\"<>\"));\n\t\t\t\t\n\t\t\t\tif(locMissionList==null||locMissionList.size()==0){\n\t\t\t\t\tlocalmission.setCode(Code);\n\t\t\t\t}else{\n\t\t\t\t\tthrow new Exception(\"已存在委托书号\"+Code);\n\t\t\t\t}\n\t\t\t\t//System.out.println();\n\t\t\t\t\n\t\t\t\tSysUser newUser = new SysUser();\n\t\t\t\t\n\t\t\t\tif(SiteManagerId!=null&&SiteManagerId.length()>0){\n\t\t\t\t\tnewUser.setId(Integer.parseInt(SiteManagerId));\n\t\t\t\t\tlocalmission.setSysUserBySiteManagerId(newUser);\n\t\t\t\t}else{\n\t\t\t\t\tthrow new Exception(\"现场负责人不能为空\");\n\t\t\t\t}\n\t\t\t\tTimestamp CheckTime = new Timestamp(DateTimeFormatUtil.DateFormat.parse(ExactTime).getTime());\n\t\t\t\tlocalmission.setCheckDate(CheckTime);\n\t\t\t\tlocalmission.setExactTime(CheckTime);\n\t\t\t\t\n\t\t\t\tlocalmission.setStatus(1);// status: 1 已分配 2 已完成 3已删除 4负责人未核定 5负责人已核定\t\t\n\t\t\t\t\n\t\t\t\tString HeadNameId = req.getParameter(\"HeadName\");\n\t\t\t\tif(HeadNameId==null||HeadNameId.length()==0){\n\t\t\t\t\tthrow new Exception(\"抬头名称不能为空!\");\t\t\t\t\n\t\t\t\t}\n\t\t\t\tAddressManager addrMgr = new AddressManager();\t\t\t\n\t\t\t\tAddress HeadNameAddr = new AddressManager().findById(Integer.parseInt(HeadNameId));\t//台头名称的单位\n\t\t\t\tlocalmission.setAddress(HeadNameAddr);\n\t\t\t\t\n\t\t\t\tTimestamp now = new Timestamp(System.currentTimeMillis());// 取当前时间\n\t\t\t\tlocalmission.setCreateTime(now);// 创建时间为当前时间\n\t\t\t\tlocalmission.setSysUserByCreatorId((SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser));\n\t\t\t\tlocalmission.setModificatorDate(now);// 记录时间为当前时间\n\t\t\t\tlocalmission.setSysUserByModificatorId((SysUser) req.getSession().getAttribute(SystemCfgUtil.SessionAttrNameLoginUser));\n\t\t\t\t\n\t\t\t\tApplianceSpeciesManager speciesMgr = new ApplianceSpeciesManager();\t//器具分类管理Mgr\n\t\t\t\tApplianceStandardNameManager sNameMgr = new ApplianceStandardNameManager();\t//器具标准名称管理Mgr\n\t\t\t\tAppliancePopularNameManager popNameMgr = new AppliancePopularNameManager();\t//器具常用名称管理Mgr\n\t\t\t\tQualificationManager qualMgr = new QualificationManager();\t//检测人员资质管理Mgr\n\t\t\t\tApplianceManufacturerManager mafMgr = new ApplianceManufacturerManager();\t//制造厂管理Mgr\n\t\t\t\tList<LocaleApplianceItem> localeAppItemList = new ArrayList<LocaleApplianceItem>();\t//现场业务中要添加的器具\n\t\t\t\tList<SysUser> alloteeList = new ArrayList<SysUser>();\t//委托单列表对应的派定人:\n\t\t\t\tList<Integer> qualList = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/******************** 添加器具信息 ******************/\n\t\t\t\tfor(int i = 0; i < appliancesArray.length(); i++){\n\t\t\t\t\tJSONObject jsonObj = appliancesArray.getJSONObject(i);\n\t\t\t\t\tLocaleApplianceItem localeAppItem = new LocaleApplianceItem();\n\t\t\t\t\t\n\t\t\t\t\t/********************** 添加器具信息 ************************/\n\t\t\t\t\tString SpeciesType = jsonObj.get(\"SpeciesType\").toString();\t//器具分类类型\n\t\t\t\t\tString ApplianceSpeciesId = jsonObj.get(\"ApplianceSpeciesId\").toString();\t//器具类别ID/标准名称ID\n\t\t\t\t\tString ApplianceName = jsonObj.getString(\"ApplianceName\");\t//器具名称\n\t\t\t\t\tString Manufacturer= jsonObj.getString(\"Manufacturer\");\t//制造厂\n\t\t\t\t\t\n\t\t\t\t\tif(SpeciesType!=null&&SpeciesType.length()>0){\n\t\t\t\t\t\tif(Integer.parseInt(SpeciesType) == 0){\t//0:标准名称;1:分类名称\n\t\t\t\t\t\t\tlocaleAppItem.setSpeciesType(false);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tString stdName = sNameMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = stdName;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//按需增加制造厂\n\t\t\t\t\t\t\tif(Manufacturer != null && Manufacturer.trim().length() > 0){\n\t\t\t\t\t\t\t\tint intRet = mafMgr.getTotalCount(new KeyValueWithOperator(\"applianceStandardName.id\", Integer.parseInt(ApplianceSpeciesId), \"=\"), new KeyValueWithOperator(\"manufacturer\", Manufacturer.trim(), \"=\"));\n\t\t\t\t\t\t\t\tif(intRet == 0){\n\t\t\t\t\t\t\t\t\tApplianceStandardName sNameTemp = new ApplianceStandardName();\n\t\t\t\t\t\t\t\t\tsNameTemp.setId(Integer.parseInt(ApplianceSpeciesId));\n\t\t\t\t\t\t\t\t\tApplianceManufacturer maf = new ApplianceManufacturer();\n\t\t\t\t\t\t\t\t\tmaf.setApplianceStandardName(sNameTemp);\n\t\t\t\t\t\t\t\t\tmaf.setManufacturer(Manufacturer.trim());\n\t\t\t\t\t\t\t\t\tmaf.setBrief(LetterUtil.String2Alpha(Manufacturer.trim()));\n\t\t\t\t\t\t\t\t\tmaf.setStatus(0);\n\t\t\t\t\t\t\t\t\tmafMgr.save(maf);\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\tlocaleAppItem.setSpeciesType(true);\t\n\t\t\t\t\t\t\tif(ApplianceName == null || ApplianceName.trim().length() == 0){\n\t\t\t\t\t\t\t\tApplianceName = speciesMgr.findById(Integer.parseInt(ApplianceSpeciesId)).getName();;\t//器具名称未填写,则默认为标准名称或分类名称\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlocaleAppItem.setApplianceSpeciesId(Integer.parseInt(ApplianceSpeciesId));\t\t\t\t\t\n\t\t\t\t\t\tlocaleAppItem.setApplianceName(ApplianceName);\t//存器具名称\t\t\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setAppFactoryCode(jsonObj.getString(\"ApplianceCode\"));\t\t//出厂编号\n\t\t\t\t\tlocaleAppItem.setAppManageCode(jsonObj.getString(\"AppManageCode\"));\t\t//管理编号\n\t\t\t\t\tlocaleAppItem.setModel(jsonObj.getString(\"Model\"));\t\t//型号规格\n\t\t\t\t\tlocaleAppItem.setRange(jsonObj.getString(\"Range\"));\t\t//测量范围\n\t\t\t\t\tlocaleAppItem.setAccuracy(jsonObj.getString(\"Accuracy\"));\t//精度等级\n\t\t\t\t\tlocaleAppItem.setManufacturer(jsonObj.getString(\"Manufacturer\"));\t\t//制造厂商\n\t\t\t\t\tlocaleAppItem.setCertType(jsonObj.getString(\"ReportType\"));\t//报告形式\n\t\t\t\t\tif(jsonObj.has(\"TestFee\")&&jsonObj.getString(\"TestFee\").length()>0&&jsonObj.getString(\"TestFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setTestCost(Double.valueOf(jsonObj.getString(\"TestFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"RepairFee\")&&jsonObj.getString(\"RepairFee\").length()>0&&jsonObj.getString(\"RepairFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setRepairCost(Double.valueOf(jsonObj.getString(\"RepairFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tif(jsonObj.has(\"MaterialFee\")&&jsonObj.getString(\"MaterialFee\").length()>0&&jsonObj.getString(\"MaterialFee\")!=null){\n\t\t\t\t\t\tlocaleAppItem.setMaterialCost(Double.valueOf(jsonObj.getString(\"MaterialFee\")));\n\t\t\t\t\t}\n\t\t\t\t\tlocaleAppItem.setQuantity(Integer.parseInt(jsonObj.get(\"Quantity\").toString()));//台件数\t\n\t\t\t\t\tif(jsonObj.has(\"AssistStaff\")&&jsonObj.getString(\"AssistStaff\")!=null&&jsonObj.getString(\"AssistStaff\").trim().length()>0){\n\t\t\t\t\t\tlocaleAppItem.setAssistStaff(jsonObj.getString(\"AssistStaff\"));\t//存辅助派定人或替代人\t\t\n\t\t\t\t\t}\t\t\n\t\t\t\t\t/********************** 判断派定人是否存在及有效,并加入到alloteeList ****************************/\n\t\t\t\t\tString Allotee = jsonObj.getString(\"WorkStaff\");\n\t\t\t\t\tif(Allotee != null && Allotee.trim().length() > 0){\n\t\t\t\t\t\tAllotee = Allotee.trim();\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Object[]> qualRetList = qualMgr.getQualifyUsers(Allotee, localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, qualList);\n\t\t\t\t\t\tif(qualRetList != null && qualRetList.size() > 0){\n\t\t\t\t\t\t\tboolean alloteeChecked = false;\n\t\t\t\t\t\t\tfor(Object[] objArray : qualRetList){\n\t\t\t\t\t\t\t\tif(!qualMgr.checkUserQualify((Integer)objArray[0], localeAppItem.getApplianceSpeciesId(), localeAppItem.getSpeciesType()?1:0, FlagUtil.QualificationType.Type_Except)){\t//没有该检验项目的检验排外属性\n\t\t\t\t\t\t\t\t\talloteeChecked = true;\n\t\t\t\t\t\t\t\t\tSysUser tempUser = new SysUser();\n\t\t\t\t\t\t\t\t\ttempUser.setId((Integer)objArray[0]);\n\t\t\t\t\t\t\t\t\ttempUser.setName((String)objArray[1]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlocaleAppItem.setSysUser(tempUser);\t\t//派定人\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(!alloteeChecked){\n\t\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tthrow new Exception(String.format(\"派定人 '%s' 不存在或没有资质检验项目:%s,请重新选择!\", Allotee, localeAppItem.getApplianceName()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlocaleAppItem.setSysUser(null);\t\t//派定人\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tlocaleAppItemList.add(localeAppItem);\n\t\t\t\t}\n\t\t\t\tDrivingVehicle drivingvehicle = null; //新建出车记录\n\t\t\t\t\n\t\t\t\tif(QTway!=null&&QTway.length()>0&&QTway.equals(\"所内派车\")){\n\t\t\t\t\t//车辆处理\n\t\t\t\t\tif(Licence==null||Licence.trim().length()==0||Drivername==null||Drivername.trim().length()==0){\n\t\t\t\t\t\tthrow new Exception(\"选择“所内派车”后,车牌号和司机名不能为空\");\t\t\n\t\t\t\t\t}\n\t\t\t\t\tVehicleManager VeMgr=new VehicleManager();\n\t\t\t\t\tList<Vehicle> vehivleList=VeMgr.findByVarProperty(new KeyValueWithOperator(\"licence\",URLDecoder.decode(new String(Licence.trim().getBytes(\"ISO-8859-1\")) , \"UTF-8\") , \"=\"),\n\t\t\t\t\t\t\t\t\t\t new KeyValueWithOperator(\"status\", 0, \"=\"));\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(URLDecoder.decode(new String(Licence.trim().getBytes(\"ISO-8859-1\")) , \"UTF-8\"));\n\t\t\t\t\tVehicle vehicle=new Vehicle();\n\t\t\t\t\tUserManager userMgr=new UserManager();\n\t\t\t\t\tSysUser driver =new SysUser();\n\t\t\t\t\tif(Drivername!=null&&Drivername.length()>0){\n\t\t\t\t\t\tdriver= userMgr.findByVarProperty(new KeyValueWithOperator(\"name\",URLDecoder.decode(new String(Drivername.trim().getBytes(\"ISO-8859-1\")) , \"UTF-8\") , \"=\")).get(0);\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(vehivleList!=null&&vehivleList.size()>0){\n\t\t\t\t\t\tvehicle=vehivleList.get(0);\n\t\t\t\t\t}else{\t\n\t\t\t\t\t\tthrow new Exception(\"找不到车牌号为\"+URLDecoder.decode(new String(Licence.trim().getBytes(\"ISO-8859-1\")) , \"UTF-8\")+\"的车,请重新输入!\");\t\t\n\t\t\t\t\t\t/*vehicle.setLicence(URLDecoder.decode(new String(Licence.trim().getBytes(\"ISO-8859-1\")) , \"UTF-8\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\tvehicle.setSysUser(driver);\n\t\t\t\t\t\tvehicle.setBrand(\"\");\n\t\t\t\t\t\tvehicle.setFuelFee(0.0);\n\t\t\t\t\t\tvehicle.setLicenceType(\"\");\n\t\t\t\t\t\tvehicle.setLimit(0);\n\t\t\t\t\t\tvehicle.setModel(\"\");\n\t\t\t\t\t\tvehicle.setStatus(0);\t\t\t\t\t\n\t\t\t\t\t\tVeMgr.save(vehicle);\t\t*/\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//找现场业务下面的各个器具指派人\n\t\t\t\t\tString staffs=\"\";\n\t\t\t\t\tif(!localeAppItemList.isEmpty()){\t\t\t\t\t\t\n\t\t\t\t\t\tfor (LocaleApplianceItem user : localeAppItemList) {\n\t\t\t\t\t\t\tString name=(user.getSysUser()==null?\"\":user.getSysUser().getName());\n\t\t\t\t\t\t\tif(staffs.indexOf(name+\";\")<0){\n\t\t\t\t\t\t\t\tstaffs = staffs + name +\";\"; \t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(localmission.getSysUserBySiteManagerId()!=null){\n\t\t\t\t\t\tif(staffs.indexOf(localmission.getSysUserBySiteManagerId().getName()+\";\")<0){\n\t\t\t\t\t\t\tstaffs = staffs + localmission.getSysUserBySiteManagerId().getName()+\";\"; \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\tdrivingvehicle=new DrivingVehicle(); //新建出车记录\n\t\t\t\t\tdrivingvehicle.setAssemblingPlace(\"\");\n\t\t\t\t\tdrivingvehicle.setBeginDate(beginTs);\n\t\t\t\t\tdrivingvehicle.setEndDate(endTs);\t\n\t\t\t\t\tdrivingvehicle.setStatus(0);\n\t\t\t\t\tdrivingvehicle.setSysUserByDriverId(driver); // 驾驶员\t\t\t\t\t\t\t\n\t\t\t\t\tdrivingvehicle.setPeople(staffs);\n\t\t\t\t\tdrivingvehicle.setVehicle(vehicle);// 车辆\n\t\t\t\t\t\n\t\t\t\t}else{\t\t\t\t\n\t\t\t\t\tif(QTway!=null&&QTway.length()>0){\n\t\t\t\t\t\tlocalmission.setVehicleLisences(QTway);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif (locAppItemMgr.saveByBatchBD(localeAppItemList,localmission,drivingvehicle)) { // 补登成功\n\t\t\t\t\tretObj17.put(\"IsOK\", true);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"写入数据库失败!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}catch (Exception e) {\n\t\t\t\ttry {\n\t\t\t\t\tretObj17.put(\"IsOK\", false);\n\t\t\t\t\tretObj17.put(\"msg\", String.format(\"处理失败!错误信息:%s\",(e != null && e.getMessage() != null)?e.getMessage():\"无\"));\n\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tif (e.getClass() == java.lang.Exception.class) { // 自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 17\", e);\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 17\", e);\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\tresp.setContentType(\"text/html;charset=utf-8\");\n\t\t\t\tresp.getWriter().write(retObj17.toString());\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 18://查询现场任务条目(用于打印)(空表)\n\t\t\tJSONObject resJson18 = new JSONObject();\n\t\t\ttry{\n\t\t\t\tString localeMissionId = req.getParameter(\"localeMissionId\"); \n\t\t\t\tList<KeyValueWithOperator> quoList = new ArrayList<KeyValueWithOperator>();\n\t\t\t\tList<LocaleApplianceItem> locAppItemList;\n\t\t\t\tCustomerManager cusMgr=new CustomerManager();\n\t\t\t\tCommissionSheetManager comsheetMgr=new CommissionSheetManager();\n\t\t\t\tList<CommissionSheet> comsheetList=new ArrayList<CommissionSheet>();\n\t\t\t\tint total5;\n\t\t\t\tif(localeMissionId == null)\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception(\"任务书号无效!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlocAppItemList = locAppItemMgr.findByVarProperty(new KeyValueWithOperator(\"localeMission.id\",Integer.parseInt(localeMissionId),\"=\"));\n\t\t\t\t\ttotal5 = locAppItemMgr.getTotalCount(new KeyValueWithOperator(\"localeMission.id\",Integer.parseInt(localeMissionId),\"=\"));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJSONArray optionsq = new JSONArray();\n\t\t\t\tint id=1;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tJSONObject option = new JSONObject();\n\t\t\t\tString applianceInfo=\"\";\n\n\t\t\t\toption.put(\"Id\", id++);\n\t\t\t\t\n\t\t\t\toption.put(\"ApplianceName\", \"\");\n\t\t\t\t\n\t\t\t\toption.put(\"Quantity\", \"\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\toption.put(\"Model\",\"\");\n\t\t\t\toption.put(\"Accuracy\", \"\");\n\t\t\t\toption.put(\"Range\", \"\");\t\t\t\t\t\t\n\t\t\t\toption.put(\"AppFactoryCode\", \"\");\n\t\t\t\toption.put(\"AppManageCode\", \"\");\n\t\t\t\toption.put(\"Manufacturer\", \"\");\n\t\t\t\t\t\t\n\t\t\t\toption.put(\"applianceInfo\", \"\");\n\t\t\t\tString CertType=\"\";\n\t\t\t\t\n\t\t\t\toption.put(\"CertType\", CertType);\t\t\t\t\t\n\t\t\t\toption.put(\"TestCost\",\"\");\n\t\t\t\toption.put(\"RepairCost\",\"\");\n\t\t\t\toption.put(\"MaterialCost\",\"\");\n\t\t\t\toption.put(\"WorkStaff\",\"\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\toptionsq.put(option);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor (int i=0;i<21;i++) { //为了调试,空21行\n\t\t\t\t\tJSONObject option2 = new JSONObject();\n\t\t\t\t\toption2.put(\"Id\", id++);\n\t\t\t\t\toption2.put(\"ApplianceName\", \" \");\t\n\t\t\t\t\toption2.put(\"applianceInfo\", \"\");\n\t\t\t\t\toption2.put(\"Model\",\" \");\n\t\t\t\t\toption2.put(\"Accuracy\", \" \");\n\t\t\t\t\toption2.put(\"Range\", \" \");\n\t\t\t\t\toption2.put(\"Quantity\", \" \");\n\t\t\t\t\toption2.put(\"AppFactoryCode\",\"\");\n\t\t\t\t\toption2.put(\"AppManageCode\", \"\");\n\t\t\t\t\toption2.put(\"Manufacturer\", \"\");\n\t\t\t\t\toption2.put(\"CertType\", \" \");\n\t\t\t\t\toption2.put(\"RepairCost\",\"\");\n\t\t\t\t\toption2.put(\"MaterialCost\",\"\");\n\t\t\t\t\toption2.put(\"TestCost\",\"\");\n\t\t\t\t\toption2.put(\"WorkStaff\",\"\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\toptionsq.put(option2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(id<=10){\n\t\t\t\t\tint temp=id;\n\t\t\t\t\tfor (int i=0;i<(11-temp%10);i++) { //首页10行\n\t\t\t\t\t\tJSONObject option1 = new JSONObject();\n\t\t\t\t\t\toption1.put(\"Id\", id++);\n\t\t\t\t\t\toption1.put(\"ApplianceName\", \" \");\t\n\t\t\t\t\t\toption1.put(\"applianceInfo\", \"\");\n\t\t\t\t\t\toption1.put(\"Model\",\" \");\n\t\t\t\t\t\toption1.put(\"Accuracy\", \" \");\n\t\t\t\t\t\toption1.put(\"Range\", \" \");\n\t\t\t\t\t\toption1.put(\"Quantity\", \" \");\n\t\t\t\t\t\toption1.put(\"AppFactoryCode\",\"\");\n\t\t\t\t\t\toption1.put(\"AppManageCode\", \"\");\n\t\t\t\t\t\toption1.put(\"Manufacturer\", \"\");\n\t\t\t\t\t\toption1.put(\"CertType\", \" \");\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toption1.put(\"TestCost\",\"\");\n\t\t\t\t\t\toption1.put(\"RepairCost\",\"\");\n\t\t\t\t\t\toption1.put(\"MaterialCost\",\"\");\n\t\t\t\t\t\toption1.put(\"WorkStaff\",\"\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toptionsq.put(option1);\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tint temp=id-10;\n\t\t\t\t\tfor (int i=0;i<(23-temp%22);i++) { //每页20行\n\t\t\t\t\t\tJSONObject option1 = new JSONObject();\n\t\t\t\t\t\toption1.put(\"Id\", id++);\n\t\t\t\t\t\toption1.put(\"ApplianceName\", \" \");\n\t\t\t\t\t\toption1.put(\"applianceInfo\", \"\");\n\t\t\t\t\t\toption1.put(\"Model\",\" \");\n\t\t\t\t\t\toption1.put(\"Accuracy\", \" \");\n\t\t\t\t\t\toption1.put(\"Range\", \" \");\n\t\t\t\t\t\toption1.put(\"Quantity\", \" \");\n\t\t\t\t\t\toption1.put(\"AppFactoryCode\",\"\");\n\t\t\t\t\t\toption1.put(\"AppManageCode\", \"\");\n\t\t\t\t\t\toption1.put(\"Manufacturer\", \"\");\n\t\t\t\t\t\toption1.put(\"CertType\", \" \");\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toption1.put(\"TestCost\",\"\");\n\t\t\t\t\t\toption1.put(\"RepairCost\",\"\");\n\t\t\t\t\t\toption1.put(\"MaterialCost\",\"\");\n\t\t\t\t\t\toption1.put(\"WorkStaff\",\"\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\toptionsq.put(option1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresJson18.put(\"total\", id);\n\t\t\t\tresJson18.put(\"rows\", optionsq);\n\t\t\t\t\n\t\t\t\tLocaleMission loc=locmissMgr.findById(Integer.parseInt(localeMissionId));\n\t\t\t\tresJson18.put(\"CustomerName\", loc.getCustomerName());\n\t\t\t\tresJson18.put(\"Code\", loc.getCode());\n\t\t\t\tresJson18.put(\"Department\", loc.getDepartment());\n\t\t\t\tresJson18.put(\"Address\", loc.getAddress_1());\n\t\t\t\tresJson18.put(\"ZipCode\", loc.getZipCode());\n\t\t\t\tresJson18.put(\"Contactor\", loc.getContactor());\n\t\t\t\tresJson18.put(\"ContactorTel\", loc.getTel()==null?\"\":loc.getTel());\n\t\t\t\tresJson18.put(\"SiteManager\", loc.getSysUserBySiteManagerId()==null?\"\":loc.getSysUserBySiteManagerId().getName());\n\t\t\t\tresJson18.put(\"HeadNameName\", loc.getAddress().getHeadName());\n\t\t\t\tresJson18.put(\"HeadNameAddress\", loc.getAddress().getAddress());\n\t\t\t\tresJson18.put(\"HeadNameFax\", loc.getAddress().getFax()==null?\"\":loc.getAddress().getFax());\n\t\t\t\tresJson18.put(\"HeadNameTel\", loc.getAddress().getTel()==null?\"\":loc.getAddress().getTel());//查询电话\n\t\t\t\tresJson18.put(\"HeadNameComplainTel\", loc.getAddress().getComplainTel()==null?\"\":loc.getAddress().getComplainTel());//投诉电话\n\t\t\t\tresJson18.put(\"HeadNameZipCode\", loc.getAddress().getZipCode()==null?\"\":loc.getAddress().getZipCode());//\n\t\t\t\t\n\t\t\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tif(loc.getExactTime()!=null){\n\t\t\t\t\tresJson18.put(\"ExactTime\", sf.format(loc.getExactTime()));//报价时间\\\n\t\t\t\t}else{\n\t\t\t\t\tresJson18.put(\"ExactTime\", \"\");//报价时间\\\n\t\t\t\t}\n\t\t\t\tresJson18.put(\"PrintType\", \"1\");//打印类型,“”代表正常的表,\"1\"代表空表\n\t\t\t\tresJson18.put(\"IsOK\", true);\n\t\t\t\treq.getSession().setAttribute(\"AppItemsList\", resJson18);\n\t\t\t\n\t\t\t\tresp.sendRedirect(\"/jlyw/TaskManage/LocaleMissionPrint.jsp\");\n\t\t\t}catch(Exception e){\n\t\t\t\ttry {\n\t\t\t\t\tresJson18.put(\"total\", 0);\n\t\t\t\t\tresJson18.put(\"rows\", new JSONArray());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresJson18.put(\"IsOK\", false);\n\t\t\t\t\t\tresJson18.put(\"msg\", String.format(\"打印空表失败!错误信息:%s\", (e!=null && e.getMessage()!=null)?e.getMessage():\"无\"));\n\t\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e1) {}\n\t\t\t\tif(e.getClass() == java.lang.Exception.class){\t//自定义的消息\n\t\t\t\t\tlog.debug(\"exception in LocaleMissionServlet-->case 18\", e);\n\t\t\t\t}else{\n\t\t\t\t\tlog.error(\"error in LocaleMissionServlet-->case 18\", e);\n\t\t\t\t}\n\t\t\t\treq.getSession().setAttribute(\"AppItemsList\", resJson18);\n\t\t\t\t\n\t\t\t\tresp.sendRedirect(\"/jlyw/TaskManage/LocaleMissionPrint.jsp\");\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t\t\n\t}",
"public interface DatosAPI\n{\n @GET(\"kspt-6t6c.json\")\n Call<List<CentrosAyuda>> obtenerLista();\n}",
"private AppoinmentCompleteRequest appoinmentCompleteRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppoinmentCompleteRequest appoinmentCompleteRequest = new AppoinmentCompleteRequest();\n appoinmentCompleteRequest.set_id(appoinmentid);\n appoinmentCompleteRequest.setCompleted_at(currentDateandTime);\n appoinmentCompleteRequest.setAppoinment_status(\"Completed\");\n appoinmentCompleteRequest.setDiagnosis(DiagnosisType);\n appoinmentCompleteRequest.setSub_diagnosis(SubDiagnosisType);\n appoinmentCompleteRequest.setDoctor_comment(Doctor_Comments);\n Log.w(TAG,\"appoinmentCompleteRequest\"+ \"--->\" + new Gson().toJson(appoinmentCompleteRequest));\n return appoinmentCompleteRequest;\n }",
"public interface TeasAPI {\n\n @GET(URLConfig.Path.GET_NEW)\n Call<TeaBean> getNews(@QueryMap() Map<String ,String> params);\n\n}",
"public interface AgendaMedicaAPI {\n\n @GET(\"agendaMedica/listarAgendaMedica\")\n Call<List<AgendaMedica>> listarAgendaMedica();\n// void listarAgendaMedica(Callback<List<AgendaMedica>> agendaMedica);\n\n}",
"public static void post(String endpointURL, String jsonBody) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n RequestBody body = RequestBody.create(JSON, jsonBody);\n Request request = new Request.Builder().url(HOST + endpointURL).post(body).build();\n\n try {\n Response response = client.newCall(request).execute();\n System.out.println(response);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public interface ApiInterface {\n\n\n @Headers({\"Content-Type: application/json\",})\n @POST(\"transport/public/registrations\")\n Call<Void> Register(@Body User user);\n\n\n //loginProcess\n @GET(\"user\")\n @Headers({\"Content-Type: application/json\"})\n Call<cUser> postWithFormParams();\n\n\n //userMe\n @GET(\"transport/user/me\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> UserMe();\n\n\n\n //drivers\n @GET(\"transport/drivers\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> drivers(\n @Query(\"latitud\") double latitud,\n @Query(\"longitud\") double longitud);\n\n\n}",
"public interface ServerTimeServices {\n @GET(\"/utc/now\")\n Call<String> getActualServerTime();\n}",
"public interface CountryListAPI {\n\n //@POST(Constants.NewSessionURL)\n //Call<Session>createSession(@Body loginRequest loginRequest);\n\n @GET(Constants.CountriesListURL)\n Call<List<Country>> getAllCountries();\n\n\n\n}",
"@Override\r\n\tprotected String requestText() {\n\t\tActualizarClienteRequest actualizarClienteRequest = new ActualizarClienteRequest();\r\n\t\tactualizarClienteRequest.setCliente(codigo);\r\n\t\tactualizarClienteRequest.setFechaAniversario(fechAniv);\r\n\t\tactualizarClienteRequest.setObservaciones(observaciones);\r\n\t\tactualizarClienteRequest.setRazonComercial(razonComercial);\r\n\t\tactualizarClienteRequest.setReferencia(referencia);\r\n\t\tactualizarClienteRequest.setUsuario(usuario);\r\n\t\t\r\n\t\tString request = JSONHelper.serializar(actualizarClienteRequest);\r\n\t\treturn request;\r\n\t}",
"public interface IMarvelWebService {\n\n\n @GET(\"/v1/public/comics\")\n Call<ComicDataWrapper> getComics(@Query(\"dateDescriptor\") String dateDescriptior,\n @Query(\"offset\") int offset);\n\n}",
"public interface ApiInterface {\n\n @POST(\"/request/getAll\")\n Call<List<Request>> getRequest(@Body Location location);\n\n @POST(\"/request/create\")\n Call<Request> createRequest(@Body Request request);\n\n @POST(\"/deliver/accept/\")\n Call<Request> acceptRequest(@Query(\"id\") String requestId);\n\n}",
"public interface Api {\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"anslogsave\")\n Call<ResponseBody> anslogsave(@Body RequestBody anslog);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotlogsave\")\n Call<ResponseBody> robotlogsave(@Body RequestBody robotlogsave);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotstatsave\")\n Call<ResponseBody> robotstatsave(@Body RequestBody robotstatsave);\n\n @FormUrlEncoded\n @POST(\"borr\")\n Call<String> borr(@Field(\"title\")String title,\n @Field(\"inflag\")int inflag);\n @FormUrlEncoded\n @POST(\"guide\")\n Call<String> guide(@Field(\"title\")String title);\n @FormUrlEncoded\n @POST(\"\")\n Call<String> baidu();\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"data\")\n Call<ResponseBody> upCewen(@Body RequestBody upCewen);\n\n @GET(\"doc_list?\")\n Call<String> search(@Query(\"search_txt\")String search);\n}",
"public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }",
"public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}",
"public interface API {\n @GET(\"api/v1.5/tr.json/translate\")\n Call<Resp> Translate(@QueryMap Map<String, String> parameters);\n\n}",
"@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler(AppController.getAppContext());\n\n\n\n try {\n JSONObject response = requestHandler.sendPostRequest(URLs.URL_UPDATE_TOKEN_DAILY, null, Request.Method.POST);\n return response.toString();\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n return null;\n }",
"public interface ApiService {\n @GET(\"questcms/floorplan\")\n Call<List<FloorPlan>> listFloorPlan();\n}",
"public RequestUpdateCancha() {\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"{exam}/{start}/{section}/{exam}\")\n public String examination(@QueryParam(\"matric\") String matric,@QueryParam(\"exam\")String exam,@QueryParam(\"type\")String type,@QueryParam(\"status\") String status,@QueryParam(\"time\") String time,@QueryParam(\"score\")String score,@QueryParam(\"attempt\")String attempt,@QueryParam(\"complete\") boolean complete){\n System.out.println(\"touching registered Exams to get information)\");\n \n \n \n if(status == null){\n if(type != null){\n StudentResourceGetRegisteredExams regExam = new StudentResourceGetRegisteredExams();\n \n String typeF = \"\";\n if(Integer.parseInt(type) == 5){\n typeF = \"1\";\n }\n if(Integer.parseInt(type) == 6){\n typeF = \"2\"; \n }\n if(Integer.parseInt(type) == 7){\n typeF = \"3\";\n }\n if(Integer.parseInt(type) == 8){\n typeF = \"4\";\n }\n \n return new Gson().toJson(regExam.createExams(matric, exam, typeF,type));\n \n }\n else{\n return new Gson().toJson(\"Log In\");\n \n }\n }\n \n \n if(status.equals(\"result\")){\n StudentResourceResult results = new StudentResourceResult();\n \n \n try{\n \n return new Gson().toJson(results.postResult(matric, exam, attempt, time, score, type,complete));\n }\n catch(ArrayIndexOutOfBoundsException e){\n e.printStackTrace();\n \n }\n \n \n \n }\n \n \n // return StudentResourceGetRegisteredExams.getStudentsExams(matric, exam);\n \n \n return \"\";\n }",
"@Override\n\tpublic HttpRespModel methodDispatch(String method, String body) {\n\t\tSituationMethod requestMethod = SituationMethod.fromString(method);\n\t\tHttpRespModel respModel = new HttpRespModel();\n\t\t\n\t\t\n\t\tswitch (requestMethod) {\n\t\tcase AddMealSituationMethod:\n\t\t{\n\t\t\t//添加吃饭记录\n\t\t\trespModel = addMealSituationHandler(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase TodayMealSituationMethod:{\n\t\t\t//获取当天吃饭记录\n\t\t\trespModel = getTodayMealSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase AddSleepSituationMethod:{\n\t\t\t//添加睡觉情况记录\n\t\t\trespModel = addSleepSituation(body);\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\tcase TodaySleepSituationMethod:{\n\t\t\t//获取当天睡觉情况记录\n\t\t\trespModel = getTodaySleepSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase InterestCateList:{\n\t\t\t//获取兴趣分类列表\n\t\t\tInterestUtil util = new InterestUtil();\n\t\t\trespModel = util.getAllInterestList();\n\t\t\tbreak;\n\t\t}\n\t\tcase TodayInterestSituationMethod:{\n\t\t\trespModel = getTodayInterestSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase AddInterestSituationMethod:{\n\t\t\t//添加兴趣学习清理\n\t\t\trespModel = addInterestSituation(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase UnkonwnMethod:\n\t\tdefault:{\n\t\t\trespModel.setCode(RespError.urlMethodError);\n\t\t\trespModel.setMessage(\"对不起, method: \" + method + \"没有找到。\");\n\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn respModel;\n\t}",
"public static HttpURLConnection GetHttpURLConnection(String serviceUrl, String queryString, String path, String xmlJson, String requestMethod) {\n HttpURLConnection httpConn = null;\n String urlAddress = String.valueOf(serviceUrl + path + \"?\" + queryString).replace(\" \", \"%20\");\n try {\n System.out.println(urlAddress);\n URL url = new URL(urlAddress);\n\n httpConn = (HttpURLConnection) url.openConnection();\n httpConn.setInstanceFollowRedirects(false);\n httpConn.setRequestProperty(\"Content-Type\", xmlJson);\n httpConn.setRequestProperty(\"Accept\", xmlJson);\n httpConn.setDoOutput(true);\n httpConn.setDoInput(true);\n httpConn.setUseCaches(false);\n httpConn.setRequestMethod(requestMethod);\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n ApiLog.One.WriteText(\"HttpRequest ::\" + urlAddress);\n return httpConn;\n }",
"void dispatchRequest(String urlPath) throws Exception;",
"@Test\n\tpublic void postCallMethod() throws JsonGenerationException, JsonMappingException, IOException {\n\t\tpostMethod = new RestClient();\n\n\t\t// Header Value to Pass with GET Method (URI is already ready in before Method)\n\t\tHashMap<String, String> header = new HashMap<String, String>();\n\t\theader.put(\"Content-Type\", \"application/json\");\n\n\t\t// Create Java Object (POJO) in which data is stored\n\t\tString name = \"Manish\" + TestUtil.getCurrentDateTimeStamp();\n\t\tSystem.out.println(\"Name: \" + name);\n\t\tEmployee employee = new Employee(name, \"10000\", \"25\", null);\n\n\t\t// Convert POJO into JSON Object\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.writeValue(new File(System.getProperty(\"user.dir\") + \"/src/main/java/employee.json\"), employee);\n\n\t\t// java Object to JSON in string (Marshelling)\n\t\tString usersJsonString = mapper.writeValueAsString(employee);\n\n\t\t// POST method is called using URI,JSON body and headers and response is saved\n\t\t// in variable\n\t\tresponseUnderPostRequest = postMethod.post(URI, usersJsonString, header);\n\n\t\t// Output of POST call\n\t\t// Validation part (For POST method output is 1.StatusCode,2.Response\n\t\t// JSON,3.Header)\n\t\t// 1. Retrieve Response Status Code and Assert it\n\t\tint StatusCode = responseUnderPostRequest.getStatusLine().getStatusCode();\n\t\tAssert.assertEquals(StatusCode, RESPONSE_STATUS_CODE_200);\n\n\t\t// 2.Retrieve Response JSON Object as a String\n\t\tString jsonString = EntityUtils.toString(responseUnderPostRequest.getEntity(), \"UTF-8\");\n\n\t\t/*\n\t\t * JSONObject jsonObject=new JSONObject(jsonString);\n\t\t * System.out.println(jsonObject);\n\t\t */\n\n\t\t// Convert JSON Object to java object POJO (Unmarshelling) and Assert with\n\t\t// Previous JAVA Object POJO\n\t\tEmployee responseUser = mapper.readValue(jsonString, Employee.class);\n\t\tAssert.assertTrue(responseUser.getName().equals(employee.getName()));\n\t}",
"public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }",
"@JsonPost\n @RequestMapping(mapping = \"/new-connection-application\", requestMethod = RequestMethod.POST)\n public void postCoLocationNewConnectionApplicationForm(@RequestParameter(isJsonBody = true, value = \"application\") String jsonString, LoginDTO loginDTO, HttpServletRequest request) throws Exception {\n\n JsonElement jelement = new JsonParser().parse(jsonString);\n\n JsonObject jsonObject = jelement.getAsJsonObject();\n\n CoLocationApplicationDTO coLocationApplicationDTO = new CoLocationApplicationDeserializer().deserialize_custom(jelement, loginDTO);\n coLocationApplicationDTO.setApplicationType(CoLocationConstants.NEW_CONNECTION);\n coLocationApplicationDTO.setState(CoLocationConstants.STATE.SUBMITTED.getValue());\n coLocationApplicationService.insertApplication(coLocationApplicationDTO, loginDTO);\n\n// return CoLocationConstants.CO_LOCATION_BASE_URL;\n }",
"public interface BaseRequstBody {\n\n @GET(\"/product/getCarts\")\n Observable<HomeBean> requstAllData();\n\n\n @POST(\"product/updateCarts/\")\n @FormUrlEncoded\n Observable<HomeBean> UpDataData(@FieldMap HashMap<String,String> parms);\n\n\n}",
"public interface Api {\n\n @GET(\"index\")\n Call<String> getSimple();\n\n @GET(\"getxml\")\n Call<String> getXml(@Query(\"code\") int code);\n\n @FormUrlEncoded\n @POST(\"postme\")\n Call<String> postSimple(@Field(\"from\") String foo);\n\n @Headers({\"Content-Type: application/xml\", \"Accept: application/json\"})\n @POST(\"postxml\")\n Call<String> postXml(@Body RequestBody aRequestBody);\n\n\n}"
]
| [
"0.6395004",
"0.59887695",
"0.59001887",
"0.58118707",
"0.5790491",
"0.5774205",
"0.57084614",
"0.56385577",
"0.56165725",
"0.55972856",
"0.5538303",
"0.5509586",
"0.5501614",
"0.54949725",
"0.54862696",
"0.54798675",
"0.54723823",
"0.5467723",
"0.5464927",
"0.54558945",
"0.5440186",
"0.5435168",
"0.54341376",
"0.5429665",
"0.5410846",
"0.5398325",
"0.5387738",
"0.53838587",
"0.5355586",
"0.53549284",
"0.53372127",
"0.53316444",
"0.5330816",
"0.5308165",
"0.5295494",
"0.5291607",
"0.5273447",
"0.5271426",
"0.52606094",
"0.5259049",
"0.5234365",
"0.52241504",
"0.5213693",
"0.5210567",
"0.5209828",
"0.5205086",
"0.5198946",
"0.5189459",
"0.5178043",
"0.51735157",
"0.51623243",
"0.5156396",
"0.5155354",
"0.51547396",
"0.5154028",
"0.5150592",
"0.51493627",
"0.5147923",
"0.5147654",
"0.5143584",
"0.5135947",
"0.5133867",
"0.5132567",
"0.51282966",
"0.51256484",
"0.51244885",
"0.51091397",
"0.51081085",
"0.5107372",
"0.5106256",
"0.51039404",
"0.51006615",
"0.50935036",
"0.50932914",
"0.50713444",
"0.5064475",
"0.50637436",
"0.5060747",
"0.50570637",
"0.50563383",
"0.50557405",
"0.50462353",
"0.5044747",
"0.50416803",
"0.5037429",
"0.5033656",
"0.5032701",
"0.50305593",
"0.5028296",
"0.5026427",
"0.50255835",
"0.50229806",
"0.5020067",
"0.5019956",
"0.5017579",
"0.50049335",
"0.50041074",
"0.50039357",
"0.500332",
"0.500176"
]
| 0.61702013 | 1 |
TODO Autogenerated method stub | @Override
public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)
throws Exception {
} | {
"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 postHandle(HttpServletRequest request, HttpServletResponse arg1, Object arg2, ModelAndView arg3)
throws Exception {
} | {
"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 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }",
"private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }"
]
| [
"0.7884413",
"0.7549383",
"0.7497253"
]
| 0.74617267 | 98 |
Checks if a string can be sent | public static boolean canSend(String check) {
for (final String check2 : checks) {
if (check.contains(check2))
return false;
if (check.contains("," + check2.substring(1)))
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canProvideString();",
"public abstract boolean accepts(String string);",
"private boolean canSend() {\n\n if (StringUtils.isEmpty(constructedCommand())) return false;\n\n int beginIndex = constructedCommand()\n .indexOf(serialProperties.getCmdBeginMarker());\n int endIndex = constructedCommand()\n .indexOf(serialProperties.getCmdEndMarker());\n\n return beginIndex != -1 && endIndex != -1 && beginIndex < endIndex;\n }",
"boolean hasString();",
"private void checkInput(String input)throws Exception{\n\n if (input.getBytes(\"UTF-8\").length > 255){\n throw new IOException(\"Message too long\");\n\n }\n try {\n if (Integer.parseInt(input) < 0 || Integer.parseInt(input) > 65535) {\n throw new IOException(\"Port not valid\");\n }\n }catch (NumberFormatException e){\n //nothing should happen\n }\n }",
"public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }",
"public boolean isString();",
"String[] checkIfLegalCommand(String strToChck);",
"public abstract boolean isValid(String s);",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }",
"public boolean isInputValid(ConversationContext context, String s)\r\n/* */ {\r\n/* 135 */ return (s.equalsIgnoreCase(\"one\")) || (s.equals(\"1\")) || (s.equalsIgnoreCase(\"two\")) || (s.equals(\"2\")) || (s.equalsIgnoreCase(\"zero\")) || (s.equals(\"0\"));\r\n/* */ }",
"public boolean canConvert(String s);",
"public static boolean checkInput(String response) {\r\n\t\t\r\n\r\n\t\tif(response.length() != 1)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tswitch(response) {\r\n\t\tcase \"y\":\r\n\t\tcase \"Y\":return true;\r\n\t\tcase \"n\":\r\n\t\tcase \"N\":return true;\r\n\t\tdefault: return false;\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}",
"static boolean checkIsDeviceAvailable(String respStr)\n {\n if (respStr.length() != CMD_LEN)\n {\n// log.warn(\"checkIsDeviceAvailable(): respStr is not valid:\" + respStr + \",return false\");\n return false;\n }\n MeshCommand cmd = new MeshCommand(respStr);\n if (!cmd.isValid())\n {\n// log.warn(\"checkIsDeviceAvailable(): cmd is not valid, cmd:\" + cmd + \",return false\");\n return false;\n }\n if (!cmd.isFree())\n {\n// log.warn(\"checkIsDeviceAvailable(): cap is not enought, return false\");\n return false;\n }\n return true;\n }",
"private boolean checkChannelInputData(HttpServletRequest request, HttpServletResponse response) {\n return (request.getParameter(\"channelName\") != null && request.getParameter(\"channelName\").length() > 0\n && request.getParameter(\"type\") != null && request.getParameter(\"type\").length() > 0)\n && request.getParameter(\"channelNumber\") != null && request.getParameter(\"channelNumber\").length() > 0;\n }",
"private boolean STRING(String s) {\r\n int n = input.match(s, in);\r\n in += n;\r\n return (n > 0);\r\n }",
"private boolean writeToServer(@NotNull String text) {\n try {\n outToServer.writeUTF(text);\n return true;\n\n } catch (IOException e) {\n System.out.println(\"IOExeption \" + e);\n }\n return false;\n }",
"public static boolean checkInput(String saInput) {\r\n\t\treturn checkGenericPattern(saInput) && checkGenericPattern(unalter(saInput));\r\n\t}",
"private boolean is_valid_message(String ID)\n\t{\n\t\t// if the string is not null, not empty, and between 0 and 65356 in length, it is valid\n\t\tif(ID != null && !ID.equals(\"\") && ID.length() > 0 && ID.length() < 65356)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t// otherwise it's not\n\t\treturn false;\n\t}",
"boolean isSetValueString();",
"boolean isSending();",
"protected boolean hasStringIdentifier(){\r\n // get string descriptor\r\n int status = gUsbIo.getStringDescriptor(stringDescriptor1,(byte)1,0);\r\n if (status != USBIO_ERR_SUCCESS) {\r\n return false;\r\n } else {\r\n if(stringDescriptor1.Str.length()>0) return true;\r\n }\r\n return false;\r\n }",
"boolean hasScStr();",
"private Boolean isValidUsername(String username){\n return (username != null) && (username.length() >= 5 && username.length() <= 16);\n }",
"@Override\n\tprotected void isValid(String input) throws DataInputException\n\t{\n\t}",
"private boolean isInValidInput(String input) {\n\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn true;\n\n\t\tint firstPipeIndex = input.indexOf(PARAM_DELIMITER);\n\t\tint secondPipeIndex = input.indexOf(PARAM_DELIMITER, firstPipeIndex + 1);\n\n\t\t/*\n\t\t * if there are no PARAM_DELIMITERs or starts with a PARAM_DELIMITER\n\t\t * (Meaning command is missing) or only single PARAM_DELIMITER input is\n\t\t * not valid\n\t\t */\n\t\tif (firstPipeIndex == -1 || firstPipeIndex == 0 || secondPipeIndex == -1)\n\t\t\treturn true;\n\n\t\t// Means package name is empty\n\t\tif (secondPipeIndex - firstPipeIndex < 2)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}",
"boolean hasSendPlayerName();",
"private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }",
"private static boolean validCommand(String line) {\n if (line.equals(\"GET\") || line.equals(\"BOARD\")) {\n return true;\n } else if (line.matches(\"PUT .*\")) {\n if (line.matches(\"PUT [1234]\")) {\n return true;\n } else {\n System.out.println(INVALID_PUT_COLUMN_ERROR_MESSAGE);\n return false;\n }\n } else {\n System.out.println(INVALID_COMMAND_ERROR_MESSAGE);\n return false;\n }\n }",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }",
"private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\\\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~\";\r\n\t\tfor(int i=0;i<str.split(\"\").length;i++){\r\n\t\t\tif(allowedChars.indexOf(str.split(\"\")[i]) == -1){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean ShouldEncode(String str) {\r\n\r\n char SAFE_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 0};\r\n char SAFE_INIT_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 32, ':', '<', 0};\r\n\r\n // Are there safe initial character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_INIT_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_INIT_CHAR_EXCEPTIONS[ji]) == 0) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Are there safe character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_CHAR_EXCEPTIONS[ji]) != -1) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Is there a trailing space?\r\n if (str.endsWith(\" \")) {\r\n return (true);\r\n }\r\n\r\n\r\n return (false);\r\n }",
"public void checkSafeString(IRubyObject object) {\n if (getSafeLevel() > 0 && object.isTaint()) {\n ThreadContext tc = getCurrentContext();\n if (tc.getFrameName() != null) {\n throw newSecurityError(\"Insecure operation - \" + tc.getFrameName());\n }\n throw newSecurityError(\"Insecure operation: -r\");\n }\n secure(4);\n if (!(object instanceof RubyString)) {\n throw newTypeError(\n \"wrong argument type \" + object.getMetaClass().getName() + \" (expected String)\");\n }\n }",
"public synchronized boolean validate(Object data) {\n if (!(data instanceof String)) {\n return false;\n }\n\n String dataString = (String) data;\n dataString = dataString.replaceAll(\"\\\\s\", \"\").replaceAll(\"-\", \"\");\n if (dataString.length() != 6) {\n return false;\n }\n\n for (Character c : dataString.substring(0, 2).toCharArray()) {\n if (!Character.isLetter(c)) {\n return false;\n }\n }\n for (Character c : dataString.substring(3, 5).toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }",
"public abstract boolean checkAction(String str);",
"public static boolean isValid(String str)\n\t{\n\t\tboolean len = false;\n\t\tboolean cap = false;\n\t\tboolean small = false;\n\t\tboolean num = false;\n\t\tboolean valid = false;\n\n\t\tchar[] pieces = str.toCharArray();\n\n\t\tif(!(pieces.length<6))\n\t\t{\n\t\t\tlen = true;\n\t\t\tfor(int i=0; i<pieces.length; i++)\n\t\t\t{\n\t\t\t\tif(Character.isLowerCase(pieces[i])) \n\t\t\t\t\tcap = true;\n\t\t\t\telse if(Character.isUpperCase(pieces[i])) \n\t\t\t\t\tsmall = true;\n\t\t\t\telse if(Character.isDigit(pieces[i])) \n\t\t\t\t\tnum = true;\n\t\n\t\t\t\tif(len && cap && small && num)\n\t\t\t\t\tvalid = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}",
"public static boolean isTaken(String string) {\n return false;\n }",
"public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}",
"private boolean isUserInputValid(String[] packetData)\n\t{\n\t\tif(packetData.length < 3 ) return false;\n\t\tString address = packetData[0];\n\t\tint port = Integer.parseInt(packetData[1]);\n\n\t\tint addressPeriodsCount = address.length() - address.replace(\".\", \"\").length();\n\n\t\tif (packetData.length < 3)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse if(address.equals(\"localhost\") && (port > 0 || port <= 65535))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (addressPeriodsCount == 3 ||addressPeriodsCount == 2 ) && (port > 0 || port <= 65535);\n\t\t}\n\t}",
"public static boolean check(String s)\n {\n if (s.length() < 0 || s.length() > 10)\n {\n return true;\n }\n for (int i = 0 ; i < s.length(); i++)\n {\n if ((s.charAt(i) < 'a' || s.charAt(i) > 'z') && \n (s.charAt(i) < 'A' || s.charAt(i) > 'Z') && \n (s.charAt(i) < '0' || s.charAt(i) > '9'))\n {\n return true;\n }\n }\n return false;\n }",
"boolean hasStringValue();",
"protected abstract boolean isInputValid(@NotNull ConversationContext context, @NotNull String input);",
"@Override\n\tpublic boolean supports(Object value) {\n\t\treturn value != null && (value instanceof String);\n\t}",
"@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }",
"public boolean writeString( String str ) {\n log_d( \"writeString() \" + str );\n // Check that there's actually something to send\n if ( str.length() == 0 ) return false;\n\t\t// Get the message bytes and tell the BluetoothChatService to write\n\t\treturn writeBytes( str.getBytes() );\n }",
"private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }",
"boolean isBadCommunication();",
"public boolean isCorrect(String str);",
"boolean hasCsStr();",
"boolean checkChar(String s1, String s2);",
"private static boolean valid(String arg) {\n\n /* check if valid option */\n if ( arg.equals(\"-v\") || arg.equals(\"-i\") || arg.equals(\"-p\") || arg.equals(\"-h\") )\n return true;\n\n /* check if valid port */\n try {\n int port = Integer.parseInt(arg);\n if ( ( 0 < port ) && ( port < 65354 ) )\n return true;\n } catch (NumberFormatException ignored) {}\n\n /* check if valid ip address */\n String[] ips = arg.split(\"\\\\.\");\n if ( ips.length != 4 )\n return false;\n try{\n for (int i=0; i<4; i++){\n int ip = Integer.parseInt(ips[i]);\n if ( ( ip < 0) || (255 < ip ) )\n return false;\n }\n } catch (NumberFormatException ignored) {return false;}\n\n return true;\n }",
"private boolean checkRoomValid(String room) {\n\treturn true;\r\n}",
"private boolean testString(String s, boolean critical) {\n // Have the generator check the String\n Violation violation = new Violation(baseSink, baseSink);\n generator.checkTaint(s, 0, violation);\n // Check if a critical violation would have been reported\n return critical == !violation.getTaintedValues().isEmpty();\n }",
"boolean hasSendMessage();",
"public boolean isString() {\n return false;\n }",
"public boolean sendData(String data) throws IOException;",
"@Override\n public boolean validate(final String param) {\n return false;\n }",
"private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }",
"boolean hasBitcoinAddress();",
"public boolean hasStringParam(String paramName);",
"abstract boolean canMatchEmptyString();",
"protected boolean isCodeshareValid(String codeshare) {\n return codeshare.isEmpty() || codeshare.equals(\"Y\");\n }",
"private boolean checkInCashe(String s) {\n return true;\n }",
"void sent(String s);",
"public static boolean ValidString(String s)\n\t{\n\t\tchar[] sChar = s.toCharArray();\n\t\tfor(int i = 0; i < sChar.length; i++)\n\t\t{\n\t\t\tint sInt = (int)sChar[i];\n\t\t\tif(sInt < 48 || sInt > 122)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 57 && sInt < 65)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 90 && sInt < 97)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isNameValid(String name) {\n\n }",
"@Override\n\tpublic boolean hasPermission(String string) {\n\t\treturn true;\n\t}",
"public void testIsTextValid() {\n String text = null;\n int slotId = 0;\n int feature = 0;\n\n // 01--empty\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 02--valid\n text = \"nickmmmm\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 03--too long\n text = \"abcdefghijklmnopqrstu\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 04\n text = \"端午春asdfghjklop\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 05\n text = \"端午春as\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n }",
"public static boolean hasLength(String str) {\n\t\treturn hasLength((CharSequence) str);\n\t}",
"private static boolean hasString(String value) {\n if (!value.trim().equals(\"\") && value.length() > 0) {\n return true;\n }\n\n return false;\n\n }",
"public boolean hasString() {\n/* 800 */ return true;\n/* */ }",
"public static boolean isValidInput(String str) {\n if (str != null && str.matches(\"^[a-zA-Z0-9_]*$\")){\n return true;\n }\n\n return false;\n }",
"public static boolean isGoodField(String input) {\n if (input == null || input.isEmpty() || input.length() < 6)\n return false;\n return true;\n }",
"Boolean checkLength(String detail);",
"@Override\n protected boolean isValueIsValid(String value) {\n return false;\n }",
"public boolean isString()\n {\n return true;\n }",
"boolean isValid(String word);",
"private static String checkAddress(String raw) \n\t{\n\t\t// Check to see if the length is greater than the maxLength of user input.\n\t\tif(raw.length() > maxLength) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn raw;\n\t}",
"protected void checkCommand(String com) throws IllegalArgumentException {\n if (com.length() != PushCacheProtocol.COMMAND_LEN) {\n throw new IllegalArgumentException(\"Command \\\"\" + com + \"\\\" is wrong length\");\n }\n if (com.charAt(3) != '\\0') {\n throw new IllegalArgumentException(\"Command \\\"\" + com + \"\\\" is not null terminated\");\n }\n }",
"public boolean insuranceCheck(String String) {\n\t\treturn false;\n\t}",
"public boolean isString() {\n return this.data instanceof String;\n }",
"@Override\n\tpublic boolean match(String str) {\n\t\treturn false;\n\t}",
"boolean hasPlainTransferFrom();",
"public boolean accept(String text)\n {\n return !checker1.accept(text);\n }",
"private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }",
"private void validate(String s, int length, String msg) {\n Logger.getLogger(getClass()).info(\"valore della stringa inserita\"+s);\n \tif (s != null && s.length()>length)\n throw new IllegalArgumentException(msg);\n }",
"public static boolean isNameValid(String string) {\n if (isBlankOrNull(string)) return false;\n if (string.length() > 45) return false;\n\n return string.matches(\"[a-zA-Z0-9]*\");\n }",
"public boolean isValidInput(String input) {\r\n\t\tif (input == null || input.isEmpty())\r\n\t\t\treturn false;\r\n\t\tString inputTokens[] = input.split(\" \");\r\n\t\tif (inputTokens.length < 2)\r\n\t\t\treturn false;\r\n\t\tfor (int i = 0; i < inputTokens.length; i++) {\r\n\t\t\tfor (int j = 0; j < inputTokens[i].length(); j++) {\r\n\t\t\t\tswitch (inputTokens[i].charAt(j)) {\r\n\t\t\t\tcase '!':\r\n\t\t\t\tcase '?':\r\n\t\t\t\tcase '@':\r\n\t\t\t\tcase '#':\r\n\t\t\t\tcase '*':\r\n\t\t\t\tcase '/':\r\n\t\t\t\tcase '<':\r\n\t\t\t\tcase '>':\r\n\t\t\t\tcase '&':\r\n\t\t\t\tcase '%':\r\n\t\t\t\tcase '~':\r\n\t\t\t\tcase ';':\r\n\t\t\t\tcase ':':\r\n\t\t\t\tcase '[':\r\n\t\t\t\tcase ']':\r\n\t\t\t\tcase '{':\r\n\t\t\t\tcase '}':\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"private boolean isValidInput(String input) \r\n {\r\n\t \r\n return input!=null&&input.length()<=10;\r\n \r\n }",
"public boolean checkInput(String input){\n\t\t//make sure only input 0-9\n\t\tif(input.length() != 1){\n\t\t\treturn false;\n\t\t}\n\t\tchar c = input.charAt(0);\n\t\tif(!Character.isDigit(c)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"static boolean m61443b(Context context, String str) {\n if (context.checkCallingOrSelfPermission(str) == 0) {\n return true;\n }\n return false;\n }",
"private void validText(String s){\n if(s.length() > 0 && MovieList.getInstance(this).isKeyAvailable(s)){\n btn = (Button)findViewById(R.id.keyCheckButton);\n btn.setEnabled(true);\n } else {\n btn.setEnabled(false);\n }\n\n }",
"public boolean checkName(String name)\n {\n boolean value = true;\n if(name.length() < 3 || name.length() > 15)\n {\n System.out.println(\"Name must be between 3 and 15 characters\");\n value = false;\n }\n return value;\n }",
"private static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean m1387a(String str) {\n return str.contains(\"RC2\") || str.contains(\"RC4\") || str.contains(\"DES\") || str.contains(\"MD2\") || str.contains(\"MD4\") || str.contains(\"MD5\") || str.contains(\"ANON\") || str.contains(\"NULL\") || str.contains(\"SKIPJACK\") || str.contains(\"SHA1\") || str.contains(\"TEA\") || str.contains(\"SHA0\") || str.contains(\"RIPEMD\") || str.contains(\"TLS_EMPTY_RENEGOTIATION_INFO_SCSV\") || str.contains(\"aNULL\") || str.contains(\"eNULL\") || str.contains(\"TLS_DH_anon_WITH_AES_256_CBC_SHA\") || str.contains(\"DES40\") || str.contains(\"DESX\") || str.contains(\"TLS_RSA\") || str.contains(\"SSL_RSA\");\n }",
"public boolean hasScStr() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean isSetString();",
"private Boolean validateRequest() {\n\t\tint cell = 2;\n\t\t\n\t\t// If the length is over max_buffer bytes, the message is too long.\n\t\tif (receivePacket.getLength() > TFTPCommons.max_buffer) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// If the first two bytes aren't 0 1 or 0 2, then the message is malformed.\n\t\tif ((receiveData[0] != 0) | !((receiveData[1] == 1) | (receiveData[1] == 2))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Note which cell we're at now.\n\t\tint prev_cell = cell;\n\t\t\n\t\t// Fast-forward through the text to the first separator 0.\n\t\twhile (true) {\n\t\t\t// If cell equals length, the message is invalid,\n\t\t\t// likely because it was malformed.\n\t\t\tif (cell == receivePacket.getLength()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// If this is the first separator 0, break loop and go to next cell\n\t\t\t// Unless the first separator zero is the cell we started at,\n\t\t\t// then the message is invalid\n\t\t\tif (receiveData[cell] == 0) {\n\t\t\t\tif (cell == prev_cell) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcell++;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// Otherwise, go to next cell\n\t\t\t\tcell++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Note which cell we're at now.\n\t\tprev_cell = cell;\n\t\t\t\t\n\t\t// Fast-forward through the text to the second separator 0.\n\t\twhile (true) {\n\t\t\t// If cell equals length, the message is invalid,\n\t\t\t// likely because it was malformed.\n\t\t\tif (cell == receivePacket.getLength()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// If this is the second separator 0, break loop and go to next cell.\n\t\t\t// Unless the first separator zero is the cell we started at,\n\t\t\t// then the message is invalid\n\t\t\tif (receiveData[cell] == 0) {\n\t\t\t\tif (cell == prev_cell) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcell++;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// Otherwise, go to next cell\n\t\t\t\tcell++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// At this point, we should have covered the whole message,\n\t\t// Unless it is malformed.\n\t\tif (cell == receivePacket.getLength()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}"
]
| [
"0.74992156",
"0.6915792",
"0.6452882",
"0.61817676",
"0.61249137",
"0.60780925",
"0.60779214",
"0.605438",
"0.60418266",
"0.6010373",
"0.6010373",
"0.59868664",
"0.5959307",
"0.5950863",
"0.59484035",
"0.5944265",
"0.5937749",
"0.5935179",
"0.5932103",
"0.58922285",
"0.58603275",
"0.58519405",
"0.5845458",
"0.5840174",
"0.5833125",
"0.5804803",
"0.58042526",
"0.58036184",
"0.580142",
"0.5799821",
"0.5797555",
"0.57942086",
"0.57829225",
"0.5778347",
"0.57761276",
"0.576702",
"0.57592756",
"0.57531774",
"0.5750024",
"0.57329917",
"0.57208157",
"0.57138985",
"0.57103777",
"0.5710005",
"0.5695806",
"0.56700766",
"0.5668918",
"0.56670237",
"0.565454",
"0.56486696",
"0.5645058",
"0.56147885",
"0.5610552",
"0.56044257",
"0.5603412",
"0.56013197",
"0.558732",
"0.5581732",
"0.5579081",
"0.5576034",
"0.5575342",
"0.55731344",
"0.55659354",
"0.5553223",
"0.55399925",
"0.55358595",
"0.55346495",
"0.55270165",
"0.55205756",
"0.55187297",
"0.5516596",
"0.5506976",
"0.5503203",
"0.5502642",
"0.55005455",
"0.54748887",
"0.54651564",
"0.5465136",
"0.5464459",
"0.5457742",
"0.54560363",
"0.54553294",
"0.54513586",
"0.54466",
"0.54408914",
"0.5440441",
"0.5438154",
"0.5436698",
"0.5436653",
"0.5433277",
"0.5428529",
"0.54276365",
"0.54273844",
"0.5425355",
"0.5423199",
"0.54199713",
"0.5419285",
"0.5408931",
"0.54025596",
"0.5399356",
"0.53974825"
]
| 0.0 | -1 |
Checks for a snitch. Uses three divideandconquer searches on world, x, z (in that order) to narrow search within a sorted list. This works because the sorted list is sorted using keys world, x, z, y in that order. First the slice holding snitches in the same world is found, then the slice of that holding the X of interest, then Z. Finally the results are iterated over to find the closest. | public static void checkSnitchArea(String world, int x, int y, int z, ArrayList<Snitch> snitchList, boolean removeSnitch) {
try {
searchChecks = 0l;
int min = 0;
findLowerLimit(Search.WORLD, world, 0, snitchList.size() - 1, snitchList);
int max = snitchList.size()-1;
findUpperLimit(Search.WORLD, world, min, snitchList.size() - 1, snitchList);
for (Search k : Search.values()) {
min = findLowerLimit(k, k == Search.WORLD ? world : k == Search.X ? x: z, min, max, snitchList);
if (max < min) return;
max = findUpperLimit(k, k == Search.WORLD ? world : k == Search.X ? x: z, min, max, snitchList);
if (max < min) return;
if (max - min <= 1) break;
}
logger.info("Performed " + searchChecks + " checks -- final bounds: " + min + ", " + max);
logger.info("Total snitches: " + snitchList.size() + " -- searched " +
Math.round(((double)(searchChecks + max-min+1) / (double)snitchList.size()) * 10000.0d)/100.0d + "% of total");
int index = -1;
double sqDistance = Double.MAX_VALUE;
for (int i = min; i <= max; i++) {
Snitch n = snitchList.get(i);
if (n.contains(world, x, y, z)) {
// Get closest snitch
double temp = Minecraft.getMinecraft().thePlayer.getDistanceSq(n.getX(), n.getY(), n.getZ());
if (temp < sqDistance) {
sqDistance = temp;
index = i;
}
}
}
if (index != -1) {
snitchIndex = index;
Snitch n = SV.instance.snitchList.get(index);
//Only refresh the cull time if cull time is turned on
//(Having a null raw cull time means its turned off)
if(n.getRawCullTime() != null)
n.setRawCullTime(Snitch.changeToDate(672.0));
playerIsInSnitchArea = true;
updateSnitchName = false;
if (removeSnitch) {
SV.instance.snitchList.remove(index);
logger.info("Snitch Removed!");
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("[" + SV.MODNAME
+ "] You have just deleted a Snitch!"));
} else if (n.getName().equals("Unknown")) {
updateSnitchName = true;
}
} else if (playerIsInSnitchArea) {
playerIsInSnitchArea = false;
updateSnitchName = false;
snitchIndex = -1;
SVFileIOHandler.saveList();
}
} catch (Exception e) {
logger.error("Failure while checking snitch area!", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static ArrayList<int[]> searcherTopLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles top left of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t}\n\t\treturn MoveList;\n\t}",
"public void scatter(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n final int MAXTILE = 160;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos-20) - SCATTERY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos+20) - SCATTERY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos -5;\r\n }\r\n\r\n }",
"static ArrayList<int[]> searcherTopRightTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\t\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] > 7 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles top right of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t \t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"public Set<? extends Position> findNearest(Position position, int k);",
"public static int[] getSafeBlockWithinRange(World world, int x, int y, int z, int ranX, int ranY, int ranZ)\n\t{\n\t\tint[] pos = new int[] {x, y, z};\n\n\t\t//find x2,y2,z2 = 0, 1, -1, 2, -2, 3, -3, ...\n\t\t//find block priority: Y > Z > X\n\t\tint xlimit = ranX * 2;\n\t\tint ylimit = ranY * 2;\n\t\tint zlimit = ranZ * 2;\n\t\tint x2 = 0;\n\t\tint y2 = 0;\n\t\tint z2 = 0;\n\t\tint x3, y3, z3;\n\t\tint addx;\n\t\tint addy;\n\t\tint addz;\n\t\t\n\t\tfor (int ix = 0; ix <= xlimit; ix++)\n\t\t{\n\t\t\t//calc sequence number\n\t\t\taddx = (ix & 1) == 0 ? ix * -1 : ix;\n\t\t\tx2 += addx;\n\t\t\t\n\t\t\t//reset z2\n\t\t\tz2 = 0;\n\t\t\t\n\t\t\tfor (int iz = 0; iz <= zlimit; iz++)\n\t\t\t{\n\t\t\t\t//calc sequence number\n\t\t\t\taddz = (iz & 1) == 0 ? iz * -1 : iz;\n\t\t\t\tz2 += addz;\n\t\t\t\t\n\t\t\t\t//reset y2\n\t\t\t\ty2 = 0;\n\t\t\t\t\n\t\t\t\tfor (int iy = 0; iy <= ylimit; iy++)\n\t\t\t\t{\n\t\t\t\t\t//calc sequence number\n\t\t\t\t\taddy = (iy & 1) == 0 ? iy * -1 : iy;\n\t\t\t\t\ty2 += addy;\n\t\t\t\t\t\n\t\t\t\t\t//check block is safe\n\t\t\t\t\tx3 = pos[0] + x2;\n\t\t\t\t\ty3 = pos[1] + y2;\n\t\t\t\t\tz3 = pos[2] + z2;\n\t\t\t\t\t\n\t\t\t\t\tif (checkBlockSafe(world, x3, y3, z3))\n\t\t\t\t\t{\n\t\t\t\t\t\t//check block is safe to stand at\n\t\t\t\t\t\tint decY = 0; //max Y dist below target\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile (decY <= MathHelper.abs(y2))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (checkBlockCanStandAt(world.getBlockState(new BlockPos(x3, y3 - decY - 1, z3))))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpos[0] = x3;\n\t\t\t\t\t\t\t\tpos[1] = y3 - decY;\n\t\t\t\t\t\t\t\tpos[2] = z3;\n\t\t\t\t\t\t\t\treturn pos;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdecY++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}//end block is safe\n\t\t\t\t}//end y\n\t\t\t}//end z\n\t\t}//end x\n\t\t\n\t\tLogHelper.info(\"DEBUG : find block fail\");\n\t\treturn null;\n\t}",
"private void locateBestMatch(int queryStartIdx){\n \n double dist;\n double bsfDist = Double.MAX_VALUE;\n int bsfIdx = -1;\n\n double[] query = zNormalise(series, queryStartIdx, this.windowSize, false);\n double[] comparison;\n\n for(int comparisonStartIdx = 0; comparisonStartIdx <= seriesLength-windowSize; comparisonStartIdx+=stride){\n \n // exclusion zone +/- windowSize/2 around the window\n if(comparisonStartIdx >= queryStartIdx-windowSize*1.5 && comparisonStartIdx <= queryStartIdx+windowSize*1.5){\n continue;\n }\n \n // using a bespoke version of this, rather than the shapelet version, for efficiency - see notes with method\n comparison = zNormalise(series, comparisonStartIdx, windowSize, false);\n dist = 0;\n\n for(int j = 0; j < windowSize;j++){\n dist += (query[j]-comparison[j])*(query[j]-comparison[j]);\n if(dist > bsfDist){\n dist = Double.MAX_VALUE;\n break;\n }\n }\n\n if(dist < bsfDist){\n bsfDist = dist;\n bsfIdx = comparisonStartIdx;\n }\n\n }\n \n this.distances[queryStartIdx] = bsfDist;\n this.indices[queryStartIdx] = bsfIdx;\n }",
"public String[] getNearestPlayer(Player p, PlayerData pd)\r\n/* 60: */ {\r\n/* 61:58 */ Game g = pd.getGame();\r\n/* 62: */ \r\n/* 63:60 */ int x = p.getLocation().getBlockX();\r\n/* 64:61 */ int y = p.getLocation().getBlockY();\r\n/* 65:62 */ int z = p.getLocation().getBlockZ();\r\n/* 66: */ \r\n/* 67:64 */ int i = 200000;\r\n/* 68: */ \r\n/* 69:66 */ Player player = null;\r\n/* 70:68 */ for (String s : g.getPlayers())\r\n/* 71: */ {\r\n/* 72:70 */ Player p2 = Bukkit.getPlayer(s);\r\n/* 73:72 */ if ((p2 != null) && (!p2.equals(p)) && (!pd.isOnTeam(s)))\r\n/* 74: */ {\r\n/* 75:74 */ Location l = p2.getLocation();\r\n/* 76: */ \r\n/* 77:76 */ int c = cal((int)(x - l.getX())) + cal((int)(y - l.getY())) + cal((int)(z - l.getZ()));\r\n/* 78:78 */ if (i > c)\r\n/* 79: */ {\r\n/* 80:79 */ player = p2;\r\n/* 81:80 */ i = c;\r\n/* 82: */ }\r\n/* 83: */ }\r\n/* 84: */ }\r\n/* 85:84 */ if (player != null) {\r\n/* 86:84 */ p.setCompassTarget(player.getLocation());\r\n/* 87: */ }\r\n/* 88:86 */ return new String[] { player == null ? \"none\" : player.getName(), String.valueOf(i) };\r\n/* 89: */ }",
"public boolean checkSight() {\r\n\t\tint x = (int) (creature.getXlocation()/Tile.TILEWIDTH);\r\n\t\tint y = (int) (creature.getYlocation()/Tile.TILEHEIGHT);\r\n\t\t//Facing Left\r\n\t\tif (creature.getLastDirection() == 1) {\r\n\t\t\tif (checkSeesPlayer(x-1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y+1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x-1, y)) {\r\n\t\t\t\treturn true; \r\n\t\t\t}else if (!checkCollision(x-1, y)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y)) {\r\n\t\t\t\t\treturn true; \r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x-1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y-1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Right\r\n\t\t}else if (creature.getLastDirection() == 3) {\r\n\t\t\tif (checkSeesPlayer(x+1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y+1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tif (checkSeesPlayer(x+2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y-1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tif (checkSeesPlayer(x+2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Up\r\n\t\t}else if (creature.getLastDirection() == 0) {\r\n\t\t\tif (checkSeesPlayer(x-1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-1, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+1, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else if (checkSeesPlayer(x+2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Down\r\n\t\t}else if (creature.getLastDirection() == 2) {\r\n\t\t\tif (checkSeesPlayer(x-1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-1, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+1, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x+2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"static ArrayList<int[]> searcherBottomLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] > 7){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid blacks piece to kill \" + j + \" tiles bottom left of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t \t\t\t\t\n\t\t\t}\n\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"static ArrayList<int[]> searcherBottomRightTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\t\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif(NewXY[0] > 7 || NewXY[1] > 7){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles bottom right of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t \t\t\t\t\n\t\t\t}\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"private void checkForDroneCollisions(Set<Drone> droneSet) {\n\t\t//then check if any drone is in a 5m vicinity of another\n\t\t//first cast the set to a list\n\t\tList<Drone> droneList = new ArrayList<>(droneSet);\n\t\t//create a list to store the crashed indices\n\t\tSet<Integer> crashedDroneIndices = new HashSet<>();\n\t\t//get the size of the list\n\t\tint listSize = droneList.size();\n\n\t\t//Outer loop, check every drone once\n\t\tfor(int i = 0; i != listSize; i++){\n\t\t\t//inner loop, only the following drones need to be checked, all the previous have already passed the outer loop\n\t\t\tfor(int j = i + 1; j < listSize; j++){\n\t\t\t\t//first get the positions of the drone\n\t\t\t\tVector pos1 = droneList.get(i).getPosition();\n\t\t\t\tVector pos2 = droneList.get(j).getPosition();\n\n\t\t\t\t//then get the distance between the two drones\n\t\t\t\tfloat distance = pos1.distanceBetween(pos2);\n\t\t\t\tif(distance <= CRASH_DISTANCE){\n\t\t\t\t\tcrashedDroneIndices.add(i);\n\t\t\t\t\tcrashedDroneIndices.add(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//all the drones that have collided with eachother need to be removed\n\t\tfor(Integer droneIndex: crashedDroneIndices){\n\t\t\t//first get the drone\n\t\t\tDrone currDrone = droneList.get(droneIndex);\n\t\t\t//then remove it from the world\n\t\t\tthis.removeDrone(currDrone);\n\t\t\t//remove it from the drone set (for consistency and performance improvement)\n\t\t\tdroneSet.remove(currDrone);\n\t\t}\n\t}",
"private void analyzeForObstacles() {\n \t\n \t\n \tStack<Rect> bestFound = new Stack<Rect>();//This is a stack as the algorithm moves along x linearly\n \tboolean[][] blackWhiteGrid = getBlackWhiteGrid();\n \tint[] cache = new int[grid.length];\n \t\n \twhile (true) {\n\t\t\tboolean noneFound = true;\n\t\t\t\n\t\t\tfor (int i = 0; i<cache.length; i++)\n\t\t\t\tcache[i] = 0;\n\t\t\tfor (int llx = grid.length -1; llx >= 0; llx--) {\n\t\t\t\tupdate_cache(blackWhiteGrid,cache, llx);\n\t\t\t\tfor (int lly = 0; lly < grid.length; lly++) {\n\t\t\t\t\tRect bestOfRound = new Rect(llx,lly,llx,lly);\n\t\t\t\t\tint y = lly;\n\t\t\t\t\tint x_max = 9999;\n\t\t\t\t\tint x = llx;\n\t\t\t\t\twhile (y+1<grid.length && blackWhiteGrid[llx][y]) {\n\t\t\t\t\t\ty++;\n\t\t\t\t\t\tx = Math.min(llx+cache[y]-1, x_max);\n\t\t\t\t\t\tx_max = x;\n\t\t\t\t\t\tRect tryRect = new Rect(llx,lly-1,x,y);\n\t\t\t\t\t\tif (tryRect.area() > bestOfRound.area()) {\n\t\t\t\t\t\t\tbestOfRound = tryRect;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (bestOfRound.area() > 40) {\n\t\t\t\t\t\tif (noneFound) {\n\t\t\t\t\t\t\tbestFound.push(bestOfRound);\n\t\t\t\t\t\t\tnoneFound = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tRect lastRect = bestFound.peek();\n\t\t\t\t\t\t\tif (lastRect.area() < bestOfRound.area()) {\n\t\t\t\t\t\t\t\tbestFound.pop();\n\t\t\t\t\t\t\t\tbestFound.push(bestOfRound);\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\tif (noneFound)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tclearFoundRectangle(blackWhiteGrid, bestFound.peek());\n \t}\n \t\n \t//add found rectanlges\n \tobstacles.clear();\n \tobstacles.addAll(bestFound);\n \tSystem.out.println(\"Sweep done:\");\n \tfor (Rect r : bestFound){\n \t\tSystem.out.println(\"Rect: llx=\" + (r.llx-400) + \"\\tlly=\" + (r.lly-400) + \"\\turx=\" + (r.urx-400) + \"\\tury=\" + (r.ury-400));\n \t\tList<Point2D.Double> corners = new ArrayList<Point2D.Double>();\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.ury-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.ury-400)));\n \t\tobstaclesF.add(new Obstacle(corners));\n \t}\n \t\n \ttoExplore.clear();\n \tint i = 0;\n \tRandom rand = new Random();\n \twhile (toExplore.size() < 10 && i < 1000) {\n \t\tint x = rand.nextInt(grid.length);\n \t\tint y = rand.nextInt(grid.length);\n \t\tif (grid[x][y] == .5) {\n \t\t\ttoExplore.add(new Flag(\"blue\",x,y));\n \t\t}\n \t}\n }",
"public static int isVehicleInSight(Player curr) {\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n if (bodyDir == UP) {\n dirs.add(UP);\n dirs.add(RIGHT);\n dirs.add(LEFT);\n if (curr.head360())\n dirs.add(DOWN);\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n dirs.add(UP);\n dirs.add(DOWN);\n if (curr.head360())\n dirs.add(LEFT);\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n dirs.add(RIGHT);\n dirs.add(LEFT);\n if (curr.head360())\n dirs.add(UP);\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n dirs.add(UP);\n dirs.add(DOWN);\n if (curr.head360())\n dirs.add(RIGHT);\n }\n\n if (dirs == null || dirs.size() == 0)\n return -1;\n for (int vi = 0; vi < players.length; vi++) {\n if (players[vi] == null || players[vi].getName().equals(\"NONE\") || (players[vi] instanceof Monster)) //we don't want the AI monster to consider itself or other monsters a target\n continue;\n Player veh = players[vi];\n boolean isAir = veh.isFlying();\n int vR = veh.getRow();\n int vC = veh.getCol();\n if (veh.getName().endsWith(\"civilian\"))\n continue;\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 1; r--) {\n if (isAir && r == vR && curr.getCol() == vC)\n return dir + 10;\n if (r == vR && curr.getCol() == vC)\n return dir;\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (isAir && r == vR && curr.getCol() == vC)\n return dir + 10;\n if (r == vR && curr.getCol() == vC)\n return dir;\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length - 1; c++) {\n if (isAir && c == vC && curr.getRow() == vR)\n return dir + 10;\n if (curr.getRow() == vR && c == vC)\n return dir;\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 1; c--) {\n if (isAir && c == vC && curr.getRow() == vR)\n return dir + 10;\n if (curr.getRow() == vR && c == vC)\n return dir;\n }\n }\n if (skip)\n continue;\n }\n }\n return -1;\n }",
"public boolean getNearestTownforTheFirstTime() {\n\t\tint eigenePositionX = stadtposition.x;\r\n\t\tint eigenePositionY = stadtposition.y;\r\n\t\tint anderePositionX, anderePositionY;\r\n\t\tint deltaX, deltaY;\r\n\t\tint distance;\r\n\t\tint distancesum;\r\n\t\tint mindistance = 1200;\r\n\t\tint minIndex = 0;\r\n\r\n\t\tfor (int i = 0; i < otherTowns.size(); i++) {\r\n\t\t\tanderePositionX = otherTowns.get(i).stadtposition.x;\r\n\t\t\tanderePositionY = otherTowns.get(i).stadtposition.y;\r\n\t\t\tdeltaX = eigenePositionX - anderePositionX;\r\n\t\t\tdeltaY = eigenePositionY - anderePositionY;\r\n\t\t\tdistancesum = deltaX * deltaX + deltaY * deltaY;\r\n\t\t\tdistance = (int) Math.sqrt(distancesum);\r\n\r\n\t\t\tif (distance == 0) {\r\n\t\t\t\tdistance = 1500;\r\n\t\t\t}\r\n\r\n\t\t\tif (distance < mindistance) {\r\n\t\t\t\t// System.out.println(distance+\" von minindex i \"+i+\"ist kleiner\");\r\n\t\t\t\tminIndex = i;\r\n\t\t\t\tmindistance = distance;\r\n\t\t\t\tif (mindistance < 33) {\r\n\t\t\t\t\tmindistance = 1200;\r\n\t\t\t\t\ti = 0;\r\n\t\t\t\t\tstadtposition.x = (int) (Math.random() * 1000);\r\n\t\t\t\t\tstadtposition.y = (int) ((Math.random() * 680) + 100);\r\n\r\n//\t\t\t\t\tSystem.out.println(\"stadt ist zu nahe, ändere stadtposition\");\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n//\t\tSystem.out.println(\"minIndex: \" + minIndex + \" ist mit mindistance \" + mindistance + \" am nahsten\");\r\n\t\tnahsteStadt = otherTowns.get(minIndex);\r\n\t\treturn true;\r\n\r\n\t}",
"public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }",
"@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 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}",
"void testStitchCells(Tester t) {\r\n initData();\r\n\r\n //testing stitch cells on a world\r\n t.checkExpect(this.game6.indexHelp(-1, -1).right, null);\r\n t.checkExpect(this.game6.indexHelp(-1, -1).bottom, null);\r\n t.checkExpect(this.game6.indexHelp(0, 0).top, null);\r\n t.checkExpect(this.game6.indexHelp(0, 0).left, null);\r\n\r\n //stitching the cells together\r\n this.game6.stitchCells();\r\n\r\n //show that the cells point to the right other cells\r\n t.checkExpect(this.game6.indexHelp(-1, -1).right, \r\n this.game6.indexHelp(0, -1));\r\n t.checkExpect(this.game6.indexHelp(-1, -1).bottom, \r\n this.game6.indexHelp(-1, 0));\r\n t.checkExpect(this.game6.indexHelp(0, 0).top, \r\n this.game6.indexHelp(0, -1));\r\n t.checkExpect(this.game6.indexHelp(0, 0).left,\r\n this.game6.indexHelp(-1, 0));\r\n\r\n //first showing that these cells' fields are null\r\n t.checkExpect(this.c1.right, null);\r\n t.checkExpect(this.c2.left, null);\r\n t.checkExpect(this.c3.top, null);\r\n\r\n //now stitch the cells together so they point to each right and down\r\n this.c1.stitchCells(this.c2, this.c3);\r\n\r\n //testing the references \r\n t.checkExpect(this.c1.right, this.c2);\r\n t.checkExpect(this.c1.bottom, this.c3);\r\n t.checkExpect(this.c2.left, this.c1);\r\n t.checkExpect(this.c3.top, this.c1);\r\n }",
"protected int bestDirection(int _y, int _x)\n {\n int sX = -1, sY = -1;\n for (int i = 0; i < m; i++) {\n boolean breakable = false;\n for (int j = 0; j < n; j++) {\n if (map[i][j] == 'p' || map[i][j] == '5') {\n sX = i;\n sY = j;\n breakable = true;\n break;\n }\n }\n if(breakable) break;\n sX =0; sY = 0;\n }\n Pair s = new Pair(sX, sY);\n Queue<Pair> queue = new Queue<Pair>();\n int[][] distance = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n distance[i][j] = -1;\n distance[sX][sY] = 0;\n queue.add(s);\n /*\n System.out.println(\"DEBUG TIME!!!!\");\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.print(map[i][j]);\n System.out.println();\n }\n System.out.println();\n */\n while (!queue.isEmpty())\n {\n Pair u = queue.remove();\n for (int i = 0; i < 4; i++)\n {\n int x = u.getX() + hX[i];\n int y = u.getY() + hY[i];\n if (!validate(x, y)) continue;\n if (distance[x][y] != -1) continue;\n if (!canGo.get(map[x][y])) continue;\n distance[x][y] = distance[u.getX()][u.getY()] + 1;\n queue.add(new Pair(x, y));\n }\n }\n\n //slove if this enemy in danger\n //System.out.println(_x + \" \" + _y);\n if (inDanger[_x][_y])\n {\n int direction = -1;\n boolean canAlive = false;\n int curDistance = dangerDistance[_x][_y];\n int distanceToBomber = m * n;\n if (curDistance == -1) return 0;\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y)) continue;\n if (dangerDistance[x][y] == -1) continue;\n if (dangerDistance[x][y] < curDistance)\n {\n curDistance = dangerDistance[x][y];\n direction = i;\n distanceToBomber = distance[x][y];\n } else if (dangerDistance[x][y] == curDistance)\n {\n if (distanceToBomber == -1 || distanceToBomber > distance[x][y])\n {\n direction = i;\n distanceToBomber = distance[x][y];\n }\n }\n }\n if (direction == -1) direction = random.nextInt(4);\n allowSpeedUp = true;\n return direction;\n }\n // or not, it will try to catch bomber\n else\n {\n /*\n System.out.println(\"x = \" + _x + \"y = \" + _y);\n for(int i = 0; i < n; i++) System.out.printf(\"%2d \",i);\n System.out.println();\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.printf(\"%2d \",distance[i][j]);\n System.out.println();\n }\n System.out.println();\n System.out.println();\n */\n int direction = -1;\n int[] die = new int[4];\n for (int i = 0; i < 4; i++)\n die[i] = 0;\n int curDistance = distance[_x][_y];\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y))\n {\n die[i] = 1;\n continue;\n }\n ;\n if (inDanger[x][y])\n {\n die[i] = 2;\n continue;\n }\n if (distance[x][y] == -1) continue;\n if (distance[x][y] < curDistance)\n {\n curDistance = distance[x][y];\n direction = i;\n }\n }\n if(curDistance < 4) allowSpeedUp = true;\n else allowSpeedUp = false; //TODO: TEST :))\n if (direction == -1)\n {\n for (int i = 0; i < 4; i++)\n if (die[i] == 0) return i;\n for (int i = 0; i < 4; i++)\n if (die[i] == 1) return i;\n return 0;\n } else return direction;\n }\n }",
"private boolean matches(int[] sublist, PointBreakdownObject points, int windoftheround, int playerwind)\n\t{\n\t\t// switch based on what we need to match \n\t\tint target = sublist[MARKER];\n\n\t\t// cascade\n\t\tif ((target==SINGLE || target==CONCEALED_SINGLE) \n\t\t\t\t&& matchConditionalPath(sublist,lookuptable.get(\"single\"),windoftheround,playerwind)) {\n\t\t\treturn match(\"single\",sublist,lookuptable.get(\"single\"),points,windoftheround,playerwind); }\n\t\telse if ((target==CONNECTEDPAIR || target==CONCEALED_CONNECTEDPAIR)\n\t\t\t\t&& matchConditionalPath(sublist,lookuptable.get(\"connectedpair\"),windoftheround,playerwind))\t{\n\t\t\treturn match(\"connectedpair\",sublist,lookuptable.get(\"connectedpair\"),points,windoftheround,playerwind); }\n\t\telse if ((target==PAIR || target==CONCEALED_PAIR) \n\t\t\t\t&& matchConditionalPath(sublist,lookuptable.get(\"pair\"),windoftheround,playerwind))\t{\n\t\t\treturn match(\"pair\",sublist,lookuptable.get(\"pair\"),points,windoftheround,playerwind); }\n\t\telse if ((target==CHOW || target==CONCEALED_CHOW) \n\t\t\t\t&& matchConditionalPath(sublist,lookuptable.get(\"chow\"),windoftheround,playerwind))\t{\n\t\t\treturn match(\"chow\",sublist,lookuptable.get(\"chow\"),points,windoftheround,playerwind); }\n\t\telse if ((target==PUNG || target==CONCEALED_PUNG) \n\t\t\t\t&& matchConditionalPath(sublist,lookuptable.get(\"pung\"),windoftheround,playerwind))\t{\n\t\t\treturn match(\"pung\",sublist,lookuptable.get(\"pung\"),points,windoftheround,playerwind); }\n\t\telse if ((target==KONG || target==CONCEALED_KONG) \n\t\t\t\t&& matchConditionalPath(sublist,lookuptable.get(\"kong\"),windoftheround,playerwind))\t{\n\t\t\treturn match(\"kong\",sublist,lookuptable.get(\"kong\"),points,windoftheround,playerwind); }\n\n\t\t// if nothing worked, no.\n\t\treturn false;\n\t}",
"private Obs findTrips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY, int dist_th,\n\t\t\tint time_th) {\n\t\t/**\n\t\t * Marks array contain index of the towers that represent the starting\n\t\t * observation of a new trip.\n\t\t */\n\t\tboolean[] marks = new boolean[tstamps.length];\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\t/**\n\t\t * add 0 as the start of the first tower in this seq.\n\t\t */\n\t\t// int mIndex = 0;\n\t\t// marks[mIndex++] = 0;\n\n\t\tint current = 0;\n\t\tfor (int i = 1; i < tstamps.length; i++) {\n\t\t\ttry {\n\t\t\t\tString tstamp = tstamps[i];\n\n\t\t\t\t/**\n\t\t\t\t * if the time exceeds timing threshold, then check the distance\n\t\t\t\t * between towers. If this distance less than the distance\n\t\t\t\t * threshold, then previous tower is the end of the current\n\t\t\t\t * trip.\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tDate sTime = formatter.parse(tstamps[current]);\n\t\t\t\tDate eTime = formatter.parse(tstamp);\n\t\t\t\tcal.setTime(sTime);\n\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tcal.setTime(eTime);\n\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tint diff = (ehour - hour) * HOUR + (eminute - minute);\n\t\t\t\t/**\n\t\t\t\t * check time difference with time threshold whatever the\n\t\t\t\t * distance between the starting tower\n\t\t\t\t */\n\t\t\t\tif (diff > time_th) {\n\t\t\t\t\t/**\n\t\t\t\t\t * Check distance, if it distance less than distance\n\t\t\t\t\t * threshold mark the current tower as the start of a new\n\t\t\t\t\t * trip.\n\t\t\t\t\t */\n\t\t\t\t\tVertex sTower = towersXY.get(Integer.parseInt(towers[i - 1]));\n\t\t\t\t\tVertex tower = towersXY.get(Integer.parseInt(towers[i]));\n\n\t\t\t\t\tif (eculidean(sTower.getX(), tower.getX(), sTower.getY(), tower.getY()) < dist_th) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Update the trip sequences\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmarks[i] = true;\n\t\t\t\t\t\tcurrent = i;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * construct observations and time stamps\n\t\t */\n\t\tString time = \"\";\n\t\tString obs = \"\";\n\t\t// time += tstamps[0];\n\t\t// obs += towers[0];\n\t\tfor (int i = 0; i < marks.length; i++) {\n\t\t\tif (marks[i]) {\n\n\t\t\t\ttime += RLM + tstamps[i];\n\t\t\t\tobs += RLM + towers[i];\n\t\t\t} else {\n\t\t\t\t// if (towers[i].equals(towers[i - 1])) {\n\t\t\t\t// System.out.println(towers[i] + \"\\t=\\t\" + towers[i - 1]);\n\t\t\t\t// continue;\n\t\t\t\t// }\n\t\t\t\t/**\n\t\t\t\t * Add comma separators\n\t\t\t\t */\n\t\t\t\tif (!time.isEmpty()) {\n\t\t\t\t\ttime += CLM;\n\t\t\t\t\tobs += CLM;\n\t\t\t\t}\n\t\t\t\ttime += tstamps[i];\n\t\t\t\tobs += towers[i];\n\t\t\t}\n\n\t\t}\n\t\treturn new Obs(obs, time);\n\t}",
"@Override\n public void placeShips(Fleet fleet, Board board) {\n foundPosition = new boolean[sizeX][sizeY];\n for (int i = fleet.getNumberOfShips() - 1; i >= 0; i--) {\n Ship s = fleet.getShip(i);\n boolean vertical = rnd.nextBoolean();\n Position pos;\n if (vertical) {\n int x = rnd.nextInt(sizeX);\n int y = rnd.nextInt(sizeY - (s.size()));\n\n while (true) {\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x][y + j]) {\n check = true;\n x = rnd.nextInt(sizeX);\n y = rnd.nextInt(sizeY - (s.size()));\n break;\n }\n }\n if (check == false) {\n break;\n }\n /* int counter = 0;\n if (counter > 1) {\n y = rnd.nextInt(sizeY - (s.size()));\n }\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x][y + j]) {\n check = true;\n x++;\n if (x >= sizeX) {\n x = 0;\n }\n }\n }\n if (check == false) {\n break;\n }\n counter++;\n }*/\n }\n for (int j = 0; j < s.size(); j++) {\n foundPosition[x][y + j] = true;\n }\n pos = new Position(x, y);\n } else {\n int x = rnd.nextInt(sizeX - (s.size()));\n int y = rnd.nextInt(sizeY);\n while (true) {\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x + j][y]) {\n check = true;\n x = rnd.nextInt(sizeX - (s.size()));\n y = rnd.nextInt(sizeY);\n }\n }\n if (check == false) {\n break;\n }\n /*int counter = 0;\n if (counter > 1) {\n x = rnd.nextInt(sizeX - (s.size() - 1));\n }\n boolean check = false;\n for (int j = 0; j < s.size(); j++) {\n if (foundPosition[x + j][y]) {\n check = true;\n y++;\n if (y >= sizeX) {\n y = 0;\n }\n }\n }\n if (check == false) {\n break;\n }\n counter++;\n }*/\n }\n for (int j = 0; j < s.size(); j++) {\n foundPosition[x + j][y] = true;\n }\n pos = new Position(x, y);\n }\n board.placeShip(pos, s, vertical);\n }\n }",
"static String roadsInHackerland(int n, int[][] roads) {\n\t\tMap<Integer, List<int[]>> map = new HashMap<>();\n\t\tfor (int i = 0; i < roads.length; i++) {\n\t\t\tif (map.containsKey(roads[i][0])) {\n\t\t\t\tList<int[]> list = map.get(roads[i][0]);\n\t\t\t\tboolean isFound = false;\n\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\tif (list.get(j)[0] == roads[i][1]) {\n\t\t\t\t\t\tif (list.get(j)[1] > roads[i][2]) {\n\t\t\t\t\t\t\tlist.get(j)[1] = roads[i][2];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!isFound) {\n\t\t\t\t\tlist.add(new int[] { roads[i][1], roads[i][2] });\n\t\t\t\t\tmap.put(roads[i][0], list);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tList<int[]> valArr = new ArrayList<>();\n\t\t\t\tvalArr.add(new int[] { roads[i][1], roads[i][2] });\n\t\t\t\tmap.put(roads[i][0], valArr);\n\t\t\t}\n\n\t\t\tif (map.containsKey(roads[i][1])) {\n\t\t\t\tList<int[]> list = map.get(roads[i][1]);\n\t\t\t\tboolean isFound = false;\n\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\tif (list.get(j)[0] == roads[i][0]) {\n\t\t\t\t\t\tif (list.get(j)[1] > roads[i][2]) {\n\t\t\t\t\t\t\tlist.get(j)[1] = roads[i][2];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!isFound) {\n\t\t\t\t\tlist.add(new int[] { roads[i][0], roads[i][2] });\n\t\t\t\t\tmap.put(roads[i][1], list);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tList<int[]> valArr = new ArrayList<>();\n\t\t\t\tvalArr.add(new int[] { roads[i][0], roads[i][2] });\n\t\t\t\tmap.put(roads[i][1], valArr);\n\t\t\t}\n\t\t}\n\t\tBigInteger sum = BigInteger.ZERO;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int j = i + 1; j <= n; j++) {\n\t\t\t\tList<Integer> nodesArr = new ArrayList<>();\n\t\t\t\t// nodesArr.add(i);\n\t\t\t\tsumTotal = BigInteger.ZERO;\n\t\t\t\tgetMinDistance(i, j, BigInteger.ZERO, map, nodesArr);\n\t\t\t\tSystem.out.println(i + \"-\" + j + \" = \" + sumTotal);\n//\t\t\t\tSystem.out.println(\"------------------------\");\n\t\t\t\tsum = sum.add(sumTotal);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t\treturn sum.toString(2);\n\t}",
"private List<BoardPos> getStrikesCrown(BoardPos from) {\n Queue<BoardPos> search = new LinkedList<>(); search.add(from);\n List<BoardPos> result = new ArrayList<>();\n final int[] direction = {-1, 1};\n\n // below is essentially a level-order tree transverse algorithm\n while (!search.isEmpty()) {\n // some new positions found from the current search position?\n boolean finalPos = true;\n // go in all 4 orthogonal directions\n for (int dirX : direction)\n for (int dirY : direction) {\n // initial next position to check in this direction\n BoardPos pos = search.peek().add(dirX, dirY);\n // some pieces already stricken in this direction\n BoardPos strike = null;\n // copy route up to this point\n pos.setRoute(new ArrayList<>(search.peek().getRoute()));\n\n // this goes through all potential legal positions in this\n // direction, before and after first(!) strike\n while (pos.inBounds(board.side()) &&\n (board.get(pos).isEmpty() ||\n (pos.add(dirX, dirY).inBounds(board.side()) &&\n board.get(pos.add(dirX, dirY)).isEmpty() &&\n board.get(from).color() != board.get(pos).color()))) {\n // this position contains a piece that can be stricken\n // for the first time in this route (no infinite loops)\n if (!board.get(pos).isEmpty() && board.get(from).color()\n != board.get(pos).color() && !pos.getRoute().contains(pos) &&\n pos.add(dirX, dirY).inBounds(board.side()) &&\n board.get(pos.add(dirX, dirY)).isEmpty()) {\n strike = new BoardPos(pos);\n finalPos = false;\n pos = pos.add(dirX, dirY);\n // stricken pieces added to route so that they will\n // be highlighted & removed later\n pos.addToRoute(strike);\n }\n // add all positions after strike to\n if (strike != null && !pos.equals(strike))\n search.add(pos);\n\n // next position in current direction\n pos = pos.add(dirX, dirY);\n }\n }\n\n if (finalPos && !search.peek().equals(from))\n result.add(search.peek());\n\n // next element in search\n search.poll();\n }\n\n // filter strikes shorter than maximum length\n return filterShorter(result);\n }",
"public int FindNearbyPts(Vector CurvData, int Eleindex, Stroke theStroke){\n\t\tint index;\n\t\tVector WinElements = new Vector();\n\t\tint CurvEleIndex;\n\t\tDouble minDistance = 999.0; // initialized to some larger value say 999.0\n\t\tDouble Distance;\n\t\tint ReturnIndex = -1;\n\t\tint min = Eleindex - PixelIndexWindow;\n\t\tint max = Eleindex + PixelIndexWindow;\n\t\tfor(index=0;index<CurvData.size(); index++){\n\t\t\tCurvEleIndex = (Integer)CurvData.elementAt(index);\n\t\t\tif(CurvEleIndex >= min && CurvEleIndex <= max){\n\t\t\t\t\tVector ptList = theStroke.getM_ptList();\n\t\t\t\t\tPoint CurvPt = ((PixelInfo) ptList.get(CurvEleIndex));\n\t\t\t\t\tPoint SpeedPt = ((PixelInfo)ptList.get(Eleindex));\n\t\t\t\t\tif((Distance = SpeedPt.distance(CurvPt)) < TolerantDistance){\n\t\t\t\t\t\tif(minDistance > Distance){\n\t\t\t\t\t\t\tminDistance = Distance;\n\t\t\t\t\t\t\tReturnIndex = index;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ReturnIndex;\n\t}",
"private void searchNeighborhood(int nx, int ny, int nz) {\n\n if ((nx < 1) || (ny < 1) || (nz < 1)) return;\n if ((nx > w - 2) || (ny > h - 2) || (nz > d - 2)) return;\n\n float[] pixels = stack.getVoxels(nx - 1, ny -1, nz -1 , 3, 3, 3, null);\n\n //System.out.println(\"working on: \" + nx + \" \" + ny + \" \" + nz + \" : \" + pixels[13]);\n\n for (int i = 0; i < pixels.length; i++) {\n if (i == pixels.length/2) continue; //do check the center pixel\n\n int rx = (i % 9) % 3 - 1;\n int ry = (i % 9) / 3 - 1;\n int rz = i / 9 - 1;\n\n int sx = nx + rx;\n int sy = ny + ry;\n int sz = nz + rz;\n\n if (((pixels[i] > .5*value) && pixels[i] > threshold) ||\n (pixels[i] > (value - tolerance)) && (pixels[i] > threshold)) {\n\n Long index = (long)(sz*w*h + sy*w + sx);\n if (!neighborsList.contains((Long)index)) {\n neighborsList.add(index);\n //System.out.println(\"Added: \" + sx + \" \" + sy + \" \" + sz + \" : \" + pixels[i]);\n float d = (nx - sx)*(nx - sx) + (ny - sy)*(ny - sy) + (nz - sz)*(nz - sz);\n if (d < 15*15) {\n searchNeighborhood(sx, sy, sz);\n }\n }\n }\n else {\n //System.out.println(\"Rejected: \" + sx + \" \" + sy + \" \" + sz + \" : \" + pixels[i]);\n }\n\n }\n }",
"public static int[] isMonsterInSight(Player curr) {\n int[] ans = {-1, -1};\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n String name = curr.getName();\n if (bodyDir == UP) {\n dirs.add(UP);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(DOWN);\n }\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(LEFT);\n }\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(UP);\n }\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(RIGHT);\n }\n }\n\n if (dirs == null || dirs.size() == 0)\n return ans; //{-1,-1}\n for (int m = 0; m < players.length; m++) { //skip player if Vehicle is not mind controlled and the player is not a monster\n //skip player if Vehicle is mind controlled and the player is a monster\n if (players[m] == null || players[m].getName().equals(\"NONE\") || curr == players[m] ||\n ((curr instanceof Vehicle && !((Vehicle) (curr)).isMindControlled()) && !(players[m] instanceof Monster)) ||\n ((curr instanceof Vehicle && ((Vehicle) (curr)).isMindControlled()) && (players[m] instanceof Monster)))\n continue;\n int mR = players[m].getRow();\n int mC = players[m].getCol();\n\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 0; r--) { //coastguard, destroyer, fighter planes and artillery have the monsters position known - the monster is not hidden by structures\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length; c++) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 0; c--) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n }\n if (skip)\n continue;\n }\n }\n return ans;\n }",
"public void frighten(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n Random r = new Random();\r\n int targetX = 25;\r\n int targetY = 25;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos-20) - targetY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos+20) - targetY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos - 5;\r\n }\r\n }",
"public void findBoundary(boolean useDestinations)\r\n\t{\n\tdouble maxSpacing = res/5.0;\r\n\tif(maxSpacing<1) maxSpacing = 1;\r\n\t\r\n\t//First make sure point sampling is dense enough:\t\r\n\tVector<Int2d> surfaceT = new Vector<Int2d>();\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tsurfaceT.add(p);\r\n\t\tInt2d p2 = surface.get((it+1)%sl);\r\n\t\tdouble pdist = p2.distance(p);\r\n\t\tif(pdist > maxSpacing)\r\n\t\t\t{\r\n\t\t\t// populate this line segment with points\r\n\t\t\tint extraPoints = (int)(pdist/maxSpacing); // - 2 cause we already have 2 points\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<extraPoints; i++)\r\n\t\t\t\t{\r\n\t\t\t\tInt2d pN = new Int2d(p);\r\n\t\t\t\tInt2d diff = new Int2d();\r\n\t\t\t\tdiff.sub(p2,p);\r\n\t\t\t\tpN.scaleAdd((double)(i+1.)/(extraPoints+1.),diff,pN);\r\n\t\t\t\tsurfaceT.add(pN);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t//System.out.println(\"got here2.1\");\r\n\tsurface = surfaceT;\r\n\tcanvas1.surface = surface;\r\n\tsl = surfaceT.size();\r\n\t\t\r\n\t//System.out.println(sl);\r\n\t\r\n\t\t\t\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tint i = (int)(p.x/res);\r\n\t\tint j = (int)(p.y/res);\r\n\t\tboolean extraWide = false;\r\n\t\tboolean extraHigh = false;\t\t\r\n\t\t\r\n\t\tif((p.y % res) == 0)\r\n\t\t\t{\r\n\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\textraHigh = true;\r\n\t\t\t}\r\n\t\tif((p.x % res) == 0)\r\n\t\t\t{\r\n\t\t\textraWide = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\tint len = 4;\r\n\t\tif(extraWide && extraHigh) len = 9;\r\n\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\r\n\t\tInt2d[] pi = new Int2d[len];\r\n\t\tint[] ic = new int[len];\r\n\t\tint[] jc = new int[len];\r\n\t\t\r\n\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\r\n\t\tfor(int c=0; c<len; c++)\r\n\t\t\t{\r\n\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t{\r\n\t\t\t\tif(!useDestinations)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//else phi[ic[c]][jc[c]] = -phiStart;\r\n\t\t\t\t// Way suggested in paper, but this looks bad with interpolation\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"got here2.2\");\r\n\t\t\r\n\tif(useDestinations) //Use destinations\r\n\t\t{\t\t\r\n\t\t// Sets destination point distances accordingly\r\n\t\t\r\n\t\tint dl = destinations.size();\r\n\t\tfor(int it=0; it<dl; it++)\r\n\t\t\t{\r\n\t\t\tInt2d p = destinations.get(it);\r\n\t\t\tint i = (int)(p.x/res);\r\n\t\t\tint j = (int)(p.y/res);\r\n\t\t\tboolean extraWide = false;\r\n\t\t\tboolean extraHigh = false;\t\t\r\n\t\t\t\r\n\t\t\tif((p.y % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\t\textraHigh = true;\r\n\t\t\t\t}\r\n\t\t\tif((p.x % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\textraWide = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tint len = 4;\r\n\t\t\tif(extraWide && extraHigh) len = 9;\r\n\t\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\t\r\n\t\t\tInt2d[] pi = new Int2d[len];\r\n\t\t\tint[] ic = new int[len];\r\n\t\t\tint[] jc = new int[len];\r\n\t\t\t\r\n\t\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\t\r\n\t\t\tfor(int c=0; c<len; c++)\r\n\t\t\t\t{\r\n\t\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\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\t\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\tint bl = boundary.size();\r\n\t/*\r\n\tfor(int k=0; k<bl; k++)\r\n\t\t{\r\n\t\tSystem.out.println(boundary.get(k).x + \", \" + boundary.get(k).y + \": element \" + k);\r\n\t\t}\r\n\t\t*/\r\n\t\t\t\r\n\tfor(int i=0; i<bl; i++)\r\n\t\t{\r\n\t\tInt2d pi = boundary.get(i);\r\n\t\tpi.phi = phi[pi.x][pi.y];\r\n\t\t}\r\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}",
"public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }",
"public Obs findtrips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\tboolean marks[] = new boolean[towers.length];\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\t\tcal.setTime(sTime);\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\t\tif (time_diff > time_th) {\n\t\t\t\t\t\tmarks[i] = true;\n\n\t\t\t\t\t}\n\t\t\t\t\t// else {\n\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t */\n\t\t\t\t\tmax_distance = 0;\n\t\t\t\t\t// }\n\t\t\t\t} catch (ParseException ex) {\n\t\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\tmarks[marks.length - 1] = true;\n\t\t}\n\n\t\t/**\n\t\t * User trips buffers.\n\t\t */\n\t\tString trips = towers[0];\n\t\tString tstrips = tstamps[0];\n\n\t\tfor (int i = 1; i < marks.length; i++) {\n\t\t\tboolean mark = marks[i];\n\t\t\ttrips += CLM + towers[i];\n\t\t\ttstrips += CLM + tstamps[i];\n\n\t\t\t/**\n\t\t\t * The end of the previous trip is the start of the new trip.\n\t\t\t */\n\t\t\tif (mark && i != marks.length - 1) {\n\t\t\t\ttrips += RLM + towers[i];\n\t\t\t\ttstrips += RLM + tstamps[i];\n\t\t\t}\n\n\t\t}\n\t\treturn new Obs(trips, tstrips);\n\n\t}",
"private boolean match(String set, String type, int[] sublist, int[] mask, PointBreakdownObject points, int windoftheround, int playerwind)\n\t{\t\n\t\t// because faces can overlap, we need to check whether conditional[1] matches the face definiton before we shortcut\n\t\tif (type.equals(\"simple\") || type.equals(\"terminal\")) {\n\t\t\tboolean chow = set.equals(\"chow\")||set.equals(\"set\");\n\t\t\tboolean connected = set.equals(\"connectedpair\");\n\t\t\tif (type.equals(\"simple\")) {\n\t\t\t\tif(connected && (!TilePattern.isSimple(sublist[TILE]) || !TilePattern.isSimple(sublist[TILE+1]))) { return false; }\n\t\t\t\telse if(chow && (!TilePattern.isSimple(sublist[TILE]) || !TilePattern.isSimple(sublist[TILE+2]))) { return false; }\n\t\t\t\telse if(!TilePattern.isSimple(sublist[TILE])) { return false; }}\n\t\t\telse if (type.equals(\"terminal\")) {\n\t\t\t\tif(connected && !TilePattern.isTerminal(sublist[TILE]) && !TilePattern.isTerminal(sublist[TILE+1])) { return false; }\n\t\t\t\telse if(chow && !TilePattern.isTerminal(sublist[TILE]) && !TilePattern.isTerminal(sublist[TILE+2])) { return false; }\n\t\t\t\telse if(!TilePattern.isTerminal(sublist[TILE])) { return false; }}}\n\t\telse if (type.equals(\"numeral\")){ if(!TilePattern.isNumeral(sublist[TILE])) { return false; }}\n\t\t/**\n\t\t * TODO: add equality checks for \"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"seven\", \"eight\" and \"nine\"\n\t\t **/\n\t\telse if (type.equals(\"wind\"))\t{ if(!TilePattern.isWind(sublist[TILE])) { return false; }}\n\t\t/**\n\t\t * TODO: add equality checks for \"east\", \"south\", \"west\" and \"north\"\n\t\t **/\n\t\telse if (type.equals(\"dragon\")) { if(!TilePattern.isDragon(sublist[TILE])) { return false; }}\n\t\t/**\n\t\t * TODO: add equality checks for \"red\", \"green\" and \"white\"\n\t\t **/\n\t\telse if (type.equals(\"honour\")) { if(!TilePattern.isHonour(sublist[TILE])) { return false; }}\n\t\telse if (type.equals(\"flower\")) { if(!TilePattern.isFlower(sublist[TILE])) { return false; }}\n\t\telse if (type.equals(\"season\")) { if(!TilePattern.isSeason(sublist[TILE])) { return false; }}\n\n\t\t// now for the shortcut\n\t\tif(conditional.length==2) {\n\t\t\tif (conditional[1]==ROUNDWIND && sublist[TILE]!=windoftheround) { return false; }\t\t// safety check\n\t\t\telse if (conditional[1]==OWNWIND && sublist[TILE]!=playerwind) { return false; }\t\t// safety check\n\t\t\telse {\t\t\t\n\t\t\t\tif (getValue(sublist[MARKER])>0) {\n\t\t\t\t\tpoints.addLine(getValue(sublist[MARKER]) +\" for\"+getTileOriententation(sublist[MARKER])+\" \"+set+\"/\"+type+\" (\"+ArrayUtilities.arrayToString(sublist)+\")\"); }\n\t\t\t\treturn true; }}\n\t\t\n\t\t// send on for suit matching\n\t\telse if(conditional.length>2){\n\t\t\tmask = ArrayUtilities.add(mask, conditional[2]);\n\t\t\tif(matchConditionalPath(sublist,mask,windoftheround,playerwind)) { return match(set,types[conditional[1]],suits[conditional[2]],sublist,mask,points,windoftheround,playerwind); }\n\t\t\t// if nothing matched, false\n\t\t\treturn false; }\n\n\t\t// we shouldn't really get here\n\t\telse { return false; }\n\t}",
"List<CoordinateDistance> getNearestCoordinates(Point coordinate, int n);",
"public Point[] nearestPair() {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (this.size<2)\treturn null; //step 1\n\t\t\tif (this.size==2){\n\t\t\t\tAnswer[0]=this.minx.getData();\n\t\t\t\tAnswer[1]=this.maxx.getData();\n\t\t\t\treturn Answer;\t\t\t\n\t\t\t}\n\t\t\tdouble MinDistance=-1; // for sure it will be change in the next section, just for avoid warrning.\n\t\t\tdouble MinDistanceInStrip=-1;\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2]; // around the median\n\t\t\tboolean LargestAxis = getLargestAxis(); //step 2\n\t\t\tContainer median = getMedian(LargestAxis); //step 3\n\t\t\tif (LargestAxis){// step 4 - calling the recursive function nearestPairRec\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.minx.getData().getX(), median.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextX().getData().getX(), this.maxx.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.miny.getData().getY(), median.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextY().getData().getY(), this.maxy.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (MinPointsLeft!=null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}\n\t\t\telse if (MinPointsRight!=null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 - nearest point around the median\n\t\t\tif (MinDistance==-1) MinDistance=0;\n\t\t\tMinPointsInStrip = nearestPairInStrip(median, MinDistance*2, LargestAxis);\n\t\t\tif (MinPointsInStrip != null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}",
"public void findShips(int game[][]) {\n\t\tint counter =0; // total number of cells searched\n\t\tint count = 0;\n\t\tString carr=\"\"; // Concatenating the carrier strings.\n\t\tString sub = \"\"; // Concatenating the submarines strings.\n\t\t//System.out.println(\"Horizontal is implemented\"+ game);\n\t\tfor(int i=0 ; i<25; i++) {\n\t\t\tfor(int j =0; j<25;j++) {\n\t\t\t\tif(game[i][j]==1) {\n\t\t\t\t\t//System.out.print(\" Found Carrier at (\"+i+\",\"+j+\") \");\n\t\t\t\t\tString a = \"(\"+i+\",\"+j+\")\";\n\t\t\t\t\tcarr = carr.concat(a);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(game[i][j]==2) {\n\t\t\t\t\t//System.out.print(\" Found submarine at (\"+i+\",\"+j+\") \");\n\t\t\t\t\tString b = \"(\"+i+\",\"+j+\")\";\n\t\t\t\t\tsub = sub.concat(b);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(count==8) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Strategy: Horizontal Sweep\");\n\t\tSystem.out.println(\"Number of cells searched: \"+counter);\n\t\tSystem.out.print(\"Found Carrier at \"+carr+\";\");\n\t\tSystem.out.println(\" Found Sub at \"+sub);\n\t\t\n\t}",
"private Set<Cell> findShortestRoad(Set<Cell> b, Land land) {\n\t\tfor (Cell cell : b) {\n\t\t\tif (isNextToRoad(cell.i, cell.j, land))\n\t\t\t\treturn new HashSet<Cell>();\n\t\t}\n\t\t\n\t\tSet<Cell> output = new HashSet<Cell>();\n\t\tboolean[][] checked = new boolean[land.side][land.side];\n\t\tQueue<Cell> queue = new LinkedList<Cell>();\n\t\t// add border cells that don't have a road currently\n\t\t// dummy cell to serve as road connector to perimeter cells\n\t\tCell source = new Cell(Integer.MAX_VALUE, Integer.MAX_VALUE);\n\t\tfor (int z = 0; z < land.side; z++) {\n\t\t\tif (b.contains(new Cell(0, z)) || b.contains(new Cell(z, 0)) || b.contains(new Cell(land.side - 1, z))\n\t\t\t\t\t|| b.contains(new Cell(z, land.side - 1)))\n\t\t\t\treturn output;\n\t\t\tif (land.unoccupied(0, z))\n\t\t\t\tqueue.add(new Cell(0, z, source));\n\t\t\tif (land.unoccupied(z, 0))\n\t\t\t\tqueue.add(new Cell(z, 0, source));\n\t\t\tif (land.unoccupied(z, land.side - 1))\n\t\t\t\tqueue.add(new Cell(z, land.side - 1, source));\n\t\t\tif (land.unoccupied(land.side - 1, z))\n\t\t\t\tqueue.add(new Cell(land.side - 1, z, source));\n\t\t}\n\t\t// add cells adjacent to current road cells\n\t\tfor (Cell p : road_cells) {\n\t\t\tfor (Cell q : p.neighbors()) {\n\t\t\t\tif (!road_cells.contains(q) && land.unoccupied(q) && !b.contains(q))\n\t\t\t\t\tqueue.add(new Cell(q.i, q.j, p)); // use tail field of cell\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to keep track of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// previous road cell\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// during the search\n\t\t\t}\n\t\t}\n\t\twhile (!queue.isEmpty()) {\n\t\t\tCell p = queue.remove();\n\t\t\tchecked[p.i][p.j] = true;\n\t\t\tfor (Cell x : p.neighbors()) {\n\t\t\t\tif (b.contains(x)) { // trace back through search tree to find\n\t\t\t\t\t\t\t\t\t\t// path\n\t\t\t\t\tCell tail = p;\n\t\t\t\t\twhile (!b.contains(tail) && !road_cells.contains(tail) && !tail.equals(source)) {\n\t\t\t\t\t\toutput.add(new Cell(tail.i, tail.j));\n\t\t\t\t\t\ttail = tail.previous;\n\t\t\t\t\t}\n\t\t\t\t\tif (!output.isEmpty())\n\t\t\t\t\t\treturn output;\n\t\t\t\t} else if (!checked[x.i][x.j] && land.unoccupied(x.i, x.j)) {\n\t\t\t\t\tx.previous = p;\n\t\t\t\t\tqueue.add(x);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tif (output.isEmpty() && queue.isEmpty())\n\t\t\treturn null;\n\t\telse\n\t\t\treturn output;\n\t}",
"private Set<Drone> collisionDetection(Set<Drone> droneSet){\n\t\t//convert the set of drones to an array list\n\t\tList<Drone> droneList = new ArrayList<>(droneSet);\n\t\tSet<Drone> crashedDrones = new HashSet<>();\n\n\t\tint nbDrones = droneList.size();\n\t\t//cycle trough all the drones and check if they have crashed\n\t\tfor(int i = 0; i != nbDrones; i++){\n\t\t\t//get the current drone\n\t\t\tDrone drone1 = droneList.get(i);\n\t\t\t//check if the drone hasn't already crashed\n\t\t\tif(crashedDrones.contains(drone1)){\n\t\t\t\t//if so, we do not need to check it\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tVector posDrone1 = drone1.getPosition();\n\t\t\tfor(int j = i+1; j < nbDrones; j++){\n\t\t\t\tDrone drone2 = droneList.get(j);\n\t\t\t\tVector posDrone2 = drone2.getPosition();\n\t\t\t\tfloat distance = posDrone2.distanceBetween(posDrone1);\n\t\t\t\tif(distance <= CRASH_DISTANCE){\n\t\t\t\t\tcrashedDrones.add(drone1);\n\t\t\t\t\tcrashedDrones.add(drone2);\n\t\t\t\t\t//because the upper drone has crashed so we do not need to check\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn crashedDrones;\n\t}",
"static int [][] checkPreventer( int[][]MultiArray,int CurrentX, int CurrentY, int[] ComXY, String CurrentTitle){\n\t\touterloop_TopLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] < 0 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block bishop's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//top right tiles\n\t\touterloop_TopRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopRightTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//bottom left tiles\n\t\touterloop_BottomLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\n\t\t\tif (NewXY[0] < 0 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.2\");\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.4\");\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t//bottom right tiles\n\t\touterloop_BottomRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MultiArray;\n\t}",
"private Root compareRoots(ArrayList<Root> touchRoots, ArrayList<Coord> circs) {\n\t\tfor (Root r: touchRoots) {\n\t\t\tif (r.isSeed) {\n\t\t\t\tfor(Root touch:touchRoots) {\n\t\t\t\t\ttouch.touchseed = true;\n\t\t\t\t}\n\t\t\t\treturn r;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Determine if one of the roots started at a very close z-value\n\t\t * and do not choose this one (this would occur with lateral roots).\n\t\t */\n\t\tint z = circs.get(0).z;\n\t\tArrayList<Root> smallRoot = new ArrayList<Root>();\n\t\tfor (Root r:touchRoots) {\n\t\t\tif (z-r.firstZ < 10) {\n\t\t\t\tsmallRoot.add(r);\n\t\t\t}\n\t\t}\n\t\tif (touchRoots.size()-smallRoot.size() == 1) {\n\t\t\ttouchRoots.removeAll(smallRoot);\n\t\t\treturn touchRoots.get(0);\n\t\t}\n\t\telse if(touchRoots.size() > smallRoot.size()) {\n\t\t\ttouchRoots.removeAll(smallRoot);\n\t\t}\n\n\t\t/*\n\t\t * If there is still more than one root that is touching, score\n\t\t * each root based on the amount of voxels in the root that touch\n\t\t * the voxels in the blob. Return the one with the highest score.\n\t\t * \n\t\t */\n\t\tint maxScore = 0;\n\t\tArrayList<Root> best = new ArrayList<Root>();\n\t\tfor (Root r:touchRoots) {\n\t\t\tint rootScore = 0;\n\t\t\tfor (Coord c1:r.lastLevel) {\n\t\t\t\tfor (Coord c2:circs){\n\t\t\t\t\tif (isTouching(c1,c2)) {\n\t\t\t\t\t\trootScore++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (rootScore > maxScore) {\n\t\t\t\tmaxScore = rootScore;\n\t\t\t\tbest.clear();\n\t\t\t\tbest.add(r);\n\t\t\t}\n\t\t\telse if(rootScore == maxScore) {\n\t\t\t\tbest.add(r);\n\t\t\t}\n\t\t}\n\n\t\tif(best.size() == 1) {\n\t\t\treturn best.get(0);\n\t\t}\n\t\t/*\n\t\t * If two roots have the same score (very unlikely) return the \n\t\t * larger root.\n\t\t */\n\t\telse{\n\t\t\tint maxSize = 0;\n\t\t\tRoot ro = best.get(0);\n\t\t\tfor(Root r:best) {\n\t\t\t\tif(r.lastLevel.size() > maxSize) {\n\t\t\t\t\tmaxSize = r.lastLevel.size();\n\t\t\t\t\tro = r;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn ro;\n\t\t}\n\t}",
"static float stripClosest(ArrayList<Point> strip, float d) \n\t{ \n\t float min = d; // Initialize the minimum distance as d \n\t \n\t //This loop runs at most 7 times \n\t for (int i = 0; i < strip.size(); ++i) \n\t for (int j = i+1; j < strip.size() && (strip.get(j).y - strip.get(i).y) < min; ++j) \n\t if (Dist(strip.get(i),strip.get(j)) < min) \n\t min = Dist(strip.get(i), strip.get(j)); \n\t \n\t return min; \n\t}",
"@Override\n public List<STPoint> nearestNeighbor(STPoint needle, STPoint boundValues, int n, int dim) {\n\n STPoint min = new STPoint(needle.getX()-boundValues.getX(), needle.getY()-boundValues.getY(), needle.getT()-boundValues.getT());\n STPoint max = new STPoint(needle.getX()+boundValues.getX(), needle.getY()+boundValues.getY(), needle.getT()+boundValues.getT());\n\n STRegion range = new STRegion(min, max);\n List<STPoint> allPoints = range(range);\n\n Quicksort qs = new Quicksort();\n\n qs.sortNearPoints(needle, allPoints, 0, allPoints.size() - 1, dim);\n\n allPoints.remove(0);//remove itself\n while(allPoints.size() > n){\n allPoints.remove(allPoints.size()-1);\n }\n\n if(allPoints.size()< 1){return null;}////\n\n return allPoints;\n }",
"public boolean fitsInPlayerBoard(int x, int y) {\n if (rotation) { // na vysku\n if (!(x + sizeSelected - 1 < maxN)) {\n return false;\n }\n } else { // na sirku\n if (!(y + sizeSelected - 1 < maxN)) {\n return false;\n }\n }\n\n // skontrolujem ci nebude prekrvat inu lod\n if (rotation) { // na vysku\n for (int i = 0; i < sizeSelected; i++) {\n if (boardPlayer[x + i][y] == GameObject.Ship) {\n return false;\n }\n }\n } else { // na sirku\n for (int i = 0; i < sizeSelected; i++) {\n if (boardPlayer[x][y + i] == GameObject.Ship) {\n return false;\n }\n }\n }\n\n // skontrolujem ci sa nebude dotykat inej lode\n if (rotation) { // na vysku\n for (int i = 0; i < sizeSelected; i++) {\n if ((x - 1 >= 0 && boardPlayer[x + i - 1][y] == GameObject.Ship) ||\n (x - 1 >= 0 && y - 1 >= 0 && boardPlayer[x + i - 1][y - 1] == GameObject.Ship) ||\n (y - 1 >= 0 && boardPlayer[x + i][y - 1] == GameObject.Ship) ||\n (x + i + 1 < maxN && y - 1 >= 0 && boardPlayer[x + i + 1][y - 1] == GameObject.Ship) ||\n (x + i + 1 < maxN && boardPlayer[x + i + 1][y] == GameObject.Ship) ||\n (x + i + 1 < maxN && y + 1 < maxN && boardPlayer[x + i + 1][y + 1] == GameObject.Ship) ||\n (y + 1 < maxN && boardPlayer[x + i][y + 1] == GameObject.Ship) ||\n (x - 1 >= 0 && y + 1 < maxN && boardPlayer[x + i - 1][y + 1] == GameObject.Ship)) {\n return false;\n }\n }\n } else { // na sirku\n for (int i = 0; i < sizeSelected; i++) {\n if ((x - 1 >= 0 && boardPlayer[x - 1][y + i] == GameObject.Ship) ||\n (x - 1 >= 0 && y - 1 >= 0 && boardPlayer[x - 1][y + i - 1] == GameObject.Ship) ||\n (y - 1 >= 0 && boardPlayer[x][y + i - 1] == GameObject.Ship) ||\n (x + 1 < maxN && y - 1 >= 0 && boardPlayer[x + 1][y + i - 1] == GameObject.Ship) ||\n (x + 1 < maxN && boardPlayer[x + 1][y + i] == GameObject.Ship) ||\n (x + 1 < maxN && y + i + 1 < maxN && boardPlayer[x + 1][y + i + 1] == GameObject.Ship) ||\n (y + i + 1 < maxN && boardPlayer[x][y + i + 1] == GameObject.Ship) ||\n (x - 1 >= 0 && y + i + 1 < maxN && boardPlayer[x - 1][y + i + 1] == GameObject.Ship)) {\n return false;\n }\n }\n }\n\n return true;\n }",
"public static MLEPoint hillClimbSearch(MLEPoint point, MleLikelihoodCache mleCache, double[] T) {\n\n // init the MLE points\n MLEPoint temp = new MLEPoint(point.getPIuni(), point.getMu(), point.getSigma(), Double\n .NEGATIVE_INFINITY);\n\n boolean done = false;\n while (!done) {\n // Check each direction and move based on highest correlation\n for (HillClimbDirection dir : HillClimbDirection.values()) {\n // Skip NoMove direction\n if (dir == HillClimbDirection.NoMove)\n continue;\n\n // get the new MLE Point given the 3D hill climb direction\n int p = point.getPIuni() + dir.getPDir();\n int m = point.getMu() + dir.getMDir();\n int s = point.getSigma() + dir.getSDir();\n\n // Check if this point is within the search bounds\n if (p > 0 && p < 100 && m > 0 && m < 100 && s > 0 && s < 100) {\n // check cache to see if this likelihood has previously been computed\n double l = Double.NaN;\n if (mleCache != null)\n l = mleCache.getLikelihood(p, m, s);\n\n // if this value has not been computed\n if (Double.isNaN(l)) {\n // compute the likelihood\n l = computeMleLikelihood(T, p, m, s);\n // add it to the shared cache\n if (mleCache != null)\n mleCache.setLikelihood(p, m, s, l);\n }\n\n // if the new likelihood is better than the best local one so far record it\n if (l > temp.getLikelihood()) {\n temp.setPIuni(p);\n temp.setMu(m);\n temp.setSigma(s);\n temp.setLikelihood(l);\n }\n }\n }\n\n // if the best local neighborhood point is better that the current global best\n if (Double.isNaN(point.getLikelihood()) || temp.getLikelihood() > point.getLikelihood()) {\n // record current best\n point.setPIuni(temp.getPIuni());\n point.setMu(temp.getMu());\n point.setSigma(temp.getSigma());\n point.setLikelihood(temp.getLikelihood());\n } else {\n done = true;\n }\n }\n\n return point;\n }",
"private boolean locateSafety(String[] coord) {\n\n int[] indices = getIndexFromCoord(coord);\n int x0 = indices[0];\n int y0 = indices[1];\n int x1 = indices[2];\n int y1 = indices[3];\n\n\n if (x0 == x1) {\n // horizontal\n int northIndex = x0 > 0 ? x0 - 1 : -1;\n int southIndex = x0 < Row.values().length - 1 ? x0 + 1 : -1;\n int leftIndex = y0 > 0 ? y0 - 1 : -1;\n int rightIndex = y1 < fields.length - 1 ? y1 + 1 : -1;\n // check north area\n if (northIndex != -1) {\n for (int i = y0; i <= y1; i++) {\n if (fields[northIndex][i].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check south area\n if (southIndex != -1) {\n for (int i = y0; i <= y1; i++) {\n if (fields[southIndex][i].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check left\n if (leftIndex != -1 && fields[x0][leftIndex].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check right\n if (rightIndex != -1 && fields[x0][rightIndex].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n\n } else {\n // vertical\n int leftCol = y0 > 0 ? y0 - 1 : -1;\n int rightCol = y0 < fields.length - 1 ? y0 + 1 : -1;\n int northIndex = x0 > 0 ? x0 - 1 : -1;\n int southIndex = x1 < Row.values().length -1 ? x1 + 1 : -1;\n\n // check north\n if (northIndex != -1 && fields[northIndex][y0].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check south\n if (southIndex != -1 && fields[southIndex][y0].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check left\n if (leftCol != -1) {\n for (int i = x0; i <= x1; i++) {\n if (fields[i][leftCol].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check right\n if (rightCol != -1) {\n for (int i = x0; i <= x1; i++) {\n if (fields[i][rightCol].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n }\n return true;\n }",
"private static double divideAndConquer(ArrayList<Point> X, ArrayList<Point> Y) {\n\n\t\t//Assigns size of array\n\t\tint size = X.size();\n\n\t\t//If less than 3 points, efficiency is better by brute force\n\t\tif (size <= 3) {\n\t\t\treturn BruteForceClosestPairs(X);\n\t\t}\n\t\t\n\t\t//Ceiling of array size / 2\n\t\tint ceil = (int) Math.ceil(size / 2);\n\t\t//Floor of array size / 2\n\t\tint floor = (int) Math.floor(size / 2);\n\t\t\n\t\t//Array list for x & y values left of midpoint\n\t\tArrayList<Point> xL = new ArrayList<Point>();\t\n\t\tArrayList<Point> yL = new ArrayList<Point>();\n\t\t\n\t\t//for [0 ... ceiling of array / 2]\n\t\t//add the points onto the new arrays\n\t\tfor (int i = 0; i < ceil; i++) {\n\t\t\t\n\t\t\txL.add(X.get(i));\n\t\t\tyL.add(Y.get(i));\n\t\t}\n\t\t\n\t\t// Array list for x & y values right of midpoint\n\t\tArrayList<Point> xR = new ArrayList<Point>();\n\t\tArrayList<Point> yR = new ArrayList<Point>();\n\t\t\n\t\t//for [floor of array / 2 ... size of array]\n\t\t//add the points onto the new arrays\n\t\tfor (int i = floor; i < size - 1; i++) {\n\n\t\t xR.add(X.get(i));\n\t\t\tyR.add(Y.get(i));\n\t\t}\n\t\t\n\t\t//Recursively find the shortest distance\n\t\tdouble distanceL = divideAndConquer(xL, yL);\n\t\tdouble distanceR = divideAndConquer(xR, xL);\n\t\t//Smaller of both distances\n\t\tdouble distance = Math.min(distanceL, distanceR);\n\t\t//Mid-line\n\t\tdouble mid = X.get(ceil - 1).getX();\n\n\t\tArrayList<Point> S = new ArrayList<Point>();\n\n\t\t//copy all the points of Y for which |x - m| < d into S[0..num - 1]\n\t\tfor (int i = 0; i < Y.size() - 1; i++) {\n\n\t\t\tif (Math.abs(X.get(i).getX() - mid) < distance) {\n\t\t\t\tS.add(Y.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Square minimum distance\n\t\tdouble dminsq = distance * distance;\n\t\t//Counter\n\t\tint k = 0;\n\t\tint num = S.size();\n\n\t\tfor (int i = 0; i < num - 2; i++) {\n\t\t\t\n\t\t\tk = i + 1;\n\t\t\t\n\t\t\twhile (k <= num - 1 && (Math.pow((S.get(k).getY() - S.get(i).getY()), 2) < dminsq)) {\n\n\t\t\t\t//Find distance between points and find the minimum compared to dminsq\n\t\t\t\tdminsq = Math.min(Math.pow(S.get(k).getX() - S.get(i).getX(), 2) \n\t\t\t\t\t\t\t\t+ Math.pow(S.get(k).getY() - S.get(i).getY(), 2), dminsq);\n\n\t\t\t\tk = k + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn Math.sqrt(dminsq);\n\t}",
"protected ArrayList<int[]> findAdjacentRisk(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY ) {\n\t\t\t\t\tif (coveredMap[i][j] == SIGN_UNKNOWN || coveredMap[i][j] == SIGN_MARK) {\n\t\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}",
"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 float[] findXY(){\n //Initialize the xy coordinates and the array\n int x = -1;\n int y = -1;\n float[] location = new float[2];\n\n //Find the blank card\n for(int i = 0; i < cardArray.length; i++){\n for(int j = 0; j < cardArray.length; j++){\n if(cardArray[i][j].getCardNum() == 16){\n x = i;\n y = j;\n }\n }\n }\n\n /* For each of the following cases, find the neighbors of the\n blank card. Select only neighbors that are in the incorrect spot so that\n the computer player does not mess up the game. If both are in the correct spot\n choose one to move\n */\n //Case 1: it is in the top left corner, find a neighbor\n if((x == 0) && (y == 0)){\n if(cardArray[x+1][y].getColor() == 255){\n location[0] = cardArray[x + 1][y].getXVal();\n location[1] = cardArray[x + 1][y].getYVal();\n }\n else{\n location[0] = cardArray[x][y + 1].getXVal();\n location[1] = cardArray[x][y + 1].getYVal();\n }\n }\n\n //Case 2: it is in the top right corner, find a neighbor\n if((x == 0) && (y == cardArray.length - 1)){\n if(cardArray[x + 1][y].getColor() == 255){\n location[0] = cardArray[x + 1][y].getXVal();\n location[1] = cardArray[x + 1][y].getYVal();\n }\n else{\n location[0] = cardArray[x][y - 1].getXVal();\n location[1] = cardArray[x][y - 1].getYVal();\n }\n }\n\n //Case 3: It is in the bottom left corner, find a neighbor\n if((x == cardArray.length - 1) && (y == 0)){\n if(cardArray[x - 1][y].getColor() == 255){\n location[0] = cardArray[x - 1][y].getXVal();\n location[1] = cardArray[x - 1][y].getYVal();\n }\n else{\n location[0] = cardArray[x][y + 1].getXVal();\n location[1] = cardArray[x][y + 1].getYVal();\n }\n }\n\n //Case 4: It is in the bottom right corner, find a neighbor\n if((x == cardArray.length - 1) && (y == cardArray.length - 1)){\n if(cardArray[x - 1][y].getColor() == 255){\n location[0] = cardArray[x - 1][y].getXVal();\n location[1] = cardArray[x - 1][y].getYVal();\n }\n else{\n location[0] = cardArray[x][y - 1].getXVal();\n location[1] = cardArray[x][y - 1].getYVal();\n }\n }\n\n //Case 5: It is in the top row, find a neighbor\n if((x == 0) && (y > 0) && ( y < cardArray.length - 1)){\n if(cardArray[x][y + 1].getColor() == 255){\n location[0] = cardArray[x][y + 1].getXVal();\n location[1] = cardArray[x][y + 1].getYVal();\n }\n else if(cardArray[x][y - 1].getColor() == 255){\n location[0] = cardArray[x][y - 1].getXVal();\n location[1] = cardArray[x][y - 1].getYVal();\n }\n else{\n location[0] = cardArray[x + 1][y].getXVal();\n location[1] = cardArray[x + 1][y].getYVal();\n }\n }\n\n //Case 6: It is on the bottom row, find a neighbor\n if((x == cardArray.length - 1) && (y > 0) && (y < cardArray.length- 1)){\n if (cardArray[x][y + 1].getColor() == 255){\n location[0] = cardArray[x][y + 1].getXVal();\n location[1] = cardArray[x][y + 1].getYVal();\n }\n else if (cardArray[x][y - 1].getColor() == 255){\n location[0] = cardArray[x][y - 1].getXVal();\n location[1] = cardArray[x][y - 1].getYVal();\n }\n else{\n location[0] = cardArray[x - 1][y].getXVal();\n location[1] = cardArray[x - 1][y].getYVal();\n }\n }\n\n //Case 7: It is on the left column, find a neighbor\n if((x > 0) && (x < cardArray.length - 1) && (y == 0)){\n if(cardArray[x + 1][y].getColor() == 255){\n location[0] = cardArray[x + 1][y].getXVal();\n location[1] = cardArray[x + 1][y].getYVal();\n }\n else if(cardArray[x - 1][y].getColor() == 255){\n location[0] = cardArray[x - 1][y].getXVal();\n location[1] = cardArray[x - 1][y].getYVal();\n }\n else{\n location[0] = cardArray[x][y + 1].getXVal();\n location[1] = cardArray[x][y + 1].getYVal();\n }\n }\n\n //Case 8: It is on the right column, find a neighbor\n if((x > 0) && (x < cardArray.length - 1) && (y == cardArray.length - 1)){\n if(cardArray[x + 1][y].getColor() == 255){\n location[0] = cardArray[x + 1][y].getXVal();\n location[1] = cardArray[x + 1][y].getYVal();\n }\n else if(cardArray[x - 1][y].getColor() == 255){\n location[0] = cardArray[x - 1][y].getXVal();\n location[1] = cardArray[x - 1][y].getYVal();\n }\n else{\n location[0] = cardArray[x][y - 1].getXVal();\n location[1] = cardArray[x][y - 1].getYVal();\n }\n }\n\n //Case 9: It is not an edge or corner, find a neighbor\n if((x > 0) && (x < cardArray.length - 1) && (y > 0) && (y < cardArray.length -1)){\n if(cardArray[x + 1][y].getColor() == 255){\n location[0] = cardArray[x + 1][y].getXVal();\n location[1] = cardArray[x + 1][y].getYVal();\n }\n else if(cardArray[x - 1][y].getColor() == 255){\n location[0] = cardArray[x - 1][y].getXVal();\n location[1] = cardArray[x - 1][y].getYVal();\n }\n else if(cardArray[x][y + 1].getColor() == 255){\n location[0] = cardArray[x][y + 1].getXVal();\n location[1] = cardArray[x][y + 1].getYVal();\n }\n else{\n location[0] = cardArray[x][y - 1].getXVal();\n location[1] = cardArray[x][y - 1].getYVal();\n }\n }\n\n //Return the array containing the xy coordinates of the blank square's neighbor\n return location;\n }",
"private Point[] nearestPointInArray(Point[] strip){\n\t\tint j = 1; // with each point we measure the distance with the following 6 point's\n\t\tPoint[] currentMinPoints = {strip[0],strip[1]};\n\t\tdouble currentMinDistance = Distance(currentMinPoints[0], currentMinPoints[1]);\n\t\tdouble currentDistance;\t\n\t\tfor (int i=0; i< strip.length; i++){\n\t\t\twhile (j<8 && i+j < strip.length){\n\t\t\t\tcurrentDistance = Distance(strip[i], strip[i+j]);\n\t\t\t\tif (currentDistance<currentMinDistance){\n\t\t\t\t\tcurrentMinDistance = currentDistance;\n\t\t\t\t\tcurrentMinPoints[0] = strip[i];\n\t\t\t\t\tcurrentMinPoints[1] = strip[i+j];\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tj=1;\n\t\t}\n\t\treturn currentMinPoints;\n\t}",
"public Location attack() {\n resetBoard();\n\n if (getHits().isEmpty()) {\n// System.out.println(\"Hunting\");\n\n for (final int[] r : board) {\n for (int c = 0; c < r.length; c++) {\n if (getIntegers().contains(5) && (c < (r.length - 4)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3]) && (-1 != r[c + 4])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n ++r[c + 4];\n }\n\n if (getIntegers().contains(4) && (c < (r.length - 3)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n }\n if (getIntegers().contains(3) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(2) && (c < (r.length - 1)))\n if ((-1 != r[c]) && (-1 != r[c + 1])) {\n ++r[c];\n ++r[c + 1];\n }\n }\n }\n\n for (int c = 0; c < board[0].length; c++) {\n for (int r = 0; r < board.length; r++) {\n if (getIntegers().contains(5) && (r < (board.length - 4)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n\n if (getIntegers().contains(4) && (r < (board.length - 3)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n if (getIntegers().contains(3) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(2) && (r < (board.length - 1)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n }\n }\n } else {\n// System.out.println(\"Hitting\");\n\n for (final Location hit : getHits()) {\n final int r = hit.getRow();\n final int c = hit.getCol();\n\n if (getIntegers().contains(2)) {\n if ((0 <= (c - 1)) && (-1 != board[r][c]) && (-1 != board[r][c - 1])) {\n ++board[r][c];\n ++board[r][c - 1];\n }\n\n\n if (((c + 1) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1])) {\n ++board[r][c];\n ++board[r][c + 1];\n }\n\n if ((0 <= (r - 1)) && (-1 != board[r][c]) && (-1 != board[r - 1][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n }\n\n if (((r + 1) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n\n\n }\n if (getIntegers().contains(3)) {\n final int inc = Collections.frequency(getIntegers(), 3);\n\n if ((0 <= (c - 2)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2])) {\n board[r][c] += inc;\n board[r][c - 1] += inc;\n board[r][c - 2] += inc;\n }\n if (((c + 2) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2])) {\n board[r][c] += inc;\n board[r][c + 1] += inc;\n board[r][c + 2] += inc;\n }\n if ((0 <= (r - 2)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c])) {\n board[r][c] += inc;\n board[r - 1][c] += inc;\n board[r - 2][c] += inc;\n }\n if (((r + 2) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n board[r][c] += inc;\n board[r + 1][c] += inc;\n board[r + 2][c] += inc;\n }\n\n\n }\n if (getIntegers().contains(4)) {\n if ((0 <= (c - 3)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n }\n if (((c + 3) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n }\n if ((0 <= (r - 3)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n }\n if (((r + 3) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n\n\n }\n if (getIntegers().contains(5)) {\n if ((0 <= (c - 4)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3]) && (-1 != board[r][c - 4])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n ++board[r][c - 4];\n }\n if (((c + 4) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3]) && (-1 != board[r][c + 4])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n ++board[r][c + 4];\n }\n if ((0 <= (r - 4)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c]) && (-1 != board[r - 4][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n ++board[r - 4][c];\n }\n if (((r + 4) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n }\n }\n\n for (final Location hit : getHits()) {\n board[hit.getRow()][hit.getCol()] = 0;\n }\n }\n\n// for (int[] i : board)\n// System.out.println(Arrays.toString(i));\n return findLargest();\n }",
"protected Path findSafeSpot(int l, int x, int y) {\n finder = new AStarPathFinder(map, 500, false);\n Path path;\n int co = l;\n HashSet<Cell> hs = new HashSet<Cell>();\n hs.add(new Cell(x,y));\n while (co != 0) {\n //expand al l times\n hs = expandNeighbors(hs);\n co--;\n }\n for (Cell c : hs) {\n if (map.isPositionSafe(c.x, c.y)) {\n path = finder.findPath(new EnemyMover(this.player.getColor().toString()),\n this.player.getX(), this.player.getY(), c.x, c.y);\n return path;\n }\n }\n return null;\n }",
"private List<BoardPos> getStrikes(BoardPos from) {\n Queue<BoardPos> search = new LinkedList<>(); search.add(from);\n List<BoardPos> result = new ArrayList<>();\n final int[] offsets = {-2, 2};\n\n // below is essentially a level-order tree transverse algorithm\n while (!search.isEmpty()) {\n // some new positions found from the current search position?\n boolean finalPos = true;\n // go in all 4 directions, to corresponding potential next position\n for (int offX : offsets)\n for (int offY : offsets) {\n BoardPos to = new BoardPos(search.peek().getX() + offX,\n search.peek().getY() + offY);\n // copy route up to this point\n to.setRoute(search.peek().getRoute());\n\n // position between the current search and potential next one\n // contains a piece that can be stricken for the first time\n // in this route (no infinite loops)\n if (to.inBounds(board.side()) && board.get(to).isEmpty() &&\n !board.get(to.avg(search.peek())).isEmpty() &&\n board.get(from).color() !=\n board.get(to.avg(search.peek())).color() &&\n !to.getRoute().contains(to.avg(search.peek()))) {\n to.addToRoute(new BoardPos(to.avg(search.peek())));\n search.add(to);\n finalPos = false;\n }\n }\n\n // only add positions at the end of the route to result\n if (finalPos && !search.peek().equals(from))\n result.add(search.peek());\n\n // next element search\n search.poll();\n }\n\n // filter strikes shorter than maximum length\n return filterShorter(result);\n }",
"public void lookHere(int x, int y, int ID){\n\n\n\n switch (ID){\n case FLY:\n //find faces close enough\n /*for(int i=0;i<mFaces.size();i++){\n Face face = mFaces.get(i);\n if(ViewTools.getDistancetoNonSQRTD(x,y,face.getCenterX(),face.getCenterY())<FlyFocusDistanceNONSQRTD){\n lookHere(x,y,face,FLY);\n }else StopLookingOne(FLY, face);\n }*/\n\n //pick one face\n class faceDistance{\n public float distance;\n public Face face;\n faceDistance(float distance, Face face) {\n this.distance = distance;\n this.face = face;\n }\n\n }\n ArrayList<faceDistance> distances = new ArrayList<faceDistance>();\n for(int i=0;i<mFaces.size();i++){\n Face face = mFaces.get(i);\n float flyDistance = ViewTools.getDistancetoNonSQRTD(x, y, face.getCenterX(), face.getCenterY());\n //Log.d(\"BRAIN\", \"FLY DISTANCE SQUARED:\" + FlyFocusDistanceNONSQRTD + \" this face distance: \"+ flyDistance);\n if(flyDistance <FlyFocusDistanceNONSQRTD){\n distances.add(new faceDistance(flyDistance,mFaces.get(i)));\n }else StopLookingOne(FLY, face);\n\n }\n\n ArrayList<faceDistance> distancesSorted = new ArrayList<faceDistance>();\n if(distances.size()>0)distancesSorted.add(distances.get(0));\n for(int i=1;i<distances.size();i++){\n int distanceSortedSize=distancesSorted.size();\n for(int i2=0;i2<distanceSortedSize;i2++){\n if(i2==distancesSorted.size()-1)distancesSorted.add(distances.get(i));\n else if(distances.get(i).distance<distancesSorted.get(i2).distance){\n distancesSorted.add(i2,distances.get(i));\n i2=distancesSorted.size();\n }\n }\n\n }\n\n\n for(int i=0;i<distancesSorted.size();i++){\n if(i< MAX_FLY_FOCUSES||MAX_FLY_FOCUSES==UNRESTRICTED)lookHere(x,y,distancesSorted.get(i).face,FLY);\n else StopLookingOne(FLY,distancesSorted.get(i).face);\n\n }\n\n ///picking one face\n\n\n break;\n case FINGER:\n for(int i=0;i<mFaces.size();i++){\n Face face = mFaces.get(i);\n if(ViewTools.getDistancetoNonSQRTD(x,y,face.getCenterX(),face.getCenterY())<FlyFocusDistanceNONSQRTD*2){\n lookHere(x,y,face,FINGER);\n }else StopLookingOne(FINGER, face);\n }\n break;\n case FROG:\n ///select a face to look at the frog\n //command to look only sent once, eyes stay looking at frog, until relase code sent\n int faceSelected = mRandom.nextInt(mFaces.size()-1);\n if(faceSelected== mFrogIndex)faceSelected++;\n mFaces.get(faceSelected).SetEyeAdjustDuration(true);\n lookHere(x, y, mFaces.get(faceSelected), FROG);\n\n new lookAway(mFaces.get(faceSelected),mFrog.getFrogLookAttentionLength());\n\n //mFrog.setFrogLookAttentionLength(mFrog.getFrogLookAttentionLength()*2);\n //mFrog.setFrogLookInterval((long) (mFrog.getFrogLookInterval()*.90));\n //Log.d(\"Brain\", \"frog look interval:\"+ mFrog.getFrogLookInterval());\n //Log.d(\"Brain\", \"frog look lenght:\"+ mFrog.getFrogLookAttentionLength());\n\n break;\n case REVEALED_FROG:\n ///\n break;\n\n }\n\n }",
"private ArrayList<Tile> getSafeSpotList(Actor actor, List<WorldPoint> worldPoints)\n\t{\n\t\tArrayList<Tile> safeSpotList = new ArrayList<>();\n\t\tTile[][][] tiles = client.getScene().getTiles();\n\t\tfor (WorldPoint w:worldPoints)\n\t\t{\n\t\t\tLocalPoint toPoint = LocalPoint.fromWorld(client, w);\n\t\t\tTile fromTile = tiles[client.getPlane()][actor.getLocalLocation().getSceneX()]\n\t\t\t\t[actor.getLocalLocation().getSceneY()];\n\t\t\tTile toTile = tiles[client.getPlane()][toPoint.getSceneX()]\n\t\t\t\t[toPoint.getSceneY()];\n\t\t\tfinal int plane = client.getLocalPlayer().getWorldArea().getPlane();\n\t\t\tint bit = client.getCollisionMaps()[plane].getFlags()[toPoint.getSceneX()][toPoint.getSceneY()];\n\t\t\tif (toTile.hasLineOfSightTo(fromTile) && !fromTile.hasLineOfSightTo(toTile))\n\t\t\t{\n\t\t\t\tif (!((bit & CollisionDataFlag.BLOCK_MOVEMENT_OBJECT ) == CollisionDataFlag.BLOCK_MOVEMENT_OBJECT ||\n\t\t\t\t\t(bit & CollisionDataFlag.BLOCK_MOVEMENT_FLOOR_DECORATION )\n\t\t\t\t\t\t== CollisionDataFlag.BLOCK_MOVEMENT_FLOOR_DECORATION ||\n\t\t\t\t\t(bit & CollisionDataFlag.BLOCK_MOVEMENT_FLOOR ) == CollisionDataFlag.BLOCK_MOVEMENT_FLOOR ||\n\t\t\t\t\t(bit & CollisionDataFlag.BLOCK_MOVEMENT_FULL ) == CollisionDataFlag.BLOCK_MOVEMENT_FULL))\n\t\t\t\t{\n\t\t\t\t\tsafeSpotList.add(toTile);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn safeSpotList;\n\t}",
"public int shortestBridge(int[][] A) {\n for(int i = 0; i < A.length; i++) {\n if(found) {\n break;\n }\n for(int j = 0; j < A[0].length; j++) {\n if(A[i][j] == 1) {\n helper(A, i, j);\n found = true;\n break;\n }\n }\n }\n // Put all '2' into queue as candidate initial start points\n Queue<int[]> q = new LinkedList<int[]>();\n for(int i = 0; i < A.length; i++) {\n for(int j = 0; j < A[0].length; j++) {\n if(A[i][j] == 2) {\n q.offer(new int[] {i, j});\n }\n }\n }\n int distance = 0;\n while(!q.isEmpty()) {\n int size = q.size();\n for(int i = 0; i < size; i++) {\n int[] cur = q.poll();\n for(int j = 0; j < 4; j++) {\n int new_x = cur[0] + dx[j];\n int new_y = cur[1] + dy[j];\n if(new_x >= 0 && new_x < A.length && new_y >= 0 && new_y < A[0].length) {\n if(A[new_x][new_y] == 1) {\n return distance;\n } else if(A[new_x][new_y] == 0) {\n // Update from 0 to 2 which means expand first island boundary\n // which also avoid using visited to check\n A[new_x][new_y] = 2;\n q.offer(new int[] {new_x, new_y});\n }\n }\n }\n }\n distance++;\n }\n return distance;\n }",
"private Cell getSnowballTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n\n for (int i = currentWorm.position.x - 5; i <= currentWorm.position.x + 5; i++) {\n for (int j = currentWorm.position.y - 5; j <= currentWorm.position.y + 5; j++) {\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getSurroundingCells(i, j);\n affectedCells.add(blocks[j][i]);\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.roundsUntilUnfrozen == 0 && enemyWorm.health > 0)\n wormInRange++;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }",
"public int IsSourceToFluidBlockAtFacing( World world, int i, int j, int k, int iFacing );",
"IntPair findPacmansCrossRoad(IntPair pacPosition, Direction.directionType pacDirection)\n {\n IntPair delta = Direction.directionToIntPair(pacDirection);\n if (isCorner(pacPosition.item1, pacPosition.item2)) {\n Direction.directionType newDirection = turnDirection(pacPosition.item1, pacPosition.item2, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(\n new IntPair(pacPosition.item1 + nd.item1, pacPosition.item2 + nd.item2), newDirection);\n }\n\n if (delta.item1 == 0) {\n for (int y = pacPosition.item2; y >= 0 && y < LoadMap.MAPHEIGHTINTILES; y += delta.item2) {\n if (isCrossroad(pacPosition.item1, y)) {\n return new IntPair(pacPosition.item1, y);\n } else if (isCorner(pacPosition.item1, y)) {\n Direction.directionType newDirection = turnDirection(pacPosition.item1, y, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(new IntPair(pacPosition.item1 + nd.item1, y + nd.item2), newDirection);\n }\n }\n } else {\n for (int x = pacPosition.item1; x >= 0 && x < LoadMap.MAPWIDTHINTILES; x += delta.item1) {\n if (isCrossroad(x, pacPosition.item2)) {\n return new IntPair(x, pacPosition.item2);\n } else if (isCorner(x, pacPosition.item2)) {\n Direction.directionType newDirection = turnDirection(x, pacPosition.item2, delta.item1, delta.item2);\n IntPair nd = Direction.directionToIntPair(newDirection);\n return findPacmansCrossRoad(new IntPair(x + nd.item1, pacPosition.item2 + nd.item2), newDirection);\n }\n }\n }\n\n return pacPosition;\n }",
"private void findLargestNNIPointsIndexPair(float ratioInh, float ratioAct) {\n ArrayList<Point> pts0 = new ArrayList<Point>();\n ArrayList<Point> pts1 = new ArrayList<Point>();\n Dimension dim = layoutPanel.getLayoutSize();\n int height = dim.height;\n int width = dim.width;\n int size = height * width;\n int newNListSize;\n if (ratioInh > ratioAct) {\n newNListSize = (int) (size * ratioInh);\n pts0 = cnvIndexList2Points(layoutPanel.activeNList);\n pts1 = cnvIndexList2Points(layoutPanel.inhNList);\n } else {\n newNListSize = (int) (size * ratioAct);\n pts0 = cnvIndexList2Points(layoutPanel.inhNList);\n pts1 = cnvIndexList2Points(layoutPanel.activeNList);\n }\n double len = Math.sqrt((double) size / (double) newNListSize);\n\n ArrayList<Point> union = new ArrayList<Point>(pts0);\n union.addAll(pts1);\n double maxNNI = calcNearestNeighborIndex(union);\n ArrayList<Point> maxPts0 = pts0;\n ArrayList<Point> maxPts1 = pts1;\n for (int xShift = (int) Math.floor(-len / 2); xShift <= Math\n .ceil(len / 2); xShift++) {\n for (int yShift = (int) Math.floor(-len / 2); yShift <= Math\n .ceil(len / 2); yShift++) {\n if (xShift == 0 && yShift == 0) {\n continue;\n }\n int xShift0 = (int) Math.ceil((double) xShift / 2);\n int xShift1 = (int) Math.ceil((double) -xShift / 2);\n int yShift0 = (int) Math.ceil((double) yShift / 2);\n int yShift1 = (int) Math.ceil((double) -yShift / 2);\n // System.out.println(\"xShift = \" + xShift + \", xShift0 = \" +\n // xShift0 + \", xShift1 = \" + xShift1);\n ArrayList<Point> sftPts0 = getShiftedPoints(pts0, xShift0,\n yShift0);\n ArrayList<Point> sftPts1 = getShiftedPoints(pts1, xShift1,\n yShift1);\n union = new ArrayList<Point>(sftPts0);\n union.addAll(sftPts1);\n double nni = calcNearestNeighborIndex(union);\n if (nni > maxNNI) {\n maxNNI = nni;\n maxPts0 = sftPts0;\n maxPts1 = sftPts1;\n }\n }\n }\n\n if (ratioInh > ratioAct) {\n layoutPanel.activeNList = cnvPoints2IndexList(maxPts0);\n layoutPanel.inhNList = cnvPoints2IndexList(maxPts1);\n } else {\n layoutPanel.inhNList = cnvPoints2IndexList(maxPts0);\n layoutPanel.activeNList = cnvPoints2IndexList(maxPts1);\n }\n }",
"public static void main(String[] args) {\n BrutePointST<Integer> st = new BrutePointST<Integer>();\n double qx = Double.parseDouble(args[0]);\n double qy = Double.parseDouble(args[1]);\n double rx1 = Double.parseDouble(args[2]);\n double rx2 = Double.parseDouble(args[3]);\n double ry1 = Double.parseDouble(args[4]);\n double ry2 = Double.parseDouble(args[5]);\n int k = Integer.parseInt(args[6]);\n Point2D query = new Point2D(qx, qy);\n RectHV rect = new RectHV(rx1, ry1, rx2, ry2);\n int i = 0;\n while (!StdIn.isEmpty()) {\n double x = StdIn.readDouble();\n double y = StdIn.readDouble();\n Point2D p = new Point2D(x, y);\n st.put(p, i++);\n }\n StdOut.println(\"st.empty()? \" + st.isEmpty());\n StdOut.println(\"st.size() = \" + st.size());\n StdOut.println(\"First \" + k + \" values:\");\n i = 0;\n for (Point2D p : st.points()) {\n StdOut.println(\" \" + st.get(p));\n if (i++ == k) {\n break;\n }\n }\n StdOut.println(\"st.contains(\" + query + \")? \" + st.contains(query));\n StdOut.println(\"st.range(\" + rect + \"):\");\n for (Point2D p : st.range(rect)) {\n StdOut.println(\" \" + p);\n }\n StdOut.println(\"st.nearest(\" + query + \") = \" + st.nearest(query));\n StdOut.println(\"st.nearest(\" + query + \", \" + k + \"):\");\n for (Point2D p : st.nearest(query, k)) {\n StdOut.println(\" \" + p);\n }\n }",
"void removeNearbyPixels(Stroke theStroke){\n\t\tint index;\n\t\tint CurvIndex;\n\t\tint SpeedIndex;\n\t\tVector ptList = theStroke.getM_ptList();\n\t\tfor(index=0; index < CommonSegmentPts.size(); index++){\n\t\t\tPoint CommonPt = (PixelInfo)ptList.get((Integer)CommonSegmentPts.get(index));\n\t\t\tfor(CurvIndex = 0; CurvIndex < CurvVector.size(); CurvIndex++){\n\t\t\t\tPoint CurvPt = (PixelInfo)ptList.get((Integer)CurvVector.get(CurvIndex));\n\t\t\t\tif(CommonPt.distance(CurvPt) <= TolerantDistance){\n\t\t\t\t\tCurvVector.remove(CurvIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(SpeedIndex = 0; SpeedIndex < SpeedVector.size(); SpeedIndex++){\n\t\t\t\tPoint SpeedPt = (PixelInfo)ptList.get((Integer)SpeedVector.get(SpeedIndex));\n\t\t\t\tif(CommonPt.distance(SpeedPt) <= TolerantDistance){\n\t\t\t\t\tSpeedVector.remove(SpeedIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void findClosestPointTest() {\n Ray ray = new Ray(new Point3D(0, 0, 10), new Vector(1, 10, -100));\n\n List<Point3D> list = new LinkedList<Point3D>();\n list.add(new Point3D(1, 1, -100));\n list.add(new Point3D(-1, 1, -99));\n list.add(new Point3D(0, 2, -10));\n list.add(new Point3D(0.5, 0, -100));\n\n assertEquals(list.get(2), ray.findClosestPoint(list));\n\n // =============== Boundary Values Tests ==================\n //TC01: the list is empty\n List<Point3D> list2 = null;\n assertNull(\"try again\",ray.findClosestPoint(list2));\n\n //TC11: the closest point is the first in the list\n List<Point3D> list3 = new LinkedList<Point3D>();\n list3.add(new Point3D(0, 2, -10));\n list3.add(new Point3D(-1, 1, -99));\n list3.add(new Point3D(1, 1, -100));\n list3.add(new Point3D(0.5, 0, -100));\n assertEquals(list3.get(0), ray.findClosestPoint(list3));\n\n //TC12: the closest point is the last in the list\n List<Point3D> list4 = new LinkedList<Point3D>();\n list4.add(new Point3D(1, 1, -100));\n list4.add(new Point3D(0.5, 0, -100));\n list4.add(new Point3D(-1, 1, -99));\n list4.add(new Point3D(0, 2, -10));\n assertEquals(list4.get(3), ray.findClosestPoint(list4));\n\n }",
"boolean isGoodLocation(World world, int x, int y, int z);",
"public static void main(String[] args) {\n Random r = new Random();\n// r.setSeed(1982);\n int R = 500;\n int L = 100000;\n\n int start = -500;\n int end = 500;\n HashSet<Point> hi3 = new HashSet<>();\n List<Point> hi5 = new ArrayList<>();\n Stopwatch sw = new Stopwatch();\n for (int i = 0; i < L; i += 1) {\n double ran = r.nextDouble();\n double x = start + (ran * (end - start));\n ran = r.nextDouble();\n double y = start + (ran * (end - start));\n Point temp = new Point(x, y);\n hi5.add(temp);\n\n }\n KDTree speedTest = new KDTree(hi5);\n NaivePointSet speedTest2 = new NaivePointSet(hi5);\n\n// for (int i = 0; i < 1000; i++) {\n// double ran = r.nextDouble();\n// double x2 = start + (ran *(end - start));\n// ran = r.nextDouble();\n// double y2 = start + (ran *(end - start));\n// assertEquals(speedTest2.nearest(x2, y2), speedTest.nearest(x2, y2 ));\n// }\n// assertEquals(speedTest2.nearest(r.nextInt(R + 1 - 500) + 500,\n// r.nextInt(R + 1 - 500) + 100), speedTest.nearest(427.535670, -735.656403));\n\n System.out.println(\"elapsed time1: \" + sw.elapsedTime());\n\n int R2 = 100;\n int L2 = 10000;\n Stopwatch sw2 = new Stopwatch();\n for (int i = 0; i < L2; i += 1) {\n\n speedTest2.nearest(r.nextDouble(), r.nextDouble());\n }\n\n System.out.println(\"elapsed time: \" + sw2.elapsedTime());\n }",
"public static List<Point> ParetoOptimal(List<Point> listofPts)\n {\n \n if(listofPts.size() == 1 || listofPts.size() == 0)\n return listofPts;\n \n \n \n \n int pos = listofPts.size() /2 ;\n \n /*\n * quickSelect time complexity (n)\n */\n \n Point median = quickSelect(listofPts, pos, 0, listofPts.size() - 1); \n \n \n \n List<Point> points1 = new ArrayList<Point>();\n List<Point> points2 = new ArrayList<Point>();\n List<Point> points3 = new ArrayList<Point>();\n List<Point> points4 = new ArrayList<Point>();\n \n //O(n)\n if(oldMedian == median)\n {\n \t\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() <= median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n else\n {\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() < median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n //O(n)\n int yRightMax = -100000;\n for(int x= 0; x < points2.size(); x++)\n {\n if(points2.get(x).getY() > yRightMax)\n yRightMax = (int) points2.get(x).getY();\n \n }\n \n \n for(int x= 0; x < points1.size() ; x++)\n {\n if(points1.get(x).getY()> yRightMax)\n { \n points3.add(points1.get(x));\n \n } \n }\n \n for(int x= 0; x < points2.size() ; x++)\n {\n if(points2.get(x).getY() < yRightMax)\n {\n points4.add(points2.get(x));\n \n }\n \n }\n //System.out.println(\"points2: \" + points2);\n /*\n * Below bounded by T(n/c) + T(n/2) where c is ratio by which left side is shortened \n */\n oldMedian = median;\n return addTo \n ( ParetoOptimal(points3), \n ParetoOptimal(points2)) ;\n }",
"protected ArrayList<int[]> findAdjacentSafe(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}",
"protected void findSpaceHolder(Vector v){\n\t\tint holder = GoPlayer.UNKNOWN;\n\n\t\tfor (int i = 0 ; i < v.size() ; i++){\n\t\t\tPoint p = (Point) v.elementAt(i);\n\t\t\tint x = p.x;\n\t\t\tint y = p.y;\n \t int a[] = {x - 1 , x + 1 , x , x};\n \t\tint b[] = {y , y , y - 1 , y + 1};\n\n \t\tfor (int j = 0 ; j < 4 ; j++){\n if (!validatePoint(a[j], b[j]))\n continue;\n \t\t\t\telse {\n \t\t\t\tint xx = a[j];\n\t \t\t\tint yy = b[j];\n \t\t\t\tif (getPoint(xx, yy).getState() == GoPoint.BLACK){\n \t\tif (holder == GoPlayer.UNKNOWN) {\n holder = GoPlayer.BLACK;\n \t\t}\n else if (holder == GoPlayer.WHITE){\n holder = GoPlayer.BOTH;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\tif (getPoint(xx, yy).getState() == GoPoint.WHITE){\n if (holder == GoPlayer.UNKNOWN){\n holder = GoPlayer.WHITE;\n \t\t}\n else if (holder == GoPlayer.BLACK){\n \t\t\tholder = GoPlayer.BOTH;\n \t\t\tbreak;\n \t\t}\n \t}\n \t}\n \t}\n\t\t} // end for\n\n\t\tfor (int i = 0 ; i < v.size() ; i++) {\n\t\t\tPoint p = (Point) v.elementAt(i);\n\t\t\tgetPoint(p.x, p.y).setHolder(holder);\n\t\t}\n\t}",
"public boolean checkWithFragmentingWarheadRocketJump ()\n {\n Map<Square, List<Player>> squarePlayerListMap = checkRocketJump();\n List<Player> playerList;\n\n for (Square squareIterate : squarePlayerListMap.keySet())\n {\n\n for (Player playerIterate : squarePlayerListMap.get(squareIterate))\n {\n playerList = new ArrayList<>();\n\n playerList.addAll(playerIterate.getSquare().getPlayerList());\n playerList.remove(player);\n\n if (playerList.size()>1)\n return true;\n\n }\n }\n\n return false;\n }",
"private Cell getShortestPath(List<Cell> surroundingBlocks, int DestinationX, int DestinationY) {\n \n int cellIdx = random.nextInt(surroundingBlocks.size());\n Cell min = surroundingBlocks.get(0);\n int distMin = euclideanDistance(surroundingBlocks.get(0).x, surroundingBlocks.get(0).y, DestinationX, DestinationY);\n \n for(int i = 0; i < surroundingBlocks.size(); i++) {\n if (i==1) {\n min = surroundingBlocks.get(i);\n }\n if(distMin > euclideanDistance(surroundingBlocks.get(i).x, surroundingBlocks.get(i).y, DestinationX, DestinationY)) {\n distMin = euclideanDistance(surroundingBlocks.get(i).x, surroundingBlocks.get(i).y, DestinationX, DestinationY);\n min = surroundingBlocks.get(i);\n }\n }\n return min;\n }",
"public static boolean diagonalJudge(String playerMarker, int row, int column){\n\n boolean victoryFlag = false;\n\n int subRow = 0;\n int subColumn = 0;\n int victoryCounter = 0;\n\n // Checking first Diagonal\n // North West\n\n subRow = row;\n subColumn = column;\n\n // Store the player's latest move's coordinates\n\n winList.add(subColumn);\n winList.add(subColumn);\n\n while ( subRow >= 0 && subColumn >= 0 && !victoryFlag ){\n\n subRow--;\n subColumn--;\n\n if ( subRow >= 0 && subColumn >= 0 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n // South East\n\n subRow = row;\n subColumn = column;\n\n while ( subRow < 6 && subColumn < 7 && !victoryFlag ){\n\n subRow++;\n subColumn++;\n\n if ( subRow < 6 && subColumn < 7 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n if ( !victoryFlag ){\n winList.clear(); // reset the list, if no one won\n }\n else{\n winDirection = \"Left Diagonal\";\n }\n\n // Checking the other diagonal\n // North East\n\n victoryCounter = 0;\n subRow = row;\n subColumn = column;\n winList.add(subRow);\n winList.add(subColumn);\n\n while ( subRow >= 0 && subColumn < 7 && !victoryFlag ){\n\n subRow--;\n subColumn++;\n\n if ( subRow >= 0 && subColumn < 7 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n winDirection = \"Right Diagonal\";\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n // South East\n\n subRow = row;\n subColumn = column;\n\n while ( subRow < 6 && subColumn >= 0 && !victoryFlag ){\n\n subRow++;\n subColumn--;\n\n if ( subRow <= 5 && subColumn >= 0 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n winDirection = \"Right Diagonal\";\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n if ( !victoryFlag ){\n winList.clear();\n }\n\n return victoryFlag;\n }",
"public void chase(int targetX, int targetY, ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls, 0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if (isIntersection) {\r\n if (!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - targetX, 2) + Math.pow(yPos - targetY, 2);\r\n }\r\n if (!isLeftCollision && this.direction != 2) {\r\n leftDistance = Math.pow((xPos - 20) - targetX, 2) + Math.pow(yPos - targetY, 2);\r\n }\r\n if (!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - targetX, 2) + Math.pow((yPos - 20) - targetY, 2);\r\n }\r\n if (!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - targetX, 2) + Math.pow((yPos + 20) - targetY, 2);\r\n }\r\n if (upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n } else if (downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n } else if (rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n } else if (leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if (this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if (this.direction == 1) {\r\n yPos = yPos + 5;\r\n }\r\n if (this.direction == 2) {\r\n xPos = xPos + 5;\r\n }\r\n if (this.direction == 3) {\r\n xPos = xPos - 5;\r\n }\r\n\r\n }",
"public static <T> Pair<ArrayList<T>, Double> relativeHabitFilter(Map<T, Double> habitStrength){\n\t\t//System.out.print(\"rHabitFilter is called on size:\" + habitStrength.size());\n\t\tMap<T, Double> sorted= Helper.sortByValue(habitStrength);\n\t\tArrayList<T> keys =new ArrayList<T>(sorted.keySet());\n\t\t\n\t\t//System.out.println(habitStrength);\n\t\t//System.out.println(sorted);\n\t\t\n\t\tdouble bestDifference = 0;\n\t\tdouble bestSplit = 0;\n\t\tfor(int i = 0; i < keys.size()-1; i++){\n\t\t\tMap<T, Double> left = new HashMap<T, Double>();\n\t\t\tMap<T, Double> right =new HashMap<T, Double>(habitStrength);\n\t\t\tfor(int j =0; j <= i; j++){ //Fill maps left and right\n\t\t\t\tT key = keys.get(j);\n\t\t\t\tleft.put(key, sorted.get(key));\n\t\t\t\tright.remove(key);\n\t\t\t\t//System.out.print(\"loopmakemaps\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble difference = Helper.avarageDouble(right.values()) - Helper.avarageDouble(left.values());\n\t\t\tif(difference > bestDifference){\n\t\t\t\tbestDifference = difference;\n\t\t\t\tbestSplit = i;\n\t\t\t}\n\t\t\t//System.out.print(\"loopfindbest\");\n\t\t}\n\t\t\n\t\tArrayList<T> newCandidates =new ArrayList<T>();\n\t\tfor(int j = keys.size()-1; j > bestSplit; j--){\n\t\t\tnewCandidates.add(keys.get(j));\n\t\t\t//System.out.print(\"loophere\");\n\t\t}\n\t\t\n\t\t//System.out.println(\"I made it! Difference:\" + bestDifference + \"newCandidates\" + newCandidates);\n\t\t\n\t\treturn new ImmutablePair<ArrayList<T>, Double>(newCandidates, bestDifference);\n\t}",
"public int shortestBridge(int[][] A) {\n for(int i = 0; i < A.length && !found; i++) {\n for(int j = 0; j < A[0].length && !found; j++) {\n if(A[i][j] == 1) {\n helper(A, i, j);\n found = true;\n }\n }\n }\n // Put all '2' into queue as candidate initial start points\n Queue<int[]> q = new LinkedList<int[]>();\n for(int i = 0; i < A.length; i++) {\n for(int j = 0; j < A[0].length; j++) {\n if(A[i][j] == 2) {\n q.offer(new int[] {i, j});\n }\n }\n }\n int distance = 0;\n while(!q.isEmpty()) {\n int size = q.size();\n for(int i = 0; i < size; i++) {\n int[] cur = q.poll();\n for(int j = 0; j < 4; j++) {\n int new_x = cur[0] + dx[j];\n int new_y = cur[1] + dy[j];\n if(new_x >= 0 && new_x < A.length && new_y >= 0 && new_y < A[0].length) {\n if(A[new_x][new_y] == 1) {\n return distance;\n } else if(A[new_x][new_y] == 0) {\n // Update from 0 to 2 which means expand first island boundary\n // which also avoid using visited to check\n A[new_x][new_y] = 2;\n q.offer(new int[] {new_x, new_y});\n }\n }\n }\n }\n distance++;\n }\n return distance;\n }",
"public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\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\t\n\t}",
"public void stitchCells() {\r\n int x;\r\n int y;\r\n ACell currCell;\r\n ACell nextRight;\r\n ACell nextDown;\r\n\r\n for (x = -1; x < this.blocks; x += 1) {\r\n for (y = -1; y < this.blocks; y += 1) {\r\n\r\n currCell = this.indexHelp(x, y);\r\n nextRight = this.indexHelp(x + 1, y);\r\n nextDown = this.indexHelp(x, y + 1);\r\n\r\n currCell.stitchCells(nextRight, nextDown);\r\n }\r\n }\r\n }",
"public HashSet<int[]> findTiles(int x, int y, Tile[][] board, HashSet<int[]> tilePositions){\n TileType tileType = board[x][y].getType();\n int tileOrientation = board[x][y].getOrientation();\n\n switch(tileType){\n case Crossway:\n switch(tileOrientation){\n case 0:\n //nach oben\n //sind wir in der obersten Zeile oder hat das Tile über diesem nach unten eine Wand oder wurde das Tile über diesem schon angeschaut?\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions) ) {\n tilePositions.add(arrayOfXY(x,y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1,y, tilePositions)) {\n tilePositions.add(arrayOfXY(x - 1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x + 1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 1:\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 2:\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 3:\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1,tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n break;\n }\n break;\n case Way:\n if(tileOrientation == 0 || tileOrientation == 2){\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1,y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n }\n else{\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1,tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n }\n break;\n case Edge:\n switch(tileOrientation){\n case 0:\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 1:\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n break;\n case 2:\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1,y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n break;\n case 3:\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n }\n break;\n }\n return tilePositions;\n }",
"public BeyondarObject getNearestARObject(List<BeyondarObject> list)\n {\n int nearestDistance = 10000;\n BeyondarObject nearest = null;\n for (BeyondarObject beyondarObject : list) {\n if (beyondarObject.getDistanceFromUser() < nearestDistance) {\n nearestDistance = (int) beyondarObject.getDistanceFromUser();\n nearest = beyondarObject;\n }\n }\n return nearest;\n }",
"public static FPoint2[] findSnapErrors(Grid grid, SnapArrangement ar) {\n\n DArray a = new DArray();\n do {\n extractSnapPoints(ar);\n\n // construct a list of segment sections between snap points\n DArray fragList = new DArray();\n FRect fragBounds = null;\n\n Graph g = ar.getGraph();\n for (int jj = 0; jj < ar.nNodes(); jj++) {\n int id1 = jj + ar.idBase();\n for (int kk = 0; kk < g.nCount(id1); kk++) {\n int id2 = g.neighbor(id1, kk);\n if (id2 < id1)\n continue;\n\n // Segment seg = segs[i];\n // for (int j = 0; j < seg.nSnapPoints() - 1; j++) {\n Endpoints ep = new Endpoints(grid, ar.hotPixel(id1), ar.hotPixel(id2));\n if (fragBounds == null)\n fragBounds = new FRect(ep.v0, ep.v1);\n fragBounds.add(ep.v0);\n fragBounds.add(ep.v1);\n fragList.add(ep);\n }\n }\n\n if (fragList.isEmpty())\n break;\n\n // to speed up this process, divide bounds into a grid of bucket/pixels.\n // Each bucket contains the fragments whose minimum bounding rectangles\n // intersect the bucket's pixel. \n // Thus we need only compare fragments against others from the same bucket.\n\n int nBuckets = Math.max(1, ar.nNodes() / 60);\n DArray[] buckets = new DArray[nBuckets * nBuckets];\n {\n double bWidth = fragBounds.width / nBuckets, bHeight = fragBounds.height\n / nBuckets;\n for (int i = 0; i < buckets.length; i++)\n buckets[i] = new DArray();\n for (int i = 0; i < fragList.size(); i++) {\n Endpoints e = (Endpoints) fragList.get(i);\n // add endpoint to every bucket it may intersect\n int y0 = (int) ((Math.min(e.v0.y, e.v1.y) - fragBounds.y) / bHeight);\n int y1 = MyMath.clamp(\n (int) ((Math.max(e.v0.y, e.v1.y) - fragBounds.y) / bHeight), 0,\n nBuckets - 1);\n int x0 = (int) ((Math.min(e.v0.x, e.v1.x) - fragBounds.x) / bWidth);\n int x1 = MyMath.clamp(\n (int) ((Math.max(e.v0.x, e.v1.x) - fragBounds.x) / bWidth), 0,\n nBuckets - 1);\n\n for (int y = y0; y <= y1; y++) {\n for (int x = x0; x <= x1; x++) {\n buckets[y * nBuckets + x].add(e);\n }\n }\n }\n }\n\n final double NEARZERO = .00001;\n\n for (int k = 0; k < buckets.length; k++) {\n DArray b = buckets[k];\n for (int i = 0; i < b.size(); i++) {\n Endpoints ei = (Endpoints) b.get(i);\n\n for (int j = i + 1; j < b.size(); j++) {\n Endpoints ej = (Endpoints) b.get(j);\n\n FPoint2 pt = MyMath.lineSegmentIntersection(ei.v0, ei.v1, ej.v0,\n ej.v1, null);\n if (pt == null)\n continue;\n String err = null;\n\n // make sure the intersection occurs at an endpoint of each\n double di = Math.min(pt.distance(ei.v0), pt.distance(ei.v1));\n double dj = Math.min(pt.distance(ej.v0), pt.distance(ej.v1));\n\n // in triangle grid, fragment endpoint can lie on other fragment.\n // To eliminate this possibility, intersection point must be\n // distinct from all four endpoints.\n\n if (Math.min(di, dj) > NEARZERO) {\n err = \"\";\n }\n if (err != null) {\n a.add(pt);\n // a.add(err);\n }\n }\n }\n }\n } while (false);\n return (FPoint2[]) a.toArray(FPoint2.class);\n }",
"public BattleSimulator findBattle(){\r\n\r\n List<Enemy> enemies = world.getEnemies();\r\n Character character = world.getCharacter();\r\n List<MovingEntity> activeStructures = world.getActiveStructures();\r\n List<MovingEntity> friendlyEntities = world.getFriendlyEntities();\r\n List<Ally> allies = world.getAllies();\r\n\r\n\r\n // Create potentialFighting list which begins with all enemies in the world\r\n ArrayList<MovingEntity> potentialFighting = new ArrayList<MovingEntity>(enemies);\r\n ArrayList<MovingEntity> fighters = new ArrayList<MovingEntity>();\r\n List<Pair<MovingEntity, Double>> pairEnemyDistance = new ArrayList<Pair<MovingEntity, Double>>();\r\n ArrayList<MovingEntity> structures = new ArrayList<MovingEntity>();\r\n\r\n // For each enemy in potentialFighting, find the distance from enemy to character \r\n // If character is in battle radius of enemy, add enemy to a pairEnemyDistance list, remove them from potentialFighting list\r\n for(MovingEntity enemy: enemies) {\r\n double distanceSquaredBR = inRangeOfCharacter(character, enemy, enemy.getBattleRadius());\r\n if(distanceSquaredBR >= 0){\r\n potentialFighting.remove(enemy);\r\n Pair<MovingEntity, Double> pairEnemy = new Pair<MovingEntity, Double>(enemy, distanceSquaredBR);\r\n pairEnemyDistance.add(pairEnemy);\r\n }\r\n }\r\n // if no enemies within battle radius, no battle happens\r\n if (pairEnemyDistance.size() == 0) {\r\n return null;\r\n \r\n // else a battle is about to begin!!!\r\n } else if(pairEnemyDistance.size() > 0) {\r\n // For remaining enemies in potentialFighting list, if fighters list size > 0 and if character is in support radius of that enemy\r\n // also add that enemy to pairEnemyDistance list\r\n for(MovingEntity enemy : potentialFighting){\r\n double distanceSquaredSR = inRangeOfCharacter(character, enemy, enemy.getSupportRadius());\r\n if(distanceSquaredSR >= 0){\r\n Pair<MovingEntity, Double> pairEnemy = new Pair<MovingEntity, Double>(enemy, distanceSquaredSR);\r\n pairEnemyDistance.add(pairEnemy);\r\n }\r\n }\r\n }\r\n\r\n // Sort pairEnemyDistance list by distance of enemy to character, so that the closest enemy is first, the furthest enemy is last\r\n Collections.sort(pairEnemyDistance, new Comparator<Pair<MovingEntity, Double>>() {\r\n @Override\r\n public int compare(final Pair<MovingEntity, Double> p1, final Pair<MovingEntity, Double> p2) {\r\n if(p1.getValue1() > p2.getValue1()) {\r\n return 1;\r\n } else {\r\n return -1;\r\n }\r\n }\r\n });\r\n\r\n // Take all enemies from sorted pairEnemyDistance and add to fighters list\r\n for(Pair<MovingEntity, Double> pairEnemy : pairEnemyDistance) {\r\n fighters.add(pairEnemy.getValue0());\r\n }\r\n \r\n // For each tower, find the distance from tower to character\r\n // If character is in the support radius of tower, add tower to structure list\r\n if(activeStructures.size() > 0){\r\n for(MovingEntity structure : activeStructures) {\r\n if(structure.getID().equals(\"TowerBattler\")) {\r\n double distanceSquaredSR = inRangeOfCharacter(character, structure, structure.getSupportRadius());\r\n if(distanceSquaredSR >= 0){\r\n structures.add(structure);\r\n }\r\n }\r\n }\r\n }\r\n // If character is in the support radius of friendly entities, add to fighters\r\n if(friendlyEntities.size() > 0){\r\n for(MovingEntity friendly : friendlyEntities) {\r\n double distanceSquaredSR = inRangeOfCharacter(character, friendly, friendly.getSupportRadius());\r\n if(distanceSquaredSR >= 0){\r\n fighters.add(friendly);\r\n }\r\n }\r\n }\r\n \r\n // Add all allies to fighters list\r\n for(Ally ally : allies) {\r\n fighters.add(ally);\r\n }\r\n\r\n // Construct BattleSimulator class with character, fighters, structures\r\n BattleSimulator battle = new BattleSimulator(character, fighters, structures);\r\n\r\n // battle is about to begin!\r\n return battle;\r\n }",
"private PointDist findNearest(Node curr, RectHV rect, PointDist minP, boolean Isx) {\n double currDist;\n PointDist p1;\n PointDist p2;\n // double currDist = findNearP.distanceSquaredTo(curr.point);\n /*\n if (currDist < pointDist.dist)\n minP = new PointDist(curr.point, currDist);\n else\n minP = pointDist;\n\n */\n if (Isx) {\n if (curr.left != null) {\n RectHV leftRect = new RectHV(rect.xmin(), rect.ymin(), curr.point.x(), rect.ymax());\n currDist = findNearP.distanceSquaredTo(curr.left.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.left.point, currDist);\n if (minP.dist > leftRect.distanceSquaredTo(findNearP)) {\n p1 = findNearest(curr.left, leftRect, minP, false);\n if (p1 != null)\n if (p1.dist < minP.dist)\n minP = p1;\n }\n }\n if (curr.right != null) {\n RectHV rightRect = new RectHV(curr.point.x(), rect.ymin(), rect.xmax(), rect.ymax());\n currDist = findNearP.distanceSquaredTo(curr.right.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.right.point, currDist);\n if (minP.dist > rightRect.distanceSquaredTo(findNearP)) {\n p2 = findNearest(curr.right, rightRect, minP, false);\n if (p2 != null)\n if (p2.dist < minP.dist)\n minP = p2;\n }\n }\n }\n else {\n if (curr.left != null) {\n RectHV leftRect = new RectHV(rect.xmin(), rect.ymin(), rect.xmax(), curr.point.y());\n currDist = findNearP.distanceSquaredTo(curr.left.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.left.point, currDist);\n if (minP.dist > leftRect.distanceSquaredTo(findNearP)) {\n p1 = findNearest(curr.left, leftRect, minP, true);\n if (p1 != null)\n if (p1.dist < minP.dist)\n minP = p1;\n }\n }\n if (curr.right != null) {\n RectHV rightRect = new RectHV(rect.xmin(), curr.point.y(), rect.xmax(), rect.ymax());\n currDist = findNearP.distanceSquaredTo(curr.right.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.right.point, currDist);\n if (minP.dist > rightRect.distanceSquaredTo(findNearP)) {\n p2 = findNearest(curr.right, rightRect, minP, true);\n if (p2 != null)\n if (p2.dist < minP.dist)\n minP = p2;\n }\n }\n }\n return minP;\n }",
"public boolean placeComputerShipsDumb(int pattern) {\n if(cpuHasPlaced){\n return false;\n }\n switch(pattern){\n case 1:\n computerShips[0].setShip(4, 2, 1);\n for (int i = 4; i < 9; i++) {\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[1].setShip(2, 4, 0);\n for (int j = 4; j < 8; j++){\n computerPlayerBoard[2][j] = board.ship.ordinal();\n }\n computerShips[2].setShip(0, 0, 1);\n for (int i = 0; i < 3; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[3].setShip(7, 9, 1);\n for (int i = 6; i < 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(5, 4, 1);\n for (int i = 5; i < 7; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n break;\n case 2:\n computerShips[0].setShip(0, 0, 1);\n for(int i = 0; i < 6; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[1].setShip( 0, 3, 1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[2].setShip(0, 4, 1);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,1,1);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,2,1);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n break;\n case 3:\n computerShips[0].setShip(0,0,0);\n for(int i = 0; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[1].setShip( 0, 3, 0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[3][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(0, 4, 0);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n computerShips[3].setShip( 0, 1, 0);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,2,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n break;\n case 4:\n computerShips[0].setShip(3,4,1);\n for(int i = 3; i < 8; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[1].setShip( 3, 6, 1);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[i][6] = board.ship.ordinal();\n }\n computerShips[2].setShip(3, 3, 1);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[3].setShip( 7, 9, 1);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(8,0,0);\n for(int i = 8; i <= 9; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n break;\n case 5:\n computerShips[0].setShip(0,9,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,6,1);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[i][6] = board.ship.ordinal();\n }\n computerShips[2].setShip(3,3,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[3][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,9,1);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(8,0,1);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n break;\n case 6:\n computerShips[0].setShip(0,9,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(0,6,0);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(0,5,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,8,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(0,7,0);\n for(int i = 0; i < 2; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n break;\n case 7:\n computerShips[0].setShip(3,3,0);\n for(int i = 3; i < 8; i++){\n computerPlayerBoard[3][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,5,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n //cruiser\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(3,2,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(3,4,0);\n for(int i = 3; i < 5; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n break;\n case 8:\n computerShips[0].setShip(2,4,1);\n for(int i = 2; i < 7; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,6,1);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[i][6] = board.ship.ordinal();\n }\n computerShips[2].setShip(4,5,1);\n for(int i = 4; i < 7; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n computerShips[3].setShip(2,3,1);\n for(int i = 2; i < 5; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[4].setShip(2,5,1);\n for(int i = 2; i < 4; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n break;\n case 9:\n computerShips[0].setShip(0,0,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,1,1);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n computerShips[2].setShip(7,0,1);\n for(int i = 7; i <= 9; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[3].setShip(5,0,1);\n for(int i = 5; i < 8; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,1,1);\n for(int i = 0; i < 2; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n break;\n case 10:\n computerShips[0].setShip(0,0,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,1,0);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(7,0,0);\n for(int i = 7; i <= 9; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(5,0,0);\n for(int i = 5; i < 8; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(0,1,0);\n for(int i = 0; i < 2; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n break;\n case 11:\n computerShips[0].setShip(2,3,1);\n for(int i = 2; i < 7; i++){\n computerPlayerBoard[i][3] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,5,1);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n computerShips[2].setShip(3,0,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(4,1,1);\n for(int i = 4; i < 6; i++){\n computerPlayerBoard[i][1] = board.ship.ordinal();\n }\n computerShips[4].setShip(4,8,1);\n for(int i = 4; i < 6; i++){\n computerPlayerBoard[i][8] = board.ship.ordinal();\n }\n break;\n case 12:\n computerShips[0].setShip(3,5,0);\n for(int i = 3; i < 8; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,2,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(4,2,1);\n for(int i = 4; i < 7; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[3].setShip(3,0,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(3,9,0);\n for(int i = 3; i < 5; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n break;\n case 13:\n computerShips[0].setShip(0,0,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[1].setShip(0,9,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,0,1);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[i][0] = board.ship.ordinal();\n }\n computerShips[3].setShip(6,9,1);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n computerShips[4].setShip(8,9,1);\n for(int i = 8; i <= 9; i++){\n computerPlayerBoard[i][9] = board.ship.ordinal();\n }\n break;\n case 14:\n computerShips[0].setShip(0,4,1);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[1].setShip(0,2,1);\n for(int i = 0; i < 4; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[2].setShip(5,4,1);\n for(int i = 5; i < 8; i++){\n computerPlayerBoard[i][4] = board.ship.ordinal();\n }\n computerShips[3].setShip(4,2,1);\n for(int i = 4; i < 7; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n computerShips[4].setShip(6,2,1);\n for(int i = 6; i < 8; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n break;\n case 15:\n computerShips[0].setShip(1,4,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,5,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,4,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[4][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,5,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,5,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n break;\n case 16:\n computerShips[0].setShip(1,1,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,8,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,1,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,8,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,8,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n break;\n case 17:\n computerShips[0].setShip(1,1,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,2,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,1,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[1][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,2,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,2,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n break;\n case 18:\n computerShips[0].setShip(1,6,0);\n for(int i = 1; i < 6; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(3,7,0);\n for(int i = 3; i < 7; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(6,6,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[6][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,7,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(7,7,0);\n for(int i = 7; i < 9; i++){\n computerPlayerBoard[7][i] = board.ship.ordinal();\n }\n break;\n case 19:\n computerShips[0].setShip(0,5,0);\n for(int i = 0; i < 5; i++){\n computerPlayerBoard[5][i] = board.ship.ordinal();\n }\n computerShips[1].setShip(2,2,0);\n for(int i = 2; i < 6; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(0,9,0);\n for(int i = 0; i < 3; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(6,0,0);\n for(int i = 6; i < 9; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(6,9,0);\n for(int i = 6; i < 8; i++){\n computerPlayerBoard[9][i] = board.ship.ordinal();\n }\n break;\n case 20:\n computerShips[0].setShip(2,5,1);\n for(int i = 2; i < 7; i++){\n computerPlayerBoard[i][5] = board.ship.ordinal();\n }\n computerShips[1].setShip(1,8,0);\n for(int i = 1; i < 5; i++){\n computerPlayerBoard[8][i] = board.ship.ordinal();\n }\n computerShips[2].setShip(3,0,0);\n for(int i = 3; i < 6; i++){\n computerPlayerBoard[0][i] = board.ship.ordinal();\n }\n computerShips[3].setShip(1,2,0);\n for(int i = 1; i < 4; i++){\n computerPlayerBoard[2][i] = board.ship.ordinal();\n }\n computerShips[4].setShip(4,2,1);\n for(int i = 4; i < 6; i++){\n computerPlayerBoard[i][2] = board.ship.ordinal();\n }\n break;\n\n }\n cpuHasPlaced = true;\n return true;\n }",
"private void scanForBlockFarAway() {\r\n\t\tList<MapLocation> locations = gameMap.senseNearbyBlocks();\r\n\t\tlocations.removeAll(stairs);\r\n\t\tif (locations.size() == 0) {\r\n\t\t\tblockLoc = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/* remove blocks that can be sensed */\r\n\t\tIterator<MapLocation> iter = locations.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tMapLocation loc = iter.next();\r\n\t\t\tif (myRC.canSenseSquare(loc))\r\n\t\t\t\titer.remove();\r\n\t\t} \r\n\t\t\r\n\t\tlocations = navigation.sortLocationsByDistance(locations);\r\n\t\t//Collections.reverse(locations);\r\n\t\tfor (MapLocation block : locations) {\r\n\t\t\tif (gameMap.get(block).robotAtLocation == null){\r\n\t\t\t\t/* this location is unoccupied */\r\n\t\t\t\tblockLoc = block;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tblockLoc = null;\r\n\t}",
"@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }",
"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 }",
"protected void check_turn(List<CollisionObject> collidables) {\n //Firing rays\n\n //select an area of 180 degrees (pi radians)\n boolean turn = true;\n Vector2 start_point = get_ray_fire_point();\n for (int ray = 0; ray <= number_of_rays; ray++) {\n\n if (turn) {\n ray--;\n float ray_angle = sprite.getRotation() + ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = false;\n } else {\n float ray_angle = sprite.getRotation() - ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = true;\n }\n\n float ray_angle = ((ray_angle_range / number_of_rays) * ray) + sprite.getRotation();\n\n for (float dist = 0; dist <= ray_range; dist += ray_step_size) {\n\n double tempx = (Math.cos(Math.toRadians(ray_angle)) * dist) + (start_point.x);\n double tempy = (Math.sin(Math.toRadians(ray_angle)) * dist) + (start_point.y);\n //check if there is a collision hull (other than self) at (tempx, tempy)\n for (CollisionObject collideable : collidables) {\n if (collideable.isShown() &&\n ((Obstacle) collideable).getSprite().getY() > sprite.getY() - 200 &&\n ((Obstacle) collideable).getSprite().getY() < sprite.getY() + 200 &&\n ((Obstacle) collideable).getSprite().getX() > sprite.getX() - 200 &&\n ((Obstacle) collideable).getSprite().getX() < sprite.getX() + 200)\n for (Shape2D bound : collideable.getBounds().getShapes()) {\n if (bound.contains((float) tempx, (float) tempy)) {\n // Determines which side the ai should turn to\n if (turn) {\n turn(-1);\n return;\n } else {\n turn(1);\n return;\n }\n\n }\n }\n\n }\n }\n }\n }",
"public boolean sps() {\n\t\tupdateFrontUnknown();\n\t\tboolean successful = false;\n\t\tfor (int i = 0; i < frontUnknown.size(); i++) {\n\t\t\tint x = frontUnknown.get(i)[0];\n\t\t\tint y = frontUnknown.get(i)[1];\n\t\t\tArrayList<int[]> knownNeighbors = findAdjacentSafe(frontUnknown.get(i));\n\t\t\tfor (int[] j: knownNeighbors) {\n\t\t\t\t//all clear neighbours\n\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentMark(j).size()) {\n\t\t\t\t\tprobe(x, y);\n\t\t\t\t\tsuccessful = true;\n\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\tspsCount++;\n\t\t\t\t\tshowMap();\n\t\t\t\t\ti--;\n\t\t\t\t\tupdateFrontUnknown();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//all marked neighbours\n\t\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentRisk(j).size()) {\n\t\t\t\t\t\tmark(x, y);\n\t\t\t\t\t\tsuccessful = true;\n\t\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\t\tspsCount++;\n\t\t\t\t\t\tshowMap();\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tupdateFrontUnknown();\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\treturn successful;\n\t}",
"public static double closestPair(Point[] sortedX) {\n if (sortedX.length <= 1) {\n return Double.MAX_VALUE;\n }\n double mid = sortedX[(sortedX.length) / 2].getX();\n double firstHalf = closestPair(Arrays.copyOfRange(sortedX, 0, (sortedX.length) / 2));\n double secondHalf = closestPair(Arrays.copyOfRange(sortedX, (sortedX.length) / 2, sortedX.length));\n double min = Math.min(firstHalf, secondHalf);\n ArrayList<Point> close = new ArrayList<Point>();\n for (int i = 0; i < sortedX.length; i++) {\n double dis = Math.abs(sortedX[i].getX() - mid);\n if (dis < min) {\n close.add(sortedX[i]);\n }\n }\n // sort by Y coordinates\n Collections.sort(close, new Comparator<Point>() {\n public int compare(Point obj1, Point obj2) {\n return (int) (obj1.getY() - obj2.getY());\n }\n });\n Point[] near = close.toArray(new Point[close.size()]);\n\n for (int i = 0; i < near.length; i++) {\n int k = 1;\n while (i + k < near.length && near[i + k].getY() < near[i].getY() + min) {\n if (min > near[i].distance(near[i + k])) {\n min = near[i].distance(near[i + k]);\n System.out.println(\"near \" + near[i].distance(near[i + k]));\n System.out.println(\"best \" + best);\n\n if (near[i].distance(near[i + k]) < best) {\n best = near[i].distance(near[i + k]);\n arr[0] = near[i];\n arr[1] = near[i + k];\n // System.out.println(arr[0].getX());\n // System.out.println(arr[1].getX());\n\n }\n }\n k++;\n }\n }\n return min;\n }",
"private ArrayList<BooleanProperty> checkSurroundings(int layoutX, int layoutY) {\n\n ArrayList<BooleanProperty> neighbors = new ArrayList<>();\n BooleanProperty[][] gameCells = controller.getGameCells();\n\n for (int i = layoutX - 1; i <= layoutX + 1; i++) {\n for (int j = layoutY - 1; j <= layoutY + 1; j++) {\n\n if (!(i == layoutX && j == layoutY)) {\n if (i < gameCells.length && i > -1 && j < gameCells[i].length && j > -1 && gameCells[i][j].get()) {\n neighbors.add(gameCells[i][j]);\n }\n }\n }\n }\n return neighbors;\n }",
"public void challengeMove(){\n int maxOutcome = -1;\n int returnIndex = -1;\n Hole lastHole;\n Hole selectedHole;\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n for(int i = 0; i < availableHoles.size(); i++){\n selectedHole = availableHoles.get(i);\n lastHole = holes[(selectedHole.getHoleIndex() + selectedHole.getNumberOfKoorgools() - 1) % 18];\n if(lastHole.getOwner() != nextToPlay){\n int numOfKorgools = lastHole.getNumberOfKoorgools() +1;\n if(numOfKorgools == 3 && !nextToPlay.hasTuz()){\n int otherTuzIndex = getPlayerTuz(Side.WHITE);\n if(otherTuzIndex == -1 || ((otherTuzIndex + 9) != lastHole.getHoleIndex())) {\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n if(numOfKorgools % 2 == 0 && numOfKorgools > maxOutcome){\n maxOutcome = numOfKorgools;\n returnIndex = selectedHole.getHoleIndex();\n }\n }\n }\n if(returnIndex <= -1){\n randomMove();\n return;\n }\n redistribute(returnIndex);\n }",
"private List<Point> neighboursFiltering(List<Point> points) {\n Point nearest = points.get(0);\n HeartDistance calculator = new HeartDistance();\n return points.stream().filter(p -> calculator.calculate(p,nearest) < NEIGHBOURS_THRESHOLD).collect(Collectors.toList());\n }",
"private int search(Bitboard board, int posMask, int turn) {\n // if this player doesn't even \"own\" any connected components, they're in bad shape...\n if (!ownerToCCs.containsKey(turn)) {\n return 100;\n }\n\n // perform basic BFS to explore the connected component\n // we're finding distance to an \"owned\" connected component\n int target = ownerToCCs.get(turn);\n int orthogonal, nextMask, altDist;\n int myVisit = 0;\n\n searchQueue.clear();\n prev.clear();\n dist.clear();\n\n searchQueue.add(posMask);\n dist.put(posMask, 0);\n\n while (!searchQueue.isEmpty()) {\n // get next position off of queue\n posMask = searchQueue.poll();\n\n // ignore if visited, invalid location, or opponent owns\n if ((myVisit & posMask) != 0 || !board.isValid(posMask)\n || board.owns(posMask, 1 - turn))\n continue;\n myVisit |= posMask;\n\n // check if it's a target\n if ((target & posMask) != 0) {\n // return distance to posMask\n return dist.get(prev.get(posMask)) + 1;\n }\n\n // continue BFS\n orthogonal = BitMasks.orthogonal.get(posMask);\n while (orthogonal != 0) {\n nextMask = orthogonal & ~(orthogonal - 1);\n orthogonal ^= nextMask;\n\n altDist = dist.get(posMask) + 1;\n if (altDist < dist.getOrDefault(nextMask, Integer.MAX_VALUE)) {\n prev.put(nextMask, posMask);\n dist.put(nextMask, altDist);\n }\n searchQueue.add(nextMask);\n }\n }\n // no path found to a target (the circle is isolated)\n return 100;\n }",
"void FindLstn (int boardID, short[] addrlist, short[] results, int limit);",
"public static int[][] getLocations(int[] widths) {\n \n int[][] locations = new int[widths.length][2];\n Random randomGenerator = new Random();\n int width = 1184;\n int height = 861;\n \n int firstX = randomGenerator.nextInt(width - widths[0]);\n int firstY = randomGenerator.nextInt(height - widths[0]);\n locations[0][0] = firstX;\n locations[0][1] = firstY; \n \n for (int i = 1; i < widths.length; i++) {\n \n boolean foundLocation = false;\n\n while (foundLocation == false) {\n \n int tryXHere = randomGenerator.nextInt(width - widths[i]);\n int tryYHere = randomGenerator.nextInt(height - widths[i]);\n int[] nextLocation = {tryXHere,tryYHere};\n if ((tryXHere + widths[i]) < locations[i-1][0]) {\n locations[i] = nextLocation;\n foundLocation = true;\n } \n else if (tryXHere > (locations[i-1][0] + widths[i-1])) {\n locations[i] = nextLocation;\n foundLocation = true;\n } \n else if ((tryYHere + widths[i]) < locations[i-1][1]) {\n locations[i] = nextLocation;\n foundLocation = true;\n } \n else if (tryYHere > (locations[i-1][1] + widths[i-1])) {\n locations[i] = nextLocation;\n foundLocation = true;\n } \n else {\n foundLocation = false;\n }\n }\n } \n return locations;\n }",
"private static Point winOrBlock(char[][] board, char match) {\r\n\t\tint rd;\r\n\t\tint cd;\r\n\t\tif(board[0][0] == match) {\r\n\t\t\tif(board[0][1] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[0][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][0] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[0][1] == match) {\r\n\t\t\tif(board[0][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][1] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[0][2] == match) {\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][2] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[1][0] == match) {\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[1][1] == match) {\r\n\t\t\tif(board[1][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][1] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[1][2] == match) {\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[2][0] == match) {\r\n\t\t\tif(board[2][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[2][1] == match) {\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\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<BlockPoint> chooseFurthestPoints(List<BlockPoint> originalPoints){\n if(plattformsPerChunk <= 0 || plattformsPerChunk > originalPoints.size()){\n throw new IllegalArgumentException(\"plattformsPerChunk can not be negative or larger than originalPoints\");\n\t}\n\tList<BlockPoint> startingPoints = new ArrayList<>(originalPoints);\n List<BlockPoint> chosenPoints = new ArrayList<>();\n\tint randomIndex = random.nextInt(startingPoints.size()-1);\n\t// Add the random starting position\n chosenPoints.add(startingPoints.get(randomIndex));\n // Remove it from the list since we can't add the same point many times\n\tstartingPoints.remove(randomIndex);\n\n\t// Choose \"plattformsPerChunk - 1\" amount of plattforms other than the starting point\n\tfor(int i = 0; i < plattformsPerChunk-1; i++){\n\t\tif(startingPoints.isEmpty()){\n\t\t break;\n\t\t}\n\n\t // Set every consideredPositions weight to its lowest distance\n\t // to any considered node\n\t for(BlockPoint consideredPos : startingPoints){\n\t\tdouble globalMinDist = INFINITY;\n\t\tfor(BlockPoint chosenPos : chosenPoints){\n\t\t double currentMinDist = consideredPos.distanceTo(chosenPos);\n\t\t if(currentMinDist < globalMinDist){\n\t\t\tglobalMinDist = currentMinDist;\n\t\t }\n\t\t}\n\t\tconsideredPos.weight = globalMinDist;\n\t }\n\n\t // Choose the position with the highest weight and add/remove it.\n\t // This means choose the point with largest min distance\n\t double highestMinDist = -1;\n\t BlockPoint chosenPoint = null;\n\t for(BlockPoint consideredPos : startingPoints){\n\t\tif(highestMinDist < consideredPos.weight){\n\t\t highestMinDist = consideredPos.weight;\n\t\t chosenPoint = consideredPos;\n\t\t}\n\t }\n\t assert chosenPoint != null;\n\t chosenPoints.add(chosenPoint.copy());\n\t startingPoints.remove(chosenPoint);\n\t}\n\treturn chosenPoints;\n }",
"public boolean isWin_LordRust(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 3){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }",
"private int cornerCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n if (coordinates.get(2).getXCoordinate() < wallCoordinates.get(0).getXCoordinate() && coordinates.get(2).getYCoordinate() < wallCoordinates.get(0).getYCoordinate())\n return 0;\n else if (coordinates.get(0).getXCoordinate() > wallCoordinates.get(1).getXCoordinate() && coordinates.get(0).getYCoordinate() < wallCoordinates.get(1).getYCoordinate())\n return 1;\n else if (wallCoordinates.get(2).getXCoordinate() < coordinates.get(0).getXCoordinate() && wallCoordinates.get(2).getYCoordinate() < coordinates.get(0).getYCoordinate())\n return 2;\n else if (coordinates.get(1).getXCoordinate() < wallCoordinates.get(3).getXCoordinate() && coordinates.get(1).getYCoordinate() > wallCoordinates.get(3).getYCoordinate())\n return 3;\n else\n return -1;\n }",
"public boolean getNearestTown() {\n\t\tint eigenePositionX = stadtposition.x;\r\n\t\tint eigenePositionY = stadtposition.y;\r\n\t\tint anderePositionX, anderePositionY;\r\n\t\tint deltaX, deltaY;\r\n\t\tint distance;\r\n\t\tint distancesum;\r\n\t\tint mindistance = 1200;\r\n\t\tint minIndex = 0;\r\n\r\n\t\tfor (int i = 0; i < otherTowns.size(); i++) {\r\n\t\t\tanderePositionX = otherTowns.get(i).stadtposition.x;\r\n\t\t\tanderePositionY = otherTowns.get(i).stadtposition.y;\r\n\t\t\tdeltaX = eigenePositionX - anderePositionX;\r\n\t\t\tdeltaY = eigenePositionY - anderePositionY;\r\n\t\t\tdistancesum = deltaX * deltaX + deltaY * deltaY;\r\n\t\t\tdistance = (int) Math.sqrt(distancesum);\r\n\r\n\t\t\tif (distance == 0) {\r\n\t\t\t\tdistance = 1500;\r\n\t\t\t}\r\n\r\n\t\t\tif (distance < mindistance) {\r\n\t\t\t\t// System.out.println(distance+\" von minindex i \"+i+\"ist kleiner\");\r\n\t\t\t\tminIndex = i;\r\n\t\t\t\tmindistance = distance;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// System.out.println(\"minIndex: \"+minIndex+\" ist mit mindistance\r\n\t\t// \"+mindistance+\" am nahsten\");\r\n\t\tnahsteStadt = otherTowns.get(minIndex);\r\n\t\treturn true;\r\n\r\n\t}"
]
| [
"0.5636033",
"0.55184346",
"0.5406719",
"0.5342322",
"0.52996033",
"0.52564216",
"0.5233353",
"0.51994437",
"0.51945615",
"0.51866734",
"0.5175769",
"0.5159035",
"0.51576024",
"0.51455677",
"0.51405317",
"0.5126461",
"0.5120413",
"0.51050436",
"0.50626993",
"0.501729",
"0.50172544",
"0.49958637",
"0.4984735",
"0.49748403",
"0.4968209",
"0.49440306",
"0.49376225",
"0.49164557",
"0.4905502",
"0.4901738",
"0.48960537",
"0.4892508",
"0.48836508",
"0.48739332",
"0.48606592",
"0.48604542",
"0.48545918",
"0.48463282",
"0.48444146",
"0.48412728",
"0.48373693",
"0.48340246",
"0.48293588",
"0.4812222",
"0.48100474",
"0.47845563",
"0.4780438",
"0.47751528",
"0.47724932",
"0.4765179",
"0.47630322",
"0.47629836",
"0.47435498",
"0.4743133",
"0.47403604",
"0.47380215",
"0.47369418",
"0.47355306",
"0.47281945",
"0.4725346",
"0.47173923",
"0.47169945",
"0.47137895",
"0.47131342",
"0.47119218",
"0.47086975",
"0.47061595",
"0.47045365",
"0.47040793",
"0.47035316",
"0.46939048",
"0.46911165",
"0.46786362",
"0.46693957",
"0.46682206",
"0.466581",
"0.46622643",
"0.46526882",
"0.4651948",
"0.4651814",
"0.46509072",
"0.46469796",
"0.46433195",
"0.46420482",
"0.46386558",
"0.46376652",
"0.46333742",
"0.46302852",
"0.46214578",
"0.461912",
"0.46189338",
"0.46170333",
"0.46162647",
"0.4614605",
"0.4607595",
"0.46056423",
"0.46019155",
"0.45993775",
"0.45922542",
"0.45909292"
]
| 0.74931204 | 0 |
Set the servletContext, users and counter to null | public synchronized void contextDestroyed(ServletContextEvent event) {
servletContext = null;
userOnlineCounter = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearCurrentUser() {\n currentUser = null;\n }",
"public static void clearContext() {\n log.debug(\"Clearing the current HTTP Request Headers context\");\n context.remove();\n }",
"private void initialize()\r\n {\r\n this.workspace = null;\r\n this.currentUser = null;\r\n this.created = new Date();\r\n this.securityInfo = null;\r\n }",
"@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tthis.use = arg0.getServletContext();//服务器打开的时候取得一个实例化对象\n\t\tthis.use.setAttribute(\"onlineuser\", new TreeSet<String>());//设置一个空集合\n\t}",
"public void reset() {\n mHsConfig = null;\n mLoginRestClient = null;\n mThirdPidRestClient = null;\n mProfileRestClient = null;\n mRegistrationResponse = null;\n\n mSupportedStages.clear();\n mRequiredStages.clear();\n mOptionalStages.clear();\n\n mUsername = null;\n mPassword = null;\n mEmail = null;\n mPhoneNumber = null;\n mCaptchaResponse = null;\n mTermsApproved = false;\n\n mShowThreePidWarning = false;\n mDoesRequireIdentityServer = false;\n }",
"@Override\r\n\tpublic void contextDestroyed(ServletContextEvent env) {\n\t\tInteger nn= (Integer)env.getServletContext().getAttribute(\"num\");\r\n dao.addCount(nn);\r\n String path=env.getServletContext().getContextPath();\r\n System.out.println(path+\"项目销毁了\");\r\n \r\n\t}",
"public void resetAllIdCounts() {\n \t\tthis.userCounterIdCounter = 0;\n \t\tthis.questionIdCounter = 0;\n \t\tthis.answerIdCounter = 0;\n \t\tthis.commentIdCounter = 0;\n \t}",
"public static void unsetExecutionContext() {\r\n\t\tServletLoggingOutput.servlets.set(null);\r\n\t}",
"private void clearUser() { user_ = null;\n \n }",
"@Override\n\tpublic void init() throws ServletException\n\t{\n\t\tsuper.init();\n\t\t\n\t\tActiveUsers = (HashMap<String, User>) getServletContext().getAttribute(\"ActiveUsers\");\n\t\tMessages = (ArrayList<Message>) getServletContext().getAttribute(\"Messages\");\n\t\t\n\t\tif(ActiveUsers == null)\n\t\t{\n\t\t\tActiveUsers = new HashMap<String, User>();\n\t\t\tgetServletContext().setAttribute(\"ActiveUsers\", ActiveUsers);\n\t\t}\n\t\t\n\t\tif(Messages == null)\n\t\t{\n\t\t\tMessages = new ArrayList<Message>();\n\t\t\tgetServletContext().setAttribute(\"Messages\", Messages);\n\t\t}\n\t}",
"public static void reset() {\n Castle.userId(null);\n Castle.flush();\n }",
"public void flushUserList()\n {\n users = null;\n }",
"private static void clearHolder() {\n log.debug(\"Clear ApplicationContext in SpringContextHolder:\"\n + applicationContext);\n applicationContext = null;\n }",
"private Session() {\n userId = -1;\n onUserDeletion = null;\n }",
"public void reset() {\n counters = null;\n counterMap = null;\n counterValueMap = null;\n }",
"public void setCouchDBToNull() {\n mCouchDBinstance = null;\n mCouchManager = null;\n database = null;\n }",
"public void init() throws ServletException {\n\t\tList<User> list = new ArrayList<>();\n\t\t\n\t\t//store the list in ServletContext domain\n\t\tthis.getServletContext().setAttribute(\"list\", list);\n\t}",
"@Override\n\tpublic ServletContext getServletContext() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic ServletContext getServletContext() {\n\t\treturn null;\n\t}",
"public UserServlet() {\n super();\n }",
"public void logoutCurrentUser() {\n currentUser = null;\n }",
"private void clearAddFriendAToServer() {\n if (reqCase_ == 1) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"public void resetContexto()\r\n {\r\n this.contexto = null;\r\n }",
"public void logout() {\n\n // Instance, user and token become null\n instance = null;\n user = null;\n authtoken = null;\n\n // Switch all the settings back to true\n isLifeStoryLinesOn = true;\n isFamilyTreeLinesOn = true;\n isSpouseLinesOn = true;\n isFatherSideOn = true;\n isMotherSideOn = true;\n isMaleEventsOn = true;\n isFemaleEventsOn = true;\n\n //Take care of resetting boolean logics use throughout app\n isLoggedIn = false;\n personOrSearch = false;\n startLocation = null;\n eventID = null;\n\n // Clear all lists\n\n people.clear();\n events.clear();\n personEvents.clear();\n currentPersonEvents.clear();\n eventTypes.clear();\n\n childrenMap.clear();\n maleSpouse.clear();\n femaleSpouse.clear();\n paternalAncestorsMales.clear();\n paternalAncestorsFemales.clear();\n maternalAncestorsMales.clear();\n maternalAncestorsFemales.clear();\n }",
"public static void cleanseInits() {\n delayDuration = null;\n timerFrequency = null;\n numProcessorThreads = null;\n maxProcessorTasks = null;\n }",
"private void clearUserId() {\n \n userId_ = 0;\n }",
"public static void tearDown() {\n reset();\n clear();\n APIConfig.getInstance().setAppId(null, null);\n APIConfig.getInstance().setDeviceId(null);\n APIConfig.getInstance().setToken(null);\n APIConfig.getInstance().setUserId(null);\n Leanplum.setApplicationContext(null);\n }",
"private void clearObjUser() { objUser_ = null;\n \n }",
"public WebConnector() {\n\t\tsuper.setFieldValues();\n\t\tagentIdToSessionId = new HashMap<>();\n\t\tsessions = new HashMap<>();\n\t\tsecureRandom = new SecureRandom();\n\t\tthis.logger.setLevel(Level.SEVERE);\n\t}",
"public synchronized void resetUserWorkouts() {\n userWorkouts = null;\n }",
"public WebConnectorRequestHandler () {\t\t\n\t\t_userSessions = new Hashtable<Long, UserSession>(); //manage all active sessions\n\t\t\n\t scheduledExecutorService.scheduleWithFixedDelay( //thread looping and checking for timeouts\n\t \t\tnew Runnable() {\t\t\t\t\t\t//if the user is logged in for too long without sending any requests-> logout\n\t\t\t public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }\n\t\t\t }\n\t \t\t, LOGOUT_INTERVAL, LOGOUT_INTERVAL, TimeUnit.SECONDS);\n\t\t\t \n\n\n\t}",
"public void destroy() {\n\t\tsuper.destroy(); \n\t\tSystem.out.println(\"=====destory servlet=========\");\n\t}",
"private void clearLoginReq() {\n if (reqCase_ == 6) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t\tSystem.out.println(\"Destory LoginServlet\");\n\t}",
"@Override\n\tpublic HttpSessionContext getSessionContext() {\n\t\treturn null;\n\t}",
"@Override\n protected void onRequestDone(HttpServletRequest request) {\n if (!sessions.isEmpty()) {\n for (SessionRef ref : getSessions()) {\n ref.destroy();\n }\n }\n sessions = null;\n }",
"public static void clear() {\n\t\tThreadContext.clear();\n\t}",
"public void reset() {\n noIndex= false;\n noFollow= false;\n noCache= false;\n baseHref= null;\n }",
"private void clearUserId() {\n \n userId_ = 0L;\n }",
"public void clearLinks(){\r\n varContextObject=null; \r\n varContextFields=null; \r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tif(req.getSession().getAttribute(\"Users\")!=null){\r\n\t\t\treq.getSession().removeAttribute(\"Users\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tresp.sendRedirect(PathUtil.getBasePath(req,\"index.jsp\"));\r\n\t\r\n\t}",
"private void clearUserId() {\n\n userId_ = 0L;\n }",
"@Override\n\tpublic ServerServices upstreamGlobalVarsInit() throws Exception {\n\t\treturn null;\n\t}",
"@Before\n public void SetUp()\n {\n Mockito.reset(userServiceMock);\n Mockito.clearInvocations(userServiceMock);\n mockMvc = MockMvcBuilders.webAppContextSetup(webConfiguration).build();\n }",
"public static final void clear() {\n DATABASE.getUsers().clear();\n DATABASE.getTokens().clear();\n DATABASE.getTokenUserMap().clear();\n DATABASE.getUsers().add(new User(\"Max\", \"password\"));\n }",
"public void resetServers() {\n EventHandlerService.INSTANCE.reset();\n UserRegistryService.INSTANCE.reset();\n }",
"public void init() throws ServletException {\n courseDAO = new CourseDAO();\n teacherDAO = new TeacherDAO();\n }",
"public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {\r\n\r\n System.out.println(\"sessionDestroyed method has been called in \"\r\n + this.getClass().getName());\r\n currentUserCount--;\r\n ctx.setAttribute(\"currentusers\", currentUserCount);\r\n }",
"@Override\r\n\tpublic void destroy() {\n\t\tSystem.out.println(\"second servlet destory\");\r\n\t}",
"public void resetUsuariosAsociados()\r\n {\r\n this.usuariosAsociados = null;\r\n }",
"public void resetUsuario()\r\n {\r\n this.usuario = null;\r\n }",
"private void clearSearchUserReq() {\n if (reqCase_ == 8) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"public void reset() {\r\n id = -1;\r\n username = \"\";\r\n password = \"\";\r\n password2 = \"\";\r\n firstName = \"\";\r\n lastName = \"\";\r\n phoneNumber = \"\";\r\n email = \"\";\r\n address = \"\";\r\n socialSecurityNumber = \"\";\r\n creditCard = \"\";\r\n }",
"public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }",
"private void clearSeenAToServer() {\n if (reqCase_ == 15) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"public void init() throws ServletException {\n studentDAO = new StudentDAO();\n instituteDAO = new InstituteDAO();\n majorDAO = new MajorDAO();\n classDAO = new ClassDAO();\n }",
"public RhinoServlet() {\r\n if (!ContextFactory.hasExplicitGlobal())\r\n ContextFactory.initGlobal(new DynamicFactory());\r\n globalScope = new GlobalScope(this);\r\n }",
"public void testDestroyAccuracy() throws Exception {\r\n // Initial the vairables.\r\n servlet.init(config);\r\n assertEquals(\"init fails.\", \"UserId\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertEquals(\"destroy fails\", 5, handlers.size());\r\n\r\n // destroy the variables.\r\n servlet.destroy();\r\n\r\n assertNull(\"destroy fails.\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers1 = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertTrue(\"init fails.\", handlers1.isEmpty());\r\n }",
"public void destroy() {\n\t\texcludeItem = null;\r\n\t\tloginPage=null;\r\n\t\tloaginAction=null;\r\n\t\tauthority = null;\r\n\t}",
"@Override\n public void contextDestroyed(ServletContextEvent sce) {\n \n }",
"@Override\n public void loggedOut() {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }",
"@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\tConnectionDB.destroy();\n\t}",
"public void clearAll() {\n\t\tuserMap.clear();\n\t}",
"public static void resetIdCounter(){\n idCounter = 0;\n }",
"public static void resetUser() throws FileNotFoundException {\n\t\tworkers.clear();\n\t\tUserList.setUser();\n\t}",
"public void clearAllAuthInfo();",
"public void unsetEntityContext() {\n _ctx = null;\n }",
"static void logout() {\n\t\tserver.clearSharedFiles(username);\n\t\tserver.clearNotSharedFiles(username);\n\t}",
"@Override\n public void reset() {\n globalIndex = new AtomicLong(0);\n lastIssuedMap = new ConcurrentHashMap<>();\n }",
"public static void reset() {\n\t\tCAUGHT.clear();\n\t\tLOAD_CACHE.clear();\n\t}",
"public static void clearThreadLocalTransaction() {\n threadlocal.set(null);\n }",
"void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear();\n }\n }",
"@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}",
"public void reset() {\n this.metricsSent.set(0);\n this.eventsSent.set(0);\n this.serviceChecksSent.set(0);\n this.bytesSent.set(0);\n this.bytesDropped.set(0);\n this.packetsSent.set(0);\n this.packetsDropped.set(0);\n this.packetsDroppedQueue.set(0);\n this.aggregatedContexts.set(0);\n }",
"public static void resetConnectionCounts() {\n CREATED_TCP_CONNECTIONS.set(0);\n CREATED_UDP_CONNECTIONS.set(0);\n }",
"@Override\n\tpublic void setServletContext(ServletContext servletContext) {\n\tthis.servletContext = servletContext;\t\n\t\t\n\t}",
"@Override\r\n\t\tpublic void contextDestroyed(ServletContextEvent sce) {\r\n\t\t}",
"public void unregisterAll()\n {\n final Set<javax.servlet.Servlet> servlets = new HashSet<>(this.localServlets);\n for (final javax.servlet.Servlet servlet : servlets)\n {\n unregisterServlet(servlet);\n }\n }",
"private void clearUser() {\n user_ = emptyProtobufList();\n }",
"default public void contextDestroyed(ServletContextEvent sce) {}",
"@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}",
"private void clearTokens(){\n Login.gramateia_counter = false; \n }",
"protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }",
"protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n // This should come from the deployment unit\n processContextConfig(context.getConfigFile(), true);\n }",
"public void init() {\n ServletContext context = getServletContext();\n host = context.getInitParameter(\"host\");\n port = context.getInitParameter(\"port\");\n user = context.getInitParameter(\"user\");\n pass = context.getInitParameter(\"pass\");\n }",
"public void reset() {\n if (exporterContainer != null) {\n exporterContainer.close();\n }\n\n if (applicationContainer != null) {\n applicationContainer.close();\n }\n\n applicationContainer(null);\n exporterContainer(null);\n httpClient(null);\n }",
"private void logoutHandler(RoutingContext context) {\n context.clearUser();\n context.session().destroy();\n context.response().setStatusCode(204).end();\n }",
"@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }",
"@Override\n\tpublic void contextDestroyed(ServletContextEvent ctx) {\n\t}",
"private void clearFriendlistReq() {\n if (reqCase_ == 9) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"@Override\n public final void contextDestroyed(final ServletContextEvent sce) {\n if (asDaemon != null) {\n asDaemon.shutdown();\n }\n\n // Unregister MySQL driver\n APIServerDaemonDB.unregisterDriver();\n\n // Notify termination\n System.out.println(\"--- APIServerDaemon Stopped ---\");\n }",
"public HiveRemoveUserFromInitiative(Context context){\n this.context = context;\n }",
"@Override\n public void contextDestroyed(ServletContextEvent sce) {\n\n }",
"private void clearUserId() {\n \n userId_ = getDefaultInstance().getUserId();\n }",
"public static void clearAllSavedUserData() {\n cacheUser = null;\n cacheAccessToken = null;\n getSharedPreferences().edit().clear().commit();\n }",
"@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}",
"public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}",
"public void setAppServletContext(ServletContext servletContext)\n {\n if (servletContext != null)\n {\n this.servletContext = servletContext;\n }\n }",
"public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }",
"public void setUserProfileWithoutSession1(BaseModel model, HttpServletRequest req) {\r\n\t\tlogger.info(\"setUserProfileWithoutSession1 is calling:\");\r\n\t\tmodel.setUserId(1l);\r\n\t\tmodel.setUserIdUpdate(1l);\r\n\t\t// model.setDateUpdate(dateUpdate);\r\n\t}"
]
| [
"0.6079954",
"0.60456514",
"0.59755516",
"0.59410256",
"0.5931124",
"0.5870799",
"0.5845967",
"0.58442885",
"0.58365494",
"0.5802413",
"0.5785437",
"0.57393634",
"0.5733481",
"0.57327116",
"0.5722722",
"0.5704846",
"0.5691719",
"0.564957",
"0.564957",
"0.5638778",
"0.56314725",
"0.5578669",
"0.55754346",
"0.55699027",
"0.55662805",
"0.5530582",
"0.55266905",
"0.55065465",
"0.55011505",
"0.549941",
"0.54952365",
"0.54887867",
"0.54736733",
"0.54692936",
"0.54630584",
"0.5461643",
"0.5459311",
"0.54531515",
"0.5450996",
"0.5449362",
"0.54366076",
"0.54290503",
"0.5421267",
"0.5418395",
"0.5411785",
"0.5394318",
"0.53794956",
"0.5356112",
"0.53550774",
"0.5353437",
"0.535219",
"0.5351396",
"0.5347015",
"0.53445417",
"0.53178895",
"0.5311468",
"0.530865",
"0.5305973",
"0.52961576",
"0.5292676",
"0.52897847",
"0.5272776",
"0.52651614",
"0.5264213",
"0.5242344",
"0.5240626",
"0.52367616",
"0.5236301",
"0.52324605",
"0.52310294",
"0.5226223",
"0.5226218",
"0.5221137",
"0.52196884",
"0.5218816",
"0.5217781",
"0.5217661",
"0.5211509",
"0.5208744",
"0.5207503",
"0.52067477",
"0.52066445",
"0.5205662",
"0.5205054",
"0.5202835",
"0.5199523",
"0.51943886",
"0.5194306",
"0.5193797",
"0.5192013",
"0.51910734",
"0.5188623",
"0.51828575",
"0.5179392",
"0.5172988",
"0.5171002",
"0.51692146",
"0.5167844",
"0.51658994",
"0.5161084"
]
| 0.67434275 | 0 |
Write the merged canvas | @Override
public void close(TaskAttemptContext context) throws IOException,
InterruptedException {
mergedCanvas.write(outFile);
outFile.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void save() {\n graphicsEnvironmentImpl.save(canvas);\n }",
"public void save(){\n try {\n FileOutputStream outputStream = getContext().openFileOutput(\"com_petros_cmsc434doodler_imageFile\", Context.MODE_PRIVATE);\n for(int i = 0; i<pathStack.size(); i++){\n outputStream.write((int)paintStack.get(i).getStrokeWidth()); //One byte is enough, max if 50\n outputStream.write(paintStack.get(i).getAlpha());\n //Red, Green, Blue\n outputStream.write((paintStack.get(i).getColor() & 0xFF0000) >> (4*4));\n outputStream.write((paintStack.get(i).getColor() & 0xFF00) >> (2*4));\n outputStream.write(paintStack.get(i).getColor() & 0xFF);\n\n outputStream.write(NEXT_LINE);\n for(int j = 0; j < pathPointsStack.get(i).size(); j+=2){\n //First point - have to save points byte at a time.\n outputStream.write(pathPointsStack.get(i).get(j) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j));\n //Second point\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j+1));\n if(j+2 == pathPointsStack.get(i).size()){\n outputStream.write(NEXT_PATH);\n }\n else{\n outputStream.write(NEXT_LINE);\n }\n }\n }\n outputStream.write(END_OF_PATHS);\n outputStream.close();\n } catch (Exception e) {\n Toast.makeText(getContext(), \"Error saving the file\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void drawCanvas() {\n \n // Change the background color to match the state of the plotter\n if( plotter != null ) {\n int state = plotter.getState();\n switch(state) {\n case 0:\n background(33, 134, 248, 100);\n break;\n case 1:\n background(254, 26, 26, 100);\n break;\n case 2:\n background(28, 247, 12, 100);\n break;\n default:\n background(100);\n }\n } else {\n background(100);\n }\n\n // Draw the canvas rectangle\n translate(SCREEN_PADDING, SCREEN_PADDING);\n scale(screenScale * plotterScale);\n fill(255); \n rect(0, 0, MAX_PLOTTER_X, MAX_PLOTTER_Y);\n \n // Draw the grid\n if(DRAW_GRID) {\n stroke(210);\n int cols = MAX_PLOTTER_X / 100;\n int rows = MAX_PLOTTER_Y / 100;\n \n for(int i=0; i<cols; i++)\n line(i*100, 0, i*100, MAX_PLOTTER_Y);\n \n for(int i=0; i<rows; i++)\n line(0, i*100, MAX_PLOTTER_X, i*100);\n }\n \n // Draw the homing crosshairs\n strokeWeight(1);\n stroke(150);\n line(MAX_PLOTTER_X/2, 0, MAX_PLOTTER_X/2, MAX_PLOTTER_Y);\n line(0, MAX_PLOTTER_Y/2, MAX_PLOTTER_X, MAX_PLOTTER_Y/2);\n\n translate(dx, dy); \n \n // Draw the bounding box of the current shape\n if(DRAW_BOUNDING_BOX) {\n // Bounding box\n RPoint bounds[] = shape.getBoundsPoints();\n strokeWeight(5);\n stroke(255,0,0);\n line( bounds[0].x, bounds[0].y, bounds[1].x, bounds[1].y );\n line( bounds[1].x, bounds[1].y, bounds[2].x, bounds[2].y );\n line( bounds[2].x, bounds[2].y, bounds[3].x, bounds[3].y );\n line( bounds[3].x, bounds[3].y, bounds[0].x, bounds[0].y );\n \n // Center cross hairs\n RPoint center = shape.getCenter();\n line( center.x, bounds[0].y, center.x, bounds[0].y - 200 );\n line( center.x, bounds[3].y, center.x, bounds[3].y + 200 );\n line( bounds[0].x, center.y, bounds[0].x - 200, center.y );\n line( bounds[1].x, center.y, bounds[1].x + 200, center.y );\n }\n \n // Draw the SVG content\n strokeWeight(STROKE_WEIGHT);\n stroke(0);\n drawShape(shape);\n }",
"void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}",
"@Override\n public void draw(IPainter painter) {\n\n // Turn on stenciling\n painter.glEnable_Stencil();\n\n // Set stencil function to always pass\n painter.glStencilFunc(StencilFunc.GL_ALWAYS, 1, 1);\n\n // Set stencil op to set 1 if depth passes, 0 if it fails\n painter.glStencilOp(StencilOp.GL_KEEP, StencilOp.GL_ZERO, StencilOp.GL_REPLACE);\n\n // Draw the base polygons that should be covered by outlines\n plane.draw(painter);\n\n // Set stencil function to pass when stencil is 1\n painter.glStencilFunc(StencilFunc.GL_EQUAL, 1, 1);\n\n // Disable writes to stencil buffer\n painter.glStencilMask_False();\n\n // Turn off depth buffering\n painter.glDisable_DepthTest();\n\n // Render the overlying drawables\n for (Drawable d : outlines) {\n d.draw(painter);\n }\n\n // Reset states\n if (!painter.getQuality().isAlphaActivated()) {\n if (painter.getQuality().isDepthActivated()) {\n painter.glEnable_DepthTest();\n }\n } else if (!painter.getQuality().isDisableDepthBufferWhenAlpha()) {\n painter.glEnable_DepthTest();\n }\n\n painter.glDisable_Stencil();\n\n // could also try\n // https://www.khronos.org/opengl/wiki/Drawing_Coplanar_Primitives_Widthout_Polygon_Offset\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n //构造两个矩形\n Rect rect1 = new Rect(100,100,400,200);\n Rect rect2 = new Rect(200,0,300,300);\n\n //构造一个画笔,画出矩形轮廓\n Paint paint = new Paint();\n paint.setColor(Color.RED);\n paint.setStyle(Style.STROKE);\n paint.setStrokeWidth(2);\n\n canvas.drawRect(rect1, paint);\n canvas.drawRect(rect2, paint);\n\n\n\n //构造两个Region\n Region region = new Region(rect1);\n Region region2= new Region(rect2);\n\n //取两个区域的交集\n region.op(region2, Op.REVERSE_DIFFERENCE);\n\n //再构造一个画笔,填充Region操作结果\n Paint paint_fill = new Paint();\n paint_fill.setColor(Color.GREEN);\n paint_fill.setStyle(Style.FILL);\n drawRegion(canvas, region, paint_fill);\n\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n canvas.drawBitmap(mBitmap, mTransformation, mBitmapPaint);\n// for (Path p : paths) {\n// canvas.drawPath(p, mPaint);\n// }\n for (PathColored p : pathSaved) {\n canvas.drawPath(p.getPath(), p.getPaint());\n }\n }",
"@Override\n\t\tpublic void draw(Canvas canvas) {\n\t\t\tcombineButton.draw(canvas);\n\t\t\tclose.draw(canvas);\n\t\t\t//canvas.drawColor(Color.WHITE);\n\t\t\t//scroll.draw(canvas);\n\t\t\t//canvas.drawBitmap(panel, new Rect(0,0,panel.getWidth(), panel.getHeight()), new RectF(20,90,70,140), null);\n\t\t\t/*if(show)\n\t\t\t\tbuy.draw(canvas);\n\t\t\telse{\n\t\t\t\ttext.setText(sbInfo.toString());\n\t\t\t}\n\t\t\ttext.draw(canvas);\n\t\t\tInteger it = player.getMoney();\n\t\t\ttextMoney.setText(\"Money : \" + it.toString());\n\t\t\ttextMoney.draw(canvas);*/\n\t\t}",
"public void renderImage()\n {\n for (int i = 0; i < _imageWriter.getNx(); i++)\n {\n for (int j = 0; j < _imageWriter.getNy(); j++)\n {\n Ray ray;\n ray = new Ray(_scene.getCamera().constructRayThroughPixel(_imageWriter.getNx(), _imageWriter.getNy(),j,i,\n _scene.getScreenDistance(), _imageWriter.getWidth(),_imageWriter.getHeight()));\n\n if(i==255 && j==255)\n System.out.print(\"111\");\n Map<Geometry, List<Point3D>> intersectionPoints = new HashMap<>(getSceneRayIntersections(ray));\n\n if(intersectionPoints.isEmpty())\n _imageWriter.writePixel(j, i, _scene.getBackground());\n else\n {\n Map<Geometry, Point3D> closestPoint = getClosestPoint(intersectionPoints);\n Map.Entry<Geometry,Point3D> entry;\n Iterator<Entry<Geometry, Point3D>> it = closestPoint.entrySet().iterator();\n entry = it.next();\n _imageWriter.writePixel(j, i, calcColor(entry.getKey(), entry.getValue(), ray));\n }\n\n }\n }\n //printGrid(1);\n\n }",
"@Override\n \tprotected void produceVisibleOutput(QContent qc,boolean bInit,boolean bPlain)\n \t\tthrows OmException\n \t{\n \t\tif(bPlain)\n \t\t{\n \t\t\t// Put text equivalent\n \t\t\tElement eDiv=qc.createElement(\"div\"); // Can't use span because they aren't allowed to contain things\n \t\t\teDiv.setAttribute(\"style\",\"display:inline\");\n \t\t\taddLangAttributes(eDiv);\n \t\t\tqc.addInlineXHTML(eDiv);\n \t\t\tXML.createText(eDiv,getString(\"alt\"));\n \t\t\tqc.addTextEquivalent(getString(\"alt\"));\n \n \t\t\t// Markers are not supported in plain mode\n \t\t\treturn;\n \t\t}\n \n \t\t// If image has changed, send new version\n \t\tif(bChanged)\n \t\t{\n \t\t\tbyte[] imageData;\n \t\t\tString mimeType;\n \t\t\tif (getString(PROPERTY_TYPE).equals(\"png\")) {\n \t\t\t\timageData = QContent.convertPNG(bi);\n \t\t\t\tmimeType = \"image/png\";\n \t\t\t} else if (getString(PROPERTY_TYPE).equals(\"jpg\")) {\n \t\t\t\timageData = QContent.convertJPG(bi);\n \t\t\t\tmimeType = \"image/jpeg\";\n \t\t\t} else {\n \t\t\t\tthrow new OmUnexpectedException(\"Unknown canvas type. Only png and jpg are valid.\");\n \t\t\t}\n \t\t\tMessageDigest md;\n \t\t\ttry {\n \t\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n \t\t\t} catch (NoSuchAlgorithmException e) {\n \t\t\t\tthrow new OmUnexpectedException(e);\n \t\t\t}\n \t\t\tfilename = \"canvas-\" + getID() + \"-\" +\n \t\t\t\t\tStrings.byteArrayToHexString(md.digest(imageData)) + \".\" + getString(PROPERTY_TYPE);\n \t\t\tqc.addResource(filename, mimeType, imageData);\n \t\t}\n \n \t\tElement eEnsureSpaces=qc.createElement(\"div\");\n \t\teEnsureSpaces.setAttribute(\"class\",\"canvas\");\n \t\taddLangAttributes(eEnsureSpaces);\n \t\tqc.addInlineXHTML(eEnsureSpaces);\n \t\tXML.createText(eEnsureSpaces,\" \");\n \n \t\tString sImageID=QDocument.ID_PREFIX+getID()+\"_img\";\n \t\tElement eImg=XML.createChild(eEnsureSpaces,\"img\");\n \t\teImg.setAttribute(\"id\",sImageID);\n \t\teImg.setAttribute(\"onmousedown\",\"return false;\"); // Prevent Firefox drag/drop\n \t\teImg.setAttribute(\"src\",\"%%RESOURCES%%/\"+filename);\n \t\teImg.setAttribute(\"alt\",getString(\"alt\"));\n \n \t\t// Get zoom, marker size and hotspot position.\n \t\tdouble dZoom=getQuestion().getZoom();\n \t\tint iMarkerSize;\n \t\tif (dZoom>=2.0)\n \t\t{\n \t\t\tiMarkerSize=31;\n \t\t}\n \t\telse if (dZoom>=1.5)\n \t\t{\n \t\t\tiMarkerSize=23;\n \t\t}\n \t\telse\n \t\t{\n \t\t\tiMarkerSize=15;\n \t\t}\n \n \t\tint[] hotspotPositions=parseHotspotProperty(getString(PROPERTY_MARKERHOTSPOT),iMarkerSize);\n \n \t\tString sMarkerPrefix=getString(PROPERTY_MARKERIMAGE);\n \t\tif(bInit && !lMarkers.isEmpty())\n \t\t{\n \t\t\tif (sMarkerPrefix==null)\n \t\t\t{\n \t\t\t\tsetString(PROPERTY_MARKERIMAGE, \"canvasm\");\n \t\t\t\tsMarkerPrefix=\"canvasm\"+iMarkerSize;\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\".gif\",\"image/gif\",\n \t\t\t\t\t\tIO.loadResource(CanvasComponent.class,sMarkerPrefix+\".gif\"));\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\"d.gif\",\"image/gif\",\n \t\t\t\t\t\tIO.loadResource(CanvasComponent.class,sMarkerPrefix+\"d.gif\"));\n \t\t\t\t}\n \t\t\t\tcatch(IOException e)\n \t\t\t\t{\n \t\t\t\t\tthrow new OmUnexpectedException(e);\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tsMarkerPrefix+=iMarkerSize;\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\".gif\",\"image/gif\",\n \t\t\t\t\t\t\tgetQuestion().loadResource(sMarkerPrefix+\".gif\"));\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\"d.gif\",\"image/gif\",\n \t\t\t\t\t\t\tgetQuestion().loadResource(sMarkerPrefix+\"d.gif\"));\n \t\t\t\t}\n \t\t\t\tcatch(IOException e)\n \t\t\t\t{\n \t\t\t\t\tthrow new OmDeveloperException(\"Marker image not found: \"+sMarkerPrefix, e);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\telse\n \t\t{\n \t\t\tsMarkerPrefix+=iMarkerSize;\n \t\t}\n \t\tif(!lMarkers.isEmpty())\n \t\t{\n \t\t\tElement eScript=XML.createChild(eEnsureSpaces,\"script\");\n \t\t\teScript.setAttribute(\"type\",\"text/javascript\");\n \t\t\tXML.createText(eScript,\n \t\t\t\t\"addOnLoad(function() { canvasInit('\"+getID()+\"','\"+QDocument.ID_PREFIX+\"',\"+\n \t\t\t\tisEnabled()+\",\"+hotspotPositions[0]+\",\"+hotspotPositions[1]+\",\"+\n \t\t\t\t((int)(dZoom * 4.0)) + \",'\"+\n \t\t\t\t(getQuestion().isFixedColour() ? getQuestion().getFixedColourFG() : \"black\")+\n \t\t\t\t\"','\"+\n \t\t\t\t(getQuestion().isFixedColour() ? getQuestion().getFixedColourBG() :\n \t\t\t\t\tconvertHash(getBackground()))+\n \t\t\t\t\"',\" + (int)(dZoom * 10.0)+\n \t\t\t\t\"); });\");\n \t\t\tElement eDynamic=XML.createChild(eEnsureSpaces,\"div\");\n \t\t\teDynamic.setAttribute(\"id\",QDocument.ID_PREFIX+getID()+\"_dynamic\");\n \t\t}\n \n\t\tint iIndex=0;\n \t\tfor(Marker m : lMarkers)\n \t\t{\n \t\t\tElement eMarker=XML.createChild(eEnsureSpaces,\"img\");\n\t\t\teMarker.setAttribute(\"id\",QDocument.ID_PREFIX+getID()+\"_marker\"+iIndex);\n \t\t\teMarker.setAttribute(\"src\",\"%%RESOURCES%%/\"+sMarkerPrefix+\n \t\t\t\t(isEnabled() ? \"\" : \"d\") + \".gif\");\n \t\t\teMarker.setAttribute(\"class\",\"canvasmarker\");\n \t\t\tif(isEnabled())\teMarker.setAttribute(\"tabindex\",\"0\");\n \t\t\tElement eScript=XML.createChild(eEnsureSpaces,\"script\");\n \t\t\teScript.setAttribute(\"type\",\"text/javascript\");\n \t\t\tWorld w=m.sWorld==null ? null : getWorld(m.sWorld);\n \t\t\tXML.createText(eScript,\n \t\t\t\t\"addOnLoad(function() { canvasMarkerInit('\"+getID()+\"','\"+QDocument.ID_PREFIX+\"','\"+\n \t\t\t\tm.sLabelJS.replaceAll(\"'\",\"\\\\\\\\'\")+\"',\"+\n \t\t\t\tgetWorldFactors(w,dZoom)+\"); });\");\n \t\t\tElement eInputX=XML.createChild(eEnsureSpaces,\"input\");\n \t\t\teInputX.setAttribute(\"type\",\"hidden\");\n \t\t\teInputX.setAttribute(\"value\",\"\"+(int)(m.iX*dZoom));\n\t\t\teInputX.setAttribute(\"name\",QDocument.ID_PREFIX+\"canvasmarker_\"+getID()+\"_\"+iIndex+\"x\");\n \t\t\teInputX.setAttribute(\"id\",eInputX.getAttribute(\"name\"));\n \t\t\tElement eInputY=XML.createChild(eEnsureSpaces,\"input\");\n \t\t\teInputY.setAttribute(\"type\",\"hidden\");\n \t\t\teInputY.setAttribute(\"value\",\"\"+(int)(m.iY*dZoom));\n\t\t\teInputY.setAttribute(\"name\",QDocument.ID_PREFIX+\"canvasmarker_\"+getID()+\"_\"+iIndex+\"y\");\n \t\t\teInputY.setAttribute(\"id\",eInputY.getAttribute(\"name\"));\n \n\t\t\tif(isEnabled()) qc.informFocusable(QDocument.ID_PREFIX+getID()+\"_marker\"+iIndex,bPlain);\n \t\t}\n \t\tfor(MarkerLine ml : lLines)\n \t\t{\n \t\t\tWorld w=ml.sWorld==null ? null : getWorld(ml.sWorld);\n \n \t\t\tElement eScript=XML.createChild(eEnsureSpaces,\"script\");\n \t\t\teScript.setAttribute(\"type\",\"text/javascript\");\n \t\t\tXML.createText(eScript,\n \t\t\t\t\"addOnLoad(function() { canvasLineInit('\"+getID()+\"','\"+QDocument.ID_PREFIX+\"',\"+\n \t\t\t\tml.iFrom+\",\"+ml.iTo+\",'\"+ml.sLabelJS.replaceAll(\"'\",\"\\\\\\\\'\")+\"',\" +\n \t\t\t\tgetWorldFactors(w,dZoom)+\n \t\t\t\t\"); });\");\n \t\t}\n \n \t\tXML.createText(eEnsureSpaces,\" \");\n \t\tqc.addTextEquivalent(getString(\"alt\"));\n \t}",
"void writeGraphics() throws Exception;",
"private void endDrawing() {\n\t\tp_view.getHolder().unlockCanvasAndPost(p_canvas);\n\t}",
"public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}",
"private void saveAllRectsToOutputFile(File file) {\n\t\ttry {\n\t\t\tBufferedWriter outBuffer =\n\t\t\t\tnew BufferedWriter(new FileWriter(file));\t\n\n\t\t\toutBuffer.write(\"xPixels,yPixels\");\n\t\t\toutBuffer.newLine();\n\t\t\toutBuffer.write(currImageOrigDim.width+\",\"+currImageOrigDim.height);\n\t\t\toutBuffer.newLine();\n\t\t\toutBuffer.write(\"x,y,w,h,theta,category,text\");\n\t\t\toutBuffer.newLine();\n\t\t\tfor(RotatedTextBox box : drawnRect) {\n\t\t\t\toutBuffer.write(box.getAsOutputString());\n\t\t\t\toutBuffer.newLine();\n\t\t\t}\n\t\t\toutBuffer.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public JVDraw() {\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetLocation(250, 250);\r\n\t\tsetSize(500, 500);\r\n\t\tsetTitle(\"JVDraw\");\r\n\r\n\t\tsetLayout(new BorderLayout());\r\n\r\n\t\tJPanel toolbar = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n\r\n\t\tJColorArea jca = new JColorArea(Color.BLACK);\r\n\t\tJColorArea jca2 = new JColorArea(Color.WHITE);\r\n\r\n\t\ttoolbar.add(jca);\r\n\t\ttoolbar.add(jca2);\r\n\t\tShapeButtons sbg = new ShapeButtons(Shape.LINE);\r\n\t\ttoolbar.add(sbg);\r\n\t\tadd(toolbar, BorderLayout.NORTH);\r\n\r\n\t\tdrawingModel = new DrawingModelImpl();\r\n\t\tdrawingCanvas = new JDrawingCanvas(drawingModel);\r\n\r\n\t\tadd(drawingCanvas, BorderLayout.CENTER);\r\n\r\n\t\tdrawingModel.addDrawingModelListener(drawingCanvas);\r\n\t\tmouseCreator = new MouseCreator(drawingModel, jca, jca2, sbg);\r\n\t\tdrawingCanvas.addMouseListener(mouseCreator);\r\n\t\tdrawingCanvas.addMouseMotionListener(mouseCreator);\r\n\r\n\t\tlistModel = new DrawingObjectListModel(drawingModel);\r\n\t\tdrawingModel.addDrawingModelListener(listModel);\r\n\r\n\t\tadd(new DrawingObjectList(listModel), BorderLayout.EAST);\r\n\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tsetJMenuBar(menuBar);\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tmenuBar.add(fileMenu);\r\n\t\tfileMenu.add(new OpenAction(this));\r\n\t\tfileMenu.add(new SaveAction(this));\r\n\t\tfileMenu.add(new SaveAsAction(this));\r\n\t\tfileMenu.add(new ExportAction(this));\r\n\t\tfileMenu.add(new ExitAction(this));\r\n\r\n\t\tdrawingModel.addDrawingModelListener(new DrawingModelListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsRemoved(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsChanged(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsAdded(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tadd(new StatusBar(jca, jca2), BorderLayout.SOUTH);\r\n\t}",
"@FXML\r\n void btnSave(ActionEvent event) throws IOException {\r\n \tdos.writeInt(server.ServerConstants.DRAW_SAVE);\r\n \tString fileName = \"D://image/snapshot\" + new Date().getTime() + \".png\";\r\n \tFile file = new File(fileName);\r\n \tWritableImage writableImage = new WritableImage(768, 431);\r\n canvas.snapshot(null, writableImage);\r\n RenderedImage renderedImage = SwingFXUtils.fromFXImage(writableImage, null);\r\n ImageIO.write(renderedImage, \"png\", file);\r\n \r\n OutputStream outputStream = client.getOutputStream();\r\n FileInputStream fileInputStream = new FileInputStream(file);\r\n byte[] buf = new byte[1024];\r\n int length = 0;\r\n while((length = fileInputStream.read(buf))!=-1){\r\n \toutputStream.write(buf);\r\n }\r\n fileInputStream.close();\r\n }",
"@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\tb1.paint(canvas);\n\t\tb2.paint(canvas);\n\t\tb3.paint(canvas);\n\t\tb4.paint(canvas);\n\t}",
"public void writeToImage() {\n imageWriter.writeToImage();\n }",
"void mergeOut() {\n String outputName = outputDir + flist.get(0).getName().substring(0,\n flist.get(0).getName().lastIndexOf(\".\"));\n if (outputType.equals(\"Text\")) {\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n for (int j = 1; j < images.length; j++) {\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n }\n bWriter.close();\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n bWriter.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n for (int j = 1; j < images.length; j++) {\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n try {\n document.save(outputName + \".pdf\");\n document.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }",
"public void dispatchDraw(Canvas canvas) {\n int[] iArr = new int[2];\n int[] iArr2 = new int[2];\n this.f2856b.getLocationOnScreen(iArr);\n this.f2857c.getLocationOnScreen(iArr2);\n canvas.translate((float) (iArr2[0] - iArr[0]), (float) (iArr2[1] - iArr[1]));\n canvas.clipRect(new Rect(0, 0, this.f2857c.getWidth(), this.f2857c.getHeight()));\n super.dispatchDraw(canvas);\n ArrayList<Drawable> arrayList = this.f2858d;\n int size = arrayList == null ? 0 : arrayList.size();\n for (int i2 = 0; i2 < size; i2++) {\n ((Drawable) this.f2858d.get(i2)).draw(canvas);\n }\n }",
"@Override\n\t\t\tpublic void draw(Canvas canvas) {\n\t\t\t\t\n\t\t\t\tfloat graphBrushWidth = (float)((90*width)/1080);\n\t\t\t\t\n\t\t\t\tbackgroundColor = basePad.getResources().getColor(R.color.TRANSPARENT);\n\t\t paint1.setColor(basePad.getResources().getColor(R.color.white));\n\t\t paint1.setAntiAlias(true); \n\t\t canvas.drawColor(backgroundColor);\n\t\t paint1.setStrokeWidth(graphBrushWidth);\n\n\t\t paint1.setStyle(Style.STROKE);\n//\t\t paint.setStyle(Paint.Style.FILL);\n\t\t \n\t\t paint2.setColor(basePad.getResources().getColor(R.color.total_ring2));\n\t\t paint2.setAntiAlias(true); \n\t\t paint2.setStrokeWidth(graphBrushWidth);\n\t\t paint2.setStyle(Style.STROKE);\n\t\t \n\t\t int[] graphX = new int[]{width/2, (width*5/32), (width*28/32)};\n\t\t int[] graphY = new int[]{(height*3/8), (height*11/16), (height*11/16)};\n\t\t int[] graphRadius = new int[]{(int)((width*6)/8), width/5, width/5};\n\t\t int[] graphContent = new int[]{usageAngle, daylyAngle, dayLeft};\n\t\t \n\t\t for (int count = 0; count < 3; count++){\n\t\t \tpaint1.setColor(basePad.getResources().getColor(R.color.white));\n\t\t \tpaint2.setColor(basePad.getResources().getColor(R.color.total_ring2));\n\t\t\t RectF oval = new RectF();\n\t\t\t oval.left = graphX[count] - (int)(graphRadius[count]/2);\n\t\t\t oval.top = graphY[count] - (int)(graphRadius[count]/2);\n\t\t\t oval.right = graphX[count] + (int)(graphRadius[count]/2);\n\t\t\t oval.bottom = graphY[count] + (int)(graphRadius[count]/2);\n\t\t\t if (count != 0){\n\t\t\t \tgraphBrushWidth = (float)((20*width)/1080);\n\t\t\t \tpaint1.setStrokeWidth(graphBrushWidth);\n\t\t\t \tpaint2.setStrokeWidth(graphBrushWidth);\n\t\t\t }\n\t\t\t if (graphContent[count] >= 360){\n\t\t\t \tpaint1.setColor(basePad.getResources().getColor(R.color.red));\n\t\t\t \tpaint2.setColor(basePad.getResources().getColor(R.color.red));\n\t\t\t }\n\t\t\t canvas.drawArc(oval, 270, graphContent[count] + 1, false, paint2);\n\t\t\t\t canvas.drawArc(oval, 270 + graphContent[count], 361 - graphContent[count], false, paint1);\n\t\t }\n\t\t\t\t\n//\t\t graphBrushWidth = (float)((3*width)/1080);\n//\t\t paint1.setStrokeWidth(graphBrushWidth);\n//\t\t canvas.drawLine(total_x, total_y, total_x + ((160*width)/1080), total_y, paint1);\n//\t\t canvas.drawLine(daily_x, daily_y, daily_x + ((160*width)/1080), daily_y, paint1);\n//\t\t canvas.drawLine(day_x, day_y, day_x + ((160*width)/1080), day_y, paint1);\n\t\t \n//\t\t int bannerY = (int)((175*width)/1080);\n//\t\t int bannerWidth = (int)((170*width)/1080);\n//\t\t bot = y + radius;\n\t\t \n//\t\t Paint coverPaint = new Paint();\n//\t\t coverPaint.setColor(basePad.getResources().getColor(R.color.white));\n//\t\t coverPaint.setAntiAlias(true); \n//\t\t coverPaint.setStrokeWidth((float) 5.0);\n//\t\t coverPaint.setStyle(Style.STROKE);\n//\t\t coverPaint.setStyle(Paint.Style.FILL);\n//\t\t \n//\t\t RectF coverOval = new RectF();\n//\t\t coverOval.left = x + 100;\n//\t\t coverOval.top = y + 100;\n//\t\t coverOval.right = x + 800;\n//\t\t coverOval.bottom = bot - 100;\n//\t\t canvas.drawArc(coverOval, 0, 360, true, coverPaint);\n\t\t\t}",
"public void compose() {\n\t\tg2d.setBackground(bgColor);\n\t\tg2d.clearRect(0, 0, width, height);\n\t\tboolean drawed=g2d.drawImage(gridImg, gridImgX, gridImgY, null);\n\t\tdrawed=g2d.drawImage(colorCodeImg, colorCodeImgX, colorCodeImgY, null);\n\t\tdrawed=g2d.drawImage(celestialObjectTextImg, celestialObjectTextImgX, celestialObjectTextImgY, null);\n\t\tdrawed=g2d.drawImage(observationTextImg, observationTextImgX, observationTextImgY, null);\n\t\tdrawed=g2d.drawImage(maserImg, maserImgX, maserImgY, null);\n\t}",
"public static void writeToFile(JPanel owner) {\n\n boolean proceed = true;\n JFileChooser fileChooser = new JFileChooser(new File(\".\"));\n fileChooser.setAcceptAllFileFilterUsed(false);\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Text files\", \"txt\");\n fileChooser.addChoosableFileFilter(filter);\n\n int returnValue = fileChooser.showSaveDialog(owner);\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n \n // Need to add extension; not done automatically\n File fileToSave = fileChooser.getSelectedFile();\n if (!fileToSave.getAbsolutePath().endsWith(\".txt\")) {\n fileToSave = new File(fileToSave + \".txt\");\n }\n \n // Handle overwrite scenario\n if (fileToSave.exists()) {\n proceed = false;\n int confirm = JOptionPane.showConfirmDialog(owner, \"File exists, overwrite?\", \"File exists\", JOptionPane.YES_NO_OPTION);\n if (confirm == JOptionPane.YES_OPTION) {\n proceed = true;\n }\n }\n\n try {\n // Collect information to write\n String contents = \"\";\n if (canvasListModel.getSize() != 0) {\n contents += canvasListModel.get(0) + \"\\n\"; // only one item\n }\n if (drawListModel.getSize() != 0) {\n for(int instrIdx = 0; instrIdx < drawListModel.size(); instrIdx++) {\n contents += drawListModel.get(instrIdx) + \"\\n\";\n }\n }\n\n // Write information to the file\n PrintStream ps = new PrintStream(fileToSave);\n ps.print(contents);\n ps.close();\n }\n catch (FileNotFoundException e) {\n JOptionPane.showMessageDialog(owner, \"File could not be written; check permissions\");\n }\n }\n }",
"public void draw(float delta) {\n\t\tcanvas.clear();\n\t\tcanvas.begin();\n\t\tcw = canvas.getWidth();\n\t\tch = canvas.getHeight();\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(getBackground(dayTime), Color.WHITE, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\tif(dayTime == 0 || dayTime == 1){\n\t\t\t\t\tcanvas.draw(getBackground(dayTime + 1), levelAlpha, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcanvas.end();\n\t\tif (walls.size() > 0){ \n\t\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t}\n\t\tcanvas.begin();\n\t\t//\t\tcanvas.draw(background, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t//canvas.draw(rocks, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t\n\t\t\n//\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.draw(canvas);\n\t\t}\n\t\t\n\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(overlay, referenceC, cw*i, ch*j, cw, ch);\n\t\t\t}\n\t\t}\n\n\t\tcanvas.end();\n\n\t\tif (debug) {\n\t\t\tcanvas.beginDebug();\n\t\t\tfor(Obstacle obj : objects) {\n\t\t\t\tobj.drawDebug(canvas);\n\t\t\t}\n\t\t\tcanvas.endDebug();\n\t\t}\n\n\n\n//\t\t// Final message\n//\t\tif (complete && !failed) {\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"VICTORY!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t} else if (failed) {\n//\t\t\tdisplayFont.setColor(Color.RED);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"FAILURE!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t}\n\t}",
"@Override\n\t\tprotected void dispatchDraw(Canvas canvas) {\n\t\t\ttry {\n\t\t\t\tsuper.dispatchDraw(canvas);\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public ArrayList<Bitmap> createBitmap(CanvasView src, CanvasView dst, ArrayList<Difference> difference) {\n Bitmap blank;\n Drawable view1Immutable = src.getBackground(); //get both backgrounds\n Bitmap view1Background = ((BitmapDrawable) view1Immutable).getBitmap();\n ArrayList<Bitmap> frames = new ArrayList<>();\n\n view1Background = Bitmap.createScaledBitmap(view1Background, 400, 400, false);\n double newX, newY;\n int width = view1.getWidth();\n int height = view1.getHeight();\n for (int i = 1; i <= frameCount; i++) { //for each frame\n ArrayList<Line> temp = new ArrayList();\n blank = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888);\n for (int q = 0; q < view1.lines.size(); q++) {\n Line srcLine = dst.lines.get(q);\n Difference d = difference.get(q);\n Line l = new Line(srcLine.startX - Math.round(d.X1 * i), srcLine.startY - Math.round(d.Y1 * i), srcLine.stopX - Math.round(d.X2 * i), srcLine.stopY - Math.round(d.Y2 * i));\n temp.add(l);\n }\n\n for (int x = 0; x < width; x++) { //for each x pixel\n for (int y = 0; y < height; y++) { //for each y pixel\n double totalWeight = 0;\n double xDisplacement = 0;\n double yDisplacement = 0;\n for (int l = 0; l < view1.lines.size(); l++) { //for each line\n Line dest = view2.lines.get(l);\n Line srcLine = temp.get(l);\n double ptx = dest.startX - x;\n double pty = dest.startY - y;\n double nx = dest.yLength * -1;\n double ny = dest.xLength;\n\n double d = ((nx * ptx) + (ny * pty)) / ((Math.sqrt(nx * nx + ny * ny)));\n double fp = ((dest.xLength * (ptx * -1)) + (dest.yLength * (pty * -1)));\n fp = fp / (Math.sqrt(dest.xLength * dest.xLength + dest.yLength * dest.yLength));\n fp = fp / (Math.sqrt(dest.xLength * dest.xLength + dest.yLength * dest.yLength));\n\n nx = srcLine.yLength * -1;\n ny = srcLine.xLength;\n\n newX = ((srcLine.startX) + (fp * srcLine.xLength)) - ((d * nx / (Math.sqrt(nx * nx + ny * ny))));\n newY = ((srcLine.startY) + (fp * srcLine.yLength)) - ((d * ny / (Math.sqrt(nx * nx + ny * ny))));\n\n double weight = (1 / (0.01 + Math.abs(d)));\n totalWeight += weight;\n xDisplacement += (newX - x) * weight;\n yDisplacement += (newY - y) * weight;\n }\n\n newX = x + (xDisplacement / totalWeight);\n newY = y + (yDisplacement / totalWeight);\n\n if (xDisplacement == x - newX)\n newX = x - xDisplacement;\n\n if (yDisplacement == y - newY)\n newY = y - yDisplacement;\n\n if (newX < 0)\n newX = 0;\n if (newY < 0)\n newY = 0;\n if (newY >= 400)\n newY = 399;\n if (newX >= 400)\n newX = 399;\n blank.setPixel(x, y, view1Background.getPixel((int) Math.abs(newX), (int) Math.abs(newY)));\n }\n }\n frames.add(blank);\n }\n return frames;\n }",
"@Override\r\n\tpublic void draw(final Canvas canvas) {\n\r\n\t}",
"public void flush(){\r\n\t\tColor tempcol = screengraphics.getColor();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(tempcol);\r\n\t\t\r\n\t}",
"public void draw(Canvas canvas);",
"public void draw(Canvas canvas);",
"@Override\n public void draw(Canvas canvas) {\n canvas.drawRGB(40,40,40);\n selectedLevel.draw(canvas);\n }",
"public void draw(Canvas canvas, int _x, int _y){\n Matrix m = new Matrix();\n m.preScale(1, -1);\n Bitmap mirror = Bitmap.createBitmap(crossSection, 0, 0, length, height, m, false);\n\n //Use the cross section and its mirror to mask the wood texture\n Bitmap frameImage = woodFrames[currentFrame].copy(Bitmap.Config.ARGB_8888, true);\n\n Canvas c = new Canvas(frameImage);\n Paint maskPaint = new Paint();\n maskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n c.drawBitmap(crossSection, 0, height, maskPaint);\n c.drawBitmap(mirror, 0, 0, maskPaint);\n\n //Draw the result to the canvas\n //canvas.drawBitmap(crossSection, _x, _y, null);\n //canvas.drawBitmap(mirror, _x, _y - height, null);\n canvas.drawBitmap(frameImage, x, y - height, null);\n canvas.drawBitmap(cutMarks, x - cutOffset.x, y - height - cutOffset.y, null);\n\n currentFrame ++;\n if(currentFrame == numFrames) currentFrame = 0;\n\n }",
"public void saveChangedDrawings() {\n for (Drawing drawing : _changedDrawings) {\n boolean success = DrawingFileHelper.saveDrawing(drawing,\n drawing.getFilename(),\n GuiPlugin.getCurrent()\n .getGui());\n logger.debug(\"Saving drawing: \" + drawing.getFilename()\n + \", success: \" + success);\n\n }\n }",
"@Override\n\tpublic void doDraw(Canvas canvas) {\n\t\tcanvas.save();\n\t\tcanvas.translate(0,mScreenSize[1]/2.0F - mScreenSize[1]/6.0F);\n\t\tcanvas.scale(1.0F/3.0F, 1.0F/3.0F);\n\t\tfor(int i = 0; i < Math.min(mPatternSets.size(), 3); i++) {\n\t\t\tPatternSet.Pattern pattern = mPatternSets.get(i).get(0);\n\t\t\tcanvas.save();\n\t\t\tfor(int y = 0; y < pattern.height(); y++) {\n\t\t\t\tcanvas.save();\n\t\t\t\tfor(int x = 0; x < pattern.width(); x++) {\n\t\t\t\t\tif(pattern.get(x,y) > 0) {\n\t\t\t\t\t\t//Log.d(TAG, \"Ping!\");\n\t\t\t\t\t\tmBlockPaint.setColor(mBlockColors[pattern.get(x,y)]);\n\t\t\t\t\t\tcanvas.drawRect(1, 1, mBlockSize[0]-1, mBlockSize[1]-1, mBlockPaint);\n\t\t\t\t\t}\n\t\t\t\t\tcanvas.translate(mBlockSize[0], 0);\n\t\t\t\t}\n\t\t\t\tcanvas.restore();\n\t\t\t\tcanvas.translate(0, mBlockSize[1]);\n\t\t\t}\n\t\t\tcanvas.restore();\n\t\t\tcanvas.translate(mScreenSize[0], 0);\n\t\t}\n\t\tcanvas.restore();\n\t}",
"public void onDraw(Canvas canvas) {\n int i;\n int i2;\n Canvas canvas2 = canvas;\n int i3 = ((-this.f25272S) / this.f25259F) - this.f25305t;\n int i4 = this.f25262I + i3;\n int i5 = -this.f25305t;\n while (i4 < this.f25262I + i3 + this.f25304s) {\n String str = \"\";\n if (this.f25281ae) {\n int size = i4 % this.f25301p.size();\n if (size < 0) {\n size += this.f25301p.size();\n }\n str = String.valueOf(this.f25301p.get(size));\n } else if (m27462a(i4)) {\n str = String.valueOf(this.f25301p.get(i4));\n }\n this.f25288c.setColor(this.f25308w);\n this.f25288c.setTextSize((float) this.f25310y);\n this.f25288c.setStyle(Style.FILL);\n int i6 = this.f25271R + (this.f25259F * i5) + (this.f25272S % this.f25259F);\n if (this.f25282af) {\n float abs = (((float) ((this.f25271R - Math.abs(this.f25271R - i6)) - this.f25294i.top)) * 1.0f) / ((float) (this.f25271R - this.f25294i.top));\n if (i6 > this.f25271R) {\n i2 = 1;\n } else if (i6 < this.f25271R) {\n i2 = -1;\n } else {\n i2 = 0;\n }\n float f = (-(1.0f - abs)) * 90.0f * ((float) i2);\n if (f < -90.0f) {\n f = -90.0f;\n }\n if (f > 90.0f) {\n f = 90.0f;\n }\n int i7 = (int) f;\n i = m27463b(i7);\n int i8 = this.f25268O;\n switch (this.f25258E) {\n case 1:\n i8 = this.f25294i.left;\n break;\n case 2:\n i8 = this.f25294i.right;\n break;\n }\n int i9 = this.f25269P - i;\n this.f25298m.save();\n this.f25298m.rotateX(f);\n this.f25298m.getMatrix(this.f25299n);\n this.f25298m.restore();\n float f2 = (float) (-i8);\n float f3 = (float) (-i9);\n this.f25299n.preTranslate(f2, f3);\n float f4 = (float) i8;\n float f5 = (float) i9;\n this.f25299n.postTranslate(f4, f5);\n this.f25298m.save();\n this.f25298m.translate(0.0f, 0.0f, (float) m27465c(i7));\n this.f25298m.getMatrix(this.f25300o);\n this.f25298m.restore();\n this.f25300o.preTranslate(f2, f3);\n this.f25300o.postTranslate(f4, f5);\n this.f25299n.postConcat(this.f25300o);\n } else {\n i = 0;\n }\n if (this.f25280ad) {\n int abs2 = (int) (((((float) (this.f25271R - Math.abs(this.f25271R - i6))) * 1.0f) / ((float) this.f25271R)) * 255.0f);\n if (abs2 < 0) {\n abs2 = 0;\n }\n this.f25288c.setAlpha(abs2);\n }\n if (this.f25282af) {\n i6 = this.f25271R - i;\n }\n if (this.f25309x != -1) {\n canvas.save();\n if (this.f25282af) {\n canvas2.concat(this.f25299n);\n }\n if (i6 < this.f25297l.bottom) {\n RectF rectF = new RectF(this.f25297l);\n rectF.bottom = rectF.top;\n rectF.top = 0.0f;\n canvas2.clipRect(rectF);\n } else {\n RectF rectF2 = new RectF(this.f25297l);\n rectF2.top = rectF2.bottom;\n rectF2.bottom = (float) getBottom();\n canvas2.clipRect(rectF2);\n }\n canvas2.clipRect(this.f25297l, Op.DIFFERENCE);\n float f6 = (float) i6;\n canvas2.drawText(str, (float) this.f25270Q, f6, this.f25288c);\n canvas.restore();\n this.f25288c.setColor(this.f25309x);\n this.f25288c.setTextSize((float) this.f25311z);\n canvas.save();\n if (this.f25282af) {\n canvas2.concat(this.f25299n);\n }\n canvas2.clipRect(this.f25297l);\n i6 = (int) (f6 + (((this.f25288c.descent() - this.f25288c.ascent()) / 2.0f) - ((float) (this.f25307v / 2))));\n } else {\n canvas.save();\n canvas2.clipRect(this.f25294i);\n if (this.f25282af) {\n canvas2.concat(this.f25299n);\n }\n }\n canvas2.drawText(str, (float) this.f25270Q, (float) i6, this.f25288c);\n canvas.restore();\n if (this.f25286aj) {\n canvas.save();\n canvas2.clipRect(this.f25294i);\n this.f25288c.setColor(-1166541);\n int i10 = this.f25269P + (this.f25259F * i5);\n float f7 = (float) i10;\n canvas.drawLine((float) this.f25294i.left, f7, (float) this.f25294i.right, f7, this.f25288c);\n this.f25288c.setColor(-13421586);\n this.f25288c.setStyle(Style.STROKE);\n int i11 = i10 - this.f25260G;\n canvas.drawRect((float) this.f25294i.left, (float) i11, (float) this.f25294i.right, (float) (i11 + this.f25259F), this.f25288c);\n canvas.restore();\n }\n i4++;\n i5++;\n }\n if (this.f25279ac) {\n this.f25288c.setColor(this.f25256C);\n this.f25288c.setStyle(Style.FILL);\n canvas2.drawRect(this.f25297l, this.f25288c);\n }\n if (this.f25278ab) {\n this.f25288c.setColor(this.f25255B);\n this.f25288c.setStyle(Style.FILL);\n canvas2.drawRect(this.f25295j, this.f25288c);\n canvas2.drawRect(this.f25296k, this.f25288c);\n }\n if (this.f25286aj) {\n this.f25288c.setColor(1144254003);\n this.f25288c.setStyle(Style.FILL);\n canvas.drawRect(0.0f, 0.0f, (float) getPaddingLeft(), (float) getHeight(), this.f25288c);\n canvas.drawRect(0.0f, 0.0f, (float) getWidth(), (float) getPaddingTop(), this.f25288c);\n canvas.drawRect((float) (getWidth() - getPaddingRight()), 0.0f, (float) getWidth(), (float) getHeight(), this.f25288c);\n canvas.drawRect(0.0f, (float) (getHeight() - getPaddingBottom()), (float) getWidth(), (float) getHeight(), this.f25288c);\n }\n }",
"private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }",
"public void CleanInfoCanvas(){\n Graphics g = infoCanvas.getGraphics();\n g.setColor(Color.BLACK);\n g.fillRect(infoCanvas.getWidth()/3 + 4, infoCanvas.getHeight()/10 + 10, infoCanvas.getWidth()/3-8, infoCanvas.getHeight()/10-8);\n g.fillRect(infoCanvas.getWidth()/3 + 4, 3 * infoCanvas.getHeight()/10 + 10, infoCanvas.getWidth()/3-8, infoCanvas.getHeight()/10-8);\n g.fillRect(infoCanvas.getWidth()/3 + 4, 11 * infoCanvas.getHeight()/20 + 15, infoCanvas.getWidth()/3-8, infoCanvas.getHeight()/10-8);\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n }",
"public void openPaint() {\n //System.out.println(width); // For testing\n //System.out.println(height);\n\n JFrame frame = new JFrame(\"Paint (\"+ width +\" x \" + height +\")\");\n Container container = frame.getContentPane();\n container.setLayout(new BorderLayout());\n\n container.add(canvas, BorderLayout.CENTER);\n\n // An area to contain tool icons, left of canvas\n Box box = Box.createVerticalBox();\n\n // Panel along the top of the canvas\n JPanel panel = new JPanel();\n\n pencil = new JButton(pencilIcon);\n pencil.setPreferredSize(new Dimension(80, 80));\n pencil.addActionListener(listener);\n brush = new JButton(brushIcon);\n brush.setPreferredSize(new Dimension(80, 80));\n brush.addActionListener(listener);\n eraser = new JButton(eraserIcon);\n eraser.setPreferredSize(new Dimension(80, 80));\n eraser.addActionListener(listener);\n /*rectangle = new JButton(\"Rectangle\");\n rectangle.setPreferredSize(new Dimension(80, 80));\n rectangle.addActionListener(listener);*/\n thicknessSlider = new JSlider(JSlider.HORIZONTAL, 1, 40, 1);\n thicknessSlider.setMajorTickSpacing(10);\n thicknessSlider.setPaintTicks(true);\n thicknessSlider.setPreferredSize(new Dimension(40, 40));\n thicknessSlider.addChangeListener(thick);\n thicknessStat = new JLabel(\"1\");\n clearButton = new JButton(\"Clear\");\n clearButton.addActionListener(listener);\n colorPickerBG = new JButton(\"Color Picker (BG)\");\n colorPickerBG.addActionListener(listener);\n colorPickerTools = new JButton(\"Color Picker (Tools)\");\n colorPickerTools.addActionListener(listener);\n saveButton = new JButton(\"Save\");\n saveButton.addActionListener(listener);\n loadButton = new JButton(\"Load\");\n loadButton.addActionListener(listener);\n\n box.add(Box.createVerticalStrut(5));\n box.add(pencil, BorderLayout.NORTH);\n box.add(brush, BorderLayout.NORTH);\n box.add(eraser, BorderLayout.NORTH);\n box.add(thicknessSlider, BorderLayout.NORTH);\n box.add(thicknessStat, BorderLayout.NORTH);\n\n panel.add(clearButton);\n panel.add(colorPickerBG);\n panel.add(colorPickerTools);\n panel.add(saveButton);\n panel.add(loadButton);\n\n container.add(box, BorderLayout.WEST);\n container.add(panel, BorderLayout.NORTH);\n\n frame.setVisible(true);\n frame.setSize(width+100,height+100);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"@Override\n public void draw(Canvas canvas){\n final float scaleFactorX = getWidth()/(WIDTH*1.f);\n final float scaleFactorY = getHeight()/(HEIGHT*1.f);\n if(canvas!=null){\n final int savedState = canvas.save();\n canvas.scale(scaleFactorX, scaleFactorY);\n bg.draw(canvas);\n //below was to draw collis boxes\n // canvas.drawRect(new Rect(10, 10, 200,300 - 15*jumpCounter), myPaint);\n // if(!bananas.isEmpty())\n // canvas.drawRect(bananas.get(0).getRectangle(), myPaint );\n player.draw(canvas);\n for(TallBricks c: cones){\n c.draw(canvas);\n }\n for(Banana b: bananas){\n b.draw(canvas);\n }\n drawText(canvas);\n canvas.restoreToCount(savedState);\n }\n }",
"private void drawMe(Canvas canvas) {\n\n float halfNegative = mFullBlockSize*(1 - mDividerScale)/2;\n float borderLength = getWidth() - 2*halfNegative;\n float borderMargin = halfNegative + (1 - mBorderScale)*borderLength/2;\n\n// if(mDividerScale == 1 && mBorderScale == 1) {\n// canvas.drawPath(mBorderPath, mBorderPaint);\n// canvas.drawPath(mDividersPath, mDividerPaint);\n// } else {\n\n //left border\n canvas.drawLine(0, borderMargin, 0, mHeight - borderMargin, mBorderPaint);\n\n //right border\n canvas.drawLine(mWidth, borderMargin, mWidth, mHeight - borderMargin, mBorderPaint);\n\n //top border\n canvas.drawLine(borderMargin, 0, mWidth - borderMargin, 0, mBorderPaint);\n\n //bottom border\n canvas.drawLine(borderMargin, mHeight, mWidth - borderMargin, mHeight, mBorderPaint);\n\n\n for(int i = 0; i < mFieldSize; i++) {\n for(int j = 0; j < mFieldSize; j++) {\n if(i != 0)\n canvas.drawLine(mFullBlockSize*i, mFullBlockSize*j + halfNegative, mFullBlockSize*i, mFullBlockSize*(j + 1) - halfNegative, mDividerPaint);\n if(j != 0)\n canvas.drawLine(mFullBlockSize*i + halfNegative, mFullBlockSize*j, mFullBlockSize*(i + 1) - halfNegative, mFullBlockSize*j, mDividerPaint);\n }\n }\n// }\n\n\n float radius = (mFullBlockSize - halfNegative*2)*mTileRadiusRatio;\n for(int i = 0; i < mTiles.size(); i++) {\n Tile tile = mTiles.get(i);\n\n canvas.save();\n canvas.translate(tile.x + halfNegative, tile.y + halfNegative);\n\n if(tile.scale != 1) {\n canvas.scale(tile.scale, tile.scale, realTileSize()/2, realTileSize()/2);\n }\n\n mTilePaint.setColor(mColorMap.get(tile.number));\n mTextPaint.setColor(mColorMap.get(tile.number));\n\n canvas.save();\n if(tile.borderRotation + tile.rotation != 0 && tile.borderRotation + tile.rotation != 360) {\n canvas.rotate(tile.borderRotation + tile.rotation, realTileSize()/2, realTileSize()/2);\n }\n\n// canvas.drawPath(mBaseTilePath, mTilePaint);\n canvas.drawRoundRect(0, 0, realTileSize(), realTileSize(),\n radius, radius, mTilePaint);\n\n canvas.restore();\n\n if(tile.rotation != 0 && tile.rotation != 360) {\n canvas.rotate(tile.rotation, realTileSize()/2, realTileSize()/2);\n }\n\n String text = String.valueOf(tile.number);\n\n TextConfig config = mTextConfigs[text.length() - 1];\n\n config.paint.setColor(mColorMap.get(tile.number));\n\n float textWidth = config.paint.measureText(text);\n\n\n canvas.translate(0, config.yOffset);\n//\n canvas.drawText(text, ((float) mFullBlockSize - 2*halfNegative)/2f - textWidth/2 - 1, 0, config.paint);\n\n canvas.restore();\n\n }\n\n\n // canvas.restore();\n\n\n }",
"void clearCanvasAndDraw()\n {\n \tlauncher.clearRect(0, 0, launcherCanvas.getWidth(), launcherCanvas.getHeight());\n \tdrawLauncher(angle);\n \tcanvas.clearRect(0, 0, mainCanvas.getWidth(), mainCanvas.getHeight());\n \tdrawSky();\n \tdrawGrass();\n }",
"void drawEdges2(boolean drawBlobs, boolean drawEdges)\n\t{\n\t\tcurFrame.loadPixels();\n\t\t\n\t\tnoFill();\n\t\tBlob b;\n\t\tEdgeVertex eA,eB;\n\t\tfor (int n=0 ; n<theBlobDetection.getBlobNb() ; n++)\n\t\t{\n\t\t\tb=theBlobDetection.getBlob(n);\n\t\t\tif (b!=null)\n\t\t\t{\n//\t\t\t\tp.println(b.id);\n\t\t\t\tif (drawEdges)\n\t\t\t\t{\n\t\t\t\t\tstrokeWeight(1);\n\t\t\t\t\tstroke(0,255,0);\n\t\t\t\t\tfor (int m=0;m<b.getEdgeNb();m++)\n\t\t\t\t\t{\n\t\t\t\t\t\teA = b.getEdgeVertexA(m);\n\t\t\t\t\t\teB = b.getEdgeVertexB(m);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (eA !=null && eB !=null) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat angle = -MathUtil.getAngleToTarget(eA.x, eA.y, b.x, b.y);\n\t\t\t\t\t\t\tfloat angleB = -MathUtil.getAngleToTarget(eB.x, eB.y, b.x, b.y);\n\t\t\t\t\t\t\tfloat distance = MathUtil.getDistance(b.x, b.y, eA.x, eA.y) * 1f;\n\t\t\t\t\t\t\tfloat distanceB = MathUtil.getDistance(b.x, b.y, eB.x, eB.y) * 1f;\n\n\t\t\t\t\t\t\tfloat outerX = eA.x + P.sin( MathUtil.degreesToRadians(angle) )*distance;\n\t\t\t\t\t\t\tfloat outerY = eA.y + P.cos( MathUtil.degreesToRadians(angle) )*distance;\n\t\t\t\t\t\t\tfloat outerXB = eB.x + P.sin( MathUtil.degreesToRadians(angleB) )*distanceB;\n\t\t\t\t\t\t\tfloat outerYB = eB.y + P.cos( MathUtil.degreesToRadians(angleB) )*distanceB;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint color = ImageUtil.getPixelColor( curFrame, P.round(eA.x*curFrame.width-1), P.round(eA.y*curFrame.height-1) );\n\t\t\t\t\t\t\tfill(color, 255);\n\t\t\t\t\t\t\t// float bright = brightness(color);\n\t\t\t\t\t\t\tnoStroke();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdraw4PointsTriangles(\n\t\t\t\t\t\t\t\tnew Vec3D(eA.x*width, eA.y*height, 0),\n\t\t\t\t\t\t\t\tnew Vec3D(outerX*width, outerY*height, 0),\n\t\t\t\t\t\t\t\tnew Vec3D(outerXB*width, outerYB*height, 0),\n\t\t\t\t\t\t\t\tnew Vec3D(eB.x*width, eB.y*height, 0),\n\t\t\t\t\t\t\t\tpg\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}",
"public void houseDetailing(PdfContentByte canvas, AstroBean astrobean,ColorElement mycolor, PdfWriter writer ,boolean houseDetail,boolean aspectChartWidoutHouse,boolean aspectScore) {\n\t float width1 = 220;\n float height1 = 110; //old110\n float xCoordinate1 = 80;\n float yCoordinate1 = 160; //old 160\n\t//\tlogger.info(\"aspectChartWidoutHouse>> \"+aspectChartWidoutHouse+\" houseDetail>> \"+houseDetail+\" aspectScore>> \"+aspectScore);\n\t\t try {\n\t\t\tLinkedHashMap<String,HouseDetailBean> signList = astrobean.getHouseSignDetailHashTable();\n\t\t\tLinkedHashMap<String,HouseDetailBean> starList = astrobean.getHouseStarDetailHashTable();\n\t\t\tLinkedHashMap<String,HouseDetailBean> subLordList = astrobean.getHouseSubLordHashTable();\n\t\t\tLinkedHashMap<String,HashSet<String>> aspectList = astrobean.getHouseAspectHashTable();\n\t\t\tLinkedHashMap<String, HashMap<String,HashSet<String>>> occAspList = astrobean.getHouseOccAspectHashTable();\n\t\t\tLinkedHashMap<String,ArrayList<HouseDetailBean>> occupantList = astrobean.getHouseOccupantHashTable();\n\t \t\tLinkedHashMap<String, HashMap<String,String>> cuspHouseAspectDetails= astrobean.getCuspHouseAspectDetails();\n\t\t\tLinkedHashMap<String, HashMap<String,String>> planetHouseAspectDetails= astrobean.getPlanetHouseAspectDetails();\n\t\t\t//By Bharti (version 4.4)\n\t\t\tHashMap<String, Integer> scoreMap = new HashMap<String, Integer>();\n\t\t\tif(aspectScore)\n\t\t\t\tfillAspectScoringMap(scoreMap);\n\t\t\t//ENDS(version 4.4)\n\t\t\tFont font2 = new Font();\n\t\t\tFont font1 = new Font();\n\t\t\tPdfPTable table=null;\n \tFont font=new Font();\n\t\t\tFont fontData=new Font();\n\t//\tfloat width[]=null;\n\t\t\tif(houseDetail || aspectChartWidoutHouse){\n\t\t \t\tthis.document.newPage();\n //bharti canvas.saveState();\n canvas.setLineWidth(3);\n canvas.setRGBColorFill(0xFF, 0xFF, 0xFF);\n\n canvas.rectangle(35, 842 - 750, 530, 690);\n canvas.fillStroke();\n canvas.closePath();\n //by bharti canvas.restoreState();\n\n canvas.setLineWidth(1f);\n\t\t\t//bharti\t canvas.saveState();\n\n // Font font1 = new Font();\n font1.setSize(getHeadingfont());\n\t\t\t\t\tfont1.setColor(mycolor.fillColor(this.getTableDataColor()));\n\n // Font font2 = new Font();\n font2.setSize(getTableHeadingfont());\n font2.setColor(mycolor.fillColor(getTableHeadingColor()));\n\t\t\t\t\tfont2.setSize(12);\n\n\t\tColumnText.showTextAligned(canvas, Element.ALIGN_LEFT,\n new Phrase(astrobean.getName().replaceAll(\"%20\",\" \" ).replaceAll(\"\\\"\",\"\"), font2), 35, 842 - 55, 0);\n\n ColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,new Phrase(\"Aspects on Houses\", font1), 290, 842 - 90, 0);\n // PdfPTable table=new PdfPTable(13);\n table=new PdfPTable(13);\n // Font font=new Font();\n // Font fontData=new Font();\n float width[]={30,10,10,10,10,10,10,10,10,10,10,10,10};\n //width[]={30,10,10,10,10,10,10,10,10,10,10,10,10};\n table.setWidths(width);\n\t\tfont.setSize(this.getTableHeadingfont());\n font.setColor(mycolor.fillColor(this.getTableHeadingColor()));\n fontData.setSize(this.getTableDatafont());\n fontData.setColor(mycolor.fillColor(this.getTableDataColor()));\n\t\t table.addCell(new Phrase(new Chunk(\"Planets\",font)));\n\nfor(int i=1;i<=12;i++)\n{\n\ttable.addCell(new Phrase(new Chunk(\"\"+i,font)));\n}\nHashMap<String,String> cuspMap= null;\nfor(int j=0;j<planets.length;j++)\n{\n\tif(!planets[j].equals(\"Ketu\") && !planets[j].equals(\"Rahu\")){\n\t\ttable.addCell(new Phrase(new Chunk(planets[j],font)));\n\t\tfor(int count=1;count<=12;count++)\n\t\t{\n\t\t\tcuspMap=cuspHouseAspectDetails.get(count+\"\");\n\t\t\tif(cuspMap.get(planets[j])!=null){\n\t\t\t\tif(aspectScore){\n\t\t\t\t\tif(scoreMap.get(cuspMap.get(planets[j]))!=null){\n\t\t\t\t\t\tif(scoreMap.get(cuspMap.get(planets[j]))>0)\n\t\t\t\t\t\t\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j])+\"(+\"+scoreMap.get(cuspMap.get(planets[j]))+\")\",fontData)));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j])+\"(\"+scoreMap.get(cuspMap.get(planets[j]))+\")\",fontData)));\t\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j]),fontData)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j]),fontData)));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttable.addCell(new Phrase(new Chunk(\"\",fontData)));\n\t\t\t}\n\t\t}\n\t}\n}\n//version 4.4\n\tint totalScore=0;\nif(aspectScore){\n\ttable.addCell(new Phrase(new Chunk(\"\",fontData)));\t\n\tfor(int count=1;count<=12;count++)\n \t{\n\t\tfor (Map.Entry<String, String> entry : cuspHouseAspectDetails.get(count+\"\").entrySet())\n\t\t{\n\t\t\tif(!entry.getKey().equalsIgnoreCase(\"Ketu\") && !entry.getKey().equalsIgnoreCase(\"Rahu\")) {\n\t\t\t\ttotalScore=totalScore+scoreMap.get(entry.getValue());\n\t\t\t}\n\t\t}\n\t\tif(totalScore>0)\n \t\ttable.addCell(new Phrase(new Chunk(\"+\"+totalScore,fontData)));\n \telse if(totalScore<0) \n \ttable.addCell(new Phrase(new Chunk(\"\"+totalScore,fontData)));\n\t\telse\n\t\t\ttable.addCell(new Phrase(new Chunk(\"N\",fontData)));\n\t\ttotalScore=0;\n\t}\n}\n//ENDS HERE\t\n\ttable.setTotalWidth(510);\n \ttable.writeSelectedRows(0, -1, 50, (842 - 100), writer.getDirectContent());\n\n\n\n\n\n\n\n table=new PdfPTable(10);\n float wi[]={30,10,10,10,10,10,10,10,10,10};\n table.setWidths(wi);\n font.setSize(this.getTableHeadingfont());\n font.setColor(mycolor.fillColor(this.getTableHeadingColor()));\n fontData.setSize(this.getTableDatafont());\n fontData.setColor(mycolor.fillColor(this.getTableDataColor()));\n ColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n new Phrase(\"Aspects on planets\", font1), 290, 842 - 290, 0);\n table.addCell(new Phrase(new Chunk(\"Planets\",font)));\n \n\n \t\tString proPath = Constants.PROPERTIES_PATH;\n \t\tproPath = proPath + \"/kundliHttpserverNew.properties\";\n \t\tHashtable<String, String> properties = ReadPropertyFile.readPropery(proPath);\t\t\t\n\n \t\tFont fontFooter = new Font();\n \t\tfontFooter.setSize(10);\n \t\tfontFooter.setColor(mycolor.fillColor(getTableDataColor()));\n \t\tColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n \t\t\t\tnew Phrase(properties.getOrDefault(\"astro.link\", \"Observation\"), fontFooter), 300,\n \t\t\t\t842 - 790, 0);\n \t\t\n \t\tColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n \t\t\t\tnew Phrase(properties.getOrDefault(\"astro.observation\", \"Observation\"), fontFooter), 300,\n \t\t\t\t842 - 800, 0);\n\n\n \t\tfor(int i=0;i<planets.length;i++)\n {\n \t\t\ttable.addCell(new Phrase(new Chunk(planets[i],font)));\n\t\t}\n\t\tcuspMap= null;\n\t\tfor(int j=0;j<planets.length;j++)\n\t\t{\n\n\t\t\tif(!planets[j].equals(\"Ketu\") && !planets[j].equals(\"Rahu\")){\n\t\t\t\ttable.addCell(new Phrase(new Chunk(planets[j],font)));\n\t\t\t\tfor(int count=0;count<planets.length;count++)\n\t\t\t\t{\n\t\t\t\t\tcuspMap=planetHouseAspectDetails.get(planets[count]);\n\t\t\t\t\tif(cuspMap.get(planets[j])!=null){\n\t\t\t\t\t\tif(aspectScore){\n\t\t\t\t\t\t\tif(scoreMap.get(cuspMap.get(planets[j]))!=null){\n \t \t\t\tif(scoreMap.get(cuspMap.get(planets[j]))>0)\n \t\t\t\t\t\t\t\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j])+\"(+\"+scoreMap.get(cuspMap.get(planets[j]))+\")\",fontData)));\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j])+\"(\"+scoreMap.get(cuspMap.get(planets[j]))+\")\",fontData)));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j]),fontData)));\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\ttable.addCell(new Phrase(new Chunk(cuspMap.get(planets[j]),fontData)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n \t\t\t\t\ttable.addCell(new Phrase(new Chunk(\"\",fontData)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//version 4.4 \nif(aspectScore){\n\ttotalScore=0;\n table.addCell(new Phrase(new Chunk(\"\",fontData)));\n for(int count=0;count<planets.length;count++)\n {\n for (Map.Entry<String, String> entry : planetHouseAspectDetails.get(planets[count]).entrySet())\n {\n\t\t\tif(!entry.getKey().equalsIgnoreCase(\"Ketu\") && !entry.getKey().equalsIgnoreCase(\"Rahu\")) {\n \ttotalScore=totalScore+scoreMap.get(entry.getValue());\n\t\t\t}\n }\n\t\tif(totalScore>0)\n \ttable.addCell(new Phrase(new Chunk(\"+\"+totalScore,fontData)));\n \telse if(totalScore<0)\n \ttable.addCell(new Phrase(new Chunk(\"\"+totalScore,fontData)));\n\t\telse\n table.addCell(new Phrase(new Chunk(\"N\",fontData)));\n totalScore=0;\n }\n}\n//ENDS\n table.setTotalWidth(510);\n table.writeSelectedRows(0, -1, 50, (842 - 300), writer.getDirectContent());\n\n\n//by bharti canvas.restoreState();\n}//end of aspect/house checking\n\n\t\tif(houseDetail){\n\t\tfor(int i=1;i<=12;i++)\n\t\t{\n \t\tthis.document.newPage();\n\t\t\t //by bharti\t canvas.saveState();\n canvas.setLineWidth(3);\n canvas.setRGBColorFill(0xFF, 0xFF, 0xFF);\n\n canvas.rectangle(35, 842 - 750, 530, 690);\n canvas.fillStroke();\n canvas.closePath();\n //by bharti canvas.restoreState();\n\n canvas.setLineWidth(1f);\n \n \t\t\tString proPath = Constants.PROPERTIES_PATH;\n \t\t\tproPath = proPath + \"/kundliHttpserverNew.properties\";\n \t\t\tHashtable<String, String> properties = ReadPropertyFile.readPropery(proPath);\t\t\t\n \t\t\t\n \t\t\tFont fontFooter = new Font();\n \t\t\tfontFooter.setSize(10);\n \t\t\tfontFooter.setColor(mycolor.fillColor(getTableDataColor()));\n \t\t\tColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n \t\t\t\t\tnew Phrase(properties.getOrDefault(\"astro.link\", \"Observation\"), fontFooter), 300,\n \t\t\t\t\t842 - 790, 0);\n \t\t\t\n \t\t\tColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n \t\t\t\t\tnew Phrase(properties.getOrDefault(\"astro.observation\", \"Observation\"), fontFooter), 300,\n \t\t\t\t\t842 - 800, 0);\n\n //bharti canvas.saveState();\n\n // font1 = new Font();\n // font1.setSize(getHeadingfont());\n\n // font2 = new Font();\n // font2.setSize(getTableHeadingfont());\n // font2.setColor(mycolor.fillColor(getTableHeadingColor()));\n ColumnText.showTextAligned(canvas, Element.ALIGN_LEFT,\n new Phrase(astrobean.getName().replaceAll(\"%20\",\" \" ).replaceAll(\"\\\"\",\"\"), font2), 35, 842 - 55, 0);\n\n\t\tColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n new Phrase((i)+\" House Detailing\", font1), 290, 842 - 90, 0);\n\t\ttable=new PdfPTable(5);\n\t\t font=new Font();\n fontData=new Font();\n float wid[]={20,20,20,20,20};\n table.setWidths(wid);\n font.setSize(this.getTableHeadingfont());\n font.setColor(mycolor.fillColor(this.getTableHeadingColor()));\n fontData.setSize(this.getTableDatafont());\n fontData.setColor(mycolor.fillColor(this.getTableDataColor()));\n\n\n // table.getDefaultCell().setBackgroundColor(mycolor.fillColor(getTableHeadingBgcolor()));\n table.addCell(new Phrase(new Chunk(\"Sign\",font)));\n\n table.addCell(new Phrase(new Chunk(\"Sign Lord\",font)));\n table.addCell(new Phrase(new Chunk(\"NL\",font)));\n table.addCell(new Phrase(new Chunk(\"SL\",font)));\n table.addCell(new Phrase(new Chunk(\"NL(SL)\",font)));\n\n\t\t\ttable.addCell(new Phrase(new Chunk(signList.get(i+\"\").getSignName(),fontData)));\n\n table.addCell(new Phrase(new Chunk(signList.get(i+\"\").getSS(),fontData)));\n table.addCell(new Phrase(new Chunk(signList.get(i+\"\").getNL(),fontData)));\n table.addCell(new Phrase(new Chunk(signList.get(i+\"\").getSL(),fontData)));\n table.addCell(new Phrase(new Chunk(signList.get(i+\"\").getNLSL(),fontData)));\n\n\t\t\ttable.setTotalWidth(510);\n table.writeSelectedRows(0, -1, 50, (842 - 100), writer.getDirectContent());\n\n\t\t\t\t\t\n\t\t\t table=new PdfPTable(5);\n\t\ttable.setWidths(wid);\n\n// table.getDefaultCell().setBackgroundColor(mycolor.fillColor(getTableHeadingBgcolor()));\n table.addCell(new Phrase(new Chunk(\"Star\",font)));\n\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\n table.addCell(new Phrase(new Chunk(starList.get(i+\"\").getSS(),fontData)));\n table.addCell(new Phrase(new Chunk(starList.get(i+\"\").getNL(),fontData)));\n table.addCell(new Phrase(new Chunk(starList.get(i+\"\").getSL(),fontData)));\n table.addCell(new Phrase(new Chunk(starList.get(i+\"\").getNLSL(),fontData)));\n\n table.setTotalWidth(510);\n table.writeSelectedRows(0, -1, 50, (842 - 130), writer.getDirectContent());\n\n\n table=new PdfPTable(5);\n table.setWidths(wid);\n\n// table.getDefaultCell().setBackgroundColor(mycolor.fillColor(getTableHeadingBgcolor()));\n table.addCell(new Phrase(new Chunk(\"SubLord\",font)));\n\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\n table.addCell(new Phrase(new Chunk(subLordList.get(i+\"\").getSS(),fontData)));\n table.addCell(new Phrase(new Chunk(subLordList.get(i+\"\").getNL(),fontData)));\n table.addCell(new Phrase(new Chunk(subLordList.get(i+\"\").getSL(),fontData)));\n table.addCell(new Phrase(new Chunk(subLordList.get(i+\"\").getNLSL(),fontData)));\n\n table.setTotalWidth(510);\n table.writeSelectedRows(0, -1, 50, (842 - 160), writer.getDirectContent());\n\n/*\n\t\t canvas.restoreState();\n\t\t this.document.newPage();\n canvas.saveState();\n canvas.setLineWidth(3);\n canvas.setRGBColorFill(0xFF, 0xFF, 0xFF);\n\n canvas.rectangle(35, 842 - 750, 530, 690);\n canvas.fillStroke();\n canvas.closePath();\n canvas.restoreState();\n\n canvas.setLineWidth(1f);\n canvas.saveState();\n\n*/\n\n// ColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n // new Phrase(\"Aspects on House\", font1), 290, 842 - 200, 0);\n\n\t table=new PdfPTable(6);\n //table.setWidths(wid);\n\t table.addCell(new Phrase(new Chunk(\"HOUSE\",font)));\n\n table.addCell(new Phrase(new Chunk(\"PLANET\",font)));\n table.addCell(new Phrase(new Chunk(\"HOUSE\",font)));\n table.addCell(new Phrase(new Chunk(\"SIGN\",font)));\n table.addCell(new Phrase(new Chunk(\"DEGREE\",font)));\n table.addCell(new Phrase(new Chunk(\"ASPECT\",font)));\n\t\n\n\t table.addCell(new Phrase(new Chunk(\"\"+i,font)));\n \n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\n\t\t\n\n\n\t\tboolean flg=true;\n\t\tIterator iter = aspectList.get(i+\"\").iterator();\n\t\tif(aspectList.get(i+\"\").size()>0)\n\t\t{\twhile(iter.hasNext())\n\t\t\t{\n\n\t\t\t\n\t\t\tString temp[]=((String)iter.next()).split(\"_\");\t\n\n\t\t\tif(flg)\n\t\t\t{\n\t\t\ttable.addCell(new Phrase(new Chunk(temp[0],font)));\n\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\t\t\tflg=false;\n\t\t\t}\n\t\t\tif(!temp[1].equalsIgnoreCase(\"Ketu\") && !temp[1].equalsIgnoreCase(\"Rahu\")){\n\t\t\t table.addCell(new Phrase(new Chunk(\"\",fontData)));\n\n table.addCell(new Phrase(new Chunk(temp[1],fontData)));\n table.addCell(new Phrase(new Chunk(temp[2],fontData)));\n table.addCell(new Phrase(new Chunk(temp[3],fontData)));\n table.addCell(new Phrase(new Chunk(temp[4],fontData)));\n table.addCell(new Phrase(new Chunk(temp[5],fontData)));\n\t\t\t}\n\n\t\t\t}\n\t\t\tflg=true;\n\t\t }\n else\n {\n table.addCell(new Phrase(new Chunk(\"NA\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\t\t\tflg=false;\n }\n\n\t\t\tif(flg){\n\t\t ColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n new Phrase(\"Aspects on House\", font1), 290, 842 - 210, 0);\n\n\t\t\ttable.setTotalWidth(510);\n table.writeSelectedRows(0, -1, 50, (842 - 220), writer.getDirectContent());\n\t\t\t}\n\t table=new PdfPTable(5);\n \t table.setWidths(wid);\n\t table.addCell(new Phrase(new Chunk(\"Occupant\",font)));\n\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\t\t\titer = occupantList.get(i+\"\").iterator();\n\t\tflg=false;\n\tif(occupantList.get(i+\"\").size()>0)\n\t\t{\n while(iter.hasNext())\n {\n HouseDetailBean bean=(HouseDetailBean)iter.next();\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\n table.addCell(new Phrase(new Chunk(bean.getSS(),fontData)));\n table.addCell(new Phrase(new Chunk(bean.getNL(),fontData)));\n table.addCell(new Phrase(new Chunk(bean.getSL(),fontData)));\n table.addCell(new Phrase(new Chunk(bean.getNLSL(),fontData)));\n\t\t\t\n\n\n }\n\t\tflg=true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tflg=false;\n\t\t}\n\t\t\tif(flg)\n\t\t\t{\n\t\t\ttable.setTotalWidth(510);\n table.writeSelectedRows(0, -1, 50, (842 - 380), writer.getDirectContent());\n\t\t\t}\n\n\n\n\n\n\t\t\t table=new PdfPTable(6);\n table.addCell(new Phrase(new Chunk(\"OCUPANT\",font)));\n\n table.addCell(new Phrase(new Chunk(\"PLANET\",font)));\n table.addCell(new Phrase(new Chunk(\"HOUSE\",font)));\n table.addCell(new Phrase(new Chunk(\"SIGN\",font)));\n table.addCell(new Phrase(new Chunk(\"DEGREE\",font)));\n table.addCell(new Phrase(new Chunk(\"ASPECT\",font)));\n\n\n\nint count=0;\n\tfor (Map.Entry<String, HashSet<String>> entry : occAspList.get(i+\"\").entrySet())\n {\n\t\t\n\t\t\t\n\t\t\ttable.addCell(new Phrase(new Chunk(entry.getKey(),fontData)));\n\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n\t\t\n\n\t\t\tflg=true;\n\t\t\titer = (entry.getValue()).iterator();\n\t\t\t{\n\t\t\tif((entry.getValue()).size()>0)\n\t\t\t{\n\t\t\twhile(iter.hasNext())\n\t\t\t{\t\n \t String temp[]=((String)iter.next()).split(\"_\");\n\t\t\tif(!temp[1].equalsIgnoreCase(\"Ketu\") && !temp[1].equalsIgnoreCase(\"Rahu\") ){\n\t\t\tif(flg)\n\t\t\t{\n\t\t\t\ttable.addCell(new Phrase(new Chunk(temp[0],font)));\n\t\t\t\tflg=false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\ttable.addCell(new Phrase(new Chunk(\"\",font)));\n\t\t\t}\n\t\t//\tif(!temp[1].equalsIgnoreCase(\"Ketu\") && !temp[1].equalsIgnoreCase(\"Rahu\") ){\t\n table.addCell(new Phrase(new Chunk(temp[1],fontData)));\n\n table.addCell(new Phrase(new Chunk(temp[2],fontData)));\n table.addCell(new Phrase(new Chunk(temp[3],fontData)));\n table.addCell(new Phrase(new Chunk(temp[4],fontData)));\n //table.addCell(new Phrase(new Chunk(aspectList.get(i+\"\").get(j).getNLSL(),fontData)));\n table.addCell(new Phrase(new Chunk(temp[5],fontData)));\n\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n }\n\t\t \n else\n {\n\t/* table.addCell(new Phrase(new Chunk(\"NA\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n table.addCell(new Phrase(new Chunk(\"\",font)));\n*/\n }\n\t\t}\n\t}\n\n\t\tif(count>0)\n\t\t{\n\t\tColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,\n new Phrase(\"Aspects on Occupants\", font1), 290, 842 - 440, 0);\n\t\ttable.setTotalWidth(510);\n table.writeSelectedRows(0, -1, 50, (842 - 450), writer.getDirectContent());\n\t\t}\n\n\n\n\n\t//by bharti\t\tcanvas.restoreState();\n\t\t}\n\n}\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n\t}",
"public void toCanvas(ICanvas c) {\n for (int y = ys - r; y <= ys + r; y++) {\n for (int x = xs - r; x <= xs + r; x++) {\n if (inCircle(x, y)) {\n c.writeToPosition(x, y, 1);\n }\n }\n }\n }",
"private void createBitMap() {\n bitMap = bitMap.copy(bitMap.getConfig(), true);\n Canvas canvas = new Canvas(bitMap);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(4.5f);\n canvas.drawCircle(50, 50, 30, paint);\n winningBitMap = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas2 = new Canvas(winningBitMap);\n paint.setAntiAlias(true);\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas2.drawCircle(50, 50, 30, paint);\n bitMapWin = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas3 = new Canvas(bitMapWin);\n paint.setAntiAlias(true);\n paint.setColor(Color.MAGENTA);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas3.drawCircle(50, 50, 30, paint);\n bitMapCat = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas4 = new Canvas(bitMapCat);\n paint.setAntiAlias(true);\n paint.setColor(Color.DKGRAY);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas4.drawCircle(50, 50, 30, paint);\n }",
"public DrawCanvas(DrawConsoleUI drawConsole) {\n /*Call the super constructor and set the background colour*/\n super();\n this.setBackground(Color.white);\n\n /*Set the size of this component*/\n this.setPreferredSize(new Dimension(970,800));\n\n /*Enable autoscroll for this panel, when there is a need to\n update component's view*/\n this.setAutoscrolls(true);\n\n /*Construct a list that will hold the shapes*/\n //shapesBuffer = Collections.synchronizedList(new ArrayList());\n labelBuffer = Collections.synchronizedList(new ArrayList());\n\n /*Hold a reference to the DrawConsoleUI class*/\n drawConsoleUI = drawConsole;\n\n \n /***\n * Register Listeners to the canvas\n */\n\n /*Mouse move*/\n this.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n //panelMouseMoved(evt);\n }//end mouse motion moved\n\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n try {\n panelMouseDragged(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end mouse motion Dragged\n });\n\n /*Mouse Clicked*/\n this.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n try {\n panelMouseClicked(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Pressed*/\n public void mousePressed(java.awt.event.MouseEvent evt) {\n try {\n panelMousePressed(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Released*/\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n try {\n panelMouseReleased(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n });\n\n\n }",
"private void drawComplications(Canvas canvas, long currentTimeMillis) {\n int complicationId;\n ComplicationDrawable complicationDrawable;\n\n for (int i = 0; i < COMPLICATION_IDS.length; i++) {\n complicationId = COMPLICATION_IDS[i];\n complicationDrawable = mComplicationDrawableSparseArray.get(complicationId);\n\n complicationDrawable.draw(canvas, currentTimeMillis);\n }\n }",
"protected abstract GraphicsWriter newGraphicsWriter();",
"public void Fill(){\n new FloodFill().floodFill(crossSection, new Point(4, 4), Color.GRAY, Color.BLUE);\n\n ReplaceColor(crossSection, Color.GRAY, Color.TRANSPARENT);\n ReplaceColor(crossSection, Color.YELLOW, Color.TRANSPARENT);\n ReplaceColor(crossSection, Color.BLUE, Color.GRAY);\n\n //crossSection = filling.copy(Bitmap.Config.ARGB_8888, true);\n cutMarks.eraseColor(Color.TRANSPARENT);\n }",
"@Override\n\tpublic void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\t\n\t\tCanvas mCv = new Canvas(dialogBlock);\n\t\tmCv.drawBitmap(frame, rt_frame.left - dialogRectF.left, rt_frame.top\n\t\t\t\t- dialogRectF.top, paint);\n\t\tmCv.drawBitmap(classic, rt_classic.left - dialogRectF.left,\n\t\t\t\trt_classic.top - dialogRectF.top, paint);\n\t\tmCv.drawBitmap(race, rt_race.left - dialogRectF.left, rt_race.top\n\t\t\t\t- dialogRectF.top, paint);\n\t\tmCv.drawBitmap(build, rt_build.left - dialogRectF.left, rt_build.top\n\t\t\t\t- dialogRectF.top, paint);\n\t\tmCv.save(Canvas.ALL_SAVE_FLAG);\n\t\tmCv.restore();\n//\t\tif(canvas!=null)\n//\t\t\tcanvas.drawBitmap(dialogBlock, dialogLocat.x, dialogLocat.y, paint);\n\t}",
"public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }",
"private void drawCollision(Canvas canvas) {\n RectF location = getLocation();\n canvas.drawBitmap(featherBitmap,location.left,location.top, null);\n //canvas.restoreToCount(save);\n }",
"@Override\n\tpublic void draw(Canvas canvas) {\n\n\t}",
"@Override\n\tpublic void draw(Graphics canvas) {}",
"@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tBitmap bitmap = unselected;\n\t\tfor (int i = 0;i<dotcount;i++) {\n\t\t\tif(i==selectIndex){\n\t\t\t\tbitmap = selected;\n\t\t\t} else {\n\t\t\t\tbitmap = unselected;\n\t\t\t}\n\t\t\t//canvas.drawBitmap(bitmap, leftPadding+i*(dotWidth+marginPs), heigth/2, null);\n\t\t\trelateRect.left = leftPadding+i*(dotWidth+marginPs);\n\t\t\trelateRect.right = relateRect.left+dotWidth;\n\t\t\tcanvas.drawBitmap(bitmap, orRect, relateRect, null);\n\t\t}\n\t}",
"@Override\n public void draw(Canvas canvas) {\n if (mApplyTransformation) {\n mDstRect.set(getBounds());\n mSx = (float) mDstRect.width() / mMetaData[0];\n mSy = (float) mDstRect.height() / mMetaData[1];\n mApplyTransformation = false;\n }\n if (mPaint.getShader() == null) {\n if (mIsRunning)\n renderFrame(mColors, mGifInfoPtr, mMetaData);\n else\n mMetaData[4] = -1;\n\n canvas.scale(mSx, mSy);\n final int[] colors = mColors;\n\n if (colors != null)\n canvas.drawBitmap(colors, 0, mMetaData[0], 0f, 0f, mMetaData[0], mMetaData[1], true, mPaint);\n\n if (mMetaData[4] >= 0 && mMetaData[2] > 1)\n //UI_HANDLER.postDelayed(mInvalidateTask, mMetaData[4]);//TODO don't post if message for given frame was already posted\n invalidateSelf();\n } else\n canvas.drawRect(mDstRect, mPaint);\n }",
"public synchronized void draw() {\n // Clear the canvas\n// canvas.setFill(Color.BLACK);\n// canvas.fillRect(0, 0, canvasWidth, canvasHeight);\n canvas.clearRect(0, 0, canvasWidth, canvasHeight);\n\n // Draw a grid\n if (drawGrid) {\n canvas.setStroke(Color.LIGHTGRAY);\n canvas.setLineWidth(1);\n for (int i = 0; i < mapWidth; i++) {\n drawLine(canvas, getPixel(new Point(i - mapWidth / 2, -mapHeight / 2)), getPixel(new Point(i - mapWidth / 2, mapHeight / 2)));\n drawLine(canvas, getPixel(new Point(-mapWidth / 2, i - mapHeight / 2)), getPixel(new Point(mapWidth / 2, i - mapHeight / 2)));\n }\n }\n\n // Draw each player onto the canvas\n int height = 0;\n for (Player p : playerTracking) {\n canvas.setStroke(p.getColor());\n\n drawName(canvas, p.getName(), height, p.getColor());\n height += 30;\n\n canvas.setLineWidth(7);\n\n // Draw each position\n Point last = null;\n int direction = 0;\n for (Point point : p.getPoints()) {\n if (last != null) {\n drawLine(canvas, getPixel(last), getPixel(point));\n\n Point dir = point.substract(last);\n if (dir.X > dir.Y && dir.X > 0) {\n direction = 1;\n } else if (dir.X < dir.Y && dir.X < 0) {\n direction = 3;\n } else if (dir.Y > dir.X && dir.Y > 0) {\n direction = 2;\n } else if (dir.Y < dir.X && dir.Y < 0) {\n direction = 0;\n }\n }\n last = point;\n }\n\n drawSlug(canvas, p.getId() - 1, getPixel(last), direction);\n }\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n if ((mData == null) && (mId != null) && ((mOptions & ReactMagicMoveCloneOption.INITIAL) == 0)) {\n // Log.d(LOG_TAG, \"mCloneDataManager.acquire \" + getDebugName() + \", options: \"\n // + mOptions);\n mData = mCloneDataManager.acquire(ReactMagicMoveCloneData.keyForSharedId(mId, mOptions));\n // if (mData != null) Log.d(LOG_TAG, \"Success!!\");\n }\n\n if (mData == null)\n return;\n if ((mOptions & ReactMagicMoveCloneOption.VISIBLE) == 0)\n return;\n if (mContentType == ReactMagicMoveContentType.CHILDREN) {\n /*\n * Paint paint = new Paint(); int width = this.getWidth(); int height =\n * this.getHeight(); paint.setColor(Color.BLUE);\n * paint.setStyle(Paint.Style.FILL); //fill the background with blue color\n * canvas.drawRect(0, 0, width, height, paint);\n */\n return;\n }\n\n mData.getView().draw(canvas);\n }",
"public void onDraw(Canvas canvas) {\n int i2;\n int i3;\n int i4;\n int i5 = 2;\n this.O = canvas.getMaximumBitmapWidth();\n int width = getWidth();\n int height = getHeight();\n if (width != 0 && height != 0) {\n int i6 = width - this.i;\n if (a(i6)) {\n i6--;\n }\n int i7 = height - this.j;\n if (a(i7)) {\n i7--;\n }\n int i8 = i6 / 2;\n int i9 = i7 / 2;\n this.h.setStrokeWidth((float) this.k);\n this.h.setColor(this.m);\n int i10 = i8 + ((a(this.k) ? this.k + 1 : this.k) / 2);\n int i11 = i9 + ((a(this.k) ? this.k + 1 : this.k) / 2);\n int i12 = (this.i + i8) - ((a(this.k) ? this.k + 1 : this.k) / 2);\n int i13 = (this.j + i9) - ((a(this.k) ? this.k + 1 : this.k) / 2);\n q.a(this.e, \"mingtian : \" + i10 + \" \" + i11 + \" \" + i12 + \" \" + i13);\n this.b.set((float) i10, (float) i11, (float) i12, (float) i13);\n canvas.drawRect(this.b, this.n);\n super.onDraw(canvas);\n this.c.set((float) i10, (float) i11, (float) i12, (float) i13);\n canvas.drawRect(this.c, this.h);\n int i14 = i8 > i9 ? i8 : i9;\n Paint paint = this.l;\n if (!a(this.k)) {\n i5 = 1;\n }\n paint.setStrokeWidth((float) (i5 + i14));\n if (a(i14)) {\n i2 = i14 + 1;\n } else {\n i2 = i14;\n }\n int i15 = i8 - (i2 / 2);\n if (a(i14)) {\n i3 = i14 + 1;\n } else {\n i3 = i14;\n }\n int i16 = i9 - (i3 / 2);\n int i17 = this.i;\n if (a(i14)) {\n i4 = i14 + 1;\n } else {\n i4 = i14;\n }\n int i18 = i4 + i17 + i15;\n int i19 = this.j;\n if (a(i14)) {\n i14++;\n }\n this.d.set((float) i15, (float) i16, (float) i18, (float) (i14 + i19 + i16));\n canvas.drawRect(this.d, this.l);\n }\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n if (gameOver) {\n // end game - loss\n gameOverDialog();\n } else if (gameWon) {\n // end game - win\n gameWonDialog();\n }\n\n //Convert dp to pixels by multiplying times density.\n canvas.scale(density, density);\n\n // draw horizon\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n canvas.drawRect(0, horizon, getWidth() / density, getHeight() / density, paint);\n\n // draw cities\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.FILL);\n textPaint.setColor(Color.WHITE);\n textPaint.setTextSize(10);\n\n for (int i = 0; i < cityCount; ++i) {\n canvas.drawRect(cityLocations[i].x - citySize, cityLocations[i].y - citySize, cityLocations[i].x + citySize, cityLocations[i].y + citySize, paint);\n canvas.drawText(cityNames[i], cityLocations[i].x - (citySize / 2) - 5, cityLocations[i].y - (citySize / 2) + 10, textPaint);\n }\n\n // draw rocks\n for (RockView rock : rockList) {\n PointF center = rock.getCenter();\n String color = rock.getColor();\n\n paint.setColor(Color.parseColor(color));\n\n paint.setStyle(Paint.Style.FILL);\n //Log.d(\"center.x\", center.x + \"\");\n //Log.d(\"center.y\", center.y + \"\");\n canvas.drawCircle(center.x, center.y, rockRadius, paint);\n }\n\n // draw MagnaBeam circle\n if (touchActive) {\n canvas.drawCircle(touchPoint.x, touchPoint.y, touchWidth, touchPaint);\n }\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tFile[] FileArray = new File[2]; //change to 3 when adding support for a third file\n\t\t\t\tFileArray[0] = file1;\n\t\t\t\tFileArray[1] = file2;\n\t\t\t\t//FileArray[3] = file3;\n\t\t\t\tFile mergedFile = new File(\"C:/Users/Patrick/Desktop/mdcs/output.txt\");\n\t\t\t\t\n\t\t\t\t FileWriter fstream = null;\n\t\t\t\t BufferedWriter out = null;\n\t\t\t\t try {\n\t\t\t\t fstream = new FileWriter(mergedFile, true);\n\t\t\t\t out = new BufferedWriter(fstream);\n\t\t\t\t } catch (IOException e1) {\n\t\t\t\t e1.printStackTrace();\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for (File f : FileArray) {\n\t\t\t\t System.out.println(\"merging: \" + f.getName());\n\t\t\t\t FileInputStream fis;\n\t\t\t\t try {\n\t\t\t\t fis = new FileInputStream(f);\n\t\t\t\t BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\t\t\t\t \n\t\t\t\t String aLine;\n\t\t\t\t while ((aLine = in.readLine()) != null) {\n\t\t\t\t out.write(aLine);\n\t\t\t\t out.newLine();\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t in.close();\n\t\t\t\t } catch (IOException e) {\n\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t try {\n\t\t\t\t out.close();\n\t\t\t\t } catch (IOException e) {\n\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t\t\n\n\t\t\t}",
"@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n hip.preDraw(purplePaint);\n body.preDraw(redPaint);\n neck.preDraw(purplePaint);\n head.preDraw(bluePaint);\n leftArm1.preDraw(bluePaint);\n leftArm2.preDraw(greenPaint);\n leftArm3.preDraw(cyanPaint);\n rightArm1.preDraw(bluePaint);\n rightArm2.preDraw(greenPaint);\n rightArm3.preDraw(cyanPaint);\n leftLeg1.preDraw(bluePaint);\n leftLeg2.preDraw(greenPaint);\n leftLeg3.preDraw(redPaint);\n rightLeg1.preDraw(bluePaint);\n rightLeg2.preDraw(greenPaint);\n rightLeg3.preDraw(redPaint);\n\n Cube[] renderCubes = {\n hip,\n body,\n neck,\n head,\n leftArm1, leftArm2, leftArm3,\n rightArm1, rightArm2, rightArm3,\n leftLeg1, leftLeg2, leftLeg3,\n rightLeg1, rightLeg2, rightLeg3,\n };\n sort(renderCubes, new Comparator<Cube>() {\n @Override\n public int compare(Cube o1, Cube o2) {\n return new Double(o2.getMaxZ()).compareTo(o1.getMaxZ());\n }\n });\n for (Cube c: renderCubes) {\n c.draw(canvas);\n }\n }",
"private void createCanvasAndFrame(){\n image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n canvas = new Canvas();\n Dimension dimension = new Dimension((int)(width*scale), (int)(height*scale));\n canvas.setPreferredSize(dimension);\n canvas.setMaximumSize(dimension);\n canvas.setMinimumSize(dimension);\n\n frame = new JFrame(title);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new BorderLayout());\n frame.add(canvas, BorderLayout.CENTER);\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setResizable(false);\n frame.setVisible(true);\n\n canvas.createBufferStrategy(2);\n bufferStrategy = canvas.getBufferStrategy();\n graphics = bufferStrategy.getDrawGraphics();\n }",
"void onDraw(ProcessingCanvas givenCanvas);",
"public void clearCanvas() {\n \tgc.setFill(Color.BLACK);\r\n //\tSystem.out.println(xCanvasSize+\" \"+ yCanvasSize);\r\n\t\tgc.fillRect(0, 0, xCanvasSize, yCanvasSize);}",
"private void erase()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.erase(this);\n }",
"private void draw() {\n\t\tCanvas c = null;\n\t\ttry {\n\t\t\t// NOTE: in the LunarLander they don't have any synchronization here,\n\t\t\t// so I guess this is OK. It will return null if the holder is not ready\n\t\t\tc = mHolder.lockCanvas();\n\t\t\t\n\t\t\t// TODO this needs to synchronize on something\n\t\t\tif (c != null) {\n\t\t\t\tdoDraw(c);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tmHolder.unlockCanvasAndPost(c);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void exportShape()\r\n\t{\r\n\t\tMWC.Utilities.ReaderWriter.ImportManager\r\n\t\t\t\t.exportThis(\";;Layer: \" + getName());\r\n\r\n\t\tEditable pl = this;\r\n\t\tif (pl instanceof Exportable)\r\n\t\t{\r\n\t\t\tExportable e = (Exportable) pl;\r\n\t\t\te.exportThis();\r\n\t\t}\r\n\t}",
"private void newCanvas() {\n\t\timgCanvas = new ImageCanvas(1000, 563);\n\t\t//canvasJP.add(imgCanvas);\n\t}",
"@Override\n\tpublic void draw(Canvas canvas) {\n\t\t\n\t}",
"private void actionExportImageSampleArea ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint indexImage = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\tif (indexImage >= 0 && indexImage < tableSize)\r\n\t\t\t\t{\r\n\t\t\t\t\tJFileChooser saveFileChooser = new JFileChooser();\r\n\r\n\t\t\t\t\tFileNameExtensionFilter fileTypeBMP = new FileNameExtensionFilter(\"BMP\", \"bmp\", \"BMP\");\r\n\t\t\t\t\tsaveFileChooser.addChoosableFileFilter(fileTypeBMP);\t \r\n\t\t\t\t\tFileNameExtensionFilter fileTypeJPG = new FileNameExtensionFilter(\"JPEG\", \"jpg\", \"jpeg\", \"JPG\", \"JPEG\");\r\n\t\t\t\t\tsaveFileChooser.addChoosableFileFilter(fileTypeJPG);\r\n\r\n\t\t\t\t\tsaveFileChooser.setAcceptAllFileFilterUsed(false);\r\n\t\t\t\t\tsaveFileChooser.setFileFilter(fileTypeBMP);\r\n\r\n\t\t\t\t\tint isSelectedFile = saveFileChooser.showOpenDialog(saveFileChooser);\r\n\r\n\t\t\t\t\tif (isSelectedFile == JFileChooser.APPROVE_OPTION) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString outputFilePath = saveFileChooser.getSelectedFile().getPath();\r\n\r\n\t\t\t\t\t\tif (saveFileChooser.getFileFilter().equals(fileTypeBMP)) { outputFilePath += \".bmp\"; }\r\n\t\t\t\t\t\telse if (saveFileChooser.getFileFilter().equals(fileTypeJPG)) { outputFilePath += \".jpg\"; }\r\n\r\n\t\t\t\t\t\tOutputController.exportImageSampleArea(outputFilePath, DataController.getTable().getElement(indexImage));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}",
"public void dispatchDraw(Canvas canvas) {\n if (this.mSelectHei > 0) {\n canvas.save();\n canvas.clipPath(this.mSelectDrawablePath);\n if (this.mSelectDrawableBac != null) {\n this.mSelectDrawableBac.setBounds(this.mSelectDrawableRectBac);\n this.mSelectDrawableBac.draw(canvas);\n }\n if (this.mSelectDrawable != null) {\n this.mSelectDrawable.setBounds(this.mSelectDrawableRect);\n this.mSelectDrawable.draw(canvas);\n }\n canvas.restore();\n }\n super.dispatchDraw(canvas);\n }",
"public static void saveImage2(int[][] flat, String saveName, int width, int height){\n \n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n int[] outPixels = new int[flat.length];\n for(int j=0; j<flat.length; j++) {\n outPixels[j] = ((flat[j][0]&0xff)<<16) | ((flat[j][1]&0xff)<<8)\n | (flat[j][2]&0xff) | ((flat[j][3]&0xff)<<24);\n } // for j\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, outPixels, width, height);\n System.out.println(\"Saved \" + saveName);\n }",
"@Override\n\tprotected void draw(Canvas canvas) {\t\tcanvas.setColor(Color.DARK_GREEN);\n\t\tcanvas.drawRectangle(getBounds());\n\t\t\n/*\t\tRectangle originalClipping = canvas.getClipping();\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tTransformation originalTransformation = canvas.getTransformation();\n\n\t\tdrawWorld(new ShadowCanvas(canvas));\n\t\t\n\t\tcanvas.setAlpha(1.0f);\n\t\tcanvas.setTransformation(originalTransformation);\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tdrawWorld(canvas);\n\t\t\n\t\tcanvas.setClipping(originalClipping);\n*/\t}",
"public String save(){\n this.setDrawingCacheEnabled(true);\n this.buildDrawingCache();\n //mBitmap = Bitmap.createBitmap(this.getWidth(),this.getHeight(),Bitmap.Config.ARGB_8888);\n Bitmap bmp = Bitmap.createBitmap(this.getDrawingCache());\n this.setDrawingCacheEnabled(false);\n\n ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG,100,byteArrayOutputStream);\n byte[] imgBytes=byteArrayOutputStream.toByteArray();\n\n return Base64.encodeToString(imgBytes,Base64.DEFAULT);\n\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n\n if(getBackgroundBitmap() != null){\n Bitmap bmp= getBackgroundBitmap();\n bmp = cutBottom(bmp);\n canvas.drawBitmap(bmp, 0,0, canvasPaint);\n canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n // canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n canvas.drawPath(drawPath, drawPaint);\n\n }else{\n canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n canvas.drawPath(drawPath, drawPaint);\n }\n\n }",
"public void writePath(Map<Integer, Integer[]> pairs) {\n \t\tif(pairs.size() > 1) {\n \t\tGraphics gr = image.getGraphics();\n \t\tgr.setColor(Color.RED);\n \t\t\n \t\t//for(int p=locList.getFirst().hashCode()+1; p<locList.getLast().hashCode()-1; p++) {\n \t\t//\tif(pairs.containsKey(p) && pairs.containsKey(p+1)) {\n \t\t\t//Integer[] a = pairs.get(p);\n \t\t\t//Integer[] b = pairs.get(p+1);\n \t\t\ttry {\n \t\t\t//int x1 = a[0];\n \t\t\t//int y1 = a[1];\n \t\t\t//int x2 = b[0];\n \t\t\t//int y2 = b[1];\n \t\t\t\n \t\t\t//gr.drawLine(x1, y1, x2, y2);\n \t\t\t} catch (Exception e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t//}\n \t\t\n \t\t//}\n \t\t//pairs.clear();\n \t\t//gr.dispose();\n \t\t}\n \t}",
"@Override\n public void draw(Canvas canvas) {\n super.draw(canvas);\n\n manager.draw(canvas);\n }",
"@Override\r\n protected void dispatchDraw(Canvas canvas) {\r\n super.dispatchDraw(canvas);\r\n if (mCellBitmapDrawables.size() > 0) {\r\n for (BitmapDrawable bitmapDrawable : mCellBitmapDrawables) {\r\n bitmapDrawable.draw(canvas);\r\n }\r\n }\r\n }",
"public String toString() { \n String canvas = \"\";\n for(int i=0; i<height; i++) {\n for(int j=0; j<width; j++) {\n if(drawingArray[i][j] == ' ') {\n canvas += \"_\";\n } else {\n canvas += drawingArray[i][j];\n }\n }\n canvas += System.lineSeparator();\n }\n return canvas;\n }",
"public void draw() \n{\n background(250, 243, 225);\n timer(); //control timing of the program\n mapwd.draw(); //visualize weekday trajectory\n shadeTra(t1); \n mapwk.draw(); //visualize weekend trajectory\n shadeTra(t2); \n transport(); //draw the transport legend\n infoDisplay(); //display almost text information\n \n\n stroke(0);\n \n gweekend();\n gweekday();\n frame();\n graduation();\n piechart();\n \n stroke(0);\n arrow();\n \n saveFrame(\"Output1/traffic_######.tif\");\n}",
"public void conjoin()\n\t{\n\t\tint width = level2.width + level3.width;\n\t\tint height = level2.height;\n\t\tLevel level4 = new Level(width, height);\n\t\tlevel4.map = new byte[width][height];\n\t\t// level4.data = new byte[width][height];\n\t\tlevel4.xExit = width - 5;\n\t\tint k = 0;\n\t\tfor (int i = 0; i < width; i++)\n\t\t{\n\t\t\tif(i < level2.width)\n\t\t\t{\n\t\t\t\tlevel4.map[i] = level2.map[i].clone();\n\t\t\t\t//level4.data[i] = level2.data[i];\n\t\t\t\tlevel4.spriteTemplates[i] = level2.spriteTemplates[i];\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlevel4.map[i] = level3.map[k].clone();\n\t\t\t\t//level4.data[i] = level3.data[k];\n\t\t\t\tlevel4.spriteTemplates[i] = level3.spriteTemplates[k];\n\t\t\t\tk++;\n\t\t\t}\n\n\t\t}\n\t\tlevel = level4;\n\t}",
"@Test\n void writeToImage() {\n String imagename = \"img\";\n int width = 1600;\n int height = 1000;\n int nx =500;\n int ny =800;\n ImageWriter imageWriter = new ImageWriter(imagename, width, height, nx, ny);\n for (int col = 0; col < ny; col++) {\n for (int row = 0; row < nx; row++) {\n if (col % 10 == 0 || row % 10 == 0) {\n imageWriter.writePixel(row, col, Color.blue);\n }\n }\n }\n imageWriter.writeToImage();\n }",
"public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}",
"@Override\n protected void onDraw(Canvas canvas) {\n canvas.drawBitmap(canvasBitmap,0,0,canvasPaint);\n canvas.drawPath(drawPath,drawPaint);\n }",
"protected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\t\n\t\tpaint.setAntiAlias(true);\t//设置画笔为无锯齿\n\t\tpaint.setColor(Color.RED);\t//设置画笔颜色\n\t\tcanvas.drawColor(Color.DKGRAY);\t\t\t\t//白色背景\n\t\tpaint.setStrokeWidth((float) 4.0);\t\t\t\t//线宽\n\t\tpaint.setStyle(Style.STROKE);\n\t\tPath path = new Path();\t\t\t\t\t\t//Path对象\n\t\t\n\t\t\n\t\t/*\n\t\t * LP-HP-descision tree方法\n\t\t */\n\t\ttry\n\t\t{\n\t\t//\tqrs=new QRS(graphicsData.data);\n\t\t // graphicsData.data=qrs.filter(); \n\t\t} catch (Exception e)\n\t\t{\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n //数据读入\t\t\n\t\tint max=(int) findmax(graphicsData.data, graphicsData.rate);\n\t\t//path.moveTo(0, (float) graphicsData.data[0]);\t\t\t\t\t\t//起始点\n\t\tfor(int i=0; i<1000; i++)\n\t\t{\n\t\t\tfloat y = (float) (plotwidth-plotwidth*(graphicsData.data[i]/max));\n\t\t\tpath.lineTo(i, y);\n\t\t}\n\t\t canvas.drawPath(path, paint);\t\t\t\t\t//绘制任意多边形\n\t\t \n\t\t //绘制纵向珊格\n\t\t paint.setAntiAlias(true);\t//设置画笔为无锯齿\n\t\t\tpaint.setColor(Color.BLACK);\t//设置画笔颜色 \n\t\t\tpaint.setStrokeWidth((float) 1.0);\t\t\t\t//线宽\n\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\tPath gridpath = new Path();\t\t\t\t\t\t//Path对象\n\t\t\t//数据读入\n\t\t\t//绘制纵向坐标\n\t\t\tfor(int i=0; i<10; i++)\n\t\t\t{\n\t\t\t\tgridpath.moveTo(i*50, 0);\t\n\t\t\t\tgridpath.lineTo(i*50, 500);\n\t\t\t\tcanvas.drawText(\"\"+i*50, i*50, 300, paint);\n\t\t\t}\n\t\t\t canvas.drawPath(gridpath, paint);\t\t\t\t\t//绘制任意多边形 \n\t\t\t \n\t\t\t //绘制横向珊格\n\t\t\t paint.setAntiAlias(true);\t//设置画笔为无锯齿\n\t\t\t\tpaint.setColor(Color.BLACK);\t//设置画笔颜色 \n\t\t\t\tpaint.setStrokeWidth((float) 1.0);\t\t\t\t//线宽\n\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\tPath gridpath2 = new Path();\t\t\t\t\t\t//Path对象\n\t\t\t\t//数据读入\n\t\t\t\t//绘制纵向坐标\n\t\t\t\tfor(int i=0; i<10; i++)\n\t\t\t\t{\n\t\t\t\t\tgridpath2.moveTo(0,i*50 );\t\n\t\t\t\t\tgridpath2.lineTo(500, i*50);\n\t\t\t\t\tcanvas.drawText(\"\"+(300-i*50), 0, i*50, paint);\n\t\t\t\t}\n\t\t\t\t canvas.drawPath(gridpath2, paint);\t\t\t\t\t//绘制任意多边形 \n\t\t \n\t}",
"private void saveComponentsToFile(String fileName) {\n\t\tFile fileToSave = new File(\"./saved/\" + fileName);\n\t\ttry {\n\t\t\tif (!fileToSave.createNewFile()) {\n\t\t\t\tDialogsUtil.showErrorMessage(\"File already exists.\");\n\t\t\t} else {\n\t\t\t\tFileWriter fileWriter = new FileWriter(\"./saved/\" + fileName);\n\n\t\t\t\tList<Component> canvasItems = Arrays.asList(CanvasPanel.getInstance().getComponents());\n\n\t\t\t\tfor (Component item : canvasItems) {\n\t\t\t\t\tTransferableItemButton designElement = (TransferableItemButton) item;\n\n\t\t\t\t\tString elementImageAddress = FileUtil.designElementsDirectory + \"\\\\\" + designElement.getName()\n\t\t\t\t\t\t\t+ FileUtil.imageExtension;\n\n\t\t\t\t\tDesignElement elementToSave = new DesignElement(designElement.getX(), designElement.getY(),\n\t\t\t\t\t\t\tdesignElement.getWidth(), designElement.getHeight());\n\t\t\t\t\telementToSave.setLayer(CanvasPanel.getLayer(designElement));\n\t\t\t\t\telementToSave.setImageAddress(elementImageAddress);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.write(elementToSave.toString() + \"\\n\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tDialogsUtil.showErrorMessage(\"Something went wrong.\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfileWriter.close();\n\t\t\t\tDialogsUtil.showMessage(\"Success!\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tDialogsUtil.showErrorMessage(\"Something went wrong.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // actively paint frame now, either with OpenGL or Java2D, depending on switch\n \n if(canvasFileWriter.writingMovieEnabled){\n canvasFileWriter.writeMovieFrame();\n }\n }",
"@Override \r\n\t\tprotected void onDraw(Canvas canvas) {\r\n\t\t\tsuper.onDraw(canvas);\r\n\t\t\tint w = canvas.getWidth();\r\n\t\t\tint h = canvas.getHeight();\r\n\t\t\tif(fdtmodeBitmap_!=null){\r\n\t\t\t\tint x = w-100;\r\n\t\t\t\tint y = 10;\r\n \t\tcanvas.drawBitmap(fdtmodeBitmap_, null , new Rect(x,y,x+70,y+20),paint_);\r\n\t\t\t}\r\n\t\t\tfloat xRatio = (float)w / previewWidth_; \r\n\t\t\tfloat yRatio = (float)h / previewHeight_;\r\n\t\t\tfor(int i=0; i<MAX_FACE; i++){\r\n\t\t\t\tFaceResult face = faces_[i];\r\n\t\t\t\tfloat eyedist = face.eyesDistance()*xRatio;\r\n\t\t\t\tif(eyedist==0.0f)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tPointF midEyes = new PointF();\r\n\t\t\t\tface.getMidPoint(midEyes);\r\n\t\t\t\tif(appMode_==0){\r\n\t\t\t\t\tPointF lt = new PointF(midEyes.x*xRatio-eyedist*1.5f,midEyes.y*yRatio-eyedist*1.5f);\r\n\t\t\t\t\tcanvas.drawRect((int)(lt.x),(int)(lt.y),(int)(lt.x+eyedist*3.0f),(int)(lt.y+eyedist*3.0f), paint_); \r\n\t\t\t\t}\r\n\t\t\t\telse if(overlayBitmap_!=null){\r\n\t\t\t\t\tPointF lt = new PointF(midEyes.x*xRatio-eyedist*1.75f,midEyes.y*yRatio-eyedist*1.75f);\r\n\t \t\tcanvas.drawBitmap(overlayBitmap_, null , new Rect((int)lt.x, (int)lt.y,(int)(lt.x+eyedist*3.5f),(int)(lt.y+eyedist*3.5f)),paint_);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"private void m6547b(Canvas canvas) {\n super.dispatchDraw(canvas);\n }",
"@Override\n\tprotected void drawSub(Canvas canvas) {\n\t\tpaint.setTextSize(30);\n\t\tcanvas.drawText(\"Logic View\", rx, 30, paint);\n\t\t\n\t\tcanvas.drawArc(oval, 0, sweepAngle, true, paint);\n\n\t}",
"@Override\n public Image merge(Image a, Image b) {\n if (a.getCached() == null) {\n drawImage(a, 0, 0);\n }\n if (b.getCached() == null) {\n drawImage(b, 0, 0);\n }\n Object nativeImage = graphicsEnvironmentImpl.mergeImages(canvas, a, b, a.getCached(), b.getCached());\n Image merged = Image.create(getImageSource(nativeImage));\n merged.cache(nativeImage);\n return merged;\n }",
"protected void doDraw(Canvas canvas) {\n // Primera posición de la pelota en el centro\n if (pos_x < 0 && pos_y < 0) {\n pos_x = this.width / 2;\n pos_y = this.height / 2;\n } else {\n // La nueva posición es la posición anterior + la velocidad en\n // cada coordenada X e Y\n pos_x += xVelocidad;\n pos_y += yVelocidad;\n // Si el usuario ha tocado la pelota cambiamos el sentido de\n // la misma\n if (touched && touched_x > (pos_x - pelota.getBitmap().getWidth())\n && touched_x < (pos_x + pelota.getBitmap().getWidth())\n && touched_y > (pos_y - pelota.getBitmap().getHeight())\n && touched_y < (pos_y + pelota.getBitmap().getHeight())) {\n\n touched = false;\n xVelocidad = xVelocidad * -1;\n yVelocidad = yVelocidad * -1;\n }\n // Si pos_x es mayor que el ancho de la pantalla teniendo en\n // cuenta el ancho de la pelota o la nueva posición es < 0\n // entonces cambiamos el sentido de la pelota\n if ((pos_x > this.width - pelota.getBitmap().getWidth()) ||\n (pos_x < 0)) {\n xVelocidad = xVelocidad * -1;\n }\n // Si pos_y es mayor que el alto de la pantalla teniendo en\n // cuenta el alto de la pelota o la nueva posición es < 0\n // entonces cambiamos el sentido de la pelota\n if ((pos_y > this.height - pelota.getBitmap().getHeight()) ||\n (pos_y < 0)) {\n yVelocidad = yVelocidad * -1;\n }\n }\n // Color gris para el fondo de la aplicación\n canvas.drawColor(Color.LTGRAY);\n // Dibujamos la pelota en la nueva posición\n canvas.drawBitmap(pelota.getBitmap(), pos_x, pos_y, null);\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n for (Path p : paths) {\n mPaint.setColor(strokeMap.get(p).getStrokeColor());\n mPaint.setStrokeWidth(strokeMap.get(p).getStrokeWidth());\n canvas.drawPath(p, mPaint);\n }\n //draws current path\n mPaint.setColor(paintColor);\n mPaint.setStrokeWidth(strokeWidth);\n canvas.drawPath(mPath, mPaint);\n }",
"@Override\n public void draw(GameCanvas canvas) {\n drawWall(canvas, true, opacity);\n drawWall(canvas, false, opacity);\n }",
"public void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n if (this.mShouldRender) {\n int width = getMeasuredWidth();\n int height = getMeasuredHeight();\n if (width > 0 && height > 0) {\n if (this.mBitmap == null || this.mCanvas == null || this.mOldHeight != height || this.mOldWidth != width) {\n if (this.mBitmap != null) {\n this.mBitmap.recycle();\n }\n this.mBitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888);\n this.mCanvas = new Canvas(this.mBitmap);\n }\n this.mOldWidth = width;\n this.mOldHeight = height;\n this.mCanvas.drawColor(0, Mode.CLEAR);\n this.mCanvas.drawColor(this.mMaskColour);\n if (this.mEraser == null) {\n this.mEraser = new Paint();\n this.mEraser.setColor(-1);\n this.mEraser.setXfermode(CLEAR_PORTER_DUFF_XFER_MODE);\n this.mEraser.setFlags(1);\n }\n this.mShape.draw(this.mCanvas, this.mEraser, this.mXPosition, this.mYPosition, this.mShapePadding);\n drawStroke(this.mCanvas, this.mEraser, this.mShape, this.mXPosition, this.mYPosition, this.mShapePadding);\n canvas.drawBitmap(this.mBitmap, 0.0f, 0.0f, null);\n }\n }\n }",
"public void outputResults(int K)\n {\n //collect all sets\n int region_counter=1;\n ArrayList<Pair<Integer>> sorted_regions = new ArrayList<Pair<Integer>>();\n\n int width = this.image.getWidth();\n int height = this.image.getHeight();\n for(int h=0; h<height; h++){\n for(int w=0; w<width; w++){\n int id=getID(new Pixel(w,h));\n int setid=ds.find(id);\n if(id!=setid) continue;\n sorted_regions.add(new Pair<Integer>(ds.get(setid).size(),setid));\n }//end for w\n }//end for h\n\n //sort the regions\n Collections.sort(sorted_regions, new Comparator<Pair<Integer>>(){\n @Override\n public int compare(Pair<Integer> a, Pair<Integer> b) {\n if(a.p!=b.p) return b.p-a.p;\n else return b.q-a.q;\n }\n });\n\n //recolor and output region info\n\t\t\n //Todo: Your code here (remove this line)\n //Hint: Use image.setRGB(x,y,c.getRGB()) to change the color of a pixel (x,y) to the given color \"c\"\n\n //save output image\n String out_filename = img_filename+\"_seg_\"+K+\".png\";\n try\n {\n File ouptut = new File(out_filename);\n ImageIO.write(this.image, \"png\", ouptut);\n System.err.println(\"- Saved result to \"+out_filename);\n }\n catch (Exception e) {\n System.err.println(\"! Error: Failed to save image to \"+out_filename);\n }\n }",
"public void start() {\n\t\t\n\t\t/*\n\t\t * This is the main JFrame that everything will be placed on. \n\t\t * The size is set to a maximum value, and made unresizable to make repainting easier to achieve.\n\t\t */\n\t\tJFrame frame = new JFrame(\"Paint\");\n\t\tframe.setSize(Canvas.getMaxWindowSize(), Canvas.getMaxWindowSize());\n\t\tframe.setResizable(false);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t/*\n\t\t * The mainPanel is the panel on which all the other panels will be organized.\n\t\t * It uses a BorderLayout to divide the panel into 5 possible areas: North, South, West, East, and Center.\n\t\t */\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\tframe.add(mainPanel);\n\t\t\n\t\t/*\n\t\t * The canvas is added to the center of the mainPanel.\n\t\t */\n\t\tCanvas canvas = new Canvas();\n\t\tmainPanel.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * The topToolPanel is a JPanel that will also use a BorderLayout to organize items placed upon it.\n\t\t * It is placed in the North portion of the mainPanel.\n\t\t */\n\t\tJPanel topToolPanel = new JPanel(new BorderLayout());\n\t\tmainPanel.add(topToolPanel, BorderLayout.NORTH);\n\t\t\n\t\t/*\n\t\t * The shapeToolsPanel is JPanel on which all the buttons for different shapes will be placed. \n\t\t * It is placed in the West portion of the topToolPanel.\n\t\t */\n\t\tJPanel shapeToolsPanel = new JPanel();\n\t\ttopToolPanel.add(shapeToolsPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * The usefulToolPanel will hold buttons for options like \"Fill\" or \"No Fill\", as well as our \"Undo\" button.\n\t\t */\n\t\tJPanel usefulToolPanel = new JPanel();\n\t\ttopToolPanel.add(usefulToolPanel, BorderLayout.EAST);\n\t\t\n\t\t/*\n\t\t * Each of the next five buttons added represent an option to choose a certain shape to draw.\n\t\t * They all get added to the shapeToolsPanel from left to right.\n\t\t */\n\t\tJButton rectButton = new JButton(\"Rectangle\");\n\t\tshapeToolsPanel.add(rectButton);\n\t\trectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"rectangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton circButton = new JButton (\"Circle\");\n\t\tshapeToolsPanel.add(circButton);\n\t\tcircButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"circle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton triButton = new JButton (\"Triangle\");\n\t\tshapeToolsPanel.add(triButton);\n\t\ttriButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"triangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton lineButton = new JButton (\"Line\");\n\t\tshapeToolsPanel.add(lineButton);\n\t\tlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"line\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton penButton = new JButton (\"Pen\");\n\t\tshapeToolsPanel.add(penButton);\n\t\tpenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"pen\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t/*\n\t\t * The following three buttons are useful tools for the program to use: the option to choose whether or not to fill shapes, and the undo option.\n\t\t * Each of these will be added to the usefulToolPanel, once again from right to left.\n\t\t */\n\t\tJButton fillButton = new JButton(\"Fill\");\n\t\tusefulToolPanel.add(fillButton);\n\t\tfillButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton outlineButton = new JButton(\"No Fill\");\n\t\tusefulToolPanel.add(outlineButton);\n\t\toutlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton increaseButton = new JButton (\"Increase width\");\n\t\tusefulToolPanel.add(increaseButton);\n\t\tincreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() + 1);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton decreaseButton = new JButton (\"Decrease width\");\n\t\tusefulToolPanel.add(decreaseButton);\n\t\tdecreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() - 1);\n\t\t\t\t}catch(IllegalArgumentException exception) {\n\t\t\t\t\tSystem.out.println(\"The shape thickness cannot be zero.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton undoButton = new JButton (\"Undo\");\n\t\tusefulToolPanel.add(undoButton);\n\t\tundoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tcanvas.undo();\n\t\t\t\t}catch(IndexOutOfBoundsException exception) {\n\t\t\t\t\tSystem.out.println(\"No item in shape list to undo.\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The colorPanel is a JPanel which utilizes a GridLayout to organize buttons from the top to the bottom.\n\t\t * It is set up to have more rows than are actually filled to minimize the size of each button on it.\n\t\t */\n\t\tJPanel colorPanel = new JPanel(new GridLayout(defaultGridRows, defaultGridColumns, defaultGridPadding, defaultGridPadding));\n\t\tmainPanel.add(colorPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * Each of the following buttons will be added to the colorPanel.\n\t\t * They will stack one on top of the other as the grid is set up to only have one column.\n\t\t * Additionally, the text portion of each button will be set to the color that the button is connected to.\n\t\t */\n\t\tJButton blackButton = new JButton (\"Black\");\n\t\tcolorPanel.add(blackButton);\n\t\tblackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.black);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton yellowButton = new JButton (\"Yellow\");\n\t\tyellowButton.setForeground(Color.yellow);\n\t\tcolorPanel.add(yellowButton);\n\t\tyellowButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.yellow);\n\t\t\t}\n\t\t});\n\n\t\tJButton greenButton = new JButton (\"Green\");\n\t\tgreenButton.setForeground(Color.green);\n\t\tcolorPanel.add(greenButton);\n\t\tgreenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.green);\n\t\t\t}\n\t\t});\n\n\t\tJButton blueButton = new JButton (\"Blue\");\n\t\tblueButton.setForeground(Color.blue);\n\t\tcolorPanel.add(blueButton);\n\t\tblueButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.blue);\n\t\t\t}\n\t\t});\n\n\t\tJButton magentaButton = new JButton (\"Magenta\");\n\t\tmagentaButton.setForeground(Color.magenta);\n\t\tcolorPanel.add(magentaButton);\n\t\tmagentaButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.magenta);\n\t\t\t}\n\t\t});\n\n\t\tJButton redButton = new JButton (\"Red\");\n\t\tredButton.setForeground(Color.red);\n\t\tcolorPanel.add(redButton);\n\t\tredButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.red);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton pinkButton = new JButton (\"Pink\");\n\t\tpinkButton.setForeground(Color.pink);\n\t\tcolorPanel.add(pinkButton);\n\t\tpinkButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.pink);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tframe.setVisible(true);\n\t}",
"public void paint(T compositeDiagram, Rectangle2D canvas, RegularDivider divider);",
"private void saveGraph() {\n try(FileOutputStream fileOut = new FileOutputStream(graphPath + OVERLAY_GRAPH);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut))\n {\n objectOut.writeObject(graph);\n System.out.println(\"The overlay graph was successfully written to a file\");\n } catch (Exception ex) {\n System.out.println(\"Error writing the overlay graph\");\n ex.printStackTrace();\n }\n }"
]
| [
"0.572593",
"0.5598752",
"0.54493445",
"0.54318523",
"0.5367676",
"0.53538376",
"0.5318566",
"0.52897936",
"0.5256047",
"0.52451426",
"0.52071446",
"0.5204596",
"0.51927936",
"0.5167401",
"0.5151917",
"0.5132515",
"0.5116068",
"0.5111119",
"0.5083687",
"0.5076802",
"0.50758713",
"0.50466204",
"0.50458455",
"0.50011307",
"0.4999464",
"0.49846",
"0.4975823",
"0.49667138",
"0.49607718",
"0.49607718",
"0.49585092",
"0.4957322",
"0.49300894",
"0.49228388",
"0.4910298",
"0.49094394",
"0.49020675",
"0.4892394",
"0.488215",
"0.48769304",
"0.4867749",
"0.48669037",
"0.48447007",
"0.48439586",
"0.48415107",
"0.48340985",
"0.483274",
"0.48304614",
"0.48293468",
"0.48131755",
"0.4807961",
"0.48075706",
"0.4798908",
"0.4798477",
"0.47954732",
"0.4785314",
"0.47850853",
"0.4784697",
"0.47812393",
"0.47728485",
"0.4768326",
"0.47569054",
"0.4753295",
"0.4746722",
"0.47376877",
"0.4733772",
"0.47301757",
"0.47254756",
"0.4720667",
"0.4716188",
"0.47145787",
"0.47139937",
"0.47118747",
"0.47061628",
"0.47040334",
"0.47033995",
"0.47028774",
"0.47002494",
"0.47001272",
"0.46970126",
"0.46914023",
"0.46867064",
"0.46739733",
"0.46717235",
"0.4666573",
"0.46654838",
"0.46628487",
"0.46627936",
"0.465137",
"0.4649853",
"0.46472895",
"0.46470326",
"0.46463016",
"0.4638176",
"0.46375972",
"0.46286285",
"0.46255484",
"0.4624755",
"0.46235022",
"0.46233502"
]
| 0.66084415 | 0 |
Initializes an instance of DataSourcesImpl. | DataSourcesImpl(SearchServiceClientImpl client) {
this.service =
RestProxy.create(DataSourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DataSourceFactory() {}",
"public DataSourcesImpl dataSources() {\n return this.dataSources;\n }",
"synchronized void initDataSource()\n throws SQLException\n {\n if (_isStarted)\n return;\n \n _isStarted = true;\n \n for (int i = 0; i < _driverList.size(); i++) {\n DriverConfig driver = _driverList.get(i);\n \n driver.initDataSource(_isTransactional, _isSpy);\n }\n \n try {\n if (_isTransactional && _tm == null) {\n Object obj = new InitialContext().lookup(\"java:comp/TransactionManager\");\n \n if (obj instanceof TransactionManager)\n _tm = (TransactionManager) obj;\n }\n } catch (NamingException e) {\n throw new SQLExceptionWrapper(e);\n }\n }",
"public void init() {\n\r\n\t\ttry {\r\n\r\n\t\t\t//// 등록한 bean 에 있는 datasource를 가져와서 Connection을 받아온다\r\n\t\t\tcon = ds.getConnection();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tprotected void initDataSource() {\n\t}",
"public DataGeocoderImpl() {\r\n\t\tmanager = DALLocator.getDataManager();\r\n\t}",
"public Pool() {\n\t\t// inicializaDataSource();\n\t}",
"void init() throws ConnectionPoolDataSourceException;",
"public CommonDataSource(){\n }",
"public void setDataSources(ArrayList dataSources) {\n this.dataSources = dataSources;\n }",
"public IisLogsDataSource() {\n }",
"public DataSource createImpl()\n {\n if (_impl == null)\n {\n // create a param defining the datasource\n \n \tJdbcDataSourceParam dsParam = new JdbcDataSourceParam(getName(),\n getJdbcDriver(), getJdbcUrl() , //getJdbcCatalog(),\n getJdbcUser(), getJdbcPassword());//+ \":\" + getJdbcCatalog()\n\n // get/create the datasource\n _impl = DataManager.getDataSource(dsParam);\n\n // get the entities, create and add them\n Vector v = getEntities();\n for (int i = 0; i < v.size(); i++)\n {\n EntityDobj ed = (EntityDobj) v.get(i);\n _impl.addEntity(ed.createImpl());\n }\n\n // get the joins, create and add them\n v = getJoins();\n for (int i = 0; i < v.size(); i++)\n {\n JoinDobj jd = (JoinDobj) v.get(i);\n _impl.addJoin(jd.createImpl());\n }\n }\n\n return _impl;\n }",
"public OracleDataSourceFactory()\n {\n super();\n System.out.println(\"Constructed OracleDataSourceFactory\");\n }",
"public DataFactoryImpl() {\n\t\tsuper();\n\t}",
"private DataManager() {\n databaseManager = DatabaseManager.getInstance();\n }",
"public WebDataSource() {}",
"public PoolNYCH() {\n\t\tinicializarDataSource();\n\t}",
"@Inject\n private DataStore() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure()\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n LOGGER.error(\"Fehler beim initialisieren der Session\", e);\n StandardServiceRegistryBuilder.destroy(registry);\n }\n \n }",
"public void init() {\n\t\tlog.info(\"Initialise StudentDAO\");\n\t\tquery_getStudent = new Query_GetStudent(dataSource);\n\t\tquery_insertStudent = new Query_InsertStudent(dataSource);\n\t\tquery_getStudentId = new Query_GetStudentID(dataSource);\n\t\tquery_updateStudent = new Query_UpdateStudent(dataSource);\n\t\tquery_deleteStudent = new Query_DeleteStudent(dataSource);\n\t\tquery_getAllStudentsOrderMatnr = new Query_GetAllStudentsOrderMatnr(\n\t\t\t\tdataSource);\n\t\tquery_getAllStudentsOrderNachname = new Query_GetAllStudentsOrderNachname(\n\t\t\t\tdataSource);\n\t}",
"private DataSource.Factory buildDataSourceFactory() {\n return ((DemoApplication) getApplication()).buildDataSourceFactory();\n }",
"static public DataSource getDataSource(Context appContext) {\n // As per\n // http://goo.gl/clVKsG\n // we can rely on the application context never changing, so appContext is only\n // used once (during initialization).\n if (ds == null) {\n //ds = new InMemoryDataSource();\n //ds = new GeneratedDataSource();\n ds = new CacheDataSource(appContext, 20000);\n }\n \n return ds;\n }",
"private DataSource initializeDataSourceFromSystemProperty() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(System.getProperty(PropertyName.JDBC_DRIVER, PropertyDefaultValue.JDBC_DRIVER));\n dataSource.setUrl(System.getProperty(PropertyName.JDBC_URL, PropertyDefaultValue.JDBC_URL));\n dataSource.setUsername(System.getProperty(PropertyName.JDBC_USERNAME, PropertyDefaultValue.JDBC_USERNAME));\n dataSource.setPassword(System.getProperty(PropertyName.JDBC_PASSWORD, PropertyDefaultValue.JDBC_PASSWORD));\n\n return dataSource;\n }",
"public ConnectorDataSource() {\n super(CONNECTOR_BEAN_NAME, CONNECTOR_TABLE_NAME);\n }",
"private DatabaseConnectionService() {\n ds = new HikariDataSource();\n ds.setMaximumPoolSize(20);\n ConfigProperties configProperties = ConfigurationLoader.load();\n if (configProperties == null) {\n throw new RuntimeException(\"Unable to read the config.properties.\");\n }\n ds.setDriverClassName(configProperties.getDatabaseDriverClassName());\n ds.setJdbcUrl(configProperties.getDatabaseConnectionUrl());\n ds.addDataSourceProperty(\"user\", configProperties.getDatabaseUsername());\n ds.addDataSourceProperty(\"password\", configProperties.getDatabasePassword());\n ds.setAutoCommit(false);\n }",
"@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t\t\r\n\t\t//create employee dao .... and pass in the conn pool / datasource\r\n\t\ttry {\r\n\t\t\temployeeDAO = new EmployeeDAO(dataSource);\r\n\t\t}\r\n\t\tcatch(Exception exc) {\r\n\t\t\tthrow new ServletException(exc);\r\n\t\t}\r\n\t}",
"public GeotiffDataSource() {}",
"public AddressDaoImpl()\n {\n \t//Initialise the related Object stores\n \n }",
"public static void initialize() {\r\n\t\tif (!connectionByProjectIdMap.isEmpty()) {\r\n\t\t\tcloseAllMsiDb();\r\n\t\t\tconnectionByProjectIdMap.clear();\r\n\t\t}\r\n\t\tif (udsDbConnection != null) {\r\n\t\t\tinitializeUdsDb();\r\n\t\t}\r\n\t}",
"public void init() {\n\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(\"jdbc/QuotingDB\");\n// dbCon = ds.getConnection();\n }\n catch (javax.naming.NamingException e) {\n System.out.println(\"A problem occurred while retrieving a DataSource object\");\n System.out.println(e.toString());\n }\n\n }",
"public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }",
"public static DataFactory init() {\n\t\ttry {\n\t\t\tDataFactory theDataFactory = (DataFactory)EPackage.Registry.INSTANCE.getEFactory(DataPackage.eNS_URI);\n\t\t\tif (theDataFactory != null) {\n\t\t\t\treturn theDataFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new DataFactoryImpl();\n\t}",
"public DataRepository() throws IOException {\n\t\tthis.init();\n\t}",
"public NJdbcDataSource(String dbSpec) {\n initialize(dbSpec);\n }",
"public ServiceDAO(){\n\t\t\n\t\tString[] tables = new String[]{\"CUSTOMERS\",\"PRODUCTS\"};\n\t\tfor(String table:tables){\n\t\t\tif(!checkIfDBExists(table)){\n\t\t\t\ttry{\n\t\t\t\t\tnew DerbyDataLoader().loadDataFor(table);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlogger.error(\"Error Loading the Data into the Derby\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public DataManager() {\n\t\tthis(PUnit == null ? \"eElectionsDB\" : PUnit);\n\t}",
"public ArrayList getDataSources() {\n return dataSources;\n }",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}",
"private EnabledDataSource getEnabledDataSource()\n {\n EnabledDataSource ds = new EnabledDataSource();\n ds.setDriverClassName(\"jdbc.db.TestDriverImpl\");\n ds.setDriverName(TestDriverImpl.TEST_URL_START);\n ds.setPruneFactor(0);\n\n return ds;\n }",
"public FBSimpleDataSource() {\n super();\n }",
"@Override\n public void afterPropertiesSet() {\n\n super.afterPropertiesSet();\n\n Assert.notNull(getDataSources(), \"Data sources not set\");\n\n /**\n * SettingServiceProvider setup.\n */\n setSettingService((SettingServiceProvider) getServiceFactory().makeService(SettingServiceProvider.class));\n Assert.notNull(getSettingService(), \"Settings Service Provider could be located.\");\n\n /**\n * IdGenerator setup.\n */\n setIdGenerator((IdGenerator) getServiceFactory().makeService(IdGenerator.class));\n Assert.notNull(getIdGenerator(), \"ID Generator could be located.\");\n\n /**\n * TransactionDAO setup.\n */\n setTransactionDao((JdbcTransactionDao) getServiceFactory().makeService(JdbcTransactionDao.class));\n Assert.notNull(getTransactionDao(), \"TransactionDAO could not be located.\");\n\n /**\n * PartnerDAO setup.\n */\n setPartnerDao((JdbcPartnerDao) getServiceFactory().makeService(JdbcPartnerDao.class));\n Assert.notNull(getTransactionDao(), \"PartnerDao could not be located.\");\n\n /**\n * CompressionService setup.\n */\n setCompressionService((CompressionService) getServiceFactory().makeService(CompressionService.class));\n Assert.notNull(getTransactionDao(), \"CompressionService could not be located.\");\n\n /**\n * Data Access Objects setup\n */\n HibernatePersistenceProvider provider = new HibernatePersistenceProvider();\n EntityManagerFactory emf = provider.createEntityManagerFactory(\n getDataSources().get(ARG_DS_SOURCE),\n new PluginPersistenceConfig()\n .classLoader(OrganizationDataType.class.getClassLoader())\n .debugSql(Boolean.FALSE)\n .rootEntityPackage(\"com.windsor.node.plugin.wqx.domain\")\n .setBatchFetchSize(1000));\n\n setEntityManager(emf.createEntityManager());\n\n /**\n * SubmissionHistoryDao setup\n */\n setSubmissionHistoryDao(new SubmissionHistoryDaoJpaImpl(getEntityManager()));\n\n /**\n * WqxDao setup\n */\n setWqxDao(new WqxDaoJpaImpl(getEntityManager()));\n Assert.notNull(getWqxDao(), \"WqxDao could not be located.\");\n }",
"private SupplierDaoJdbc(DataSource dataSource) {\n SupplierDaoJdbc.dataSource = dataSource;\n }",
"private void init() {\n\t\t/* Add the DNS of your database instances here */\n\t\tdatabaseInstances[0] = \"ec2-52-0-167-69.compute-1.amazonaws.com\";\n\t\tdatabaseInstances[1] = \"ec2-52-0-247-64.compute-1.amazonaws.com\";\n\t}",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"@Inject\n\tprivate DataManager() {\n\t\t// nothing to do\n\t}",
"public static DataSource getDs() {\n return ds;\n }",
"public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"constraints=\"+constraintMap);\r\n\t\tif (LightStr.isEmpty(dsId)){\r\n\t\t\tif (BeanFactory.getBeanFactory().getDataService(\"default\")==null) dsId=\"default\"; else dsId=LightUtil.getHashCode();\r\n\t\t}\r\n\t\tBeanFactory.getBeanFactory().addDataService(dsId, this);\r\n\t}",
"public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// if we are auto-creating our schema, check and create\n\t\t\tif (m_autoDdl)\n\t\t\t{\n\t\t\t\tm_sqlService.ddl(this.getClass().getClassLoader(), \"ctools_dissertation\");\n\t\t\t}\n\n\t\t\tsuper.init();\n\t\t}\n\t\tcatch (Throwable t)\n\t\t{\n\t\t\tm_logger.warn(this +\".init(): \", t);\n\t\t}\n\t}",
"@BeforeAll\n public static void setupDataSource() {\n dataSource = new SingleConnectionDataSource();\n dataSource.setUrl(\"jdbc:postgresql://localhost:5432/integral-project-test\");\n dataSource.setUsername(\"postgres\");\n dataSource.setPassword(\"postgres1\");\n dataSource.setAutoCommit(false);\n }",
"public ParcoursDataService() {\n this.repository = new JeeRepository();\n }",
"public final void init() {\n connectDB();\n\n initMainPanel();\n\n initOthers();\n }",
"public PojoDataContext() {\n this(new ArrayList<TableDataProvider<?>>());\n }",
"public DataSourceEntityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private DataManager() {\n }",
"public VendorLocationsDAOImpl() {\n\t\tsuper();\n\t}",
"@Override\n public void init()\n throws InitializationException\n {\n // Create a default configuration.\n String[] def = new String[]\n {\n DEFAULT_RUN_DATA,\n DEFAULT_PARAMETER_PARSER,\n DEFAULT_COOKIE_PARSER\n };\n configurations.put(DEFAULT_CONFIG, def.clone());\n\n // Check other configurations.\n Configuration conf = getConfiguration();\n if (conf != null)\n {\n String key,value;\n String[] config;\n String[] plist = new String[]\n {\n RUN_DATA_KEY,\n PARAMETER_PARSER_KEY,\n COOKIE_PARSER_KEY\n };\n for (Iterator<String> i = conf.getKeys(); i.hasNext();)\n {\n key = i.next();\n value = conf.getString(key);\n int j = 0;\n for (String plistKey : plist)\n {\n if (key.endsWith(plistKey) && key.length() > plistKey.length() + 1)\n {\n key = key.substring(0, key.length() - plistKey.length() - 1);\n config = (String[]) configurations.get(key);\n if (config == null)\n {\n config = def.clone();\n configurations.put(key, config);\n }\n config[j] = value;\n break;\n }\n j++;\n }\n }\n }\n\n\t\tpool = (PoolService)TurbineServices.getInstance().getService(PoolService.ROLE);\n\n if (pool == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Pool Service!\");\n }\n\n parserService = (ParserService)TurbineServices.getInstance().getService(ParserService.ROLE);\n\n if (parserService == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Parser Service!\");\n }\n\n setInit(true);\n }",
"public TasksDataSource(Context context) {\n dbHelper = new SQLiteHelper(context);\n }",
"public DBDataInitializer(ArtifactDao artifactDao) {\n this.artifactDao = artifactDao;\n// this.wizardDao = wizardDao;\n// this.userService = userService;\n }",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }",
"public DataSource(Context context) {\n dbHelper = new MySQLiteHelper(context);\n database = dbHelper.getWritableDatabase();\n dbHelper.close();\n }",
"private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}",
"@Override\n\tpublic void setDataSource(DataSource dataSource) {\n\t}",
"@Bean(name = \"dataSource\")\n\tpublic DataSource dataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL).addScript(\"db/create-db.sql\").addScript(\"db/insert-data.sql\").build();\n\t\treturn db;\n\t}",
"public void initialize() {\n\t\tDynamoConfig config = new DynamoConfig();\n\t\tthis.setup(config);\n\t}",
"private void initDataLoader() {\n\t}",
"private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public CLONDATAFactoryImpl() {\n\t\tsuper();\n\t}",
"@Override\t\t\r\n\tpublic void init() throws ServletException {\r\n\t\tsuper.init();\r\n\t\twebTodoListDBUtil = new WebTodoListDBUtil(dataSource);\r\n\t}",
"public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static JRDataSource getDataSource() {\n\t\treturn new CustomDataSource(1000);\n\t}",
"private void init() {\n DatabaseInitializer databaseInitializer = new DatabaseInitializer();\n try {\n for (int i = 0; i < DEFAULT_POOL_SIZE; i++) {\n ProxyConnection connection = new ProxyConnection(databaseInitializer.getConnection());\n connections.put(connection);\n }\n } catch (InterruptedException e) {\n logger.log(Level.ERROR, e);\n }\n }",
"private synchronized static void initializeConnection()\n throws ReferenceDataSourceInitializationException {\n\n if (config == null || factoryClassName == null) {\n throw new ReferenceDataSourceInitializationException(\n \"Could not initialize connection, config or factoryClassName is not set, \"\n + \"configureDataFactoryMethod must be called first!!!! \");\n }\n\n try {\n\n AbstractReferenceDataFactory refDataFactory = AbstractReferenceDataFactory.instantiate(factoryClassName);\n logger.finer(\"AbstractReferenceDataFactory instantiated from: \" + factoryClassName);\n\n referenceDataSourceInstance = refDataFactory.getReferenceDataSource(config);\n logger.fine(\"ReferenceDataSource initialzed from: \" + config);\n\n } catch (Exception e) {\n logger.severe(\"Could not instantiate AbstractReferenceDataFactory from \" + factoryClassName);\n throw new ReferenceDataSourceInitializationException(\"Could not instantiate AbstractReferenceDataFactory from \" + factoryClassName, e);\n }\n\n }",
"public static PoolingDataSource setupDataSource() {\n\t\tPoolingDataSource pds = new PoolingDataSource();\n\t\tpds.setUniqueName(\"jdbc/jbpm-ds\");\n\t\tpds.setClassName(\"bitronix.tm.resource.jdbc.lrc.LrcXADataSource\");\n\t\tpds.setMaxPoolSize(5);\n\t\tpds.setAllowLocalTransactions(true);\n\t\tpds.getDriverProperties().put(\"user\", \"jbpm6_user\");\n\t\tpds.getDriverProperties().put(\"password\", \"jbpm6_pass\");\n\t\tpds.getDriverProperties().put(\"url\", \"jdbc:mysql://localhost:3306/jbpm6\");\n\t\tpds.getDriverProperties().put(\"driverClassName\", \"com.mysql.jdbc.Driver\");\n\t\tpds.init();\n\t\treturn pds;\n\t}",
"private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }",
"private void initialize() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n } catch (ClassNotFoundException e) {\n LOGGER.error(\"DB: Unable to find sql driver.\", e);\n throw new AppRuntimeException(\"Unable to find sql driver\", e);\n }\n\n DbCred cred = getDbCred();\n this.connection = getConnection(cred);\n this.isInitialized.set(Boolean.TRUE);\n }",
"public static void init() throws SQLException{\n dbController = DBController.getInstance();\n billingController = BillingController.getInstance();\n employeeController = EmployeeController.getInstance();\n customerServiceController = CustomerServiceController.getInstance();\n parkingController = ParkingController.getInstance();\n orderController = OrderController.getInstance();\n subscriptionController = SubscriptionController.getInstance();\n customerController = CustomerController.getInstance();\n reportController = ReportController.getInstance();\n complaintController = ComplaintController.getInstance();\n robotController = RobotController.getInstance();\n }",
"public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}",
"public AnalysisDatasets() {\n }",
"@Nonnull\r\n List<DataSource> getDataSources();",
"private Data initialise() {\n \r\n getRoomsData();\r\n getMeetingTimesData();\r\n setLabMeetingTimes();\r\n getInstructorsData();\r\n getCoursesData();\r\n getDepartmentsData();\r\n getInstructorFixData();\r\n \r\n for (int i=0;i<departments.size(); i++){\r\n numberOfClasses += departments.get(i).getCourses().size();\r\n }\r\n return this;\r\n }",
"private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }",
"private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }",
"private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\t\t}\n\t\tif (em == null) {\n\t\t\tem = factory.createEntityManager();\n\t\t}\n\t}",
"public DataAdapter() {\n }",
"public AbstractJDBCDataService(Properties configuration)\n throws DataServiceException {\n this.configuration = configuration;\n String driver = getDriver();\n try {\n if (driver == null) {\n ProvenanceConfigurator\n .missingPropertyMessage(ProvenanceConfigurator.MYGRID_DATASERVICE_JDBC_DRIVER);\n }\n Class.forName(driver).newInstance();\n connectionURL = getConnectionURL();\n username = getUser();\n password = getPassword();\n String optionalMaxConnections = configuration\n .getProperty(\"taverna.datastore.jdbc.pool.max\");\n if (optionalMaxConnections != null) {\n try {\n maxConnections = Integer.parseInt(optionalMaxConnections);\n } catch (NumberFormatException nfe) {\n log.warn(nfe.getMessage(), nfe);\n }\n }\n pool = new JDBCConnectionPool(driver, connectionURL, username,\n password, maxConnections);\n } catch (Exception ex) {\n throw new DataServiceCreationException(ex);\n }\n\n if (!tablesExist())\n createTables();\n }",
"private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}",
"public DataControl() throws DatabaseException{\r\n\t\tplayerDataService=new PlayerDataServiceImp();\r\n//\t\tteamDataService=new TeamDataServiceImp();\r\n//\t\tmatchDataService=new MatchDataServiceImp();\r\n\t}",
"void countries_init() throws SQLException {\r\n countries = DatabaseQuerySF.get_all_stations();\r\n }",
"@Bean(destroyMethod = \"close\")\n\tpublic DataSource dataSource() {\n\t\tHikariConfig config = Utils.getDbConfig(dataSourceClassName, url, port, \"postgres\", user, password);\n\n try {\n\t\t\tlogger.info(\"Configuring datasource {} {} {}\", dataSourceClassName, url, user);\n config.setMinimumIdle(0);\n\t\t\tHikariDataSource ds = new HikariDataSource(config);\n\t\t\ttry {\n\t\t\t\tString dbExist = \"SELECT datname FROM pg_catalog.pg_database WHERE lower(datname) = lower('\"+databaseName+\"')\";\n\t\t\t\tPreparedStatement statementdbExist = ds.getConnection().prepareStatement(dbExist);\n\t\t\t\tif(statementdbExist.executeQuery().next()) {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tds.close();\n\t\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\t} else {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tString sql = \"CREATE DATABASE \" + databaseName;\n\t\t\t\t\tPreparedStatement statement = ds.getConnection().prepareStatement(sql);\n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tds.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlogger.error(\"ERROR Configuring datasource SqlException {} {} {}\", e);\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t} catch (Exception ee) {\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\tlogger.debug(\"ERROR Configuring datasource catch \", ee);\n\t\t\t}\n\t\t\tHikariConfig config2 = Utils.getDbConfig(dataSourceClassName, url, port, databaseName, user, password);\n\t\t\treturn new HikariDataSource(config2);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"ERROR in database configuration \", e);\n\t\t} finally {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}",
"public DaoFactory()\n\t{\n\n\t}",
"public DBPoolImpl()\n {\n }",
"public DataManager(AppTemplate initApp) throws Exception {\r\n\t// KEEP THE APP FOR LATER\r\n\tapp = initApp;\r\n List list = new ArrayList();\r\n items = FXCollections.observableList(list);\r\n name = new SimpleStringProperty();\r\n owner = new SimpleStringProperty();\r\n nameString = \"\";\r\n ownerString = \"\";\r\n }"
]
| [
"0.686326",
"0.65357614",
"0.65247816",
"0.64846605",
"0.6480676",
"0.6464266",
"0.6452319",
"0.64070183",
"0.6351217",
"0.6332066",
"0.6292477",
"0.6285412",
"0.6251011",
"0.61844337",
"0.6163195",
"0.61594176",
"0.61362445",
"0.60818654",
"0.59961975",
"0.59775573",
"0.5974017",
"0.5970707",
"0.5969364",
"0.59180206",
"0.58972776",
"0.58904946",
"0.5886784",
"0.588006",
"0.586906",
"0.5848299",
"0.58305156",
"0.5817652",
"0.5809541",
"0.5796675",
"0.57959455",
"0.5771239",
"0.5722261",
"0.5722261",
"0.5722261",
"0.57149786",
"0.570451",
"0.570389",
"0.57037437",
"0.569326",
"0.5686681",
"0.56840473",
"0.5678961",
"0.5673776",
"0.5672525",
"0.56712586",
"0.565184",
"0.5644275",
"0.56374466",
"0.5624033",
"0.56227946",
"0.561992",
"0.56080705",
"0.5599662",
"0.5589003",
"0.55863833",
"0.55829954",
"0.55775255",
"0.55775255",
"0.55775255",
"0.55775255",
"0.55775255",
"0.55775255",
"0.5577135",
"0.556803",
"0.5566748",
"0.5560067",
"0.5550257",
"0.5548839",
"0.5548142",
"0.55378747",
"0.55375814",
"0.553234",
"0.5532121",
"0.5531938",
"0.55293304",
"0.5528799",
"0.5524345",
"0.55200595",
"0.5515001",
"0.55131704",
"0.5511975",
"0.5509745",
"0.5506282",
"0.5506221",
"0.54943025",
"0.5490171",
"0.5488631",
"0.54813457",
"0.5479896",
"0.5474126",
"0.547382",
"0.5473209",
"0.5471126",
"0.5467657",
"0.5463635",
"0.5462946"
]
| 0.0 | -1 |
The interface defining all the services for SearchServiceClientDataSources to be used by the proxy service to perform REST calls. | @Host("{endpoint}")
@ServiceInterface(name = "SearchServiceClientD")
public interface DataSourcesService {
@Put("/datasources('{dataSourceName}')")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Mono<Response<SearchIndexerDataSourceConnection>> createOrUpdate(
@HostParam("endpoint") String endpoint,
@PathParam("dataSourceName") String dataSourceName,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@HeaderParam("If-Match") String ifMatch,
@HeaderParam("If-None-Match") String ifNoneMatch,
@HeaderParam("Prefer") String prefer,
@QueryParam("api-version") String apiVersion,
@QueryParam("ignoreResetRequirements") Boolean skipIndexerResetRequirementForCache,
@HeaderParam("Accept") String accept,
@BodyParam("application/json") SearchIndexerDataSourceConnection dataSource,
Context context);
@Put("/datasources('{dataSourceName}')")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Response<SearchIndexerDataSourceConnection> createOrUpdateSync(
@HostParam("endpoint") String endpoint,
@PathParam("dataSourceName") String dataSourceName,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@HeaderParam("If-Match") String ifMatch,
@HeaderParam("If-None-Match") String ifNoneMatch,
@HeaderParam("Prefer") String prefer,
@QueryParam("api-version") String apiVersion,
@QueryParam("ignoreResetRequirements") Boolean skipIndexerResetRequirementForCache,
@HeaderParam("Accept") String accept,
@BodyParam("application/json") SearchIndexerDataSourceConnection dataSource,
Context context);
@Delete("/datasources('{dataSourceName}')")
@ExpectedResponses({204, 404})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Mono<Response<Void>> delete(
@HostParam("endpoint") String endpoint,
@PathParam("dataSourceName") String dataSourceName,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@HeaderParam("If-Match") String ifMatch,
@HeaderParam("If-None-Match") String ifNoneMatch,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Delete("/datasources('{dataSourceName}')")
@ExpectedResponses({204, 404})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Response<Void> deleteSync(
@HostParam("endpoint") String endpoint,
@PathParam("dataSourceName") String dataSourceName,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@HeaderParam("If-Match") String ifMatch,
@HeaderParam("If-None-Match") String ifNoneMatch,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Get("/datasources('{dataSourceName}')")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Mono<Response<SearchIndexerDataSourceConnection>> get(
@HostParam("endpoint") String endpoint,
@PathParam("dataSourceName") String dataSourceName,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Get("/datasources('{dataSourceName}')")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Response<SearchIndexerDataSourceConnection> getSync(
@HostParam("endpoint") String endpoint,
@PathParam("dataSourceName") String dataSourceName,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Get("/datasources")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Mono<Response<ListDataSourcesResult>> list(
@HostParam("endpoint") String endpoint,
@QueryParam("$select") String select,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Get("/datasources")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Response<ListDataSourcesResult> listSync(
@HostParam("endpoint") String endpoint,
@QueryParam("$select") String select,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Post("/datasources")
@ExpectedResponses({201})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Mono<Response<SearchIndexerDataSourceConnection>> create(
@HostParam("endpoint") String endpoint,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
@BodyParam("application/json") SearchIndexerDataSourceConnection dataSource,
Context context);
@Post("/datasources")
@ExpectedResponses({201})
@UnexpectedResponseExceptionType(SearchErrorException.class)
Response<SearchIndexerDataSourceConnection> createSync(
@HostParam("endpoint") String endpoint,
@HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
@BodyParam("application/json") SearchIndexerDataSourceConnection dataSource,
Context context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DataSourcesImpl(SearchServiceClientImpl client) {\n this.service =\n RestProxy.create(DataSourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());\n this.client = client;\n }",
"public interface SearchClientService {\r\n\t/**\r\n\t * Get Search engine client\r\n\t * \r\n\t * @return\r\n\t */\r\n\tClient getClient();\r\n\r\n\tvoid setup();\r\n\r\n\tvoid shutdown();\r\n}",
"@Host(\"{endpoint}\")\n @ServiceInterface(name = \"SearchServiceRestClient\")\n private interface SearchServiceRestClientService {\n @Get(\"servicestats\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(SearchErrorException.class)\n Mono<SimpleResponse<ServiceStatistics>> getServiceStatistics(@HostParam(\"endpoint\") String endpoint, @QueryParam(\"api-version\") String apiVersion, @HeaderParam(\"x-ms-client-request-id\") UUID xMsClientRequestId, Context context);\n }",
"public interface SearchDefaultDataSource {\n interface SearchDefaultCallBack extends BaseCallBack {\n void onLoadSearchHot(List<String> hot);\n\n void onLoadSearchHistory(List<String> history);\n }\n\n interface DeleteSearchHistoryCallBack {\n void onSuccess();\n\n void onFail();\n }\n\n void getSearchHot(SearchDefaultCallBack callBack);\n\n void getSearchHistory(SearchDefaultCallBack callBack);\n\n void clearSearchHistory(DeleteSearchHistoryCallBack callBack);\n\n void deleteSearchHistory(String history, DeleteSearchHistoryCallBack callBack);\n}",
"public interface IndexProviderClient extends IndexServiceClient {\n\n}",
"public DataSourceListType invokeQueryDatasources() throws TsResponseException {\n checkSignedIn();\n final String url = getUriBuilder().path(QUERY_DATA_SOURCES).build(m_siteId).toString();\n final TsResponse response = get(url);\n return response.getDatasources();\n }",
"public interface IDataSource {\r\n\t\r\n\t/**\r\n\t * Method to check if there are any stored credential in the data store for the user.\r\n\t * @param userId\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public boolean checkAuth(String userId) throws IOException;\r\n\t\r\n\t/**\r\n\t * Method to build the Uri used to redirect the user to the service provider site to give authorization.\r\n\t * @param userId\r\n\t * @param authCallback callback URL used when the app was registered on the service provider site. Some providers require\r\n\t * to specify it with every request.\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String buildAuthRequest(String userId, String authCallback) throws IOException;\r\n\t\r\n\t/**\r\n\t * Once the user has authorized the application, the provider redirect it on the app using the callback URL. This method \r\n\t * saves the credentials sent back with the request in the data store.\r\n\t * @param userId\r\n\t * @param params HashMap containing all the parameters of the request\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public void saveAuthResponse(String userId, HashMap<String, String> params) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of a single resource\r\n\t * @param userId\r\n\t * @param name resource name as in the XML config file\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String updateData(String userId, String resourceName, long lastUpdate) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of all resources\r\n\t * @param userId\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;\r\n\t\r\n}",
"@Fluent\n@Beta(Beta.SinceVersion.V1_2_0)\npublic interface SearchService extends\n GroupableResource<SearchServiceManager, SearchServiceInner>,\n Refreshable<SearchService>,\n Updatable<SearchService.Update> {\n\n /***********************************************************\n * Getters\n ***********************************************************/\n\n /**\n * The hosting mode value.\n * <p>\n * Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that\n * allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the\n * standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'.\n *\n * @return the hosting mode value.\n */\n HostingMode hostingMode();\n\n /**\n * @return the number of partitions used by the service\n */\n int partitionCount();\n\n /**\n * The state of the last provisioning operation performed on the Search service.\n * <p>\n * Provisioning is an intermediate state that occurs while service capacity is being established. After capacity\n * is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll\n * provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search\n * Service operation to see when an operation is completed. If you are using the free service, this value tends\n * to come back as 'succeeded' directly in the call to Create Search service. This is because the free service uses\n * capacity that is already set up.\n *\n * @return the provisioning state of the resource\n */\n ProvisioningState provisioningState();\n\n /**\n * @return the number of replicas used by the service\n */\n int replicaCount();\n\n /**\n * @return the SKU type of the service\n */\n Sku sku();\n\n /**\n * The status of the Search service.\n * <p>\n * Possible values include:\n * 'running': the Search service is running and no provisioning operations are underway.\n * 'provisioning': the Search service is being provisioned or scaled up or down.\n * 'deleting': the Search service is being deleted.\n * 'degraded': the Search service is degraded. This can occur when the underlying search units are not healthy.\n * The Search service is most likely operational, but performance might be slow and some requests might be dropped.\n * 'disabled': the Search service is disabled. In this state, the service will reject all API requests.\n * 'error': the Search service is in an error state. If your service is in the degraded, disabled, or error states,\n * it means the Azure Search team is actively investigating the underlying issue. Dedicated services in these\n * states are still chargeable based on the number of search units provisioned.\n *\n * @return the status of the service\n */\n SearchServiceStatus status();\n\n /**\n * @return the details of the status.\n */\n String statusDetails();\n\n /**\n * The primary and secondary admin API keys for the specified Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the AdminKeys object if successful\n */\n AdminKeys getAdminKeys();\n\n /**\n * The primary and secondary admin API keys for the specified Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Observable<AdminKeys> getAdminKeysAsync();\n\n /**\n * Returns the list of query API keys for the given Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the List<QueryKey> object if successful\n */\n List<QueryKey> listQueryKeys();\n\n /**\n * Returns the list of query API keys for the given Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the List<QueryKey> object\n */\n Observable<QueryKey> listQueryKeysAsync();\n\n\n /***********************************************************\n * Actions\n ***********************************************************/\n\n /**\n * Regenerates either the primary or secondary admin API key.\n * <p>\n * You can only regenerate one key at a time.\n *\n * @param keyKind specifies which key to regenerate\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the AdminKeys object if successful\n */\n AdminKeys regenerateAdminKeys(AdminKeyKind keyKind);\n\n /**\n * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.\n *\n * @param keyKind Specifies which key to regenerate\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Observable<AdminKeys> regenerateAdminKeysAsync(AdminKeyKind keyKind);\n\n /**\n * Regenerates either the primary or secondary admin API key.\n * <p>\n * You can only regenerate one key at a time.\n *\n * @param name The name of the new query API key.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the <QueryKey> object if successful\n */\n QueryKey createQueryKey(String name);\n\n /**\n * Regenerates either the primary or secondary admin API key.\n * <p>\n * You can only regenerate one key at a time.\n *\n * @param name The name of the new query API key.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Observable<QueryKey> createQueryKeyAsync(String name);\n\n /**\n * Deletes the specified query key.\n * <p>\n * Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then\n * recreate it.\n *\n * @param key The query key to be deleted. Query keys are identified by value, not by name.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void deleteQueryKey(String key);\n\n /**\n * Deletes the specified query key.\n * <p>\n * Unlike admin keys, query keys are not regenerated. The process for\n * regenerating a query key is to delete and then recreate it.\n *\n * @param key The query key to be deleted. Query keys are identified by value, not by name.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Completable deleteQueryKeyAsync(String key);\n\n\n /**\n * The entirety of the Search service definition.\n */\n interface Definition extends\n DefinitionStages.Blank,\n DefinitionStages.WithGroup,\n DefinitionStages.WithSku,\n DefinitionStages.WithPartitionsAndCreate,\n DefinitionStages.WithReplicasAndCreate,\n DefinitionStages.WithCreate {\n }\n\n /**\n * Grouping of virtual network definition stages.\n */\n interface DefinitionStages {\n /**\n * The first stage of the Search service definition.\n */\n interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the resource group.\n */\n interface WithGroup\n extends GroupableResource.DefinitionStages.WithGroup<DefinitionStages.WithSku> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the SKU.\n */\n interface WithSku {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param skuName the SKU\n * @return the next stage of the definition\n */\n WithCreate withSku(SkuName skuName);\n\n /**\n * Specifies to use a free SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithCreate withFreeSku();\n\n /**\n * Specifies to use a basic SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withBasicSku();\n\n /**\n * Specifies to use a standard SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithPartitionsAndCreate withStandardSku();\n }\n\n interface WithReplicasAndCreate extends WithCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of replicas to be created\n * @return the next stage of the definition\n */\n WithCreate withReplicaCount(int count);\n }\n\n interface WithPartitionsAndCreate extends WithReplicasAndCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of partitions to be created\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withPartitionCount(int count);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for the resource to be created\n * (via {@link WithCreate#create()}), but also allows for any other optional settings to be specified.\n */\n interface WithCreate extends\n Creatable<SearchService>,\n Resource.DefinitionWithTags<WithCreate> {\n }\n }\n\n /**\n * The template for a Search service update operation, containing all the settings that can be modified.\n */\n interface Update extends\n Appliable<SearchService>,\n Resource.UpdateWithTags<Update>,\n UpdateStages.WithReplicaCount,\n UpdateStages.WithPartitionCount {\n }\n\n /**\n * Grouping of all the Search service update stages.\n */\n interface UpdateStages {\n\n /**\n * The stage of the Search service update allowing to modify the number of replicas used.\n */\n interface WithReplicaCount {\n /**\n * Specifies the replicas count of the Search service.\n *\n * @param count the replicas count; replicas distribute workloads across the service. You need 2 or more to support high availability (applies to Basic and Standard tiers only)\n * @return the next stage of the definition\n */\n Update withReplicaCount(int count);\n }\n\n /**\n * The stage of the Search service update allowing to modify the number of partitions used.\n */\n interface WithPartitionCount {\n /**\n * Specifies the Partitions count of the Search service.\n * @param count the partitions count; Partitions allow for scaling of document counts as well as faster data ingestion by spanning your index over multiple Azure Search Units (applies to Standard tiers only)\n * @return the next stage of the definition\n */\n Update withPartitionCount(int count);\n }\n }\n}",
"@Override\n protected void configureService() {\n if (installSolr) {\n // bind solr server, using the checklistbank.search.solr.server property\n install(new SolrModule(SolrConfig.fromProperties(getProperties(), \"solr.\")));\n }\n\n bind(NameUsageSearchService.class).to(NameUsageSearchServiceImpl.class).in(Scopes.SINGLETON);\n\n expose(NameUsageSearchService.class);\n }",
"@RemoteServiceRelativePath(\"solr-system\")\npublic interface SolrSystemService extends RemoteService {\n\n\t/**\n\t * Create a new system\n\t * \n\t * @param systemDTO\n\t * The system to create\n\t * @param userDTO\n\t * The user that creates the system\n\t */\n\tvoid createSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Update a selected system\n\t * \n\t * @param systemDTO\n\t * The system to update\n\t * @param userDTO\n\t * The user that updates the system\n\t */\n\tvoid updateSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Delete a system\n\t * \n\t * @param systemDTO\n\t * The system to delete\n\t * @param userDTO\n\t * The user that deletes the system\n\t */\n\tvoid deleteSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Show a list of all the systems the system can communicate with\n\t * \n\t * @param userDTO\n\t * the user that requested the systems\n\t * @return A list of all the available systems\n\t */\n\tList<SolrSystemDTO> showAllSolrSystems(UserDTO userDTO);\n\n\tboolean optimize(SolrSystemDTO sustemDTO, UserDTO userDTO);\n}",
"public interface DataSource extends DataSourceBase {\n /***\n * @param authenticationInfo A HashMap of any authentication information that came through in the request headers from the mobile client\n * @param params a HashMap of the URL parameters included in the request.\n * @return The data source response that contains the list of data set items you want to return\n */\n DataSet getDataSet(AuthenticationInfo authenticationInfo, Parameters params);\n\n /***\n *\n * @param id The ID of the item to fetch\n * @param authenticationInfo a HashMap of any authentication information that came through in the request headers from the mobile client\n * @param parameters a HashMap of the URL parameters included in the request\n * @return The data source response that contains the data set item with the requested ID\n */\n\n DataSetItem getRecord(String id, AuthenticationInfo authenticationInfo, Parameters parameters);\n\n\n /**\n * @param queryDataItem The data set item containing the values to be searched on\n * @param authenticationInfo a HashMap of any authentication parameters that came through in the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the list of data set items which meet the search criteria\n */\n default DataSet queryDataSet(DataSetItem queryDataItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Search is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be created\n * @param authenticationInfo a Hashmap of any authentication parameters that came through the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the newly created data set item\n */\n default RecordActionResponse createRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Create is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be updated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the updated item.\n */\n\n default RecordActionResponse updateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Update is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be validated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the validated item.\n */\n\n default RecordActionResponse validateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Validation is not supported on this web service\");\n }\n\n /**\n * @param dataSetItemID the data set item ID that the event is related to\n * @param event the ATEvent object\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request\n * @param params a Parameters object of any URL parameters from the request\n */\n default Response updateEventForDataSetItem(String dataSetItemID, Event event, AuthenticationInfo authenticationInfo, Parameters params) {\n return Response.success();\n }\n\n /**\n * This will update a list of data set items according to the given data set item\n *\n * @param primaryKeys a list of data set item IDs to update\n * @param dataSetItem the data set item values used to update. IMPORTANT: Only the attributes that are getting bulk updated will be included.\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return an DataSourceResponse\n */\n default DataSet bulkUpdateDataSetItems(List<String> primaryKeys, DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Bulk update is not supported by this web service\");\n }\n\n /**\n * @param dataSetItemID the ID of the data set item to delete\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return\n */\n default RecordActionResponse deleteRecord(String dataSetItemID, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Delete is not supported on this web service\");\n }\n\n\n\n}",
"public interface WatchService {\n @DataSource(DataSourceType.WRITE)\n public int addWatchForm(WatchForm watchForm);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryLastWatchFormByName(String name);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryWatchFormByOpenId(String openId);\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameWeek(String name);\n\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameMonth(String name);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByNameDay(String name,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdMonth(String openId);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByOpenIdDay(String openId,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdMonth(String openId);\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdMonth();\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdWeek();\n}",
"public interface EsSearchDao {\n\n EsQueryResult search(StoreURL storeURL, EsQuery esQuery);\n\n EsQueryResult searchByIds(StoreURL storeURL, EsQuery esQuery);\n\n EsQueryResult searchByFields(StoreURL storeURL, EsQuery esQuery);\n\n List<EsQueryResult> multiSearch(StoreURL storeURL, List<EsQuery> list);\n\n EsQueryResult searchByDSL(StoreURL storeURL, EsQuery esQuery);\n\n Object executeProxy(StoreURL storeURL, EsProxy esProxy);\n}",
"public interface PostsDataSource {\n\n}",
"@Autowired\n public void setSearchService(SearchService searchService) {\n this.searchService = searchService;\n }",
"public DataSourcesImpl dataSources() {\n return this.dataSources;\n }",
"public interface DispersionDataSource {\n\n}",
"public interface TrafikLabStationsRestService {\n\n List<StationTrafikLab> searchStations(String searchParam);\n}",
"@Nonnull\r\n List<DataSource> getDataSources();",
"public void setDataSources(ArrayList dataSources) {\n this.dataSources = dataSources;\n }",
"public ArrayList getDataSources() {\n return dataSources;\n }",
"public interface IScapSyncSearch {\n\n /**\n * Get the Relative Search URL of this search.\n * @return page the Relative Search URL of this search\n */\n public String getSearchUrl();\n\n /**\n * Get the number of rows per page in this search.\n * @return int the number of rows in this search\n */\n public int getRowsPerPage();\n\n /**\n * Get the Starting Row of this search.\n * @return int the number of the Starting Row of this search\n */\n public int getStartRow();\n\n /**\n * Get the Ending Row of this search.\n * @return int the number of the Ending Row of this search\n */\n public int getEndRow();\n \n /**\n * Get the Total Rows of this search.\n * @return int the number of Total Rows of this search\n */\n public int getTotalRows(); \n\n /**\n * Get the number of the Current Page of this search.\n * @return int the Current Page of this search\n */\n public int getCurrentPage(); \n\n /**\n * Get the Sort Fields of this search.\n * @return sortFields[] and array containing the available Sort Fields\n */\n public IScapSyncSearchSortField[] getSortFields();\n \n /**\n * Get the Facets of this search.\n * @return IScapSyncSearchFacet[] an array containing the available Facets\n */\n public IScapSyncSearchFacet[] getFacets();\n \n /**\n * Get the Results of this search.\n * @return IScapSyncSearchResult[] an array containing the available Results\n */\n public IScapSyncSearchResult[] getResults();\n\n /**\n * Get the Pages of this search.\n * @return IScapSyncSearchPage[] an array containing the available Pages\n */\n public IScapSyncSearchPage[] getPages();\n\n}",
"public SearchServiceRestClientImpl(HttpPipeline httpPipeline) {\n this.httpPipeline = httpPipeline;\n this.dataSources = new DataSourcesImpl(this);\n this.indexers = new IndexersImpl(this);\n this.skillsets = new SkillsetsImpl(this);\n this.synonymMaps = new SynonymMapsImpl(this);\n this.indexes = new IndexesImpl(this);\n this.service = RestProxy.create(SearchServiceRestClientService.class, this.httpPipeline);\n }",
"public interface RecipeDataSource {\n\n /**\n * Gets the recipes from the data source.\n *\n * @return the recipes from the data source.\n */\n Observable<List<Recipe>> getRecipes();\n}",
"@Override\n public Set<Datasource> getDatasources() throws ConfigurationException {\n Context context = getContext();\n Set<Datasource> result = new HashSet<>();\n int length = context.getResource().length;\n if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) {\n // Tomcat 5.5.x or Tomcat 6.0.x\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n String username = context.getResourceUsername(i);\n String url = context.getResourceUrl(i);\n String password = context.getResourcePassword(i);\n String driverClassName = context.getResourceDriverClassName(i);\n if (name != null && username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n if (tomeeVersion != null) {\n TomeeResources actualResources = getResources(false);\n if (actualResources != null) {\n result.addAll(getTomeeDatasources(actualResources));\n }\n }\n } else {\n // Tomcat 5.0.x\n ResourceParams[] resourceParams = context.getResourceParams();\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n // find the resource params for the selected resource\n for (int j = 0; j < resourceParams.length; j++) {\n if (name.equals(resourceParams[j].getName())) {\n Parameter[] params = resourceParams[j].getParameter();\n HashMap paramNameValueMap = new HashMap(params.length);\n for (Parameter parameter : params) {\n paramNameValueMap.put(parameter.getName(), parameter.getValue());\n }\n String username = (String) paramNameValueMap.get(\"username\"); // NOI18N\n String url = (String) paramNameValueMap.get(\"url\"); // NOI18N\n String password = (String) paramNameValueMap.get(\"password\"); // NOI18N\n String driverClassName = (String) paramNameValueMap.get(\"driverClassName\"); // NOI18N\n if (username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n }\n }\n }\n return result;\n }",
"public interface RemoteDataSource {\n\n interface ZhiHuDataSource {\n /**\n * 启动界面图片文字\n */\n void getSplashInfo(String res, RemoteApiCallback<SplashBean> callback);\n\n /**\n * 最新日报\n */\n void getNewsDailyList(RemoteApiCallback<NewsDailyBean> callback);\n\n /**\n * 往期日报\n */\n void getNewsDailyBefore(String date, RemoteApiCallback<NewsDailyBean> callback);\n\n /**\n * 主题日报\n */\n void getThemes(RemoteApiCallback<ThemesBean> callback);\n\n /**\n * 主题日报详情\n */\n void getThemesDetail(int id, RemoteApiCallback<ThemesListBean> callback);\n\n /**\n * 热门日报\n */\n void getHotNews(RemoteApiCallback<HotNewsBean> callback);\n\n /**\n * 日报详情\n */\n void getNewsDetailInfo(int id, RemoteApiCallback<NewsDetailBean> callback);\n\n /**\n * 日报的额外信息\n */\n void getNewsExtraInfo(int id, RemoteApiCallback<NewsExtraBean> callback);\n\n /**\n * 日报的长评论\n */\n void getLongCommentInfo(int id, RemoteApiCallback<CommentsBean> callback);\n\n /**\n * 日报的短评论\n */\n void getShortCommentInfo(int id, RemoteApiCallback<CommentsBean> callback);\n\n /**\n * 专题特刊\n */\n void getSpecials(RemoteApiCallback<SpecialsBean> callback);\n\n /**\n * 专题特刊列表\n */\n void getSpecialList(int id, RemoteApiCallback<SpecialListBean> callback);\n\n /**\n * 获取专栏的之前消息\n */\n void getBeforeSpecialListDetail(int id, long timestamp, RemoteApiCallback<SpecialListBean> callback);\n\n /**\n * 获取推荐的作者专题\n */\n void getRecommendedAuthorColumns(int limit, int offset, int seed, RemoteApiCallback<List<RecommendAuthorBean>> callback);\n\n /**\n * 获取专栏作者的详细信息\n */\n void getColumnAuthorDetail(String name, RemoteApiCallback<ColumnAuthorDetailBean> callback);\n\n /**\n * 获取推荐的文章\n */\n void getRecommendedAuthorArticles(int limit, int offset, int seed, RemoteApiCallback<List<RecommendArticleBean>> callback);\n\n /**\n * 获取某人的专题\n */\n void getColumnsOfAuthor(String name, int limit, int offset, RemoteApiCallback<List<ColumnsBean>> callback);\n\n /**\n * 获取某篇专题文章详情\n */\n void getColumnArticleDetail(int id, RemoteApiCallback<ColumnArticleDetailBean> callback);\n\n /**\n * 获取文章的评论\n */\n void getColumnComments(int id, int limit, int offset, RemoteApiCallback<List<ColumnCommentsBean>> callback);\n }\n\n interface GankDataSource {\n /**\n * 获取某个类别的信息\n */\n void getGankNewsByCategory(String category, int num, int page, RemoteApiCallback<List<GankNewsBean>> callback);\n\n /**\n * 获取某天的所有类别信息\n */\n void getGankNewsOfSomeday(int year, int month, int day, RemoteApiCallback<GankDateNewsBean> callback);\n\n /**\n * 获取随机推荐的信息\n */\n void getRecommendGankNews(String category, int num, RemoteApiCallback<List<GankNewsBean>> callback);\n }\n\n interface TianXinDataSource {\n /**\n * 获取天行数据精选\n */\n void getTianXinNews(String type, String key, int num, int page, RemoteApiCallback<List<TianXinNewsBean>> callback);\n\n /**\n * 通过关键字获取天行数据精选\n */\n void getTianXinNewsByWord(String type, String key, int num, int page, String word, RemoteApiCallback<List<TianXinNewsBean>> callback);\n }\n}",
"public interface ISearchService {\n public static final String cacheName = \"searchService\";\n\n String splitGoodsName(String goodsName);\n\n public List<Goods> sortByPrice(List<Goods> goodsList, boolean flag);\n\n public List<Goods> sortByTime(List<Goods> goodsList, boolean flag);\n\n public List<Goods> sortBySales(List<Goods> goodsList, boolean flag);\n\n List<Goods> getGoodsByWord(String goodsName);\n\n List<Goods> ascByPrice(String goodsName);\n\n List<Goods> ascBySales(String goodsName);\n\n List<Goods> ascByCreateTime(String goodsName);\n\n List<Goods> descByPrice(String goodsName);\n\n List<Goods> descBySales(String goodsName);\n\n List<Goods> descByCreateTime(String goodsName);\n}",
"public interface RegistryReplicationService extends RegistryService {\n\n GetServicesResponse getServices(GetServicesRequest request);\n\n}",
"public interface ServiceConfigurationsClient {\n /**\n * Lists of all the services associated with endpoint resource.\n *\n * <p>API to enumerate registered services in service configurations under a Endpoint Resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the paginated list of serviceConfigurations as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<ServiceConfigurationResourceInner> listByEndpointResource(String resourceUri, String endpointName);\n\n /**\n * Lists of all the services associated with endpoint resource.\n *\n * <p>API to enumerate registered services in service configurations under a Endpoint Resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the paginated list of serviceConfigurations as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<ServiceConfigurationResourceInner> listByEndpointResource(\n String resourceUri, String endpointName, Context context);\n\n /**\n * Gets the details about the service to the resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the details about the service to the resource along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<ServiceConfigurationResourceInner> getWithResponse(\n String resourceUri, String endpointName, String serviceConfigurationName, Context context);\n\n /**\n * Gets the details about the service to the resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the details about the service to the resource.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n ServiceConfigurationResourceInner get(String resourceUri, String endpointName, String serviceConfigurationName);\n\n /**\n * Create or update a service in serviceConfiguration for the endpoint resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @param serviceConfigurationResource Service details.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the service configuration details associated with the target resource along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<ServiceConfigurationResourceInner> createOrupdateWithResponse(\n String resourceUri,\n String endpointName,\n String serviceConfigurationName,\n ServiceConfigurationResourceInner serviceConfigurationResource,\n Context context);\n\n /**\n * Create or update a service in serviceConfiguration for the endpoint resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @param serviceConfigurationResource Service details.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the service configuration details associated with the target resource.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n ServiceConfigurationResourceInner createOrupdate(\n String resourceUri,\n String endpointName,\n String serviceConfigurationName,\n ServiceConfigurationResourceInner serviceConfigurationResource);\n\n /**\n * Update the service details in the service configurations of the target resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @param serviceConfigurationResource Service details.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the service configuration details associated with the target resource along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<ServiceConfigurationResourceInner> updateWithResponse(\n String resourceUri,\n String endpointName,\n String serviceConfigurationName,\n ServiceConfigurationResourcePatch serviceConfigurationResource,\n Context context);\n\n /**\n * Update the service details in the service configurations of the target resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @param serviceConfigurationResource Service details.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the service configuration details associated with the target resource.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n ServiceConfigurationResourceInner update(\n String resourceUri,\n String endpointName,\n String serviceConfigurationName,\n ServiceConfigurationResourcePatch serviceConfigurationResource);\n\n /**\n * Deletes the service details to the target resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<Void> deleteWithResponse(\n String resourceUri, String endpointName, String serviceConfigurationName, Context context);\n\n /**\n * Deletes the service details to the target resource.\n *\n * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.\n * @param endpointName The endpoint name.\n * @param serviceConfigurationName The service name.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceUri, String endpointName, String serviceConfigurationName);\n}",
"public interface SearchService extends Service {\n Observable<SearchPlacesResponse> doSearchPlacesService(String authorizationKey, int page, int size, SearchPlacesRequest searchPlacesRequest);\n Observable<SearchPlacesResponse> doSearchBreweriesService(String authorizationKey, int page, int size, SearchPlacesRequest searchPlacesRequest);\n Observable<SearchProductResponse> doSearchProductsService(String authorizationKey, int page, int size, SearchProductsRequest searchProductsRequest);\n Observable<List<String>> getSuggestPlacesService(String authorizationKey, String text, int count);\n Observable<List<String>> getSuggestBreweriesService(String authorizationKey, String text, int count);\n Observable<List<String>> getSuggestProductsService(String authorizationKey, String text, int count);\n}",
"@RemoteServiceRelativePath(\"getInstitutionCountries\")\npublic interface InstitutionCountryListService extends RemoteService {\n\tList<InstitutionCountryInstance> getInstitutionCountries(LoadConfig loadConfig) throws IllegalArgumentException;\n}",
"@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }",
"public interface SearchService {\n\n /**\n * Parameter that is appended to the generated links that contains the positive search terms and phrases of the\n * search expression. For several terms it occurs several times.\n */\n String PARAMETER_SEARCHTERM = \"search.term\";\n\n /**\n * Represents a result of the search consisting of a target page and one or more matching subresources. For use by\n * the search result renderer.\n */\n interface Result {\n\n /** The page which contains matches. */\n @NotNull\n Resource getTarget();\n\n /** The content child of the page which contains matches. */\n @NotNull\n Resource getTargetContent();\n\n /** A link that shows the target, including search terms with {@link #PARAMETER_SEARCHTERM} */\n @NotNull\n String getTargetUrl();\n\n /** The title of the search result. */\n @NotNull\n String getTitle();\n\n /** The score of the search result. */\n Float getScore();\n\n /**\n * One or more descendants of {@link #getTarget()} that potentially match the search expression. Mostly useful\n * for generating excerpts; can contain false positives in some search algorithms.\n */\n @NotNull\n List<Resource> getMatches();\n\n /** The fulltext search expression for which this result was found. */\n @NotNull\n String getSearchExpression();\n\n /**\n * A basic excerpt from the matches that demonstrates the occurrences of the terms from {@link\n * #getSearchExpression()} in this result. Might be empty if not applicable (e.g. if the search terms were found\n * in meta information). If there are several matches, we just give one excerpt. You might want to provide your\n * own implementation for that to accommodate for specific requirements.\n *\n * @return a text with the occurrences of the words marked with HTML tag em .\n */\n @NotNull\n String getExcerpt() throws SearchTermParseException;\n }\n\n /**\n * Fulltext search for resources. The resources are grouped if they are subresources of one target page, as\n * determined by the parameter targetResourceFilter.\n * <p>\n * Limitations: if the searchExpression consists of several search terms (implicitly combined with AND) this finds\n * only resources where a single property matches the whole search condition, i.e., all those terms. If several\n * resources of a page contain different subsets of those terms, the page is not found.\n *\n * @param context The context we use for the search.\n * @param selectors a selector string to determine the right search strategy, e.g. 'page'\n * @param root Optional parameter for the node below which we search.\n * @param searchExpression Mandatory parameter for the fulltext search expression to search for. For the syntax\n * see\n * {@link QueryConditionDsl.QueryConditionBuilder#contains(String)}\n * . It is advisable to avoid using AND and OR.\n * @param searchFilter an optional filter to drop resources to ignore.\n * @return possibly empty list of results\n * @see com.composum.sling.core.mapping.jcr.ResourceFilterMapping\n */\n @NotNull\n List<Result> search(@NotNull BeanContext context, @NotNull String selectors,\n @NotNull String root, @NotNull String searchExpression, @Nullable ResourceFilter searchFilter,\n int offset, @Nullable Integer limit)\n throws RepositoryException, SearchTermParseException;\n\n\n interface LimitedQuery {\n\n /**\n * Executes the query with the given limit; returns a pair of a boolean that is true when we are sure that all\n * results have been found in spite of the limit, and the results themselves.\n */\n Pair<Boolean, List<Result>> execQuery(int matchLimit);\n }\n\n /**\n * Execute the query with raising limit until the required number of results is met. We don't know in advance how\n * large we have to set the limit in the query to get all neccesary results, since each page can have an a priori\n * unknown number of matches. Thus, the query is executed with an estimated limit, and is reexecuted with tripled\n * limit if the number of results is not sufficient and there are more limits.\n *\n * @return up to limit elements of the result list with the offset first elements skipped.\n */\n @NotNull\n List<Result> executeQueryWithRaisingLimits(LimitedQuery limitedQuery, int offset, Integer limit);\n}",
"public SearchServiceRestClientImpl() {\n this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build());\n }",
"public interface IOnlineSearchClient {\n\n /**\n * Passes a result / item to this client.\n * @param dco\n */\n public void addObject(DcObject dco);\n \n /**\n * Indicates a task is currently running.\n */\n public void processing();\n \n /**\n * Indicates a task has been stopped and a new task can be started.\n */\n public void stopped();\n \n /**\n * Passes a message to this client.\n * @param message\n */\n public void addMessage(String message);\n \n /**\n * Passes an error to this client.\n * @param t \n */\n public void addError(Throwable t);\n \n /**\n * Passes an error message to this client.\n * @param t \n */\n public void addError(String message);\n \n /**\n * Passes a warning message to this client.\n * @param t \n */\n public void addWarning(String warning);\n \n /**\n * Returns the total count of added items (see {@link #addObject(DcObject)})\n */\n public int resultCount();\n \n /**\n * Returns the current module.\n * @return The module\n */\n public DcModule getModule();\n \n /**\n * Passes the count of results which are going to be processed.\n * This way the client knows how many items to expect.\n * @param i The total count.\n */\n public void processingTotal(int i);\n \n /**\n * The current result number being processed (x of x).\n * @param i\n */\n public void processed(int i);\n}",
"@Override\n\tpublic ISearchServiceAsync getSearchService() {\n\t\treturn ClientFactoryImpl.I_SEARCH_SERVICE_ASYNC;\n\t}",
"public interface SearchService {\n\n List<GoodEntity> analyse(List<String> keywords);\n}",
"public interface StoreSearchService {\n /**\n * Returns the books for the given search.\n *\n * @param title the title of the book. To ignore this, leave it empty or use \"*\".\n * @param authors the authors of the book. To ignore this, leave it empty or use \"*\".\n * @param isbn the authors of the book. To ignore this, leave it empty or use \"*\".\n * @param publisher the publisher of the book. To ignore this, leave it empty or use \"*\".\n * @return the filtered books.\n */\n public Books getBooks(String title,String authors,String isbn,String publisher);\n}",
"public interface SearchStudentService {\n List<Student> searchStudentByName(String name);\n}",
"public interface IRemoteDataSource {\n\n\n /**\n * Retrieves the system remote configuration from the remote data source.\n *\n * @return - the retrieved RemoteConfiguration, null if some error is detected.\n */\n @Nullable\n RemoteConfiguration getSystemConfiguration();\n\n\n /**\n * Retrieves the list of movies from the remote data source.\n *\n * @return - the retrieved Movies in a MoviePage, null if some error is detected.\n */\n @Nullable\n MoviePage getMovies();\n\n\n /**\n * Retrieves the list of genres for movies from the remote data source.\n *\n * @return - the retrieved GenresPage from the server or null if an error is detected.\n */\n @Nullable\n GenresPage getGenres();\n}",
"public interface SolrService {\n\n /**\n * Save index start.\n *\n * @param userId the user id\n */\n @Transactional\n void saveIndexStart(Long userId);\n\n /**\n * Queue index.\n *\n * @param personTotaraId the person totara id\n */\n @Transactional\n void queueIndex(Long personTotaraId);\n\n /**\n * Reindex search database future.\n *\n * @return the future\n */\n @Timed\n @Async\n Future<Integer> reindexSearchDatabase();\n\n /**\n * Find last index data index data.\n *\n * @return the index data\n */\n @Transactional(readOnly = true)\n IndexData findLastIndexData();\n\n /**\n * Fin last queued data index data.\n *\n * @return the index data\n */\n IndexData finLastQueuedData();\n\n /**\n * Update index.\n *\n * @param indexData the index data\n */\n @Transactional\n void updateIndex(IndexData indexData);\n}",
"public EODataSource queryDataSource();",
"public interface RestClientService {\n\n\tCollection<Resource<MeasurementDto>> getCatalogueMeasurements(String uri, String metricName, String resourceName);\n\tResource<MeasurementDto> getMonitorMeasurement(String uri, UserCredentials user);\n\tCollection<Resource<SystemResourceDto>> getSystemResources(String uri);\n\tCollection<Resource<ComplexTypeDto>> getAvailableComplexTypes(String uri);\n\tResource<ComplexMeasurementDto> getComplexDetails(String uri);\n\tvoid addMeasurement(String uri, ComplexMeasurementOutDto measurement, UserCredentials user);\n\tvoid deleteMeasurement(String uri, UserCredentials user);\n}",
"public interface CountryService {\n\n List<City> getCitiesByRegion(int rig_id);\n List<Region> getRegionsByCountry(int con_id);\n List<Country> getCountries();\n List<CityData> searchCities(String name, int limit, int pageNo);\n CityData addCityData(PostCityData postCityData);\n\n}",
"public interface IPersonService {\n\n /**\n * List by given criteria\n * All the params are optional.\n *\n * @param searchCriteria\n * @param sort\n * @param pageIndex\n * @param pageSize\n * @return\n * @throws ServiceException\n */\n Page<Person> listByCriteria(SearchCriteria searchCriteria, String sort, Integer pageIndex, Integer pageSize) throws ServiceException;\n\n /**\n * List by given query params.\n * The query param can have the {@link com.maqs.springboot.sample.dto.SearchCriteria.Operation} as :suffix\n * For eg.\n * age:gt=25 Age is Greater Than 25 filter\n * date:btw=millis1,millis2\n *\n * @param params\n * @return\n * @throws ServiceException\n */\n Page<Person> listByQueryParams(Map<String, String> params) throws ServiceException;\n\n /**\n * List by given criteria (json string)\n * @param criteriaJson\n * @param sort\n * @param pageIndex\n * @param pageSize\n * @return\n * @throws ServiceException\n */\n Page<Person> listByCriteriaAsJson(String criteriaJson, String sort, Integer pageIndex, Integer pageSize) throws ServiceException;\n\n /**\n * Create a listByCriteriaAsJson of persons.\n * @param persons\n * @return\n */\n boolean store(List<Person> persons) throws ServiceException;\n}",
"public interface IClientService {\n Client getClientById(Long id);\n List<Client> findAll();\n}",
"public interface ElasticSearchClientService {\n\n public void add(TodoItem todoItem);\n\n public String search(String searchString);\n\n public void update(String id, TodoItem todoItem);\n\n public void delete(String id);\n\n}",
"public interface LookupManager {\n\n /**\n * Look up a service instance by the service name.\n *\n * It selects one instance from a set of instances for a given service based on round robin strategy.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance lookupInstance(String serviceName);\n\n /**\n * Look up a list of service instances for a given service.\n *\n * It returns the complete list of the service instances.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> lookupInstances(String serviceName);\n\n /**\n * Query for a service instance based on the service name and some filtering criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances of the specified Service, which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of specified Service that satisfy the ServiceInstanceQuery.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for one the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list have different Services.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of different Services which satisfy the query criteria.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get a ServiceInstance.\n *\n * It returns a ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @param instanceId\n * the istanceId\n * @return\n * the ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance getInstance(String serviceName, String instanceId);\n\n /**\n * Get all ServiceInstance List of the target Service, including the DOWN ServiceInstance.\n *\n * It will return all ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName);\n\n /**\n * Get all ServiceInstances of the specified Service, including the DOWN ServiceIntance,\n * which satisfy the query criteria on the service metadata.\n *\n * It filter all ServiceInstances of the specified Service including the ServiceInstance of OperationalStatus DOWN,\n * against the ServiceInstanceQuery.\n *\n * @param serviceName\n * the Service name.\n * @param query\n * the ServiceInstanceQuery.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Get all the ServiceInstances, including the DOWN ServiceInstance, which satisfy the query criteria on the service metadata.\n *\n * It filters all ServiceInstances of different Services, including the DOWN ServiceInstance,\n * which satisfy the query criteria.\n *\n * @param query\n * the ServiceInstanceQuery criteria.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get the all ServiceInstances in the ServiceDirectory including the DOWN ServiceInstance.\n *\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances();\n\n /**\n * Add a NotificationHandler to the Service.\n *\n * This method can check the duplicate NotificationHandler for the serviceName, if the NotificationHandler\n * already exists in the serviceName, do nothing.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void addNotificationHandler(String serviceName, NotificationHandler handler);\n\n /**\n * Remove the NotificationHandler from the Service.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void removeNotificationHandler(String serviceName, NotificationHandler handler) ;\n}",
"public interface FlexibleSearchBeanService extends BaseCrudService<SearchBean>{\n}",
"interface LinkDataSources extends LinkApi {\r\n}",
"DataSources retrieveDataSources() throws RepoxException;",
"public interface SearchKeywordService extends IService<SearchKeyword> {\n}",
"public interface IService {\n\n List<BusinessTransaction> getBTs(HttpClientBuilder httpClientBuilder, String endpoint) throws ServiceException;\n\n List<Node> getNodes(HttpClientBuilder httpClientBuilder, String endpoint) throws ServiceException;\n\n}",
"public interface VendorProductSearchFacade extends ProductSearchFacade<ProductData>\r\n{\r\n\r\n\t/**\r\n\t * get categories data from facet data for setting to vendor data\r\n\t *\r\n\t * @param vendorCode\r\n\t * the target vendor data to set categories\r\n\t * @return the vendor data contains categories data\r\n\t */\r\n\tVendorData getVendorCategories(String vendorCode);\r\n}",
"public DataSourceRegistry getDataSourceRegistry();",
"public interface SearchableList extends ListDataSource {\n Observable<List> queryList(String queryText, boolean barcodeSearch, Map<String, Object> searchParameters, AuthenticationInfo authenticationInfo, Parameters params);\n\n default Observable<ListItem> fetchItem(String id, AuthenticationInfo authenticationInfo, Parameters parameters) {\n throw new RuntimeException(\"This source does not support fetching a single item\");\n }\n}",
"public interface DataSourceWrapper<D> {\r\n\r\n public void openDataSource() throws Exception;\r\n \r\n public void preValidate() throws Exception;\r\n \r\n public void closeDataSource() throws Exception;\r\n \r\n public void setDataSource(D dataSource);\r\n \r\n public D getDataSource();\r\n \r\n public Iterator<Row> getRowIterator();\r\n \r\n}",
"public interface TransferDataSource {\n\n // region INTERFACES\n\n interface SendMoneyCallback {\n\n void onMoneySent(boolean status);\n void onFailed();\n }\n\n interface GetTransfersCallback {\n\n void onTransfersWereObtained(List<Transfer> transfers);\n void onContactTransfersLoaded(List<ContactTransfer> contactTransfers);\n void onDataNotAvailable();\n }\n\n // endregion\n\n // region METHODS\n\n void sendMoney(String id, String authToken, double moneyValue, SendMoneyCallback callback);\n\n void getTransfers(String authToken, GetTransfersCallback callback);\n\n int deleteAllTransfers();\n\n void saveTransfers(List<Transfer> transfers);\n\n // endregion\n}",
"public interface TrackDatasource {\n\n}",
"public ArrayList<DataSource> getDatasources() {\n return datasources;\n }",
"public interface DataDictionaryService {\n}",
"public interface ItemService {\n\n /**\n * 导入商品数据到索引库\n * @return\n */\n TaotaoResult importAllItems() throws SolrServerException, IOException;\n}",
"public interface DataShowService {\n\n List<Map<String,Object>> getCitySessionSummary(Map<String,Object> params);\n\n List<Map<String, Object>> getCitys();\n\n List<Integer> getCitySessions(Integer city_id);\n\n List<String> getCitySrcs(Integer city_id);\n\n List<Map<String, Object>> getSrcdatabySessions(Map<String,Object> params);\n}",
"public interface CaseDocumentsAttachmentsSearchService extends XSearchService {\n\n public XResultSet getAttachments(Map<String, String> params);\n\n}",
"public interface SupplierIndexService {\n\n /**\n * 供应商全量脚本\n */\n @Export\n Response<Boolean> fullDump();\n\n /**\n * 供应商增量脚本\n * @param interval 时间间隔,单位分钟,一般为15分钟\n */\n @Export(paramNames = {\"interval\"})\n Response<Boolean> deltaDump(int interval);\n\n /**\n *\n * @param ids 供应商id列表\n * @param status 供应商状态\n */\n Response<Boolean> realTimeIndex(List<Long> ids, User.SearchStatus status);\n}",
"public interface QueriesClient {\n /**\n * Gets a list of Queries defined within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with {@link\n * PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<LogAnalyticsQueryPackQueryInner> list(String resourceGroupName, String queryPackName);\n\n /**\n * Gets a list of Queries defined within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param top Maximum items returned in page.\n * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only\n * return the query information.\n * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with {@link\n * PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<LogAnalyticsQueryPackQueryInner> list(\n String resourceGroupName,\n String queryPackName,\n Long top,\n Boolean includeBody,\n String skipToken,\n Context context);\n\n /**\n * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with {@link\n * PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<LogAnalyticsQueryPackQueryInner> search(\n String resourceGroupName,\n String queryPackName,\n LogAnalyticsQueryPackQuerySearchProperties querySearchProperties);\n\n /**\n * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.\n * @param top Maximum items returned in page.\n * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only\n * return the query information.\n * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with {@link\n * PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<LogAnalyticsQueryPackQueryInner> search(\n String resourceGroupName,\n String queryPackName,\n LogAnalyticsQueryPackQuerySearchProperties querySearchProperties,\n Long top,\n Boolean includeBody,\n String skipToken,\n Context context);\n\n /**\n * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a specific Log Analytics Query defined within a Log Analytics QueryPack.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n LogAnalyticsQueryPackQueryInner get(String resourceGroupName, String queryPackName, String id);\n\n /**\n * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<LogAnalyticsQueryPackQueryInner> getWithResponse(\n String resourceGroupName, String queryPackName, String id, Context context);\n\n /**\n * Adds or Updates a specific Query within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics\n * QueryPack.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a Log Analytics QueryPack-Query definition.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n LogAnalyticsQueryPackQueryInner put(\n String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload);\n\n /**\n * Adds or Updates a specific Query within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics\n * QueryPack.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a Log Analytics QueryPack-Query definition along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<LogAnalyticsQueryPackQueryInner> putWithResponse(\n String resourceGroupName,\n String queryPackName,\n String id,\n LogAnalyticsQueryPackQueryInner queryPayload,\n Context context);\n\n /**\n * Adds or Updates a specific Query within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics\n * QueryPack.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a Log Analytics QueryPack-Query definition.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n LogAnalyticsQueryPackQueryInner update(\n String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload);\n\n /**\n * Adds or Updates a specific Query within a Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics\n * QueryPack.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a Log Analytics QueryPack-Query definition along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<LogAnalyticsQueryPackQueryInner> updateWithResponse(\n String resourceGroupName,\n String queryPackName,\n String id,\n LogAnalyticsQueryPackQueryInner queryPayload,\n Context context);\n\n /**\n * Deletes a specific Query defined within an Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceGroupName, String queryPackName, String id);\n\n /**\n * Deletes a specific Query defined within an Log Analytics QueryPack.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param queryPackName The name of the Log Analytics QueryPack resource.\n * @param id The id of a specific query defined in the Log Analytics QueryPack.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<Void> deleteWithResponse(String resourceGroupName, String queryPackName, String id, Context context);\n}",
"@RemoteServiceRelativePath(\"data\")\npublic interface DataService extends RemoteService {\n\n\tUserInfo loginFromSession();\n\n\tvoid logout();\n\n\tIBasic save(IBasic iBasic);\n\n\tList<IBasic> saves(List<IBasic> iBasics);\n\n\tvoid delete(IBasic iBasic);\n\n\tvoid deletes(List<IBasic> iBasics);\n\n\tList<Product> getAllProducts();\n\n\tList<ActivityInfo> getActivities();\n\n\tList<ActionInfo> getActions();\n}",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"public interface AnomalySearchService extends RemoteService {\r\n /**\r\n * Returns a list of available disease, or tumor, types\r\n *\r\n * @return list of disease types\r\n * @throws SearchServiceException\r\n */\r\n List<Disease> getDiseases() throws SearchServiceException;\r\n\r\n /**\r\n * Returns a list of ColumnType objects. These is used to build the anomaly filter UI.\r\n * The same objects are then sent through processFilter to execute the filter.\r\n *\r\n * @param disease Disease abbreviation\r\n * @return the list of ColumnType objects for this disease\r\n * @throws SearchServiceException\r\n */\r\n List<ColumnType> getColumnTypes(String disease) throws SearchServiceException;\r\n\r\n /**\r\n * Executes an anomaly filter. Returns the first page of anomaly results.\r\n *\r\n * @param filter Filter specifier\r\n * @return page of results\r\n * @throws SearchServiceException\r\n */\r\n Results processFilter(FilterSpecifier filter) throws SearchServiceException;\r\n\r\n /**\r\n * Fetches any page of anomaly results.\r\n *\r\n * @param page Page number to fetch. One-based\r\n * @return page of results\r\n * @throws SearchServiceException\r\n */\r\n Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;\r\n\r\n /**\r\n * Changes number of rows per page. Returns the first page again, with the new count.\r\n *\r\n * @param listBy\r\n * @param rowsPerPage\r\n * @return\r\n * @throws SearchServiceException\r\n */\r\n Results setRowsPerPage(FilterSpecifier.ListBy listBy, int rowsPerPage) throws SearchServiceException;\r\n\r\n /**\r\n * Sorts results by any column; returns the first page.\r\n *\r\n * @param sortspec the specifier\r\n * @return first resultspage\r\n * @throws SearchServiceException\r\n */\r\n Results sortResults(FilterSpecifier.ListBy listBy, SortSpecifier sortspec) throws SearchServiceException;\r\n\r\n /**\r\n * Returns information about a pathway, including a link to pathway graphic.\r\n *\r\n * @param sps\r\n * @return\r\n * @throws SearchServiceException\r\n */\r\n SinglePathwayResults getSinglePathway(SinglePathwaySpecifier sps) throws SearchServiceException;\r\n\r\n Results getPivotPage(FilterSpecifier.ListBy sourceListby, String rowName, FilterSpecifier filter) throws SearchServiceException;\r\n\r\n /**\r\n * Returns URL to the user guide.\r\n *\r\n * @return\r\n * @throws SearchServiceException\r\n */\r\n String getUserGuideLocation() throws SearchServiceException;\r\n\r\n /**\r\n * Returns URL to the HTML version of the user guide.\r\n *\r\n * @return\r\n */\r\n String getOnlineHelpLocation();\r\n\r\n /**\r\n * Returns tooltip text to be displayed in popups in the data browser.\r\n *\r\n * @return\r\n * @throws SearchServiceException\r\n */\r\n TooltipTextMap getTooltipText() throws SearchServiceException;\r\n\r\n /**\r\n * Client regularly sends keepalive message to server, so server will keep session open.\r\n * Allows servlet to dump session within a few minutes after user navigates away.\r\n */\r\n void keepAlive();\r\n\r\n /**\r\n * Method used by export functionality in main results tables. Since the result set is held by the server,\r\n * it's not necessary to serialize and send the results through the interface.\r\n *\r\n * @return the export file name\r\n * @throws SearchServiceException if needed\r\n */\r\n String exportResultsData(FilterSpecifier.ListBy listBy, String filename) throws SearchServiceException;\r\n\r\n /**\r\n * Method used by export functionality in pivot tables. Since the result set is held by the client,\r\n * it IS necessary to serialize and send the results through the interface.\r\n *\r\n * @return the export file name\r\n * @throws SearchServiceException if needed\r\n */\r\n String exportPivotResultsData(FilterSpecifier.ListBy listBy, String filename, Results results) throws SearchServiceException;\r\n\r\n\r\n /**\r\n * Serializable exception class which is thrown for any error that occurs on the server\r\n * which needs to be reported to the client.\r\n */\r\n public class SearchServiceException extends Exception implements IsSerializable {\r\n public SearchServiceException() {\r\n }\r\n\r\n public SearchServiceException(String message) {\r\n super(message);\r\n }\r\n\r\n public SearchServiceException(Throwable t) {\r\n super(t);\r\n }\r\n }\r\n\r\n}",
"public List getRequestedDataSources() {\r\n\t\treturn requestedDataSources;\r\n\t}",
"public List<ServerServices> searchExternalService(int servId, String dataPort, String servicePort);",
"@RemoteServiceRelativePath(\"dataService\")\npublic interface DataService extends RemoteService {\n ArrayList<Point> getPoints(int width, int height, int i, int j) throws IllegalArgumentException,\n IOException;\n}",
"@Override\n\tpublic void setDataSource(DataSource dataSource) {\n\t}",
"public interface AddressService extends GenericService<Address> {\n\n public List<Address> findAddressesByPatient(Patient patient);\n}",
"protected interface ISearchIndex<T> extends Iterable<T> {\n List<T> radius(T center, double radius);\n }",
"public List<CatalogService> getService(String service);",
"public interface ProductListDataSource {\n Observable<List<ProductItem>> getProducts();\n}",
"@Override\r\n\tpublic List<sn.ucad.master.assurance.bo.Service> findAllService() {\n\t\treturn serviceRepository.findAll();\r\n\t}",
"public interface ICookService {\n\n\n @GET(MyContants.Cook_Service_CategoryQuery)\n Observable<CategorySubscriberResultInfo> getCategoryQuery(@Query(MyContants.Cook_Parameter_Key) String key);\n\n @GET(MyContants.Cook_Service_MenuSearch)\n Observable<SearchCookMenuSubscriberResultInfo> searchCookMenuByID(\n @Query(MyContants.Cook_Parameter_Key) String key\n , @Query(MyContants.Cook_Parameter_Cid) String cid\n , @Query(MyContants.Cook_Parameter_Page) int page\n , @Query(MyContants.Cook_Parameter_Size) int size);\n\n @GET(MyContants.Cook_Service_MenuSearch)\n Observable<SearchCookMenuSubscriberResultInfo> searchCookMenuByName(\n @Query(MyContants.Cook_Parameter_Key) String key\n , @Query(MyContants.Cook_Parameter_Name) String name\n , @Query(MyContants.Cook_Parameter_Page) int page\n , @Query(MyContants.Cook_Parameter_Size) int size);\n\n}",
"public interface ImageSearchService {\n\n /**\n * Register an image into the search instance.\n *\n * @param imageData Image data in JPEG or PNG format.\n * @param imageType Image format.\n * @param uuid Unique identifier of the image.\n */\n void register(byte[] imageData, ObjectImageType imageType, String uuid);\n\n /**\n * Un-register an image from the search instance.\n *\n * @param uuid Unique identifier of the image.\n */\n void unregister(String uuid);\n\n /**\n * Find all images similar to the given one.\n *\n * @param imageData Image to match with registered ones in the search instance.\n * @param objectRegion object region to search.\n * @return Found images UUIDs and raw response.\n */\n ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);\n\n /**\n * Check the image search configuration is correct by making a fake search request.\n *\n * @param configuration Configuration to check.\n */\n void checkImageSearchConfiguration(Configuration configuration) throws InvalidConfigurationException;\n}",
"public interface AWSServiceCatalog {\n\n /**\n * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata\n * (such as supported regions) of the service.\n *\n * @see RegionUtils#getRegionsForService(String)\n */\n String ENDPOINT_PREFIX = \"servicecatalog\";\n\n /**\n * Overrides the default endpoint for this client (\"servicecatalog.us-east-1.amazonaws.com\"). Callers can use this\n * method to control which AWS region they want to work with.\n * <p>\n * Callers can pass in just the endpoint (ex: \"servicecatalog.us-east-1.amazonaws.com\") or a full URL, including the\n * protocol (ex: \"servicecatalog.us-east-1.amazonaws.com\"). If the protocol is not specified here, the default\n * protocol from this client's {@link ClientConfiguration} will be used, which by default is HTTPS.\n * <p>\n * For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available\n * endpoints for all AWS services, see: <a\n * href=\"http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912\">\n * http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912</a>\n * <p>\n * <b>This method is not threadsafe. An endpoint should be configured when the client is created and before any\n * service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in\n * transit or retrying.</b>\n *\n * @param endpoint\n * The endpoint (ex: \"servicecatalog.us-east-1.amazonaws.com\") or a full URL, including the protocol (ex:\n * \"servicecatalog.us-east-1.amazonaws.com\") of the region specific AWS endpoint this client will communicate\n * with.\n */\n void setEndpoint(String endpoint);\n\n /**\n * An alternative to {@link AWSServiceCatalog#setEndpoint(String)}, sets the regional endpoint for this client's\n * service calls. Callers can use this method to control which AWS region they want to work with.\n * <p>\n * By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the\n * {@link ClientConfiguration} supplied at construction.\n * <p>\n * <b>This method is not threadsafe. A region should be configured when the client is created and before any service\n * requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit\n * or retrying.</b>\n *\n * @param region\n * The region this client will communicate with. See {@link Region#getRegion(com.amazonaws.regions.Regions)}\n * for accessing a given region. Must not be null and must be a region where the service is available.\n *\n * @see Region#getRegion(com.amazonaws.regions.Regions)\n * @see Region#createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)\n * @see Region#isServiceSupported(String)\n */\n void setRegion(Region region);\n\n /**\n * <p>\n * Retrieves information about a specified product.\n * </p>\n * <p>\n * This operation is functionally identical to <a>DescribeProductView</a> except that it takes as input\n * <code>ProductId</code> instead of <code>ProductViewId</code>.\n * </p>\n * \n * @param describeProductRequest\n * @return Result of the DescribeProduct operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.DescribeProduct\n */\n DescribeProductResult describeProduct(DescribeProductRequest describeProductRequest);\n\n /**\n * <p>\n * Retrieves information about a specified product.\n * </p>\n * <p>\n * This operation is functionally identical to <a>DescribeProduct</a> except that it takes as input\n * <code>ProductViewId</code> instead of <code>ProductId</code>.\n * </p>\n * \n * @param describeProductViewRequest\n * @return Result of the DescribeProductView operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.DescribeProductView\n */\n DescribeProductViewResult describeProductView(DescribeProductViewRequest describeProductViewRequest);\n\n /**\n * <p>\n * Provides information about parameters required to provision a specified product in a specified manner. Use this\n * operation to obtain the list of <code>ProvisioningArtifactParameters</code> parameters available to call the\n * <a>ProvisionProduct</a> operation for the specified product.\n * </p>\n * \n * @param describeProvisioningParametersRequest\n * @return Result of the DescribeProvisioningParameters operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.DescribeProvisioningParameters\n */\n DescribeProvisioningParametersResult describeProvisioningParameters(DescribeProvisioningParametersRequest describeProvisioningParametersRequest);\n\n /**\n * <p>\n * Retrieves a paginated list of the full details of a specific request. Use this operation after calling a request\n * operation (<a>ProvisionProduct</a>, <a>TerminateProvisionedProduct</a>, or <a>UpdateProvisionedProduct</a>).\n * </p>\n * \n * @param describeRecordRequest\n * @return Result of the DescribeRecord operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.DescribeRecord\n */\n DescribeRecordResult describeRecord(DescribeRecordRequest describeRecordRequest);\n\n /**\n * <p>\n * Returns a paginated list of all paths to a specified product. A path is how the user has access to a specified\n * product, and is necessary when provisioning a product. A path also determines the constraints put on the product.\n * </p>\n * \n * @param listLaunchPathsRequest\n * @return Result of the ListLaunchPaths operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.ListLaunchPaths\n */\n ListLaunchPathsResult listLaunchPaths(ListLaunchPathsRequest listLaunchPathsRequest);\n\n /**\n * <p>\n * Returns a paginated list of all performed requests, in the form of RecordDetails objects that are filtered as\n * specified.\n * </p>\n * \n * @param listRecordHistoryRequest\n * @return Result of the ListRecordHistory operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.ListRecordHistory\n */\n ListRecordHistoryResult listRecordHistory(ListRecordHistoryRequest listRecordHistoryRequest);\n\n /**\n * <p>\n * Requests a <i>Provision</i> of a specified product. A <i>ProvisionedProduct</i> is a resourced instance for a\n * product. For example, provisioning a CloudFormation-template-backed product results in launching a CloudFormation\n * stack and all the underlying resources that come with it.\n * </p>\n * <p>\n * You can check the status of this request using the <a>DescribeRecord</a> operation.\n * </p>\n * \n * @param provisionProductRequest\n * @return Result of the ProvisionProduct operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @throws DuplicateResourceException\n * The specified resource is a duplicate.\n * @sample AWSServiceCatalog.ProvisionProduct\n */\n ProvisionProductResult provisionProduct(ProvisionProductRequest provisionProductRequest);\n\n /**\n * <p>\n * Returns a paginated list of all the ProvisionedProduct objects that are currently available (not terminated).\n * </p>\n * \n * @param scanProvisionedProductsRequest\n * @return Result of the ScanProvisionedProducts operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.ScanProvisionedProducts\n */\n ScanProvisionedProductsResult scanProvisionedProducts(ScanProvisionedProductsRequest scanProvisionedProductsRequest);\n\n /**\n * <p>\n * Returns a paginated list all of the <code>Products</code> objects to which the caller has access.\n * </p>\n * <p>\n * The output of this operation can be used as input for other operations, such as <a>DescribeProductView</a>.\n * </p>\n * \n * @param searchProductsRequest\n * @return Result of the SearchProducts operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @sample AWSServiceCatalog.SearchProducts\n */\n SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);\n\n /**\n * <p>\n * Requests termination of an existing ProvisionedProduct object. If there are <code>Tags</code> associated with the\n * object, they are terminated when the ProvisionedProduct object is terminated.\n * </p>\n * <p>\n * This operation does not delete any records associated with the ProvisionedProduct object.\n * </p>\n * <p>\n * You can check the status of this request using the <a>DescribeRecord</a> operation.\n * </p>\n * \n * @param terminateProvisionedProductRequest\n * @return Result of the TerminateProvisionedProduct operation returned by the service.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.TerminateProvisionedProduct\n */\n TerminateProvisionedProductResult terminateProvisionedProduct(TerminateProvisionedProductRequest terminateProvisionedProductRequest);\n\n /**\n * <p>\n * Requests updates to the configuration of an existing ProvisionedProduct object. If there are tags associated with\n * the object, they cannot be updated or added with this operation. Depending on the specific updates requested,\n * this operation may update with no interruption, with some interruption, or replace the ProvisionedProduct object\n * entirely.\n * </p>\n * <p>\n * You can check the status of this request using the <a>DescribeRecord</a> operation.\n * </p>\n * \n * @param updateProvisionedProductRequest\n * @return Result of the UpdateProvisionedProduct operation returned by the service.\n * @throws InvalidParametersException\n * One or more parameters provided to the operation are invalid.\n * @throws ResourceNotFoundException\n * The specified resource was not found.\n * @sample AWSServiceCatalog.UpdateProvisionedProduct\n */\n UpdateProvisionedProductResult updateProvisionedProduct(UpdateProvisionedProductRequest updateProvisionedProductRequest);\n\n /**\n * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and\n * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client\n * has been shutdown, it should not be used to make any more requests.\n */\n void shutdown();\n\n /**\n * Returns additional metadata for a previously executed successful request, typically used for debugging issues\n * where a service isn't acting as expected. This data isn't considered part of the result data returned by an\n * operation, so it's available through this separate, diagnostic interface.\n * <p>\n * Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic\n * information for an executed request, you should use this method to retrieve it as soon as possible after\n * executing a request.\n *\n * @param request\n * The originally executed request.\n *\n * @return The response metadata for the specified request, or null if none is available.\n */\n ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);\n\n}",
"@Override\n public void registerEndpoints (Service sparkService) {\n sparkService.get(\"/api/bundles/:bundle/workerProxy/:workerVersion\", this::proxyGet);\n }",
"public DataService getDataService()\r\n\t{\r\n\t\treturn dataService;\r\n\t}",
"public IterableDataSource(final DataSourceImpl anotherDataSource) {\n super(anotherDataSource);\n }",
"public interface ProductService extends WebService {\n\n /**\n * Get the Product Details for the specified product(s)\n * Note: Using v1 of ProductManager\n * @param productID - \"1-2-3\" returns Product details of products with Id = 1, Id = 2 & Id = 3;\n * @return Collection of {@link Product }\n *\n */\n public Collection<Product> getProductDetails(String productID) throws ProductNotFoundException, ProductDisabledException;\n\n /**\n * Gets reviews associated with a specific product\n * @param filter - The variable defined in the {@link ServiceFilterBean} can be over-ridden by\n * REQUEST parameters.\n * @param productID - Long - the product ID\n * @return Collection of {@link ProductReview}\n * @throws ProductNotFoundException, ProductDisabledException\n */\n public Collection<ProductReview> getProductReviews(ServiceFilterBean filter, Long productID) throws ProductNotFoundException, ProductDisabledException;\n\n /**\n * Search products against all Merchants (RetailerSites), by default. If a merchant(RetailerSite) name is specified then we\n * restrict the search for the products is restricted to a specific RetailerSite\n * @param filter variable defined in the {@link ServiceFilterBean} can be over-ridden by\n * REQUEST parameters\n * @param merchantName - String merchantName, which essentially is RetailerSite\n * @return Collection of {@link Product}\n * @throws WebServiceException - Exception is thrown, if the parameters 'q' & 'searchFields' are not set on the REQUEST.\n */\n public Collection<Product> searchProducts(ServiceFilterBean filter, String merchantName) throws WebServiceException;\n\n /**\n * TODO: Do we need to implement this on v2\n * @param productId\n * @return\n * @throws Exception\n */\n public Integer updateProductSales(Long productId) throws Exception;\n}",
"public interface ElasticsearchRepository<T, ID extends Serializable> {\n\n /**\n * Searches for records of an entity in elasticsearch using pagination\n * @param pageable the pagination information to request\n * @param query the string query to use (see https://www.elastic.co/guide/en/elasticsearch/reference/5.6/query-dsl-query-string-query.html)\n * @return the paginated list of results\n */\n Page<T> search(Pageable pageable, String query);\n\n /**\n * Searches for records of an entity in elasticsearch using pagination\n * @param pageable the pagination information to request\n * @param query the QueryBuilder query to use (see https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-query-builders.html)\n * @return the paginated list of results\n */\n Page<T> search(Pageable pageable, QueryBuilder query);\n\n /**\n * Searches and aggregates the documents according to the given queries and aggregations\n * Note that this is the raw result from the REST ES client lib : entities are not deserialized\n * @param pageable The page information of the search\n * @param query The search query to use\n * @param aggregation The aggregation to use\n * @return The result of the query\n */\n SearchResponse search(Pageable pageable, QueryBuilder query, AggregationBuilder aggregation);\n\n /**\n * Searches and aggregates the documents according to the given queries and aggregations\n * Note that this is the raw result from the REST ES client lib : entities are not deserialized\n * @param pageable The page information of the search\n * @param query The search query to use\n * @param aggregations The aggregations to use\n * @return The result of the query\n */\n SearchResponse search(Pageable pageable, QueryBuilder query, Collection<AggregationBuilder> aggregations);\n\n /**\n * Searches for records of an entity in elasticsearch using pagination, filters and aggregations\n * @param pageable the pagination information to request\n * @param jsonQuery the Query as Json (see https://www.elastic.co/guide/en/elasticsearch/reference/5.6/query-dsl.html)\n * @return the Result object with hits and aggregations\n * @deprecated This helper is here to keep retro compatibility with search based on the low level rest API. It will be removed in the next release.\n */\n @Deprecated\n Result<T> searchComplex(Pageable pageable, String jsonQuery);\n\n /**\n * Retrieves an entity by its id.\n *\n * @param id must not be {@literal null}.\n * @return the entity with the given id or {@literal null} if none found\n * @throws IllegalArgumentException if {@code id} is {@literal null}\n */\n T findOne(ID id);\n\n /**\n * Returns whether an entity with the given id exists.\n *\n * @param id must not be {@literal null}.\n * @return true if an entity with the given id exists, {@literal false} otherwise\n * @throws IllegalArgumentException if {@code id} is {@literal null}\n */\n boolean exists(ID id);\n\n /**\n * Returns the number of entities available.\n *\n * @return the number of entities\n */\n long count();\n\n /**\n * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the\n * entity instance completely.\n *\n * @param entity The entity to save\n * @param <S> The entity that inherits T\n * @return the saved entity\n */\n <S extends T> S save(S entity);\n\n /**\n * Saves all given entities.\n *\n * @param entities The list of entities to save\n * @param <S> The entity that inherits T\n * @return the saved entities\n * @throws IllegalArgumentException in case the given entity is {@literal null}.\n */\n <S extends T> Iterable<S> save(Iterable<S> entities);\n\n /**\n * Deletes the entity with the given id.\n *\n * @param id must not be {@literal null}.\n * @throws IllegalArgumentException in case the given {@code id} is {@literal null}\n */\n void delete(ID id);\n\n /**\n * Deletes a given entity.\n *\n * @param entity The entity to delete\n * @throws IllegalArgumentException in case the given entity is {@literal null}.\n */\n void delete(T entity);\n\n /**\n * Deletes the given entities.\n *\n * @param entities The list of entities to delete\n * @throws IllegalArgumentException in case the given {@link Iterable} is {@literal null}.\n */\n void delete(Iterable<? extends T> entities);\n\n /**\n * Deletes all entities managed by the repository.\n */\n void deleteAll();\n\n /**\n * The Document type indexed by this repository\n * @return the class of the document\n */\n Class<T> getIndexedClass();\n\n}",
"IDataSet service( IContextHeader ich, IDataSet arg ) throws Exception;",
"private Iterable<Service> loadServiceData() {\n return services;\n }",
"public interface TestService extends ISimpleTableService<Test>{\n public String test();\n\n public List<Test> findAll();\n}",
"public interface SalesDateLocationDetailService extends BaseService<SalesDateLocationDetailHolder>,\r\n DBActionService<SalesDateLocationDetailHolder>\r\n{\r\n public List<SalesDateLocationDetailHolder> selectSalesLocationDetailByKey(BigDecimal salesOid) throws Exception;\r\n}",
"public interface ClientService {\n\n void add(String name, String country);\n\n List<Client> findAll();\n\n Client findById(int i);\n}",
"PagedIterable<SharedPrivateLinkResource> listByService(\n String resourceGroupName, String searchServiceName, UUID clientRequestId, Context context);",
"@Override\n\tpublic DataSource getDataSource() {\t\t\n\t\treturn dataSource;\n\t}",
"@Override\n\tpublic List<ServiceInfo> search(String keywords) {\n\t\treturn null;\n\t}",
"public interface GenreDataSource {\n interface LoadGenresCallback {\n void onGenresLoaded(List<Genre> genres);\n\n void onDataNotAvailable();\n }\n\n interface RemoteDataSource {\n void loadGenres(LoadGenresCallback callback);\n }\n}",
"public interface IDocumentaryService {\n\n public List<Documentary> getByOffset(int offset);\n\n public int getCount();\n\n public Documentary getById(String id);\n\n public int insert(Documentary doc);\n\n public int update(Documentary doc);\n\n public List<Documentary> search(String key);\n}",
"public interface CustomerService {\n\n LinkedList getCustomers();\n\n HashMap getCustomersReports(List ids);\n\n}",
"public void service(ServiceManager manager) throws ServiceException {\n super.service(manager);\n\n iClient = (IndexClient) manager.lookup(IndexClient.ROLE);\n broker = (EventBroker) manager.lookup(EventBroker.ROLE);\n try {\n broker.registerEvent(UrlResolvedEvent.ID);\n } catch (EventAlreadyRegisteredException e) {\n // event was already registered, so we have nothing more to do here\n }\n\n // the repository is lazily initialized to avoid circular dependency\n // between SourceResolver and JackrabbitRepository that leads to a\n // StackOverflowError at initialization time\n }"
]
| [
"0.7729329",
"0.59201163",
"0.58811724",
"0.5632606",
"0.5573845",
"0.5572894",
"0.55336106",
"0.5461923",
"0.54429543",
"0.54297084",
"0.53890365",
"0.5371905",
"0.5370064",
"0.52827215",
"0.5265876",
"0.5259381",
"0.5232016",
"0.5231449",
"0.522722",
"0.5197813",
"0.5196246",
"0.5189468",
"0.51880056",
"0.5187716",
"0.51758844",
"0.5142768",
"0.5141805",
"0.5141535",
"0.51367",
"0.51238817",
"0.5115236",
"0.5112161",
"0.50977427",
"0.50936854",
"0.5090795",
"0.5090142",
"0.50748837",
"0.5074332",
"0.5071349",
"0.5066166",
"0.50648415",
"0.50644",
"0.5052455",
"0.5050157",
"0.5047021",
"0.50324345",
"0.5032394",
"0.5027108",
"0.50229895",
"0.5012429",
"0.49990928",
"0.4998913",
"0.49984688",
"0.49957052",
"0.49947214",
"0.4992752",
"0.4980981",
"0.49806654",
"0.49728736",
"0.49723536",
"0.49565968",
"0.49537978",
"0.49439692",
"0.49395958",
"0.49376112",
"0.4930043",
"0.49257252",
"0.49173975",
"0.49173975",
"0.49173975",
"0.4908517",
"0.4904242",
"0.48640755",
"0.48630893",
"0.48628247",
"0.48597673",
"0.48575544",
"0.48483068",
"0.48283595",
"0.48156035",
"0.4813856",
"0.4813702",
"0.4806622",
"0.4800875",
"0.47991812",
"0.47965574",
"0.47944605",
"0.47936916",
"0.47928688",
"0.47868356",
"0.47856295",
"0.4781693",
"0.47813013",
"0.47777933",
"0.47737235",
"0.4769716",
"0.47629327",
"0.4755051",
"0.47545704",
"0.4753418"
]
| 0.65638995 | 1 |
Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_login, menu); | @Override
public boolean onCreateOptionsMenu(Menu menu) {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_login, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu)\r\n\t{\n\t\tgetMenuInflater().inflate(R.menu.activity_login, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.login, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.login, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.login, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.login, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.login, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.login, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login_, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login_screen, menu);\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login_screen, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login_screen, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login_screen, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getSupportMenuInflater().inflate(R.menu.login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.user_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.login_page, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n\n\n }",
"@Override\n// this runs when the options menu is created\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_log_in, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (AppConstant.IS_LOGIN)\n getMenuInflater().inflate(R.menu.main_logout, menu);\n else\n getMenuInflater().inflate(R.menu.main_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.new_user_login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(dozaengine.nanocluster.R.menu.login, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main_logged_in, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login_uber, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.logged, menu);\n\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_check_login_status, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n if(loadFinish==true) {\n if (loggedin == true) {\n menu.findItem(R.id.login).setVisible(false);\n menu.findItem(R.id.signout).setVisible(true);\n } else {\n menu.findItem(R.id.login).setVisible(true);\n menu.findItem(R.id.signout).setVisible(false);\n }\n }\n\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\t\r\n\t\tmenu.getItem(0).setIcon(R.drawable.menu_icon);\r\n\t\tmenu.getItem(0).setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {\r\n\t public boolean onMenuItemClick(MenuItem item) {\r\n\t Intent settingsIntent = new Intent(LoginActivity.this, SettingsActivity.class);\r\n\t LoginActivity.this.startActivity(settingsIntent);\r\n\t return false;\r\n\t }\r\n\t });\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //Inflates the menu menu_other which includes logout and quit functions.\n getMenuInflater().inflate(R.menu.my_account, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (isLoggedIn()) {\n getMenuInflater().inflate(R.menu.main, menu);\n return true;\n } else {\n return false;\n }\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.sign_in, menu);\n\t\treturn true;\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\r\n FirebaseUser currentUser = mAuth.getCurrentUser();\r\n MenuItem itemLogin = menu.findItem(R.id.login);\r\n MenuItem itemLogout = menu.findItem(R.id.logout);\r\n if (currentUser != null) {\r\n itemLogin.setVisible(false);\r\n itemLogout.setVisible(true);\r\n } else {\r\n itemLogin.setVisible(true);\r\n itemLogout.setVisible(false);\r\n }\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_sign_in, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.user_menu, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.user_menu, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_login_payment, menu);\n return true;\n }",
"public boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);// Menu Resource, Menu\n\t\tMenuItem item_logout = menu.findItem(R.id.menu_logout);\n\t\tMenuItem item_login = menu.findItem(R.id.menu_login);\n\n\t\tif (AadhaarUtil.mCurrentUser == AadhaarUtil.USER_CUSTOMER) {\n\t\t\titem_login.setVisible(false);\n\t\t\titem_logout.setVisible(true);\n\t\t} else if (AadhaarUtil.mCurrentUser == AadhaarUtil.USER_PARTNER) {\n\t\t\titem_logout.setVisible(false);\n\t\t\titem_login.setVisible(true);\n\t\t}\n\t\t\n\t\tMenuItem item_my_profile = menu.findItem(R.id.menu_my_profile);\n\t\tif (null != AadhaarUtil.photo) {\n\t\t\titem_my_profile.setIcon(new BitmapDrawable(getResources(),BitmapFactory.decodeByteArray(AadhaarUtil.photo, 0, AadhaarUtil.photo.length)));\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.account, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_account, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n super.onCreateOptionsMenu(menu);\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.logomenu, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tLog.d(TAG, \"Inflating menu\");\n\t\t// Menu layout can be found in xml resource\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\tLog.d(TAG, \"Menu inflated\");\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.user_dashboard, menu);\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.accounts, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.drawermenuuser, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_user_registration, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_user_list, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.splash_screen, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.user_home, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.user_home, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_layout, menu);\n\t\treturn true;\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_splash__screen, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tthis.getMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n getMenuInflater().inflate(R.menu.action_menu, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.tolbarlogout, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.tolbarlogout, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.my_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\t\t\t\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\t\t\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_menu, menu);\n\t\treturn true;\n\t}"
]
| [
"0.8108427",
"0.80867785",
"0.8078204",
"0.8078204",
"0.8078204",
"0.8078204",
"0.8078204",
"0.8078204",
"0.8067871",
"0.80578095",
"0.8034486",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8034205",
"0.8028295",
"0.8021041",
"0.8010918",
"0.8010918",
"0.8002571",
"0.8002571",
"0.79892975",
"0.7984192",
"0.7984192",
"0.7984192",
"0.7984192",
"0.79292643",
"0.79182845",
"0.79075855",
"0.7903778",
"0.78323394",
"0.77665746",
"0.77653486",
"0.77550215",
"0.77482784",
"0.76355994",
"0.75105095",
"0.74426913",
"0.7420779",
"0.7419954",
"0.74138325",
"0.741198",
"0.73857415",
"0.73588383",
"0.7358619",
"0.72853494",
"0.7264779",
"0.72095066",
"0.7192756",
"0.7183107",
"0.7140578",
"0.71338713",
"0.7128903",
"0.7122454",
"0.7091135",
"0.707502",
"0.70507854",
"0.70424163",
"0.70153475",
"0.70015836",
"0.69932294",
"0.6986946",
"0.6986946",
"0.6975923",
"0.6973293",
"0.69680053",
"0.6962359",
"0.69531065",
"0.6948951",
"0.6948131",
"0.6945298",
"0.6945298",
"0.69415325",
"0.69396234",
"0.6937163",
"0.6937163",
"0.6937163",
"0.6937163",
"0.69335365",
"0.6931232",
"0.69290626"
]
| 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n 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 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 int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
]
| [
"0.7904035",
"0.78057915",
"0.77662706",
"0.7727266",
"0.76317817",
"0.76219225",
"0.7584542",
"0.7530336",
"0.7487623",
"0.7457442",
"0.7457442",
"0.7438915",
"0.7421425",
"0.7403424",
"0.73923",
"0.7387485",
"0.7379756",
"0.7370862",
"0.73622537",
"0.73564696",
"0.7345994",
"0.73419464",
"0.73299843",
"0.7327844",
"0.7326043",
"0.73197556",
"0.7317143",
"0.73140186",
"0.7304616",
"0.7304616",
"0.7302084",
"0.7298582",
"0.72940314",
"0.7287458",
"0.72837925",
"0.7281312",
"0.7279086",
"0.7260266",
"0.7260266",
"0.7260266",
"0.7259928",
"0.7259814",
"0.7250412",
"0.72233367",
"0.72201204",
"0.7218085",
"0.72047156",
"0.71999466",
"0.7198876",
"0.719304",
"0.71861094",
"0.7177511",
"0.71693677",
"0.7167732",
"0.7154041",
"0.71537524",
"0.71356887",
"0.7135142",
"0.7135142",
"0.71303266",
"0.71286845",
"0.7124354",
"0.71238357",
"0.71235263",
"0.71224594",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71173346",
"0.7117265",
"0.7116576",
"0.71150905",
"0.7112618",
"0.71099126",
"0.7109077",
"0.71057403",
"0.71000075",
"0.70982087",
"0.70952326",
"0.7093795",
"0.7093795",
"0.708655",
"0.7082642",
"0.708111",
"0.7080437",
"0.707404",
"0.70684844",
"0.70619047",
"0.70604676",
"0.7060448",
"0.7051464",
"0.70378536",
"0.70378536",
"0.7036111",
"0.70355594",
"0.70355594",
"0.7032436",
"0.7031054",
"0.70297045",
"0.701964"
]
| 0.0 | -1 |
Given a collection of items this will randomly pick an item. The random choice is via `java.util.Random` with the default constructor. | public static <X> X randomPick(Collection<X> xs) {
checkNotEmpty(xs, "xs cannot be null");
List<X> asList = xs instanceof List
? (List<X>) xs
: new ArrayList<>(xs);
return randomPick(asList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RandomFromCollectionGenerator(@Nonnull Collection<T> items) {\n this.items = ImmutableList.copyOf(checkNotNull(items, \"Collection for generation can't be null\"));\n exclusiveIndex = this.items.size();\n }",
"private ExtractedItemsCollection selectItemByChance(Collection<ExtractedItemsCollection> itemsCollections) {\n float sumOfChances = calcSumOfChances(itemsCollections);\n float currentSum = 0f;\n float rnd = (float) Rnd.get(0, (int) (sumOfChances - 1) * 1000) / 1000;\n ExtractedItemsCollection selectedCollection = null;\n for (ExtractedItemsCollection collection : itemsCollections) {\n currentSum += collection.getChance();\n if (rnd < currentSum) {\n selectedCollection = collection;\n break;\n }\n }\n return selectedCollection;\n }",
"private ExtractedItemsCollection selectItemByChance(Collection<ExtractedItemsCollection> itemsCollections) {\n float sumOfChances = calcSumOfChances(itemsCollections);\n float currentSum = 0f;\n float rnd = (float) Rnd.get(0, (int) (sumOfChances - 1) * 1000) / 1000;\n ExtractedItemsCollection selectedCollection = null;\n for (ExtractedItemsCollection collection : itemsCollections) {\n currentSum += collection.getChance();\n if (rnd < currentSum) {\n selectedCollection = collection;\n break;\n }\n }\n return selectedCollection;\n }",
"public ArrayList<RandomItem> getRandomItems();",
"public void setRandomItems(ArrayList<RandomItem> items);",
"public Item generateItem()\n {\n Random rand = new Random();\n int item = rand.nextInt(itemList.size());\n return itemList.get(item);\n }",
"public Item sample() {\n if (N == 0) throw new java.util.NoSuchElementException();\n return collection[rnd.nextInt(N)];\n }",
"public Item getRandomItem() {\n int index = 0;\n int i = (int) (Math.random() * getItems().size()) ;\n for (Item item : getItems()) {\n if (index == i) {\n return item;\n }\n index++;\n }\n return null;\n }",
"@SafeVarargs\n public RandomFromCollectionGenerator(T... items) {\n this.items = ImmutableList.copyOf(checkNotNull(items, \"Collection for generation can't be null\"));\n exclusiveIndex = this.items.size();\n }",
"@Override\r\n\tpublic Item sample() {\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\treturn item;\r\n\t}",
"public Item sample() {\n\t\t\n\t\tif(isEmpty()) throw new NoSuchElementException();\n\t\t\n\t\tint index = StdRandom.uniform(N);\n\t\t\t\n\t\t\t/*while(items[index] == null) {\n\t\t\t\tindex = StdRandom.uniform(length());\n\t\t\t}*/\n\n\t\treturn items[index];\n\t}",
"public Item sample() {\n \t\tif (size == 0) {\n \t\t\tthrow new NoSuchElementException();\n \t\t}\n \t\treturn (Item) items[StdRandom.uniform(size)];\n \t}",
"public Item sample(){\n if(size == 0){\n throw new NoSuchElementException();\n }\n int ri = StdRandom.uniform(size);\n \n Iterator<Item> it = this.iterator();\n \n for(int i = 0; i < ri; i++){\n it.next();\n }\n \n return it.next();\n }",
"public static <T> T random(Collection<T> coll)\r\n\t{\r\n\t\tif (coll.size() == 0) return null;\r\n\t\tif (coll.size() == 1) return coll.iterator().next();\r\n\t\tint index = MCore.random.nextInt(coll.size());\r\n\t\treturn new ArrayList<T>(coll).get(index);\r\n\t}",
"private static <Item extends Comparable> Item getRandomB(List<Item> items) {\n int pivotIndex = (int) (Math.random() * items.size());\n Item pivot = null;\n // Walk through the queue to find the item at the given index.\n for (Item item : items) {\n if (pivotIndex == 0) {\n pivot = item;\n break;\n }\n pivotIndex--;\n }\n return pivot;\n }",
"public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n double rand = Math.random() * N;\n int idx = (int) Math.floor(rand);\n Item item = s[idx];\n return item;\n }",
"private static ItemType random() {\n return ITEM_TYPES.get(RANDOM.nextInt(SIZE));\n }",
"public static Fruit getRandom(List<Fruit> fruits) {\r\n return fruits.get(new Random().nextInt(fruits.size()));\r\n }",
"private Item chooseValidItem()\n {\n\n // Sets the intial random value.\n int numberRandom = random.nextInt(items.size());\n\n while (trackItems.contains(items.get(numberRandom).getName())){\n numberRandom = random.nextInt(items.size());\n }\n\n // Loops until a unused value is assigned to numberRandom,\n // within the array list size.\n \n trackItems.push(items.get(numberRandom).getName());\n\n return items.get(numberRandom);\n }",
"public Item sample() {\n if(isEmpty()) throw new NoSuchElementException();\n int idx = StdRandom.uniform(size);\n return arr[idx];\n }",
"@Test\r\n\tpublic void randomTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getRandom(0);\r\n\t\t\tassertNotSame(tempSet.length, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search of random items: SQLException\");\r\n\t\t}\r\n\t}",
"public T getRandomElement() {\n\t\treturn this.itemList.get(this.getRandomIndex());\n\t}",
"public void addRandomItem(RandomItem item);",
"public static Collection<Item> generateItems(int numberOfItems) {\n Random r = new Random(97);\n if (numberOfItems > 0) {\n Collection<Item> gameItems = new Stack<>();\n int power;\n for (int i = 0; i < numberOfItems; i++) {\n\n switch (ItemType.random()) {\n case HEALTH_POTION:\n power = (r.nextInt(3) + 1) * 100;\n gameItems.add(new HealthPotion(\"HealthPotion (\" + power + \")\", power));\n break;\n case POISON:\n power = (r.nextInt(8) + 1) * 20;\n gameItems.add(new Poison(\"Poison (\" + power + \")\", power));\n break;\n case ARMOR:\n power = (r.nextInt(6) + 1) * 10;\n gameItems.add(new Armor(\"Armor (\" + power + \")\", power));\n break;\n case WEAPON:\n power = (r.nextInt(7) + 1) * 10;\n gameItems.add(new Weapon(\"Weapon (\" + power + \")\", power));\n break;\n default:\n break;\n }\n }\n return gameItems;\n }\n return null;\n }",
"public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return array[StdRandom.uniform(size)];\n }",
"public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return a[StdRandom.uniform(N)];\n }",
"private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }",
"public Item sample() {\n if (size == 0) throw new java.util.NoSuchElementException(\"Queue is empty!\");\n\n return items[StdRandom.uniform(size)];\n }",
"public Item sample() {\n\n if (size == 0) {\n throw new NoSuchElementException();\n }\n\n int r = random.nextInt(size);\n return queue[r];\n }",
"public Item sample() {\n\t\tif (size == 0)\n\t\t\tthrow new java.util.NoSuchElementException();\n\n\t\tint index = StdRandom.uniform(size);\n\t\treturn queue[index];\n\t}",
"public Item sample()\r\n {\r\n if (isEmpty()) throw new NoSuchElementException(\"Empty randomized queue\");\r\n\r\n int randomizedIdx = StdRandom.uniform(n);\r\n\r\n return a[randomizedIdx];\r\n }",
"public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }",
"public static <T> RandomSelector<T> uniform(final Collection<T> elements)\n throws IllegalArgumentException {\n requireNonNull(elements, \"collection must not be null\");\n checkArgument(!elements.isEmpty(), \"collection must not be empty\");\n\n final int size = elements.size();\n final T[] els = elements.toArray((T[]) new Object[size]);\n\n return new RandomSelector<>(els, r -> r.nextInt(size));\n }",
"public Item sample() {\n if (isEmpty())\n throw new NoSuchElementException();\n\n // Get random index [0, elements) and remove from array\n int randomIndex = StdRandom.uniform(0, elements);\n return values[randomIndex];\n }",
"public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }",
"public Item sample() {\n if (N == 0) throw new NoSuchElementException();\n int idx = StdRandom.uniform(N);\n return s[first + idx];\n }",
"public Item sample() {\n\n\t\tif (isEmpty())\n\t\t\tthrow new NoSuchElementException();\n\n\t\tint random = (int)(StdRandom.uniform() * N);\n\t\treturn arr[random];\n\t}",
"public Item sample() {\n if (n == 0) throw new NoSuchElementException();\n return arr[StdRandom.uniform(n)];\n }",
"private static Option pickRandom() {\n\t\treturn Option.values()[rand.nextInt(3)];\n\t}",
"public int getRandom() {\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return queue[StdRandom.uniform(size)];\n }",
"public static PickupType random(){\n Array<PickupType> types = new Array<PickupType>(PickupType.values());\n types.shuffle();\n return types.random();\n }",
"public Item sample(){\n if(itemCount == 0){\n throw new NoSuchElementException(\"Queue is empty\");\n }\n int rand = StdRandom.uniform(array.length);\n while(array[rand] == null){ // if it's a null value\n rand = StdRandom.uniform(array.length); // pick another one\n }\n return array[rand];\n }",
"public Item sample() {\n if (isEmpty()) {\n throw new java.util.NoSuchElementException();\n }\n int sampleIndex = StdRandom.uniform(1, size + 1);\n Item item;\n //case 1: return first item\n if (sampleIndex == 1) {\n item = first.item;\n }\n //case 2 :return last item\n else if (sampleIndex == size) {\n item = last.item;\n }\n //case 3: general case in between\n else {\n Node temp = first;\n while (sampleIndex != 1) {\n temp = temp.next;\n sampleIndex--;\n }\n item = temp.item;\n }\n return item;\n }",
"public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }",
"public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()));\r\n }",
"@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }",
"public void clearRandomItems();",
"public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }",
"public Item sample() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn queue[StdRandom.uniform(0,n)];\r\n\t\t}\r\n\t}",
"public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }",
"public Item sample() {\n if (this.isEmpty()) {\n throw new NoSuchElementException();\n }\n if (this.size == 1) {\n return this.storage[0];\n }\n else {\n return this.storage[StdRandom.uniform(this.currentIndex)];\n }\n }",
"public static Collection<Foodies> Random(String[] args, double rar){\n\t\tgetListy(args);\n\t\tdone = searchByRating(rar);\n\t\tCollections.shuffle((List<?>) done); \n\t\treturn done; \n\t}",
"public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }",
"public int getRandom() {\n Random random = new Random();\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"Empty queue\");\n\n int rdm = StdRandom.uniform(n);\n return a[rdm];\n }",
"public T next(final Random random) {\n return elements[selection.applyAsInt(random)];\n }",
"public static String[] getRandomElements(ArrayList<String> list, \n int totalItems) \n { \n Random rand = new Random(); \n \n ArrayList<String> oldList = new ArrayList<>();\n for (int i = 0; i < list.size(); i++) {\n \toldList.add(list.get(i));\n }\n \n String[] out = new String[totalItems];\n for (int i = 0; i < totalItems; i++) { \n \n // take a random index between 0 to size \n // of given List \n int randomIndex = rand.nextInt(oldList.size()); \n \n // add element in temporary list \n out[i] = oldList.get(randomIndex); \n \n // Remove selected element from original list \n oldList.remove(randomIndex); \n } \n \n return out; \n }",
"public Item sample() {\n if (size == 0) \n throw new NoSuchElementException(\"the RandomizedQueue is empty\");\n return rqArrays[StdRandom.uniform(0, size)];\n }",
"public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }",
"RandomizedRarestFirstSelector(Random random) {\n this.random = random;\n }",
"public static <T> T getRandomElement(List<T> list) {\n \tint index = (int) (Math.random() * list.size());\n \treturn list.get(index);\n }",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"\");\n int i = randomNotEmptyIndex();\n return queue[i];\n }",
"public Item sample()\n {\n checkNotEmpty();\n\n return items[nextIndex()];\n }",
"@Override\r\n public Collection<Item> roll() {\r\n Collection<Item> dropItems = new ArrayList();\r\n \r\n for (LootTableItem item : this.items) {\r\n if (random.nextDouble() <= 1 / item.getChance()) {\r\n dropItems.add(item.create());\r\n }\r\n if (dropItems.size() == amount) break;\r\n }\r\n \r\n return dropItems;\r\n }",
"@Test\n\t public void randomItem() throws InterruptedException\n\t {\n\t\t \n\t\t productpage = new ProductPage(driver);\n\t\t productpage.clickOnSomePrompt();\n\t\t productdetails = productpage.clickOnRandomItem();\n\t\t\tboolean status = productdetails.isProductDEtailsPageDisplayed();\n\t\t\tAssertionHelper.updateTestStatus(status);\n\t\t\tTestBaseRunner.result = TestBaseRunner.passOrFail(status);\n\t\t\tExcelReadWrtite.updateResult(\"testData.xlsx\", \"TestScripts\", \"randomItem\", result);\n\t }",
"public int getRandom() {\n int index = (int) Math.round(Math.random()*(list.size()-1));\n return list.get(index);\n }",
"public static Dog getSomeRandomDog() {\r\n\t\treturn dogsList.get(random.nextInt(dogsList.size()));\r\n\t}",
"public int getRandom() {\n if(list.size() <= 0) return -1;\n return list.get(new Random().nextInt(list.size()));\n }",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"deque underflow \");\n Item item;\n int randomIndex = StdRandom.uniform(N);\n while(randomizedQueue[randomIndex] == null){\n randomIndex = StdRandom.uniform(N);\n }\n item = randomizedQueue[randomIndex];\n \n return item;\n }",
"public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }",
"public int getRandom() {\n int idx;\n Random rand;\n \n rand = new Random();\n idx = rand.nextInt(set.size());\n return set.get(idx);\n }",
"public int getRandom() {\n Random random = new Random();\n int val = list.get( random.nextInt(list.size()));\n return val;\n }",
"public int getRandom() {\n return elementsList.get(rand.nextInt(elementsList.size()));\n }",
"public int getRandom() {\n Random random = new Random();\n return list.get(random.nextInt(list.size()));\n }",
"public void set_random_choice()\r\n\t{\r\n\t\tfor (int i=0 ; i<size ; i++)\r\n\t\t{\r\n\t\t\tnumbers.add(get_not_selected_random_digit());\r\n\t\t}\r\n\t}",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException();\n return items[index()];\n }",
"public int getRandom() {\n int n = l.size();\n Random rand = new Random();\n return l.get(rand.nextInt(n));\n }",
"public List<Vec> sample(int count, Random rand);",
"public int getRandom() {\n Iterator<Integer> it = list.iterator();\n int i = (int) (Math.random()*list.size());\n for (int j = 0; j < i; j++) {\n it.next();\n }\n return it.next();\n }",
"private void selectRandom() {\n\n\t\tRandom randomise;\n\n\t\t// Select random char from Spinner only if it is enabled\n\t\tif (solo.getCurrentSpinners().get(0).isEnabled()) {\n\t\t\trandomise = new Random();\n\t\t\trandomCharPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t\t.getCount());\n\n\t\t\tsolo.pressSpinnerItem(0, randomCharPos);\n\t\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\t\trandomChar = solo.getCurrentSpinners().get(0).getSelectedItem()\n\t\t\t\t\t.toString();\n\t\t}\n\n\t\t// Select random act from Spinner\n\t\trandomise = new Random();\n\t\trandomActPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(1, randomActPos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomAct = solo.getCurrentSpinners().get(1).getSelectedItem()\n\t\t\t\t.toString();\n\n\t\t// Select random page from Spinner\n\t\trandomise = new Random();\n\t\trandomPagePos = randomise.nextInt(solo.getCurrentSpinners().get(2)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(2, randomPagePos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomPage = solo.getCurrentSpinners().get(2).getSelectedItem()\n\t\t\t\t.toString();\n\t}",
"public T sample() {\r\n if (size == 0) {\r\n return null;\r\n }\r\n int r = new Random().nextInt(size());\r\n return elements[r];\r\n }",
"public int getRandom() {\r\n if ((itemSize / nextIndexInCache) < 0.25) {\r\n rebuildCache();\r\n }\r\n while (true) {\r\n int i = random.nextInt(nextIndexInCache);\r\n int v = cache[i];\r\n if (contains(v)) {\r\n return v;\r\n }\r\n }\r\n }",
"public static Object getRandom(Object... kv)\n {\n return getRandom(distributeChance(kv));\n }",
"public T sample() {\r\n if (this.isEmpty()) {\r\n return null;\r\n }\r\n \r\n Random r = new Random();\r\n int rValue = r.nextInt(size);\r\n return elements[rValue];\r\n }",
"public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }",
"public RandomizedCollection() {\n\n }",
"public void rollCommonDrop() {\n\t\tRandom r=new Random();\n\t\t\n\t\tint x=r.nextInt(6);\n\t\tItem i=randomDrops.get(x);\n\t\taddItem(i.getName());\n\t\t\n\t\tevents.appendText(\"You find an \"+i.getName()+\" in your adventures!\\n\");\t// Inform player\n\t}",
"public int getRandom() {\n int n = set.size();\n if (n == 0) return 0;\n Object[] res = set.toArray();\n Random rand = new Random();\n int result = rand.nextInt(n);\n return (Integer)res[result];\n }",
"@Override\n\t\t\tpublic String pickItem(Map<String, Integer> distribution) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\t\t\tpublic String pickItem(Map<String, Integer> distribution) {\n\t\t\t\treturn null;\n\t\t\t}",
"public void addRandomItem(double x, double y) {\r\n\r\n\t\tint choice = random.nextInt(3);\r\n\r\n\t\tString weaponchoices = Resources.getString(\"weaponchoices\");\r\n\t\tString delim = Resources.getString(\"delim\");\r\n\r\n\t\tString[] options = weaponchoices.split(delim);\r\n\t\tString option = options[choice];\r\n\r\n\t\tBufferedImage itemimage = Resources.getImage(option);\r\n\t\tSpriteGroup items = playField.getGroup(\"Items\");\r\n\t\tint healthOption = Resources.getInt(\"healthOption\");\r\n\r\n\t\tif (choice == healthOption) {\r\n\t\t\tgetHealthItem(x, y, option, itemimage, items);\r\n\t\t} else {\r\n\t\t\tgetWeaponItem(x, y, option, itemimage, items);\r\n\t\t}\r\n\r\n\t}",
"private void selectRandomPlayer() {\n Random rand = new Random();\n // Restrict random number range to available indexes in the players list.\n // - 1 to offset zero-based index numbering.\n int random = rand.nextInt(players.size());\n activePlayer = players.get(random);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T sample(boolean useMostLikely) {\n\t\tif (itemProbs_.isEmpty())\n\t\t\treturn null;\n\n\t\t// If using most likely, just get the highest prob one\n\t\tif (useMostLikely)\n\t\t\treturn getOrderedElements().get(0);\n\n\t\tif (elementArray_ == null) {\n\t\t\tprobArray_ = null;\n\t\t\t// Need to use flexible element array which ignores extremely low\n\t\t\t// probability items\n\t\t\tArrayList<T> elementArray = new ArrayList<T>();\n\t\t\tfor (T element : itemProbs_.keySet()) {\n\t\t\t\tif (itemProbs_.get(element) > MIN_PROB)\n\t\t\t\t\telementArray.add(element);\n\t\t\t}\n\t\t\telementArray_ = (T[]) new Object[elementArray.size()];\n\t\t\telementArray_ = elementArray.toArray(elementArray_);\n\t\t}\n\t\tif (rebuildProbs_ || probArray_ == null)\n\t\t\tbuildProbTree();\n\n\t\tdouble val = random_.nextDouble();\n\t\tint index = Arrays.binarySearch(probArray_, val);\n\t\tif (index < 0)\n\t\t\tindex = Math.min(-index - 1, elementArray_.length - 1);\n\n\t\treturn elementArray_[index];\n\t}",
"public void shuffleItems() {\n LoadProducts(idCategory);\n }",
"public static void shuffle(java.util.List arg0, java.util.Random arg1)\n { return; }",
"public RandomizedCollection() {\n nums = new ArrayList<>();\n num2Index = new HashMap<>();\n rand = new Random();\n }",
"@Override\n protected void dropFewItems(boolean hit, int looting) {\n super.dropFewItems(hit, looting);\n if (hit && (this.rand.nextInt(3) == 0 || this.rand.nextInt(1 + looting) > 0)) {\n Item drop = null;\n switch (this.rand.nextInt(5)) {\n case 0:\n drop = Items.gunpowder;\n break;\n case 1:\n drop = Items.sugar;\n break;\n case 2:\n drop = Items.spider_eye;\n break;\n case 3:\n drop = Items.fermented_spider_eye;\n break;\n case 4:\n drop = Items.speckled_melon;\n break;\n }\n if (drop != null) {\n this.dropItem(drop, 1);\n }\n }\n }",
"public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }",
"public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }"
]
| [
"0.7407498",
"0.7383643",
"0.7383643",
"0.73521215",
"0.71355826",
"0.7083974",
"0.69958085",
"0.6982267",
"0.6933931",
"0.6799121",
"0.6785702",
"0.66705483",
"0.662567",
"0.6604544",
"0.658781",
"0.6552821",
"0.65357894",
"0.6499535",
"0.6497292",
"0.6491921",
"0.64915437",
"0.6426157",
"0.6423924",
"0.6380984",
"0.62698835",
"0.62326413",
"0.6218968",
"0.6197543",
"0.61874807",
"0.6178861",
"0.61481804",
"0.6134912",
"0.61105406",
"0.609751",
"0.6094045",
"0.60909253",
"0.6087278",
"0.6074431",
"0.6071128",
"0.60695297",
"0.6066582",
"0.6053526",
"0.60256577",
"0.60030794",
"0.6000916",
"0.5997079",
"0.59894836",
"0.59865505",
"0.5965683",
"0.5963897",
"0.59449434",
"0.5933758",
"0.5908268",
"0.58906716",
"0.5875421",
"0.58642364",
"0.58580995",
"0.5849868",
"0.583119",
"0.58107877",
"0.58018476",
"0.5791372",
"0.5760175",
"0.5757836",
"0.57562405",
"0.5747267",
"0.5724169",
"0.5715602",
"0.5698824",
"0.5693969",
"0.5688097",
"0.5680066",
"0.56589955",
"0.5657807",
"0.56470066",
"0.56298095",
"0.5626558",
"0.56162816",
"0.56110084",
"0.5610124",
"0.5596903",
"0.5594592",
"0.55797136",
"0.5566979",
"0.55618024",
"0.5560183",
"0.5559686",
"0.555745",
"0.5554868",
"0.5553258",
"0.5553258",
"0.55529195",
"0.5548394",
"0.55395657",
"0.5532807",
"0.5528477",
"0.5527933",
"0.54805905",
"0.546408",
"0.5450147"
]
| 0.6453786 | 21 |
maintains the order of the VariableUnits that are parsed from input | public Equation() {
alpha_arr = new ArrayList<LinkedList<VariableUnit>>();
for (int i = 0; i < 26; i++) {
LinkedList<VariableUnit> list = new LinkedList<VariableUnit>();
alpha_arr.add(list);
}
op_order = new LinkedList<VariableUnit>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setUnits() {\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.units != null) {\r\n\r\n if (element.name.equals(\"xspace\")) {\r\n\r\n if (element.units.equals(\"mm\")) {\r\n setUnitsOfMeasure(Unit.MILLIMETERS.getLegacyNum(), 0);\r\n } else if (element.units.equals(\"in\")) {\r\n setUnitsOfMeasure(Unit.INCHES.getLegacyNum(), 0);\r\n }\r\n }\r\n\r\n if (element.name.equals(\"yspace\")) {\r\n\r\n if (element.units.equals(\"mm\")) {\r\n setUnitsOfMeasure(Unit.MILLIMETERS.getLegacyNum(), 1);\r\n } else if (element.units.equals(\"in\")) {\r\n setUnitsOfMeasure(Unit.INCHES.getLegacyNum(), 1);\r\n }\r\n }\r\n\r\n if (element.name.equals(\"zspace\")) {\r\n\r\n if (element.units.equals(\"mm\")) {\r\n setUnitsOfMeasure(Unit.MILLIMETERS.getLegacyNum(), 2);\r\n } else if (element.units.equals(\"in\")) {\r\n setUnitsOfMeasure(Unit.INCHES.getLegacyNum(), 2);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public VariableUnit solve() {\n LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();\n\n VariableUnit vu1 = new VariableUnit(250.0, 'x');\n VariableUnit vu2 = new VariableUnit('+');\n VariableUnit vu3 = new VariableUnit(250.0, 'x');\n VariableUnit vu4 = new VariableUnit(501.0, 'x');\n VariableUnit vu5 = new VariableUnit('y');\n VariableUnit vu6 = new VariableUnit('-');\n alpha_arr.get(('x' - 'a')).addLast(vu1);\n alpha_arr.get(('x' - 'a')).addLast(vu2);\n alpha_arr.get(('x' - 'a')).addLast(vu3);\n op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);\n op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);\n assignValue(2.0, 'x');\n \n System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);\n System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);\n System.out.print(vu5);\n System.out.println();\n System.out.println(\"------------------------------\");\n \n VariableUnit temp, temp1;\n for (int i = 0; i < op_order.size(); i++) {\n \ttemp = op_order.pollFirst();\n \t\n \t\tswitch (temp.getVariable()) {\n \tcase '+':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().add(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tcase '-':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().subtract(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tdefault:\n \t\tprocessor.push(temp);\n \t\t}\n }\n\n /*\n * System.out.println(\"This equation is currently unsolvable.\");\n \tSystem.out.println(\"Try assigning values to some of the variables.\");\n */\n while (!processor.isEmpty()) {\n \top_order.addFirst(processor.pop());\n }\n \n ListIterator<VariableUnit> iter = op_order.listIterator();\n \n while ( iter.hasNext() ) {\n \tVariableUnit iter_temp = iter.next();\n \t//System.out.print(iter_temp.hasValue());\n \tif (iter_temp.hasValue()) {\n \t\tSystem.out.print( Double.toString(iter_temp.subValue()) );\n \t}\n \telse {\n \t\tSystem.out.print(iter_temp);\n \t}\n };\n System.out.println();\n \n return new VariableUnit(Double.NaN, ' ');\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 }",
"private void parseUnitLength(String line) throws IllegalArgumentException {\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tif(tokens.length != 2) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid unitLength argument\");\n\t\t}\n\t\tthis.setUnitLength(Double.parseDouble(tokens[1]));\n\t}",
"public void setAmountAndUnits(String a) {\n \t\tint i = a.indexOf(\" \");\n \t\tString d = a.substring(0, i);\n \t\tString u = a.substring(i);\n \t\t// preBoilVol.setAmount(Double.parseDouble(d.trim()));\n \t\tpreBoilVol.setUnits(u.trim());\n \t\t// postBoilVol.setAmount(Double.parseDouble(d.trim()));\n \t\tpostBoilVol.setUnits(u.trim());\n \t\tsetPostBoil(Double.parseDouble(d.trim()));\n \n \t}",
"public SortedSet<Variable> getVariableOrdering() {\n return variableOrdering;\n }",
"private List<Variable> headerVariables(String headerLine) {\n LinkedList<Variable> vars = new LinkedList<Variable>();\n Matcher matcher = headerVariablePattern.matcher(headerLine);\n while (matcher.find()) {\n String varname = matcher.group(1);\n if (null != varname) {\n Map<String,Object> attrs = new TreeMap<String,Object>();\n // assuming float for all var for now\n Variable var = new Variable(varname, NCUtil.XType.NC_FLOAT, attrs);\n vars.add(var);\n }\n }\n return vars;\n }",
"private void parseUnitLengthDegreeScaler(String line) throws IllegalArgumentException {\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tif(tokens.length == 2) {\n\t\t\tthis.setUnitLengthDegreeScaler(Double.parseDouble(tokens[1]));\n\t\t}\n\t\telse if(tokens.length == 3) {\n\t\t\tdouble firstNumber = Double.parseDouble(tokens[1].replace(\"/\", \"\"));\n\t\t\tdouble secondNumber = Double.parseDouble(tokens[2].replace(\"/\", \"\"));\n\t\t\tdouble degreeScaler = firstNumber / secondNumber;\n\t\t\tthis.setUnitLengthDegreeScaler(degreeScaler);\n\t\t}\n\t\telse if(tokens.length == 4 && tokens[2].equals(\"/\")) {\n\t\t\tdouble degreeScaler = Double.parseDouble(tokens[1]) / Double.parseDouble(tokens[3]);\n\t\t\tthis.setUnitLengthDegreeScaler(degreeScaler);\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Invalid unitLengthDegreeScaler\");\n\t\t}\n\t}",
"public void separateVariables() {\n\t\tsquareVariables = app.split(shapes, \" \");\n\t\t\n\t\t//Going through the array and turning the strings into numbers, for the values of the variables (based on position)\n\t\tfor (int i = 0; i < squareVariables.length; i++) {\n\t\t\tsize = Integer.parseInt(squareVariables[1]);\n\t\t\tposX = Integer.parseInt(squareVariables[2]);\n\t\t\tposY = Integer.parseInt(squareVariables[3]);\n\t\t\tdir1 = Integer.parseInt(squareVariables[4]);\n\t\t\tdir2 = Integer.parseInt(squareVariables[4]);\n\t\t\tvalue = Integer.parseInt(squareVariables[5]);\n\t\t}\n\t}",
"String getUnits();",
"String getUnits();",
"String getUnits();",
"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. μ\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', 'μ', ...\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}",
"TraceDefinedUnitsView definedUnits();",
"public static Object parseOutput(String varname, String output) {\n // find the variable in the output\n int index = output.indexOf(\"Variable: \" + varname);\n\n // find the type\n int typeindex = output.indexOf(\"Type: \", index);\n int newline = output.indexOf(\"\\n\", typeindex);\n String typestr = output.substring(typeindex+6, newline);\n Class type = null;\n if (typestr.equals(\"integer\")) {\n type = Integer.class;\n } else if (typestr.equals(\"float\")) {\n type = Float.class;\n }\n\n // find the dimension\n int noDindex = output.indexOf(\"Number of Dimensions: \", newline);\n newline = output.indexOf(\"\\n\", noDindex);\n int numberOfDimensions = Integer.parseInt(output.substring(noDindex+22, newline));\n int DimsIndex = output.indexOf(\"Dimensions and sizes:\", newline);\n newline = output.indexOf(\"\\n\", DimsIndex);\n String DimStr = output.substring(DimsIndex+22, newline);\n String[] DimsStr = DimStr.split(\"]\");\n int[] dims = new int[numberOfDimensions];\n //go throw the each DimsStr from back to the front until a non numeric value is found\n for (int i=0;i<DimsStr.length;i++) {\n int startindex = DimsStr[i].length();\n for (int j=DimsStr[i].length()-1;j>=0;j--) {\n if (!DimsStr[i].substring(j, DimsStr[i].length()).matches(\"[0-9]*\")) {\n startindex = j+1;\n break;\n }\n }\n dims[i] = Integer.parseInt(DimsStr[i].substring(startindex, DimsStr[i].length()));\n }\n\n //parse the values\n int coorIndex = output.indexOf(\"Coordinates:\", newline);\n //create a new array for the output\n Object result = null;\n switch (numberOfDimensions) {\n case 1:\n result = new Object[dims[0]];\n for (int i0=0;i0<dims[0];i0++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[])result)[i0] = parseStringToObject(value,type);\n }\n break;\n case 2:\n result = new Object[dims[0]][dims[1]];\n for (int i0=0;i0<dims[0];i0++) {\n for (int i1=0;i1<dims[1];i1++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[][])result)[i0][i1] = parseStringToObject(value,type);\n }\n }\n break;\n case 3:\n result = new Object[dims[0]][dims[1]][dims[2]];\n for (int i0=0;i0<dims[0];i0++) {\n for (int i1=0;i1<dims[1];i1++) {\n for (int i2=0;i2<dims[2];i2++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[][][])result)[i0][i1][i2] = parseStringToObject(value,type);\n }\n }\n }\n break;\n case 4:\n result = new Object[dims[0]][dims[1]][dims[2]][dims[3]];\n for (int i0=0;i0<dims[0];i0++) {\n for (int i1=0;i1<dims[1];i1++) {\n for (int i2=0;i2<dims[2];i2++) {\n for (int i3=0;i3<dims[3];i3++) {\n int bindex = output.indexOf(\")\", newline);\n newline = output.indexOf(\"\\n\", bindex);\n String value = output.substring(bindex+1,newline).trim();\n ((Object[][][][])result)[i0][i1][i2][i3] = parseStringToObject(value,type);\n }\n }\n }\n }\n break;\n default:\n System.out.println(\"ERROR: nclLauncher.parseOutput: maximum allowed number of dimensions is 4!\");\n return null;\n } \n return result;\n }",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"@Test\r\n public void deriveFromAndAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M&=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH&=9\", \"(long,km^2/h)\");\r\n }",
"@Test\r\n public void deriveFromOrAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M|=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH|=9\", \"(long,km^2/h)\");\r\n }",
"public void setUnits(byte units) { this.units = units; }",
"public void setUnits(String units) {\n this.units = units;\n }",
"public void setUnits(String units) {\n this.units = units;\n }",
"public abstract Unit getUnits( int dimension );",
"public int changeUnits(int additionalUnits){\n if (units + additionalUnits < 1){\n return 0;\n }\n else {\n units += additionalUnits;\n return units;\n }\n }",
"String getUnitsString();",
"public abstract double toBasicUnit(double unit);",
"Units getUnits();",
"public void setVolUnits(String v) {\n \t\tpreBoilVol.setUnits(v);\n \t\tpostBoilVol.setUnits(v);\n \t\tcalcMaltTotals();\n \t\tcalcHopsTotals();\n \n \t}",
"@Test\n void testVariables() throws IOException {\n String[] expectedVariableNames = {\"ints\", \"Strings\", \"Times\", \"Not quite Times\", \"Dates\", \"Not quite Dates\",\n \"Numbers\", \"Not quite Ints\", \"Not quite Numbers\", \"Column that hates you, contains many comas, and is verbose and long enough that it would cause ingest to fail if ingest failed when a header was more than 256 characters long. Really, it's just sadistic. Also to make matters worse, the space at the begining of this sentance was a special unicode space designed to make you angry.\"};\n\n VariableType[] expectedVariableTypes = {\n VariableType.NUMERIC, VariableType.CHARACTER,\n VariableType.CHARACTER, VariableType.CHARACTER, VariableType.CHARACTER, VariableType.CHARACTER,\n VariableType.NUMERIC, VariableType.NUMERIC, VariableType.CHARACTER, VariableType.CHARACTER\n };\n\n VariableInterval[] expectedVariableIntervals = {\n VariableInterval.DISCRETE, VariableInterval.DISCRETE,\n VariableInterval.DISCRETE, VariableInterval.DISCRETE, VariableInterval.DISCRETE, VariableInterval.DISCRETE,\n VariableInterval.CONTINUOUS, VariableInterval.CONTINUOUS, VariableInterval.DISCRETE, VariableInterval.DISCRETE\n };\n\n String[] expectedVariableFormatCategories = { null, null, \"time\", \"time\", \"date\", null, null, null, null, null };\n\n String[] expectedVariableFormats = { null, null, \"yyyy-MM-dd HH:mm:ss\", \"yyyy-MM-dd HH:mm:ss\", \"yyyy-MM-dd\", null, null, null, null, null };\n\n Long expectedNumberOfCases = 7L; // aka the number of lines in the TAB file produced by the ingest plugin\n\n File file = getFile(\"csv/ingest/IngestCSV.csv\");\n DataTable result;\n try (BufferedInputStream stream = new BufferedInputStream(new FileInputStream(file))) {\n CSVFileReader instance = createInstance();\n result = instance.read(Tuple.of(stream, file), null).getDataTable();\n }\n\n assertThat(result).isNotNull();\n assertThat(result.getDataVariables()).isNotNull();\n assertThat(result.getVarQuantity()).isEqualTo((long) result.getDataVariables().size());\n assertThat(result.getVarQuantity()).isEqualTo((long) expectedVariableTypes.length);\n assertThat(result.getCaseQuantity()).isEqualTo(expectedNumberOfCases);\n\n assertThat(result.getDataVariables()).extracting(DataVariable::getName).contains(expectedVariableNames);\n assertThat(result.getDataVariables()).extracting(DataVariable::getType).contains(expectedVariableTypes);\n assertThat(result.getDataVariables()).extracting(DataVariable::getInterval).contains(expectedVariableIntervals);\n assertThat(result.getDataVariables()).extracting(DataVariable::getFormatCategory).contains(expectedVariableFormatCategories);\n assertThat(result.getDataVariables()).extracting(DataVariable::getFormat).contains(expectedVariableFormats);\n }",
"protected String getUnits()\n {\n return units;\n }",
"public void setUnits(java.lang.String param) {\r\n localUnitsTracker = param != null;\r\n\r\n this.localUnits = param;\r\n }",
"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 }",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"@Override\n\tprotected long getUpdatedUnits(long units) {\n\t\treturn units;\n\t}",
"private int order(TNode node, VariableLocator vl) {\n if (node == null) return 0;\n try {\n Object o = vl.getVariableValue(node.getName()+\".order\");\n if (!(o instanceof Float)) return 0;\n return ((Float)o).intValue();\n } catch (ParserException e) {\n return 0;\n }\n }",
"public void setUnit(Length units) {\n unit = units;\n }",
"@Override public void enterParam_decl_list(MicroParser.Param_decl_listContext ctx) {\n\t\tString txt = ctx.getText();\n\t\tif(txt.compareTo(\"\") != 0) {\n\t\t\tString [] vars = txt.split(\",\");\n\t\t\tArrayList<String> tdata = new ArrayList<String>();\n\n\t\t\tfor (int i = 0; i < vars.length ; i++) {\n\t\t\t\tString name = vars[i].split(\"INT|FLOAT\")[1];\n\t\t\t\tString type = vars[i].split(name)[0];\n\n\t\t\t\t//Add Tiny to IRList\n\t\t\t\ttdata.clear();\n\t\t\t\ttdata.add(name);\n\t\t\t\tthis.meIRL.add(new IRNode(tdata, \"var\"));\n\n\t\t\t\t//Add variable info to current scope's val\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\t\ttemp.add(name);\n\t\t\t\ttemp.add(type);\n\t\t\t\tArrayList<List<String>> stHash = st.varMap.get(st.scope);\n\t\t\t\tif(stHash == null){\n\t\t\t\t\tstHash = new ArrayList<List<String>>();\n\t\t\t\t}\n\t\t\t\tst.checkDeclError(name);\n\t\t\t\tstHash.add(temp);\n\t\t\t\tst.varMap.put(st.scope, stHash);\n\t\t\t}\n\t\t}\n\t}",
"Unit(String unitIn, UnitType utIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);\n\t}",
"Unit(Apfloat unitIn, UnitType utIn, int expIn) {\n\t\tunitValue = unitIn;\n\t\tunitType = utIn;\n\t\texponent = expIn;\n\t}",
"void switchToDeterminate(int pUnits);",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public void setUnitsString(String units) {\n if (units != null) {\n units = units.trim();\n }\n this.units = units;\n forVar.addAttribute(new Attribute(CDM.UNITS, units));\n }",
"public java.lang.String getUnits() {\r\n return localUnits;\r\n }",
"public byte getUnits() { return units; }",
"public void run() {\n \n if (Parameter != null && Parameter instanceof ConvertTextUnitsParameter) {\n CastParameter = (ConvertTextUnitsParameter)Parameter;\n }\n else {\n CastParameter = null;\n }\n\n String shortErrorMessage = \"Error: Text Units Cannot be Converted!\";\n this.acceptTask(TaskProgress.INDETERMINATE, \"Initial Preparations\");\n this.validateParameter(Parameter, shortErrorMessage);\n this.openDiasdemCollection(CastParameter.getCollectionFileName());\n this.checkPrerequisitesAndSetDefaultTextUnitsLayer(shortErrorMessage);\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS) {\n RegexPattern = Pattern.compile(CastParameter.getRegularExpression());\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS) {\n // read multi token word: each line contains one multi token word;\n // comment lines start with '#'\n TextFile multiTokenFile = new TextFile(\n new File(CastParameter.getMultiTokenFileName()));\n multiTokenFile.open();\n String line = multiTokenFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n ArrayList list = new ArrayList();\n while (line != null) {\n list.add(line.trim());\n line = multiTokenFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n Collections.sort(list, new SortStringsByDecreasingLength());\n // for (int i = 0; i < list.size(); i++) {\n // System.out.println((String)list.get(i));\n // }\n // System.out.println(list.size());\n String[] multiToken = new String[list.size()];\n for (int i = 0; i < list.size(); i++)\n multiToken[i] = (String)list.get(i);\n multiTokenFile.close();\n MyMultiTokenWordIdentifier = new HeuristicMultiTokenWordIdentifier(\n multiToken);\n }\n else {\n MyMultiTokenWordIdentifier = null;\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .FIND_AND_REPLACE_SPECIFIED_TOKENS) {\n // read token replacement file: each line contains the tokens to search \n // for and the replacement tokens separated by a tab stop;\n // comment lines start with '#'\n TextFile tokenReplacementFile = new TextFile(\n new File(CastParameter.getTokenReplacementFileName()));\n tokenReplacementFile.open();\n String line = tokenReplacementFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n HashMap tokensSearchList = new HashMap();\n String[] tokensContents = null;\n while (line != null) {\n tokensContents = line.split(\"\\t\");\n if (tokensContents.length == 2\n && tokensContents[1].trim().length() > 0) {\n try {\n tokensSearchList.put(tokensContents[0].trim(), \n tokensContents[1].trim());\n }\n catch (PatternSyntaxException e) {\n System.out.println(\"[TokenizeTextUnitsTask] Regex syntax error in \"\n + \" file \" + CastParameter.getTokenReplacementFileName() + \": \"\n + \" Line \\\"\" + line + \"\\\"; error message: \" + e.getMessage());\n }\n }\n else {\n System.out.println(\"[TokenizeTextUnitsTask] Error in file \"\n + CastParameter.getTokenReplacementFileName() + \": Line \\\"\"\n + line + \"\\\" does not conform to syntax!\");\n }\n line = tokenReplacementFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n ArrayList list = new ArrayList(tokensSearchList.keySet());\n Collections.sort(list, new SortStringsByDecreasingLength());\n // create arrays for token replacement \n String[] tokensSearch = new String[list.size()];\n String[] tokensReplace = new String[list.size()];\n Iterator iterator = list.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n TmpString = (String)iterator.next();\n tokensSearch[i] = TmpString;\n tokensReplace[i++] = (String)tokensSearchList.get(TmpString);\n }\n tokenReplacementFile.close();\n MyTokenReplacer = new HeuristicTokenReplacer(tokensSearch, tokensReplace);\n }\n else {\n MyTokenReplacer = null;\n }\n \n int counterProgress = 0;\n long maxProgress = DiasdemCollection.getNumberOfDocuments();\n \n DiasdemDocument = DiasdemCollection.getFirstDocument(); \n while (DiasdemDocument != null) {\n \n if (counterProgress == 1 || (counterProgress % 50) == 0) {\n Progress.update( (int)(counterProgress * 100 / maxProgress),\n \"Processing Document \" + counterProgress);\n DiasdemServer.setTaskProgress(Progress, TaskThread);\n }\n\n DiasdemDocument.setActiveTextUnitsLayer(DiasdemProject\n .getActiveTextUnitsLayerIndex());\n DiasdemDocument.backupProcessedTextUnits(DiasdemProject\n .getProcessedTextUnitsRollbackOption());\n \n for (int i = 0; i < DiasdemDocument.getNumberOfProcessedTextUnits(); \n i++) {\n DiasdemTextUnit = DiasdemDocument.getProcessedTextUnit(i);\n switch (CastParameter.getConversionType()) {\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_LOWER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toLowerCase();\n break;\n }\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_UPPER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toUpperCase();\n break;\n } \n case ConvertTextUnitsParameter.APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS: {\n RegexMatcher = RegexPattern.matcher(DiasdemTextUnit\n .getContentsAsString());\n TmpStringBuffer = new StringBuffer(DiasdemTextUnit\n .getContentsAsString().length() + 10000);\n while (RegexMatcher.find()) {\n RegexMatcher.appendReplacement(TmpStringBuffer,\n CastParameter.getReplacementString());\n }\n TextUnitContentsAsString = RegexMatcher.appendTail(TmpStringBuffer)\n .toString();\n break;\n }\n case ConvertTextUnitsParameter.IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS: {\n TextUnitContentsAsString = MyMultiTokenWordIdentifier\n .identifyMultiTokenWords(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.FIND_AND_REPLACE_SPECIFIED_TOKENS: {\n TextUnitContentsAsString = MyTokenReplacer\n .replaceTokens(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_PART_OF_SPEECH_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/p:\");\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_WORD_SENSE_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/s:\");\n break;\n } \n default: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString();\n }\n }\n DiasdemTextUnit.setContentsFromString(TextUnitContentsAsString);\n DiasdemDocument.replaceProcessedTextUnit(i, DiasdemTextUnit);\n }\n\n DiasdemCollection.replaceDocument(DiasdemDocument\n .getDiasdemDocumentID(), DiasdemDocument);\n \n DiasdemDocument = DiasdemCollection.getNextDocument();\n counterProgress++;\n \n } // read all documents\n \n super.closeDiasdemCollection();\n \n CastResult = new ConvertTextUnitsResult(TaskResult.FINAL_RESULT,\n \"All processed text units have been converted in the DIAsDEM document\\n\" +\n \" collection \" +\n Tools.shortenFileName(CastParameter.getCollectionFileName(), 55) + \"!\", \n \"Processed text units have been converted.\");\n this.setTaskResult(100, \"All Documents Processed ...\", CastResult,\n TaskResult.FINAL_RESULT, Task.TASK_FINISHED);\n \n }",
"public UnitP(String valueAndUnit, ExceptionHandlingTypes exceptionHandling, PrefixUsageTypes prefixUsage)\n {\n ErrorTypes parsingError = \n (\n valueAndUnit == null ? ErrorTypes.NumericParsingError : ErrorTypes.None\n );\n\n UnitInfo unitInfo = ExceptionInstantiation.NewUnitInfo(0.0, exceptionHandling, prefixUsage);\n \n String unitString = \"\";\n\n if (parsingError == ErrorTypes.None)\n {\n UnitInfo tempInfo = MethodsUnitP.ParseValueAndUnit(valueAndUnit);\n \n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n unitString = tempInfo.TempString;\n unitInfo.Value = tempInfo.Value;\n unitInfo.BaseTenExponent = tempInfo.BaseTenExponent;\n }\n else parsingError = tempInfo.Error.Type;\n }\n\n if (parsingError != ErrorTypes.None && !valueAndUnit.contains(\" \"))\n {\n //valueAndUnit is assumed to only contain unit information.\n parsingError = ErrorTypes.None;\n unitInfo.Value = 1.0;\n unitString = valueAndUnit;\n }\n\n UnitPConstructor unitP2 = MethodsUnitP.GetUnitP2(unitInfo, unitString);\n\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getFactor(), prefixUsage);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n (parsingError != ErrorTypes.None ? parsingError : unitP2.ErrorType),\n unitP2.ExceptionHandling\n );\n }",
"public static void processVariablesInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n\n if (cutPoints.size() == numberOfVariablesReceived-1) {\n\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n oxygenValue = data.substring(1, cutPoints.get(0));\n\n if(isNumeric(data.substring(cutPoints.get(0) + 1, cutPoints.get(1))))\n heartRateValue = data.substring(cutPoints.get(0) + 1, cutPoints.get(1));\n\n if(isNumeric(data.substring(cutPoints.get(1) + 1, cutPoints.get(2))))\n stressValue = data.substring(cutPoints.get(1) + 1, cutPoints.get(2));\n\n if(isNumeric(data.substring(cutPoints.get(2) + 1, endOfLineIndex)))\n tempSampleTime = Integer.parseInt(data.substring(cutPoints.get(2) + 1, endOfLineIndex));\n }\n if (Integer.parseInt(heartRateValue) > 0)\n integerbpm = sixtyMillis / Integer.parseInt(heartRateValue);\n else\n integerbpm = INFINITE;\n\n // Comment this part for junit tests\n if (integerbpm >= 0) {\n heartBeatAnim.setDuration(integerbpm);\n heartBeatAnim.start();\n }\n oxygenLevel.setText(oxygenValue + \"%\");\n heartRate.setText(\" HR = \" + heartRateValue + \"BPM\");\n stressLabel.setText(\" Stress= \" + stressValue + \"%\");\n stressBar.setProgress(Integer.parseInt(stressValue));\n oxygenBar.setProgress(Integer.parseInt(oxygenValue));\n\n if (Integer.parseInt(oxygenValue) < 95 || Integer.parseInt(heartRateValue) < 60 || Integer.parseInt(heartRateValue) > 120) {\n attentionImage.setVisibility(View.VISIBLE);\n attentionLabel.setVisibility(View.VISIBLE);\n\n if (sound == true) {\n final ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100);\n tg.startTone(ToneGenerator.TONE_CDMA_PIP);\n }\n } else {\n attentionImage.setVisibility(View.INVISIBLE);\n attentionLabel.setVisibility(View.INVISIBLE);\n }\n // until here\n }",
"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 }",
"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 }",
"void setUnits(int units) {\n\t\tunitsList.clear();\n\t\tcreateUnit(units);\n\t\tthis.units = units;\n\t}",
"public interface VariableIF extends VariableSimpleIF {\r\n public java.lang.String getFullName();\r\n public java.lang.String getFullNameEscaped();\r\n public java.lang.String getShortName();\r\n public void getNameAndDimensions(java.util.Formatter result, boolean useFullName, boolean strict);\r\n\r\n public boolean isUnlimited();\r\n public boolean isUnsigned();\r\n public ucar.ma2.DataType getDataType();\r\n public int getRank();\r\n public boolean isScalar();\r\n public long getSize();\r\n public int getElementSize();\r\n public int[] getShape();\r\n\r\n public java.util.List<Dimension> getDimensions();\r\n public ucar.nc2.Dimension getDimension(int index);\r\n public int findDimensionIndex(java.lang.String dimName);\r\n\r\n public java.util.List<Attribute> getAttributes();\r\n public ucar.nc2.Attribute findAttribute(java.lang.String attName);\r\n public ucar.nc2.Attribute findAttributeIgnoreCase(java.lang.String attName);\r\n\r\n public ucar.nc2.Group getParentGroup();\r\n public ucar.nc2.Variable section(java.util.List<Range> ranges) throws ucar.ma2.InvalidRangeException;\r\n public Section getShapeAsSection();\r\n public java.util.List<Range> getRanges();\r\n\r\n public ucar.ma2.Array read(int[] origin, int[] shape) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read(java.lang.String rangeSpec) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read(ucar.ma2.Section section) throws java.io.IOException, ucar.ma2.InvalidRangeException;\r\n public ucar.ma2.Array read() throws java.io.IOException;\r\n\r\n public boolean isCoordinateVariable();\r\n public boolean isMemberOfStructure();\r\n public boolean isVariableLength();\r\n public boolean isMetadata();\r\n public ucar.nc2.Structure getParentStructure();\r\n\r\n public String getDescription();\r\n public String getUnitsString();\r\n\r\n // use only if isMemberOfStructure\r\n public java.util.List<Dimension> getDimensionsAll();\r\n\r\n // use only if isScalar()\r\n public byte readScalarByte() throws java.io.IOException;\r\n public short readScalarShort() throws java.io.IOException;\r\n public int readScalarInt() throws java.io.IOException;\r\n public long readScalarLong() throws java.io.IOException;\r\n public float readScalarFloat() throws java.io.IOException;\r\n public double readScalarDouble() throws java.io.IOException;\r\n public java.lang.String readScalarString() throws java.io.IOException;\r\n\r\n // debug\r\n public java.lang.String toStringDebug();\r\n}",
"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 String getUnits() {\r\n\t\treturn units;\r\n\t}",
"private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}",
"public static void loadVariableValues(Scanner scan, ArrayList<Variable> vars, ArrayList<Array> arrays)\n\t\t\tthrows IOException {\n\t\twhile (scan.hasNextLine()) {\n\t\t\tStringTokenizer str = new StringTokenizer(scan.nextLine().trim());\n\t\t\tint numTokens = str.countTokens();\n\t\t\tString token = str.nextToken();\n\t\t\tVariable var = new Variable(token);\n\t\t\tArray arr = new Array(token);\n\t\t\tint vari = vars.indexOf(var);\n\t\t\tint arri = arrays.indexOf(arr);\n\t\t\tif (vari == -1 && arri == -1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(str.nextToken());\n\t\t\tif (numTokens == 2) { // scalar symbol\n\t\t\t\tvars.get(vari).value = num;\n\t\t\t} else { // array symbol\n\t\t\t\tarr = arrays.get(arri);\n\t\t\t\tarr.values = new int[num];\n\t\t\t\t// following are (index,val) pairs\n\t\t\t\twhile (str.hasMoreTokens()) {\n\t\t\t\t\ttoken = str.nextToken();\n\t\t\t\t\tStringTokenizer stt = new StringTokenizer(token, \" (,)\");\n\t\t\t\t\tint index = Integer.parseInt(stt.nextToken());\n\t\t\t\t\tint val = Integer.parseInt(stt.nextToken());\n\t\t\t\t\tarr.values[index] = val;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void addUnits(Unit[] u)\r\n\t{\r\n\t\tfor(int i = 0; i < u.length; i++)\r\n\t\t{\r\n\t\t\tthis.addUnit(u[i]);\r\n\t\t}\r\n\t}",
"public final flipsParser.pressureUnit_return pressureUnit() throws RecognitionException {\n flipsParser.pressureUnit_return retval = new flipsParser.pressureUnit_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal218=null;\n Token string_literal219=null;\n Token string_literal220=null;\n Token string_literal221=null;\n Token string_literal222=null;\n Token string_literal223=null;\n Token string_literal224=null;\n Token string_literal225=null;\n Token string_literal226=null;\n Token string_literal227=null;\n Token string_literal228=null;\n Token string_literal229=null;\n Token string_literal230=null;\n Token string_literal231=null;\n Token string_literal232=null;\n Token string_literal233=null;\n Token string_literal234=null;\n Token string_literal235=null;\n\n CommonTree string_literal218_tree=null;\n CommonTree string_literal219_tree=null;\n CommonTree string_literal220_tree=null;\n CommonTree string_literal221_tree=null;\n CommonTree string_literal222_tree=null;\n CommonTree string_literal223_tree=null;\n CommonTree string_literal224_tree=null;\n CommonTree string_literal225_tree=null;\n CommonTree string_literal226_tree=null;\n CommonTree string_literal227_tree=null;\n CommonTree string_literal228_tree=null;\n CommonTree string_literal229_tree=null;\n CommonTree string_literal230_tree=null;\n CommonTree string_literal231_tree=null;\n CommonTree string_literal232_tree=null;\n CommonTree string_literal233_tree=null;\n CommonTree string_literal234_tree=null;\n CommonTree string_literal235_tree=null;\n RewriteRuleTokenStream stream_179=new RewriteRuleTokenStream(adaptor,\"token 179\");\n RewriteRuleTokenStream stream_178=new RewriteRuleTokenStream(adaptor,\"token 178\");\n RewriteRuleTokenStream stream_169=new RewriteRuleTokenStream(adaptor,\"token 169\");\n RewriteRuleTokenStream stream_177=new RewriteRuleTokenStream(adaptor,\"token 177\");\n RewriteRuleTokenStream stream_176=new RewriteRuleTokenStream(adaptor,\"token 176\");\n RewriteRuleTokenStream stream_166=new RewriteRuleTokenStream(adaptor,\"token 166\");\n RewriteRuleTokenStream stream_165=new RewriteRuleTokenStream(adaptor,\"token 165\");\n RewriteRuleTokenStream stream_168=new RewriteRuleTokenStream(adaptor,\"token 168\");\n RewriteRuleTokenStream stream_167=new RewriteRuleTokenStream(adaptor,\"token 167\");\n RewriteRuleTokenStream stream_170=new RewriteRuleTokenStream(adaptor,\"token 170\");\n RewriteRuleTokenStream stream_180=new RewriteRuleTokenStream(adaptor,\"token 180\");\n RewriteRuleTokenStream stream_171=new RewriteRuleTokenStream(adaptor,\"token 171\");\n RewriteRuleTokenStream stream_181=new RewriteRuleTokenStream(adaptor,\"token 181\");\n RewriteRuleTokenStream stream_164=new RewriteRuleTokenStream(adaptor,\"token 164\");\n RewriteRuleTokenStream stream_174=new RewriteRuleTokenStream(adaptor,\"token 174\");\n RewriteRuleTokenStream stream_175=new RewriteRuleTokenStream(adaptor,\"token 175\");\n RewriteRuleTokenStream stream_172=new RewriteRuleTokenStream(adaptor,\"token 172\");\n RewriteRuleTokenStream stream_173=new RewriteRuleTokenStream(adaptor,\"token 173\");\n\n try {\n // flips.g:368:2: ( ( 'kpa' | 'kilopascal' | 'kilopascals' ) -> KILOPASCAL | ( 'hpa' | 'hectopascal' | 'hectopascals' ) -> HECTOPASCAL | ( 'pa' | 'pascal' | 'pascals' ) -> PASCAL | ( 'bar' | 'bars' ) -> BAR | ( 'mbar' | 'millibar' | 'millibars' ) -> MILLIBAR | ( 'atm' | 'atms' | 'atmosphere' | 'atmospheres' ) -> ATMOSPHERE )\n int alt99=6;\n switch ( input.LA(1) ) {\n case 164:\n case 165:\n case 166:\n {\n alt99=1;\n }\n break;\n case 167:\n case 168:\n case 169:\n {\n alt99=2;\n }\n break;\n case 170:\n case 171:\n case 172:\n {\n alt99=3;\n }\n break;\n case 173:\n case 174:\n {\n alt99=4;\n }\n break;\n case 175:\n case 176:\n case 177:\n {\n alt99=5;\n }\n break;\n case 178:\n case 179:\n case 180:\n case 181:\n {\n alt99=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 99, 0, input);\n\n throw nvae;\n }\n\n switch (alt99) {\n case 1 :\n // flips.g:368:4: ( 'kpa' | 'kilopascal' | 'kilopascals' )\n {\n // flips.g:368:4: ( 'kpa' | 'kilopascal' | 'kilopascals' )\n int alt93=3;\n switch ( input.LA(1) ) {\n case 164:\n {\n alt93=1;\n }\n break;\n case 165:\n {\n alt93=2;\n }\n break;\n case 166:\n {\n alt93=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 93, 0, input);\n\n throw nvae;\n }\n\n switch (alt93) {\n case 1 :\n // flips.g:368:5: 'kpa'\n {\n string_literal218=(Token)match(input,164,FOLLOW_164_in_pressureUnit1930); \n stream_164.add(string_literal218);\n\n\n }\n break;\n case 2 :\n // flips.g:368:11: 'kilopascal'\n {\n string_literal219=(Token)match(input,165,FOLLOW_165_in_pressureUnit1932); \n stream_165.add(string_literal219);\n\n\n }\n break;\n case 3 :\n // flips.g:368:24: 'kilopascals'\n {\n string_literal220=(Token)match(input,166,FOLLOW_166_in_pressureUnit1934); \n stream_166.add(string_literal220);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 369:2: -> KILOPASCAL\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(KILOPASCAL, \"KILOPASCAL\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:370:4: ( 'hpa' | 'hectopascal' | 'hectopascals' )\n {\n // flips.g:370:4: ( 'hpa' | 'hectopascal' | 'hectopascals' )\n int alt94=3;\n switch ( input.LA(1) ) {\n case 167:\n {\n alt94=1;\n }\n break;\n case 168:\n {\n alt94=2;\n }\n break;\n case 169:\n {\n alt94=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 94, 0, input);\n\n throw nvae;\n }\n\n switch (alt94) {\n case 1 :\n // flips.g:370:5: 'hpa'\n {\n string_literal221=(Token)match(input,167,FOLLOW_167_in_pressureUnit1946); \n stream_167.add(string_literal221);\n\n\n }\n break;\n case 2 :\n // flips.g:370:11: 'hectopascal'\n {\n string_literal222=(Token)match(input,168,FOLLOW_168_in_pressureUnit1948); \n stream_168.add(string_literal222);\n\n\n }\n break;\n case 3 :\n // flips.g:370:25: 'hectopascals'\n {\n string_literal223=(Token)match(input,169,FOLLOW_169_in_pressureUnit1950); \n stream_169.add(string_literal223);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 371:2: -> HECTOPASCAL\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(HECTOPASCAL, \"HECTOPASCAL\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:372:4: ( 'pa' | 'pascal' | 'pascals' )\n {\n // flips.g:372:4: ( 'pa' | 'pascal' | 'pascals' )\n int alt95=3;\n switch ( input.LA(1) ) {\n case 170:\n {\n alt95=1;\n }\n break;\n case 171:\n {\n alt95=2;\n }\n break;\n case 172:\n {\n alt95=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 95, 0, input);\n\n throw nvae;\n }\n\n switch (alt95) {\n case 1 :\n // flips.g:372:5: 'pa'\n {\n string_literal224=(Token)match(input,170,FOLLOW_170_in_pressureUnit1962); \n stream_170.add(string_literal224);\n\n\n }\n break;\n case 2 :\n // flips.g:372:10: 'pascal'\n {\n string_literal225=(Token)match(input,171,FOLLOW_171_in_pressureUnit1964); \n stream_171.add(string_literal225);\n\n\n }\n break;\n case 3 :\n // flips.g:372:19: 'pascals'\n {\n string_literal226=(Token)match(input,172,FOLLOW_172_in_pressureUnit1966); \n stream_172.add(string_literal226);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 373:2: -> PASCAL\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(PASCAL, \"PASCAL\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 4 :\n // flips.g:374:4: ( 'bar' | 'bars' )\n {\n // flips.g:374:4: ( 'bar' | 'bars' )\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==173) ) {\n alt96=1;\n }\n else if ( (LA96_0==174) ) {\n alt96=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 96, 0, input);\n\n throw nvae;\n }\n switch (alt96) {\n case 1 :\n // flips.g:374:5: 'bar'\n {\n string_literal227=(Token)match(input,173,FOLLOW_173_in_pressureUnit1978); \n stream_173.add(string_literal227);\n\n\n }\n break;\n case 2 :\n // flips.g:374:11: 'bars'\n {\n string_literal228=(Token)match(input,174,FOLLOW_174_in_pressureUnit1980); \n stream_174.add(string_literal228);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 375:2: -> BAR\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(BAR, \"BAR\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 5 :\n // flips.g:376:4: ( 'mbar' | 'millibar' | 'millibars' )\n {\n // flips.g:376:4: ( 'mbar' | 'millibar' | 'millibars' )\n int alt97=3;\n switch ( input.LA(1) ) {\n case 175:\n {\n alt97=1;\n }\n break;\n case 176:\n {\n alt97=2;\n }\n break;\n case 177:\n {\n alt97=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 97, 0, input);\n\n throw nvae;\n }\n\n switch (alt97) {\n case 1 :\n // flips.g:376:5: 'mbar'\n {\n string_literal229=(Token)match(input,175,FOLLOW_175_in_pressureUnit1992); \n stream_175.add(string_literal229);\n\n\n }\n break;\n case 2 :\n // flips.g:376:12: 'millibar'\n {\n string_literal230=(Token)match(input,176,FOLLOW_176_in_pressureUnit1994); \n stream_176.add(string_literal230);\n\n\n }\n break;\n case 3 :\n // flips.g:376:23: 'millibars'\n {\n string_literal231=(Token)match(input,177,FOLLOW_177_in_pressureUnit1996); \n stream_177.add(string_literal231);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 377:2: -> MILLIBAR\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(MILLIBAR, \"MILLIBAR\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 6 :\n // flips.g:378:4: ( 'atm' | 'atms' | 'atmosphere' | 'atmospheres' )\n {\n // flips.g:378:4: ( 'atm' | 'atms' | 'atmosphere' | 'atmospheres' )\n int alt98=4;\n switch ( input.LA(1) ) {\n case 178:\n {\n alt98=1;\n }\n break;\n case 179:\n {\n alt98=2;\n }\n break;\n case 180:\n {\n alt98=3;\n }\n break;\n case 181:\n {\n alt98=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 98, 0, input);\n\n throw nvae;\n }\n\n switch (alt98) {\n case 1 :\n // flips.g:378:5: 'atm'\n {\n string_literal232=(Token)match(input,178,FOLLOW_178_in_pressureUnit2008); \n stream_178.add(string_literal232);\n\n\n }\n break;\n case 2 :\n // flips.g:378:11: 'atms'\n {\n string_literal233=(Token)match(input,179,FOLLOW_179_in_pressureUnit2010); \n stream_179.add(string_literal233);\n\n\n }\n break;\n case 3 :\n // flips.g:378:18: 'atmosphere'\n {\n string_literal234=(Token)match(input,180,FOLLOW_180_in_pressureUnit2012); \n stream_180.add(string_literal234);\n\n\n }\n break;\n case 4 :\n // flips.g:378:31: 'atmospheres'\n {\n string_literal235=(Token)match(input,181,FOLLOW_181_in_pressureUnit2014); \n stream_181.add(string_literal235);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 379:2: -> ATMOSPHERE\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(ATMOSPHERE, \"ATMOSPHERE\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public String getUnits() {\n return this.units;\n }",
"protected void doDeduction() {\n\n boolean narrowed= false;\n\n unit=false;\n isInconclusive=false;\n\n int newXL;\n int newYU;\n\n Variable x = null;\n Variable y = null;\n\n for(Variable var : csp.getVars()){\n if(var.getPosition() == unitSB.getX().getPosition()){\n x = var;\n } else if(var.getPosition() == unitSB.getY().getPosition()){\n y = var;\n }\n }\n\n int xU = x.getUpperDomainBound();\n int yL = y.getLowerDomainBound();\n\n newXL = yL + unitSB.getCright();\n newYU = xU - unitSB.getCright();\n\n if(newXL>x.getLowerDomainBound()){\n Variable newX = new Variable(newXL, xU);\n newX.setPosition(x.getPosition());\n changeVariable(newX);\n narrowed= true;\n }\n if (newYU< y.getUpperDomainBound()){\n Variable newY = new Variable(yL, newYU);\n newY.setPosition(y.getPosition());\n changeVariable(newY);\n narrowed =true;\n }\n\n if(narrowed){\n doAlgorithmA1();\n }else {\n doAlgorithmA3();\n }\n\n }",
"private ARXOrderedString(String format){\r\n if (format==null || format.equals(\"Default\") || format.equals(\"\")) {\r\n this.order = null;\r\n } else {\r\n try {\r\n this.order = new HashMap<String, Integer>(); \r\n BufferedReader reader = new BufferedReader(new StringReader(format));\r\n int index = 0;\r\n String line = reader.readLine();\r\n while (line != null) {\r\n if (this.order.put(line, index) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+line+\"'\");\r\n }\r\n line = reader.readLine();\r\n index++;\r\n }\r\n reader.close();\r\n } catch (IOException e) {\r\n throw new IllegalArgumentException(\"Error reading input data\");\r\n }\r\n }\r\n }",
"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 String[] getVariableOrder(String message) {\n\t\tVector<String> variables = new Vector<String>();\n\t\tString[] variableList;\n\t\t//Break string up\n\t\tStringTokenizer st = new StringTokenizer(message,\"<\");\n\t\t \n\t\tString temp = \"\"; //Temporary storage\n\t\tString tempVar = \"\"; //Temporary variable storage\n\t\t \n\t\t//While information remains\n\t\twhile(st.hasMoreTokens()) {\n\t\t\ttemp = st.nextToken();\n\t\t\t//If it is a variable\n\t\t\tif(temp.startsWith(\"Var>\")) {\n\t\t\t\ttempVar = \"\";\n\t\t\t\t//Get the name of the variable\n\t\t\t\tfor(int i=4;i<temp.length();i++) {\n\t\t\t\t\tif(temp.charAt(i)=='<')\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse\n\t\t\t\t\t\ttempVar = tempVar + temp.charAt(i);\n\t\t\t\t}\n\t\t\t\tvariables.addElement(tempVar); //Store the variable name\n\t\t\t}\n\t\t}\n\t\t//Convert the vector to an array\n\t\tvariableList = new String[variables.size()];\n\t\tfor(int i=0;i<variables.size();i++) {\n\t\t\tvariableList[i] = variables.elementAt(i);\n\t\t}\n\t\treturn variableList;\n\t}",
"public void parse(){\r\n\t\t//StringTokenizer st = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tst = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tString sv = \"\";\r\n\r\n\t\ttry{\r\n\t\t\tnmeaHeader = st.nextToken();//Global Positioning System Fix Data\r\n\t\t\tmode = st.nextToken();\r\n\t\t\tmodeValue = Integer.parseInt(st.nextToken());\r\n\r\n\t\t\tfor(int i=0;i<=11;i++){\r\n\t\t\t\tsv = st.nextToken();\r\n\t\t\t\tif(sv.length() > 0){\r\n\t\t\t\t\tSV[i] = Integer.parseInt(sv);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSV[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tHDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tVDOP = Float.parseFloat(st.nextToken());\r\n\r\n\t\t}catch(NoSuchElementException e){\r\n\t\t\t//Empty\r\n\t\t}catch(NumberFormatException e2){\r\n\t\t\t//Empty\r\n\t\t}\r\n\r\n\t}",
"public void setUnitTable(Units value);",
"public void setUnits(int value) {\r\n this.units = value;\r\n }",
"private String getVariable(IInstallableUnit iu) {\n \t\tString v = (String) variables.get(iu);\n \t\tif (v == null) {\n \t\t\t//\t\t\tv = new String(\"x\" + (variables.size() + shift) + iu.toString()); //$NON-NLS-1$\n \t\t\tv = new String(\"x\" + (variables.size() + shift)); //$NON-NLS-1$\n \t\t\tvariables.put(iu, v);\n \t\t}\n \t\treturn v;\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 String getUnits() {\n return units;\n }",
"public void setUnit (String value) {\n\tthis.unit = value;\n }",
"public String getUnits() {\n\t\treturn units;\n\t}",
"public int getUnits() {\r\n return units;\r\n }",
"public synchronized void sort()\n\t{\n\t\tCollections.sort(vars, tvComparator);\n\t}",
"@Override\n\tpublic void beforeVariableChanged(ProcessVariableChangedEvent arg0) {\n\n\t}",
"@Test\r\n public void testInvalidMinusAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varD_S-=4km\", \"0xA0177\");\r\n }",
"public abstract BaseQuantityDt setUnits(String theString);",
"public List<InputTermUnit<V>> getUnits() {\n\t\treturn this.units;\n\t}",
"private void parseAxiom(String line) throws IllegalArgumentException {\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tif(tokens.length != 2) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid unitLength argument\");\n\t\t}\n\t\tthis.setAxiom(tokens[1]);\n\t}",
"public String getUnits() {\n return units;\n }",
"public void setUnit(String unit);",
"public void createUnits(String unitName, String soldiers){\n\t\tString[] stringArray = soldiers.split(\"\\\\s*,\\\\s*\");\n\t\tString emptyString = \"\"; \n\t\t//array with integers for names\n\t\tint length = stringArray.length;\n\t\tArrayList<Integer> intArray = new ArrayList<Integer>();\n\t\t\n\t\tif(!soldiers.equals(emptyString)){\n\t\t\tfor(int i = 0; i < length; i++){\n\t\t\t\tintArray.add(Integer.parseInt(stringArray[i]));\n\t\t\t}\n\t\t}\n\t\n\t\tunitsAndSoldiers.put(unitName, intArray);\t\n\t}",
"String getUnit();",
"public static Observable<Double> varStream(final String varName,\r\n\t\t\tObservable<String> input) {\r\n\t\tfinal Pattern pattern = Pattern.compile(\"^\\\\s*\" + varName\r\n\t\t\t\t+ \"\\\\s*[:|=]\\\\s*(-?\\\\d+\\\\.?\\\\d*)$\");\r\n\r\n\t\treturn input.map(pattern::matcher)\r\n\t\t\t\t.filter(m -> m.matches() && m.group(1) != null)\r\n\t\t\t\t.map(matcher -> matcher.group(1))\r\n\t\t\t\t.map(Double::parseDouble);\r\n\t}",
"public String getUnit();",
"public ArrayList getUnits();",
"@Override\n\tpublic void addStore(int timeUnit) {\n if (getVarsEnviromen().size() > 0) {\n\t\t\tfor (AmbientC amb: getVarsEnviromen() ){\n\t\t\t\tif (amb.getUnitTime() == timeUnit){\n int nvar = super.nvarDef(amb);\n switch (nvar) {\n case 1:\n if (super.findVars(amb.getVarname1()) ) {\n Store.addConstra(amb.getConstraint());\n System.out.println(\"Constraint Cargado - \" + amb.getConstraint().getClass().toString());\n }\n break;\n case 2:\n if (super.findVars(amb.getVarname1()) && super.findVars(amb.getVarname2())) {\n Store.addConstra(amb.getConstraint());\n System.out.println(\"Constraint Cargado - \" + amb.getConstraint().getClass().toString());\n }\n break;\n case 3:\n if (super.findVars(amb.getVarname1()) && super.findVars(amb.getVarname2()) && super.findVars(amb.getVarname3()) ) {\n Store.addConstra(amb.getConstraint());\n System.out.println(\"Constraint Cargado - \" + amb.getConstraint().getClass().toString());\n }\n break;\n default: break;\n }\n\t\t\t\t}\n\t\t\t}\n } else {\n System.out.println(\"Ambient- <AddStore> -No existen Elementos en el Ambiente \" );\n }\n\n\t}",
"public StaticVarOrder(Model model){\n\t lastIdx = model.getEnvironment().makeInt(0);\n\t }",
"public void setUnits(ArrayList value);",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling, \n PrefixUsageTypes prefixUsage\n )\n {\n if (prefix == null) prefix = new Prefix();\n\n ErrorTypes errorType =\n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n tempInfo = OtherPartsNumberParserMethods.GetUnitInfoFromNumberX\n (\n numberX, ExceptionHandlingTypes.NeverTriggerException, prefix.getPrefixUsage()\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo.Unit = unit;\n tempInfo.Prefix = new Prefix(prefix);\n tempInfo.Parts = new ArrayList<UnitPart>\n (\n \tMethodsCommon.GetPartsFromUnit(tempInfo).Parts\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n }\n\n errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n ValueAndUnitString = \"\";\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n UnitString = \"\";\n Unit = Units.None;\n OriginalUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = new ArrayList<UnitPart>(tempInfo.Parts);\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n \n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, ExceptionHandlingTypes.NeverTriggerException\n );\n }",
"@Override\r\n\tprotected void initVariableSet() {\n\t\tthis.lineImpetanz = this.initVariable(\"lineImpetance\", new NumericValue(0.1,0.2), EnumUnit.ohm, true, true);\r\n\t\tthis.lineCharge = this.initVariable(\"lineCharge\", new NumericValue(0), EnumUnit.ohm, true, true);\r\n\t\t\t\t\r\n\t}",
"private void setUnitsArraySize(int i) {\r\n\t\tp_unit_category_id = new Integer[i];\r\n\t\tp_unit_symbol = new String[i];\r\n\t\tp_unit_name = new String[i];\r\n\t\tp_unit_description = new String[i];\r\n\t\tp_unit_scale = new Double[i];\r\n\t\tp_unit_offset = new Double[i];\r\n\t\tp_unit_power = new Double[i];\r\n\t}",
"public void get_InputValues(){\r\n\tA[1]=-0.185900;\r\n\tA[2]=-0.85900;\r\n\tA[3]=-0.059660;\r\n\tA[4]=-0.077373;\r\n\tB[1]=30.0;\r\n\tB[2]=19.2;\r\n\tB[3]=13.8;\r\n\tB[4]=22.5;\r\n\tC[1]=4.5;\r\n\tC[2]=12.5;\r\n\tC[3]=27.5;\r\n\tD[1]=16.0;\r\n\tD[2]=10.0;\r\n\tD[3]=7.0;\r\n\tD[4]=5.0;\r\n\tD[5]=4.0;\r\n\tD[6]=3.0;\r\n\t\r\n}",
"public boolean parsing (Parsing t) {\n\t\tint posini = t.pos;\n\t\tboolean has_value, has_symbol;\n\t\tint pos, j;\n\t\tdouble val;\n\t\tif (!initialized) init();\t\t// Be sure everyting in place\n\n\t\tt.gobbleSpaces();\t\t\t// Ignore the leading blanks\n\t\tpos = t.pos;\n\n\t\tif (DEBUG>0) System.out.print(\"....parsing(\" + t + \"):\");\n\n\t\t/* Interpret the Value, if any */\n\t\tval = t.parseFactor();\t\t\t// Default value is 1\n\t\tif (DEBUG>0) System.out.print(\" val=\" + val);\n\t\thas_value = t.pos > pos; \t\t// NaN when nothing interpreted\n\n\t\t/* Skip blanks between value and Unit */\n\t\tt.gobbleSpaces();\n\n\t\t/* It may happen that interpreting the Value first generates an error,\n\t for instance 1/4. That means that the number (1) is part of the\n\t unit, and is not the value in front of the unit.\n\t\t */\n\t\tif (t.lookup(op_symb) >= 0) {\n\t\t\thas_value = false;\n\t\t\tt.pos = pos;\n\t\t\tif (DEBUG>0) System.out.print(\"(FALSE!)\");\n\t\t}\n\n\t\t/* Interpret the Unit */\n\t\tpos = t.pos;\t\t\t\t// To keep the Unit symbol\n\t\toffset = 0.;\n\t\tsymbol = null;\n\t\tif (DEBUG>0) System.out.println(\"\\n Interpret '\" + t + \"'\");\n\t\ttry { \n\t\t\thas_symbol = unitec(t, null); \n\t\t\tsymbol = String.copyValueOf(t.a, pos, t.pos-pos);\n\t\t\tObject o = hUnit.get(symbol);\n\t\t\tif (o instanceof String) symbol = (String)o;\n\t\t\tif (has_value & (mksa&_pic) != 0) {\t// A misinterpretation ? Rescan\n\t\t\t\tint pos_end = t.pos;\n\t\t\t\tt.set(posini); t.gobbleSpaces();\n\t\t\t\ttry { t.parseComplex(symbol); t.set(pos_end); }\n\t\t\t\tcatch(Exception e) { \n\t\t\t\t\tt.set(posini); \n\t\t\t\t\treturn(false); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) { \n\t\t\tif (DEBUG>0) {\n\t\t\t\tSystem.out.println(\"++++unitec catched: \" + e);\n\t\t\t\tMessenger.printStackTrace(e);\n\t\t\t\ttry { Thread.sleep(2000); } catch(Exception i) {;}\n\t\t\t}\n\t\t\thas_symbol = false; \n\t\t\tt.pos = pos;\n\t\t}\n\t\tif (DEBUG>0) System.out.println(\"\\n interpret '\" + t \n\t\t\t\t+ \"', has_value=\" + has_value);\n\n\t\t// Default value in log scale is 0 !\n\t\t// if (no_value && ((mksa&_log) != 0)) value = 0;\n\t\t/* Skip the trailing blanks */\n\n\t\t/* The value may follow the unit -- only for dates and \"special\"\n\t\t * quoted unit\n\t\t */\n\t\tif ((!has_value) && (t.pos < t.length)) {\n\t\t\tpos = t.pos;\n\t\t\t// The symbol may be a \"picture\" e.g. \"YYYY/MMM/DD\"\n\t\t\tif ((!has_symbol) && (t.currentChar() == '\"')) {\n\t\t\t\tif ((j = t.matchingQuote()) > 0) {\n\t\t\t\t\tUdef u; int ip1, ip2;\n\t\t\t\t\tString msg;\n\t\t\t\t\tif (DEBUG>0) System.out.println(\n\t\t\t\t\t\t\t\"....parsing: t.matchingQuote()=\" + j);\n\t\t\t\t\tj -= pos; j++;\t\t// Length including quotes\n\t\t\t\t\tsymbol = t.toString(j);\n\t\t\t\t\tt.advance(j);\n\t\t\t\t\tt.gobbleSpaces();\n\t\t\t\t\tpos = t.pos;\n\t\t\t\t\ttry { val = t.parseComplex(symbol); }\n\t\t\t\t\tcatch(ParseException e) {\t// Mismatch: could be mixed up\n\t\t\t\t\t\tmsg = e.getMessage();\n\t\t\t\t\t\tif (msg.indexOf(\"parseComplex((\")>=0) \t// ERROR in pic\n\t\t\t\t\t\t\tSystem.err.println(e);\n\t\t\t\t\t\tt.set(posini);\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t\tif (t.status() != 0) {\t// Something wrong in 'picture'\n\t\t\t\t\t\tmsg = t.error_message;\n\t\t\t\t\t\tif ((ip1 = msg.indexOf(\" interpreted as (\")) >0) {\n\t\t\t\t\t\t\tip1 = msg.indexOf('(', ip1);\n\t\t\t\t\t\t\tip2 = msg.indexOf(')', ip1);\n\t\t\t\t\t\t\tString correct_symbol = msg.substring(ip1+1, ip2);\n\t\t\t\t\t\t\tif (DEBUG>0) System.out.println(\n\t\t\t\t\t\t\t\t\t\"....parsing: adding Hash \"+symbol\n\t\t\t\t\t\t\t\t\t+\" => \"+correct_symbol);\n\t\t\t\t\t\t\t/* Add the new 'picture' as an alias \n\t\t\t\t\t\t\t * to the correctly spelled one.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\thUnit.put(symbol, correct_symbol);\n\t\t\t\t\t\t\tsymbol = correct_symbol;\n\t\t\t\t\t\t\tt.pos = pos;\n\t\t\t\t\t\t\ttry { val = t.parseComplex(symbol); }\n\t\t\t\t\t\t\tcatch (ParseException pe) {\n\t\t\t\t\t\t\t\tSystem.err.println(pe);\n\t\t\t\t\t\t\t\tMessenger.printStackTrace(pe);\n\t\t\t\t\t\t\t\tt.set(posini);\n\t\t\t\t\t\t\t\treturn(false);\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\tSystem.err.println(msg);\n\t\t\t\t\t\t\tt.set(posini);\n\t\t\t\t\t\t\treturn(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\thas_value = true;\n\t\t\t\t\tif (t.isDate()) u = uLookup(\"MJD\");\n\t\t\t\t\telse if (t.isDays()) u = uLookup(\"d\");\n\t\t\t\t\telse if (t.isTime()) u = uLookup(\"\\\"h:m:s\\\"\");\n\t\t\t\t\telse u = uLookup(\"\\\"d:m:s\\\"\");\n\t\t\t\t\t// The quoted symbol is added, to speed up its retrieval\n\t\t\t\t\t// in the next search.\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddSymbol(symbol, u.symb, Parsing.explainComplex(symbol));\n\t\t\t\t\t\tu = uLookup(symbol);\n\t\t\t\t\t\tu.mksa |= _pic;\n\t\t\t\t\t}\n\t\t\t\t\tcatch (ParseException pe) {\n\t\t\t\t\t\tSystem.err.println(pe); \n\t\t\t\t\t\tMessenger.printStackTrace(pe);\n\t\t\t\t\t}\n\t\t\t\t\tmksa = u.mksa;\n\t\t\t\t\tfactor = u.fact;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (has_symbol && (t.pos<t.length)) {\n\t\t\t\tif (DEBUG>0) System.out.println(\"....parsing: symbol=\" + symbol \n\t\t\t\t\t\t+ \", interpret: \" + t);\n\t\t\t\tif (mksa == _MJD) {\t\t// Get Date + Time\n\t\t\t\t\tif (DEBUG>0) System.out.print(\" parsing via Astrotime(\");\n\t\t\t\t\tAstrotime datime = new Astrotime();\n\t\t\t\t\tif (Character.isLetter(symbol.charAt(0)))\n\t\t\t\t\t\tt.set(posini);\t\t// JD or MJD followed by number\n\t\t\t\t\tif (DEBUG>0) System.out.print(t + \") symbol=\" + symbol);\n\t\t\t\t\thas_value = datime.parsing(t);\n\t\t\t\t\tif (has_value) val = datime.getMJD();\n\t\t\t\t\tif (DEBUG>0) {\n\t\t\t\t\t\tSystem.out.println(\" has_value=\" + has_value \n\t\t\t\t\t\t\t\t+ \", MJD=\" + val);\n\t\t\t\t\t\tdatime.dump(\"datime \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((mksa&_pic) != 0) {\t// Interpret complex\n\t\t\t\t\ttry { val = t.parseComplex(symbol); has_value = true; }\n\t\t\t\t\tcatch (Exception e) { t.set(posini); return(false); }\n\t\t\t\t}\n\t\t\t\t//* No other case! else val = t.parseFactor();\n\t\t\t}\n\t\t}\n\n\t\t// Final: Store the results.\n\t\tvalue = has_value ? val : 0./0.;\n\t\tif (has_symbol|has_value) {\n\t\t\treturn(true);\n\t\t}\n\t\tt.pos = posini;\n\t\treturn(false);\t\t\t\t// Nothing found...\n\t}",
"private List<VariableCoefficientTuple> getVariablesUsedForBranchingInThisRectangle(Rectangle rect){\r\n List<VariableCoefficientTuple> variablesUsedForBranchingInThisRectangle = new ArrayList<VariableCoefficientTuple> ();\r\n \r\n for (String var : rect.zeroFixedVariables) {\r\n if (!treeNode_zeroFixedVariables.contains(var) ) \r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ZERO) );\r\n }\r\n for (String var : rect.oneFixedVariables){ \r\n if ( !treeNode_oneFixedVariables.contains(var)) {\r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ONE));\r\n } \r\n }\r\n \r\n return variablesUsedForBranchingInThisRectangle;\r\n }",
"@Override\n\tpublic void setUnitsString(String units) {\n\t\t\n\t}",
"@Test\r\n public void deriveFromIncSuffixExpressionWithSIUnits() throws IOException {\r\n //example with siunit literal\r\n check(\"4km++\", \"(int,km)\");\r\n }",
"@Test\r\n public void testInvalidRegularAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varD_KMe2perHmSe4 = 3 mm/ks^3h^2\", \"0xA0182\");\r\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}",
"@Test\r\n public void testInvalidPlusAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varD_S+=4km\", \"0xA0176\");\r\n }",
"List<Object> parse(String inputLine) {\n List<Object> lo = new ArrayList<>();\n int lineLength = inputLine.length();\n for (int i = 0; i < lineLength; i++) {\n char c = inputLine.charAt(i);\n //creator of constant:\n if (isPartOfNumber(c)) {\n String constantValue = \"\";\n for (; i < lineLength; i++) {\n c = inputLine.charAt(i);\n if (!isPartOfNumber(c)) {\n break;\n }\n constantValue += c;\n }\n //assign constant\n lo.add(new Constant(Double.parseDouble(constantValue)));\n if (i == lineLength) {\n break;\n }\n }\n switch (c) {\n case '(':\n lo.add(Brackets.OPENING);\n break;\n case ')':\n lo.add(Brackets.CLOSING);\n break;\n case '²':\n lo.add(Operators.SQUARE);\n break;\n case '√':\n lo.add(Operators.SQUARE_ROOT);\n break;\n case '÷':\n lo.add(Operators.DIVIDE);\n break;\n case '×':\n lo.add(Operators.MULTIPLY);\n break;\n case '%':\n lo.add(Operators.PERCENTAGE);\n break;\n case '+':\n lo.add(Operators.ADD);\n break;\n case '−':\n lo.add(Operators.SUBTRACT);\n break;\n default:\n throw new IllegalArgumentException(\"Unknown symbol used as input string\");\n }\n }\n return lo;\n }",
"private static void convertVariablesToZ3(List<QuerySolution> resultList, Context ctx, Solver solver) {\n int intValue;\n for (QuerySolution qs : resultList) {\n RDFNode varNode = qs.get(\"var\");\n RDFNode valNode = qs.get(\"val\");\n RDFNode relationNode = qs.get(\"relation\");\n\n IntExpr var = ctx.mkIntConst(varNode.toString());\n IntExpr val = null;\n intValue = Utils.extractIntFromRdfLiteral(valNode.toString());\n if (intValue != -999) {\n val = ctx.mkInt(intValue);\n } else {\n continue;\n }\n\n if (relationNode.toString().equals(Settings.paIRI + \"greaterEqual\")) {\n solver.add((ctx.mkGe(var, val)));\n } else if (relationNode.toString().equals(Settings.paIRI + \"equals\")) {\n solver.add((ctx.mkEq(var, val)));\n }\n }\n }",
"public int calculateUnits(Object oKey, Object oValue);",
"private int getUnitListValue() {\r\n\t\tint value = 0;\r\n\t\tfor (Unit unit : this.unitList) {\r\n\t\t\tvalue += unit.getValue();\r\n\t\t}\r\n\t\treturn value;\r\n\t}"
]
| [
"0.6329346",
"0.59954685",
"0.5847224",
"0.5352626",
"0.53008044",
"0.52993184",
"0.5221491",
"0.5215454",
"0.5211204",
"0.51967466",
"0.51967466",
"0.51967466",
"0.5086575",
"0.5080731",
"0.5070887",
"0.50449055",
"0.50425756",
"0.50410956",
"0.50375986",
"0.5026019",
"0.5026019",
"0.49982527",
"0.49903384",
"0.49886885",
"0.49817938",
"0.496966",
"0.49676213",
"0.49658942",
"0.4955564",
"0.49359587",
"0.49302316",
"0.49297324",
"0.49269226",
"0.4920418",
"0.49110058",
"0.490323",
"0.49027628",
"0.4893422",
"0.4878347",
"0.48779",
"0.48755425",
"0.48727548",
"0.48704833",
"0.4859527",
"0.4856214",
"0.48452473",
"0.48400953",
"0.48315352",
"0.48295727",
"0.48241797",
"0.48220706",
"0.48204803",
"0.48140594",
"0.48127207",
"0.48021019",
"0.47950858",
"0.47923928",
"0.47909313",
"0.47690257",
"0.47682887",
"0.47623163",
"0.47599915",
"0.47591153",
"0.47518507",
"0.47518227",
"0.47484934",
"0.47403994",
"0.47357985",
"0.47341612",
"0.4732972",
"0.4725836",
"0.4725592",
"0.4722462",
"0.4717307",
"0.4716363",
"0.4715857",
"0.47047973",
"0.46943498",
"0.4690272",
"0.4685042",
"0.46839735",
"0.4683022",
"0.46821976",
"0.46663436",
"0.4665628",
"0.4664857",
"0.4664263",
"0.46609393",
"0.46590424",
"0.46567783",
"0.46497023",
"0.4643839",
"0.46433336",
"0.46291366",
"0.4617948",
"0.46173927",
"0.4615448",
"0.4612116",
"0.46104732",
"0.46081662",
"0.46066847"
]
| 0.0 | -1 |
/ This is currently a test of the algorithm for solving an Equation | public VariableUnit solve() {
LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();
VariableUnit vu1 = new VariableUnit(250.0, 'x');
VariableUnit vu2 = new VariableUnit('+');
VariableUnit vu3 = new VariableUnit(250.0, 'x');
VariableUnit vu4 = new VariableUnit(501.0, 'x');
VariableUnit vu5 = new VariableUnit('y');
VariableUnit vu6 = new VariableUnit('-');
alpha_arr.get(('x' - 'a')).addLast(vu1);
alpha_arr.get(('x' - 'a')).addLast(vu2);
alpha_arr.get(('x' - 'a')).addLast(vu3);
op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);
op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);
assignValue(2.0, 'x');
System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);
System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);
System.out.print(vu5);
System.out.println();
System.out.println("------------------------------");
VariableUnit temp, temp1;
for (int i = 0; i < op_order.size(); i++) {
temp = op_order.pollFirst();
switch (temp.getVariable()) {
case '+':
//if processor.isEmpty(): throw an exception
temp1 = processor.pop().add(op_order.pollFirst());
processor.push(temp1);
break;
case '-':
//if processor.isEmpty(): throw an exception
temp1 = processor.pop().subtract(op_order.pollFirst());
processor.push(temp1);
break;
default:
processor.push(temp);
}
}
/*
* System.out.println("This equation is currently unsolvable.");
System.out.println("Try assigning values to some of the variables.");
*/
while (!processor.isEmpty()) {
op_order.addFirst(processor.pop());
}
ListIterator<VariableUnit> iter = op_order.listIterator();
while ( iter.hasNext() ) {
VariableUnit iter_temp = iter.next();
//System.out.print(iter_temp.hasValue());
if (iter_temp.hasValue()) {
System.out.print( Double.toString(iter_temp.subValue()) );
}
else {
System.out.print(iter_temp);
}
};
System.out.println();
return new VariableUnit(Double.NaN, ' ');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void equationsTest() {\n }",
"@Test\r\n public void test() {\r\n String[][] equations = { { \"a\", \"b\" }, { \"b\", \"c\" } },\r\n queries = { { \"a\", \"c\" }, { \"b\", \"a\" }, { \"a\", \"e\" }, { \"a\", \"a\" }, { \"x\", \"x\" } };\r\n double[] values = { 2.0, 3.0 };\r\n assertArrayEquals(new double[] { 6.0, 0.5, -1.0, 1.0, -1.0 }, calcEquation(equations, values, queries),\r\n Double.MIN_NORMAL);\r\n }",
"@Test\n public void test15() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(22, (UnivariateRealFunction) tanh0, (-0.5), (double) 22, (-0.5), allowedSolution0);\n }",
"@Test\n public void test() {\n Assert.assertEquals(0.83648556F, Problem232.solve(/* change signature to provide required inputs */));\n }",
"@Test\n public void test22() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }",
"@Test\n public void test23() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver(1.0);\n Floor floor0 = new Floor();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(2297949, (UnivariateRealFunction) floor0, 0.5, 1.0, allowedSolution0);\n double double1 = illinoisSolver0.doSolve();\n }",
"@Test\n public void test21() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Minus minus0 = new Minus();\n double double0 = illinoisSolver0.solve(4037, (UnivariateRealFunction) minus0, (double) 4037, 0.0, (double) 4037);\n }",
"@Test\n public void testApproximation() {\n int N = 100;\n Mesh mesh = new Mesh(equation.t0, equation.tN, N);\n Noise noise = new Noise(mesh, 10);\n\n // We will use SDG method to approximate with a polynomial degree of p = 4.\n int p = 4;\n SDG sdg = new SDG();\n ApproxGlobal approxGlobal = sdg.Solve(equation, noise, mesh, p);\n\n // For every element, we check that the approximation at the endpoint is within 10e-10\n // of the analytical solution.\n for(int i = 0; i < approxGlobal.localApproximations.length; i++){\n ApproxLocal local = approxGlobal.localApproximations[i];\n\n double totalNoise = noise.sumUntil(i);\n double t = mesh.elements[i].upperEndpoint;\n\n double expected = this.equation.exactSolution(t, totalNoise);\n double actual = local.terminal();\n\n assertEquals(expected, actual, 10e-10);\n }\n }",
"@Test\n public void test17() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-8.575998569792264E-17), 2.384185791015625E-7, allowedSolution0);\n }",
"@Test\n public void test24() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Asin asin0 = new Asin();\n // Undeclared exception!\n try { \n illinoisSolver0.solve((-2213), (UnivariateRealFunction) asin0, 0.008336750013465571, (-2468.32548668046), 0.008336750013465571);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (-2,213) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test19() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }",
"@Test\n public void test00() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Abs abs0 = new Abs();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = illinoisSolver0.solve(1166, (UnivariateRealFunction) abs0, 0.0, 0.0, allowedSolution0);\n }",
"public static void solveQuadraticEquation() {\n }",
"@Test\n public void test09() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-1672.701), (-4.26431539230972), (-8.575998569792264E-17), allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [-1,672.701, -4.264], values: [-1, -1]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"public abstract void solve();",
"@Test\n public void test07() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.15, 0.0, 1315.10543666213);\n Asinh asinh0 = new Asinh();\n AllowedSolution allowedSolution0 = AllowedSolution.ABOVE_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(0, (UnivariateRealFunction) asinh0, 2.479773539153719E-5, 2209.1881, 0.0, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test06() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, 4.833322802454349E-9, 2.384185791015625E-7, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [0, 0], values: [0, 0]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"@Test\n public void test18() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.9631727196538443), (double) 16, (-0.9631727196538443), allowedSolution0);\n }",
"public static void solve(String question)\n\t{\n\t\t\n\t\tint add_function = 0;\n\t\tint sub_function = 0;\n\t\t\n\t\tString string_alpha = find_a(question); //finds the value of first input including x\n\t\tString string_beta = find_b(question); //finds the value of second input including x\n\t\t\n\t\tint var_alpha = find_a_num(question); //finds value as integer not including x, of first function\n\t\tint var_beta = find_b_num(question); //finds value as integer not including x, of second function\n\t\t\n\t\tSystem.out.println((find_par(2,question) + find_par(3,question)));\n\t\t\n\t\tString function_1 = function_1(question); //finds just the trig operator of the first function only used to check what type of equation\n\t\tString function_2 = function_2(question); //finds just the trig operator of the second function\n\t\t\n\t\t//check to make sure question is valid if not will start over\n\t\tif (!((function_1.equalsIgnoreCase(\"sin\") && function_1.equalsIgnoreCase(\"cos\") && function_1.equalsIgnoreCase(\"tan\")) || (function_2.equalsIgnoreCase(\"sin\") || function_2.equalsIgnoreCase(\"cos\") || function_2.equalsIgnoreCase(\"tan\"))))\n\t\t{\n\t\t\terror();\n\t\t}\n\t\t\n\t\t//checking to see what equation to use\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"sin\"))\n\t\t{\n\t\t\t\n\t\t\tsin_sin(string_alpha,string_beta,var_alpha,var_beta);\n\t\t\t/*System.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"-\" + string_beta + \")) - (cos(\" + string_alpha + \"+\" + string_beta +\"))]\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_beta2 + \") - cos(\" + string_alpha2 + \")]\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_beta2 + \") - (1/2)cos(\" + string_alpha2 + \")\");\n\t\t\t\n\t\t\tfinished();*/\n\t\t\t\n\t\t}\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t//not done\n\t\tif (function_1.equalsIgnoreCase(\"cos\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t\n\t\t////////////\n\t\t//System.out.println(function_1 + \" \" + function_2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find_b(question);\n\t}",
"@Test\n public void test05() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, 0.0);\n Exp exp0 = new Exp();\n AllowedSolution allowedSolution0 = AllowedSolution.ABOVE_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(1626, (UnivariateRealFunction) exp0, (double) 1626, 0.0, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [1,626, 0]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"@Test\n public void test16() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }",
"@Test\n public void test12() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n // Undeclared exception!\n try { \n illinoisSolver0.doSolve();\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"@Test\n public void test20() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0);\n Asinh asinh0 = new Asinh();\n AllowedSolution allowedSolution0 = AllowedSolution.ANY_SIDE;\n double double0 = regulaFalsiSolver0.solve(937, (UnivariateRealFunction) asinh0, (-3537.8), 1704.8188, allowedSolution0);\n }",
"@Test\n public void shouldSolveProblem67() {\n assertThat(Euler67Test.solve(\"small_triangle.txt\")).isEqualTo(23);\n assertThat(Euler67Test.solve(\"p067_triangle.txt\")).isEqualTo(7273);\n }",
"@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}",
"public void solve(int x, int y, int number)\r\n\t{\r\n\t\t\r\n\t}",
"public abstract double evaluer(SolutionPartielle s);",
"@Test\n public void test1() {\n System.out.println(\"A* Test i1\"); \n \n Solver solver = new Solver(new TileWorld(\"i1.png\"), SearchStrategy.A_STAR);\n AlgorithmResults expResult = new AlgorithmResults(580, 967);\n AlgorithmResults result = solver.solve();\n \n print(result, expResult);\n \n assertEquals(\"BestPathCost does not match!\", expResult.getBestPathCost(), result.getBestPathCost());\n }",
"@Test\n public void test01() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver(0.0, (-1060.0));\n Gaussian gaussian0 = new Gaussian();\n double double0 = pegasusSolver0.solve(4, (UnivariateRealFunction) gaussian0, 125.121193945018, (-2672.0), (-1060.0));\n }",
"@Test\n public void test13() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Asin asin0 = new Asin();\n illinoisSolver0.setup(5, asin0, 907.1500599825578, 16, 16);\n // Undeclared exception!\n try { \n illinoisSolver0.doSolve();\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [907.15, 16]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"@Test\n public void t1()\n {\n \tFormula f1;\n \tEnvironment retenv;\n \tClause clause1,clause2,clause3;\n \tclause1 = make (na);\n\n \tf1=new Formula(clause1);\n \tSystem.out.println(\"---\");\n \tSystem.out.println(f1);\n \tretenv=SATSolver.solve(f1);\n \tSystem.out.println(\"Solution: \"+retenv);\n \t\n \tassertTrue(Boolean.TRUE);\n }",
"public void solution() {\n\t\t\n\t}",
"@Test\n public void test25() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.11113807559013367, 0.5, (-26.9977173));\n HarmonicOscillator harmonicOscillator0 = new HarmonicOscillator((-1967.765905), (-1967.765905), 0.5);\n double double0 = regulaFalsiSolver0.solve(127, (UnivariateRealFunction) harmonicOscillator0, (-1967.765905), 336.055956295, (-1076.4923));\n }",
"public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\n {Math.pow(B.getKey(),2),B.getKey(),1},\n {Math.pow(C.getKey(),2),C.getKey(),1}};\n\n double deter = computeSarrus(matrice);\n\n double [][] matriceA = {{A.getValue(),A.getKey(),1},\n {B.getValue(),B.getKey(),1},\n {C.getValue(),C.getKey(),1}};\n\n double [][] matriceB = {{Math.pow(A.getKey(),2),A.getValue(),1},\n {Math.pow(B.getKey(),2),B.getValue(),1},\n {Math.pow(C.getKey(),2),C.getValue(),1}};\n\n double [][] matriceC = {{Math.pow(A.getKey(),2),A.getKey(),A.getValue()},\n {Math.pow(B.getKey(),2),B.getKey(),B.getValue()},\n {Math.pow(C.getKey(),2),C.getKey(),C.getValue()}};\n\n abc[0] = computeSarrus(matriceA) / deter;\n abc[1] = computeSarrus(matriceB) / deter;\n abc[2] = computeSarrus(matriceC) / deter;\n }",
"public static void main(String[] args) {\n double numA;\n double numB;\n double numC;\n double delta;\n\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter number a: \");\n numA = sc.nextDouble();\n System.out.print(\"Enter number b: \");\n numB = sc.nextDouble();\n System.out.print(\"Enter number c: \");\n numC = sc.nextDouble();\n delta = Math.pow(numB,2) - (4*numA*numC);\n\n if (numA == 0){\n if (numB == 0){\n if (numC == 0){\n System.out.println(\"Equation countless solutions\");\n }else {\n System.out.println(\"Equation has no solution\");;\n }\n }else {\n System.out.println(\"Equation has 1 solution x = \" + (-numB/numA));\n }\n }else {\n if (delta < 0){\n System.out.println(\"Equation has no solution\");\n }else if (delta == 0){\n System.out.println(\"Equation has 1 solution x = \" + (-numB/(2*numA)));\n }else {\n System.out.println(\"Equation has 2 solutions x1 = \" + (-numB+Math.sqrt(delta))/(2*numA));\n System.out.println(\"Equation has 2 solutions x2 = \" + (-numB-Math.sqrt(delta))/(2*numA));\n }\n }\n }",
"@Test\n public void test26() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver();\n Log log0 = new Log();\n pegasusSolver0.setup(44, log0, 44, 894.245407657248, 44);\n // Undeclared exception!\n try { \n pegasusSolver0.doSolve();\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [44, 894.245], values: [3.784, 6.796]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"@Test\n public void test04() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(0, (UnivariateRealFunction) log1p0, 4956.642689288169, 636.6, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"public abstract double evaluateSolution(Solution solution) throws JMException, SimulationException;",
"public abstract TrajectoryInfo solve();",
"public boolean solve()\n\t{\n\t\t// Call the internal solver with the initial values\n\t\treturn solve(numberOfDiscs, poles[0], poles[1], poles[2]);\n\t}",
"@Test\n public void test() {\n Assert.assertEquals(3L, Problem162.solve(/* change signature to provide required inputs */));\n }",
"void solve(String result);",
"public boolean solve(){\n\t\treturn solve(0,0);\n\t}",
"public abstract GF2nElement solveQuadraticEquation()\n throws RuntimeException;",
"@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }",
"public int eqnDecide(float[][] val, String ps) {\n int eq=0,u=0,sum=0,i;\n String unknown;\n unknown = ai.unknownFnd(ps); //contains the unknown var\n u = ai.unFlag(unknown);\n for (i=0;i<3;i++)\n sum+=val[i][1];\n sum+=u;\n System.out.println(sum);\n if (sum == 10)\n eq = 1;\n else if (sum == 14)\n eq = 2;\n else if (sum == 11)\n eq =3;\n return eq;\n }",
"private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }",
"@Test\n public void testCalculateRPNCustom() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"10\",\"2\",\"/\", \"3\", \"+\", \"*\", \"15\",\"/\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(6.4));\n }",
"public double getBestSolutionEvaluation();",
"@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }",
"@Test\n public void test02() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = regulaFalsiSolver0.solve(2044, (UnivariateRealFunction) log1p0, (-517.825700479), (double) 0, 1711.029259737, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in) ;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter number of equations(x%num=rem)\");\r\n\t\tint count = scan.nextInt() ;\r\n\t\t\r\n\t\tint[] num = new int[count] ;\r\n\t\tSystem.out.println(\"Enter num values\");\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\tnum[i] = scan.nextInt() ;\r\n\t\t}\r\n\t\t\r\n\t\tint[] rem = new int[count] ;\r\n\t\tSystem.out.println(\"Enter rem values\");\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\trem[i] = scan.nextInt() ;\r\n\t\t}\r\n\t\t\r\n\t\tint M = 1 ;\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\tM = M * num[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] m = new int[count] ;\r\n\t\tfor(int i = 0 ; i <count ; i++)\r\n\t\t{\r\n\t\t\tm[i] = M / num[i] ;\r\n\t\t}\r\n\t\t\r\n\t\tint[] y = new int[count] ;\r\n\t\tfor(int i = 0 ; i < count ; i++)\r\n\t\t{\r\n\t\t\tif(m[i] > num[i])\r\n\t\t\t{\r\n\t\t\t\ty[i] = m[i] % num[i] ;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//Use eegcd\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\tint x = 0;\r\n\t\tfor(int i = 0 ; i < count ; i++)\r\n\t\t{\r\n\t\t\tx = x + y[i]*m[i]*rem[i];\r\n\t\t}\r\n\t\tx = x%M ;\r\n\t\tSystem.out.println(\"X = \" + x);\r\n\t}",
"public float solveEqun(float[][] values, int uf, int eq) {\n float sol=0;\n float v=0,u=0,a=0,t=0,s=0;\n for (int i=0;i<3;i++) {\n for (int j=0;j<2;j++) {\n if (values[i][1] == 1)\n v = values[i][0];\n else if (values[i][1] == 2)\n u = values[i][0];\n else if (values[i][1] == 3)\n a = values[i][0];\n else if (values[i][1] == 4)\n t = values[i][0];\n else if (values[i][1] == 5)\n s = values[i][0];\n }\n }\n\n if (eq == 1) {\n if (uf == 1) {\n sol = u+(a*t);\n //System.out.println(\"u:\"+u);\n }\n else if (uf == 2) {\n sol = v - (a*t);\n //System.out.println(\"V:\"+v);\n }\n\n else if (uf == 3)\n sol = (v-u)/t;\n else if (uf == 4)\n sol = (v-u)/a;\n }\n\n else if (eq == 2) {\n if (uf == 5)\n sol = (float) ((u*t) + (0.5*a*t*t));\n else if (uf == 2)\n sol = (float) ((s-(0.5*a*t*t))/t);\n else if (uf == 3)\n sol = (float) ((s-(u*t))/(0.5*t*t));\n else if (uf == 4) {\n float sol1 = (float) ((-u+Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n float sol2 = (float) ((-u-Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n if (sol1<0)\n sol = sol2;\n else\n sol = sol1;\n }\n }\n\n else if (eq == 3) {\n if (uf == 1)\n sol = (float) Math.sqrt((2*a*s)-(u*u));\n else if (uf == 2)\n sol = (float) Math.sqrt((v*v)-(2*a*s));\n else if (uf == 3)\n sol = ((v*v)-(u*u))/(2*s);\n else if (uf == 5)\n sol = ((v*v)-(u*u))/(2*a);\n }\n\n return sol;\n }",
"@Test\n public void test04() throws Throwable {\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = (-752.3);\n doubleArray0[1] = (-3311.34);\n doubleArray0[2] = (-1.0);\n doubleArray0[4] = (-3693.989241);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-628.8590785579964), 31.140624862635367);\n assertEquals((-3.552713678800501E-15), double0, 0.01D);\n }",
"@Test\n public void test11() throws Throwable {\n double[] doubleArray0 = new double[2];\n doubleArray0[0] = (-0.8617145984116891);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-0.8617145984116891), 768.9227086541);\n assertEquals(2.220446049250313E-16, double0, 0.01D);\n }",
"private void solveEquation( \tVectorStack<Integer> numbers,\t\t//If the vector stacks aren't referencing the original addresses correctly,\r\n\t\t\t\t\t\t\t\t\tVectorStack<Character> operands )\t//convert this method to return an int, being fed the parameters of two\r\n\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//popped ints and one popped operand char\r\n\t\tint rightValue = \tnumbers.pop();\r\n\t\tint leftValue = \tnumbers.pop();\r\n\t\tchar operand = \t\toperands.pop();\r\n\t\t\r\n\t\tswitch ( operand )\r\n\t\t{\r\n\t\t\tcase '*': \tnumbers.push( leftValue * rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '/':\tnumbers.push( leftValue / rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '+':\tnumbers.push( leftValue + rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '-':\tnumbers.push( leftValue - rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '(':\r\n\t\t\tcase ')':\tSystem.out.println( \"solveEquation called improperly.\"\r\n\t\t\t\t\t\t+ \"Parantheses should be peeked and solveEquation not called on them\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tdefault:\tSystem.out.println( \"Invalid character in operands stack.\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t}//end switch\r\n\t}",
"private void SearchCtes(){\n double d1=0.0;\n boolean elev=false;\n boolean c1=true;\n boolean c2=false;\n boolean c3=false;\n String A=\"\";\n String B=\"\";\n String C=\"\";\n int i=0;\n int j=0;\n while(this.Eq.charAt(i)!='=') {\n //j=i;\n if(this.Eq.charAt(i)=='+'||this.Eq.charAt(i)=='D'){\n i++;\n }\n if(this.Eq.charAt(i)=='^'){\n elev=true;\n i++;\n }\n if(this.Eq.charAt(i)=='2'&&elev) {//final do D^2\n if(A==\"\"){\n this.a=0.0;\n }else{\n this.a=Integer.parseInt(A);\n } \n elev=false; \n c1=false;\n c2=true;\n i++;\n }\n if(this.Eq.charAt(i)=='1'&&elev) {//final do D^1\n if(B==\"\"){\n this.b=0.0;\n }else{\n this.b=Integer.parseInt(B);\n } \n elev=false; \n c2=false;\n c3=true;\n i++;\n }\n if(c1&&!elev){\n A+=this.Eq.charAt(i);\n }\n if(c2&&!elev){\n B+=this.Eq.charAt(i);\n }\n if(c3&&!elev){\n C+=this.Eq.charAt(i);\n }\n i++;\n } \n if(C==\"\"){\n this.c=0.0;\n }else{\n this.c=Integer.parseInt(C);\n } \n }",
"@Test\n public void test11() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, 0.0);\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve((-1144), (UnivariateRealFunction) null, 0.0, 0.0, 0.0);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }",
"@Test\n public void test14() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver();\n Log log0 = new Log();\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(2048, (UnivariateRealFunction) log0, 0.0, (double) 2048);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (2,048) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test10() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(1601.9);\n Acos acos0 = new Acos();\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(1023, (UnivariateRealFunction) acos0, (double) 1023, (double) 1023, 0.0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [1,023, 1,023]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"@Test\n public void test02() throws Throwable {\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = 1.0;\n doubleArray0[1] = (-79.6956205713495);\n doubleArray0[2] = (-843.9991788437867);\n doubleArray0[3] = (-367.9097696234815);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-1441.3043707), 790.971, 0.5);\n assertEquals((-1.1368683772161603E-13), double0, 0.01D);\n }",
"@Test\n public void test01() throws Throwable {\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = 2839.6797;\n doubleArray0[1] = (-79.6956205713495);\n doubleArray0[2] = (-843.9991788437867);\n doubleArray0[3] = (-367.9097696234815);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-79.6956205713495), 0.5, 2839.6797);\n assertEquals(0.5, double0, 0.01D);\n }",
"public void solucion() {\r\n System.out.println(\"Intervalo : [\" + a + \", \" + b + \"]\");\r\n System.out.println(\"Error : \" + porce);\r\n System.out.println(\"decimales : \"+ deci);\r\n System.out.println(\"Iteraciones : \" + iteraciones);\r\n System.out\r\n .println(\"------------------------------------------------ \\n\");\r\n \r\n double c = 0;\r\n double fa = 0;\r\n double fb = 0;\r\n double fc = 0;\r\n int iteracion = 1;\r\n \r\n do {\r\n // Aqui esta la magia\r\n c = (a + b) / 2; \r\n System.out.println(\"Iteracion (\" + iteracion + \") : \" + c);\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n fc = funcion(c);\r\n if (fa * fc == 0) {\r\n if (fa == 0) {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raÃz es: \"+a);\r\n System.out.println(a);\r\n System.exit(0);\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raÃz es: \"+c);\r\n System.out.println(c);\r\n System.exit(0);\r\n }}\r\n \r\n if (fc * fa < 0) {\r\n b = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n } else {\r\n a = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n }\r\n iteracion++;\r\n // Itera mientras se cumpla la cantidad de iteraciones establecidas\r\n // y la funcion se mantenga dentro del margen de error\r\n \r\n er = Math.abs(((c - x) / c)* 100);\r\n BigDecimal bd = new BigDecimal(aux1);\r\n bd = bd.setScale(deci, RoundingMode.HALF_UP);\r\n BigDecimal bdpm = new BigDecimal(pm);\r\n bdpm = bdpm.setScale(deci, RoundingMode.HALF_UP);\r\n cont++;\r\n fc=c ;\r\n JOptionPane.showMessageDialog(null, \"conteos: \" + cont + \" Pm: \" + bd.doubleValue() + \" Funcion: \" + bdpm.doubleValue() + \" Error: \" + er +\"%\"+ \"\\n\");\r\n } while (er <=porce);\r\n \r\n \r\n }",
"public String getResult()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\t\r\n\t\tVectorStack<Character> operands = \t\t\tnew VectorStack<Character>();\r\n\t\tVectorStack<Integer> numbers = \t\t\t\tnew VectorStack<Integer>();\r\n\t\tVectorStack<Boolean> tempHasSignToCompare = new VectorStack<Boolean>();\r\n\t\t\r\n\t\tboolean lastWasNum = \t\t\tfalse;\t//true if last character was a number\r\n\t\tboolean hasSignToCompare = \t\tfalse;\t//true if a previous operand has yet to be computed in the string\r\n\t\tchar current;\t\t\t\t\t\t\t//current character in iterator\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tfor ( int i = 0; i < equationString.length(); i++ )\r\n\t\t\t{\r\n\t\t\t\tcurrent = equationString.charAt( i );\r\n\t\t\t\t\r\n\t\t\t\tif ( current == ' ' )\r\n\t\t\t\t{\r\n\t\t\t\t\t//keep empty. makes sure spaces aren't treated as an error\r\n\t\t\t\t}//end else if\r\n\t\t\t\telse if ( lastWasNum )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( Character.isDigit( current ) ) //multi-digit numbers\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint toFormat = numbers.pop();\r\n\t\t\t\t\t\ttoFormat = toFormat * 10 + current - '0';\r\n\t\t\t\t\t\tnumbers.push( toFormat );\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( current == ')' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twhile ( operands.peek() != '(' )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t\t\t\t}//end while\r\n\t\t\t\t\t\toperands.pop(); //removes '(' from operands stack\r\n\t\t\t\t\t\thasSignToCompare = tempHasSignToCompare.pop();\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( isSign( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlastWasNum = false;\r\n\t\t\t\t\t\tif ( hasSignToCompare )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( peekedHasPrecedence (\toperands.peek (), \t//solve peeked if it has precedence,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcurrent ) )\t\t\t//otherwise push current operand to stack\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\t\t}//end if\r\n\t\t\t\t\t\t\telse //peeked did not have precedence\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\t\t}//end else\r\n\t\t\t\t\t\t}//end if\r\n\t\t\t\t\t\telse //there was no previous sign to compare\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toperands.push( current ); //push current operand to stack and set corresponding boolean\r\n\t\t\t\t\t\t\thasSignToCompare = true;\r\n\t\t\t\t\t\t}//end else\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: Invalid character entered\";\r\n\t\t\t\t\t}//end else\r\n\t\t\t\t}//end if\r\n\t\t\t\telse //lastWasNum = false\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( Character.isDigit( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlastWasNum = true;\r\n\t\t\t\t\t\tnumbers.push( current - '0' );\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( current == '(' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\ttempHasSignToCompare.push(hasSignToCompare);\r\n\t\t\t\t\t\thasSignToCompare = false;\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse if ( isSign( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: cannot have two adjacent signs\";\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: Invalid character entered\";\r\n\t\t\t\t\t}//end else\r\n\t\t\t\t}//end else\r\n\t\t\t}//end for\r\n\t\t\twhile ( !operands.isEmpty() )\r\n\t\t\t{\r\n\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t}//end while\r\n\t\t}//end try\r\n\t\tcatch (ArithmeticException ae) \r\n\t\t{\r\n\t\t\treturn ae.toString();\r\n\t\t}//end catch ArithmeticException\r\n\t\tcatch (EmptyStackException ese) {\r\n\t\t\treturn ese.toString() + \" Make sure all parenthesis have a matching pair\";\r\n\t\t}//end catch EmptyStackException\r\n\t\treturn numbers.pop().toString();\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\t\r\n\t\t\tint [] numReps= {3,1,2,2,2};\r\n\t\t\tMathModelClass.solveMe(85, 5, 2,numReps, 1);\r\n\t\r\n\t\t}",
"@Override\n\t public String solve() {\n\t if (count == 0) {\n\t answer1 = getVariable2()*getVariable3();\n\t setAnswer(answer1 + \"\");\n\t } else if (count == 1) {\n\t answer1 = getVariable1()/getVariable2();\n\t setAnswer(answer1 + \"\");\n\t }else if (count == 2) {\n\t answer1 = getVariable1()/getVariable3();\n\t setAnswer(answer1 + \"\");\n\t }\n\t return getAnswer();\n\t }",
"double getSolutionCost();",
"private Hashtable solve() {\n Hashtable<Integer, Double> solution = new Hashtable<>(); //maps variable (column) to its value\n double det = system.determinant();\n if (det == 0) {\n System.err.println(\"LinearSystem Solve Failed: determinant of matrix is 0\");\n return null;\n } else {\n for (int c = 0; c < system.N; c++) {\n double detC = colVectorIntoMatrix(c).determinant();\n solution.put(c, detC/det);\n }\n return solution;\n }\n }",
"@Test\n public void test03() throws Throwable {\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = (-752.3);\n doubleArray0[1] = (-3311.34);\n doubleArray0[2] = (-1.0);\n doubleArray0[4] = (-3693.989241);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-628.8590785579964), 32.3197224);\n assertEquals(0.0, double0, 0.01D);\n }",
"public static void main(String[] args) throws InvalidAlgorithmParameterException {\n\n\t\t//Input\n\t\t//String[] expressions = {\"x = 10 ;\",\"p = 1;\",\"8 p = p * x ;\",\"10 x = x -1 ;\",\"15 x ? 8 ;\",\"p ;\",\";\"};\n\t\tString[] expressions = {\"1 x = 98765432109876543210987654321098765432109876543210 ;\",\n\t\t\t\"2 y = 10 ;\",\"3 p = 1 ;\",\"5 p = p * x ;\",\"6 y = y - 1 ;\",\"7 y ? 5 ;\",\"p ;\",\";\"};\n\t\t//\tString[] expressions = {\"x = 987654321098765432109876543210987654321 ;\",\"y = 8 ;\",\"5 x = x * x ;\",\"x ;\",\"y = y 1 - ;\",\"7 y ? 5 ;\",\";\"};\n\t\t//No of expressions\n\t\tint no_of_expressions = expressions.length;\n\t\t//Hash map to store the line corresponding to the line number\n\t\tLinkedHashMap<Integer,String> lineNumbers = new LinkedHashMap<Integer, String>();\n\t\t//Input expression stored to be processed by the function later\n\t\tList<ConditionalExpressionsHelperClass> inputExpressions = new ArrayList<ConditionalExpressionsHelperClass>();\n\t\t//Create object for postfix expression\n\t\tParsePostfixExpression parseExpression = new ParsePostfixExpression();\n\t\t//Base value in which numbers have to be stored.\n\t\tint base_value = 10;\n\t\tOperatorPrecedence operatorPrecedence = new OperatorPrecedence();\n\t\tint no_line_number = -1;\n\t\t\n\t\t//Iterate through the list of expressions and check which of the statements have goto conditions\n\t\tfor(int i=0;i<no_of_expressions;i++)\n\t\t{\n\t\t\t//Create an object of HasLine number, that stores the line number and its corresponding value that says whether it has a got statement or not.\n\t\t\tConditionalExpressionsHelperClass hasLineNumber = new ConditionalExpressionsHelperClass();\n\t\t\t\n\t\t\t//Initially set the line to the string expression and has goto statement to false\n\t\t\thasLineNumber.setExpression(expressions[i]);\n\t\t\thasLineNumber.setHasLineNumber(false);\n\t\t\thasLineNumber.setLineNumber(0);\n\t\t\t\n\t\t\t//Check if the expression starts with a number, if so change the HasLineNumber to true\n\t\t\tif(expressions[i].charAt(0)>='0' && expressions[i].charAt(0)<='9')\n\t\t\t{\n\t\t\t\tint index=0;\n\t\t\t\t//List to temporarily store the line number\n\t\t\t\tList<Integer> temp_values = new ArrayList<Integer>();\n\t\t\t\tint temp_value =0;\n\t\t\t\t\n\t\t\t\t//Iterate through the expression and set the key as line number and the remaining expression as value to this number\n\t\t\t\twhile(index< expressions[i].length())\n\t\t\t\t{\n\t\t\t\t\tif(expressions[i].charAt(index) == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\t//Compute the final value\n\t\t\t\t\t\tfor (int j = temp_values.size()-1; j >=0; j--) {\n\t\t\t\t\t\t\ttemp_value += temp_values.get(j)\n\t\t\t\t\t\t\t\t\t* (Math.pow(BASE_VALUE, temp_values.size()-1-j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Set the line number, conditional expression w\n\t\t\t\t\t\tlineNumbers.put(temp_value, expressions[i].substring(index+1, expressions[i].length()));\n\t\t\t\t\t\thasLineNumber.setLineNumber(temp_value);\n\t\t\t\t\t\ttemp_values.clear();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(expressions[i].charAt(index) >= '0' && expressions[i].charAt(index) <= '9')\n\t\t\t\t\t{\n\t\t\t\t\t\ttemp_values.add(Integer.parseInt(expressions[i].charAt(index) + \"\"));\n\t\t\t\t\t}\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\thasLineNumber.setHasLineNumber(true);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tno_line_number = no_line_number-1;\n\t\t\t\tlineNumbers.put(no_line_number, expressions[i]);\n\t\t\t}\n\t\t\tinputExpressions.add(hasLineNumber);\n\t\t}\n\t\tfor(int i=0;i<inputExpressions.size();i++)\n\t\t{\n\t\t\tif(inputExpressions.get(i).isHasLineNumber() && operatorPrecedence.hasOperator(inputExpressions.get(i).getExpression()))\n\t\t\t{\n\t\t\t\t//Get expression associated with the line number\n\t\t\t\tString expression = lineNumbers.get(inputExpressions.get(i).getLineNumber());\n\t\t\t\tif(expression.contains(\"?\"))\n\t\t\t\t{\n\t\t\t\t\tparseExpression.evaluateLoopExpressions(expression, base_value, inputExpressions.get(i).lineNumber, lineNumbers);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t//Convert output array to string \n\t\t\t\tString result;\n\t\t\t\t//Output array to store the postfix notation of the infix notation.\n\t\t\t\tchar[] output = new char[expression.length()];\n\t\t\t\tif(!operatorPrecedence.isPostfixExpression(expression))\n\t\t\t\t{\n\t\t\t\t\toutput = ShuntingYard.getPostFixNotation(expression.substring(0,expression.length()-2), output);\n\t\t\t\t\tresult = String.valueOf(output);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tresult = expression;\n\t\t\t\tif(i == inputExpressions.size()-1)\n\t\t\t\t{\t\n\t\t\t\t\tparseExpression.evaluateExpression(result, base_value, true,lineNumbers,1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tparseExpression.evaluateExpression(result, base_value, false,lineNumbers,1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//If it is the last statement being called then send last statement value as true, to print the final value\n\t\t\t\tif(i == inputExpressions.size()-1)\n\t\t\t\t{\n\t\t\t\t\tif(inputExpressions.get(i).hasLineNumber)\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, true,null,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, true,null,0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(inputExpressions.get(i).hasLineNumber)\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, false,null,1);\n\t\t\t\t\telse\n\t\t\t\t\t\tparseExpression.evaluateExpression(inputExpressions.get(i).getExpression(), base_value, false,null,0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void shouldEvaluateWorkProperlyCase1() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5, result, 0.0001) ;\n }",
"public static void main(String args[]) {\n\t\t\n\t\t//declare the variables of equation ax*x + b*x + c = 0 \n\t\tdouble a,b,c;\n\t\t\n\t\t//define scanner variable x as\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//initiate the value to command line input\n\t\tSystem.out.println (\"give value of x^2 coefficient\");\n\t\t\n\t\t//now add input to variable a \n\t\ta = scan.nextDouble();\n\n //initiate the value to command line input\n\t\tSystem.out.println (\"give value of x coefficient\");\n\t\t\n\t\t//now add input to variable a \n\t\tb = scan.nextDouble();\n\n //initiate the value to command line input\n\t\tSystem.out.println (\"give value of contant\");\n\t\t\n\t\t//now add input to variable a \n\t\tc = scan.nextDouble();\n \n //declare discriminant of the equation as b^2 - 4*a*c\n double d = Math.pow(b, 2.0) - 4.0*a*c;\n \n //apply the rules for quadratic equations\n //if d =0.0 then roots are equal\n if (d == 0.0) {\n \t\n \t//the root in these situation is -b/2a\n \tSystem.out.println(\"the equation has \"+(-1.0*b/(2.0*a)) + \" as only real root\");\n }\n else if (d >=0.0) {\n \t\n \t//the root in this situation is (-b +- d^0.5)/2a\n \t//the first root is x1\n \tdouble x1 = (-1.0*b + Math.pow(d, 0.5))/(2.0*a);\n \t\n \t//the second root is x2\n \tdouble x2 = (-1.0*b - Math.pow(d, 0.5))/(2.0*a);\n \tSystem.out.println(\"the equation has \"+(x1) + \" and \"+(x2) +\" as two real roots\");\n }\n else {\n \t\n \t//the root in this situation are complex (-b +- d^0.5i)/2a\n \t//the real part of root is r\n \tdouble real = (-1.0*b)/(2.0*a);\n \t\n \t//the complex part of root is c\n \tdouble com = (Math.pow(-1.0*d, 0.5))/(2.0*a);\n \tSystem.out.println(\"the equation has \"+(real) + \"+\"+(com) +\"i and \"+real+\"-\"+com+\"i as two complex root\" );\n }\n\t}",
"@Test\n public void testSolution() throws Exception {\n assertEquals(4, new Task5().solution(4, new int[]{1, 2, 3}));\n // 1. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1\n // 2. 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1\n // 3. 2, 2, 1, 1, 1, 1, 1, 1, 1, 1\n // 4. 2, 2, 2, 1, 1, 1, 1, 1, 1\n // 5. 2, 2, 2, 2, 1, 1, 1, 1\n // 6. 2, 2, 2, 2, 2, 1, 1\n // 7. 2, 2, 2, 2, 2, 2\n // 8. 5, 1, 1, 1, 1, 1, 1, 1\n // 9. 5, 2, 1, 1, 1, 1, 1\n // 10. 5, 2, 2, 1, 1, 1\n // 11. 5, 2, 2, 2, 1\n // 12. 5, 5, 1, 1\n // 13. 5, 5, 2\n assertEquals(13, new Task5().solution(12, new int[]{1, 2, 5}));\n // 1. 2, 2, 2, 2, 2, 2\n // 2. 5, 5, 2\n assertEquals(2, new Task5().solution(12, new int[]{2, 5}));\n }",
"private double solution() {\n final double h = (getTextToDouble(textX1) - getTextToDouble(textX0)) / ( 2*getTextToDouble(textN)) / 3;\n double[][] mass = xInitialization();\n double answer, evenSum = 0, oddSum = 0;\n for (int i = 0; i < 2; i++) {\n for (double element : mass[i]) {\n if (i == 0)\n oddSum += getValue(element);\n else\n evenSum += getValue(element);\n }\n }\n answer = h * (getValue(getTextToDouble(textX0)) + 4 * oddSum + 2 * evenSum + getValue(getTextToDouble(textX1)));\n return answer;\n }",
"public double[] calcSolution() {\n\t\t\n\t// Call CostFunction object\n\t\tcostFunction.function(position);\n\t\t\n\t\treturn solution;\n\t\t\n\t}",
"public static String calculateStringEquation(String equation){\r\n //\"(17*(8-7/7))^2+7-3*-6*s90\"\r\n //Validity Check\r\n String numberSymbols = \"-.0123456789\";\r\n String operators = \"*/+^√sdfzcv\";\r\n \r\n //Replace alternate symbols\r\n equation = equation.replace(\",\", \".\");\r\n equation = equation.replace(\"x\", \"*\");\r\n equation = equation.replace(\"%\", \"/100\");\r\n equation = equation.replace(\"\\\\\", \"/\");\r\n \r\n //Insert + in front of -\r\n int c = 1;\r\n String newEquation = \"\" + equation.charAt(0);//Doesnt need to add + to begin\r\n while (c < equation.length()) {\r\n if (equation.charAt(c) == '-' && !operators.contains(\"\"+equation.charAt(c-1))) {\r\n newEquation += \"+\";\r\n }\r\n newEquation += equation.charAt(c);\r\n c++;\r\n }\r\n equation = newEquation;\r\n \r\n\r\n\r\n\r\n //Convert everything to double (eg 2 -> 2.0)\r\n c = 0;\r\n newEquation = \"\";\r\n boolean inNum = false;\r\n while (c < equation.length()) {\r\n if (numberSymbols.indexOf(equation.charAt(c)) != -1) {\r\n if (!inNum) {//Doesnt re read when going over more difficult numbers eg 2342\r\n newEquation += findNextNumber(equation, c-1);//opIndex is the index before next\r\n inNum = true;\r\n }\r\n }else{\r\n inNum = false;\r\n newEquation += equation.charAt(c);\r\n }\r\n c++;\r\n }\r\n equation = newEquation;\r\n //Brackets\r\n while(equation.contains(\"(\") || equation.contains(\")\")) {\r\n int openIndex = equation.indexOf(\"(\");\r\n int openBrackets = 1;\r\n int closedBrackets = 0;\r\n int closeIndex = openIndex + 1;\r\n\r\n while (openBrackets != closedBrackets) {\r\n if (equation.charAt(closeIndex) == '(') {\r\n openBrackets++;\r\n }\r\n if (equation.charAt(closeIndex) == ')') {\r\n closedBrackets++;\r\n }\r\n closeIndex++;\r\n }\r\n\r\n //Rewrite equation and sub in new value\r\n newEquation = \"\";//Reused\r\n if (openIndex != 0) {\r\n newEquation += equation.substring(0, openIndex);\r\n }\r\n newEquation += calculateStringEquation(equation.substring(openIndex+1, closeIndex-1));\r\n if (closeIndex != equation.length()-1) {\r\n newEquation += equation.substring(closeIndex);\r\n }\r\n equation = newEquation;\r\n }\r\n \r\n //Check order\r\n boolean test = checkStringFormula(equation);\r\n if (checkStringFormula(equation)) {\r\n //Trig (Typically in brackets)\r\n while (equation.contains(\"s\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"s\"));\r\n equation = equation.replace(\"s\" + num1, \"\" + (Math.sin(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"d\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"d\"));\r\n equation = equation.replace(\"d\" + num1, \"\" + (Math.cos(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"f\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"f\"));\r\n equation = equation.replace(\"f\" + num1, \"\" + (Math.tan(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"z\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"z\"));\r\n equation = equation.replace(\"z\" + num1, \"\" + Math.toDegrees(Math.asin(num1)));\r\n }\r\n while (equation.contains(\"c\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"c\"));\r\n equation = equation.replace(\"c\" + num1, \"\" + Math.toDegrees(Math.acos(num1)));\r\n }\r\n while (equation.contains(\"v\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"v\"));\r\n equation = equation.replace(\"v\" + num1, \"\" + Math.toDegrees(Math.atan(num1)));\r\n }\r\n //Exponents\r\n while (equation.contains(\"^\")) {\r\n int opIndex = equation.indexOf(\"^\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n ans = 1;\r\n }else{\r\n for (int i = 0; i < num2-1; i++) {\r\n ans*=ans;\r\n }\r\n if (num2 < 0) {\r\n ans = 1/ans;\r\n }\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Roots\r\n while (equation.contains(\"√\")) {\r\n int opIndex = equation.indexOf(\"√\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new ArithmeticException(\"Math error\");\r\n }else{\r\n ans = Math.pow(num2, 1/num1);\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Division\r\n while (equation.contains(\"/\")) {\r\n int opIndex = equation.indexOf(\"/\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new java.lang.ArithmeticException();\r\n }else{\r\n ans = num1/num2;\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Multiplication\r\n while (equation.contains(\"*\")) {\r\n int opIndex = equation.indexOf(\"*\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1*num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Addition\r\n while (equation.contains(\"+\")) {\r\n int opIndex = equation.indexOf(\"+\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1+num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n\r\n return equation;\r\n }else{\r\n throw new AssertionError(\"Incorrect Format\");\r\n }\r\n }",
"@Test\n public void test08() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(152.236924);\n Sinc sinc0 = new Sinc();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(3, (UnivariateRealFunction) sinc0, 152.236924, 152.236924, 0.0, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [152.237, 152.237]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"public String solveExpression(String expression) {\n Calculator calculator = new Calculator();\n ExpressionRootFinder rootFinder = new ExpressionRootFinder();\n if (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n while (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n String rootExpression = rootFinder.findRoot(expression);\n expression = expression.replace(\"(\" + rootExpression + \")\",\n calculator.calculate(rootExpression) + \"\");\n }\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A complex expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n } else {\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A simple expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n }\n }",
"public boolean solve() {\r\n\r\n\tint nextBox = findLeast();\r\n\t//coors for the least box\r\n\tint c = nextBox % 10;\r\n\tint r = nextbox/10;\r\n\t\r\n\r\n\t//look for least\r\n\t//for the numbers in the least box\r\n\t//assignT == true \r\n\t//check the max; if max is 100; well done! return true\r\n\t//if its not then if (solve() == true) again\r\n\t//if \r\n }",
"public void solve() {\n// BruteForceSolver bfs = new BruteForceSolver(pointList);\n// bfs.solve(); // prints the best polygon, its area, and time needed\n// System.out.println(\"-------------\");\n\n// StarshapedSolver ss = new StarshapedSolver(pointList);\n// foundPolygons = ss.solve();\n// System.out.println(\"-------------\");\n\n// RandomAddPointHeuristic ra = new RandomAddPointHeuristic(pointList);\n// foundPolygons = ra.solve(750);\n// System.out.println(\"-------------\");\n\n// GreedyAddPointHeuristic ga = new GreedyAddPointHeuristic(pointList,false);\n// foundPolygons = ga.solve(750);\n// System.out.println(\"-------------\");\n\n// long time = 4000;\n// GreedyAddPointHeuristic gaInit = new GreedyAddPointHeuristic(pointList,false);\n// Polygon2D initSolution = gaInit.solve(time*1/4).get(0);\n// System.out.println(initSolution.area);\n// System.out.println(initSolution);\n//\n// SimulatedAnnealing sa = new SimulatedAnnealing(pointList,initSolution,3);\n// foundPolygons.addAll(sa.solve(time-gaInit.timeInit,2,0.005,0.95));\n// System.out.println(sa.maxPolygon);\n// System.out.println(\"-------------\");\n\n// foundPolygons.addAll(findMultiplePolygonsStarshaped(8,0.6));\n\n }",
"public abstract int[] solve(double[][] costs);",
"private static void solve() throws IOException {\n\n OptimizationGame.solve();\n SumOfSumOfDigits.solve();\n CrossTheStreet.solve();\n }",
"public static Inequality Cegar() throws Exception {\n log.info(phi.toString());\n int i = 0;\n while (true) {\n i++;\n// if(i==10) {\n// System.out.print(\"TO \");\n// return null;\n// }\nSystem.out.print(\"\\r\"+i);\n log.info(\"Solving...\");\n Inequality ineq = phi.solve();\n //ineq=new Inequality(new int[] {2,1});\n if (ineq == null) {\n return ineq;\n } else {\n log.info(ineq.toString());\n }\n log.info(\"Looking for cs...\");\n if (ineq.findC()) {\n //System.out.println(\"Required \" + i + \" Iterations\");\n return ineq;\n } else {\n phi.add(ineq);\n }\n }\n }",
"@Test\n public void test00() throws Throwable {\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = 1.0;\n doubleArray0[1] = (-79.6956205713495);\n doubleArray0[2] = (-843.9991788437867);\n doubleArray0[3] = (-367.90976962348);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-79.6956205713495), 0.5, 1.0);\n assertEquals(0.0, double0, 0.01D);\n }",
"public boolean solucionar() {\n\t\treturn false;\n\t}",
"public static void main(String[] args) {\n System.out.println(solution(\"1 + 2\"));\n System.out.println(solution(\"1 * 2 + 3\"));\n System.out.println(solution(\"1 + 2 * 3\"));\n System.out.println(solution(\"1 + 2 * 3 - 4 / 2 + 6 / 2 - 7\"));\n\n System.out.println(solution(\"1 + 2 * (3 * (1 + 2))\"));\n }",
"public abstract double solve(int[][] matrix, double[] profitTable, int[] teamTable);",
"public interface Solver {\n public ArrayList<ArrayList<Double>> solve(double step, List<Pair<Double, Double>> init, int numberOfIterations);\n public ArrayList<ArrayList<Double>> solve(double step, List<Pair<Double, Double>> init, double max);\n}",
"private double getSol(){\n return this.sol;\n }",
"public void solveIt() {\n\t\tfirstFreeSquare.setNumberMeAndTheRest();\n\t}",
"public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n int result = 0;\n\n System.out.print(\"Enter three integer number : \");\n String num = input.nextLine();\n\n String [] operand = num.split(\" \");\n int x = Integer.parseInt(operand[0]);\n int y = Integer.parseInt(operand[1]);\n int z = Integer.parseInt(operand[2]);\n\n System.out.print(\"Enter two operand : \");\n String operator = input.nextLine();\n\n String [] op = operator.split(\" \");\n String a = op[0];\n String b = op[1];\n\n int temp = 0;\n\n for(int i = 0; i< op.length; i++){\n if(a.equals(\"X\") || a.equals(\"D\") || a.equals(\"M\") || b.equals(\"X\") || b.equals(\"D\") || b.equals(\"M\")){\n\n if(a.equals(\"X\") || b.equals(\"X\")){\n if(a.equals(\"X\")){\n if(i == 0) temp = x*y;\n else result = temp * x;\n a = \"\";\n }\n else if(b.equals(\"X\")){\n if(i == 0) temp = y*z;\n else result = temp * z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"D\") || b.equals(\"D\")){\n if(a.equals(\"D\")){\n if(i==0) temp = x/y;\n else result = x/temp;\n a = \"\";\n }\n else if(b.equals(\"D\")){\n if(i == 0) temp = y/z;\n else result = temp / z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"M\") || b.equals(\"M\")){\n if(a.equals(\"M\")){\n if(i == 0)temp = x % y;\n else result = x % temp;\n a = \"\";\n }\n\n else if(b.equals(\"M\")) {\n if(i == 0) temp = y % z;\n else result = temp % z;\n b = \"\";\n }\n }\n\n } else{\n if(a.equals(\"A\")){\n if(b.equals(\"A\")) result = x+y+z;\n else if(b.equals(\"S\")) result = x+y-z;\n else result = temp + x;\n }\n\n else if(b.equals(\"A\")){\n if(a.equals(\"A\")) result = x+y+z;\n else if(a.equals(\"S\")) result = x-y+z;\n else result = temp + z;\n }\n }\n }\n System.out.println(x + \" \" + op[0] + \" \" + y + \" \" + op[1] + \" \" + z + \" = \" + result);\n\n }",
"public static void main(String[] args) {\n\t\tsolve(8, 3);\r\n\t\tsolve(2, 4);\r\n\t\tsolve(3, 2);\r\n\t}",
"@Test\n public void testCalculateRPNStack() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"10\",\"2\",\"/\", \"3\", \"+\", \"*\", \"15\",\"/\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(6.4));\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tfloat a, b, c;\r\n\t\tSystem.out.println(\"Fill a, b, c: \");\r\n\t\ta = sc.nextFloat();\r\n\t\tb = sc.nextFloat();\r\n\t\tc = sc.nextFloat();\r\n\t\tfloat delta = (float) (Math.pow(b, 2) - 4 * a * c);\r\n\t\tif (delta < 0) {\r\n\t\t\tSystem.out.println(\"The equation has no solution!\");\r\n\t\t} else {\r\n\t\t\tif (delta == 0) {\r\n\t\t\t\tfloat x = -b / 2 * a;\r\n\t\t\t\tSystem.out.println(\"Solution x = \" + x);\r\n\t\t\t} else {\r\n\t\t\t\tdouble x1 = (-b - Math.sqrt(delta)) / 2 * a;\r\n\t\t\t\tdouble x2 = (-b + Math.sqrt(delta)) / 2 * a;\r\n\t\t\t\tSystem.out.println(\"Solution X1 = \" + x1);\r\n\t\t\t\tSystem.out.println(\"Solution X2 = \" + x2);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) throws Exception {\r\n Expression e = new Plus(new Mult(2, \"x\"), new Plus(new Sin(new Mult(4, \"y\")), new Pow(\"e\", \"x\")));\r\n System.out.println(e);\r\n Map<String, Double> assignment = new TreeMap<String, Double>();\r\n assignment.put(\"x\", 2.0);\r\n assignment.put(\"y\", 0.25);\r\n assignment.put(\"e\", 2.71);\r\n System.out.println(e.evaluate(assignment));\r\n e = e.differentiate(\"x\");\r\n System.out.println(e);\r\n System.out.println(e.evaluate(assignment));\r\n System.out.println(e.simplify());\r\n System.out.println(e);\r\n }",
"@Test\n\tpublic void calculateTest(){\n\t\tAssertions.assertThat(calculate(\"5*5\")).isEqualTo(25);\n\t}",
"public static String produceAnswer(String input) {\n // TODO: Implement this function to produce the solution to the input\n \n // Parsing one line of input\n int space = input.indexOf(\" \"); // find the index of the first space\n String operandOne = input.substring(0, space); // substring of beginning to space before operator\n \n String newString1 = input.substring(space + 1, input.length());\n int space2 = newString1.indexOf(\" \"); // find the index of the second space\n String operator = newString1.substring(0, space2); // operator is between the first space and the second space\n \n String newString2 = newString1.substring(space2, newString1.length());\n String operandTwo = newString2.substring(space2, newString2.length()); // substring of space after operator to the end\n \n \n // Multiple operations\n while (operandTwo.indexOf(\" \") > 0) {\n int space3 = operandTwo.indexOf(\" \");\n String value = operandTwo.substring(0, space3);\n String new_String3 = operandTwo.substring(space3 + 1, operandTwo.length());\n int space4 = new_String3.indexOf(\" \");\n String operator2 = new_String3.substring(space4 - 1, space4);\n operandTwo = new_String3.substring(space4 + 1, new_String3.length());\n String new_equation = operandOne + \" \" + operator + \" \" + value;\n operandOne = produceAnswer(new_equation);\n operator = operator2;\n }\n \n // Parsing fractions: Operand 1\n String whole1 = operandOne; // hi_\n String num1 = \"\";\n String denom1 = \"\";\n int slash1 = operandOne.indexOf(\"/\");\n \n if (slash1 > 0) {\n int underscore1 = operandOne.indexOf(\"_\");\n if (underscore1 > 0) {\n whole1 = operandOne.substring(0, underscore1);\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n } else {\n whole1 = \"0\";\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n }\n \n } else {\n num1 = \"0\";\n denom1 = \"1\";\n }\n \n // Parsing fractions: Operand 2\n String whole2 = operandTwo;\n String num2 = \"\";\n String denom2 = \"\";\n int slash2 = operandTwo.indexOf(\"/\");\n \n if (slash2 > 0) {\n int underscore2 = operandTwo.indexOf(\"_\");\n if (underscore2 > 0) {\n whole2 = operandTwo.substring(0, underscore2);\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n } else {\n whole2 = \"0\";\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n }\n \n } else {\n num2 = \"0\";\n denom2 = \"1\";\n }\n \n \n // change strings to integers\n int intwhole1 = Integer.parseInt(whole1);\n int intnum1 = Integer.parseInt(num1);\n int intdenom1 = Integer.parseInt(denom1);\n \n int intwhole2 = Integer.parseInt(whole2);\n int intnum2 = Integer.parseInt(num2);\n int intdenom2 = Integer.parseInt(denom2);\n \n // convert to improper fraction\n intnum1 += intdenom1 * Math.abs(intwhole1);\n if (intwhole1 < 0) {\n intnum1 *= -1;\n }\n \n intnum2 += intdenom2 * Math.abs(intwhole2);\n if (intwhole2 < 0) {\n intnum2 *= -1;\n }\n \n int finalnum = 0;\n int finaldenom = 0;\n int finalwhole = 0;\n \n // if denominator equals 0, quit\n if (intdenom1 == 0 || intdenom2 == 0) {\n return \"Invalid\";\n }\n \n // if operator is incorrect, quit\n if (operator.length() > 1) {\n return \"Invalid\";\n }\n \n // addition calculation\n // multiply whole values to fraction to get a common denominator\n if (operator.equals(\"+\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 + intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // subtraction calculation\n if (operator.equals(\"-\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 - intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // multiplication calculation\n if (operator.equals(\"*\")) {\n finalnum = intnum1 * intnum2;\n finaldenom = intdenom1 * intdenom2;\n if (intnum1 == 0 || intnum2 == 0) {\n return 0 + \"\";\n }\n }\n \n // division calculation\n if (operator.equals(\"/\")) {\n finalnum = intnum1 * intdenom2;\n finaldenom = intdenom1 * intnum2;\n }\n \n // make numerator negative instead of the denominator\n if (finaldenom < 0 && finalnum > 0) {\n finaldenom *= -1;\n finalnum *= -1;\n }\n \n // convert to mixed fraction if numerator is positive\n while (finalnum / finaldenom >= 1) {\n finalnum -= finaldenom;\n finalwhole += 1;\n }\n \n // convert to mixed fraction if numerator is negative\n while (finalnum / finaldenom <= -1) {\n finalnum += finaldenom;\n finalwhole -= 1;\n }\n \n // remove signs from numerator and denominator if there is a whole number\n if (finalwhole != 0) {\n finalnum = Math.abs(finalnum);\n finaldenom = Math.abs(finaldenom);\n }\n \n // reduce fraction\n int gcd = 1;\n for (int i = 1; i <= Math.abs(finalnum) && i <= Math.abs(finaldenom); i++) {\n if (finalnum % i == 0 && finaldenom % i == 0)\n gcd = i;\n }\n finalnum /= gcd;\n finaldenom /= gcd;\n \n // final output\n if (finalwhole == 0) {\n if (finalnum == 0) {\n return \"0\";\n } else {\n return finalnum + \"/\" + finaldenom;\n }\n } else if (finalnum == 0 || finaldenom == 1) {\n return finalwhole + \"\";\n } else {\n return finalwhole + \"_\" + finalnum + \"/\" + finaldenom;\n }\n }",
"public boolean solve(){\n\t\t//Solve the puzzle using backtrack method\n\t\treturn solve(0,0);\n\t}"
]
| [
"0.7618557",
"0.72323537",
"0.70746523",
"0.70285565",
"0.6992299",
"0.69520366",
"0.69512284",
"0.69395286",
"0.6910878",
"0.6848633",
"0.6830054",
"0.68268025",
"0.6800201",
"0.6772984",
"0.673591",
"0.6725853",
"0.67033327",
"0.66816366",
"0.6656718",
"0.6639246",
"0.65922004",
"0.6562073",
"0.6558137",
"0.6555139",
"0.6499932",
"0.6468207",
"0.64668405",
"0.64592373",
"0.6429082",
"0.6425079",
"0.63908565",
"0.63905054",
"0.6365298",
"0.63577694",
"0.63301516",
"0.6328892",
"0.6326088",
"0.63005304",
"0.6277504",
"0.6261335",
"0.6250891",
"0.6246487",
"0.62441725",
"0.623305",
"0.6227028",
"0.62243515",
"0.6221848",
"0.6195875",
"0.6192595",
"0.618983",
"0.6181472",
"0.6158289",
"0.6153182",
"0.6149221",
"0.614468",
"0.61419594",
"0.6105916",
"0.61047024",
"0.6090107",
"0.6082183",
"0.60753846",
"0.6072296",
"0.6070161",
"0.6063656",
"0.6048356",
"0.6004163",
"0.600215",
"0.6001326",
"0.6000572",
"0.5993895",
"0.59833777",
"0.59715337",
"0.59694356",
"0.5968094",
"0.5966408",
"0.5962893",
"0.5960052",
"0.5955114",
"0.59476805",
"0.5934654",
"0.5927718",
"0.59275174",
"0.5921615",
"0.5910278",
"0.5905984",
"0.5905405",
"0.58991516",
"0.5898552",
"0.58935386",
"0.588941",
"0.58799565",
"0.5867056",
"0.5855462",
"0.58531046",
"0.58518994",
"0.5851023",
"0.58334243",
"0.5826598",
"0.58212644",
"0.5821262"
]
| 0.6869455 | 9 |
Simple flags have no values; treat presence/absence as true/false | private static String asPropertyValue( List<?> values, boolean present ) {
return values.isEmpty() ? String.valueOf( present ) : Joiner.on( "," ).join( values );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasFlag();",
"boolean hasFlags();",
"public abstract int flags();",
"boolean booleanOf();",
"@Test\r\n public void testBooleanFlagAndNoValue() throws Exception {\r\n PluginTestCase<I>[] inputs = getTestData().getFlagCases();\r\n for (PluginTestCase<I> testCase : inputs) {\r\n System.out.println(testCase.toString());\r\n BooleanWithNoArgument model = getPopulatedModel(testCase.input, BooleanWithNoArgument.class);\r\n assertThat(model.boolFlag, is(true));\r\n }\r\n\r\n }",
"public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}",
"abstract protected boolean hasCompatValueFlags();",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public boolean getFlag() {\r\n\t\treturn (value.getInt() != 0);\r\n\t}",
"public boolean isFlagged();",
"int getFlag();",
"private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}",
"boolean hasBoolValue();",
"boolean hasTestFlag();",
"boolean getValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"public Boolean asBoolean();",
"boolean optional();",
"boolean isSimpleValue();",
"public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << flag ) ) != 0;\n }",
"abstract public boolean getAsBoolean();",
"public int getFlags();",
"public int getFlags();",
"boolean hasBool();",
"public boolean getValue();",
"public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }",
"BoolOperation createBoolOperation();",
"@Override\n public boolean isMaybeAnyBool() {\n checkNotPolymorphicOrUnknown();\n return (flags & BOOL) == BOOL;\n }",
"public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }",
"void mo21069a(boolean z);",
"@Test\n public void getBooleanFlagTest() throws Exception {\n testFlag(\"skipTests\");\n testFlag(\"skipITs\");\n testFlag(\"skipUTs\");\n }",
"boolean isSetStraight();",
"public boolean getFlag(int which) {\n return (flags & (1 << which)) != 0;\n }",
"private String parseBoolean () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n char chr=next();//get next character\r\n assert \"ft\".indexOf(chr)>=0;//assert valid boolean start character\r\n switch (chr) {//switch on first character\r\n case 'f': skip(4);//skip to last character\r\n return \"false\";\r\n case 't': skip(3);//skip to last character\r\n return \"true\";\r\n default: assert false;//assert that we do not reach this statement\r\n return null;\r\n }//switch on first character\r\n \r\n }",
"public abstract boolean read_boolean();",
"boolean hasVal();",
"boolean hasVal();",
"public static boolean bVal( Boolean value ) {\n return value != null && value; \n }",
"public LlvmValue visit(BooleanType n){\n\t\treturn LlvmPrimitiveType.I1;\n\t}",
"public static boolean isFlagSet( int flags, int flag )\n {\n return ( flags & ( 1 << flag) ) != 0;\n }",
"public Boolean getFlag() {\n return flag;\n }",
"void visitBooleanValue(BooleanValue value);",
"static boolean boolFrBit(int input){\n return input!=0;\n }",
"public RecordFlagEnum getFlag();",
"void mo6661a(boolean z);",
"void mo3305a(boolean z);",
"@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public abstract boolean getEffectiveBooleanValue();",
"public Value restrictToBool() {\n checkNotPolymorphicOrUnknown();\n if (isMaybeAnyBool())\n return theBoolAny;\n else if (isMaybeTrueButNotFalse())\n return theBoolTrue;\n else if (isMaybeFalseButNotTrue())\n return theBoolFalse;\n else\n return theNone;\n }",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"public static boolean isFlagSet( int flags, int flag )\n {\n return ( flags & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }",
"protected abstract T getNormalFlagValue();",
"void mo64153a(boolean z);",
"public boolean isFlagSet( KerberosFlag flag )\n {\n return ( value & ( 1 << flag.getOrdinal() ) ) != 0;\n }",
"public void visit(BooleanLiteral n) {\n n.f0.accept(this);\n }",
"@Test @Ignore\n public void testUfWithBoolArg() throws SolverException, InterruptedException {\n\n UninterpretedFunctionDeclaration<IntegerFormula> uf = fmgr.declareUninterpretedFunction(\"fun_bi\", FormulaType.IntegerType, FormulaType.BooleanType);\n IntegerFormula ufTrue = fmgr.callUninterpretedFunction(uf, ImmutableList.of(bmgr.makeBoolean(true)));\n IntegerFormula ufFalse = fmgr.callUninterpretedFunction(uf, ImmutableList.of(bmgr.makeBoolean(false)));\n\n BooleanFormula f = bmgr.not(imgr.equal(ufTrue, ufFalse));\n assertThat(f.toString()).isEmpty();\n assert_().about(BooleanFormula()).that(f).isSatisfiable();\n }",
"public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }",
"public boolean isFlagSet( KerberosFlag flag )\n {\n int ordinal = flag.getOrdinal();\n int mask = 1 << ( MAX_SIZE - 1 - ordinal );\n \n return ( value & mask ) != 0;\n }",
"@Override\n\tpublic Object visitBooleanLiteral(BooleanLiteral literal) {\n\t\treturn null;\n\t}",
"void mo99838a(boolean z);",
"com.google.protobuf.BoolValue getPersistent();",
"public Literal getLiteralBoolean(Boolean literalData);",
"protected final boolean hasStateFlag(int flg) {\n\t\treturn (m_flags & flg) != 0 ? true : false;\n\t}",
"boolean getBoolean();",
"boolean getBoolean();",
"public boolean getBoolean();",
"void mo98208a(boolean z);",
"private CheckBoolean() {\n\t}",
"public boolean isBoolean();",
"boolean boolField(String name, boolean isDefined, boolean value)\n throws NullField, InvalidFieldValue;",
"void mo1488a(boolean z);",
"public boolean isSetOtherFlags() {\n return this.otherFlags != null;\n }",
"boolean hasBasisValue();",
"@Test\n public void testCaseOfBool() {\n String o = \"\";\n AtomicBoolean success = new AtomicBoolean(false);\n match(o).caseOf(true, s -> success.set(true));\n assertTrue(success.get());\n }",
"@Test\n public void testCaseOfBool() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(42L).caseOf(true, s -> success.set(true));\n assertTrue(success.get());\n }",
"BooleanLiteralExp createBooleanLiteralExp();",
"public boolean isRCODEInFlagAllZero()\n {\n if ((this.flag & 0x000F) == 0)\n {\n return true;\n }\n else return false;\n }",
"public boolean getFlag(){\n\t\treturn flag;\n\t}",
"org.apache.xmlbeans.XmlBoolean xgetStraight();",
"private void init(boolean[] flags) {\n\t\tflags[0] = false; \n\t\tflags[1] = false; \n\t\t\n\t\tfor (int i=2; i<flags.length; i++) {\n\t\t\tflags[i] = true; \n\t\t}\n\t}",
"org.hl7.fhir.Boolean getInitial();",
"private boolean getBooleanValue(Element element, String tagName)\n {\n String value = getValue(element,tagName).trim();\n try\n {\n return Integer.parseInt(value) != 0;\n }\n catch (NumberFormatException exception)\n {\n return value.equalsIgnoreCase(\"true\")\n || value.equalsIgnoreCase(\"on\")\n || value.equalsIgnoreCase(\"yes\");\n }\n }",
"private Flags parseFlags() {\n\t\tFlags flags = new Flags();\n\t\tString[] flag = this.flags.split(\"\\\\+\");\n\t\tfor(String flg : flag) {\n\t\t\tString[] parts = flg.split(\"=\");\n\t\t\tif(parts.length <= 2 && parts.length >= 1) {\n\t\t\t\tswitch(parts[0]) {\n\t\t\t\t\tcase \"REQUIRES_LIVE\":\n\t\t\t\t\t\tflags.REQUIRES_LIVE = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"REQUIRES_MSG_COUNT\":\n\t\t\t\t\t\tflags.REQUIRES_MSG_COUNT = true;\n\t\t\t\t\t\tflags.REQUIRES_MSG_COUNT_AMT = parts[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"RANDOM_MODIFIER\":\n\t\t\t\t\t\tflags.RANDOM_MODIFIER = true;\n\t\t\t\t\t\tflags.RANDOM_MODIFIER_MAX = parts[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"REQUIRES_GAME\":\n\t\t\t\t\t\tflags.REQUIRES_GAME = true;\n\t\t\t\t\t\tflags.REQUIRES_GAME_NAME = parts[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"REQUIRES_IN_TITLE\":\n\t\t\t\t\t\tflags.REQUIRES_IN_TITLE = true;\n\t\t\t\t\t\tflags.REQUIRES_IN_TITLE_TEXT = parts[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} // Else we have an invalid flag setting\n\t\t}\n\t\t\n\t\treturn flags;\n\t}",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }",
"long getFlags();",
"public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }",
"private static boolean parse_flag() {\n skip_spaces();\n\n char c = s.charAt(i);\n switch (c) {\n case '0':\n case '1':\n {\n i += 1;\n if (i < l && s.charAt(i) == ',') {\n i += 1;\n }\n skip_spaces();\n break;\n }\n default:\n throw new Error(String.format(\"Unexpected flag '%c' (i=%d, s=%s)\", c, i, s));\n }\n\n return c == '1';\n }",
"public T caseValBool(ValBool object)\n {\n return null;\n }",
"public boolean getBoolean(String name)\n/* */ {\n/* 845 */ return getBoolean(name, false);\n/* */ }",
"boolean isEBoolean();",
"public Boolean() {\n\t\tsuper(false);\n\t}",
"protected boolean getValidatedFlag() {\n createFlags();\n return flags[VALIDATED];\n }",
"void mo54420a(boolean z, boolean z2);",
"public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"void boolean1(boolean a);",
"org.apache.xmlbeans.XmlBoolean xgetProbables();",
"public static Object booleanFilterer(Object o) {\n if(o.equals(true)) {\n return \"Oui\";\n }\n\n if(o.equals(false)) {\n return \"Non\";\n }\n\n return o;\n }"
]
| [
"0.70811564",
"0.6951984",
"0.66085887",
"0.6519021",
"0.64728105",
"0.6436195",
"0.63963366",
"0.63746566",
"0.63746566",
"0.6356945",
"0.6321065",
"0.63000464",
"0.62893844",
"0.6269461",
"0.6252478",
"0.6163214",
"0.615934",
"0.615934",
"0.615934",
"0.615934",
"0.6151313",
"0.6134265",
"0.61163306",
"0.60851973",
"0.6053505",
"0.60304487",
"0.60304487",
"0.60269845",
"0.602551",
"0.5970367",
"0.5962286",
"0.5956198",
"0.5954833",
"0.59255254",
"0.59248996",
"0.59172964",
"0.5904196",
"0.58906364",
"0.5883833",
"0.58827275",
"0.58827275",
"0.5882256",
"0.58593005",
"0.5848559",
"0.5847897",
"0.58470017",
"0.58441776",
"0.5840352",
"0.58339477",
"0.5833168",
"0.5821696",
"0.5821533",
"0.5817546",
"0.5810586",
"0.5802245",
"0.58006895",
"0.57872003",
"0.57845557",
"0.5782732",
"0.5778495",
"0.57759607",
"0.5775601",
"0.57680327",
"0.5764683",
"0.57609254",
"0.5754037",
"0.57498235",
"0.57492965",
"0.57492965",
"0.5740282",
"0.5735586",
"0.5730941",
"0.57190955",
"0.5717843",
"0.57164615",
"0.57144433",
"0.5709029",
"0.5708944",
"0.5706936",
"0.56994754",
"0.56943476",
"0.56900954",
"0.5689311",
"0.56892145",
"0.568692",
"0.5686184",
"0.5678303",
"0.5677878",
"0.567551",
"0.56684405",
"0.56678146",
"0.56617874",
"0.5659231",
"0.565897",
"0.564946",
"0.5639035",
"0.56361383",
"0.5633702",
"0.5631548",
"0.5629561",
"0.5626943"
]
| 0.0 | -1 |
BA.debugLineNum = 23;BA.debugLine="Sub Globals"; BA.debugLineNum = 24;BA.debugLine="Private Icon As BitmapDrawable"; | public static RemoteObject _globals() throws Exception{
requests3.mostCurrent._icon = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.BitmapDrawable");
//BA.debugLineNum = 25;BA.debugLine="Private xui As XUI";
requests3.mostCurrent._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
//BA.debugLineNum = 27;BA.debugLine="Private TileSourceSpinner As Spinner";
requests3.mostCurrent._tilesourcespinner = RemoteObject.createNew ("anywheresoftware.b4a.objects.SpinnerWrapper");
//BA.debugLineNum = 29;BA.debugLine="Private IsFiltered As Boolean = False";
requests3._isfiltered = requests3.mostCurrent.__c.getField(true,"False");
//BA.debugLineNum = 30;BA.debugLine="Private FilterStartDate As String";
requests3.mostCurrent._filterstartdate = RemoteObject.createImmutable("");
//BA.debugLineNum = 31;BA.debugLine="Private FilterEndDate As String";
requests3.mostCurrent._filterenddate = RemoteObject.createImmutable("");
//BA.debugLineNum = 32;BA.debugLine="Private FilterTasks As Int = 0";
requests3._filtertasks = BA.numberCast(int.class, 0);
//BA.debugLineNum = 33;BA.debugLine="Private FilterEntity As Int = 0";
requests3._filterentity = BA.numberCast(int.class, 0);
//BA.debugLineNum = 34;BA.debugLine="Private FilterRoute As Int = 0";
requests3._filterroute = BA.numberCast(int.class, 0);
//BA.debugLineNum = 35;BA.debugLine="Private FilterStates As Int = 0";
requests3._filterstates = BA.numberCast(int.class, 0);
//BA.debugLineNum = 36;BA.debugLine="Private FilterTypeRequests As Int = 0";
requests3._filtertyperequests = BA.numberCast(int.class, 0);
//BA.debugLineNum = 37;BA.debugLine="Private Bloco30 As Int = 0";
requests3._bloco30 = BA.numberCast(int.class, 0);
//BA.debugLineNum = 39;BA.debugLine="Private ListTypeRequests As List";
requests3.mostCurrent._listtyperequests = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 40;BA.debugLine="Private ListStates As List";
requests3.mostCurrent._liststates = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 41;BA.debugLine="Private ListEntities As List";
requests3.mostCurrent._listentities = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 42;BA.debugLine="Private ListTasks As List";
requests3.mostCurrent._listtasks = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 43;BA.debugLine="Private ListRoutes As List";
requests3.mostCurrent._listroutes = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 45;BA.debugLine="Private ButtonUserUnavailable As Button";
requests3.mostCurrent._buttonuserunavailable = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 46;BA.debugLine="Private mapUserPosition As Button";
requests3.mostCurrent._mapuserposition = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 47;BA.debugLine="Private ColorTabPanel As Panel";
requests3.mostCurrent._colortabpanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 49;BA.debugLine="Private ButtonActionTransport As Button";
requests3.mostCurrent._buttonactiontransport = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 50;BA.debugLine="Private ButtonAppAlert As Button";
requests3.mostCurrent._buttonappalert = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 51;BA.debugLine="Private ButtonAppNetwork As Button";
requests3.mostCurrent._buttonappnetwork = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 52;BA.debugLine="Private LabelAppInfo As Label";
requests3.mostCurrent._labelappinfo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 53;BA.debugLine="Private LabelCopyright As Label";
requests3.mostCurrent._labelcopyright = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 54;BA.debugLine="Private LabelDateTime As Label";
requests3.mostCurrent._labeldatetime = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 55;BA.debugLine="Private LabelVersion As Label";
requests3.mostCurrent._labelversion = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 56;BA.debugLine="Private listsBasePanel As Panel";
requests3.mostCurrent._listsbasepanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 57;BA.debugLine="Private listsBottomLine As Panel";
requests3.mostCurrent._listsbottomline = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 58;BA.debugLine="Private listsBottomPanel As Panel";
requests3.mostCurrent._listsbottompanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 59;BA.debugLine="Private listsButtonClose As Button";
requests3.mostCurrent._listsbuttonclose = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 60;BA.debugLine="Private listsButtonFilter As Button";
requests3.mostCurrent._listsbuttonfilter = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 61;BA.debugLine="Private listsLabelInfo As Label";
requests3.mostCurrent._listslabelinfo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 62;BA.debugLine="Private listsTabPanel As TabStrip";
requests3.mostCurrent._liststabpanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.TabStripViewPager");
//BA.debugLineNum = 63;BA.debugLine="Private listsTopBar As Panel";
requests3.mostCurrent._liststopbar = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 64;BA.debugLine="Private mainLabelOptLists As Label";
requests3.mostCurrent._mainlabeloptlists = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 65;BA.debugLine="Private mainLogo As ImageView";
requests3.mostCurrent._mainlogo = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");
//BA.debugLineNum = 66;BA.debugLine="Private mainTopLine As Panel";
requests3.mostCurrent._maintopline = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 68;BA.debugLine="Private IsFiltered As Boolean = False";
requests3._isfiltered = requests3.mostCurrent.__c.getField(true,"False");
//BA.debugLineNum = 69;BA.debugLine="Private iDialogReqTypeObject, iDialogReqZone, iDi";
requests3._idialogreqtypeobject = RemoteObject.createImmutable(0);
requests3._idialogreqzone = RemoteObject.createImmutable(0);
requests3._idialogreqstatus = RemoteObject.createImmutable(0);
requests3._idialogreqregion = RemoteObject.createImmutable(0);
requests3._idialogreqlocal = RemoteObject.createImmutable(0);
requests3._idialogreqwithrequests = RemoteObject.createImmutable(0);
//BA.debugLineNum = 70;BA.debugLine="Private sDialogReqName, sDialogReqAddress, Search";
requests3.mostCurrent._sdialogreqname = RemoteObject.createImmutable("");
requests3.mostCurrent._sdialogreqaddress = RemoteObject.createImmutable("");
requests3.mostCurrent._searchfilter = RemoteObject.createImmutable("");
//BA.debugLineNum = 71;BA.debugLine="Private RegionsList, TypeObjectsList, LocalsList,";
requests3.mostCurrent._regionslist = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
requests3.mostCurrent._typeobjectslist = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
requests3.mostCurrent._localslist = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
requests3.mostCurrent._reqrequests = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
requests3.mostCurrent._reqrequestsnottoday = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 72;BA.debugLine="Private ItemsCounter As Int = 0";
requests3._itemscounter = BA.numberCast(int.class, 0);
//BA.debugLineNum = 74;BA.debugLine="Private listRequestsButtonMap As Button";
requests3.mostCurrent._listrequestsbuttonmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 75;BA.debugLine="Private mapBaseList As Panel";
requests3.mostCurrent._mapbaselist = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 76;BA.debugLine="Private mapBasePanel As Panel";
requests3.mostCurrent._mapbasepanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 78;BA.debugLine="Private mapZoomDown As Button";
requests3.mostCurrent._mapzoomdown = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 79;BA.debugLine="Private mapZoomUp As Button";
requests3.mostCurrent._mapzoomup = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 80;BA.debugLine="Private listRequests As CustomListView 'ExpandedL";
requests3.mostCurrent._listrequests = RemoteObject.createNew ("b4a.example3.customlistview");
//BA.debugLineNum = 81;BA.debugLine="Private listsRequestsMap As CustomListView";
requests3.mostCurrent._listsrequestsmap = RemoteObject.createNew ("b4a.example3.customlistview");
//BA.debugLineNum = 83;BA.debugLine="Private pnlGroupTitle As Panel";
requests3.mostCurrent._pnlgrouptitle = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 84;BA.debugLine="Private pnlGroupData As Panel";
requests3.mostCurrent._pnlgroupdata = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 86;BA.debugLine="Private ListItemTodayRequests As Label";
requests3.mostCurrent._listitemtodayrequests = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 87;BA.debugLine="Private ListItemReference As Label";
requests3.mostCurrent._listitemreference = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 88;BA.debugLine="Private ListItemDatetime As Label";
requests3.mostCurrent._listitemdatetime = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 89;BA.debugLine="Private ListItemContact As Label";
requests3.mostCurrent._listitemcontact = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 90;BA.debugLine="Private ListItemFullName As Label";
requests3.mostCurrent._listitemfullname = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 91;BA.debugLine="Private ListItemStatus As Label";
requests3.mostCurrent._listitemstatus = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 92;BA.debugLine="Private listButMap As Button";
requests3.mostCurrent._listbutmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 94;BA.debugLine="Private ListItemObject As Label";
requests3.mostCurrent._listitemobject = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 95;BA.debugLine="Private ListItemObjectTask As Label";
requests3.mostCurrent._listitemobjecttask = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 96;BA.debugLine="Private ListItemObjectExecution As Label";
requests3.mostCurrent._listitemobjectexecution = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 97;BA.debugLine="Private listButObjectAction As Button";
requests3.mostCurrent._listbutobjectaction = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 98;BA.debugLine="Private ListItemObjectStatus As Label";
requests3.mostCurrent._listitemobjectstatus = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 99;BA.debugLine="Private ListItemObjectStatusIcon As Label";
requests3.mostCurrent._listitemobjectstatusicon = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 101;BA.debugLine="Private CurrentGroupItem As Int = 0";
requests3._currentgroupitem = BA.numberCast(int.class, 0);
//BA.debugLineNum = 102;BA.debugLine="Private pnlGroupCurrenIndex As Int";
requests3._pnlgroupcurrenindex = RemoteObject.createImmutable(0);
//BA.debugLineNum = 103;BA.debugLine="Private ClickLabel As Label";
requests3.mostCurrent._clicklabel = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 105;BA.debugLine="Private ShowListPedidosMap As Boolean = False";
requests3._showlistpedidosmap = requests3.mostCurrent.__c.getField(true,"False");
//BA.debugLineNum = 106;BA.debugLine="Private EditSearch As EditText";
requests3.mostCurrent._editsearch = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");
//BA.debugLineNum = 107;BA.debugLine="Private butSearch As Button";
requests3.mostCurrent._butsearch = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 109;BA.debugLine="Dim CurrentIndexPanel As Int = -1";
requests3._currentindexpanel = BA.numberCast(int.class, -(double) (0 + 1));
//BA.debugLineNum = 110;BA.debugLine="Dim CurrentIDPanel As Int = 0";
requests3._currentidpanel = BA.numberCast(int.class, 0);
//BA.debugLineNum = 112;BA.debugLine="Private LabelButtonTitleAction As Label";
requests3.mostCurrent._labelbuttontitleaction = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 113;BA.debugLine="Private LabelReferenciasDescritivos As Label";
requests3.mostCurrent._labelreferenciasdescritivos = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 114;BA.debugLine="Private LabelStatus As Label";
requests3.mostCurrent._labelstatus = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 115;BA.debugLine="Private RequestsOptionsPopMenu As MenuOnAnyView";
requests3.mostCurrent._requestsoptionspopmenu = RemoteObject.createNew ("com.jakes.menuonviews.menuonanyview");
//BA.debugLineNum = 117;BA.debugLine="Private CurrentLineItem As Int = 0";
requests3._currentlineitem = BA.numberCast(int.class, 0);
//BA.debugLineNum = 118;BA.debugLine="Private TotalLineItems As Int = 0";
requests3._totallineitems = BA.numberCast(int.class, 0);
//BA.debugLineNum = 119;BA.debugLine="Private ListItemObjectNumber As Label";
requests3.mostCurrent._listitemobjectnumber = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 120;BA.debugLine="Private listButMore As Button";
requests3.mostCurrent._listbutmore = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 121;BA.debugLine="Private ListItemObjectDateTime As Label";
requests3.mostCurrent._listitemobjectdatetime = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 122;BA.debugLine="Private ListItemObjectReference As Label";
requests3.mostCurrent._listitemobjectreference = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 123;BA.debugLine="Private pnlGroupDataSub As Panel";
requests3.mostCurrent._pnlgroupdatasub = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 124;BA.debugLine="Private pnlGroupDataList As ExpandedListView 'Cus";
requests3.mostCurrent._pnlgroupdatalist = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.expandedlistview");
//BA.debugLineNum = 127;BA.debugLine="Private CurrentPage As Int";
requests3._currentpage = RemoteObject.createImmutable(0);
//BA.debugLineNum = 128;BA.debugLine="Private Pages As List '= Array(True, False, True,";
requests3.mostCurrent._pages = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 130;BA.debugLine="Private listRequestsItem As CustomListView";
requests3.mostCurrent._listrequestsitem = RemoteObject.createNew ("b4a.example3.customlistview");
//BA.debugLineNum = 131;BA.debugLine="Private CLAButtonOptions As Button";
requests3.mostCurrent._clabuttonoptions = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 132;BA.debugLine="Private CLAItem_G1 As Label";
requests3.mostCurrent._claitem_g1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 133;BA.debugLine="Private CLAItemButton_1 As B4XStateButton";
requests3.mostCurrent._claitembutton_1 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 134;BA.debugLine="Private CLAItemButton_2 As B4XStateButton";
requests3.mostCurrent._claitembutton_2 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 135;BA.debugLine="Private CLAItem_G2 As Label";
requests3.mostCurrent._claitem_g2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 136;BA.debugLine="Private CLAItem_G3 As Label";
requests3.mostCurrent._claitem_g3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 137;BA.debugLine="Private CLAItem_G4 As Label";
requests3.mostCurrent._claitem_g4 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 138;BA.debugLine="Private CLAItem_G5 As Label";
requests3.mostCurrent._claitem_g5 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 139;BA.debugLine="Private CLAItem_G6 As Label";
requests3.mostCurrent._claitem_g6 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 140;BA.debugLine="Private CLAItem_G7 As Label";
requests3.mostCurrent._claitem_g7 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 141;BA.debugLine="Private ListItemType As Label";
requests3.mostCurrent._listitemtype = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 143;BA.debugLine="Private ListItem_Notes As Label";
requests3.mostCurrent._listitem_notes = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 144;BA.debugLine="Private ListItem_Status As Label";
requests3.mostCurrent._listitem_status = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 145;BA.debugLine="Private ListItem_Datetime As Label";
requests3.mostCurrent._listitem_datetime = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 146;BA.debugLine="Private ListItem_Entity As Label";
requests3.mostCurrent._listitem_entity = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 147;BA.debugLine="Private ListItem_Cloud As Label";
requests3.mostCurrent._listitem_cloud = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 148;BA.debugLine="Private listButCompare As Button";
requests3.mostCurrent._listbutcompare = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 149;BA.debugLine="Private ListItem_TypeRequest As Label";
requests3.mostCurrent._listitem_typerequest = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 150;BA.debugLine="Private listRequestsItemSecond As CustomListView";
requests3.mostCurrent._listrequestsitemsecond = RemoteObject.createNew ("b4a.example3.customlistview");
//BA.debugLineNum = 151;BA.debugLine="Private CLAItemButtonBR_SVR2 As B4XStateButton";
requests3.mostCurrent._claitembuttonbr_svr2 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 152;BA.debugLine="Private CLAItemButtonBR_SVR2_A As Button";
requests3.mostCurrent._claitembuttonbr_svr2_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 153;BA.debugLine="Private CLA_BR_KSVRF2 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_ksvrf2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 154;BA.debugLine="Private CLA_BR_KSVRF2_A As Button";
requests3.mostCurrent._cla_br_ksvrf2_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 155;BA.debugLine="Private CLA_BR_KSVRI2 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_ksvri2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 156;BA.debugLine="Private CLA_BR_KSVRI2_A As Button";
requests3.mostCurrent._cla_br_ksvri2_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 157;BA.debugLine="Private CLA_BR_KSVRI1_A As Button";
requests3.mostCurrent._cla_br_ksvri1_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 158;BA.debugLine="Private CLA_BR_KSVRI1 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_ksvri1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 159;BA.debugLine="Private CLA_BR_KSVRF1 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_ksvrf1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 160;BA.debugLine="Private CLA_BR_KSVRF1_A As Button";
requests3.mostCurrent._cla_br_ksvrf1_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 161;BA.debugLine="Private CLAItemButtonBR_SVR1 As B4XStateButton";
requests3.mostCurrent._claitembuttonbr_svr1 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 162;BA.debugLine="Private CLAItemButtonBR_SVR1_A As Button";
requests3.mostCurrent._claitembuttonbr_svr1_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 163;BA.debugLine="Private CLAItemButtonBR_INIT_A As Button";
requests3.mostCurrent._claitembuttonbr_init_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 164;BA.debugLine="Private CLAItemButtonBR_INIT As B4XStateButton";
requests3.mostCurrent._claitembuttonbr_init = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 165;BA.debugLine="Private CLA_BR_OBS As FloatLabeledEditText";
requests3.mostCurrent._cla_br_obs = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 166;BA.debugLine="Private CLA_BR_OBS_A As Button";
requests3.mostCurrent._cla_br_obs_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 167;BA.debugLine="Private CLA_BR_KMI_A As Button";
requests3.mostCurrent._cla_br_kmi_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 168;BA.debugLine="Private CLA_BR_KMI As FloatLabeledEditText";
requests3.mostCurrent._cla_br_kmi = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 169;BA.debugLine="Private CLA_BR_CAR As FloatLabeledEditText";
requests3.mostCurrent._cla_br_car = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 170;BA.debugLine="Private CLA_BR_CAR_A As Button";
requests3.mostCurrent._cla_br_car_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 171;BA.debugLine="Private CLA_BR_KMF_A As Button";
requests3.mostCurrent._cla_br_kmf_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 172;BA.debugLine="Private CLA_BR_KMF As FloatLabeledEditText";
requests3.mostCurrent._cla_br_kmf = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 173;BA.debugLine="Private CLA_BR_E1 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_e1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 174;BA.debugLine="Private CLA_BR_S1 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_s1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 175;BA.debugLine="Private CLA_BR_E2 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_e2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 176;BA.debugLine="Private CLA_BR_S2 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_s2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 177;BA.debugLine="Private CLA_BR_E3 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_e3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 178;BA.debugLine="Private CLA_BR_S3 As FloatLabeledEditText";
requests3.mostCurrent._cla_br_s3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 179;BA.debugLine="Private CLAItemButtonBR As B4XStateButton";
requests3.mostCurrent._claitembuttonbr = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 180;BA.debugLine="Private CLAItemButtonBR_A As Button";
requests3.mostCurrent._claitembuttonbr_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 181;BA.debugLine="Private CLAItemButtonX_A As Button";
requests3.mostCurrent._claitembuttonx_a = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 182;BA.debugLine="Private B4XStateButton1 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton1 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 183;BA.debugLine="Private B4XStateButton2 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton2 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 184;BA.debugLine="Private B4XStateButton3 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton3 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 185;BA.debugLine="Private B4XStateButton4 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton4 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 186;BA.debugLine="Private B4XStateButton5 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton5 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 187;BA.debugLine="Private B4XStateButton6 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton6 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 188;BA.debugLine="Private B4XStateButton7 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton7 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 189;BA.debugLine="Private B4XStateButton14 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton14 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 190;BA.debugLine="Private B4XStateButton13 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton13 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 191;BA.debugLine="Private B4XStateButton21 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton21 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 192;BA.debugLine="Private B4XStateButton20 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton20 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 193;BA.debugLine="Private B4XStateButton19 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton19 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 194;BA.debugLine="Private B4XStateButton12 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton12 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 195;BA.debugLine="Private B4XStateButton11 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton11 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 196;BA.debugLine="Private B4XStateButton18 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton18 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 197;BA.debugLine="Private B4XStateButton17 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton17 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 198;BA.debugLine="Private B4XStateButton10 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton10 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 199;BA.debugLine="Private B4XStateButton9 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton9 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 200;BA.debugLine="Private B4XStateButton16 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton16 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 201;BA.debugLine="Private B4XStateButton15 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton15 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 202;BA.debugLine="Private B4XStateButton8 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton8 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 203;BA.debugLine="Private B4XStateButton22 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton22 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 204;BA.debugLine="Private B4XStateButton23 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton23 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 205;BA.debugLine="Private B4XStateButton24 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton24 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 206;BA.debugLine="Private B4XStateButton25 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton25 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 207;BA.debugLine="Private B4XStateButton26 As B4XStateButton";
requests3.mostCurrent._b4xstatebutton26 = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.b4xstatebutton");
//BA.debugLineNum = 209;BA.debugLine="Private VIEW_requests_listview As String = \"reque";
requests3.mostCurrent._view_requests_listview = BA.ObjectToString("requests_listview");
//BA.debugLineNum = 210;BA.debugLine="Private VIEW_requests_listviewrequest As String =";
requests3.mostCurrent._view_requests_listviewrequest = BA.ObjectToString("requests_listviewrequest");
//BA.debugLineNum = 211;BA.debugLine="Private VIEW_requests_listviewrequest2 As String";
requests3.mostCurrent._view_requests_listviewrequest2 = BA.ObjectToString("requests_listviewrequest2");
//BA.debugLineNum = 212;BA.debugLine="Private VIEW_requests_mapview As String = \"reques";
requests3.mostCurrent._view_requests_mapview = BA.ObjectToString("requests_mapview_google");
//BA.debugLineNum = 213;BA.debugLine="Private ButtonActionPause As Button";
requests3.mostCurrent._buttonactionpause = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 214;BA.debugLine="Private CurrentFilter As String = \"\"";
requests3.mostCurrent._currentfilter = BA.ObjectToString("");
//BA.debugLineNum = 215;BA.debugLine="Private mainActiveUser As Label";
requests3.mostCurrent._mainactiveuser = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 216;BA.debugLine="Private gmap As GoogleMap";
requests3.mostCurrent._gmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper");
//BA.debugLineNum = 217;BA.debugLine="Private mapData As MapFragment";
requests3.mostCurrent._mapdata = RemoteObject.createNew ("anywheresoftware.b4a.objects.MapFragmentWrapper");
//BA.debugLineNum = 218;BA.debugLine="Private mapMarker As Marker";
requests3.mostCurrent._mapmarker = RemoteObject.createNew ("anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper");
//BA.debugLineNum = 219;BA.debugLine="Private listsButtonPull As Button";
requests3.mostCurrent._listsbuttonpull = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 220;BA.debugLine="Private listButNote As Button";
requests3.mostCurrent._listbutnote = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 221;BA.debugLine="Private butQuickAction As Button";
requests3.mostCurrent._butquickaction = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 222;BA.debugLine="Private ListItem_Favorite As Label";
requests3.mostCurrent._listitem_favorite = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 223;BA.debugLine="Private listsButtonFavorites As Button";
requests3.mostCurrent._listsbuttonfavorites = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 224;BA.debugLine="Private ListItem_Desc02 As Label";
requests3.mostCurrent._listitem_desc02 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 225;BA.debugLine="Private ListItem_Desc01 As Label";
requests3.mostCurrent._listitem_desc01 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 226;BA.debugLine="Private ListaPrincipalClickItem As Int = -1";
requests3._listaprincipalclickitem = BA.numberCast(int.class, -(double) (0 + 1));
//BA.debugLineNum = 227;BA.debugLine="Private ListViewDevice3Panel As Panel";
requests3.mostCurrent._listviewdevice3panel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 228;BA.debugLine="Private ListViewRequestDevice3Panel As Panel";
requests3.mostCurrent._listviewrequestdevice3panel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 229;BA.debugLine="Private ListViewRequest2Device3Panel As Panel";
requests3.mostCurrent._listviewrequest2device3panel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 230;BA.debugLine="Private ListItemClickIndex As Label";
requests3.mostCurrent._listitemclickindex = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 231;BA.debugLine="Private ListItem_Desc00 As Label";
requests3.mostCurrent._listitem_desc00 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 232;BA.debugLine="Private SubItemImage As ImageView";
requests3.mostCurrent._subitemimage = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");
//BA.debugLineNum = 233;BA.debugLine="Private LockPanel As Panel";
requests3.mostCurrent._lockpanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");
//BA.debugLineNum = 235;BA.debugLine="Private GRANDACTIVE_INSTANCE As String = \"PT20180";
requests3.mostCurrent._grandactive_instance = BA.ObjectToString("PT20180913-2105-006");
//BA.debugLineNum = 236;BA.debugLine="Private LockPanelInfo As Label";
requests3.mostCurrent._lockpanelinfo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 238;BA.debugLine="Private current_limit As Int = 0";
requests3._current_limit = BA.numberCast(int.class, 0);
//BA.debugLineNum = 239;BA.debugLine="Private current_offset As Int = 100";
requests3._current_offset = BA.numberCast(int.class, 100);
//BA.debugLineNum = 240;BA.debugLine="Private next_current_limit As Int = 0";
requests3._next_current_limit = BA.numberCast(int.class, 0);
//BA.debugLineNum = 241;BA.debugLine="Private next_offset As Int = 100";
requests3._next_offset = BA.numberCast(int.class, 100);
//BA.debugLineNum = 242;BA.debugLine="Private CurrentTotalItems As Int = 0";
requests3._currenttotalitems = BA.numberCast(int.class, 0);
//BA.debugLineNum = 244;BA.debugLine="Private SelectedTagcode As String = \"\"";
requests3.mostCurrent._selectedtagcode = BA.ObjectToString("");
//BA.debugLineNum = 245;BA.debugLine="Private SelectedRequestData As RequestData";
requests3.mostCurrent._selectedrequestdata = RemoteObject.createNew ("xevolution.vrcg.devdemov2400.types._requestdata");
//BA.debugLineNum = 246;BA.debugLine="Private ListItemNumber As Label";
requests3.mostCurrent._listitemnumber = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 248;BA.debugLine="Private data_Intervencao As FloatLabeledEditText";
requests3.mostCurrent._data_intervencao = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 249;BA.debugLine="Private hora_intervencao As FloatLabeledEditText";
requests3.mostCurrent._hora_intervencao = RemoteObject.createNew ("anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper");
//BA.debugLineNum = 250;BA.debugLine="Private TaskList2Dup As CustomListView";
requests3.mostCurrent._tasklist2dup = RemoteObject.createNew ("b4a.example3.customlistview");
//BA.debugLineNum = 251;BA.debugLine="Private BotaoDataDup As Button";
requests3.mostCurrent._botaodatadup = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 252;BA.debugLine="Private BotaoHoraDup As Button";
requests3.mostCurrent._botaohoradup = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");
//BA.debugLineNum = 253;BA.debugLine="Private dupItemCheck As CheckBox";
requests3.mostCurrent._dupitemcheck = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper");
//BA.debugLineNum = 254;BA.debugLine="Private dupItemLabel As Label";
requests3.mostCurrent._dupitemlabel = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 256;BA.debugLine="Private ListITemTechnical As Label";
requests3.mostCurrent._listitemtechnical = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");
//BA.debugLineNum = 257;BA.debugLine="Private GlobalScanReturn As Boolean";
requests3._globalscanreturn = RemoteObject.createImmutable(false);
//BA.debugLineNum = 258;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}",
"public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 11;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _class_globals() throws Exception{\n_msgmodule = new Object();\n //BA.debugLineNum = 10;BA.debugLine=\"Private BackPanel As Panel\";\n_backpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 11;BA.debugLine=\"Private MsgOrientation As String\";\n_msgorientation = \"\";\n //BA.debugLineNum = 12;BA.debugLine=\"Private MsgNumberOfButtons As Int\";\n_msgnumberofbuttons = 0;\n //BA.debugLineNum = 14;BA.debugLine=\"Private mbIcon As ImageView\";\n_mbicon = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Dim Panel As Panel\";\n_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private Shadow As Panel\";\n_shadow = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Dim Title As Label\";\n_title = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private MsgScrollView As ScrollView\";\n_msgscrollview = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Dim Message As Label\";\n_message = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Dim YesButtonPanel As Panel\";\n_yesbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Dim NoButtonPanel As Panel\";\n_nobuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Dim CancelButtonPanel As Panel\";\n_cancelbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Dim YesButtonCaption As Label\";\n_yesbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Dim NoButtonCaption As Label\";\n_nobuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Dim CancelButtonCaption As Label\";\n_cancelbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private MsgBoxEvent As String\";\n_msgboxevent = \"\";\n //BA.debugLineNum = 29;BA.debugLine=\"Dim ButtonSelected As String\";\n_buttonselected = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _class_globals() throws Exception{\n_meventname = \"\";\n //BA.debugLineNum = 7;BA.debugLine=\"Private mCallBack As Object 'ignore\";\n_mcallback = new Object();\n //BA.debugLineNum = 8;BA.debugLine=\"Public mBase As B4XView 'ignore\";\n_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Private xui As XUI 'ignore\";\n_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();\n //BA.debugLineNum = 10;BA.debugLine=\"Private cvs As B4XCanvas\";\n_cvs = new anywheresoftware.b4a.objects.B4XCanvas();\n //BA.debugLineNum = 11;BA.debugLine=\"Private mValue As Int = 75\";\n_mvalue = (int) (75);\n //BA.debugLineNum = 12;BA.debugLine=\"Private mMin, mMax As Int\";\n_mmin = 0;\n_mmax = 0;\n //BA.debugLineNum = 13;BA.debugLine=\"Private thumb As B4XBitmap\";\n_thumb = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();\n //BA.debugLineNum = 14;BA.debugLine=\"Private pnl As B4XView\";\n_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Private xlbl As B4XView\";\n_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private CircleRect As B4XRect\";\n_circlerect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();\n //BA.debugLineNum = 17;BA.debugLine=\"Private ValueColor As Int\";\n_valuecolor = 0;\n //BA.debugLineNum = 18;BA.debugLine=\"Private stroke As Int\";\n_stroke = 0;\n //BA.debugLineNum = 19;BA.debugLine=\"Private ThumbSize As Int\";\n_thumbsize = 0;\n //BA.debugLineNum = 20;BA.debugLine=\"Public Tag As Object\";\n_tag = new Object();\n //BA.debugLineNum = 21;BA.debugLine=\"Private mThumbBorderColor As Int = 0xFF5B5B5B\";\n_mthumbbordercolor = (int) (0xff5b5b5b);\n //BA.debugLineNum = 22;BA.debugLine=\"Private mThumbInnerColor As Int = xui.Color_White\";\n_mthumbinnercolor = _xui.Color_White;\n //BA.debugLineNum = 23;BA.debugLine=\"Private mCircleFillColor As Int = xui.Color_White\";\n_mcirclefillcolor = _xui.Color_White;\n //BA.debugLineNum = 24;BA.debugLine=\"Private mCircleNonValueColor As Int = 0xFFB6B6B6\";\n_mcirclenonvaluecolor = (int) (0xffb6b6b6);\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _class_globals() throws Exception{\n_nativeme = new anywheresoftware.b4j.object.JavaObject();\n //BA.debugLineNum = 7;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static String _globals() throws Exception{\nmostCurrent._butcolor = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private butPatas As Button\";\nmostCurrent._butpatas = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Private imgMosquito As ImageView\";\nmostCurrent._imgmosquito = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private lblTituloMosquito As Label\";\nmostCurrent._lbltitulomosquito = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private lblSubTituloMosquito As Label\";\nmostCurrent._lblsubtitulomosquito = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private scrollExtraMosquito As HorizontalScrollVi\";\nmostCurrent._scrollextramosquito = new anywheresoftware.b4a.objects.HorizontalScrollViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private panelPopUps_1 As Panel\";\nmostCurrent._panelpopups_1 = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private lblFondo As Label\";\nmostCurrent._lblfondo = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Private lblPopUp_titulo As Label\";\nmostCurrent._lblpopup_titulo = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Private lblPopUp_Descripcion As Label\";\nmostCurrent._lblpopup_descripcion = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 27;BA.debugLine=\"Private btnCerrarPopUp As Button\";\nmostCurrent._btncerrarpopup = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private imgPopUp As ImageView\";\nmostCurrent._imgpopup = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 32;BA.debugLine=\"Private lblPaso4 As Label\";\nmostCurrent._lblpaso4 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 33;BA.debugLine=\"Private butPaso4 As Button\";\nmostCurrent._butpaso4 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 34;BA.debugLine=\"Private lblLabelPaso1 As Label\";\nmostCurrent._lbllabelpaso1 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 35;BA.debugLine=\"Private lblPaso3a As Label\";\nmostCurrent._lblpaso3a = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 36;BA.debugLine=\"Private imgPupas As ImageView\";\nmostCurrent._imgpupas = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 37;BA.debugLine=\"Private lblPaso3 As Label\";\nmostCurrent._lblpaso3 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 38;BA.debugLine=\"Private lblPaso2a As Label\";\nmostCurrent._lblpaso2a = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 39;BA.debugLine=\"Private imgLarvas As ImageView\";\nmostCurrent._imglarvas = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 40;BA.debugLine=\"Private butPaso2 As Button\";\nmostCurrent._butpaso2 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 41;BA.debugLine=\"Private butPaso3 As Button\";\nmostCurrent._butpaso3 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 42;BA.debugLine=\"Private imgMosquito1 As ImageView\";\nmostCurrent._imgmosquito1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 43;BA.debugLine=\"Private imgHuevos As ImageView\";\nmostCurrent._imghuevos = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 44;BA.debugLine=\"Private lblPaso2b As Label\";\nmostCurrent._lblpaso2b = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 45;BA.debugLine=\"Private butPaso1 As Button\";\nmostCurrent._butpaso1 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 46;BA.debugLine=\"Private panelPopUps_2 As Panel\";\nmostCurrent._panelpopups_2 = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 47;BA.debugLine=\"Private lblEstadio As Label\";\nmostCurrent._lblestadio = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 52;BA.debugLine=\"Private but_Cerrar As Button\";\nmostCurrent._but_cerrar = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 53;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"regis\",mostCurrent.activityBA);\n //BA.debugLineNum = 31;BA.debugLine=\"Activity.Title = \\\"Register\\\"\";\nmostCurrent._activity.setTitle(BA.ObjectToCharSequence(\"Register\"));\n //BA.debugLineNum = 33;BA.debugLine=\"ImageView1.Visible = False\";\nmostCurrent._imageview1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 35;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public interface ITLCLaunchUIConstants \n{\n public final static String TAB_MAIN_NAME\t\t\t= \"Main\";\n public final static String TAB_ARGUMENTS_NAME\t\t\t= \"Arguments\";\n \n public final static String TAB_MAIN_ICON_NAME \t\t= \"icons/full/obj16/tlc_launch_main_tab.gif\";\n public final static String TAB_ARGUMENTS_ICON_NAME \t= \"icons/full/obj16/tlc_launch_arguments_tab.gif\";\n}",
"public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static String _globals() throws Exception{\nmostCurrent._bdmain = new flm.b4a.betterdialogs.BetterDialogs();\n //BA.debugLineNum = 17;BA.debugLine=\"Private svUtama \t\tAs ScrollView\";\nmostCurrent._svutama = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private iTampil \t\tAs Int=0\";\n_itampil = (int) (0);\n //BA.debugLineNum = 19;BA.debugLine=\"Private pSemua \t\t\tAs Panel\";\nmostCurrent._psemua = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private ivMenu \t\t\tAs ImageView\";\nmostCurrent._ivmenu = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private ivSearch\t \tAs ImageView\";\nmostCurrent._ivsearch = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private ivClose \t\tAs ImageView\";\nmostCurrent._ivclose = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private ivSetting \t\tAs ImageView\";\nmostCurrent._ivsetting = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private lblBrowse \t\tAs Label\";\nmostCurrent._lblbrowse = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Private lvBrowse \t\tAs ListView\";\nmostCurrent._lvbrowse = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Private svList \t\t\tAs ScrollView\";\nmostCurrent._svlist = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 27;BA.debugLine=\"Private lvVideo \t\tAs ListView\";\nmostCurrent._lvvideo = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private lvCate \t\t\tAs ListView\";\nmostCurrent._lvcate = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 29;BA.debugLine=\"Private lvManage \t\tAs ListView\";\nmostCurrent._lvmanage = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 30;BA.debugLine=\"Private MB \t\t\t\tAs MediaBrowser\";\nmostCurrent._mb = new flm.media.browser.MediaBrowser();\n //BA.debugLineNum = 31;BA.debugLine=\"Private picMusic\t\tAs Bitmap\";\nmostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 32;BA.debugLine=\"Private mapCover\t\tAs Map\";\nmostCurrent._mapcover = new anywheresoftware.b4a.objects.collections.Map();\n //BA.debugLineNum = 33;BA.debugLine=\"Private container \t\tAs AHPageContainer\";\nmostCurrent._container = new de.amberhome.viewpager.AHPageContainer();\n //BA.debugLineNum = 34;BA.debugLine=\"Private pager \t\t\tAs AHViewPager\";\nmostCurrent._pager = new de.amberhome.viewpager.AHViewPager();\n //BA.debugLineNum = 35;BA.debugLine=\"Private pCoverFlow \t\tAs Panel\";\nmostCurrent._pcoverflow = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 36;BA.debugLine=\"Private tCover\t\t\tAs Timer\";\nmostCurrent._tcover = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 37;BA.debugLine=\"Private picMusic\t\tAs Bitmap\";\nmostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 38;BA.debugLine=\"Private picVideo\t\tAs Bitmap\";\nmostCurrent._picvideo = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 39;BA.debugLine=\"Private picLain\t\t\tAs Bitmap\";\nmostCurrent._piclain = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 40;BA.debugLine=\"Private lstFilter \t\tAs List\";\nmostCurrent._lstfilter = new anywheresoftware.b4a.objects.collections.List();\n //BA.debugLineNum = 41;BA.debugLine=\"Private CurrPage \t\tAs Int = 0\";\n_currpage = (int) (0);\n //BA.debugLineNum = 42;BA.debugLine=\"Private arah\t\t\tAs Int = 0\";\n_arah = (int) (0);\n //BA.debugLineNum = 44;BA.debugLine=\"Private lblMost \t\tAs Label\";\nmostCurrent._lblmost = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 45;BA.debugLine=\"Private ivGaris \t\tAs ImageView\";\nmostCurrent._ivgaris = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 46;BA.debugLine=\"Private ivGambar1 \t\tAs ImageView\";\nmostCurrent._ivgambar1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 47;BA.debugLine=\"Private ivGambar4 \t\tAs ImageView\";\nmostCurrent._ivgambar4 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 48;BA.debugLine=\"Private ivMore \t\t\tAs ImageView\";\nmostCurrent._ivmore = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 49;BA.debugLine=\"Private iTampil1 \t\tAs Int=0\";\n_itampil1 = (int) (0);\n //BA.debugLineNum = 50;BA.debugLine=\"Private iTampil2 \t\tAs Int=0\";\n_itampil2 = (int) (0);\n //BA.debugLineNum = 51;BA.debugLine=\"Private pTop \t\t\tAs Panel\";\nmostCurrent._ptop = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 52;BA.debugLine=\"Private etSearch \t\tAs EditText\";\nmostCurrent._etsearch = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 53;BA.debugLine=\"Private lblJudul1 \t\tAs Label\";\nmostCurrent._lbljudul1 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 54;BA.debugLine=\"Private lblLogin \t\tAs Label\";\nmostCurrent._lbllogin = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 56;BA.debugLine=\"Dim coverflow \t\tAs PhotoFlow\";\nmostCurrent._coverflow = new it.giuseppe.salvi.PhotoFlowActivity();\n //BA.debugLineNum = 57;BA.debugLine=\"Private bLogin \t\tAs Button\";\nmostCurrent._blogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 58;BA.debugLine=\"Private bMore \t\tAs Button\";\nmostCurrent._bmore = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 59;BA.debugLine=\"Dim pos_cflow \t\tAs Int\";\n_pos_cflow = 0;\n //BA.debugLineNum = 60;BA.debugLine=\"Dim panel1 \t\t\tAs Panel\";\nmostCurrent._panel1 = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 61;BA.debugLine=\"Dim timer_cflow\t\tAs Timer\";\nmostCurrent._timer_cflow = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 62;BA.debugLine=\"Dim a, b\t\t\tAs Int\";\n_a = 0;\n_b = 0;\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static String _imglarvas_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 211;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 212;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 213;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 214;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 215;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 216;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 217;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 218;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 219;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 220;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 221;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 222;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 223;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 224;BA.debugLine=\"lblEstadio.Visible = False\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 226;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 227;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 228;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 230;BA.debugLine=\"panelPopUps_2.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_2.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 231;BA.debugLine=\"panelPopUps_2.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_2.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 233;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"\\\"\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 234;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 235;BA.debugLine=\"imgPopUp.RemoveView\";\nmostCurrent._imgpopup.RemoveView();\n //BA.debugLineNum = 236;BA.debugLine=\"imgPopUp.Initialize(\\\"\\\")\";\nmostCurrent._imgpopup.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 237;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets, \\\"mos\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_larvaFoto.png\").getObject()));\n //BA.debugLineNum = 238;BA.debugLine=\"imgPopUp.Gravity = Gravity.FILL\";\nmostCurrent._imgpopup.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.FILL);\n //BA.debugLineNum = 239;BA.debugLine=\"btnCerrarPopUp.RemoveView\";\nmostCurrent._btncerrarpopup.RemoveView();\n //BA.debugLineNum = 240;BA.debugLine=\"btnCerrarPopUp.Initialize(\\\"btnCerrarPopUp_Larvas\\\"\";\nmostCurrent._btncerrarpopup.Initialize(mostCurrent.activityBA,\"btnCerrarPopUp_Larvas\");\n //BA.debugLineNum = 241;BA.debugLine=\"btnCerrarPopUp.Typeface = Typeface.FONTAWESOME\";\nmostCurrent._btncerrarpopup.setTypeface(anywheresoftware.b4a.keywords.Common.Typeface.getFONTAWESOME());\n //BA.debugLineNum = 242;BA.debugLine=\"btnCerrarPopUp.Text = \\\"\\\"\";\nmostCurrent._btncerrarpopup.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 243;BA.debugLine=\"btnCerrarPopUp.TextSize = 30\";\nmostCurrent._btncerrarpopup.setTextSize((float) (30));\n //BA.debugLineNum = 244;BA.debugLine=\"btnCerrarPopUp.Color = Colors.ARGB(150,255,255,25\";\nmostCurrent._btncerrarpopup.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (150),(int) (255),(int) (255),(int) (255)));\n //BA.debugLineNum = 245;BA.debugLine=\"btnCerrarPopUp.TextColor = Colors.ARGB(255,255,11\";\nmostCurrent._btncerrarpopup.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (255),(int) (255),(int) (117),(int) (117)));\n //BA.debugLineNum = 246;BA.debugLine=\"panelPopUps_2.AddView(imgPopUp, 0%x, 0%y, 70%x, 7\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._imgpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 247;BA.debugLine=\"panelPopUps_2.AddView(btnCerrarPopUp, 56%x, 0%y,\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._btncerrarpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (56),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)));\n //BA.debugLineNum = 248;BA.debugLine=\"Activity.AddView(panelPopUps_2, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_2.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 249;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _setthumbcolor(int _bordercolor,int _innercolor) throws Exception{\n_mthumbbordercolor = _bordercolor;\n //BA.debugLineNum = 54;BA.debugLine=\"mThumbInnerColor = InnerColor\";\n_mthumbinnercolor = _innercolor;\n //BA.debugLineNum = 55;BA.debugLine=\"CreateThumb\";\n_createthumb();\n //BA.debugLineNum = 56;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 57;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _buildtheme() throws Exception{\n_theme.Initialize(\"pagetheme\");\r\n //BA.debugLineNum = 91;BA.debugLine=\"theme.AddABMTheme(ABMShared.MyTheme)\";\r\n_theme.AddABMTheme(_abmshared._mytheme);\r\n //BA.debugLineNum = 94;BA.debugLine=\"theme.AddLabelTheme(\\\"lightblue\\\")\";\r\n_theme.AddLabelTheme(\"lightblue\");\r\n //BA.debugLineNum = 95;BA.debugLine=\"theme.Label(\\\"lightblue\\\").ForeColor = ABM.COLOR_LI\";\r\n_theme.Label(\"lightblue\").ForeColor = _abm.COLOR_LIGHTBLUE;\r\n //BA.debugLineNum = 96;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}",
"private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}",
"public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public void showbitmap3() {\n \n \t}",
"public static String _showloading(String _msg) throws Exception{\nanywheresoftware.b4a.keywords.Common.ProgressDialogShow2(mostCurrent.activityBA,BA.ObjectToCharSequence(_msg),anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 66;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static void ClearDebugInfo() { throw Extensions.todo(); }",
"public static String _registerbutt_click() throws Exception{\n_inputregis();\n //BA.debugLineNum = 104;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static RemoteObject _process_globals() throws Exception{\nrequests3._device = RemoteObject.createNew (\"anywheresoftware.b4a.phone.Phone\");\n //BA.debugLineNum = 13;BA.debugLine=\"Private TileSource As String\";\nrequests3._tilesource = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 14;BA.debugLine=\"Private ZoomLevel As Int\";\nrequests3._zoomlevel = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 15;BA.debugLine=\"Private Markers As List\";\nrequests3._markers = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 16;BA.debugLine=\"Private MapFirstTime As Boolean\";\nrequests3._mapfirsttime = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 18;BA.debugLine=\"Private MyPositionLat, MyPositionLon As String\";\nrequests3._mypositionlat = RemoteObject.createImmutable(\"\");\nrequests3._mypositionlon = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 19;BA.debugLine=\"Private CurrentTabPage As Int = 0\";\nrequests3._currenttabpage = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 20;BA.debugLine=\"Private InfoDataWindows As Boolean = False\";\nrequests3._infodatawindows = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 21;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"private void m17128G() {\n int i;\n int i2;\n boolean z = this.f15654j0 > 0;\n if (z && this.f15655k0 == C2470a.INBOX) {\n i2 = 2131231288;\n i = 2131231290;\n } else if (z) {\n i2 = 2131231295;\n i = 2131231297;\n } else {\n C2470a aVar = this.f15655k0;\n if (aVar == C2470a.INBOX) {\n i2 = 2131231287;\n i = 2131231289;\n } else if (aVar == C2470a.MAP) {\n i2 = 2131231298;\n i = 2131231299;\n } else {\n i2 = 2131231294;\n i = 2131231296;\n }\n }\n this.f15637S.setBackgroundResource(i2);\n this.f15638T.setImageResource(i);\n }",
"public String _class_globals() throws Exception{\n_wholescreen = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 3;BA.debugLine=\"Dim infoholder As Panel\";\n_infoholder = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 4;BA.debugLine=\"Dim screenimg As ImageView\";\n_screenimg = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 5;BA.debugLine=\"Dim usernamefield As EditText\";\n_usernamefield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 6;BA.debugLine=\"Dim passwordfield As EditText\";\n_passwordfield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 7;BA.debugLine=\"Dim loginbtn As Button\";\n_loginbtn = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 8;BA.debugLine=\"Dim singup As Button\";\n_singup = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Dim myxml As SaxParser\";\n_myxml = new anywheresoftware.b4a.objects.SaxParser();\n //BA.debugLineNum = 12;BA.debugLine=\"Dim usermainscreen As UserInterfaceMainScreen\";\n_usermainscreen = new b4a.HotelAppTP.userinterfacemainscreen();\n //BA.debugLineNum = 14;BA.debugLine=\"Dim LoginJob As HttpJob\";\n_loginjob = new anywheresoftware.b4a.samples.httputils2.httpjob();\n //BA.debugLineNum = 16;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public abstract void mo35053a(Bitmap bitmap, C11847d dVar);",
"public void showbitmap4() {\n \n \t}",
"public void debugDraw(Graphics g)\n\t{\n\t}",
"public static String _but_cerrar_ciclo_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 454;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 455;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"private void m16075b() {\n this.f13513b = (ImageView) getInflater().inflate(C0633g.abc_list_menu_item_icon, this, false);\n addView(this.f13513b, 0);\n }",
"private DuakIcons()\r\n {\r\n }",
"public void setMainIcon(IconReference ref);",
"public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}",
"public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }",
"Bitmap mo6659a(Context context, String str, C1492a aVar);",
"@SideOnly(Side.CLIENT)\n/* 31: */ public void registerIcons(IIconRegister iconRegister) {}",
"public String _class_globals() throws Exception{\n_ws = new anywheresoftware.b4j.object.WebSocket();\r\n //BA.debugLineNum = 5;BA.debugLine=\"Public page As ABMPage\";\r\n_page = new com.ab.abmaterial.ABMPage();\r\n //BA.debugLineNum = 7;BA.debugLine=\"Private theme As ABMTheme\";\r\n_theme = new com.ab.abmaterial.ABMTheme();\r\n //BA.debugLineNum = 9;BA.debugLine=\"Private ABM As ABMaterial 'ignore\";\r\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 11;BA.debugLine=\"Public Name As String = \\\"CompComboPage\\\"\";\r\n_name = \"CompComboPage\";\r\n //BA.debugLineNum = 13;BA.debugLine=\"Private ABMPageId As String = \\\"\\\"\";\r\n_abmpageid = \"\";\r\n //BA.debugLineNum = 16;BA.debugLine=\"Dim myToastId As Int\";\r\n_mytoastid = 0;\r\n //BA.debugLineNum = 17;BA.debugLine=\"Dim combocounter As Int = 4\";\r\n_combocounter = (int) (4);\r\n //BA.debugLineNum = 18;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}",
"public static String _globals() throws Exception{\nmostCurrent._nameet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Private passET As EditText\";\nmostCurrent._passet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private phoneET As EditText\";\nmostCurrent._phoneet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Private alamatET As EditText\";\nmostCurrent._alamatet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private hobiET As EditText\";\nmostCurrent._hobiet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private takeSelfie As Button\";\nmostCurrent._takeselfie = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private ImageView1 As ImageView\";\nmostCurrent._imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private registerButt As Button\";\nmostCurrent._registerbutt = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private emailET As EditText\";\nmostCurrent._emailet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static void memBar(){\n \n }",
"public static String _but_cerrar_mosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 458;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 459;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _buildui() throws Exception{\n_screenimg.SetBackgroundImageNew((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),\"hotelappscreen.jpg\").getObject()));\n //BA.debugLineNum = 42;BA.debugLine=\"screenimg.Gravity = Gravity.FILL\";\n_screenimg.setGravity(__c.Gravity.FILL);\n //BA.debugLineNum = 43;BA.debugLine=\"wholescreen.AddView(screenimg,0,10%y,100%x,80%y)\";\n_wholescreen.AddView((android.view.View)(_screenimg.getObject()),(int) (0),__c.PerYToCurrent((float) (10),ba),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (80),ba));\n //BA.debugLineNum = 44;BA.debugLine=\"wholescreen.Color = Colors.ARGB(150,0,0,0)\";\n_wholescreen.setColor(__c.Colors.ARGB((int) (150),(int) (0),(int) (0),(int) (0)));\n //BA.debugLineNum = 47;BA.debugLine=\"infoholder.Color = Colors.ARGB(150,0,0,0)\";\n_infoholder.setColor(__c.Colors.ARGB((int) (150),(int) (0),(int) (0),(int) (0)));\n //BA.debugLineNum = 48;BA.debugLine=\"wholescreen.AddView(infoholder,30%x,100%y,40%x,30\";\n_wholescreen.AddView((android.view.View)(_infoholder.getObject()),__c.PerXToCurrent((float) (30),ba),__c.PerYToCurrent((float) (100),ba),__c.PerXToCurrent((float) (40),ba),__c.PerYToCurrent((float) (30),ba));\n //BA.debugLineNum = 49;BA.debugLine=\"usernamefield.Gravity = Gravity.LEFT\";\n_usernamefield.setGravity(__c.Gravity.LEFT);\n //BA.debugLineNum = 50;BA.debugLine=\"usernamefield.Color = Colors.White\";\n_usernamefield.setColor(__c.Colors.White);\n //BA.debugLineNum = 51;BA.debugLine=\"usernamefield.Hint = \\\"Username\\\"\";\n_usernamefield.setHint(\"Username\");\n //BA.debugLineNum = 53;BA.debugLine=\"usernamefield.Text = \\\"[email protected]\\\"\";\n_usernamefield.setText(BA.ObjectToCharSequence(\"[email protected]\"));\n //BA.debugLineNum = 54;BA.debugLine=\"usernamefield.HintColor = Colors.DarkGray\";\n_usernamefield.setHintColor(__c.Colors.DarkGray);\n //BA.debugLineNum = 55;BA.debugLine=\"usernamefield.SingleLine = True\";\n_usernamefield.setSingleLine(__c.True);\n //BA.debugLineNum = 56;BA.debugLine=\"usernamefield.TextColor = Colors.Black\";\n_usernamefield.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 57;BA.debugLine=\"infoholder.AddView(usernamefield,2.5%x,2.5%y,35%x\";\n_infoholder.AddView((android.view.View)(_usernamefield.getObject()),__c.PerXToCurrent((float) (2.5),ba),__c.PerYToCurrent((float) (2.5),ba),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 59;BA.debugLine=\"passwordfield.Gravity = Gravity.LEFT\";\n_passwordfield.setGravity(__c.Gravity.LEFT);\n //BA.debugLineNum = 60;BA.debugLine=\"passwordfield.Color = Colors.White\";\n_passwordfield.setColor(__c.Colors.White);\n //BA.debugLineNum = 61;BA.debugLine=\"passwordfield.Hint = \\\"Password\\\"\";\n_passwordfield.setHint(\"Password\");\n //BA.debugLineNum = 63;BA.debugLine=\"passwordfield.Text = \\\"a936157z\\\"\";\n_passwordfield.setText(BA.ObjectToCharSequence(\"a936157z\"));\n //BA.debugLineNum = 64;BA.debugLine=\"passwordfield.HintColor = Colors.DarkGray\";\n_passwordfield.setHintColor(__c.Colors.DarkGray);\n //BA.debugLineNum = 65;BA.debugLine=\"passwordfield.SingleLine = True\";\n_passwordfield.setSingleLine(__c.True);\n //BA.debugLineNum = 66;BA.debugLine=\"passwordfield.TextColor = Colors.Black\";\n_passwordfield.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 67;BA.debugLine=\"passwordfield.PasswordMode = True\";\n_passwordfield.setPasswordMode(__c.True);\n //BA.debugLineNum = 68;BA.debugLine=\"infoholder.AddView(passwordfield,2.5%x,(usernamef\";\n_infoholder.AddView((android.view.View)(_passwordfield.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_usernamefield.getTop()+_usernamefield.getHeight())+__c.DipToCurrent((int) (10))),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 70;BA.debugLine=\"loginbtn.Gravity = Gravity.CENTER\";\n_loginbtn.setGravity(__c.Gravity.CENTER);\n //BA.debugLineNum = 71;BA.debugLine=\"loginbtn.Color = Colors.White\";\n_loginbtn.setColor(__c.Colors.White);\n //BA.debugLineNum = 72;BA.debugLine=\"loginbtn.Text = \\\"Login\\\"\";\n_loginbtn.setText(BA.ObjectToCharSequence(\"Login\"));\n //BA.debugLineNum = 73;BA.debugLine=\"loginbtn.TextSize = 20\";\n_loginbtn.setTextSize((float) (20));\n //BA.debugLineNum = 74;BA.debugLine=\"loginbtn.Textcolor = Colors.Black\";\n_loginbtn.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 75;BA.debugLine=\"HelperFunctions1.Apply_ViewStyle(loginbtn,Colors.\";\n_helperfunctions1._apply_viewstyle(ba,(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_loginbtn.getObject())),__c.Colors.Black,__c.Colors.RGB((int) (0),(int) (128),(int) (255)),__c.Colors.White,__c.Colors.RGB((int) (77),(int) (166),(int) (255)),__c.Colors.Gray,__c.Colors.Gray,__c.Colors.Gray,(int) (10));\n //BA.debugLineNum = 76;BA.debugLine=\"infoholder.AddView(loginbtn,2.5%x,(passwordfield.\";\n_infoholder.AddView((android.view.View)(_loginbtn.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_passwordfield.getTop()+_passwordfield.getHeight())+__c.PerYToCurrent((float) (5),ba)),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 78;BA.debugLine=\"singup.Gravity = Gravity.CENTER\";\n_singup.setGravity(__c.Gravity.CENTER);\n //BA.debugLineNum = 79;BA.debugLine=\"singup.Color = Colors.White\";\n_singup.setColor(__c.Colors.White);\n //BA.debugLineNum = 80;BA.debugLine=\"singup.Text = \\\"Sing up\\\"\";\n_singup.setText(BA.ObjectToCharSequence(\"Sing up\"));\n //BA.debugLineNum = 81;BA.debugLine=\"singup.TextSize = 20\";\n_singup.setTextSize((float) (20));\n //BA.debugLineNum = 82;BA.debugLine=\"singup.Textcolor = Colors.Black\";\n_singup.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 83;BA.debugLine=\"HelperFunctions1.Apply_ViewStyle(singup,Colors.Bl\";\n_helperfunctions1._apply_viewstyle(ba,(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_singup.getObject())),__c.Colors.Black,__c.Colors.RGB((int) (0),(int) (128),(int) (255)),__c.Colors.White,__c.Colors.RGB((int) (77),(int) (166),(int) (255)),__c.Colors.Gray,__c.Colors.Gray,__c.Colors.Gray,(int) (10));\n //BA.debugLineNum = 84;BA.debugLine=\"infoholder.AddView(singup,2.5%x,(loginbtn.Top + l\";\n_infoholder.AddView((android.view.View)(_singup.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_loginbtn.getTop()+_loginbtn.getHeight())+__c.DipToCurrent((int) (5))),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 86;BA.debugLine=\"infoholder.SetLayoutAnimated(1000,30%x,30%y,40%x,\";\n_infoholder.SetLayoutAnimated((int) (1000),__c.PerXToCurrent((float) (30),ba),__c.PerYToCurrent((float) (30),ba),__c.PerXToCurrent((float) (40),ba),__c.PerYToCurrent((float) (30),ba));\n //BA.debugLineNum = 87;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"private NavDebug() {\r\n }",
"public C1442z5(int r10, java.lang.CharSequence r11, android.app.PendingIntent r12) {\n /*\n r9 = this;\n r0 = 0\n if (r10 != 0) goto L_0x0005\n r10 = r0\n goto L_0x000b\n L_0x0005:\n java.lang.String r1 = \"\"\n androidx.core.graphics.drawable.IconCompat r10 = androidx.core.graphics.drawable.IconCompat.m253b(r0, r1, r10)\n L_0x000b:\n android.os.Bundle r1 = new android.os.Bundle\n r1.<init>()\n r9.<init>()\n r2 = 1\n r9.f5266f = r2\n r9.f5262b = r10\n r3 = 0\n if (r10 == 0) goto L_0x0072\n int r4 = r10.f637a\n r5 = -1\n if (r4 != r5) goto L_0x0069\n int r6 = android.os.Build.VERSION.SDK_INT\n r7 = 23\n if (r6 < r7) goto L_0x0069\n java.lang.Object r4 = r10.f638b\n android.graphics.drawable.Icon r4 = (android.graphics.drawable.Icon) r4\n r7 = 28\n if (r6 < r7) goto L_0x0033\n int r4 = r4.getType()\n goto L_0x0069\n L_0x0033:\n java.lang.Class r6 = r4.getClass() // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.String r7 = \"getType\"\n java.lang.Class[] r8 = new java.lang.Class[r3] // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.reflect.Method r6 = r6.getMethod(r7, r8) // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.Object[] r7 = new java.lang.Object[r3] // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.Object r6 = r6.invoke(r4, r7) // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.Integer r6 = (java.lang.Integer) r6 // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n int r4 = r6.intValue() // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n goto L_0x0069\n L_0x004c:\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r6.<init>()\n goto L_0x005d\n L_0x0052:\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r6.<init>()\n goto L_0x005d\n L_0x0058:\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r6.<init>()\n L_0x005d:\n java.lang.String r7 = \"Unable to get icon type \"\n r6.append(r7)\n r6.append(r4)\n r6.toString()\n r4 = -1\n L_0x0069:\n r5 = 2\n if (r4 != r5) goto L_0x0072\n int r10 = r10.mo739c()\n r9.f5269i = r10\n L_0x0072:\n java.lang.CharSequence r10 = p000.C0009a6.m17b(r11)\n r9.f5270j = r10\n r9.f5271k = r12\n r9.f5261a = r1\n r9.f5263c = r0\n r9.f5264d = r0\n r9.f5265e = r2\n r9.f5267g = r3\n r9.f5266f = r2\n r9.f5268h = r3\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C1442z5.<init>(int, java.lang.CharSequence, android.app.PendingIntent):void\");\n }",
"public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 61;BA.debugLine=\"utilidades.ResetUserFontScale(Activity)\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv0 /*String*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(mostCurrent._activity.getObject())));\n //BA.debugLineNum = 62;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{\nb4i_customlistview._mbase = RemoteObject.createNew (\"B4XViewWrapper\");__ref.setField(\"_mbase\",b4i_customlistview._mbase);\n //BA.debugLineNum = 15;BA.debugLine=\"Public sv As B4XView\";\nb4i_customlistview._sv = RemoteObject.createNew (\"B4XViewWrapper\");__ref.setField(\"_sv\",b4i_customlistview._sv);\n //BA.debugLineNum = 16;BA.debugLine=\"Type CLVItem(Panel As B4XView, Size As Int, Value\";\n;\n //BA.debugLineNum = 18;BA.debugLine=\"Private items As List\";\nb4i_customlistview._items = RemoteObject.createNew (\"B4IList\");__ref.setField(\"_items\",b4i_customlistview._items);\n //BA.debugLineNum = 19;BA.debugLine=\"Private mDividerSize As Float\";\nb4i_customlistview._mdividersize = RemoteObject.createImmutable(0.0f);__ref.setField(\"_mdividersize\",b4i_customlistview._mdividersize);\n //BA.debugLineNum = 20;BA.debugLine=\"Private EventName As String\";\nb4i_customlistview._eventname = RemoteObject.createImmutable(\"\");__ref.setField(\"_eventname\",b4i_customlistview._eventname);\n //BA.debugLineNum = 21;BA.debugLine=\"Private CallBack As Object\";\nb4i_customlistview._callback = RemoteObject.createNew (\"NSObject\");__ref.setField(\"_callback\",b4i_customlistview._callback);\n //BA.debugLineNum = 22;BA.debugLine=\"Public DefaultTextColor As Int\";\nb4i_customlistview._defaulttextcolor = RemoteObject.createImmutable(0);__ref.setField(\"_defaulttextcolor\",b4i_customlistview._defaulttextcolor);\n //BA.debugLineNum = 23;BA.debugLine=\"Public DefaultTextBackgroundColor As Int\";\nb4i_customlistview._defaulttextbackgroundcolor = RemoteObject.createImmutable(0);__ref.setField(\"_defaulttextbackgroundcolor\",b4i_customlistview._defaulttextbackgroundcolor);\n //BA.debugLineNum = 24;BA.debugLine=\"Public AnimationDuration As Int = 300\";\nb4i_customlistview._animationduration = BA.numberCast(int.class, 300);__ref.setField(\"_animationduration\",b4i_customlistview._animationduration);\n //BA.debugLineNum = 25;BA.debugLine=\"Private LastReachEndEvent As Long\";\nb4i_customlistview._lastreachendevent = RemoteObject.createImmutable(0L);__ref.setField(\"_lastreachendevent\",b4i_customlistview._lastreachendevent);\n //BA.debugLineNum = 26;BA.debugLine=\"Public PressedColor As Int\";\nb4i_customlistview._pressedcolor = RemoteObject.createImmutable(0);__ref.setField(\"_pressedcolor\",b4i_customlistview._pressedcolor);\n //BA.debugLineNum = 27;BA.debugLine=\"Private xui As XUI\";\nb4i_customlistview._xui = RemoteObject.createNew (\"B4IXUI\");__ref.setField(\"_xui\",b4i_customlistview._xui);\n //BA.debugLineNum = 28;BA.debugLine=\"Private DesignerLabel As Label\";\nb4i_customlistview._designerlabel = RemoteObject.createNew (\"B4ILabelWrapper\");__ref.setField(\"_designerlabel\",b4i_customlistview._designerlabel);\n //BA.debugLineNum = 29;BA.debugLine=\"Private horizontal As Boolean\";\nb4i_customlistview._horizontal = RemoteObject.createImmutable(false);__ref.setField(\"_horizontal\",b4i_customlistview._horizontal);\n //BA.debugLineNum = 35;BA.debugLine=\"Private FeedbackGenerator As NativeObject\";\nb4i_customlistview._feedbackgenerator = RemoteObject.createNew (\"B4INativeObject\");__ref.setField(\"_feedbackgenerator\",b4i_customlistview._feedbackgenerator);\n //BA.debugLineNum = 37;BA.debugLine=\"Private mFirstVisibleIndex, mLastVisibleIndex As\";\nb4i_customlistview._mfirstvisibleindex = RemoteObject.createImmutable(0);__ref.setField(\"_mfirstvisibleindex\",b4i_customlistview._mfirstvisibleindex);\nb4i_customlistview._mlastvisibleindex = RemoteObject.createImmutable(0);__ref.setField(\"_mlastvisibleindex\",b4i_customlistview._mlastvisibleindex);\n //BA.debugLineNum = 38;BA.debugLine=\"Private MonitorVisibleRange As Boolean\";\nb4i_customlistview._monitorvisiblerange = RemoteObject.createImmutable(false);__ref.setField(\"_monitorvisiblerange\",b4i_customlistview._monitorvisiblerange);\n //BA.debugLineNum = 39;BA.debugLine=\"Private FireScrollChanged As Boolean\";\nb4i_customlistview._firescrollchanged = RemoteObject.createImmutable(false);__ref.setField(\"_firescrollchanged\",b4i_customlistview._firescrollchanged);\n //BA.debugLineNum = 40;BA.debugLine=\"Private ScrollBarsVisible As Boolean\";\nb4i_customlistview._scrollbarsvisible = RemoteObject.createImmutable(false);__ref.setField(\"_scrollbarsvisible\",b4i_customlistview._scrollbarsvisible);\n //BA.debugLineNum = 41;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"private Globals() {\n\n\t}",
"private void initBaseIcons() {\n iconMonitor = new ImageIcon( getClass().getResource(\"/system.png\") );\n iconBattery = new ImageIcon( getClass().getResource(\"/klaptopdaemon.png\") );\n iconSearch = new ImageIcon( getClass().getResource(\"/xmag.png\") );\n iconJava = new ImageIcon( getClass().getResource(\"/java-icon.png\") );\n iconPrinter = new ImageIcon( getClass().getResource(\"/printer.png\") );\n iconRun = new ImageIcon( getClass().getResource(\"/run.png\") );\n }",
"public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }",
"public IIcon method_2681() {\r\n return this.field_2146;\r\n }",
"@Override\n public void init(GLAutoDrawable drawable) {\n \tdrawable.setGL(new DebugGL2(new TraceGL2(drawable.getGL().getGL2(), System.err)));\n\n //OR uncomment this line to just get debugging\n //drawable.setGL(new DebugGL2(drawable.getGL().getGL2()));\n GL2 gl = drawable.getGL().getGL2();\n\n gl.glClearColor(1.0f, 1.0f, 1.0f, 1f); // White Background\n }",
"public static String _butcolor_click() throws Exception{\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 101;BA.debugLine=\"butColor.Visible = False\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 103;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 104;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 105;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 107;BA.debugLine=\"panelPopUps_1.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_1.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 108;BA.debugLine=\"panelPopUps_1.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_1.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 110;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"A simple vista se ve\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"A simple vista se ve\"+anywheresoftware.b4a.keywords.Common.CRLF+\"de color negro intenso\"));\n //BA.debugLineNum = 111;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets,\\\"mosq\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_Color.png\").getObject()));\n //BA.debugLineNum = 112;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 113;BA.debugLine=\"Activity.AddView(panelPopUps_1, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_1.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 114;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _setcirclecolor(int _nonvaluecolor,int _innercolor) throws Exception{\n_mcirclenonvaluecolor = _nonvaluecolor;\n //BA.debugLineNum = 61;BA.debugLine=\"mCircleFillColor = InnerColor\";\n_mcirclefillcolor = _innercolor;\n //BA.debugLineNum = 62;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"void m1864a() {\r\n }",
"public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{\nconfigparameters._cfg_allow_front_camera = BA.numberCast(int.class, 0);__ref.setField(\"_cfg_allow_front_camera\",configparameters._cfg_allow_front_camera);\n //BA.debugLineNum = 10;BA.debugLine=\"Public CFG_COPY_IMAGE_TO_GALLERY As Int = 1\";\nconfigparameters._cfg_copy_image_to_gallery = BA.numberCast(int.class, 1);__ref.setField(\"_cfg_copy_image_to_gallery\",configparameters._cfg_copy_image_to_gallery);\n //BA.debugLineNum = 11;BA.debugLine=\"Public CFG_TAKE_PICTURE_ALWAYS_AS_NEW As Int = 1\";\nconfigparameters._cfg_take_picture_always_as_new = BA.numberCast(int.class, 1);__ref.setField(\"_cfg_take_picture_always_as_new\",configparameters._cfg_take_picture_always_as_new);\n //BA.debugLineNum = 13;BA.debugLine=\"Private ConfigFileName As String = \\\"config.json\\\"\";\nconfigparameters._configfilename = BA.ObjectToString(\"config.json\");__ref.setField(\"_configfilename\",configparameters._configfilename);\n //BA.debugLineNum = 14;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"private void m403g() {\n C3433a2 a2Var = this.f857a;\n if (a2Var != null) {\n String title = a2Var.getTitle();\n String titleTextColor = this.f857a.getTitleTextColor();\n String titleBackgroundColor = this.f857a.getTitleBackgroundColor();\n if (!TextUtils.isEmpty(title)) {\n this.f848j.setText(title);\n }\n if (!TextUtils.isEmpty(titleBackgroundColor)) {\n try {\n this.f847i.setBackgroundColor(Color.parseColor(titleBackgroundColor));\n } catch (Exception unused) {\n C3490e3.m666f(\"Error on set title background color\");\n }\n }\n if (!TextUtils.isEmpty(titleTextColor)) {\n try {\n this.f848j.setTextColor(Color.parseColor(titleTextColor));\n Drawable navigationIcon = this.f847i.getNavigationIcon();\n if (navigationIcon != null) {\n navigationIcon.setColorFilter(Color.parseColor(titleTextColor), PorterDuff.Mode.MULTIPLY);\n }\n } catch (Exception unused2) {\n C3490e3.m666f(\"Error on set title text color\");\n }\n }\n }\n }",
"public String _class_globals() throws Exception{\n_pub_key = \"\";\n //BA.debugLineNum = 8;BA.debugLine=\"Private Event As String\";\n_event = \"\";\n //BA.debugLineNum = 9;BA.debugLine=\"Private Instance As Object\";\n_instance = new Object();\n //BA.debugLineNum = 11;BA.debugLine=\"Private Page As Activity\";\n_page = new anywheresoftware.b4a.objects.ActivityWrapper();\n //BA.debugLineNum = 12;BA.debugLine=\"Private PaymentPage As WebView\";\n_paymentpage = new anywheresoftware.b4a.objects.WebViewWrapper();\n //BA.debugLineNum = 13;BA.debugLine=\"Private JarFile As JarFileLoader\";\n_jarfile = new b4a.paystack.jarfileloader();\n //BA.debugLineNum = 14;BA.debugLine=\"Private PageCurrentTitle As String\";\n_pagecurrenttitle = \"\";\n //BA.debugLineNum = 15;BA.debugLine=\"Private IME As IME\";\n_ime = new anywheresoftware.b4a.objects.IME();\n //BA.debugLineNum = 16;BA.debugLine=\"Private POPUP As Boolean = False\";\n_popup = __c.False;\n //BA.debugLineNum = 17;BA.debugLine=\"Private POPUP_PANEL As Panel\";\n_popup_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private JS As DefaultJavascriptInterface\";\n_js = new uk.co.martinpearman.b4a.webkit.DefaultJavascriptInterface();\n //BA.debugLineNum = 21;BA.debugLine=\"Private WebClient As DefaultWebViewClient\";\n_webclient = new uk.co.martinpearman.b4a.webkit.DefaultWebViewClient();\n //BA.debugLineNum = 22;BA.debugLine=\"Private PaymentPageExtra As WebViewExtras\";\n_paymentpageextra = new uk.co.martinpearman.b4a.webkit.WebViewExtras();\n //BA.debugLineNum = 23;BA.debugLine=\"Private Chrome As DefaultWebChromeClient\";\n_chrome = new uk.co.martinpearman.b4a.webkit.DefaultWebChromeClient();\n //BA.debugLineNum = 24;BA.debugLine=\"Private CookieManager As CookieManager\";\n_cookiemanager = new uk.co.martinpearman.b4a.httpcookiemanager.B4ACookieManager();\n //BA.debugLineNum = 25;BA.debugLine=\"Private Loaded As Boolean = False\";\n_loaded = __c.False;\n //BA.debugLineNum = 26;BA.debugLine=\"Public ShowMessage As Boolean = True\";\n_showmessage = __c.True;\n //BA.debugLineNum = 29;BA.debugLine=\"Private ReferenceCode As String\";\n_referencecode = \"\";\n //BA.debugLineNum = 30;BA.debugLine=\"Private AccesCode As String\";\n_accescode = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"Private AmountCurrency As String\";\n_amountcurrency = \"\";\n //BA.debugLineNum = 34;BA.debugLine=\"Public CURRENCY_GHS As String = \\\"GHS\\\"\";\n_currency_ghs = \"GHS\";\n //BA.debugLineNum = 35;BA.debugLine=\"Public CURRENCY_NGN As String = \\\"NGN\\\"\";\n_currency_ngn = \"NGN\";\n //BA.debugLineNum = 36;BA.debugLine=\"Public CURRENCY_ZAR As String = \\\"ZAR\\\"\";\n_currency_zar = \"ZAR\";\n //BA.debugLineNum = 37;BA.debugLine=\"Public CURRENCY_USD As String = \\\"USD\\\"\";\n_currency_usd = \"USD\";\n //BA.debugLineNum = 39;BA.debugLine=\"Private HTML As String = $\\\" <!doctype html> <html\";\n_html = (\"\\n\"+\"<!doctype html>\\n\"+\"<html>\\n\"+\"<head>\\n\"+\"\t<title>Paystack</title>\\n\"+\"\t<script>\\n\"+\"\t\tfunction setCookie(cname, cvalue, exdays) {\\n\"+\"\t\t const d = new Date();\\n\"+\"\t\t d.setTime(d.getTime() + (exdays*24*60*60*1000));\\n\"+\"\t\t let expires = \\\"expires=\\\"+ d.toUTCString();\\n\"+\"\t\t document.cookie = cname + \\\"=\\\" + cvalue + \\\";\\\" + expires + \\\";path=/\\\";\\n\"+\"\t\t}\\n\"+\"\t\tsetCookie('SameSite', 'Secure', 1);\\n\"+\"\t</script>\\n\"+\"</head>\\n\"+\"<body>\\n\"+\"\t<script>\\n\"+\"\t\tfunction Pay(key,email,amount,ref,label,currency){\\n\"+\"\t\t\tlet handler = PaystackPop.setup({\\n\"+\"\t\t\t\tkey: key,\\n\"+\"\t\t\t\temail: email,\\n\"+\"\t\t\t\tamount: amount * 100,\\n\"+\"\t\t\t\tref: ref+Math.floor((Math.random() * 1000000000) + 1),\\n\"+\"\t\t\t\tlabel: label,\\n\"+\"\t\t\t\tcurrency: currency,\\n\"+\"\t\t\t\tonClose: function(){\\n\"+\"\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment Cancelled\\\",\\\"cancelled\\\");\\n\"+\"\t\t\t\t},\\n\"+\"\t\t\t\tcallback: function(response){\t\\n\"+\"\t\t\t\t\tif(response.status == 'success'){\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment of \\\"+currency+amount+\\\" Successul\\\",\\\"success\\\");\\n\"+\"\t\t\t\t\t}else{\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Error: \\\"+response.status,\\\"error\\\");\\n\"+\"\t\t\t\t\t}\\n\"+\"\t\t\t\t}\\n\"+\"\t\t\t});\\n\"+\"\t\t\thandler.openIframe();\\n\"+\"\t\t}\\n\"+\"\t</script>\\n\"+\"\t<script type=\\\"text/javascript\\\" src=\\\"https://js.paystack.co/v1/inline.js\\\"></script>\\n\"+\"</script>\\n\"+\"</body>\\n\"+\"</html>\\n\"+\"\t\");\n //BA.debugLineNum = 83;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public IIcon method_2448(int var1, int var2) {\r\n String[] var3 = class_752.method_4253();\r\n int var10000 = var1;\r\n if(var3 != null) {\r\n if(var1 == 1) {\r\n return this.field_2129;\r\n }\r\n\r\n var10000 = var1;\r\n }\r\n\r\n return var10000 == 0?class_1192.field_6028.getBlockTextureFromSide(var1):this.field_2010;\r\n }",
"private void m17130I() {\n int i;\n int i2;\n boolean F = m17127F();\n if (F && this.f15655k0 == C2470a.MY_PROFILE) {\n i2 = 2131231288;\n i = 2131231293;\n } else if (F) {\n i2 = 2131231295;\n i = 2131231302;\n } else {\n C2470a aVar = this.f15655k0;\n if (aVar == C2470a.MY_PROFILE) {\n i2 = 2131231287;\n i = 2131231292;\n } else if (aVar == C2470a.MAP) {\n i2 = 2131231298;\n i = 2131231300;\n } else {\n i2 = 2131231294;\n i = 2131231301;\n }\n }\n this.f15641W.setBackgroundResource(i2);\n this.f15642X.setImageResource(i);\n }",
"public static void debugInfo() { throw Extensions.todo(); }",
"public Sniffer() { \n initComponents(); \n setLocationRelativeTo(getRootPane());\n setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(\"/views/images/sam_icon.png\")));\n }",
"public static void normalDebug(){\n enableVerbos = false;\n }",
"public void debug() {\n\n }",
"protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }",
"private void setIcons() {\r\n \t\r\n \tbackground = new ImageIcon(\"images/image_mainmenu.png\").getImage();\r\n \tstart = new ImageIcon(\"images/button_start.png\");\r\n \thowto = new ImageIcon(\"images/button_howtoplay.png\");\r\n \toptions = new ImageIcon(\"images/button_options.png\");\r\n \tlboards = new ImageIcon(\"images/button_lboards.png\");\r\n \texit = new ImageIcon(\"images/button_exit.png\");\t\r\n }",
"public void iconSetup(){\r\n chessboard.addRedIcon(\"Assets/PlusR.png\");\r\n chessboard.addRedIcon(\"Assets/TriangleR.png\");\r\n chessboard.addRedIcon(\"Assets/ChevronR.png\");\r\n chessboard.addRedIcon(\"Assets/SunR.png\"); \r\n chessboard.addRedIcon(\"Assets/ArrowR.png\");\r\n \r\n chessboard.addBlueIcon(\"Assets/PlusB.png\");\r\n chessboard.addBlueIcon(\"Assets/TriangleB.png\");\r\n chessboard.addBlueIcon(\"Assets/ChevronB.png\");\r\n chessboard.addBlueIcon(\"Assets/SunB.png\");\r\n chessboard.addBlueIcon(\"Assets/ArrowB.png\");\r\n }",
"public final void mo3386x() {\n Drawable drawable;\n Toolbar toolbar;\n if ((this.f2803b & 4) != 0) {\n toolbar = this.f2802a;\n drawable = this.f2808g;\n if (drawable == null) {\n drawable = this.f2817p;\n }\n } else {\n toolbar = this.f2802a;\n drawable = null;\n }\n toolbar.setNavigationIcon(drawable);\n }",
"private void m17129H() {\n int i;\n boolean z = this.f15653i0 > 0;\n int i2 = 2131231283;\n if (z && this.f15655k0 == C2470a.MAP) {\n i = 2131231288;\n if (!this.f15652h0) {\n i2 = 2131231285;\n }\n } else if (this.f15655k0 == C2470a.MAP) {\n i = 2131231291;\n i2 = this.f15652h0 ? 2131231284 : 2131231286;\n } else if (z) {\n i = 2131231295;\n } else {\n i = 2131231294;\n i2 = 2131231282;\n }\n this.f15639U.setBackgroundResource(i);\n this.f15640V.setImageResource(i2);\n if (this.f15655k0 != C2470a.MAP || !z || !this.f15652h0) {\n this.f15650f0.setVisibility(8);\n this.f15640V.setVisibility(0);\n return;\n }\n this.f15650f0.setVisibility(0);\n TextView textView = this.f15650f0;\n textView.setText(m17135b(textView.getContext()));\n this.f15640V.setVisibility(8);\n }",
"public abstract void mo115901b(IUiManagr eVar);",
"public void mo23813b() {\n }",
"public interface ImageConstants {\n\n\tpublic String SLIPS_UI_BUTTON_IMG=\"/images/Slips_Active.gif\";\n//\n//\tpublic String JACKPOT_UI_BUTTON_IMG=\"/images/Jackpot_Active.gif\";\n//\n//\tpublic String VOUCHER_UI_BUTTON_IMG=\"/images/Voucher_Active.gif\";\n//\n//\tpublic String PENDING_BUTTON_IMG=\"/images/Pending_Active.png\";\n//\n//\tpublic String MANUAL_BUTTON_IMG=\"/images/Manual_Active.png\";\n//\t\n//\tpublic String PRINTER_BUTTON_IMG=\"/images/Printer_Active.png\";\n//\n//\tpublic String KEYBOARD_BUTTON_IMG=\"/images/KeyboardIcon.png\";\n//\n//\tpublic String LOGOUT_BUTTON_IMG=\"/images/LogoutIcon.png\";\n//\n//\tpublic String EXIT_BUTTON_IMG=\"/images/Exit_Active.png\";\n//\t\n//\tpublic String JACKPOT_UI_TEXT_IMAGE=\"/images/Jackpot_UI_Text_Image.png\";\n//\t\n//\tpublic String JACKPOT_UI_TEXT=\"/images/Jackpot_UI_Text_New.png\";\n//\t\n//\tpublic String TICK=\"/images/Tick.png\";\n\t\n\tpublic String CROSS=\"/images/Cross.png\";\n//\t\n//\tpublic String PREVIOUS_PAGE_ARROW=\"/images/Previous_Page_Arrow.png\";\n//\t\n//\tpublic String NEXT_PAGE_ARROW=\"/images/Next_Page_Arrow.png\";\n//\t\n\tpublic String IMAGE_S_TOUCH_SCREEN_PREV_ARROW = \"/images/S_Previous.png\";\n//\t\n\tpublic String IMAGE_S_TOUCH_SCREEN_NEXT_ARROW = \"/images/S_Next.png\";\n//\t\t\n\tpublic String DISPLAY_PREVIOUS_ARROW=\"/images/Display_Previous_Page_Arrow.png\";\n//\t\n\tpublic String DISPLAY_NEXT_ARROW=\"/images/Display_Next_Page_Arrow.png\";\n\t\n//\tpublic String TO_FIRST_PAGE_BUTTON_IMG=\"/images/To_First_Page_Arrow.png\";\n//\t\n//\tpublic String TO_LAST_PAGE_BUTTON_IMG=\"/images/To_Last_Page_Arrow.png\";\n//\t\n//\tpublic String MAIN_FILL_ACTIVE=\"/images/S_Fill_Active.png\";\n//\t\n//\tpublic String PENDING_FILL_ACTIVE=\"/images/S_PendingFill_Active.png\";\n//\t\n//\tpublic String MANUAL_FILL_ACTIVE=\"/images/S_ManualFill_Active.png\";\n//\t\n//\tpublic String AREA_FILL_ACTIVE=\"/images/S_ZoneFill_Active.png\";\n//\t\n//\tpublic String BLEED_ACTIVE=\"/images/S_Bleed_Active.png\";\n\t\n\t//public String MAIN_FILL_INACTIVE=\"/images/S_Fill_Inactive.png\";\n\t\n\t//public String PENDING_FILL_INACTIVE=\"/images/S_PendingFill_Inactive.png\";\n\t\n\t//public String MANUAL_FILL_INACTIVE=\"/images/S_ManualFill_Inactive.png\";\n\t\n\t//public String AREA_FILL_INACTIVE=\"/images/ZoneFill_Inactive.png\";\n\t\n\t//public String BLEED_INACTIVE=\"/images/S_Bleed_Inactive.png\";\n\t\n\t//public String BEEF_INACTIVE=\"/images/S_Beef_Inactive.png\";\n\t\n\t//public String REPORT_INACTIVE=\"/images/S_Report_Inactive.png\";\n\t\n\t//public String AREA_FILL_DISABLED = \"/images/S_ZoneFill_Disabled.png\";\n\t\t\n//\tpublic String PENDING_FILL_DISABLED = \"/images/S_PendingFill_Disabled.png\";\n//\t\n//\tpublic String MAIN_FILL_DISABLED = \"/images/S_Fill_Disabled.png\";\n//\t\n//\tpublic String MANUAL_FILL_DISABLED = \"/images/S_ManualFill_Disabled.png\";\n//\t\n//\tpublic String DISPLAY_DISABLED = \"/images/S_Display_Disabled.png\";\n\t\n//\tpublic String BLEED_DISABLED = \"/images/S_Bleed_Disabled.png\";\n\n//\tpublic String CANCEL_BUTTON=\"/images/Cancel.png\";\n//\t\n//\tpublic String SLIPS_UI_IMG=\"/images/Slips_UI_Image.png\";\n//\t\n//\tpublic String SLIPS_UI_TEXT_IMG=\"/images/Slips_UI_Text.png\";\n\t\n//\tpublic String VOID_INACTIVE=\"/images/S_Void_Inactive.png\";\n\t\n//\tpublic String REPRINT_INACTIVE=\"/images/S_Reprint_Inactive.png\";\n\n//\tpublic String DISPLAY_ACTIVE=\"/images/S_Display_Active.png\";\n//\t\n//\tpublic String DISPLAY_INACTIVE=\"/images/S_Display_Inactive.png\";\n//\t\n//\tpublic String FOOTER_BACKGROUND=\"/images/FooterBG.png\";\n//\t\n//\tpublic String HOME_ICON=\"/images/HomeIcon.png\";\n//\t\n//\tpublic String SLIP_MODULE=\"/images/SlipsTab.png\";\n//\t\n//\tpublic String BALLY_LOGO=\"/images/BallyLogo_32x32.png\";\n//\t\n//\tpublic String PENDING_INACTIVE_BUTTON_IMG=\"/images/S_PendingFill_Inactive.png\";\n//\n//\tpublic String MANUAL_INACTIVE_BUTTON_IMG=\"/images/S_ManualFill_Inactive.png\";\n//\t\n\t\n//\tpublic String BLEED_INACTIVE_BUTTON_IMG=\"/images/S_Bleed_Inactive.png\";\n\n\t\n//\tpublic String DISPLAY_INACTIVE_BUTTON_IMG=\"/images/S_Display_Inactive.png\";\n\n//\tpublic String MODULE_LOGO=\"/images/SlipIcon.png\";\n\n\tpublic String RADIO_BUTTON_IMAGE=\"/images/RadioButton_Selected.png\";\n\t\n\t//FOR LARGER RESOLUTIONS\n\t\n\t//ACTIVE\n\tpublic String BEEF_ACTIVE=\"/images/touchscreen/bluetheme/Dispute_Active.png\";\n\t\n\tpublic String VOID_ACTIVE=\"/images/touchscreen/bluetheme/Void_Active.png\";\n\t\n\tpublic String REPRINT_ACTIVE=\"/images/touchscreen/bluetheme/Reprint_Active.png\";\n\t\n\tpublic String REPORT_ACTIVE=\"/images/touchscreen/bluetheme/Reports_Active.png\";\n\t\n\t//INACTIVE\n\tpublic String BEEF_INACTIVE_BUTTON_IMG=\"/images/touchscreen/bluetheme/Dispute_Inactive.png\";\n\t\n\tpublic String VOID_INACTIVE_BUTTON_IMG=\"/images/touchscreen/bluetheme/Void_Inactive.png\";\n\n\tpublic String REPRINT_INACTIVE_BUTTON_IMG=\"/images/touchscreen/bluetheme/Reprint_Inactive.png\";\n\n\tpublic String REPORT_INACTIVE_BUTTON_IMG=\"/images/touchscreen/bluetheme/Reports_Inactive.png\";\n\t\n\t//DISABLED\n\tpublic String BEEF_DISABLED = \"/images/touchscreen/bluetheme/Dispute_Disabled.png\";\n\t\n\tpublic String VOID_DISABLED = \"/images/touchscreen/bluetheme/Void_Disabled.png\";\n\t\n\tpublic String REPRINT_DISABLED = \"/images/touchscreen/bluetheme/Reprint_Disabled.png\";\n\t\n\tpublic String REPORT_DISABLED = \"/images/touchscreen/bluetheme/Reports_Disabled.png\";\n\t\n\t// Slip Images for 800*600 Resolution\n\t\n\tpublic String SMALL_RESOLUTION_BEEF_ACTIVE=\"/images/touchscreen/bluetheme/Dispute_Active_Small.png\";//\"/images/J_Beef_Active.png\";\n\t\n\tpublic String SMALL_RESOLUTION_VOID_ACTIVE=\"/images/touchscreen/bluetheme/Void_Active_Small.png\";//\"/images/J_Void_Active.png\";\n\n\tpublic String SMALL_RESOLUTION_REPRINT_ACTIVE=\"/images/touchscreen/bluetheme/Reprint_Active_Small.png\";//\"/images/J_Reprint_Active.png\";\n\n\tpublic String SMALL_RESOLUTION_REPORT_ACTIVE=\"/images/touchscreen/bluetheme/Reports_Active_Small.png\";//\"/images/J_Report_Active.png\";\n\n\t\n\tpublic String SMALL_RESOLUTION_BEEF_INACTIVE=\"/images/touchscreen/bluetheme/Dispute_Inactive_Small.png\";//\"/images/J_Beef_Inactive.png\";\n\n\tpublic String SMALL_RESOLUTION_VOID_INACTIVE_BUTTON_IMG=\"/images/touchscreen/bluetheme/Void_Inactive_Small.png\";//\"/images/J_Void_Inactive.png\";\n\n\tpublic String SMALL_RESOLUTION_REPRINT_INACTIVE_BUTTON_IMG=\"/images/touchscreen/bluetheme/Reprint_Inactive_Small.png\";//\"/images/J_Reprint_Inactive.png\";\n\n\tpublic String SMALL_RESOLUTION_REPORT_INACTIVE=\"/images/touchscreen/bluetheme/Reports_Inactive_Small.png\";//\"/images/J_Report_Inactive.png\";\n\n\t\n\tpublic String SMALL_RESOLUTION_BEEF_DISABLED = \"/images/touchscreen/bluetheme/Dispute_Disabled_Small.png\";\n\n\tpublic String SMALL_RESOLUTION_VOID_DISABLED = \"/images/touchscreen/bluetheme/Void_Disabled_Small.png\";\n\n\tpublic String SMALL_RESOLUTION_REPRINT_DISABLED = \"/images/touchscreen/bluetheme/Reprint_Disabled_Small.png\";\n\n\tpublic String SMALL_RESOLUTION_REPORT_DISABLED = \"/images/touchscreen/bluetheme/Reports_Disabled_Small.png\";\n\t\n\t\n\n\tpublic String SMALL_RESOLUTION_RADIO_BUTTON_IMAGE=\"/images/Small_RadioButton_Selected.png\";\n\n\t\n\t\n\t\n}",
"public void mo115190b() {\n }",
"private GUIMain() {\n\t}",
"public void mo21779D() {\n }",
"public int getIconImageNumber(){return iconImageNumber;}",
"public void\r DisplayIcon(CType display_context, int x, int y, int icon_number);",
"public interface GlobalConstants {\n\n int DEFAULT_BITMAP_WIDTH = 200;\n int DEFAULT_BITMAP_HEIGHT = 200;\n\n String KEY_SCALING_VALUE = \"scalingValue\";\n String KEY_DIALOG_TITLE = \"dialogTitle\";\n String KEY_DIALOG_BACKGROUND_COLOUR = \"dialogBackgroundColour\";\n String KEY_DIALOG_TITLE_TEXT_COLOUR = \"dialogTitleTextColour\";\n String KEY_DIALOG_BUTTON_TEXT_COLOUR = \"dialogButtonTextColour\";\n String KEY_BITMAP_HEIGHT = \"bitmapHeight\";\n String KEY_BITMAP_WIDTH = \"bitmapWidth\";\n String KEY_DIRECTORY_NAME = \"directoryName\";\n\n String FORWARD_SLASH = \"/\";\n String HASH_SYMBOL = \"#\";\n String EXTENSION_JPG = \".jpg\";\n String EXTENSION_JPEG = \".jpeg\";\n String EXTENSION_PNG = \".png\";\n\n int DEFAULT_SCALING_VALUE = 300;\n String DEFAULT_DIALOG_TITLE = \"Choose image from:\";\n String DEFAULT_DIRECTORY_NAME = \"pik-a-pic\";\n int DEFAULT_BACKGROUND_COLOR = Color.parseColor(\"#FFFFFF\");\n int DEFAULT_DIALOG_TITLE_TEXT_COLOR = Color.parseColor(\"#787878\");\n int DEFAULT_DIALOG_BUTTON_TEXT_COLOR = Color.parseColor(\"#0C9B8E\");\n}",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"public static String _btnfrasco_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 126;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Ciclo\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Ciclo\",mostCurrent.activityBA);\n //BA.debugLineNum = 128;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 130;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public void mo21782G() {\n }",
"public void drawLoadMenu(){\n implementation.devDrawLoadMenu();\n }",
"public void method_9214(IIcon var1, boolean var2, boolean var3) {\r\n super();\r\n this.field_8705 = var1;\r\n this.field_8706 = var2;\r\n this.field_8707 = var3;\r\n }",
"static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }",
"private Globals() {}",
"public void m23075a() {\n }",
"private Frame3() {\n\t}",
"public static void bi() {\n\t}",
"private void DBScreenShot() {\n\t\tThread initThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tlbIm2.setIcon(new ImageIcon(dbImages.get(currentDBFrameNum)));\n\t\t\t}\n\t\t};\n\t\tinitThread.start();\n\t}",
"public static String _butpatas_click() throws Exception{\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 85;BA.debugLine=\"butColor.Visible = False\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 87;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 88;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 89;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 91;BA.debugLine=\"panelPopUps_1.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_1.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 92;BA.debugLine=\"panelPopUps_1.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_1.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 94;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"Se pueden ver rayas\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"Se pueden ver rayas blancas en sus patas\"));\n //BA.debugLineNum = 95;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets,\\\"mosq\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_Grande.png\").getObject()));\n //BA.debugLineNum = 96;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 97;BA.debugLine=\"Activity.AddView(panelPopUps_1, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_1.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 98;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public void mo21781F() {\n }",
"void mo98970a(C29296g gVar);",
"public void init() {\n\t\tbg = new MyImg(\"gamepage/endgame/bg.png\");\n\t\tbut0 = new MyImg(\"paygame/qdbut.png\");\n\t\tbut1 = new MyImg(\"paygame/qxbut.png\");\n\t}",
"public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"public static String _butpaso1_click() throws Exception{\nif (mostCurrent._imgmosquito.getVisible()==anywheresoftware.b4a.keywords.Common.True) { \n //BA.debugLineNum = 134;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 135;BA.debugLine=\"TimerAnimacion.Initialize(\\\"TimerAnimacion\\\", 10)\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.Initialize(processBA,\"TimerAnimacion\",(long) (10));\n //BA.debugLineNum = 136;BA.debugLine=\"TimerAnimacion.Enabled = True\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.setEnabled(anywheresoftware.b4a.keywords.Common.True);\n }else {\n //BA.debugLineNum = 138;BA.debugLine=\"imgMosquito1.Left = -60dip\";\nmostCurrent._imgmosquito1.setLeft((int) (-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (60))));\n //BA.debugLineNum = 139;BA.debugLine=\"imgMosquito1.Top = 50dip\";\nmostCurrent._imgmosquito1.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)));\n //BA.debugLineNum = 140;BA.debugLine=\"imgMosquito1.Visible = True\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 141;BA.debugLine=\"TimerAnimacionEntrada.Initialize(\\\"TimerAnimacion\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.Initialize(processBA,\"TimerAnimacion_Entrada\",(long) (10));\n //BA.debugLineNum = 142;BA.debugLine=\"TimerAnimacionEntrada.Enabled = True\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.setEnabled(anywheresoftware.b4a.keywords.Common.True);\n };\n //BA.debugLineNum = 149;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"void dumpIR_debug(CodeGenEnv cenv){\n try {\n\n System.out.println(\"--- dump \" + class_.name.str + \"--- IR ----\");\n System.out.println(\"struct_typeRef: \");Thread.sleep(10);\n cenv.DumpIR( struct_typeRef );\n\n\n\n System.out.println(\"\\n---constructor: \");Thread.sleep(10);\n cenv.DumpIR(constructorFun);\n\n System.out.println(\"constructor initializer: \");Thread.sleep(10);\n cenv.DumpIR(constructor_initval_fun);\n\n System.out.println(\"\\n----class method: \");\n for (var i:classMethod.members){\n System.out.println(\"method: \" + i.funSymbol.str);Thread.sleep(10);\n cenv.DumpIR(i.funRef);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public final void mo74760a(C29296g gVar, int i) {\n }",
"public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }",
"static /* synthetic */ void m7142g(AuthActivity authActivity) {\n C1636a aVar = authActivity.f7134e;\n if (aVar != null) {\n aVar.mo14510b();\n }\n authActivity.f7134e = null;\n }",
"public void registerIcons(IconRegister var1)\n {\n this.blockIcon = var1.registerIcon(\"Aether:Aether Portal\");\n }",
"public void drawDebugInfo() {\n\n\t\t// Draw our home position.\n\t\tbwapi.drawText(new Point(5,0), \"Our home position: \"+String.valueOf(homePositionX)+\",\"+String.valueOf(homePositionY), true);\n\t\t\n\t\t// Draw circles over workers (blue if they're gathering minerals, green if gas, white if inactive)\n\t\tfor (Unit u : bwapi.getMyUnits()) {\n\t\t\tif (u.isGatheringMinerals()) \n\t\t\t\tbwapi.drawCircle(u.getX(), u.getY(), 12, BWColor.BLUE, false, false);\n\t\t\telse if (u.isGatheringGas())\n\t\t\t\tbwapi.drawCircle(u.getX(), u.getY(), 12, BWColor.GREEN, false, false);\n\t\t\telse if (u.getTypeID() == UnitTypes.Protoss_Probe.ordinal() && u.isIdle())\n\t\t\t\tbwapi.drawCircle(u.getX(), u.getY(), 12, BWColor.WHITE, false, false);\n\t\t\t\t\n\t\t}\n\t\t\n\t}",
"private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }",
"@Override\r\npublic void showImagetoUI(Bitmap bitmap) {\n\t\r\n}"
]
| [
"0.69283795",
"0.65326416",
"0.6400401",
"0.6229679",
"0.6144756",
"0.61426854",
"0.6111996",
"0.60626906",
"0.58290267",
"0.5826658",
"0.5795791",
"0.57781553",
"0.575903",
"0.57416654",
"0.57415235",
"0.5683153",
"0.56670964",
"0.5650977",
"0.562631",
"0.5606145",
"0.55426776",
"0.5542216",
"0.55284303",
"0.55118066",
"0.55043733",
"0.5497653",
"0.5481108",
"0.5474165",
"0.5468426",
"0.5449691",
"0.54489034",
"0.54086936",
"0.5405428",
"0.5397953",
"0.5382408",
"0.5377653",
"0.5366972",
"0.53595656",
"0.5346369",
"0.5341384",
"0.5318024",
"0.53032357",
"0.52899796",
"0.52807665",
"0.5269572",
"0.5267261",
"0.5239594",
"0.5233062",
"0.52123755",
"0.5210322",
"0.5201056",
"0.51958424",
"0.5185558",
"0.51766205",
"0.5173889",
"0.517043",
"0.5167013",
"0.5162883",
"0.5153135",
"0.5147564",
"0.5147546",
"0.5147523",
"0.5141172",
"0.5136835",
"0.51362675",
"0.51357424",
"0.5134319",
"0.51339936",
"0.51271254",
"0.51207554",
"0.5116937",
"0.511615",
"0.5113025",
"0.51085997",
"0.5097482",
"0.5092097",
"0.5091799",
"0.5085707",
"0.508438",
"0.5080651",
"0.5078354",
"0.5051622",
"0.50401926",
"0.50379145",
"0.5037636",
"0.5034387",
"0.5020778",
"0.50205207",
"0.5010438",
"0.5005121",
"0.50048536",
"0.50009495",
"0.5000252",
"0.49860284",
"0.49847794",
"0.49847168",
"0.49838394",
"0.49772456",
"0.49731025",
"0.4972501"
]
| 0.5717854 | 15 |
BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals"; BA.debugLineNum = 11;BA.debugLine="Public Device As Phone"; | public static RemoteObject _process_globals() throws Exception{
requests3._device = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");
//BA.debugLineNum = 13;BA.debugLine="Private TileSource As String";
requests3._tilesource = RemoteObject.createImmutable("");
//BA.debugLineNum = 14;BA.debugLine="Private ZoomLevel As Int";
requests3._zoomlevel = RemoteObject.createImmutable(0);
//BA.debugLineNum = 15;BA.debugLine="Private Markers As List";
requests3._markers = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
//BA.debugLineNum = 16;BA.debugLine="Private MapFirstTime As Boolean";
requests3._mapfirsttime = RemoteObject.createImmutable(false);
//BA.debugLineNum = 18;BA.debugLine="Private MyPositionLat, MyPositionLon As String";
requests3._mypositionlat = RemoteObject.createImmutable("");
requests3._mypositionlon = RemoteObject.createImmutable("");
//BA.debugLineNum = 19;BA.debugLine="Private CurrentTabPage As Int = 0";
requests3._currenttabpage = BA.numberCast(int.class, 0);
//BA.debugLineNum = 20;BA.debugLine="Private InfoDataWindows As Boolean = False";
requests3._infodatawindows = requests3.mostCurrent.__c.getField(true,"False");
//BA.debugLineNum = 21;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}",
"public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 11;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _class_globals() throws Exception{\n_nativeme = new anywheresoftware.b4j.object.JavaObject();\n //BA.debugLineNum = 7;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }",
"public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static String _registerbutt_click() throws Exception{\n_inputregis();\n //BA.debugLineNum = 104;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"static void debug(boolean b) {\n ProcessRunnerImpl.setGlobalDebug(b);\n }",
"public void debug() {\n\n }",
"private void debugProgram(AbsoluteAddress location, BPState curState, FileProcess fileState, FileProcess bkFile) {\n\t\tString fileName = Program.getProgram().getFileName();\n\t\tif (location != null && (location.toString().contains(\"FFFFFFFFF\")\n\t\t// ******************************************\n\t\t// Virus.Win32.HLLO.Momac.a\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLO.Momac.a\") && (location.toString().contains(\"40130c\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Atak.e\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Atak.e\") && (location.toString().contains(\"404cf0\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// Virus.Win32.ZMist\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.ZMist\") && (location.toString().contains(\"402d01\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_pespin.exe\n\t\t\t\t|| (fileName.equals(\"api_test_pespin.exe\") && (location.toString().contains(\"40669e\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_yoda.exe\n\t\t\t\t|| (fileName.equals(\"api_test_yoda.exe\") && (location.toString().contains(\"4045fb\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_vmprotect.exe\n\t\t\t\t|| (fileName.equals(\"api_test_vmprotect.exe\") && (\n\t\t\t\t// location.toString().contains(\"4c11b0\")\n\t\t\t\tlocation.toString().contains(\"4b9da5\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_yc1.2.exe\n\t\t\t\t|| (fileName.equals(\"api_test_v2.3_lvl1.exe\") && \n\t\t\t\t(location.toString().contains(\"00000000001\")\n\t\t\t\t|| location.toString().contains(\"424a41\") // API GetLocalTime\n\t\t\t\t|| location.toString().contains(\"436daf\") // API CreateFile\n\t\t\t\t|| location.toString().contains(\"436ef8\") // API CreateFile\t\t\t\t\n\t\t\t\t|| location.toString().contains(\"436bc7\") // RET\n\t\t\t\t|| location.toString().contains(\"437b16\") // After STI\n\t\t\t\t|| location.toString().contains(\"43ce7c\") // After STI \n\t\t\t\t|| location.toString().contains(\"43f722\") // API GetVersionExA\n\t\t\t\t|| location.toString().contains(\"43d397\") // API GetCommandLine\t\t\t\t\n\t\t\t\t\n\t\t\t\t|| location.toString().contains(\"44228a\") // Target\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_aspack.exe\n\t\t\t\t|| (fileName.equals(\"api_test_aspack.exe\") && (location.toString().contains(\"4043c2\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_aspack.exe\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Cabanas.2999\") && (location.toString().contains(\"40497b\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Apbost.c\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Apbost.c\") && (location.toString().contains(\"4046e8\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t// ******************************************\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Navidad.b\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Navidad.b\") && \n\t\t\t\t\t\t(location.toString().contains(\"409239\")\n\t\t\t\t|| location.toString().contains(\"409227\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Adson.1559\") && \n\t\t\t\t\t\t(location.toString().contains(\"4094b3\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLP.Delf.d\") && \n\t\t\t\t\t\t(location.toString().contains(\"401324\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLC.Asive\") && \n\t\t\t\t(location.toString().contains(\"401130\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\n\t\t// Virus.Win32.Aztec.01\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Aztec.01\") && \n\t\t\t\t(location.toString().contains(\"40134e\")\n\t\t\t\t|| location.toString().contains(\"401312\")\n\t\t\t\t|| location.toString().contains(\"40106c\")\n\t\t\t\t)))) {\n\t\t\t//if (curState.getEnvironement().getRegister().getRegisterValue(\"eax\").toString().equals(\"7c800c00\"))\t\t\t\n\t\t\tbackupState(curState, fileState);\n\t\t\t//backupStateAll(curState, bkFile);\n\t\t\t//program.generageCFG(program.getAbsolutePathFile() + \"_test\");\n\t\t\t//program.generageCFG(\"/asm/cfg/\" + program.getFileName() + \"_test\");\n\t\t\tSystem.out.println(\"Debug at:\" + location.toString());\n\t\t}\n\t\t/*\n\t\t * if (location != null && location.toString().contains(\"0040481b\") &&\n\t\t * Program.getProgram().getFileName()\n\t\t * .equals(\"Virus.Win32.Cabanas.2999\")) { // Value ecx =\n\t\t * env.getRegister().getRegisterValue(\"ecx\"); String s1 =\n\t\t * curState.getEnvironement().getMemory() .getText(this, 4215362, 650);\n\t\t * System.out.println(\"Decrypted String: \" + s1); }\n\t\t */\n\t}",
"public static String _showloading(String _msg) throws Exception{\nanywheresoftware.b4a.keywords.Common.ProgressDialogShow2(mostCurrent.activityBA,BA.ObjectToCharSequence(_msg),anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 66;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _login_click() throws Exception{\n_login();\n //BA.debugLineNum = 155;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public void testDebugNoModifications() throws Exception {\n startTest();\n openFile(\"debug.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debug.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n\n openFile(\"linebp.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebp.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n setLineBreakpoint(eo, \"if (action === \\\"build\\\") {\");\n setLineBreakpoint(eo, \"var d = new Date();\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debug.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n VariablesOperator vo = new VariablesOperator(\"Variables\");\n\n assertEquals(\"Unexpected file opened at breakpoint\", \"debug.html\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 14, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"1\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebp.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 4, currentFile.getLineNumber());\n assertEquals(\"Step variable is unexpected\", \"2\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n evt.waitNoEvent(500);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n assertEquals(\"Debugger stopped at wrong line\", 7, currentFile.getLineNumber());\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"3\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n assertEquals(\"Debugger stopped at wrong line\", 15, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"4\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n assertEquals(\"Debugger stopped at wrong line\", 17, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"5\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepIntoAction().performMenu();\n new StepIntoAction().performMenu();\n evt.waitNoEvent(1000);\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n if(GeneralHTMLProject.inEmbeddedBrowser){ // embedded browser stops on line with function(){\n assertEquals(\"Step variable is unexpected\", \"5\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n }else{\n assertEquals(\"Step variable is unexpected\", \"6\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value); \n }\n\n endTest();\n }",
"public String _setuser(b4a.HotelAppTP.types._user _u) throws Exception{\n_types._currentuser.username = _u.username;\n //BA.debugLineNum = 168;BA.debugLine=\"Types.currentuser.password = u.password\";\n_types._currentuser.password = _u.password;\n //BA.debugLineNum = 169;BA.debugLine=\"Types.currentuser.available = u.available\";\n_types._currentuser.available = _u.available;\n //BA.debugLineNum = 170;BA.debugLine=\"Types.currentuser.ID = u.ID\";\n_types._currentuser.ID = _u.ID;\n //BA.debugLineNum = 171;BA.debugLine=\"Types.currentuser.TypeOfWorker = u.TypeOfWorker\";\n_types._currentuser.TypeOfWorker = _u.TypeOfWorker;\n //BA.debugLineNum = 172;BA.debugLine=\"Types.currentuser.CurrentTaskID = u.CurrentTaskID\";\n_types._currentuser.CurrentTaskID = _u.CurrentTaskID;\n //BA.debugLineNum = 173;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"void debug(String a, String b) {\n\t\t}",
"public static String _globals() throws Exception{\nmostCurrent._nameet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Private passET As EditText\";\nmostCurrent._passet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private phoneET As EditText\";\nmostCurrent._phoneet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Private alamatET As EditText\";\nmostCurrent._alamatet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private hobiET As EditText\";\nmostCurrent._hobiet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private takeSelfie As Button\";\nmostCurrent._takeselfie = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private ImageView1 As ImageView\";\nmostCurrent._imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private registerButt As Button\";\nmostCurrent._registerbutt = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private emailET As EditText\";\nmostCurrent._emailet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"void setDebugPort(Integer debugPort);",
"public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}",
"private static void printDebug(String s)\n {\n }",
"private void appendDebugOptions(List<String> optList) throws ProcessCreationException {\n String debugPortString = instance.getProperty(PayaraModule.DEBUG_PORT);\n String debugTransport = \"dt_socket\"; // NOI18N\n if (\"true\".equals(instance.getProperty(PayaraModule.USE_SHARED_MEM_ATTR))) { // NOI18N\n debugTransport = \"dt_shmem\"; // NOI18N\n } else {\n if (null != debugPortString && debugPortString.trim().length() > 0) {\n int t = Integer.parseInt(debugPortString);\n if (t != 0 && (t < PayaraInstance.LOWEST_USER_PORT\n || t > 65535)) {\n throw new NumberFormatException();\n }\n }\n }\n if (null == debugPortString\n || \"0\".equals(debugPortString) || \"\".equals(debugPortString)) {\n if (\"true\".equals(instance.getProperty(PayaraModule.USE_SHARED_MEM_ATTR))) { // NOI18N\n debugPortString = Integer.toString(Math.abs((instance.getProperty(PayaraModule.PAYARA_FOLDER_ATTR)\n + instance.getDomainsRoot()\n + instance.getProperty(PayaraModule.DOMAIN_NAME_ATTR)).hashCode() + 1));\n } else {\n try {\n debugPortString = selectDebugPort();\n } catch (IOException ioe) {\n throw new ProcessCreationException(ioe,\n \"MSG_START_SERVER_FAILED_INVALIDPORT\", instanceName, debugPortString); //NOI18N\n }\n }\n }\n support.setEnvironmentProperty(PayaraModule.DEBUG_PORT, debugPortString, true);\n StringBuilder opt = new StringBuilder();\n opt.append(\"-agentlib:jdwp=transport=\"); // NOI18N\n opt.append(debugTransport);\n opt.append(\",address=\"); // NOI18N\n opt.append(debugPortString);\n opt.append(\",server=y,suspend=n\"); // NOI18N\n optList.add(opt.toString());\n }",
"public RunMain0() {\n \n//#line 1\nsuper();\n }",
"private void debug(String str) {\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Debugging engine (idekey = \" + getSessionId() + \", port =\" + DLTKDebugPlugin.getDefault().getDbgpService().getPort() + \")\"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}",
"public String _class_globals() throws Exception{\n_msgmodule = new Object();\n //BA.debugLineNum = 10;BA.debugLine=\"Private BackPanel As Panel\";\n_backpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 11;BA.debugLine=\"Private MsgOrientation As String\";\n_msgorientation = \"\";\n //BA.debugLineNum = 12;BA.debugLine=\"Private MsgNumberOfButtons As Int\";\n_msgnumberofbuttons = 0;\n //BA.debugLineNum = 14;BA.debugLine=\"Private mbIcon As ImageView\";\n_mbicon = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Dim Panel As Panel\";\n_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private Shadow As Panel\";\n_shadow = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Dim Title As Label\";\n_title = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private MsgScrollView As ScrollView\";\n_msgscrollview = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Dim Message As Label\";\n_message = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Dim YesButtonPanel As Panel\";\n_yesbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Dim NoButtonPanel As Panel\";\n_nobuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Dim CancelButtonPanel As Panel\";\n_cancelbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Dim YesButtonCaption As Label\";\n_yesbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Dim NoButtonCaption As Label\";\n_nobuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Dim CancelButtonCaption As Label\";\n_cancelbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private MsgBoxEvent As String\";\n_msgboxevent = \"\";\n //BA.debugLineNum = 29;BA.debugLine=\"Dim ButtonSelected As String\";\n_buttonselected = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static void normalDebug(){\n enableVerbos = false;\n }",
"public void continueDebugStep() {\n \tthis.continueDebug = true;\n }",
"private static String callMethodAndLine() {\n\t\tStackTraceElement thisMethodStack = (new Exception()).getStackTrace()[4];\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb\n.append(AT)\n\t\t\t\t.append(thisMethodStack.getClassName() + \".\")\n\t\t\t\t.append(thisMethodStack.getMethodName())\n\t\t\t\t.append(\"(\" + thisMethodStack.getFileName())\n\t\t\t\t.append(\":\" + thisMethodStack.getLineNumber() + \") \");\n\t\treturn sb.toString();\n\t}",
"public void testDebugModifications() throws Exception {\n startTest();\n\n openFile(\"debugMod.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debugMod.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n openFile(\"linebpMod.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebpMod.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n currentFile.setCaretPositionToEndOfLine(3);\n currentFile.insert(\"\\nconsole.log(\\\"1js\\\");\\nconsole.log(\\\"2js\\\");\\nconsole.log(\\\"3js\\\");\");\n// if (LineDebuggerTest.inEmbeddedBrowser) { // workaround for 226022\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 7, currentFile.getLineNumber());\n currentFile.deleteLine(4);\n currentFile.deleteLine(4);\n\n// if (LineDebuggerTest.inEmbeddedBrowser) {\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 5, currentFile.getLineNumber());\n\n\n currentFile.setCaretPositionToEndOfLine(3);\n currentFile.insert(\"\\nconsole.log(\\\"1js\\\");\\nconsole.log(\\\"2js\\\");\\nconsole.log(\\\"3js\\\");\"); \n\n// if (LineDebuggerTest.inEmbeddedBrowser) {\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 8, currentFile.getLineNumber());\n currentFile.close();\n\n endTest();\n }",
"public native void debugStateCapture();",
"public void printForDebug() {\n\t\tif(Globalconstantable.DEBUG)\n\t\t{\n\t\t\tSystem.out.println(this.getSID());\n\t\t\tSystem.out.println(this.getScores());\n\t\t}\n\t}",
"public void print_line(String who, String line) {\n Log.i(\"IncomingSyncHandler\" + who, line);\n }",
"public static String _activity_pause(boolean _userclosed) throws Exception{\nif (_userclosed==anywheresoftware.b4a.keywords.Common.False) { \n //BA.debugLineNum = 49;BA.debugLine=\"Activity.Finish\";\nmostCurrent._activity.Finish();\n };\n //BA.debugLineNum = 51;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _class_globals() throws Exception{\n_wholescreen = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 3;BA.debugLine=\"Dim infoholder As Panel\";\n_infoholder = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 4;BA.debugLine=\"Dim screenimg As ImageView\";\n_screenimg = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 5;BA.debugLine=\"Dim usernamefield As EditText\";\n_usernamefield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 6;BA.debugLine=\"Dim passwordfield As EditText\";\n_passwordfield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 7;BA.debugLine=\"Dim loginbtn As Button\";\n_loginbtn = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 8;BA.debugLine=\"Dim singup As Button\";\n_singup = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Dim myxml As SaxParser\";\n_myxml = new anywheresoftware.b4a.objects.SaxParser();\n //BA.debugLineNum = 12;BA.debugLine=\"Dim usermainscreen As UserInterfaceMainScreen\";\n_usermainscreen = new b4a.HotelAppTP.userinterfacemainscreen();\n //BA.debugLineNum = 14;BA.debugLine=\"Dim LoginJob As HttpJob\";\n_loginjob = new anywheresoftware.b4a.samples.httputils2.httpjob();\n //BA.debugLineNum = 16;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String _class_globals() throws Exception{\n_ws = new anywheresoftware.b4j.object.WebSocket();\r\n //BA.debugLineNum = 5;BA.debugLine=\"Public page As ABMPage\";\r\n_page = new com.ab.abmaterial.ABMPage();\r\n //BA.debugLineNum = 7;BA.debugLine=\"Private theme As ABMTheme\";\r\n_theme = new com.ab.abmaterial.ABMTheme();\r\n //BA.debugLineNum = 9;BA.debugLine=\"Private ABM As ABMaterial 'ignore\";\r\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 11;BA.debugLine=\"Public Name As String = \\\"CompComboPage\\\"\";\r\n_name = \"CompComboPage\";\r\n //BA.debugLineNum = 13;BA.debugLine=\"Private ABMPageId As String = \\\"\\\"\";\r\n_abmpageid = \"\";\r\n //BA.debugLineNum = 16;BA.debugLine=\"Dim myToastId As Int\";\r\n_mytoastid = 0;\r\n //BA.debugLineNum = 17;BA.debugLine=\"Dim combocounter As Int = 4\";\r\n_combocounter = (int) (4);\r\n //BA.debugLineNum = 18;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}",
"public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"regis\",mostCurrent.activityBA);\n //BA.debugLineNum = 31;BA.debugLine=\"Activity.Title = \\\"Register\\\"\";\nmostCurrent._activity.setTitle(BA.ObjectToCharSequence(\"Register\"));\n //BA.debugLineNum = 33;BA.debugLine=\"ImageView1.Visible = False\";\nmostCurrent._imageview1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 35;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static void setDebug(int b) {\n debug = b;\n }",
"public void debug(String comment);",
"public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static RemoteObject _globals() throws Exception{\nrequests3.mostCurrent._icon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.drawable.BitmapDrawable\");\n //BA.debugLineNum = 25;BA.debugLine=\"Private xui As XUI\";\nrequests3.mostCurrent._xui = RemoteObject.createNew (\"anywheresoftware.b4a.objects.B4XViewWrapper.XUI\");\n //BA.debugLineNum = 27;BA.debugLine=\"Private TileSourceSpinner As Spinner\";\nrequests3.mostCurrent._tilesourcespinner = RemoteObject.createNew (\"anywheresoftware.b4a.objects.SpinnerWrapper\");\n //BA.debugLineNum = 29;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 30;BA.debugLine=\"Private FilterStartDate As String\";\nrequests3.mostCurrent._filterstartdate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 31;BA.debugLine=\"Private FilterEndDate As String\";\nrequests3.mostCurrent._filterenddate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 32;BA.debugLine=\"Private FilterTasks As Int = 0\";\nrequests3._filtertasks = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 33;BA.debugLine=\"Private FilterEntity As Int = 0\";\nrequests3._filterentity = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 34;BA.debugLine=\"Private FilterRoute As Int = 0\";\nrequests3._filterroute = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 35;BA.debugLine=\"Private FilterStates As Int = 0\";\nrequests3._filterstates = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 36;BA.debugLine=\"Private FilterTypeRequests As Int = 0\";\nrequests3._filtertyperequests = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 37;BA.debugLine=\"Private Bloco30 As Int = 0\";\nrequests3._bloco30 = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 39;BA.debugLine=\"Private ListTypeRequests As List\";\nrequests3.mostCurrent._listtyperequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 40;BA.debugLine=\"Private ListStates As List\";\nrequests3.mostCurrent._liststates = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 41;BA.debugLine=\"Private ListEntities As List\";\nrequests3.mostCurrent._listentities = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 42;BA.debugLine=\"Private ListTasks As List\";\nrequests3.mostCurrent._listtasks = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 43;BA.debugLine=\"Private ListRoutes As List\";\nrequests3.mostCurrent._listroutes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 45;BA.debugLine=\"Private ButtonUserUnavailable As Button\";\nrequests3.mostCurrent._buttonuserunavailable = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 46;BA.debugLine=\"Private mapUserPosition As Button\";\nrequests3.mostCurrent._mapuserposition = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 47;BA.debugLine=\"Private ColorTabPanel As Panel\";\nrequests3.mostCurrent._colortabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 49;BA.debugLine=\"Private ButtonActionTransport As Button\";\nrequests3.mostCurrent._buttonactiontransport = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 50;BA.debugLine=\"Private ButtonAppAlert As Button\";\nrequests3.mostCurrent._buttonappalert = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 51;BA.debugLine=\"Private ButtonAppNetwork As Button\";\nrequests3.mostCurrent._buttonappnetwork = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 52;BA.debugLine=\"Private LabelAppInfo As Label\";\nrequests3.mostCurrent._labelappinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 53;BA.debugLine=\"Private LabelCopyright As Label\";\nrequests3.mostCurrent._labelcopyright = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 54;BA.debugLine=\"Private LabelDateTime As Label\";\nrequests3.mostCurrent._labeldatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 55;BA.debugLine=\"Private LabelVersion As Label\";\nrequests3.mostCurrent._labelversion = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 56;BA.debugLine=\"Private listsBasePanel As Panel\";\nrequests3.mostCurrent._listsbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 57;BA.debugLine=\"Private listsBottomLine As Panel\";\nrequests3.mostCurrent._listsbottomline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 58;BA.debugLine=\"Private listsBottomPanel As Panel\";\nrequests3.mostCurrent._listsbottompanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 59;BA.debugLine=\"Private listsButtonClose As Button\";\nrequests3.mostCurrent._listsbuttonclose = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 60;BA.debugLine=\"Private listsButtonFilter As Button\";\nrequests3.mostCurrent._listsbuttonfilter = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 61;BA.debugLine=\"Private listsLabelInfo As Label\";\nrequests3.mostCurrent._listslabelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 62;BA.debugLine=\"Private listsTabPanel As TabStrip\";\nrequests3.mostCurrent._liststabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.TabStripViewPager\");\n //BA.debugLineNum = 63;BA.debugLine=\"Private listsTopBar As Panel\";\nrequests3.mostCurrent._liststopbar = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 64;BA.debugLine=\"Private mainLabelOptLists As Label\";\nrequests3.mostCurrent._mainlabeloptlists = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 65;BA.debugLine=\"Private mainLogo As ImageView\";\nrequests3.mostCurrent._mainlogo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 66;BA.debugLine=\"Private mainTopLine As Panel\";\nrequests3.mostCurrent._maintopline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 68;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 69;BA.debugLine=\"Private iDialogReqTypeObject, iDialogReqZone, iDi\";\nrequests3._idialogreqtypeobject = RemoteObject.createImmutable(0);\nrequests3._idialogreqzone = RemoteObject.createImmutable(0);\nrequests3._idialogreqstatus = RemoteObject.createImmutable(0);\nrequests3._idialogreqregion = RemoteObject.createImmutable(0);\nrequests3._idialogreqlocal = RemoteObject.createImmutable(0);\nrequests3._idialogreqwithrequests = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 70;BA.debugLine=\"Private sDialogReqName, sDialogReqAddress, Search\";\nrequests3.mostCurrent._sdialogreqname = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._sdialogreqaddress = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._searchfilter = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 71;BA.debugLine=\"Private RegionsList, TypeObjectsList, LocalsList,\";\nrequests3.mostCurrent._regionslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._typeobjectslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._localslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequestsnottoday = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 72;BA.debugLine=\"Private ItemsCounter As Int = 0\";\nrequests3._itemscounter = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 74;BA.debugLine=\"Private listRequestsButtonMap As Button\";\nrequests3.mostCurrent._listrequestsbuttonmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 75;BA.debugLine=\"Private mapBaseList As Panel\";\nrequests3.mostCurrent._mapbaselist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 76;BA.debugLine=\"Private mapBasePanel As Panel\";\nrequests3.mostCurrent._mapbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 78;BA.debugLine=\"Private mapZoomDown As Button\";\nrequests3.mostCurrent._mapzoomdown = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 79;BA.debugLine=\"Private mapZoomUp As Button\";\nrequests3.mostCurrent._mapzoomup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 80;BA.debugLine=\"Private listRequests As CustomListView 'ExpandedL\";\nrequests3.mostCurrent._listrequests = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 81;BA.debugLine=\"Private listsRequestsMap As CustomListView\";\nrequests3.mostCurrent._listsrequestsmap = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 83;BA.debugLine=\"Private pnlGroupTitle As Panel\";\nrequests3.mostCurrent._pnlgrouptitle = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 84;BA.debugLine=\"Private pnlGroupData As Panel\";\nrequests3.mostCurrent._pnlgroupdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 86;BA.debugLine=\"Private ListItemTodayRequests As Label\";\nrequests3.mostCurrent._listitemtodayrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 87;BA.debugLine=\"Private ListItemReference As Label\";\nrequests3.mostCurrent._listitemreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 88;BA.debugLine=\"Private ListItemDatetime As Label\";\nrequests3.mostCurrent._listitemdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 89;BA.debugLine=\"Private ListItemContact As Label\";\nrequests3.mostCurrent._listitemcontact = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 90;BA.debugLine=\"Private ListItemFullName As Label\";\nrequests3.mostCurrent._listitemfullname = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 91;BA.debugLine=\"Private ListItemStatus As Label\";\nrequests3.mostCurrent._listitemstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 92;BA.debugLine=\"Private listButMap As Button\";\nrequests3.mostCurrent._listbutmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 94;BA.debugLine=\"Private ListItemObject As Label\";\nrequests3.mostCurrent._listitemobject = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 95;BA.debugLine=\"Private ListItemObjectTask As Label\";\nrequests3.mostCurrent._listitemobjecttask = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 96;BA.debugLine=\"Private ListItemObjectExecution As Label\";\nrequests3.mostCurrent._listitemobjectexecution = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 97;BA.debugLine=\"Private listButObjectAction As Button\";\nrequests3.mostCurrent._listbutobjectaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 98;BA.debugLine=\"Private ListItemObjectStatus As Label\";\nrequests3.mostCurrent._listitemobjectstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 99;BA.debugLine=\"Private ListItemObjectStatusIcon As Label\";\nrequests3.mostCurrent._listitemobjectstatusicon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 101;BA.debugLine=\"Private CurrentGroupItem As Int = 0\";\nrequests3._currentgroupitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 102;BA.debugLine=\"Private pnlGroupCurrenIndex As Int\";\nrequests3._pnlgroupcurrenindex = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 103;BA.debugLine=\"Private ClickLabel As Label\";\nrequests3.mostCurrent._clicklabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 105;BA.debugLine=\"Private ShowListPedidosMap As Boolean = False\";\nrequests3._showlistpedidosmap = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 106;BA.debugLine=\"Private EditSearch As EditText\";\nrequests3.mostCurrent._editsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.EditTextWrapper\");\n //BA.debugLineNum = 107;BA.debugLine=\"Private butSearch As Button\";\nrequests3.mostCurrent._butsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 109;BA.debugLine=\"Dim CurrentIndexPanel As Int = -1\";\nrequests3._currentindexpanel = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 110;BA.debugLine=\"Dim CurrentIDPanel As Int = 0\";\nrequests3._currentidpanel = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 112;BA.debugLine=\"Private LabelButtonTitleAction As Label\";\nrequests3.mostCurrent._labelbuttontitleaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 113;BA.debugLine=\"Private LabelReferenciasDescritivos As Label\";\nrequests3.mostCurrent._labelreferenciasdescritivos = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 114;BA.debugLine=\"Private LabelStatus As Label\";\nrequests3.mostCurrent._labelstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 115;BA.debugLine=\"Private RequestsOptionsPopMenu As MenuOnAnyView\";\nrequests3.mostCurrent._requestsoptionspopmenu = RemoteObject.createNew (\"com.jakes.menuonviews.menuonanyview\");\n //BA.debugLineNum = 117;BA.debugLine=\"Private CurrentLineItem As Int = 0\";\nrequests3._currentlineitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 118;BA.debugLine=\"Private TotalLineItems As Int = 0\";\nrequests3._totallineitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 119;BA.debugLine=\"Private ListItemObjectNumber As Label\";\nrequests3.mostCurrent._listitemobjectnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 120;BA.debugLine=\"Private listButMore As Button\";\nrequests3.mostCurrent._listbutmore = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 121;BA.debugLine=\"Private ListItemObjectDateTime As Label\";\nrequests3.mostCurrent._listitemobjectdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 122;BA.debugLine=\"Private ListItemObjectReference As Label\";\nrequests3.mostCurrent._listitemobjectreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 123;BA.debugLine=\"Private pnlGroupDataSub As Panel\";\nrequests3.mostCurrent._pnlgroupdatasub = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 124;BA.debugLine=\"Private pnlGroupDataList As ExpandedListView 'Cus\";\nrequests3.mostCurrent._pnlgroupdatalist = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.expandedlistview\");\n //BA.debugLineNum = 127;BA.debugLine=\"Private CurrentPage As Int\";\nrequests3._currentpage = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 128;BA.debugLine=\"Private Pages As List '= Array(True, False, True,\";\nrequests3.mostCurrent._pages = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 130;BA.debugLine=\"Private listRequestsItem As CustomListView\";\nrequests3.mostCurrent._listrequestsitem = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 131;BA.debugLine=\"Private CLAButtonOptions As Button\";\nrequests3.mostCurrent._clabuttonoptions = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 132;BA.debugLine=\"Private CLAItem_G1 As Label\";\nrequests3.mostCurrent._claitem_g1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 133;BA.debugLine=\"Private CLAItemButton_1 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 134;BA.debugLine=\"Private CLAItemButton_2 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 135;BA.debugLine=\"Private CLAItem_G2 As Label\";\nrequests3.mostCurrent._claitem_g2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 136;BA.debugLine=\"Private CLAItem_G3 As Label\";\nrequests3.mostCurrent._claitem_g3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 137;BA.debugLine=\"Private CLAItem_G4 As Label\";\nrequests3.mostCurrent._claitem_g4 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 138;BA.debugLine=\"Private CLAItem_G5 As Label\";\nrequests3.mostCurrent._claitem_g5 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 139;BA.debugLine=\"Private CLAItem_G6 As Label\";\nrequests3.mostCurrent._claitem_g6 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 140;BA.debugLine=\"Private CLAItem_G7 As Label\";\nrequests3.mostCurrent._claitem_g7 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 141;BA.debugLine=\"Private ListItemType As Label\";\nrequests3.mostCurrent._listitemtype = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 143;BA.debugLine=\"Private ListItem_Notes As Label\";\nrequests3.mostCurrent._listitem_notes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 144;BA.debugLine=\"Private ListItem_Status As Label\";\nrequests3.mostCurrent._listitem_status = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 145;BA.debugLine=\"Private ListItem_Datetime As Label\";\nrequests3.mostCurrent._listitem_datetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 146;BA.debugLine=\"Private ListItem_Entity As Label\";\nrequests3.mostCurrent._listitem_entity = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 147;BA.debugLine=\"Private ListItem_Cloud As Label\";\nrequests3.mostCurrent._listitem_cloud = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 148;BA.debugLine=\"Private listButCompare As Button\";\nrequests3.mostCurrent._listbutcompare = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 149;BA.debugLine=\"Private ListItem_TypeRequest As Label\";\nrequests3.mostCurrent._listitem_typerequest = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 150;BA.debugLine=\"Private listRequestsItemSecond As CustomListView\";\nrequests3.mostCurrent._listrequestsitemsecond = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 151;BA.debugLine=\"Private CLAItemButtonBR_SVR2 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 152;BA.debugLine=\"Private CLAItemButtonBR_SVR2_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 153;BA.debugLine=\"Private CLA_BR_KSVRF2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 154;BA.debugLine=\"Private CLA_BR_KSVRF2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 155;BA.debugLine=\"Private CLA_BR_KSVRI2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 156;BA.debugLine=\"Private CLA_BR_KSVRI2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 157;BA.debugLine=\"Private CLA_BR_KSVRI1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 158;BA.debugLine=\"Private CLA_BR_KSVRI1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 159;BA.debugLine=\"Private CLA_BR_KSVRF1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 160;BA.debugLine=\"Private CLA_BR_KSVRF1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 161;BA.debugLine=\"Private CLAItemButtonBR_SVR1 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 162;BA.debugLine=\"Private CLAItemButtonBR_SVR1_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 163;BA.debugLine=\"Private CLAItemButtonBR_INIT_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_init_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 164;BA.debugLine=\"Private CLAItemButtonBR_INIT As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_init = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 165;BA.debugLine=\"Private CLA_BR_OBS As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_obs = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 166;BA.debugLine=\"Private CLA_BR_OBS_A As Button\";\nrequests3.mostCurrent._cla_br_obs_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 167;BA.debugLine=\"Private CLA_BR_KMI_A As Button\";\nrequests3.mostCurrent._cla_br_kmi_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 168;BA.debugLine=\"Private CLA_BR_KMI As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmi = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 169;BA.debugLine=\"Private CLA_BR_CAR As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_car = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 170;BA.debugLine=\"Private CLA_BR_CAR_A As Button\";\nrequests3.mostCurrent._cla_br_car_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 171;BA.debugLine=\"Private CLA_BR_KMF_A As Button\";\nrequests3.mostCurrent._cla_br_kmf_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 172;BA.debugLine=\"Private CLA_BR_KMF As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmf = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 173;BA.debugLine=\"Private CLA_BR_E1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 174;BA.debugLine=\"Private CLA_BR_S1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 175;BA.debugLine=\"Private CLA_BR_E2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 176;BA.debugLine=\"Private CLA_BR_S2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 177;BA.debugLine=\"Private CLA_BR_E3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 178;BA.debugLine=\"Private CLA_BR_S3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 179;BA.debugLine=\"Private CLAItemButtonBR As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 180;BA.debugLine=\"Private CLAItemButtonBR_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 181;BA.debugLine=\"Private CLAItemButtonX_A As Button\";\nrequests3.mostCurrent._claitembuttonx_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 182;BA.debugLine=\"Private B4XStateButton1 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 183;BA.debugLine=\"Private B4XStateButton2 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 184;BA.debugLine=\"Private B4XStateButton3 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton3 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 185;BA.debugLine=\"Private B4XStateButton4 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton4 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 186;BA.debugLine=\"Private B4XStateButton5 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton5 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 187;BA.debugLine=\"Private B4XStateButton6 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton6 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 188;BA.debugLine=\"Private B4XStateButton7 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton7 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 189;BA.debugLine=\"Private B4XStateButton14 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton14 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 190;BA.debugLine=\"Private B4XStateButton13 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton13 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 191;BA.debugLine=\"Private B4XStateButton21 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton21 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 192;BA.debugLine=\"Private B4XStateButton20 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton20 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 193;BA.debugLine=\"Private B4XStateButton19 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton19 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 194;BA.debugLine=\"Private B4XStateButton12 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton12 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 195;BA.debugLine=\"Private B4XStateButton11 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton11 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 196;BA.debugLine=\"Private B4XStateButton18 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton18 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 197;BA.debugLine=\"Private B4XStateButton17 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton17 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 198;BA.debugLine=\"Private B4XStateButton10 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton10 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 199;BA.debugLine=\"Private B4XStateButton9 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton9 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 200;BA.debugLine=\"Private B4XStateButton16 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton16 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 201;BA.debugLine=\"Private B4XStateButton15 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton15 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 202;BA.debugLine=\"Private B4XStateButton8 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton8 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 203;BA.debugLine=\"Private B4XStateButton22 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton22 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 204;BA.debugLine=\"Private B4XStateButton23 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton23 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 205;BA.debugLine=\"Private B4XStateButton24 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton24 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 206;BA.debugLine=\"Private B4XStateButton25 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton25 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 207;BA.debugLine=\"Private B4XStateButton26 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton26 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 209;BA.debugLine=\"Private VIEW_requests_listview As String = \\\"reque\";\nrequests3.mostCurrent._view_requests_listview = BA.ObjectToString(\"requests_listview\");\n //BA.debugLineNum = 210;BA.debugLine=\"Private VIEW_requests_listviewrequest As String =\";\nrequests3.mostCurrent._view_requests_listviewrequest = BA.ObjectToString(\"requests_listviewrequest\");\n //BA.debugLineNum = 211;BA.debugLine=\"Private VIEW_requests_listviewrequest2 As String\";\nrequests3.mostCurrent._view_requests_listviewrequest2 = BA.ObjectToString(\"requests_listviewrequest2\");\n //BA.debugLineNum = 212;BA.debugLine=\"Private VIEW_requests_mapview As String = \\\"reques\";\nrequests3.mostCurrent._view_requests_mapview = BA.ObjectToString(\"requests_mapview_google\");\n //BA.debugLineNum = 213;BA.debugLine=\"Private ButtonActionPause As Button\";\nrequests3.mostCurrent._buttonactionpause = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 214;BA.debugLine=\"Private CurrentFilter As String = \\\"\\\"\";\nrequests3.mostCurrent._currentfilter = BA.ObjectToString(\"\");\n //BA.debugLineNum = 215;BA.debugLine=\"Private mainActiveUser As Label\";\nrequests3.mostCurrent._mainactiveuser = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 216;BA.debugLine=\"Private gmap As GoogleMap\";\nrequests3.mostCurrent._gmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper\");\n //BA.debugLineNum = 217;BA.debugLine=\"Private mapData As MapFragment\";\nrequests3.mostCurrent._mapdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper\");\n //BA.debugLineNum = 218;BA.debugLine=\"Private mapMarker As Marker\";\nrequests3.mostCurrent._mapmarker = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper\");\n //BA.debugLineNum = 219;BA.debugLine=\"Private listsButtonPull As Button\";\nrequests3.mostCurrent._listsbuttonpull = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 220;BA.debugLine=\"Private listButNote As Button\";\nrequests3.mostCurrent._listbutnote = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 221;BA.debugLine=\"Private butQuickAction As Button\";\nrequests3.mostCurrent._butquickaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 222;BA.debugLine=\"Private ListItem_Favorite As Label\";\nrequests3.mostCurrent._listitem_favorite = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 223;BA.debugLine=\"Private listsButtonFavorites As Button\";\nrequests3.mostCurrent._listsbuttonfavorites = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 224;BA.debugLine=\"Private ListItem_Desc02 As Label\";\nrequests3.mostCurrent._listitem_desc02 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 225;BA.debugLine=\"Private ListItem_Desc01 As Label\";\nrequests3.mostCurrent._listitem_desc01 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 226;BA.debugLine=\"Private ListaPrincipalClickItem As Int = -1\";\nrequests3._listaprincipalclickitem = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 227;BA.debugLine=\"Private ListViewDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 228;BA.debugLine=\"Private ListViewRequestDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewrequestdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 229;BA.debugLine=\"Private ListViewRequest2Device3Panel As Panel\";\nrequests3.mostCurrent._listviewrequest2device3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 230;BA.debugLine=\"Private ListItemClickIndex As Label\";\nrequests3.mostCurrent._listitemclickindex = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 231;BA.debugLine=\"Private ListItem_Desc00 As Label\";\nrequests3.mostCurrent._listitem_desc00 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 232;BA.debugLine=\"Private SubItemImage As ImageView\";\nrequests3.mostCurrent._subitemimage = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 233;BA.debugLine=\"Private LockPanel As Panel\";\nrequests3.mostCurrent._lockpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 235;BA.debugLine=\"Private GRANDACTIVE_INSTANCE As String = \\\"PT20180\";\nrequests3.mostCurrent._grandactive_instance = BA.ObjectToString(\"PT20180913-2105-006\");\n //BA.debugLineNum = 236;BA.debugLine=\"Private LockPanelInfo As Label\";\nrequests3.mostCurrent._lockpanelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 238;BA.debugLine=\"Private current_limit As Int = 0\";\nrequests3._current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 239;BA.debugLine=\"Private current_offset As Int = 100\";\nrequests3._current_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 240;BA.debugLine=\"Private next_current_limit As Int = 0\";\nrequests3._next_current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 241;BA.debugLine=\"Private next_offset As Int = 100\";\nrequests3._next_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 242;BA.debugLine=\"Private CurrentTotalItems As Int = 0\";\nrequests3._currenttotalitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 244;BA.debugLine=\"Private SelectedTagcode As String = \\\"\\\"\";\nrequests3.mostCurrent._selectedtagcode = BA.ObjectToString(\"\");\n //BA.debugLineNum = 245;BA.debugLine=\"Private SelectedRequestData As RequestData\";\nrequests3.mostCurrent._selectedrequestdata = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.types._requestdata\");\n //BA.debugLineNum = 246;BA.debugLine=\"Private ListItemNumber As Label\";\nrequests3.mostCurrent._listitemnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 248;BA.debugLine=\"Private data_Intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._data_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 249;BA.debugLine=\"Private hora_intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._hora_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 250;BA.debugLine=\"Private TaskList2Dup As CustomListView\";\nrequests3.mostCurrent._tasklist2dup = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 251;BA.debugLine=\"Private BotaoDataDup As Button\";\nrequests3.mostCurrent._botaodatadup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 252;BA.debugLine=\"Private BotaoHoraDup As Button\";\nrequests3.mostCurrent._botaohoradup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 253;BA.debugLine=\"Private dupItemCheck As CheckBox\";\nrequests3.mostCurrent._dupitemcheck = RemoteObject.createNew (\"anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper\");\n //BA.debugLineNum = 254;BA.debugLine=\"Private dupItemLabel As Label\";\nrequests3.mostCurrent._dupitemlabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 256;BA.debugLine=\"Private ListITemTechnical As Label\";\nrequests3.mostCurrent._listitemtechnical = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 257;BA.debugLine=\"Private GlobalScanReturn As Boolean\";\nrequests3._globalscanreturn = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 258;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"public void setDebugAddress(final String debugAddress)\n {\n this.debugAddress = debugAddress;\n }",
"private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}",
"public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}",
"public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public SetPCProcess()\n {\n super(\"SetPC\");\n }",
"public void addToDebug(String callingObject, String string) {\n date = java.util.Calendar.getInstance().getTime();\n String currDebugLog = (date+\" : \" +callingObject+ \" : \" + string);\n debugLog.push(currDebugLog);\n System.out.println(currDebugLog);\n }",
"public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public void process() {\n\t\tSystem.out.println(\"snapdragonm 888\");\n\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate static void printDebug(String p) {\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(PREFIX + p);\n\t\t}\n\t}",
"void mo7385d(C1320b bVar, String str) throws RemoteException;",
"public static void enableDebugging(){\n DEBUG = true;\n }",
"public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }",
"void mo7386e(C1320b bVar, String str) throws RemoteException;",
"private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}",
"public synchronized void displayPidInfo(int lineNum)\n {\n dashboard.displayPrintf(\n lineNum, \"%s:Target=%.1f,Input=%.1f,Error=%.1f\", instanceName, setPoint, currInput, currError);\n dashboard.displayPrintf(\n lineNum + 1, \"minOutput=%.1f,Output=%.1f,maxOutput=%.1f\", minOutput, output, maxOutput);\n }",
"void mo7441d(C0933b bVar);",
"@Override\n public void printDebug(String string) {\n if(allActive && active)\n System.out.println(SC + string + R);\n }",
"public String _class_globals() throws Exception{\n_meventname = \"\";\n //BA.debugLineNum = 7;BA.debugLine=\"Private mCallBack As Object 'ignore\";\n_mcallback = new Object();\n //BA.debugLineNum = 8;BA.debugLine=\"Public mBase As B4XView 'ignore\";\n_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Private xui As XUI 'ignore\";\n_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();\n //BA.debugLineNum = 10;BA.debugLine=\"Private cvs As B4XCanvas\";\n_cvs = new anywheresoftware.b4a.objects.B4XCanvas();\n //BA.debugLineNum = 11;BA.debugLine=\"Private mValue As Int = 75\";\n_mvalue = (int) (75);\n //BA.debugLineNum = 12;BA.debugLine=\"Private mMin, mMax As Int\";\n_mmin = 0;\n_mmax = 0;\n //BA.debugLineNum = 13;BA.debugLine=\"Private thumb As B4XBitmap\";\n_thumb = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();\n //BA.debugLineNum = 14;BA.debugLine=\"Private pnl As B4XView\";\n_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Private xlbl As B4XView\";\n_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private CircleRect As B4XRect\";\n_circlerect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();\n //BA.debugLineNum = 17;BA.debugLine=\"Private ValueColor As Int\";\n_valuecolor = 0;\n //BA.debugLineNum = 18;BA.debugLine=\"Private stroke As Int\";\n_stroke = 0;\n //BA.debugLineNum = 19;BA.debugLine=\"Private ThumbSize As Int\";\n_thumbsize = 0;\n //BA.debugLineNum = 20;BA.debugLine=\"Public Tag As Object\";\n_tag = new Object();\n //BA.debugLineNum = 21;BA.debugLine=\"Private mThumbBorderColor As Int = 0xFF5B5B5B\";\n_mthumbbordercolor = (int) (0xff5b5b5b);\n //BA.debugLineNum = 22;BA.debugLine=\"Private mThumbInnerColor As Int = xui.Color_White\";\n_mthumbinnercolor = _xui.Color_White;\n //BA.debugLineNum = 23;BA.debugLine=\"Private mCircleFillColor As Int = xui.Color_White\";\n_mcirclefillcolor = _xui.Color_White;\n //BA.debugLineNum = 24;BA.debugLine=\"Private mCircleNonValueColor As Int = 0xFFB6B6B6\";\n_mcirclenonvaluecolor = (int) (0xffb6b6b6);\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"void mo7378a(C1320b bVar, String str) throws RemoteException;",
"private static void debug(Context context, String p){\n\t\tToast.makeText(context, p, Toast.LENGTH_SHORT).show();\n\t}",
"public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\n }",
"public void debug() {\n\n\t\t// Establecemos el estado\n\t\tsetEstado(Estado.DEBUG);\n\n\t\t// Obtenemos la proxima tarea\n\t\ttarea = planificador.obtenerProximaTarea();\n\t}",
"public int _getvalue() throws Exception{\nif (true) return _mvalue;\n //BA.debugLineNum = 154;BA.debugLine=\"End Sub\";\nreturn 0;\n}",
"LabyDebugger getLabyDebugger();",
"public void setDebug(IRubyObject debug) {\n this.debug = debug.isTrue();\n }",
"public void setDebug(IRubyObject debug) {\n this.debug = debug.isTrue();\n }",
"private void debugMessage(String result)\n\t{\n\t\tmain.addDebugMessage(result);\n\t}",
"public static void main(String[] args) {\n Lab_2 lab=new Lab_2();\n lab.displaydetails();\n lab.displayhomeaddress();\n lab.displayworkaddress();\n lab.displaylocaladdress(); \n }",
"public void setDebug(boolean b) { debug = b; }",
"public void mo3287b() {\n }",
"public static void printInfo(){\n }",
"public static void debugInfo() { throw Extensions.todo(); }",
"private void dbgTrace(String trace) {\n GenUtils.logCat(tag, trace);\n GenUtils.logMessageToFile(\"SessionV2.log\", trace);\n }",
"private static void debug(String s) {\n if (System.getProperty(\"javafind.debug\") != null)\n System.out.println(\"debug in GnuNativeFind: \" + s);\n }",
"public static void main(String[] param) {\t\t\r\n //(new virtualModem()).nechopackets(5);\r\n //(new virtualModem()).imagepackets(\"error\");\r\n//(new virtualModem()).chronoechopackets(480000);\r\n//(new virtualModem()).gpspackets();\r\n //(new virtualModem()).acknackpackets(480000);\r\n }",
"public void mo21791P() {\n }",
"public void mo44053a() {\n }",
"void mo7383c(C1320b bVar, String str) throws RemoteException;",
"public void setDebugger(Debugger newDebugger) {\r\n\tdebugger = newDebugger;\r\n}",
"public void enableDebug() {\n this.debug = true;\n }",
"public static void camDebug(Camera camera) {\n\t}",
"private void doDebugCommand(String command) {\n Scanner comScan = new Scanner(command);\n int loc1 = 0;\n int loc2 = 0;\n int r = 0;\n int value = 0;\n String s;\n\n // Get the debugging command and execute it\n try {\n String com = comScan.next();\n if (\"exit\".equals(com)) {\n return;\n }\n // Run the program\n if (\"go\".equals(com)) {\n if (comScan.hasNext()) {\n s = comScan.next();\n loc1 = getAddress(s);\n if (loc1 == NO_LABEL) {\n loc1 = Integer.parseInt(s);\n }\n go(loc1);\n } else {\n go();\n }\n return;\n }\n\n // Step: execute one instruction\n if (\"step\".equals(com)) {\n step();\n return;\n }\n\n // Dump memory at given location\n if (\"dump\".equals(com)) {\n s = comScan.next();\n loc1 = getAddress(s);\n if (loc1 == NO_LABEL) {\n loc1 = Integer.parseInt(s);\n }\n s = comScan.next();\n loc2 = getAddress(s);\n if (loc2 == NO_LABEL) {\n loc2 = Integer.parseInt(s);\n }\n dump(loc1, loc2);\n return;\n }\n\n // Dump the registers at a given location\n if (\"dumpr\".equals(com)) {\n dumpr();\n return;\n }\n\n // Deasemble memory from given locations\n if (\"deas\".equals(com)) {\n s = comScan.next();\n loc1 = getAddress(s);\n if (loc1 == NO_LABEL) {\n loc1 = Integer.parseInt(s);\n }\n s = comScan.next();\n loc2 = getAddress(s);\n if (loc2 == NO_LABEL) {\n loc2 = Integer.parseInt(s);\n }\n deas(loc1, loc2);\n return;\n }\n\n // Print the breakpoint table\n if (\"brkt\".equals(com)) {\n brkt();\n return;\n }\n\n // Set a breakpoint\n if (\"sbrk\".equals(com)) {\n s = comScan.next();\n loc1 = getAddress(s);\n if (loc1 == NO_LABEL) {\n loc1 = Integer.parseInt(s);\n }\n sbrk(loc1);\n return;\n }\n\n // Clear a breakpoint\n if (\"cbrk\".equals(com)) {\n s = comScan.next();\n loc1 = getAddress(s);\n if (loc1 == NO_LABEL) {\n loc1 = Integer.parseInt(s);\n }\n cbrk(loc1);\n return;\n }\n\n // Clear the breakpoint table\n if (\"cbrkt\".equals(com)) {\n cbrkt();\n return;\n }\n\n // Print out the help menu\n if (\"help\".equals(com)) {\n help();\n return;\n }\n\n // Change a given register to a given value\n if (\"chngr\".equals(com)) {\n r = Integer.parseInt(comScan.next());\n value = Integer.parseInt(comScan.next());\n chngr(r, value);\n return;\n }\n\n // Change a given location in memory to a given value\n if (\"chngm\".equals(com)) {\n s = comScan.next();\n loc1 = getAddress(s);\n if (loc1 == NO_LABEL) {\n loc1 = Integer.parseInt(s);\n }\n value = Integer.parseInt(comScan.next());\n chngm(loc1, value);\n return;\n }\n println(\"Invalid debbugger input\");\n\n } catch (NoSuchElementException e) {\n\n // Occurs when user calls a command but doent give the correct locations or value\n println(\"Invalid debbugger input\");\n } catch (NumberFormatException e) {\n\n // Occurs when user call a command but provide bad input\n // Such a giving a string when asking for an int\n println(\"Number format error\");\n }\n }",
"void libusb_set_debug(Context ctx, int level);",
"@Override\n\tpublic void setDebugMode(int debugMode) {\n\n\t}",
"private void debug(String s) {\r\n\t\tif (debug)\r\n\t\t\tSystem.out.println(s);\r\n\t}",
"public static void dbg(String str) {\n\t\tString time = \"\";\r\n\t\tout(\"[MN] \"+Thread.currentThread().getId()+\" [\"+time+\"]> \"+str);\t\t\r\n\t}",
"private void traceInfo(String info) {\n if (trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"public void debug()\r\n {\n \t\treload();\r\n }",
"private void setupDebugger(){\n this.debuggerFrame = new JFrame();\n this.debuggerFrame.setSize(550, 275);\n this.debuggerFrame.add(PIDpanel);\n \n this.setInitialPIDValues(this.initPidValues);\n }",
"public void mo55254a() {\n }",
"public interface LibDebug\n {\n /***************************************************************************************************************\n * An output being logged if this debug group is enabled.\n ***************************************************************************************************************/\n void out( Object msg );\n\n /***************************************************************************************************************\n * An output being logged UNCONDITIONAL.\n ***************************************************************************************************************/\n void err( Object msg );\n\n /***************************************************************************************************************\n * A stacktrace being logged if this debug group is enabled.\n ***************************************************************************************************************/\n void trace( Throwable msg );\n\n /***************************************************************************************************************\n * Displays memory info.\n ***************************************************************************************************************/\n void mem();\n }",
"private static void showCurrentBreakPoints() {\n System.out.print(\"Current BreakPoints: \");\n for (int i=1;i<=dvm.getSourceCodeLength();i++)\n if (dvm.isLineABreakPoint(i)) System.out.print(i + \" \");\n System.out.print(\"\\n\");\n }",
"public void setDebugMcc(int mcc) {\r\n\t\tthis.mcc = mcc;\r\n\t}",
"public void printInfo(){\n\t}",
"public void printInfo(){\n\t}",
"@Override\n\tpublic void setDebug(boolean isDebug) {\n\t\t\n\t}",
"public String _class_globals() throws Exception{\n_pub_key = \"\";\n //BA.debugLineNum = 8;BA.debugLine=\"Private Event As String\";\n_event = \"\";\n //BA.debugLineNum = 9;BA.debugLine=\"Private Instance As Object\";\n_instance = new Object();\n //BA.debugLineNum = 11;BA.debugLine=\"Private Page As Activity\";\n_page = new anywheresoftware.b4a.objects.ActivityWrapper();\n //BA.debugLineNum = 12;BA.debugLine=\"Private PaymentPage As WebView\";\n_paymentpage = new anywheresoftware.b4a.objects.WebViewWrapper();\n //BA.debugLineNum = 13;BA.debugLine=\"Private JarFile As JarFileLoader\";\n_jarfile = new b4a.paystack.jarfileloader();\n //BA.debugLineNum = 14;BA.debugLine=\"Private PageCurrentTitle As String\";\n_pagecurrenttitle = \"\";\n //BA.debugLineNum = 15;BA.debugLine=\"Private IME As IME\";\n_ime = new anywheresoftware.b4a.objects.IME();\n //BA.debugLineNum = 16;BA.debugLine=\"Private POPUP As Boolean = False\";\n_popup = __c.False;\n //BA.debugLineNum = 17;BA.debugLine=\"Private POPUP_PANEL As Panel\";\n_popup_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private JS As DefaultJavascriptInterface\";\n_js = new uk.co.martinpearman.b4a.webkit.DefaultJavascriptInterface();\n //BA.debugLineNum = 21;BA.debugLine=\"Private WebClient As DefaultWebViewClient\";\n_webclient = new uk.co.martinpearman.b4a.webkit.DefaultWebViewClient();\n //BA.debugLineNum = 22;BA.debugLine=\"Private PaymentPageExtra As WebViewExtras\";\n_paymentpageextra = new uk.co.martinpearman.b4a.webkit.WebViewExtras();\n //BA.debugLineNum = 23;BA.debugLine=\"Private Chrome As DefaultWebChromeClient\";\n_chrome = new uk.co.martinpearman.b4a.webkit.DefaultWebChromeClient();\n //BA.debugLineNum = 24;BA.debugLine=\"Private CookieManager As CookieManager\";\n_cookiemanager = new uk.co.martinpearman.b4a.httpcookiemanager.B4ACookieManager();\n //BA.debugLineNum = 25;BA.debugLine=\"Private Loaded As Boolean = False\";\n_loaded = __c.False;\n //BA.debugLineNum = 26;BA.debugLine=\"Public ShowMessage As Boolean = True\";\n_showmessage = __c.True;\n //BA.debugLineNum = 29;BA.debugLine=\"Private ReferenceCode As String\";\n_referencecode = \"\";\n //BA.debugLineNum = 30;BA.debugLine=\"Private AccesCode As String\";\n_accescode = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"Private AmountCurrency As String\";\n_amountcurrency = \"\";\n //BA.debugLineNum = 34;BA.debugLine=\"Public CURRENCY_GHS As String = \\\"GHS\\\"\";\n_currency_ghs = \"GHS\";\n //BA.debugLineNum = 35;BA.debugLine=\"Public CURRENCY_NGN As String = \\\"NGN\\\"\";\n_currency_ngn = \"NGN\";\n //BA.debugLineNum = 36;BA.debugLine=\"Public CURRENCY_ZAR As String = \\\"ZAR\\\"\";\n_currency_zar = \"ZAR\";\n //BA.debugLineNum = 37;BA.debugLine=\"Public CURRENCY_USD As String = \\\"USD\\\"\";\n_currency_usd = \"USD\";\n //BA.debugLineNum = 39;BA.debugLine=\"Private HTML As String = $\\\" <!doctype html> <html\";\n_html = (\"\\n\"+\"<!doctype html>\\n\"+\"<html>\\n\"+\"<head>\\n\"+\"\t<title>Paystack</title>\\n\"+\"\t<script>\\n\"+\"\t\tfunction setCookie(cname, cvalue, exdays) {\\n\"+\"\t\t const d = new Date();\\n\"+\"\t\t d.setTime(d.getTime() + (exdays*24*60*60*1000));\\n\"+\"\t\t let expires = \\\"expires=\\\"+ d.toUTCString();\\n\"+\"\t\t document.cookie = cname + \\\"=\\\" + cvalue + \\\";\\\" + expires + \\\";path=/\\\";\\n\"+\"\t\t}\\n\"+\"\t\tsetCookie('SameSite', 'Secure', 1);\\n\"+\"\t</script>\\n\"+\"</head>\\n\"+\"<body>\\n\"+\"\t<script>\\n\"+\"\t\tfunction Pay(key,email,amount,ref,label,currency){\\n\"+\"\t\t\tlet handler = PaystackPop.setup({\\n\"+\"\t\t\t\tkey: key,\\n\"+\"\t\t\t\temail: email,\\n\"+\"\t\t\t\tamount: amount * 100,\\n\"+\"\t\t\t\tref: ref+Math.floor((Math.random() * 1000000000) + 1),\\n\"+\"\t\t\t\tlabel: label,\\n\"+\"\t\t\t\tcurrency: currency,\\n\"+\"\t\t\t\tonClose: function(){\\n\"+\"\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment Cancelled\\\",\\\"cancelled\\\");\\n\"+\"\t\t\t\t},\\n\"+\"\t\t\t\tcallback: function(response){\t\\n\"+\"\t\t\t\t\tif(response.status == 'success'){\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment of \\\"+currency+amount+\\\" Successul\\\",\\\"success\\\");\\n\"+\"\t\t\t\t\t}else{\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Error: \\\"+response.status,\\\"error\\\");\\n\"+\"\t\t\t\t\t}\\n\"+\"\t\t\t\t}\\n\"+\"\t\t\t});\\n\"+\"\t\t\thandler.openIframe();\\n\"+\"\t\t}\\n\"+\"\t</script>\\n\"+\"\t<script type=\\\"text/javascript\\\" src=\\\"https://js.paystack.co/v1/inline.js\\\"></script>\\n\"+\"</script>\\n\"+\"</body>\\n\"+\"</html>\\n\"+\"\t\");\n //BA.debugLineNum = 83;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public void mo9137b() {\n }",
"public boolean supportsDebugArgument();",
"public abstract void debug(RobocodeFileOutputStream output);",
"public void print_DEBUG() {\n\t\tSystem.out.println(\"Direction\");\n\t\tSystem.out.println(\"ID: \" + ID);\n\t\tSystem.out.println(\"FROM: \" + from.name() );\n\t\tSystem.out.println(\"TO: \" + to.name() );\n\t\tSystem.out.println(\"dir: \" + dir);\n\t\tSystem.out.println(\"Locked: \" + locked);\n\t\tSystem.out.println(\"LockPattern: \" + lockPattern);\n\t}"
]
| [
"0.6913164",
"0.686232",
"0.6399442",
"0.63709176",
"0.6207551",
"0.59787244",
"0.5867059",
"0.5768359",
"0.57075346",
"0.56371963",
"0.56059086",
"0.5574812",
"0.552857",
"0.5453127",
"0.54351366",
"0.5418048",
"0.5398186",
"0.5380824",
"0.5337484",
"0.5317465",
"0.53155094",
"0.5300039",
"0.5293233",
"0.5285512",
"0.52819324",
"0.5276563",
"0.527082",
"0.52658755",
"0.52630794",
"0.5259864",
"0.52533466",
"0.524949",
"0.52491534",
"0.52385587",
"0.52298725",
"0.521818",
"0.5211289",
"0.5201024",
"0.5184955",
"0.5179668",
"0.51775897",
"0.5174299",
"0.5173742",
"0.51716155",
"0.51615286",
"0.51527333",
"0.5148896",
"0.5148718",
"0.51447034",
"0.51391786",
"0.5117901",
"0.50998765",
"0.50991493",
"0.50986767",
"0.50896543",
"0.50766915",
"0.507534",
"0.50574785",
"0.5048193",
"0.5040229",
"0.50318086",
"0.5025674",
"0.50240713",
"0.50221586",
"0.50221586",
"0.5019363",
"0.50104535",
"0.50051355",
"0.49806774",
"0.4980671",
"0.49776182",
"0.49773148",
"0.4969727",
"0.49628127",
"0.49598995",
"0.49514455",
"0.49444345",
"0.49420372",
"0.49351",
"0.49250498",
"0.49211675",
"0.4919494",
"0.49134642",
"0.49110323",
"0.49107787",
"0.49074808",
"0.49034467",
"0.49021965",
"0.48966235",
"0.48952147",
"0.48913634",
"0.48861173",
"0.4881369",
"0.4881369",
"0.48788342",
"0.48730144",
"0.48726127",
"0.4872421",
"0.4867591",
"0.48673946"
]
| 0.62866485 | 4 |
/ access modifiers changed from: packageprivate | public void checkDelimiters() {
UnicodeSet unicodeSet = this.m_delimiters_;
int i = 0;
if (unicodeSet == null || unicodeSet.size() == 0) {
this.delims = new boolean[0];
return;
}
UnicodeSet unicodeSet2 = this.m_delimiters_;
int rangeEnd = unicodeSet2.getRangeEnd(unicodeSet2.getRangeCount() - 1);
if (rangeEnd < 127) {
this.delims = new boolean[(rangeEnd + 1)];
while (true) {
int charAt = this.m_delimiters_.charAt(i);
if (-1 != charAt) {
this.delims[charAt] = true;
i++;
} else {
return;
}
}
} else {
this.delims = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"public abstract void mo70713b();",
"public void m23075a() {\n }",
"public void mo38117a() {\n }",
"private MApi() {}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public void mo21779D() {\n }",
"public abstract void mo27386d();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"void m1864a() {\r\n }",
"public abstract Object mo26777y();",
"public void mo21825b() {\n }",
"protected boolean func_70814_o() { return true; }",
"public final void mo91715d() {\n }",
"public abstract void mo27385c();",
"public void mo97908d() {\n }",
"public void mo21782G() {\n }",
"private TMCourse() {\n\t}",
"private test5() {\r\n\t\r\n\t}",
"private Util() { }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"private abstract void privateabstract();",
"public void mo21877s() {\n }",
"public void mo21787L() {\n }",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private MetallicityUtils() {\n\t\t\n\t}",
"public void mo21791P() {\n }",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public abstract void mo6549b();",
"public void mo23813b() {\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }",
"public void mo44053a() {\n }",
"public void smell() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo115190b() {\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 mo21785J() {\n }",
"public void mo21793R() {\n }",
"public void mo21878t() {\n }",
"public void mo56167c() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public abstract String mo118046b();",
"public void mo115188a() {\n }",
"private SourcecodePackage() {}",
"public abstract String mo41079d();",
"void mo57277b();",
"public void mo6944a() {\n }",
"public abstract void mo42329d();",
"public abstract void mo30696a();",
"private final zzgy zzgb() {\n }",
"private Utils() {\n\t}",
"private Utils() {\n\t}",
"protected boolean func_70041_e_() { return false; }",
"zzafe mo29840Y() throws RemoteException;",
"private Singletion3() {}",
"public abstract void mo42331g();",
"public abstract void mo35054b();",
"public abstract String mo13682d();",
"public void mo21786K() {\n }",
"public void mo3376r() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo3749d() {\n }",
"public void mo21794S() {\n }",
"public void mo12628c() {\n }",
"private Infer() {\n\n }",
"public void mo9848a() {\n }",
"private OMUtil() { }",
"public abstract void mo27464a();",
"@Override\n\tpublic void ligar() {\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}",
"private NativeSupport() {\n\t}",
"public void mo2740a() {\n }",
"@Override\n public boolean isPrivate() {\n return true;\n }"
]
| [
"0.71513015",
"0.6686406",
"0.6558315",
"0.6482832",
"0.6430476",
"0.63856333",
"0.63838816",
"0.63487375",
"0.6330605",
"0.62764114",
"0.626384",
"0.62509346",
"0.6237325",
"0.62340367",
"0.6228612",
"0.6197973",
"0.6197973",
"0.61952",
"0.6183631",
"0.61797863",
"0.6157397",
"0.6152618",
"0.61521906",
"0.6116792",
"0.61100185",
"0.61080855",
"0.6088319",
"0.6082373",
"0.6072587",
"0.60691696",
"0.60570836",
"0.60564214",
"0.6056027",
"0.60505396",
"0.6050144",
"0.60472345",
"0.6044647",
"0.6036982",
"0.6024398",
"0.6024398",
"0.6024398",
"0.6024398",
"0.6020334",
"0.60201526",
"0.6018423",
"0.6016204",
"0.6005956",
"0.6002279",
"0.5999404",
"0.59974486",
"0.59964895",
"0.5995736",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.599113",
"0.5987661",
"0.5987661",
"0.5984926",
"0.5983099",
"0.5973421",
"0.59589046",
"0.5958243",
"0.5953439",
"0.59510964",
"0.59475076",
"0.5946366",
"0.5943994",
"0.59424007",
"0.59403396",
"0.5937576",
"0.59374106",
"0.5926433",
"0.59263766",
"0.59263766",
"0.5925841",
"0.5913479",
"0.5910542",
"0.59044325",
"0.5904201",
"0.59039",
"0.58995575",
"0.58967894",
"0.5894089",
"0.58939654",
"0.58905286",
"0.5882918",
"0.58785903",
"0.58777314",
"0.5876467",
"0.5876147",
"0.587332",
"0.58671093",
"0.58671093",
"0.58666575",
"0.5866619",
"0.58632815"
]
| 0.0 | -1 |
Enumerate all Solutions to the problem described in a LockScreen | public ArrayList<float[]> getSolutions( LockScreen problem ) {
ArrayList<float[]> solutions = new ArrayList<float[]>();
int pbSize = problem._disks.size();
// init all to -PI
for (LockDisk disk : problem._disks) {
disk.reset();
disk._rotAngle = - MathUtils.PI;
}
// Solution
System.out.println( "****** Cherche Solution pour");
for (LockDisk d : problem._disks) {
System.out.println( "Disk "+d._id+ " ang="+d._rotAngle*MathUtils.radDeg);
}
boolean fgSol = evaluateSolution(problem);
if (fgSol) {
float[] oneSolution = new float[pbSize];
for (int i = 0; i < oneSolution.length; i++) {
oneSolution[i] = problem._disks.get(i)._rotAngle;
}
solutions.add( oneSolution );
}
// increment while not finished
boolean fgFinished = false;
while ( !fgFinished ) {
// CHECK if SOLUTION
// INCREMENT
boolean fgNeedIncrement = true;
LockDisk disk = problem._disks.get(problem._disks.size()-1);
while (fgNeedIncrement == true && disk != null) {
disk._rotAngle += ANG_INCREMENT;
// If over PI -> will try to increment next disk
if (disk._rotAngle >= MathUtils.PI) {
disk._rotAngle = - MathUtils.PI;
disk = disk._nextDisk;
}
// else ok, increment is finished
else {
fgNeedIncrement = false;
}
}
// Finished if disk=null and still need increment
if (fgNeedIncrement == true && disk == null ) {
fgFinished = true;
System.out.println(">>>>>>> FINISHED <<<<<<");
}
// else, do we have a solution
else {
// Solution
System.out.println( "****** Cherche Solution pour");
for (LockDisk d : problem._disks) {
System.out.println( "Disk "+d._id+ " ang="+d._rotAngle*MathUtils.radDeg);
}
fgSol = evaluateSolution(problem);
if (fgSol) {
float[] oneSolution = new float[pbSize];
for (int i = 0; i < oneSolution.length; i++) {
oneSolution[i] = problem._disks.get(i)._rotAngle;
}
solutions.add( oneSolution );
}
}
}
System.out.println( "**** SOLUTIONS ****");
String solStr = "";
for (float[] fs : solutions) {
solStr += " (";
for (int i = 0; i < fs.length; i++) {
solStr += (fs[i]*MathUtils.radDeg)+", ";
}
solStr += "),";
}
System.out.println(solStr);
return solutions;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean evaluateSolution( LockScreen problem ) {\n\t\tfor (LockDisk disk : problem._disks) {\n\t\t\tfor (LaserSrc laser : disk._lasers) {\n\t\t\t\tlaser._distBeam = -1.0f;\n\t\t\t\tif( disk._nextDisk != null ) {\n\t\t\t\t\tlaser._distBeam = disk._nextDisk.isBlocking(\n\t\t\t\t\t\t\tdisk.normalizeAngleRad( laser._angLaser + disk._rotAngle - disk._nextDisk._rotAngle));\n\t\t\t\t}\n\t\t\t\tif (laser._distBeam < 0.0f ) {\n\t\t\t\t\tlaser._distBeam = LockDisk.MAXDISTLASER;\n\t\t\t\t}\n\t\t\t\tif (_verb) {\n\t\t\t\t\tSystem.out.println( \"Update Laser \"+laser._id+ \" / \" + disk._id \n\t\t\t\t\t\t\t+ \" with d=\"+ laser._distBeam \n\t\t\t\t\t\t\t+ \" at angle=\" + (MathUtils.radDeg * (disk._rotAngle+laser._angLaser)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Then the status of every Sensor\n\t\tboolean _fgOpen = true;\n\t\tboolean _fgClosed = false;\n\n\t\tfor (Sensor sensor : problem._sensors) {\n\t\t\tsensor._fgActivated = false;\n\t\t\tSystem.out.println( \"Sensor [\"+sensor._id+\"]\");\n\t\t\tfor (LockDisk disk : problem._disks) {\n\t\t\t\tfor (LockDisk.LaserSrc laser : disk._lasers) {\n\t\t\t\t\tif (laser._distBeam > 180f ) {\n\t\t\t\t\t\tSystem.out.println(\" laser_\"+disk._id+\"/\"+laser._id +\" at angle \" + (MathUtils.radDeg * (laser._angLaser + disk._rotAngle)));\n\t\t\t\t\t\tsensor.updateWithBeam(laser._angLaser + disk._rotAngle);\n\n\t\t\t\t\t\t//Adapt _fgOpen according to fgActivated and type of Sensor\n\t\t\t\t\t\t// If any \"open\" is not activated => NOT open\n\t\t\t\t\t\tif (sensor._type.compareTo(\"open\") == 0) {\n\t\t\t\t\t\t\tif (sensor._fgActivated == false)\n\t\t\t\t\t\t\t\t_fgOpen = false; \t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if any other activated => IS closed\n\t\t\t\t\t\telse if (sensor._fgActivated) {\n\t\t\t\t\t\t\t_fgClosed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (_fgOpen && !_fgClosed) {\n\t\t\tSystem.out.println(\">>>>>> Sol VALID\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\">>>>>> Sol NOT valid\");\n\t\t}\n\t\treturn (_fgOpen && !_fgClosed);\n\t\t\n\t}",
"@Override\n public Map<Integer, Puzzle> findSolutions() {\n if (Permutations.of(Arrays.asList(1, 2, 3, 4, 5, 6))\n .map(p -> p.collect(Collectors.toList()))\n .map(puzzleNumbers ->\n new Puzzle(this.inputPuzzle.getPuzzlePiece(PuzzleSide.findByValue(puzzleNumbers.get(0))),\n this.inputPuzzle.getPuzzlePiece(PuzzleSide.findByValue(puzzleNumbers.get(1))),\n this.inputPuzzle.getPuzzlePiece(PuzzleSide.findByValue(puzzleNumbers.get(2))),\n this.inputPuzzle.getPuzzlePiece(PuzzleSide.findByValue(puzzleNumbers.get(3))),\n this.inputPuzzle.getPuzzlePiece(PuzzleSide.findByValue(puzzleNumbers.get(4))),\n this.inputPuzzle.getPuzzlePiece(PuzzleSide.findByValue(puzzleNumbers.get(5)))))\n .anyMatch(this::checkStatesByOrientations)) {\n return solutions;\n }\n return null;\n }",
"public void checkSolution() {\r\n\t\tArrayList<Point> current = new ArrayList<>();\r\n\r\n for (JComponent btn : buttons) {\r\n current.add((Point) btn.getClientProperty(\"position\"));\r\n }\r\n\r\n if (compareList(solutions, current)) {\r\n \tJOptionPane.showMessageDialog(jf,\"You win!!!.\");\r\n \tSystem.exit(0);\r\n }\r\n\t}",
"static private void showSolution() {\n\t\tfor (int x = 1; x <= 6; ++x) {\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(color[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(offset[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tbricks.showColorBricks(x);\n\n\t\t\tSystem.out.println(Messages.getString(\"dddcube.stringkey.2\")); //$NON-NLS-1$\n\t\t}\n\t}",
"public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}",
"private void solve() {\n\t\t//reads values from board\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tString value = field[i][k].getText();\n\t\t\t\tif(value.length() > 0){\n\t\t\t\t\tsudokuBoard.add(i, k, Integer.valueOf(value));\n\t\t\t\t} else {\n\t\t\t\t\tsudokuBoard.add(i, k, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(sudokuBoard.solve()){\n\t\t\t//presents the solution\n\t\t\tfor(int i = 0; i < 9; i++){\n\t\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\t\tfield[i][k].setText(String.valueOf(sudokuBoard.getValue(i, k)));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\talert.setTitle(null);\n\t\t\talert.setHeaderText(null);\n\t\t\talert.setContentText(\"The entered board has no solution\");\n\t\t\talert.showAndWait();\n\t\t}\n\t\t\n\t}",
"public void think_blocking()\r\n/* 37: */ {\r\n/* 38: 33 */ Scanner in = new Scanner(System.in);\r\n/* 39: */ Object localObject;\r\n/* 40:143 */ for (;; ((Iterator)localObject).hasNext())\r\n/* 41: */ {\r\n/* 42: 38 */ System.out.print(\"Next action ([move|land|attk] id; list; exit): \");\r\n/* 43: */ \r\n/* 44: 40 */ String[] cmd = in.nextLine().split(\" \");\r\n/* 45: */ \r\n/* 46: 42 */ System.out.print(\"Processing command... \");\r\n/* 47: 43 */ System.out.flush();\r\n/* 48: */ \r\n/* 49: 45 */ this.game.updateSimFrame();\r\n/* 50: */ \r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: 52 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases();\r\n/* 57: 53 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes();\r\n/* 58: 54 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes();\r\n/* 59: */ \r\n/* 60: 56 */ List<Command> coms = new ArrayList();\r\n/* 61: */ try\r\n/* 62: */ {\r\n/* 63: 59 */ boolean recognized = true;\r\n/* 64: 60 */ switch ((localObject = cmd[0]).hashCode())\r\n/* 65: */ {\r\n/* 66: */ case 3004906: \r\n/* 67: 60 */ if (((String)localObject).equals(\"attk\")) {}\r\n/* 68: */ break;\r\n/* 69: */ case 3127582: \r\n/* 70: 60 */ if (((String)localObject).equals(\"exit\")) {\r\n/* 71: */ break label914;\r\n/* 72: */ }\r\n/* 73: */ break;\r\n/* 74: */ case 3314155: \r\n/* 75: 60 */ if (((String)localObject).equals(\"land\")) {\r\n/* 76: */ break;\r\n/* 77: */ }\r\n/* 78: */ break;\r\n/* 79: */ case 3322014: \r\n/* 80: 60 */ if (((String)localObject).equals(\"list\")) {}\r\n/* 81: */ case 3357649: \r\n/* 82: 60 */ if ((goto 793) && (((String)localObject).equals(\"move\")))\r\n/* 83: */ {\r\n/* 84: 64 */ if (cmd.length != 2) {\r\n/* 85: */ break label804;\r\n/* 86: */ }\r\n/* 87: 66 */ int id = Integer.parseInt(cmd[1]);\r\n/* 88: 67 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 89: 68 */ Coord.View c = null;\r\n/* 90: 70 */ if (b == null)\r\n/* 91: */ {\r\n/* 92: 71 */ if (this.game.getCountry().id() != id)\r\n/* 93: */ {\r\n/* 94: 73 */ System.err.println(\"This id isn't corresponding neither to a base nor your country\");\r\n/* 95: */ break label804;\r\n/* 96: */ }\r\n/* 97: 77 */ c = this.game.getCountry().position();\r\n/* 98: */ }\r\n/* 99: */ else\r\n/* 100: */ {\r\n/* 101: 79 */ c = b.position();\r\n/* 102: */ }\r\n/* 103: 81 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 104: 82 */ coms.add(new MoveCommand(p, c));\r\n/* 105: */ }\r\n/* 106: */ break label804;\r\n/* 107: 87 */ int id = Integer.parseInt(cmd[1]);\r\n/* 108: 88 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 109: 89 */ AbstractBase.View c = null;\r\n/* 110: 91 */ if (b == null)\r\n/* 111: */ {\r\n/* 112: 92 */ if (this.game.getCountry().id() != id)\r\n/* 113: */ {\r\n/* 114: 94 */ System.err.println(\"You can't see this base, move around it before you land\");\r\n/* 115: */ break label804;\r\n/* 116: */ }\r\n/* 117: 98 */ c = this.game.getCountry();\r\n/* 118: */ }\r\n/* 119: */ else\r\n/* 120: */ {\r\n/* 121:100 */ c = b;\r\n/* 122: */ }\r\n/* 123:102 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 124:103 */ coms.add(new LandCommand(p, c));\r\n/* 125: */ }\r\n/* 126: */ break label804;\r\n/* 127:108 */ Plane.BasicView ep = (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 128:109 */ if (ep == null)\r\n/* 129: */ {\r\n/* 130:111 */ System.err.println(\"Bad id, this plane does not exists\");\r\n/* 131: */ }\r\n/* 132: */ else\r\n/* 133: */ {\r\n/* 134:114 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 135:115 */ coms.add(new AttackCommand(p, ep));\r\n/* 136: */ }\r\n/* 137: */ break label804;\r\n/* 138:118 */ System.out.println();\r\n/* 139:119 */ System.out.println(\">> My planes:\");\r\n/* 140:120 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 141:121 */ System.out.println(p);\r\n/* 142: */ }\r\n/* 143:122 */ System.out.println(\">> Ennemy planes:\");\r\n/* 144:123 */ for (Plane.BasicView p : ennemy_planes.valuesView()) {\r\n/* 145:124 */ System.out.println(p);\r\n/* 146: */ }\r\n/* 147:125 */ System.out.println(\">> Visible bases :\");\r\n/* 148:126 */ for (Base.FullView b : this.game.getVisibleBase().valuesView()) {\r\n/* 149:127 */ System.out.println(b);\r\n/* 150: */ }\r\n/* 151:128 */ System.out.println(\">> Your Country\");\r\n/* 152:129 */ System.out.println(this.game.getCountry());\r\n/* 153: */ }\r\n/* 154: */ }\r\n/* 155:130 */ break;\r\n/* 156: */ }\r\n/* 157:132 */ recognized = false;\r\n/* 158:133 */ System.err.println(\"Unrecognized command!\");\r\n/* 159: */ label804:\r\n/* 160:135 */ if (recognized) {\r\n/* 161:136 */ System.out.println(\"Processed\");\r\n/* 162: */ }\r\n/* 163: */ }\r\n/* 164: */ catch (IllegalArgumentException e)\r\n/* 165: */ {\r\n/* 166:139 */ System.out.println(\"Command failed: \" + e);\r\n/* 167:140 */ System.err.println(\"Command failed: \" + e);\r\n/* 168: */ }\r\n/* 169:143 */ localObject = coms.iterator(); continue;Command c = (Command)((Iterator)localObject).next();\r\n/* 170:144 */ this.game.sendCommand(c);\r\n/* 171: */ }\r\n/* 172: */ label914:\r\n/* 173:148 */ in.close();\r\n/* 174:149 */ this.game.quit(0);\r\n/* 175: */ }",
"public String isWinnable(Card c[]) {\n\t\tString solutionEquation=\"There is no solution for this set\";\n\t\t// ++(+-/*)\n\t\tint i=0,j=1,k=2,l=3;\n\t\tansCount=0;\n\t\tint count=0;\n\t\tfor(count=0;count<25;count++) {\n\t\tif(c[i].getValue()+c[j].getValue()+c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"+\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()+c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"+\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()+c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"+\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()+c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"+\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// +-(+-/*)\n\t\telse if(c[i].getValue()+c[j].getValue()-c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"-\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()-c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"-\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()-c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"-\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()-c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"-\"+c[k].getValue()+\"*\"+c[l].getValue();\t\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// +/(+-/*)\n\t\telse if(c[i].getValue()+c[j].getValue()/c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"/\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()/c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"/\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()/c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"/\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()/c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"/\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// +*(+-/*)\n\t\telse if(c[i].getValue()+c[j].getValue()*c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"*\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()*c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"*\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()*c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"*\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()+c[j].getValue()*c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"+\"+c[j].getValue()+\"*\"+c[k].getValue()+\"*\"+c[l].getValue();\t\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t////////////////\n\t\t////////////////\n\t\t// -+(+-/*)\n\t\telse if(c[i].getValue()-c[j].getValue()+c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"+\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()+c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"+\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()+c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"+\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()+c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"+\"+c[k].getValue()+\"*\"+c[l].getValue();\t\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// --(+-/*)\n\t\telse if(c[i].getValue()-c[j].getValue()-c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"-\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()-c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"-\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()-c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"-\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()-c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"-\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// -/(+-/*)\n\t\telse if(c[i].getValue()-c[j].getValue()/c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"/\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()/c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"/\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()/c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"/\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()/c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"/\"+c[k].getValue()+\"*\"+c[l].getValue();\t\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// -*(+-/*)\n\t\telse if(c[i].getValue()-c[j].getValue()*c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"*\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()*c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"*\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()*c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"*\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()-c[j].getValue()*c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"-\"+c[j].getValue()+\"*\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t////////////////\n\t\t////////////////\n\t\t// /+(+-/*)\n\t\telse if(c[i].getValue()/c[j].getValue()+c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"+\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()+c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"+\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()+c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"+\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()+c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"+\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// /-(+-/*)\n\t\telse if(c[i].getValue()/c[j].getValue()-c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"-\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()-c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"-\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()-c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"-\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()-c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"-\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// //(+-/*)\n\t\telse if(c[i].getValue()/c[j].getValue()/c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"/\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()/c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"/\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()/c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"/\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()/c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"/\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// /*(+-/*)\n\t\telse if(c[i].getValue()/c[j].getValue()*c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"*\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()*c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"*\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()*c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"*\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()/c[j].getValue()*c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"/\"+c[j].getValue()+\"*\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t////////////////\n\t\t////////////////\n\t\t// *+(+-/*)\n\t\telse if(c[i].getValue()*c[j].getValue()+c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"+\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()+c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"+\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()+c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"+\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()+c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"+\"+c[k].getValue()+\"*\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// *-(+-/*)\n\t\telse if(c[i].getValue()*c[j].getValue()-c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"-\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()-c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"-\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()-c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"-\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()-c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"-\"+c[k].getValue()+\"*\"+c[l].getValue();\t\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// /*(+-/*)\n\t\telse if(c[i].getValue()*c[j].getValue()/c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"/\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()/c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"/\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()/c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"/\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()/c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"/\"+c[k].getValue()+\"*\"+c[l].getValue();\t\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t// **(+-/*)\n\t\telse if(c[i].getValue()*c[j].getValue()*c[k].getValue()+c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"*\"+c[k].getValue()+\"+\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()*c[k].getValue()-c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"*\"+c[k].getValue()+\"-\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()*c[k].getValue()/c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"*\"+c[k].getValue()+\"/\"+c[l].getValue();\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\telse if(c[i].getValue()*c[j].getValue()*c[k].getValue()*c[l].getValue()==24) {\n\t\t\tsolutionEquation=\"\"+c[i].getValue()+\"*\"+c[j].getValue()+\"*\"+c[k].getValue()+\"*\"+c[l].getValue();\t\t\n\t\t\tsolutions[ansCount]=solutionEquation;\n\t\t\tansCount++;\n\t\t}\n\t\t\n\t\ti++;\n\t\tj++;\n\t\tk++;\n\t\tl++;\n\t\tif (i==4) \n\t\t\ti=0;\n\t\tif (j==4) \n\t\t\tj=0;\n\t\tif (k==4) \n\t\t\tk=0;\n\t\tif (l==4) \n\t\t\tl=0;\n\t\tSystem.out.println(\"i=\"+i);\n\t\tSystem.out.println(\"j=\"+j);\n\t\tSystem.out.println(\"k=\"+k);\t\t\n\t\tSystem.out.println(\"l=\"+l);\n\t\tSystem.out.println(\"Count: \"+count);\n\t\tSystem.out.println(\"Solution: \"+solutionEquation);\n\t\t}\n\t\t\n\t\tif (solutionEquation.equals(\"\"))\n\t\t\tsolutionEquation=\"There is no solution for this set\";\n\t\tSystem.out.println(\"Amount of Solutions: \"+ansCount);\n\t\t//for verify store all solutions into an array then check against the solution they enter\n\t\treturn solutionEquation;\n\t}",
"public static void main(String[] args) {\n\n Map<String, Integer> nyt;\n nyt = new HashMap<String, Integer>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt(), m = scan.nextInt();\n scan.nextLine();\n int cont = 0;\n seen = new boolean[193];\n g = new ArrayList[193];\n\n for (int i = 0; i < 193; i++) {\n g[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n String[] value = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(value[0])) {\n nyt.put(value[0], cont);\n cont++;\n }\n if (!nyt.containsKey(value[1])) {\n nyt.put(value[1], cont);\n cont++;\n }\n\n int u = nyt.get(value[0]);\n int v = nyt.get(value[1]);\n g[u].add(v);\n }\n boolean ok;\n for (int i = 0; i < m; i++) {\n ok = true;\n String[] trump = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(trump[0]) || !nyt.containsKey(trump[1])) {\n System.out.println(\"Pants on Fire\");\n } else {\n\n dfs(nyt.get(trump[0]));\n if (seen[nyt.get(trump[1])]) {\n System.out.println(\"Fact\");\n ok = false;\n }\n\n if (ok) {\n seen = new boolean[193];\n dfs(nyt.get(trump[1]));\n if (seen[nyt.get(trump[0])]) {\n System.out.println(\"Alternative Fact\");\n } else {\n System.out.println(\"Pants on Fire\");\n }\n\n }\n\n }\n seen = new boolean[193];\n\n }\n\n }",
"@Override\n public List<List<ICrosser>> solveGame() {\n return null;\n }",
"public static void main(String[] args) throws Exception {\n\n String[] options=new String[2];\n options[0]=\"Smart\";\n options[1]=\"Dummy\";\n String choice=\"\";\n String availableChars[] = {\"5x5maze.txt\",\"7x7maze.txt\",\"8x8maze.txt\",\"9x9maze.txt\",\"10x10maze.txt\",\"12x12maze.txt\"};\n\n int choiceG = JOptionPane.showOptionDialog(JOptionPane.getRootFrame(),\n \"Would you like to use the smart or dummy solution?\",\n \"Flow Free solver\",0,\n JOptionPane.INFORMATION_MESSAGE,null,options,null\n );\n if(choiceG==0){\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,false);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n else{\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,true);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n\n\n\n }",
"private void smell() {\n try {\n this.console.println(MapControl.checkSmell(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void resolveSudokuByRules() {\n for (int i = 0; i < 9; i++) {\n updateBoardForSingleCandidate();\n }\n updateCandidateMapForPairByCol();\n updateCandidateMapForPairByRow();\n\n for (int i = 0; i < 5; i++) {\n updateBoardForSingleCandidate();\n }\n\n updateBoardForSinglePossibilityByBlock();\n updateBoardForSinglePossibilityByRow();\n updateBoardForSinglePossibilityByCol();\n refreshCandidateMap();\n\n for (int i = 0; i < 5; i++) {\n updateBoardForSingleCandidate();\n }\n\n printBoardAndCandidatesHtmlFile();\n }",
"public static void main(String[] args) {\n Scanner entrada = new Scanner(System.in);\n int funcao = 0;\n while(funcao < 1 || funcao > 3){\n //limpa a tela\n clrscr();\n System.out.println(\" Bem-vindo ao Sudoku!\\n\\n Digite o numero da tecnica a ser utilizada:\\n\");\n System.out.printf(\" 1 - Busca Informada (Best-first/guloso)\\n 2 - Busca Desinformada (Em profundidade)\\n\"\n + \" 3 - Busca Desinformada (Em largura)\\n\\n-> \");\n funcao = entrada.nextInt();\n }\n //Usuario escolhe nivel de dificuldade do sudoku (5 exemplos)\n int nivel = 0;\n while(nivel < 1 || nivel > 5){\n System.out.println(\"\\n Digite o nivel de dificuldade do sudoku:\\n\");\n System.out.printf(\" 1 - Muito facil\\n 2 - Facil\\n 3 - Medio\\n 4 - Dificil\\n 5 - Muito Dificil\\n\\n-> \");\n nivel = entrada.nextInt();\n }\n //Usuario define velocidade de execução do algoritmo\n int execSpeed = 1;\n while(execSpeed != 0 && execSpeed != 5 && execSpeed != 500 && execSpeed != 1000){\n System.out.printf(\"\\n Digite o tempo de espera entre as iteracoes(ms):\\n\\n\");\n System.out.printf(\" 0 - Quero somente a matriz inicial e final\\n \"\n + \"5 - Curto\\n 500 - Medio\\n 1000 - Longo\\n\\n-> \");\n execSpeed = entrada.nextInt();\n }\n \n final int tamanho = 9;\n int contador = 0; //numero de iteracoes\n \n //Exemplos\n //sudoku quase completo\n int[][] sudokuQuaseResolvido = {\n {8, 6, 2, 3, 1, 7, 4, 9, 5},\n {7, 1, 5, 4, 8, 9, 2, 6, 0},\n {4, 3, 9, 5, 6, 2, 7, 1, 8},\n {5, 9, 7, 8, 3, 1, 6, 2, 4},\n {3, 8, 0, 6, 2, 4, 5, 7, 9},\n {6, 2, 4, 9, 7, 5, 3, 8, 1},\n {2, 5, 3, 7, 9, 8, 1, 4, 6},\n {9, 7, 6, 1, 4, 3, 8, 5, 2},\n {0, 4, 8, 2, 5, 6, 9, 3, 0}};\n //sudoku facil\n int[][] sudokuFacil = {\n {4, 3, 5, 0, 0, 9, 7, 8, 1},\n {0, 0, 2, 5, 7, 1, 4, 0, 3},\n {1, 9, 7, 8, 3, 4, 0, 6, 2},\n {8, 2, 6, 1, 9, 5, 3, 4, 7},\n {3, 7, 0, 0, 8, 2, 0, 1, 5},\n {9, 5, 1, 7, 4, 3, 6, 2, 8},\n {5, 1, 9, 3, 2, 6, 8, 7, 4},\n {2, 4, 8, 9, 5, 7, 1, 3, 0},\n {0, 6, 0, 4, 0, 8, 2, 5, 9}};\n //sudoku medio\n int[][] sudokuMedio = {\n {8, 6, 0, 3, 0, 0, 0, 0, 0},\n {0, 1, 5, 4, 0, 0, 0, 0, 0},\n {0, 3, 9, 5, 0, 2, 0, 0, 0},\n {0, 0, 0, 8, 0, 0, 6, 2, 0},\n {0, 0, 0, 6, 0, 4, 5, 0, 0},\n {6, 2, 0, 9, 7, 5, 0, 8, 1},\n {0, 0, 3, 7, 9, 8, 0, 0, 6},\n {9, 0, 6, 1, 4, 0, 0, 5, 0},\n {0, 0, 8, 2, 0, 6, 0, 3, 7}};\n //sudoku dificil\n int[][] sudokuDificil = {\n {1, 0, 0, 0, 0, 0, 0, 0, 5},\n {0, 9, 8, 5, 0, 3, 7, 4, 0},\n {0, 4, 5, 0, 0, 0, 6, 1, 0},\n {0, 1, 0, 0, 9, 0, 0, 3, 0},\n {0, 0, 0, 8, 0, 1, 0, 0, 0},\n {0, 8, 0, 0, 3, 0, 0, 9, 0},\n {0, 2, 7, 0, 0, 0, 3, 6, 0},\n {0, 3, 1, 9, 0, 6, 4, 2, 0},\n {9, 0, 0, 0, 0, 0, 0, 0, 8}};\n //sudoku mais dificil\n int[][] sudokuMuitoDificil = {\n {0, 0, 0, 2, 0, 7, 0, 0, 0},\n {4, 1, 0, 6, 0, 8, 0, 9, 7},\n {6, 0, 0, 0, 0, 0, 0, 0, 2},\n {0, 3, 0, 0, 6, 0, 0, 4, 0},\n {9, 0, 0, 5, 0, 1, 0, 0, 3},\n {0, 0, 0, 0, 0, 0, 0, 0, 0},\n {1, 0, 0, 0, 0, 0, 0, 0, 8},\n {5, 9, 0, 7, 8, 4, 0, 1, 6},\n {7, 2, 0, 0, 0, 0, 0, 5, 9}};\n \n //cria uma matriz que na vdd e um sudoku.\n Matriz matriz = new Matriz();\n //copia algum exemplo inicial de sudoku para a matriz, de acordo com a escolha do usuario\n switch (nivel){\n case 1:\n matriz.copiaMatriz(sudokuQuaseResolvido);\n break;\n case 2:\n matriz.copiaMatriz(sudokuFacil);\n break;\n case 3:\n matriz.copiaMatriz(sudokuMedio);\n break;\n case 4:\n matriz.copiaMatriz(sudokuDificil);\n break;\n case 5:\n matriz.copiaMatriz(sudokuMuitoDificil);\n break;\n }\n //limpa tela e imprime inicial = start\n clrscr();\n System.out.println(\"Estado inicial...\");\n matriz.printMatriz();\n for(int i = 0; i < 2; i++){\n if(i!=0)\n System.out.print(\"Pressione enter para iniciar\");\n entrada.nextLine();\n }\n clrscr();\n System.out.println(\"Matriz inicial\");\n matriz.printMatriz();\n \n //Tempo de execucao\n long tempoInicio = System.currentTimeMillis();\n \n //a partir do algoritmo de busca em profundidade passado no slide 30 da aula 6\n //define as pilhas open e close para os próximo e visitados respectivamente \n if(funcao != 3){//se nao for busca em largura\n Stack<Matriz> openS = new Stack<>();\n Stack<Matriz> closedS = new Stack<>();\n //open = [start]\n openS.add(matriz);\n \n while (!openS.isEmpty()) {\n int x = -1, y = -1;\n //x = pop\n Matriz matriz1 = openS.pop();\n //verifica se existem espacos em branco, ou seja iguais 0 na matriz\n if(matriz1.proximoBranco()!= null){\n x = matriz1.proximoBranco()[0];\n y = matriz1.proximoBranco()[1];\n }\n //x é objetivo retorne sucesso\n if (matriz1.completa()) {\n if(execSpeed != 0)\n clrscr();\n System.out.println(\"Matriz resolvida\");\n matriz1.printMatriz();\n contador++;\n break;\n } else {\n if (x >= 0 && y >= 0) {\n //gera os filhos\n for (int i = 1; i <= tamanho; i++) {\n Matriz copia = new Matriz();\n //cria matriz de copia\n copia.copiaMatriz(matriz1);\n\n if(funcao == 2)\n /*busca desinformada gera de 1 a 9 todos os filhos */ \n copia.set(x, y, i);\n else{\n //busca informada: qtadeDeNumeros gera a quantidades de numeros que existem \n //para cada numero de 1 a 9 \n copia.qtadeDeNumeros();\n //ordena o vetor de menor para maior em quantidade de aparicoes\n copia.menorEmQuantidade();\n //seta a partir do numero com maior numero de aparicoes\n copia.set(x, y, copia.getArray().get(i-1).getKey());\n }\n /*comandos p printar filhos\n System.out.println(\"Matriz NAO resolvida\");\n copia.printMatriz();\n se nao tiver sido vizitada e se nao tiver conflitos, adiciona na open */\n if ((!openS.contains(copia) || !closedS.contains(copia)) && copia.semConflitos()){\n openS.add(copia);\n }\n }\n //push(closed, X) \n closedS.add(matriz1);\n } else {\n //push(closed, X) caso nao tenha espacos vazios e nao seja sudoku resolvido\n closedS.add(matriz1);\n }\n }\n try { Thread.sleep (execSpeed); } catch (InterruptedException ex) {}\n if (execSpeed != 0){\n //limpa tela\n clrscr();\n //imprime matriz que passou\n System.out.println(\"Matriz Parcial\");\n matriz1.printMatriz();\n System.out.println(\"Iteracao: \"+contador+\" Tempo: \"\n +((System.currentTimeMillis()-tempoInicio)/1000)+\" segundo(s)\");\n }\n contador++;\n }\n //funcao == 3 (Busca em Largura)\n } else {\n //filas\n Queue<Matriz> openQ = new LinkedList<>();\n Queue<Matriz> closedQ = new LinkedList<>();\n //open = [start]\n openQ.add(matriz);\n \n while (!openQ.isEmpty()) {\n int x = -1, y = -1;\n Matriz matriz1 = openQ.remove();\n //verifica se existem espacos em branco, ou seja iguais 0 na matriz\n if(matriz1.proximoBranco()!= null){\n x = matriz1.proximoBranco()[0];\n y = matriz1.proximoBranco()[1];\n }\n //x é objetivo retorne sucesso\n if (matriz1.completa()) {\n if(execSpeed != 0)\n clrscr();\n System.out.println(\"Matriz resolvida\");\n matriz1.printMatriz();\n contador++;\n break;\n }\n else {\n if (x >= 0 && y >= 0) {\n //gera os filhos\n for (int i = 1; i <= tamanho; i++) {\n Matriz copia = new Matriz();\n //cria matriz de copia\n copia.copiaMatriz(matriz1);\n\n /*busca desinformada gera de 1 a 9 todos os filhos */ \n copia.set(x, y, i);\n /*comandos p printar filhos\n System.out.println(\"Matriz NAO resolvida\");\n copia.printMatriz();\n se nao tiver sido vizitada e se nao tiver conflitos, adiciona na open */\n if ((!openQ.contains(copia) || !closedQ.contains(copia)) && copia.semConflitos()){\n openQ.add(copia);\n }\n }\n //push(closed, X) \n closedQ.add(matriz1);\n } else {\n //push(closed, X) caso nao tenha espacos vazios e nao seja sudoku resolvido\n closedQ.add(matriz1);\n }\n }\n try { Thread.sleep (execSpeed); } catch (InterruptedException ex) {}\n if (execSpeed != 0){\n //limpa tela\n clrscr();\n //imprime matriz que passou\n System.out.println(\"Matriz Parcial\");\n matriz1.printMatriz();\n System.out.println(\"Iteracao: \"+contador+\" Tempo: \"\n +((System.currentTimeMillis()-tempoInicio)/1000)+\" segundo(s)\");\n }\n contador++;\n }\n }\n //fim da execucao. Sudoku resolvido\n System.out.println(\"Sudoku Resolvido\");\n if((System.currentTimeMillis()-tempoInicio) < 60000){\n System.out.println(\"Iteracoes: \"+contador+\" Tempo Total: \"\n +((System.currentTimeMillis()-tempoInicio)/1000)+\" segundo(s)\");\n } else {\n System.out.println(\"Iteracoes: \"+contador+\" Tempo Total: \"\n +((System.currentTimeMillis()-tempoInicio)/1000/60)+\" minuto(s) e \"\n +((System.currentTimeMillis()-tempoInicio)/1000%60)+\" segundo(s)\");\n }\n }",
"@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}",
"public void viewListofLocks() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of locks\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of locks\");\n\t\t}\n\t}",
"private void checkForWin()\n\t\t\t{\n\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (win[j] == 3)\n\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbugflag = true;\n\t\t\t\t\t\t\t\tresult = j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent it1 = new Intent(Main.this, Result.class);\n\t\t\t\t\t\t\t\tBundle b = new Bundle();\n\t\t\t\t\t\t\t\tb.putString(\"result\",\n\t\t\t\t\t\t\t\t\t\t\"You were lucky this time \" + name\n\t\t\t\t\t\t\t\t\t\t\t\t+ \". You won!\");\n\t\t\t\t\t\t\t\tit1.putExtras(b);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tstartActivity(it1);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t}",
"public void displayAll()\n {\n try\n {\n int i=0;\n for(HardwareDevice equip:equipment)\n {\n System.out.println(\"Equipment Number : \"+i);\n i++;\n equip.DisplayHardwareDevice();\n }\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void solucionar() \r\n\t{\r\n\t\tString imagen = sudoku.solucionar();\r\n\t\tactualizarInformacion();\r\n\t\tactualizarImagen(imagen);\r\n\t\tJOptionPane.showMessageDialog( this, \"Has completado satisfactoriamente el Sudoku\", \"Validar\", JOptionPane.INFORMATION_MESSAGE );\r\n\t\tpanelOpciones.deshabilitarBotones();\r\n\t\tpanelMovimiento.deshabilitarBotones();\r\n\t}",
"public void createScreenDialogs() {\n\t\tint colNumber, rowNumber = 0;\n\n\t\tcolNumber = 0;\n\t\tairportScreen1Dialog.setVisible(true);\n\t\tairportScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\tairportScreen2Dialog.setVisible(true);\n\t\tairportScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermAScreen1Dialog.setVisible(true);\n\t\ttermAScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermAScreen2Dialog.setVisible(true);\n\t\ttermAScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermAScreen3Dialog.setVisible(true);\n\t\ttermAScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermBScreen1Dialog.setVisible(true);\n\t\ttermBScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermBScreen2Dialog.setVisible(true);\n\t\ttermBScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermBScreen3Dialog.setVisible(true);\n\t\ttermBScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermCScreen1Dialog.setVisible(true);\n\t\ttermCScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermCScreen2Dialog.setVisible(true);\n\t\ttermCScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermCScreen3Dialog.setVisible(true);\n\t\ttermCScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tfor (int i = 0; i < gatesADialogs.length; ++i) {\n\t\t\tgatesADialogs[i] = new ScreenDialog(this, \"GATE A-\" + (i + 1), 0);\n\t\t\tgatesADialogs[i].setVisible(true);\n\t\t\tgatesADialogs[i].setLocation(i * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\t}\n\n\t\t++rowNumber;\n\t\tint maxRowLength = 4; // Layout on two rows\n\t\tfor (int i = 0; i < gatesBDialogs.length; ++i) {\n\t\t\tgatesBDialogs[i] = new ScreenDialog(this, \"GATE B-\" + (i + 1), 0);\n\t\t\tgatesBDialogs[i].setVisible(true);\n\t\t\tgatesBDialogs[i].setLocation((i % (maxRowLength + 1)) * ScreenDialog.WIDTH,\n\t\t\t\t\trowNumber * ScreenDialog.HEIGHT);\n\t\t\tif (i == maxRowLength)\n\t\t\t\t++rowNumber;\n\t\t}\n\n\t\t++rowNumber;\n\t\tfor (int i = 0; i < gatesCDialogs.length; ++i) {\n\t\t\tgatesCDialogs[i] = new ScreenDialog(this, \"GATE C-\" + (i + 1), 0);\n\t\t\tgatesCDialogs[i].setVisible(true);\n\t\t\tgatesCDialogs[i].setLocation(i * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\t}\n\t}",
"public synchronized void startSolving()\n/* */ {\n/* 373 */ setKeepSolving(true);\n/* */ \n/* */ \n/* 376 */ if ((!this.solving) && (this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 379 */ setSolving(true);\n/* 380 */ setKeepSolving(true);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 387 */ fireTabuSearchStarted();\n/* */ \n/* */ \n/* */ \n/* 391 */ TabuSearch This = this;\n/* */ \n/* 393 */ Thread t = new Thread(new Runnable() {\n/* */ private final TabuSearch val$This;\n/* */ \n/* */ public void run() {\n/* 397 */ while ((MultiThreadedTabuSearch.this.keepSolving) && (MultiThreadedTabuSearch.this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 400 */ synchronized (this.val$This)\n/* */ {\n/* 402 */ MultiThreadedTabuSearch.this.iterationsToGo -= 1;\n/* */ try\n/* */ {\n/* 405 */ MultiThreadedTabuSearch.this.performOneIteration();\n/* */ }\n/* */ catch (NoMovesGeneratedException e)\n/* */ {\n/* 409 */ if (SingleThreadedTabuSearch.err != null)\n/* 410 */ SingleThreadedTabuSearch.err.println(e);\n/* 411 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* */ catch (NoCurrentSolutionException e)\n/* */ {\n/* 415 */ if (SingleThreadedTabuSearch.err != null)\n/* 416 */ SingleThreadedTabuSearch.err.println(e);\n/* 417 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* 419 */ MultiThreadedTabuSearch.this.incrementIterationsCompleted();\n/* 420 */ this.val$This.notifyAll();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 425 */ synchronized (this.val$This)\n/* */ {\n/* */ \n/* */ \n/* 429 */ MultiThreadedTabuSearch.this.setSolving(false);\n/* 430 */ MultiThreadedTabuSearch.this.setKeepSolving(false);\n/* */ \n/* */ \n/* 433 */ if (MultiThreadedTabuSearch.this.helpers != null)\n/* 434 */ for (int i = 0; i < MultiThreadedTabuSearch.this.helpers.length; i++)\n/* 435 */ MultiThreadedTabuSearch.this.helpers[i].dispose();\n/* 436 */ MultiThreadedTabuSearch.this.helpers = null;\n/* */ \n/* */ \n/* 439 */ MultiThreadedTabuSearch.this.fireTabuSearchStopped();\n/* 440 */ this.val$This.notifyAll(); } } }, \"MultiThreadedTabuSearch-Master\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 448 */ t.setPriority(this.threadPriority);\n/* 449 */ t.start();\n/* */ }\n/* 451 */ notifyAll();\n/* */ }",
"public static void yourResults()\r\n\t{\r\n\r\n\t\t\r\n\t\tString[] options = {\"In relation to myself\", \"In relation to everyone\"};\r\n\t\tObject panel = JOptionPane.showInputDialog(null, \" I want to see where I am stand\", \"Message\", JOptionPane.INFORMATION_MESSAGE, null, options, options[0]);\r\n\r\n\t\tif (panel == \"In relation to myself\")\r\n\t\t{\r\n\t\t\tString forID = \"\";\r\n\t\t\tint ID;\r\n\t\t\tforID = JOptionPane.showInputDialog(null, \" What is your ID ?\");\r\n\t\t\ttry {\r\n\t\t\t\tID = Integer.parseInt(forID);\r\n\r\n\t\t\t\tString forPrintAns = \"\";\r\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tConnection connect = DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\r\n\t\t\t\tStatement statement = connect.createStatement();\r\n\t\t\t\tString query = \"SELECT * FROM Logs WHERE UserID =\" + ID + \" ORDER BY levelID , moves;\";\r\n\t\t\t\tResultSet result = statement.executeQuery(query);\r\n\r\n\t\t\t\t//my level now\r\n\t\t\t\twhile (result.next()) {\r\n\t\t\t\t\tforPrintAns += result.getInt(\"UserID\") + \",\" + result.getInt(\"levelID\") + \",\" + result.getInt(\"moves\") + \",\" + result.getInt(\"score\")+\"E\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString forPrintRusults = \"\";\r\n\t\t\t\tString[] arr;\r\n\t\t\t\tint numOfGames = 0;\r\n\r\n\t\t\t\tint level = 0;\r\n\t\t\t\tint moves = -1;\r\n\t\t\t\tint grade = 0;\r\n\r\n\t\t\t\tboolean flag=false;\r\n\t\t\t\tint maxGrade=Integer.MIN_VALUE;\r\n\t\t\t\tint saveMove=0;\r\n\t\t\t\tString for1=\"\",for3=\"\",for5=\"\",for9=\"\",for11=\"\",for13=\"\",for16=\"\",for20=\"\",for19=\"\",for23=\"\";\r\n\r\n\t\t\t\tint index = 3;\r\n\t\t\t\tfor (int i = 0; i < forPrintAns.length(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (forPrintAns.charAt(i) == 'E')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumOfGames++;\r\n\t\t\t\t\t\tString help = forPrintAns.substring(index, i);\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tarr = help.split(\",\");\r\n\t\t\t\t\t\t// System.out.println(Arrays.deepToString(arr));\r\n\r\n\t\t\t\t\t\tswitch(level) {\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\tif (grade >= 125 && moves <= 290)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tforPrintRusults= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 436&& moves <= 580)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor1= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 3:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 713&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor3= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 5:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 570&& moves <= 500)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfor5= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 9:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 480&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor9= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 11:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 1050&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor11= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 13:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 310&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor13= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 16:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 235&& moves <= 290)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor16= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 19:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 250&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor19= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 20:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 200&& moves <= 290)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor20= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 23:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 1000&& moves <= 1140)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor23= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\tmoves = Integer.parseInt(arr[2]);\r\n\t\t\t\t\t\tgrade = Integer.parseInt(arr[3]);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tforPrintRusults +=\"\\n\"+for1+\"\\n\"+for3+\"\\n\"+for5+\"\\n\"+for9+\"\\n\"+for11+\"\\n\"+for13+\"\\n\"+for16+\"\\n\"+for20+\"\\n\"+for19+\"\\n\"+for23+\"\\n\";\r\n\t\r\n\t\t\t\tforPrintRusults += \"your level is \" + level + \" and so far you played \" + numOfGames + \" games.\";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, forPrintRusults);\r\n\t\t\t\tresult.close();\r\n\t\t\t\tstatement.close();\r\n\t\t\t\tconnect.close();\r\n\t\t\t} catch (SQLException e)\r\n\t\t\t{\r\n\t\t\t\te.getMessage();\r\n\t\t\t\te.getErrorCode();\r\n\t\t\t} catch (ClassNotFoundException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (panel == \"In relation to everyone\")\r\n\t\t{\r\n\t\t\tString forPrintAns = \"\";\r\n\t\t\tString StringID = JOptionPane.showInputDialog(null, \"What is your ID ? \");\r\n\t\t\ttry {\r\n\t\t\t\tint NumberID = Integer.parseInt(StringID);\r\n\t\t\t\tConnection connect =DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\r\n\t\t\t\tStatement statement = connect.createStatement();\r\n\t\t\t\tString query = \"SELECT * FROM Logs ORDER BY levelID , score;\";\r\n\t\t\t\tResultSet result = statement.executeQuery(query);\r\n\t\t\t\t\r\n\t\t\t\tint myPlace = 1; \r\n\t\t\t\tint level = 0; \r\n\t\t\t\tint grade = 0; \r\n\t\t\t\t\r\n\t\t\t\tString forPrintRusults = \"\";\r\n\t\t\t\tList<String> IDList = new ArrayList<>();\r\n\t\t\t\r\n\r\n\t\t\t\twhile (result.next())\r\n\t\t\t\t{\r\n\t\t\t\t\tforPrintAns += (\"Id: \" + result.getInt(\"UserID\") + \",\" + result.getInt(\"levelID\") + \",\" + result.getInt(\"score\") + \",\" + result.getDate(\"time\") + \"E\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint index = 0;\r\n\t\t\t\tboolean weCanPrint = false; \r\n\t\t\t\tboolean notExistID = true;\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < forPrintAns.length(); i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (forPrintAns.charAt(i) == 'E')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnotExistID = true;\r\n\t\t\t\t\t\tString help = forPrintAns.substring(index, i);\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tString[] arr = help.split(\",\");\r\n\t\t\t\t\t\tfor (int j = 0; j < IDList.size(); j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (IDList.get(j).equals(arr[0])) //return id\r\n\t\t\t\t\t\t\t\tnotExistID = false;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (notExistID)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tIDList.add(arr[0]);\r\n\t\t\t\t\t\t\tmyPlace++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Integer.parseInt(arr[1]) != level && weCanPrint) //we finished to check this level \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tforPrintRusults += \"Level: \" + level + \" Grade: \" + grade + \" your Place is:\" + myPlace + \"\\n\";\r\n\t\t\t\t\t\t\tmyPlace = 1;\r\n\t\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\t\tweCanPrint = false;\r\n\t\t\t\t\t\t\tIDList.clear();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif (arr[0].contains(\"\" + NumberID)) //the id it's my id\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\t\tweCanPrint = true;\r\n\t\t\t\t\t\t\tgrade = Integer.parseInt(arr[2]);\r\n\t\t\t\t\t\t\tmyPlace = 1;\r\n\t\t\t\t\t\t\tIDList.clear();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(null, forPrintRusults);\r\n\r\n\t\t\t} catch (SQLException e)\r\n\t\t\t{\r\n\t\t\t\te.getMessage();\r\n\t\t\t\t\r\n\t\t\t\te.getErrorCode();\r\n\t\t\t} \r\n\t\t}\r\n\t}",
"public SudokuContainer getSolutions() {return container;}",
"private void printSelectionCountResults(){\n\t\tSystem.out.print(\"\\n\");\n\t\tfor(Character answer: q.getPossibleAnswers()){\n\t\t\tSystem.out.print(answer+\": \"+selections.get(q.getPossibleAnswers().indexOf(answer))+\"\\n\");\n\t\t}\n\t}",
"private static ArrayList<Integer> getInterestingHalPids() {\r\n try {\r\n IServiceManager serviceManager = IServiceManager.getService();\r\n ArrayList<IServiceManager.InstanceDebugInfo> dump =\r\n serviceManager.debugDump();\r\n HashSet<Integer> pids = new HashSet<>();\r\n for (IServiceManager.InstanceDebugInfo info : dump) {\r\n if (info.pid == IServiceManager.PidConstant.NO_PID) {\r\n continue;\r\n }\r\n\r\n if (Watchdog.HAL_INTERFACES_OF_INTEREST.contains(info.interfaceName) ||\r\n CAR_HAL_INTERFACES_OF_INTEREST.contains(info.interfaceName)) {\r\n pids.add(info.pid);\r\n }\r\n }\r\n\r\n return new ArrayList<Integer>(pids);\r\n } catch (RemoteException e) {\r\n return new ArrayList<Integer>();\r\n }\r\n }",
"public void findSolution() {\n\n\t\t// TODO\n\t}",
"public static void main(String[] args) {\n\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint row =0,col = 0;\r\n\t\tint user = -1;\r\n\t\t\r\n\t\twhile (user != 0 && user != 1 && user != 2) {\r\n\t\t\tSystem.out.println(\"\\n************************************\");\r\n\t\t\tSystem.out.println(\"\\nEnter difficulty level\");\r\n\t\t\tSystem.out.println(\"Press 0 for BEGINNER 9*9 cells and 10 mines\");\r\n\t\t\tSystem.out.println(\"Press 1 for INTERMEDIATE 16*16 cells and 40 mines\");\r\n\t\t\tSystem.out.println(\"Press 2 for ADVANCED 24*24 cells and 99 mines\\n\");\r\n\t\t\tuser = input.nextInt();\r\n\t\t\tSystem.out.println(\"\\n************************************\");\r\n\t\t\tif (user == 0) {\r\n\t\t\t\t\r\n\t\t\t\trow = 9; col = 9;\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse if (user == 1){ \r\n\t\t\t\t\r\n\t\t\t\trow = 16; col = 16;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if (user == 2){\r\n\t\t\t\t\r\n\t\t\t\trow = 24; col = 24;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tchar[][] board = new char[row][col];\r\n\t\t\r\n\t\tinitBoard(board);\r\n\t\t\r\n\t\tint [][] solution = new int[row][col];\r\n\t\tint [][] playboard = new int[row][col];\r\n\t\tfor(int i=0;i<solution.length;i++){\r\n\t\t\t\r\n\t\t\tfor(int j=0;j<solution[0].length;j++){\r\n\t\t\t\t\r\n\t\t\t\tsolution[i][j]=0;playboard[i][j] =0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\tint mine = 0;\r\n\t\t\r\n\t\tif (row == 9) mine = 10;\r\n\t\telse if (row == 16) mine = 40;\r\n\t\telse if (row == 24) mine = 99;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tint countplay = mine;fillBoard(board,mine);\r\n\t\t\r\n\t\tfor(int i=0;i<board.length;i++){\r\n\t\t\t\r\n\t\t\tfor(int j=0;j<board[0].length;j++){\r\n\t\t\t\t\r\n\t\t\t\tint r = i;\r\n\t\t\t\tint c =j;\r\n\t\t\t\tif(board[i][c] == '*'){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r>0 && c>0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r-1][c-1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r-1][c-1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r >0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r-1][c] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r-1][c] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r >0 && c+1 < board[0].length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r-1][c+1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r-1][c+1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(c >0){if(board[r][c-1] == '.'){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsolution[r][c-1] += 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(c+1 < board[0].length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r][c+1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r][c+1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r +1 < board.length && c >0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r+1][c-1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r+1][c-1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r +1 < board.length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r+1][c] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r+1][c] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r +1 < board.length && c+1 <board[0].length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r+1][c+1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r+1][c+1] += 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}\r\n\t\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\n************************************\");\r\n\t\tSystem.out.println(\"\\nPlay Game\");\r\n\t\tSystem.out.println(\"\\nRows and Columns start from 0!\");\r\n\t\tSystem.out.println(\"\\n************************************\");\r\n\t\tprintBoard(board);\r\n\t\t\r\n\t\twhile(countplay <=board.length * board[0].length){\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\\nEnter row: \");\r\n\t\t\t\r\n\t\t\tint prow = input.nextInt();System.out.println(\"\\nEnter col: \");\r\n\t\t\tint pcol = input.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<board.length;i++){\r\n\t\t\t\tfor(int j=0;j<board[0].length;j++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(board[prow][pcol] == '*'){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"GAME OVER\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int k=0;k<solution.length;k++){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor(int x=0;x<solution[0].length;x++){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(board[k][x]=='*')\r\n\t\t\t\t\t\t\t\t\tSystem.out.print(\"*\" + \" \");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tSystem.out.print(solution[k][x] + \"\");\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\t\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn;\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{playboard[prow][pcol] = solution[prow][pcol];\r\n\t\t\t\t\ti=board.length;\r\n\t\t\t\t\tj=board[0].length;break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\tfor(int k=0;k<playboard.length;k++){\r\n\t\t\t\t\r\n\t\t\t\tfor(int x=0;x<playboard[0].length;x++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(board[k][x]=='*')\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(playboard[k][x]==0)\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\tSystem.out.print(playboard[k][x] + \" \");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcountplay++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Congratulations\");\r\n\t\t\r\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}",
"public void showHeuristics() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n System.out.printf(\"%3d\", getSquareAccessibility(row, col));\n if (col == BOARD_SIZE - 1) {\n System.out.println();\n }\n }\n }\n }",
"public static void main(String args[]){\n\n QueenBoard zero = new QueenBoard(0);\n QueenBoard one = new QueenBoard(1);\n QueenBoard two = new QueenBoard(2);\n QueenBoard three = new QueenBoard(3);\n QueenBoard four = new QueenBoard(4);\n QueenBoard five = new QueenBoard(5);\n QueenBoard six = new QueenBoard(6);\n QueenBoard seven = new QueenBoard(7);\n QueenBoard eight = new QueenBoard(8);\n QueenBoard nine = new QueenBoard(9);\n\n\n //testing solve\n //also commented out as clear is private \n /*\n System.out.println(one.solve());\n one.clear();*/\n\n //tested countSolutions and the numbers crunched seem right\n //so by this olgic I can seemingly safely assume solve() works\n // as intended\n System.out.println(zero.countSolutions());\n System.out.println(one.countSolutions());\n System.out.println(two.countSolutions());\n System.out.println(three.countSolutions());\n System.out.println(four.countSolutions());\n System.out.println(five.countSolutions());\n System.out.println(six.countSolutions());\n System.out.println(seven.countSolutions());\n System.out.println(eight.countSolutions());\n System.out.println(nine.countSolutions());\n\n\n //check to make sure countSolutions keeps the board clear and it does\n System.out.println(nine);\n\n }",
"void printSubgraphs() {\n StringBuilder sb = new StringBuilder();\n for(int sgKey: listOfSolutions.keySet()) {\n HashMap<Integer, Long> soln = listOfSolutions.get(sgKey);\n // inside a soln\n //sb.append(\"S:8:\");\n for(int key: soln.keySet()) {\n sb.append(key + \",\" + soln.get(key) + \";\");\n\n }\n sb.setLength(sb.length() - 1);\n sb.append(\"\\n\");\n }\n System.out.println(\"\\n\" + sb.toString());\n }",
"public void solve() {\n System.out.println(\"Solving...\");\n solving = true;\n Solver s = new Solver(b.getBoard());\n ArrayList<Integer> solution = s.solve();\n\n System.out.println(\"Printing solution...\");\n try{\n Thread.sleep(300);\n }catch (Exception e){}\n\n solution.trimToSize();\n\n solveMoves = solution;\n\n Board bRef = new Board(b.getBoard());\n\n System.out.println(\"Step 0\");\n System.out.println(bRef.toString());\n\n for (int i = 0; i < solution.size(); i++) {\n bRef.move(solution.get(i));\n System.out.println(\"Step \" + (i + 1));\n System.out.println(bRef.toString());\n }\n\n System.out.println(\"Solved by Computer in \" + solution.size()+ \" move(s).\\n\");\n System.out.println(\"Left-click screen to follow steps.\");\n System.out.println(\"Right-click the screen to play again.\");\n\n solveStep = 0; //Reset for user\n }",
"private void checkAnswers() {\n\n //fetch the SolutionInts\n String[] solutionTags = currentTask.getSolutionStringArray();\n\n //fetch the userInput\n String[] userSolution = new String[solutionTags.length];\n for (int i = 0; i < solutionTags.length; i++) {\n LinearLayout linearLayout = currentView.findViewWithTag(i);\n userSolution[i] = (String) linearLayout.getChildAt(0).getTag();\n }\n\n Log.i(\"M_ORDER\",\"solutiontags: \"+ Arrays.toString(solutionTags) +\" usertags:\"+ Arrays.toString(userSolution));\n Date ended;\n if (Arrays.equals(solutionTags, userSolution)) {\n ended = Calendar.getInstance().getTime();\n String duration = progressController.calculateDuration(entered, ended);\n progressController.makeaDurationLog(getContext(),Calendar.getInstance().getTime(), \"EXERCISE_ORDER_FRAGMENT_RIGHT\", \"number: \" + currentTask.getTaskNumber() + \" section: \"+currentTask.getSectionNumber()+\" viewtype: \"+currentTask.getExerciseViewType()+\" userInput: \" + Arrays.toString(userSolution),duration);\n mListener.sendAnswerFromExerciseView(true);\n Log.i(\"M_EXERCISE_VIEW_ORDER\", \" send answer: true\");\n } else {\n Log.i(\"ANSWER\", \" was wrong\");\n ended = Calendar.getInstance().getTime();\n String duration = progressController.calculateDuration(entered, ended);\n progressController.makeaDurationLog(getContext(),Calendar.getInstance().getTime(), \"EXERCISE_ORDER_FRAGMENT_WRONG\", \"number: \" + currentTask.getTaskNumber() + \" section: \"+currentTask.getSectionNumber()+\" viewtype: \"+currentTask.getExerciseViewType()+\" userInput: \" + Arrays.toString(userSolution),duration);\n mListener.sendAnswerFromExerciseView(false);\n Log.i(\"M_EXERCISE_VIEW_ORDER\", \" send answer: false\");\n }\n }",
"private synchronized void verifyVariantsWithProblems() {\r\n\t\tthreadInExecId.remove(Thread.currentThread().getId());\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tfinal Display display = Display.getDefault();\r\n\t\t\tif (display == null) {\r\n\t\t\t\tthrow new NullPointerException(\"Display is null\");\r\n\t\t\t}\r\n\t\t\tdisplay.syncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tInvalidProductViewController invalidProductViewController = InvalidProductViewController\r\n\t\t\t\t\t\t\t.getInstance();\r\n\t\t\t\t\tinvalidProductViewController.showInvalidProduct();\r\n\r\n\t\t\t\t\tif (!ProjectConfigurationErrorLogger.getInstance()\r\n\t\t\t\t\t\t\t.getProjectsList().isEmpty()) {\r\n\t\t\t\t\t\tList<InvalidProductViewLog> logs = new LinkedList<InvalidProductViewLog>();\r\n\t\t\t\t\t\tfor (String s : ProjectConfigurationErrorLogger\r\n\t\t\t\t\t\t\t\t.getInstance().getProjectsList()) {\r\n\t\t\t\t\t\t\tlogs.add(new InvalidProductViewLog(s));\r\n\t\t\t\t\t\t\tSystem.out.println(s);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tinvalidProductViewController.adaptTo(logs\r\n\t\t\t\t\t\t\t\t.toArray(new InvalidProductViewLog[logs.size()]));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Clear view\r\n\t\t\t\t\t\tinvalidProductViewController.clear();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n\t}",
"public void solve() {\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n\n // if the current Cell contains a mine, let's skip this iteration.\n if (this.cells[i][j].hasMine()) continue;\n\n // for all non-mine cells, set the default value to 0\n cells[i][j].setValue('0');\n\n // let's get all Cells surrounding the current Cell,\n // checking if the other Cells have a mine.\n // if there is a mine Cell touching the current Cell,\n // proceed to update the value of the current Cell.\n Cell topCell = get_top_cell(i, j);\n if (topCell != null && topCell.hasMine() == true) update_cell(i, j);\n\n Cell trdCell = get_top_right_diagnoal_cell(i, j);\n if (trdCell != null && trdCell.hasMine() == true) update_cell(i, j);\n\n Cell rightCell = get_right_cell(i, j);\n if (rightCell != null && rightCell.hasMine() == true) update_cell(i, j);\n\n Cell brdCell = get_bottom_right_diagnoal_cell(i, j);\n if (brdCell != null && brdCell.hasMine() == true) update_cell(i, j);\n\n Cell bottomCell = get_bottom_cell(i, j);\n if (bottomCell != null && bottomCell.hasMine() == true) update_cell(i, j);\n\n Cell bldCell = get_bottom_left_diagnoal_cell(i, j);\n if (bldCell != null && bldCell.hasMine() == true) update_cell(i, j);\n\n Cell leftCell = get_left_cell(i, j);\n if (leftCell != null && leftCell.hasMine() == true) update_cell(i, j);\n\n\n Cell tldCell = get_top_left_diagnoal_cell(i, j);\n if (tldCell != null && tldCell.hasMine() == true) update_cell(i, j);\n }\n }\n\n // print the solution to System out\n print_solution();\n }",
"void PrintWithSolution() {\n gameArea.disPlay();\n }",
"public static void printSolutionTable() {\n\t\tIAWorklist.printSolutionTable();\n\n\t}",
"public void testWorkspace_items_not_merged_in_next_screen() throws Exception {\n long[][][] ids = createGrid(new int[][][]{{\n { 0, 0, 0, 1},\n { 3, 1, 0, 4},\n { -1, -1, -1, -1},\n { 5, 2, -1, 6},\n },{\n { -1, 0, -1, 1},\n { 3, 1, -1, 4},\n { -1, -1, -1, -1},\n { 5, 2, -1, 6},\n }});\n\n new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(),\n new Point(4, 4), new Point(3, 3)).migrateWorkspace();\n\n // Items in the second column of the first screen should get placed on a new screen.\n verifyWorkspace(new long[][][] {{\n {ids[0][0][0], ids[0][0][1], ids[0][0][3]},\n {ids[0][1][0], ids[0][1][1], ids[0][1][3]},\n {ids[0][3][0], ids[0][3][1], ids[0][3][3]},\n }, {\n { -1, ids[1][0][1], ids[1][0][3]},\n {ids[1][1][0], ids[1][1][1], ids[1][1][3]},\n {ids[1][3][0], ids[1][3][1], ids[1][3][3]},\n }, {\n {ids[0][0][2], ids[0][1][2], -1},\n }});\n }",
"public static void printPerfectNumbers(){\n\t\tfor(Long x:result){\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}",
"public void findSolution() {\n\t\tif (lenA > lenB) {\n\t\t\toptPairs = new String[lenB];\n\t\t} else {\n\t\t\toptPairs = new String[lenA];\n\t\t}\n\n\t\tint counter = 0;\n\t\tint i = lenA;\n\t\tint j = lenB;\n\n\t\twhile(i>0 && j>0) {\n\t\t\tif (optArray[i][j] == g+optArray[i-1][j]) {\n\t\t\t\ti--;\n\t\t\t}\n\t\t\telse if (optArray[i][j] == g+optArray[i][j-1]) {\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse {\n\t\t\t\toptPairs[counter] = i + \" \" + j;\n\t\t\t\tcounter++;\n\t\t\t\ti--;\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\n\t\tpairNum = counter;\n\n\t}",
"public Iterable<Board> solution() {\n\n return initialSolvable ? solutionBoards : null;\n }",
"public boolean helpForAll()\n {\n boolean action = false;\n //boolean value2048 = false;\n \n int i = 0;\n \n // Faire {...} tant qu'on a pu effectuer une action le coup précédent //et tant qu'on a pas rencontré la valeur 2048 \n do\n {\n action = helpForOne();\n //System.out.println(i++);\n //System.out.println(\"Action : \"+action);\n this.displayGrid();\n } while (action);\n //} while (action && !value2048);\n \n return action;\n }",
"public Iterable<Board> solution() {\n if (!isSolvable) return null;\n return solutions;\n }",
"public Iterable<Board> solution() {\n\t\treturn result;\n\t}",
"public boolean solve(boolean verbose, Window window) throws InterruptedException {\n long time = System.currentTimeMillis();\n HashMap<TileColor, Piece> pieceMap = new HashMap<>();\n pieceMap.put(TileColor.RED, new RedPiece(new int[]{2, 1}, 0));\n pieceMap.put(TileColor.PURPLE, new PurplePiece(new int[]{0, 0}, 0));\n pieceMap.put(TileColor.BLUE, new BluePiece(new int[]{3, 5}, 0));\n pieceMap.put(TileColor.YELLOW, new YellowPiece(new int[]{2, 6}, 0));\n pieceMap.put(TileColor.ORANGE, new OrangePiece(new int[]{2, 3}, 0));\n pieceMap.put(TileColor.GREEN, new GreenPiece(new int[]{1, 2}, 0));\n pieceMap.put(TileColor.PINK, new PinkPiece(new int[]{3, 0}, 0));\n\n HashMap<TileColor, ArrayList<int[]>> moveMap = new HashMap<>();\n for (TileColor t: TileColor.values()) {\n if (t == TileColor.BLACK) { continue; }\n ArrayList<int[]> moves = new ArrayList<>();\n Piece p = pieceMap.get(t);\n for (int rot = 0; rot < 6; rot++) {\n p.updateRotation(rot);\n for (int row = 0; row < 4; row++) {\n for (int col = 0; col < 7; col++) {\n p.location = new int[]{row, col};\n p.generateTiles();\n boolean fits = true;\n for (Tile tile : p.tiles) {\n if (tile.loc[0] + row - p.location[0] > 3 || tile.loc[0] + row - p.location[0] < 0) {\n fits = false;\n }\n if (tile.loc[1] + col - p.location[1] > 6 || tile.loc[1] + col - p.location[1] < 0) {\n fits = false;\n }\n if ((tile.loc[0] + row - p.location[0]) % 2 == 1 && tile.loc[1] + col - p.location[1] == 6) {\n fits = false;\n }\n if (!fits) {\n break;\n }\n }\n if (fits) {\n // Add this move if it satisfies all constraints\n boolean isSatisfied = true;\n for (TileColor constraintType: TileColor.values()) {\n if (constraintType != TileColor.BLACK) {\n for (Constraint c : constraints.get(constraintType)) {\n if (!c.isSatisfiedBy(p)) {\n isSatisfied = false;\n break;\n }\n }\n }\n }\n if (isSatisfied) {\n // Does it block off a piece of the board corner? If not, it is a legal move\n moves.add(new int[]{row, col, rot});\n }\n }\n }\n }\n }\n moveMap.put(t, moves);\n }\n if (verbose) {\n System.out.println(\"Moves computed in \" + (System.currentTimeMillis() - time)+ \" ms.\");\n }\n\n // Now we have moveMap which contains possible moves for each piece that satisfy all of its constraints\n\n // The next step is to remove any duplicates. We can disregard any rotation 3 from the red or the purple\n ArrayList<int[]> redMoves = new ArrayList<>();\n for (int[] move: moveMap.get(TileColor.RED)) {\n if (move[2] != 3) {\n redMoves.add(move);\n }\n }\n moveMap.put(TileColor.RED, redMoves);\n\n ArrayList<int[]> purpleMoves = new ArrayList<>();\n for (int[] move: moveMap.get(TileColor.PURPLE)) {\n if (move[2] != 3) {\n purpleMoves.add(move);\n }\n }\n moveMap.put(TileColor.PURPLE, purpleMoves);\n\n // Now we only have states that are actually unique\n if (verbose) {\n System.out.println(\"Moves Per Color:\");\n }\n long total = 1;\n ArrayList<TileColor> colors = new ArrayList<>();\n for (TileColor t: TileColor.values()) {\n if (t != TileColor.BLACK) {\n colors.add(t);\n if (verbose) {\n System.out.println(\" \" + t + \": \" + moveMap.get(t).size());\n }\n total *= moveMap.get(t).size();\n }\n }\n if (verbose) {\n System.out.println();\n System.out.println(\"Total combinations: \" + total);\n }\n\n // We want to order our tile colors by who has the least options first\n class SortByCombinations implements Comparator<TileColor> {\n public int compare(TileColor a, TileColor b) {\n return moveMap.get(a).size() - moveMap.get(b).size();\n }\n }\n colors.sort(new SortByCombinations());\n\n // At this point, colors is ordered from least to most options\n // Now we can actually start solving\n\n iterations = 0;\n boolean success = DFS(0, colors, moveMap, pieceMap, verbose, window);\n if (!success && verbose) {\n System.out.println(\"Failed.\");\n }\n if (verbose) {\n System.out.println(\"Took \" + (System.currentTimeMillis() - time) + \" ms.\");\n }\n return success;\n\n }",
"public int[][] findSolution(){\n this.hasSolution = false;\n BoardStatus solution = findSolution(1, new BoardStatus(boardSize, this.initialPosition));\n if (solution == null){\n return null;\n }\n return solution.geBoard();\n }",
"public static void solve(){\n try {\r\n Rete env = new Rete();\r\n env.clear();\r\n env.batch(\"sudoku.clp\");\r\n\t\t\tenv.batch(\"solve.clp\");\r\n env.batch(\"output-frills.clp\");\r\n env.batch(\"guess.clp\");\r\n env.batch(\"grid3x3-p1.clp\");\r\n\t env.eval(\"(open \\\"test.txt\\\" output \\\"w\\\")\");\r\n env.reset();\r\n env.eval(\"(assert (try guess))\");\r\n env.run();\r\n env.eval(\"(close output)\");\r\n } catch (JessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n System.out.println(\"ok\");\r\n FileReader fr;\r\n try {\r\n int r = 0,c = 0;\r\n fr = new FileReader(\"test.txt\");\r\n Scanner sc = new Scanner(fr);\r\n \r\n while (sc.hasNextInt()){\r\n int next = sc.nextInt();\r\n int i = id[r][c];\r\n gui.setSudokuValue(i-1, next);\r\n c++;\r\n if (c >= 6){\r\n c = 0; r++;\r\n }\r\n }\r\n } catch (Exception e){\r\n }\r\n \r\n }",
"public static void main(String[] args) throws Exception {\n\t\tString folderURL = \"C:\\\\Users\\\\Administrator\\\\Google ÔÆ¶ËÓ²ÅÌ\\\\Slides\\\\CS686\\\\A2\\\\SodukoProblem\\\\problems\\\\\";\n\t\tList<String> nameList = Loader.getAllSdURLFromFolder(folderURL);\n\t\tList<Solution> record = new ArrayList<Solution>();\n\t\tfor (String name:nameList)\n\t\t{\n\t\t\t//System.out.println(name);\n\t\t\tBoard board = Loader.loadInitialBoard(name);\n\t\t\tSudokuSolver solver = SudokuSolver.getInstance();\n\t\t\tSolution solution = solver.solve(board);\n\t\t\trecord.add(solution);\n\t\t\tSystem.out.print(solution.initNum+\" \");\n\t\t\tSystem.out.print(solution.cntState+\" \");\n\t\t\t//System.out.println(solution.board);\n\t\t\tSystem.out.println(solution.isFinished?\"Finished\":\"Failed\");\n\t\t\tif (solution.cntState>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(board);\n\t\t\t\tSystem.out.println(solution.board);\n\t\t\t}\n\t\t\t//if (!solution.isFinished) break;\n\t\t}\n\t\t//printStatistics(record);\n\t\t\n\t}",
"public void solve() {\n \tsquares[0][0].fillInRemainingOfBoard();\n }",
"private void analyzeForObstacles() {\n \t\n \t\n \tStack<Rect> bestFound = new Stack<Rect>();//This is a stack as the algorithm moves along x linearly\n \tboolean[][] blackWhiteGrid = getBlackWhiteGrid();\n \tint[] cache = new int[grid.length];\n \t\n \twhile (true) {\n\t\t\tboolean noneFound = true;\n\t\t\t\n\t\t\tfor (int i = 0; i<cache.length; i++)\n\t\t\t\tcache[i] = 0;\n\t\t\tfor (int llx = grid.length -1; llx >= 0; llx--) {\n\t\t\t\tupdate_cache(blackWhiteGrid,cache, llx);\n\t\t\t\tfor (int lly = 0; lly < grid.length; lly++) {\n\t\t\t\t\tRect bestOfRound = new Rect(llx,lly,llx,lly);\n\t\t\t\t\tint y = lly;\n\t\t\t\t\tint x_max = 9999;\n\t\t\t\t\tint x = llx;\n\t\t\t\t\twhile (y+1<grid.length && blackWhiteGrid[llx][y]) {\n\t\t\t\t\t\ty++;\n\t\t\t\t\t\tx = Math.min(llx+cache[y]-1, x_max);\n\t\t\t\t\t\tx_max = x;\n\t\t\t\t\t\tRect tryRect = new Rect(llx,lly-1,x,y);\n\t\t\t\t\t\tif (tryRect.area() > bestOfRound.area()) {\n\t\t\t\t\t\t\tbestOfRound = tryRect;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (bestOfRound.area() > 40) {\n\t\t\t\t\t\tif (noneFound) {\n\t\t\t\t\t\t\tbestFound.push(bestOfRound);\n\t\t\t\t\t\t\tnoneFound = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tRect lastRect = bestFound.peek();\n\t\t\t\t\t\t\tif (lastRect.area() < bestOfRound.area()) {\n\t\t\t\t\t\t\t\tbestFound.pop();\n\t\t\t\t\t\t\t\tbestFound.push(bestOfRound);\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\tif (noneFound)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tclearFoundRectangle(blackWhiteGrid, bestFound.peek());\n \t}\n \t\n \t//add found rectanlges\n \tobstacles.clear();\n \tobstacles.addAll(bestFound);\n \tSystem.out.println(\"Sweep done:\");\n \tfor (Rect r : bestFound){\n \t\tSystem.out.println(\"Rect: llx=\" + (r.llx-400) + \"\\tlly=\" + (r.lly-400) + \"\\turx=\" + (r.urx-400) + \"\\tury=\" + (r.ury-400));\n \t\tList<Point2D.Double> corners = new ArrayList<Point2D.Double>();\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.ury-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.ury-400)));\n \t\tobstaclesF.add(new Obstacle(corners));\n \t}\n \t\n \ttoExplore.clear();\n \tint i = 0;\n \tRandom rand = new Random();\n \twhile (toExplore.size() < 10 && i < 1000) {\n \t\tint x = rand.nextInt(grid.length);\n \t\tint y = rand.nextInt(grid.length);\n \t\tif (grid[x][y] == .5) {\n \t\t\ttoExplore.add(new Flag(\"blue\",x,y));\n \t\t}\n \t}\n }",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}",
"public Set<Irrigation> getAvailableIrrigationSlots ()\n {\n Set<Irrigation> availableIrrigations = new HashSet<>();\n\n ArrayList<Cell> neightboors;\n\n neightboors = getExistingNeighboors(new Point());\n\n neightboors.forEach(cell -> {\n ArrayList<Cell> touching = getCommonNeighboors(cell.getCoords(), new Point());\n touching.stream()\n .filter(t -> !verifIrrigation(cell.getCoords(), t.getCoords()))\n .forEach(t -> availableIrrigations.add(new Irrigation((Plot) t, (Plot) cell)));\n });\n\n for (Irrigation irg : irrigation)\n {\n\n neightboors = getCommonNeighboors(irg.getPlot1().getCoords(), irg.getPlot2().getCoords());\n\n neightboors.stream().filter(cell -> !(cell.getCoords().equals(new Point()))).forEach(plot -> {\n\n if (!verifIrrigation(plot.getCoords(), irg.getPlot1().getCoords())) availableIrrigations.add(new Irrigation((Plot) plot,\n irg.getPlot1()));\n\n if (!verifIrrigation(plot.getCoords(), irg.getPlot2().getCoords())) availableIrrigations.add(new Irrigation((Plot) plot,\n irg.getPlot2()));\n\n });\n }\n availableIrrigations.removeAll(irrigation);\n return availableIrrigations;\n }",
"private void printInScreen(int cols, int rows, Result[] myResults) {\n\t\t//6*8\n\t\t\n\t\tString matrix[][] = new String[rows][cols];\n\t\t\n\t\t//Llenar matriz con espacios o guiones\n\t\tfor(int i=0; i<rows; i++) {\n\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\tmatrix[i][j] = \"-\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Encabezados de la matrix\n\t\tint maxChars = 20;\n\t\tString charToFill = \" \";\n\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tfor(int j=0; j<cols; j++) {\n\t\t\tmatrix[0][j] = getHeaders(j, cols);\n\t\t\t\n\t\t\tif((j%2) == 0)\n\t\t\t\tfillWithSpaces(matrix, 0, j, maxChars, charToFill);\n\t\t}\n\n\t\t//Add separator rows\n\t\tfor(int i=1; i<rows; i+=2) {\n\t\t\t\n\t\t\tfor(int j=0; j<cols; j+=2) {\n\t\t\t\tmatrix[i][j] = ROW_SEPARATOR;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Add results\n\t\tint indexAux = 0;\n\n\t\tfor(int i=2; i<rows; i+=2) {\n\t\t\t\n\t\t\t\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\t\n\t\t\t\tif(j==0) {\n\t\t\t\t\tmatrix[i][j] = myResults[indexAux].getElements() + \" elements\";\n\t\t\t\t\tfillWithSpaces(matrix, i, j, maxChars, charToFill);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(j==2) {\n\t\t\t\t\tmatrix[i][j] = myResults[indexAux].getLinealSearch() + \" milliseconds\";\n\t\t\t\t\tfillWithSpaces(matrix, i, j, maxChars, charToFill);\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(j==4) {\n\t\t\t\t\tmatrix[i][j] = myResults[indexAux].getBinarySearch() + \" milliseconds\";\n\t\t\t\t\tfillWithSpaces(matrix, i, j, maxChars, charToFill);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tmatrix[i][j] = \" \";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tindexAux++;\n\t\t}\n\t\t\n\t\t//Draw the matriz\n\t\tfor(int i=0; i<rows; i++) {\n\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private void findUniqueInBoxes() {\n findUniqueInBox(1,3,1,3);\n findUniqueInBox(1,3,4,6);\n findUniqueInBox(1,3,7,9);\n findUniqueInBox(4,6,1,3);\n findUniqueInBox(4,6,4,6);\n findUniqueInBox(4,6,7,9);\n findUniqueInBox(7,9,1,3);\n findUniqueInBox(7,9,4,6);\n findUniqueInBox(7,9,7,9);\n\n }",
"public String getExistingDiagnoses(){\n \treturn existingDiagnoses;\n }",
"private void printExceptionCountBreakdown() {\n\t SampleHandler.printMessage(\"\\nDestructive wrapping instances break down by project:\");\n\t for (String projectName : projectDestructiveWrappingInstancesMap.keySet()) {\n\t\t SampleHandler.printMessage(String.format(\"%s project: %d destructive wrapping instances flagged\",\n\t\t\t\t projectName, projectDestructiveWrappingInstancesMap.get(projectName).size()));\n\t }\n }",
"static void findSilhouettes(PrivateHashMap<String, PrivateArrayList<String>> image) {\n\n int tempSize = 0;\n\n for (String lab : image.keySet()) {\n\n /* Place any vertex of the graph at the end of the queue */\n if (!graphVisited.containsKey(lab)) {\n queue.addLast(lab);\n bfs(lab);\n }\n\n /* Add the current size of the found silhouette to the array of silhouette sizes. */\n numberOfVertices.add(graphVisited.size() - tempSize);\n tempSize = graphVisited.size();\n }\n }",
"@Test\n public void TEST_FR_SELECT_DIFFICULTY_MAP() {\n Map easyMap = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n easyMap.createLanes();\n Map mediumMap = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n mediumMap.createLanes();\n Map hardMap = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n hardMap.createLanes();\n\n assertTrue((countObstacles(hardMap) >= countObstacles(mediumMap)) && (countObstacles(mediumMap) >= countObstacles(easyMap)));\n assertTrue((countPowerups(hardMap) <= countPowerups(mediumMap)) && (countPowerups(mediumMap) <= countPowerups(easyMap)));\n }",
"void testCollectorHelp(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.worklist, this.mtACell);\r\n t.checkExpect(this.game2.indexHelp(1, 0).floodCheck(), false);\r\n this.game2.indexHelp(1,0).collectorHelp(this.game2, Color.PINK);\r\n t.checkExpect(this.game2.worklist, this.mtACell);\r\n t.checkExpect(this.game2.indexHelp(1, 0).floodCheck(), true);\r\n\r\n t.checkExpect(this.game9.worklist, this.mtACell);\r\n this.game9.indexHelp(0,1).collectorHelp(this.game9, Color.PINK);\r\n t.checkExpect(this.game9.worklist,\r\n new ArrayList<ACell>(Arrays.asList(this.game9.indexHelp(0, 1))));\r\n }",
"static int [][] checkPreventer( int[][]MultiArray,int CurrentX, int CurrentY, int[] ComXY, String CurrentTitle){\n\t\touterloop_TopLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] < 0 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block bishop's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//top right tiles\n\t\touterloop_TopRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopRightTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//bottom left tiles\n\t\touterloop_BottomLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\n\t\t\tif (NewXY[0] < 0 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.2\");\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.4\");\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t//bottom right tiles\n\t\touterloop_BottomRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MultiArray;\n\t}",
"private static void searchMemo() {\n\t\t\n\t}",
"public Iterable<Board> solution() {\n\t\tif (goal == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tfinal Stack<Board> trace = new Stack<Board>();\n\t\t\tSearchNode iter = goal;\n\t\t\twhile (iter != null) {\n\t\t\t\ttrace.push(iter.getBoard());\n\t\t\t\titer = iter.getParent();\n\t\t\t}\n\t\t\treturn trace;\n\t\t}\n\t}",
"void reportResults()\n {\n if (primes.isEmpty())\n throw new IllegalArgumentException();\n System.out.println(\"Primes up to \" + lastComp + \" are as follows:\");\n String results = \"\";\n int count = 0;\n Iterator<Integer> it = primes.iterator();\n while(it.hasNext())\n {\n results += \"\" + it.next() + \" \";\n count++;\n if(count % 12 == 0)\n results += \"\\n\";\n }\n System.out.println(results);\n }",
"@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }",
"public abstract List<OptimisationSolution> getSolutions();",
"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 void solve() {\n\t\tList<Integer> rgtMax= new ArrayList<>();\n\t\tList<Integer> lftMax= new ArrayList<>();\n\t\t\n\t\tpopulateRgtMax(rgtMax);\n\t\tpopulateLftMax(lftMax);\n\t\t\t\t\n\t\tint area=findMaxArea(lftMax,rgtMax);\n\t\tSystem.out.println(area);\n\t\t\n\t}",
"public void trukstaEilutese(){\n\n for (int i=0; i<9; i++) { //skaito eilutes\n\n System.out.print(i+\" : \"); //skaito kiekviena skaiciu is eiles\n\n truksta_eilutese [i] = new ArrayList<Integer>();\n\n Langelis langelis = new Langelis();\n\n for (Integer x_skaicius=1; x_skaicius<10; x_skaicius++){ //ciklas sukti naujam nezinomajam x_skaicius duota reiksme1 maziau nei 10, ++ kad ima sekanti nezinomaji\n\n //System.out.print(java.util.Arrays.asList(sudoku_skaiciai[i]).indexOf(x_skaicius));\n\n langelis.nustatyti(x_skaicius);\n\n if (Arrays.asList(sudoku_skaiciai[i]).indexOf(langelis)== -1){ //????\n\n System.out.print(x_skaicius+\" \"); //israso nezinomas reiksmes\n\n truksta_eilutese[i].add(x_skaicius);\n }\n }\n System.out.println(); //???\n }\n }",
"private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }",
"Long[] searchSolution(int timeLimit, Graph g);",
"public boolean checkSudokuWin(){\n\t\tCharacter c;\n\t\tfor(int i=0;i<81;i++){\n\t\t\tc=sudokuDisplay[i/9][i%9];\n\t\t\tif(!checkBlockValidSudoku(i,c))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private void print_solution() {\n System.out.print(\"\\n\");\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n System.out.print(cells[i][j].getValue());\n }\n System.out.print(\"\\n\");\n }\n }",
"void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }",
"public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}",
"public void solve(){\n\t\tfor(int i = 1; i < 26; i++){\n\t\t\tp.getButton(i).setBackground(Color.white);\n\t\t}\n\t}",
"private static void removeCurrentColors(){\n\t\tIterator<ArrayList<Peg>> itr = possibleCombinations.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList <Peg> victim=itr.next();\n\t\t\tfor(int i=0; i<aiGuess.size(); i++){\n\t\t\t\t\n\t\t\t\tif(victim.contains(aiGuess.get(i))){\n\t\t\t\t\titr.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n int cols1, cols2, rows1, rows2, num_usu1, num_usu2;\r\n \r\n try{\r\n \r\n cols1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a primeira matriz:\"));\r\n rows1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a primeira matriz:\"));\r\n cols2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a segunda matriz:\"));\r\n rows2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a segunda matriz:\"));\r\n \r\n int[][] matriz1 = MatrixInt.newRandomMatrix(cols1, rows1);\r\n int[][] matriz2 = MatrixInt.newSequentialMatrix(cols2, rows2);\r\n \r\n System.out.println(\"Primeira matriz:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Segunda matriz:\");\r\n MatrixInt.imprimir(matriz2);\r\n System.out.println(\" \");\r\n \r\n MatrixInt.revert(matriz2);\r\n \r\n System.out.println(\"Matriz sequancial invertida:\");\r\n MatrixInt.imprimir(matriz2);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n \r\n num_usu1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero qualquer:\"));\r\n \r\n for1: for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 == matriz1[i][j]){\r\n System.out.println(\"O numero '\"+num_usu1+\"' foi encontardo na posição:\" + i);\r\n break for1;\r\n }else if(j == (matriz1[i].length - 1) && i == (matriz1.length - 1)){\r\n System.out.println(\"Não foi encontrado o numero '\"+num_usu1+\"' no vetor aleatorio.\");\r\n break for1;\r\n } \r\n }\r\n }\r\n \r\n String menores = \"\", maiores = \"\";\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 > matriz1[i][j]){\r\n menores = menores + matriz1[i][j] + \", \";\r\n }else if(num_usu1 < matriz1[i][j]){\r\n maiores = maiores + matriz1[i][j] + \", \";\r\n }\r\n }\r\n }\r\n System.out.println(\" \");\r\n System.out.print(\"Numeros menores que '\"+num_usu1+\"' :\");\r\n System.out.println(menores);\r\n System.out.print(\"Numeros maiores que '\"+num_usu1+\"' :\");\r\n System.out.println(maiores);\r\n \r\n num_usu2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero que exista na matriz aleatoria:\"));\r\n \r\n int trocas = MatrixInt.replace(matriz1, num_usu2, num_usu1);\r\n \r\n if (trocas == 0) {\r\n System.out.println(\" \");\r\n System.out.println(\"Não foi realizada nenhuma troca de valores.\");\r\n }else{\r\n System.out.println(\" \");\r\n System.out.println(\"O numero de trocas realizadas foi: \"+trocas);\r\n }\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n \r\n int soma_total = 0;\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n soma_total += matriz1[i][j];\r\n }\r\n \r\n }\r\n System.out.println(\" \");\r\n System.out.println(\"A soma dos numeros da matriz foi: \" + soma_total);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria\");\r\n Exercicio2.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz sequencial\");\r\n Exercicio2.imprimir2(matriz2);\r\n \r\n }catch(Exception e){\r\n System.out.println(e);\r\n }\r\n \r\n \r\n \r\n }",
"private void countSelections(){\n\t\tfor(Student student: students){\n\t\t\tArrayList<Character> studentAnswers = student.getAnswers();\n\t\t\tSystem.out.print(\"student: \"+student.toString() + \"\\n\");\n\t\t\tfor(Character answer: studentAnswers){\n\t\t\t\tint timesSelected = selections.get(q.getPossibleAnswers().indexOf(answer));\n\t\t\t\tselections.set(q.getPossibleAnswers().indexOf(answer), timesSelected+1);\n\t\t\t}\n\t\t}\n\t}",
"static List<int[][]> solveKT() {\n\t List<int[][]> result = new ArrayList<>();\n\t int sol[][] = new int[8][8];\n\t /* Initialization of solution matrix */\n for (int x = 0; x < N; x++)\n for (int y = 0; y < N; y++)\n sol[x][y] = -1;\n\t int xMove[] = {2, 1, -1, -2, -2, -1, 1, 2};\n int yMove[] = {1, 2, 2, 1, -1, -2, -2, -1};\n\n // Since the Knight is initially at the first block\n sol[0][0] = 0;\n\t \n solveKTUtil(0, 0, 1, sol, xMove, yMove, result);\n return result;\n \n\n \n\n \n \n\n \n }",
"private final void m75358i() {\n boolean z;\n if (!((!C32569u.m150517a((Object) this.f53735m, (Object) C6969H.m41409d(\"G7A8FDC19BA\"))) || this.f53737p.isEmpty())) {\n LinearLayoutManager linearLayoutManager = this.f53732j;\n if (linearLayoutManager == null) {\n C32569u.m150520b(C6969H.m41409d(\"G6582CC15AA248628E80F974DE0\"));\n }\n int findFirstVisibleItemPosition = linearLayoutManager.findFirstVisibleItemPosition();\n LinearLayoutManager linearLayoutManager2 = this.f53732j;\n if (linearLayoutManager2 == null) {\n C32569u.m150520b(C6969H.m41409d(\"G6582CC15AA248628E80F974DE0\"));\n }\n int findLastVisibleItemPosition = linearLayoutManager2.findLastVisibleItemPosition();\n int i = 0;\n for (T t : this.f53728f) {\n if (findFirstVisibleItemPosition <= i && findLastVisibleItemPosition >= i && (t instanceof Section)) {\n int i2 = t.index.global;\n TextView textView = (TextView) mo78146a(R.id.textPage);\n C32569u.m150513a((Object) textView, C6969H.m41409d(\"G7D86CD0E8F31AC2C\"));\n for (T t2 : this.f53737p) {\n if (i2 <= t2.end) {\n z = true;\n continue;\n } else {\n z = false;\n continue;\n }\n if (z) {\n textView.setText(t2.title);\n return;\n }\n }\n throw new NoSuchElementException(C6969H.m41409d(\"G4A8CD916BA33BF20E900D04BFDEBD7D6608DC65AB13FEB2CEA0B9D4DFCF183DA6897D612B63EAC69F2069508E2F7C6D36080D40EBA7E\"));\n }\n i++;\n }\n }\n }",
"@Override\n public String[] getChallengeSolutions(String problem) {\n return null;\n }",
"public void search() {\n while (!done) {\n num2 = mNums.get(cntr);\n num1 = mSum - num2;\n\n if (mKeys.contains(num1)) {\n System.out.printf(\"We found our pair!...%d and %d\\n\\n\",num1,num2);\n done = true;\n } //end if\n\n mKeys.add(num2);\n cntr++;\n\n if (cntr > mNums.size()) {\n System.out.println(\"Unable to find a matching pair of Integers. Sorry :(\\n\");\n done = true;\n }\n } //end while\n }",
"public void generateSolutionList() {\n // Will probably solve it in a few years\n while (!isSolved()) {\n RubiksMove move = RubiksMove.random();\n solutionMoves.add(move);\n performMove(move);\n }\n }",
"void checkCurrentScreen();",
"private static void solve(GridOld GridOld, List<GridOld> solutions) {\n // Return if there is already a solution\n if (solutions.size() >= 2) {\n return;\n }\n\n // Find first empty cell\n int loc = GridOld.findEmptyCell();\n\n // If no empty cells are found, a solution is found\n if (loc < 0) {\n solutions.add(GridOld.clone());\n return;\n }\n\n // Try each of the 9 digits in this empty cell\n for (int n = 1; n < 10; n++) {\n if (GridOld.set(loc, n)) {\n // With this cell set, work on the next cell\n solve(GridOld, solutions);\n\n // Clear the cell so that it can be filled with another digit\n GridOld.clear(loc);\n }\n }\n }",
"private static void solve2(Board bd) throws SolutionFoundException {\n\t\tst = new StackImage();\n\n\t\tdepth ++;\n\n\t\tif(depth < -1) {\n\t\t\tbd.checkForSolution();\n\t\t\tthrow new SolutionFoundException();\n\t\t}\n\n\t\tst.cnt = 0;\n\t\tfor( st.r=0;st.r<bd.getBoard_size();++st.r) \n\t\t\tfor( st.c=0;st.c<bd.getBoard_size(); ++st.c) {\n\t\t\t\tif(bd.getPossibilities(st.r, st.c) >= 1) {\n\n\t\t\t\t\tfor(st.p=0;st.p<bd.getBoard_size();++st.p) {\n\t\t\t\t\t\t//System.out.println(\"Status check \" + st.r + \" \" + st.c + \" \" + st.p + \" \" + (bd.check(st.r, st.c, st.p)) + \" \" + (bd.verify(st.r,st.c,st.p)));\n\t\t\t\t\t\tif(bd.check(st.r, st.c, st.p) && bd.verify(st.r,st.c,st.p)) {\n\t\t\t\t\t\t\tst.bi = bd.assign(st.r, st.c, st.p);\n\t\t\t\t\t\t\tSystem.out.println(\"CHoice at \" + st.r + \" \" + st.c + \" \" + st.p);\n\t\t\t\t\t\t\tmoves.add( st );\n\t\t\t\t\t\t\tsolve2(bd);\n\t\t\t\t\t\t\tst = moves.removeLast();\n\t\t\t\t\t\t\tbd.restore(st.r,st.c,st.bi);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t++st.cnt;\n\t\t\t\t\treturn;\n\t\t\t\t} else if(bd.getPossibilities(st.r, st.c) == 0 && !bd.isOnlyOne(st.r, st.c)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t}\n\n\t\tif(st.cnt == 0) {\n\t\t\tbd.checkForSolution();\n\t\t\tthrow new SolutionFoundException();\n\t\t}\n\t\t--depth;\t\t\n\t\tst = null;\n\t}",
"List<Long> getBestSolIntersection();",
"public void checkAll() {\n for (int i = 0; i < size * size; i++) {\r\n if (flowGrid[i]!=size*size) {\r\n if ((flowGrid[i] != flowGrid[flowGrid[i]]) || i != flowGrid[i]) {\r\n flowGrid[i] = flowGrid[flowGrid[i]];\r\n if (flowGrid[i] < size) {\r\n grid[i / size][i % size] = 2;\r\n }\r\n }\r\n }\r\n }\r\n\r\n }",
"public Iterable<Board> solution() {\n return solution;\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a 10 * 10 map, x axis and y axis start from 0 - 9.\");\n\t\tSystem.out.println(\"There are totally \"+MINE_NUMBER+\" mines, and your task is to find all the mines.\");\n\n\t\t// generate 10*10 grid\n\t\t/*\n\t\t * 0: not mine 1: mine 2: mine found 3: not mine shot\n\t\t * \n\t\t */\n\t\tint[][] map = new int[10][10];\n\t\t// repeated at least 5 times generate 5 mines\n\t\tint i = 0;\n\t\twhile (i < MINE_NUMBER) {\n\t\t\t// generate mines generally\n\t\t\tint x = (int) (Math.random() * 10); // 0-9\n\t\t\tint y = (int) (Math.random() * 10); // 0-9\n\t\t\tif (map[x][y] == 1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmap[x][y] = 1;\n\t\t\ti++;\n\t\t}\n\n\t\t// ready to accept user input\n\t\tScanner input = new Scanner(System.in);\n\t\t// how many mines been found\n\t\tint find = 0;\n\n\t\t// start to accept user input\n\t\twhile (find < MINE_NUMBER) {\n\t\t\tint clickX, clickY;\n\t\t\tSystem.out.println(\"please enter the x axis of mine\");\n\t\t\tclickX = input.nextInt();\n\t\t\tSystem.out.println(\"please enter the y axis of mine \");\n\t\t\tclickY = input.nextInt();\n\n\t\t\tif (map[clickX][clickY] == 1) {\n\t\t\t\tmap[clickX][clickY] = 2;\n\t\t\t\tfind++;\n\t\t\t\tSystem.out.println(\"You find a mine! Now you found \" + find + \" mines and \" + (MINE_NUMBER - find) + \" left!\");\n\n\t\t\t} else if (map[clickX][clickY] == 2) {\n\t\t\t\tSystem.out.println(\"You have found this target, try again!\");\n\t\t\t} else {\n\t\t\t\tmap[clickX][clickY] = 3;\n\t\t\t\tSystem.out.println(\"You miss!\");\n\t\t\t\thint(map, clickX, clickY);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"You found all the mines! You win!\");\n\t\tinput.close();\n\t}",
"private boolean checkFinalPuzzle() throws Exception {\n for(int i = 0; i < puzzle.getColumns(); ++i) {\n var clues = puzzle.getColumnClue(i);\n var solver_col = searchBoard.getFilledGroups(i, TraversalType.COLUMN);\n if(clues.size() != solver_col.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_col.get(j))) {\n return false;\n }\n }\n }\n for(int i = 0; i < puzzle.getRows(); ++i) {\n var clues = puzzle.getRowClue(i);\n var solver_row = searchBoard.getFilledGroups(i, TraversalType.ROW);\n if(clues.size() != solver_row.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_row.get(j))) {\n return false;\n }\n }\n }\n return true;\n }",
"void findCriticalPaths()\n {\n\t\tint criticalnodes = 0;\n\t\t \t\n\t\tinputgraph.calculateEC();\n\t\tinputgraph.calculateLC();\n \t\n \tfor(Vertex v:inputgraph)\n \t{\n \t\tv.seen = false;\n \t\tv.cno = 0;\n \t\tv.parent = null;\n \t}\n \t\n \t//find critical path length\n \tSystem.out.println(inputgraph.t.ec);\n \t\n \t//find a critical path from s to t\n \tinputgraph.dfs();\n \tSystem.out.println();\n \t\n \t\n \t//get the number of vertices in critical paths\n \tfor(Vertex v:inputgraph)\n \t{\n \t\tif(v.lc == v.ec && v!=inputgraph.s && v!=inputgraph.t)\n \t\t{\n \t\t\tcriticalnodes++;\n \t\t}\n \t}\n \t\n \t//array of critical paths\n \tinputgraph.pathArray = new Vertex[criticalnodes+2];\n \t\n \t\n \tSystem.out.println();\n \tSystem.out.println(\"Task\" + \"\t\" + \"EC\" + \"\t\" + \"LC\" + \"\t\" + \"Slack\");\n \t\n \t//print the task its EC, LC and Slack values\n \tfor(Vertex v:inputgraph)\n \t{\n \t\tif(v!=inputgraph.s && v!=inputgraph.t)\n \t\t\tSystem.out.println(v + \"\t\" + v.ec + \"\t\" + v.lc + \"\t\" + v.slack);\n \t}\n \t\n \t//print the number of nodes in a critical path\n \tSystem.out.println();\n \tSystem.out.println(criticalnodes);\n \t\n \t//calculate number of critical paths\n \tinputgraph.calculateCriticalPaths();\n \tSystem.out.println(inputgraph.t.criticalpaths);\n \t\n \t//print all critical paths\n \tinputgraph.enumeratePaths(inputgraph.s,0);\n \tSystem.out.println();\n \t\n }",
"public void displayUtilities() {\n double utility;\n int noOfRows = environment.getRows();\n int noOfColumns = environment.getColumns();\n\n for (int i = 0; i < noOfRows; i++) {\n for (int j = 0; j < noOfColumns; j++) {\n if(!environment.getTile(i, j).getTileType().equals(\"WALL\")) {\n utility = environmentUtilities[i][j].getUtility();\n System.out.println(\"(\"+i+\",\"+j+\")\"+utility);\n }\n }\n }\n }",
"public void showDisplayHalfSolution(Solution<Position> solution);",
"private static void showCurrentBreakPoints() {\n System.out.print(\"Current BreakPoints: \");\n for (int i=1;i<=dvm.getSourceCodeLength();i++)\n if (dvm.isLineABreakPoint(i)) System.out.print(i + \" \");\n System.out.print(\"\\n\");\n }",
"public static void main(String[] args) throws Exception {\n Puzzle puzzle = new Puzzle(10, 10);\n ArrayList<Integer>[] row_clues = new ArrayList[puzzle.getRows()];\n ArrayList<Integer>[] column_clues = new ArrayList[puzzle.getColumns()];\n Integer[][] r_clues = {\n {1, 1, 2}, {2, 1, 3}, {2, 3}, {2, 5}, {1, 1},\n {7}, {3, 1}, {5}, {4}, {6}\n };\n Integer[][] c_clues = {\n {3, 1}, {7}, {3, 1}, {5}, {1, 3},\n {2, 1, 5}, {3, 3}, {3, 1}, {4}, {4}\n };\n for(int i = 0; i < r_clues.length; ++i) {\n row_clues[i] = new ArrayList<>(Arrays.asList(r_clues[i]));\n }\n for(int i = 0; i < c_clues.length; ++i) {\n column_clues[i] = new ArrayList<>(Arrays.asList(c_clues[i]));\n }\n puzzle.setRowClues(row_clues);\n puzzle.setColumnClues(column_clues);\n PuzzleSolver solver = new PuzzleSolver(puzzle);\n solver.solve();\n for(Board b : solver.getSolutions()) {\n System.out.println(b);\n }\n }",
"public void solve() {\n\t\tArrayList<Piece> pieceListBySize = new ArrayList<Piece>(pieceList);\n\t\tCollections.sort(pieceListBySize);\t// This is done since the order\n\t\t\t\t\t\t\t\t\t\t\t// of piece placements does not matter.\n\t\t\t\t\t\t\t\t\t\t\t// Placing larger pieces down first lets\n\t\t\t\t\t\t\t\t\t\t\t// pruning occur sooner.\n\t\t\n\t\t/**\n\t\t * Calculates number of resets needed for a game board.\n\t\t * A \"reset\" refers to a tile that goes from the solved state to\n\t\t * an unsolved state and back to the solved state.\n\t\t * \n\t\t * This is the calculation used for pruning.\n\t\t */\n\t\t\n\t\tArrayList<Integer> areaLeft = new ArrayList<Integer>();\n\t\tareaLeft.add(0);\n\t\tint totalArea = 0;\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\ttotalArea += pieceListBySize.get(i).numberOfFlips;\n\t\t\tareaLeft.add(0, totalArea);\n\t\t}\n\t\tint totalResets = (totalArea - gameBoard.flipsNeeded) / (gameBoard.goal + 1);\n\t\tSystem.out.println(\"Total Resets: \" + totalResets);\n\t\t\n\t\t/* \n\t\tint highRow = 0;\n\t\tint highCol = 0;\n\t\tint[][] maxDim = new int[2][pieceListBySize.size()];\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\tif (highRow < pieceListBySize.get(i).rows)\n\t\t\t\thighRow = pieceListBySize.get(i).rows;\n\t\t\t\n\t\t\tif (highCol < pieceListBySize.get(i).cols)\n\t\t\t\thighCol = pieceListBySize.get(i).cols;\n\t\t\t\n\t\t\tmaxDim[0][i] = highRow;\n\t\t\tmaxDim[1][i] = highCol;\n\t\t}\n\t\t*/\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tNode<GameBoard> currentNode = new Node<GameBoard>(gameBoard);\n\t\tStack<Node<GameBoard>> stack = new Stack<Node<GameBoard>>();\n\t\tstack.push(currentNode);\n\t\t\n\t\twhile (!stack.isEmpty()) {\n\t\t\tnodeCount++;\n\t\t\t\n\t\t\tNode<GameBoard> node = stack.pop();\n\t\t\tGameBoard current = node.getElement();\n\t\t\tint depth = node.getDepth();\n\t\t\t\n\t\t\t// Checks to see if we reach a solved state.\n\t\t\t// If so, re-order the pieces then print out the solution.\n\t\t\tif (depth == pieceListBySize.size() && current.isSolved()) {\n\t\t\t\tArrayList<Point> moves = new ArrayList<Point>();\n\t\t\t\t\n\t\t\t\twhile (node.parent != null) {\n\t\t\t\t\tint index = node.level - 1;\n\t\t\t\t\tint sequence = pieceList.indexOf(pieceListBySize.get(index));\n\t\t\t\t\tPoint p = new Point(current.moveRow, current.moveCol, sequence);\n\t\t\t\t\tmoves.add(p);\n\t\t\t\t\t\n\t\t\t\t\tnode = node.parent;\n\t\t\t\t\tcurrent = node.getElement();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tCollections.sort(moves);\n\t\t\t\tfor (Point p : moves) {\n\t\t\t\t\tSystem.out.println(p);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Nodes opened: \" + nodeCount);\n\t\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"Elapsed Time: \" + ((endTime - startTime) / 1000) + \" secs.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tPiece currentPiece = pieceListBySize.get(depth);\n\t\t\tint pieceRows = currentPiece.rows;\n\t\t\tint pieceCols = currentPiece.cols;\n\t\t\t\n\t\t\tPriorityQueue<Node<GameBoard>> pQueue = new PriorityQueue<Node<GameBoard>>();\n\t\t\t\n\t\t\t// Place piece in every possible position in the board\n\t\t\tfor (int i = 0; i <= current.rows - pieceRows; i++) {\n\t\t\t\tfor (int j = 0; j <= current.cols - pieceCols; j++) {\n\t\t\t\t\tGameBoard g = current.place(currentPiece, i, j);\n\t\t\t\t\t\n\t\t\t\t\tif (totalResets - g.resets < 0)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\t// Put in the temporary priority queue\n\t\t\t\t\tpQueue.add(new Node<GameBoard>(g, node));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Remove from priority queue 1 at a time and put into stack.\n\t\t\t// The reason this is done is so that boards with the highest reset\n\t\t\t// count can be chosen over ones with fewer resets.\n\t\t\twhile (!pQueue.isEmpty()) {\n\t\t\t\tNode<GameBoard> n = pQueue.remove();\n\t\t\t\tstack.push(n);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}",
"public void testOpenJavaProgramLaunchConfigurationDialog1() {\n // cold run\n ILaunchConfiguration config = getLaunchConfiguration(\"Breakpoints\");\n IStructuredSelection selection = new StructuredSelection(config);\n for (int i = 0; i < 100; i++) {\n openLCD(selection, fgIdentifier);\n }\n commitMeasurements();\n assertPerformance();\n }",
"public void locateGame() {\n int[] screenPixels;\n BufferedImage screenshot;\n System.out.print(\"Detecting game...\");\n while (!gameDetected) {\n screenshot = robot.createScreenCapture(new Rectangle(screenWidth, screenHeight));\n screenPixels = screenshot.getRGB(0, 0, screenWidth, screenHeight, null, 0, screenWidth);\n detectMaze(screenPixels);\n delay(20);\n }\n System.out.print(\"game detected!\\n\");\n }"
]
| [
"0.55123657",
"0.5487722",
"0.5396705",
"0.53518796",
"0.5239681",
"0.516994",
"0.5161601",
"0.5155078",
"0.51009333",
"0.50986046",
"0.50960946",
"0.5079916",
"0.50544506",
"0.49812338",
"0.4977455",
"0.497412",
"0.49537048",
"0.49456215",
"0.4937579",
"0.4936998",
"0.49267638",
"0.4924428",
"0.4909533",
"0.49031225",
"0.48983076",
"0.48966968",
"0.48961675",
"0.48872706",
"0.4882743",
"0.48789522",
"0.4877998",
"0.487561",
"0.4872759",
"0.48655638",
"0.48631528",
"0.48529497",
"0.48397812",
"0.4837252",
"0.48238623",
"0.4823694",
"0.48210618",
"0.48155597",
"0.48053145",
"0.4805266",
"0.48043865",
"0.47886056",
"0.4776799",
"0.47767654",
"0.47757438",
"0.47697386",
"0.47696346",
"0.47692108",
"0.47689083",
"0.47662014",
"0.47590038",
"0.47450665",
"0.47350985",
"0.4718257",
"0.47178316",
"0.47119585",
"0.47068375",
"0.47057748",
"0.47051466",
"0.47048494",
"0.46849468",
"0.46745345",
"0.46730453",
"0.46721607",
"0.46681672",
"0.4662145",
"0.46610743",
"0.4661062",
"0.4656736",
"0.46558508",
"0.4654398",
"0.4645876",
"0.46448344",
"0.4644378",
"0.46436375",
"0.4638197",
"0.46381003",
"0.46349594",
"0.46340755",
"0.4633119",
"0.46286264",
"0.46250096",
"0.4617417",
"0.46163073",
"0.4614957",
"0.46148548",
"0.46147287",
"0.46138275",
"0.4613095",
"0.46119684",
"0.46013784",
"0.4592751",
"0.4591527",
"0.45914322",
"0.45892164",
"0.4586264"
]
| 0.58859277 | 0 |
Need to evaluate the distance for each laser | boolean evaluateSolution( LockScreen problem ) {
for (LockDisk disk : problem._disks) {
for (LaserSrc laser : disk._lasers) {
laser._distBeam = -1.0f;
if( disk._nextDisk != null ) {
laser._distBeam = disk._nextDisk.isBlocking(
disk.normalizeAngleRad( laser._angLaser + disk._rotAngle - disk._nextDisk._rotAngle));
}
if (laser._distBeam < 0.0f ) {
laser._distBeam = LockDisk.MAXDISTLASER;
}
if (_verb) {
System.out.println( "Update Laser "+laser._id+ " / " + disk._id
+ " with d="+ laser._distBeam
+ " at angle=" + (MathUtils.radDeg * (disk._rotAngle+laser._angLaser)));
}
}
}
// Then the status of every Sensor
boolean _fgOpen = true;
boolean _fgClosed = false;
for (Sensor sensor : problem._sensors) {
sensor._fgActivated = false;
System.out.println( "Sensor ["+sensor._id+"]");
for (LockDisk disk : problem._disks) {
for (LockDisk.LaserSrc laser : disk._lasers) {
if (laser._distBeam > 180f ) {
System.out.println(" laser_"+disk._id+"/"+laser._id +" at angle " + (MathUtils.radDeg * (laser._angLaser + disk._rotAngle)));
sensor.updateWithBeam(laser._angLaser + disk._rotAngle);
//Adapt _fgOpen according to fgActivated and type of Sensor
// If any "open" is not activated => NOT open
if (sensor._type.compareTo("open") == 0) {
if (sensor._fgActivated == false)
_fgOpen = false;
}
// if any other activated => IS closed
else if (sensor._fgActivated) {
_fgClosed = true;
}
}
}
}
}
if (_fgOpen && !_fgClosed) {
System.out.println(">>>>>> Sol VALID");
}
else {
System.out.println(">>>>>> Sol NOT valid");
}
return (_fgOpen && !_fgClosed);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }",
"private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }",
"public void compute() {\n\n this.jddPtsInflexion.clear();\n ILineString lsInitialee = this.geom;\n\n ILineString lsInitiale = Operateurs.resampling(lsInitialee, 1);\n ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 5, 1);\n\n double sumOfDistances = 0;\n double length = 70;// 200 m max\n double sumOfAngels = 0;\n // ArrayList<Double> angels=new ArrayList<Double>();\n ArrayList<Double> differences = new ArrayList<Double>();\n\n ArrayList<Double> distances = new ArrayList<Double>();\n\n IDirectPosition p1 = lsInitiale.coord().get(0);\n IDirectPosition p2 = lsInitiale.coord().get(1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double angel = Math.atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n angel = (angel + Math.PI) * 180 / Math.PI;\n\n // angels.add(angel);\n\n for (int i = 1; i < lsInitiale.coord().size() - 1; i++) {\n\n p1 = lsInitiale.coord().get(i);\n p2 = lsInitiale.coord().get(i + 1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double newAngel = Math\n .atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n // give the value that varie from 0 to 360-epsilon\n newAngel = (newAngel + Math.PI) * 180 / Math.PI;\n\n // angels.add(newAngel);\n\n while (sumOfDistances > length && differences.size() > 0) {\n sumOfDistances -= distances.get(0);\n\n sumOfAngels -= differences.get(0);\n\n distances.remove(0);\n // System.out.println(\"olddiff=\" + differences.get(0));\n differences.remove(0);\n\n }\n\n double diff = newAngel - angel;\n\n if (diff > 180)\n diff = -360 + diff;// for the case of angel=10 and newAngel=350;\n else if (diff < -180)\n diff = 360 + diff;\n\n differences.add(diff);\n sumOfAngels += diff;\n angel = newAngel;\n // System.out.println(\"sumOfAngels=\" + sumOfAngels);\n // System.out.println(\"angel=\" + newAngel);\n // System.out.println(\"diff=\" + diff);\n\n /*\n * for(int k=0;k<angels.size();k++){ double diff2=newAngel-angels.get(k));\n * if(diff2>180)diff2=360-diff2;// for the case of angel=10 and\n * newAngel=350; else if(diff2<-180)diff2=-360-diff2;\n * if(Math.abs(newAngel->200) {\n * \n * }\n * \n * \n * }\n */\n\n if (Math.abs(sumOfAngels) > 100) {\n\n double maxOfDiff = 0;\n int indexOfMaxOfDiff = -1;\n for (int k = 0; k < differences.size(); k++) {\n if (differences.get(k) > maxOfDiff) {\n maxOfDiff = differences.get(k);\n indexOfMaxOfDiff = k;\n\n }\n\n }\n double maxDistance = -1;\n int maxDistancePointIndex = -1;\n // if(i+differences.size()-indexOfMaxOfDiff-1>=jddPtsInflexion.size())\n for (int jj = 0; jj < differences.size(); jj++) {\n // jddPtsInflexion.add(lsInitiale.coord().get(i+differences.size()-indexOfMaxOfDiff-2));\n if (i + jj - indexOfMaxOfDiff >= 0\n && i + jj - indexOfMaxOfDiff < lsInitiale.coord().size()) {\n int currIndex = i + jj - indexOfMaxOfDiff;\n double distance = lsInitiale.coord().get(currIndex).distance2D(\n lsLisse.coord().get(currIndex));\n if (distance > maxDistance) {\n maxDistance = distance;\n maxDistancePointIndex = currIndex;\n }\n\n }\n\n }\n\n if (maxDistancePointIndex >= 0)\n this.jddPtsInflexion.add(lsInitiale.coord()\n .get(maxDistancePointIndex));\n\n differences.clear();\n sumOfDistances = distances.get(distances.size() - 1);\n distances.clear();\n sumOfAngels = 0;\n i++;\n\n }\n\n }\n\n }",
"public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }",
"double getDistance();",
"private void setDistanceValues(){\n float [] sumDistances = new float[1];\n\n distanceValue =0.0;\n\n for(int i= 0; i < trackingList.size()-1;i++){\n double startLong = trackingList.get(i).getLongtitude();\n double startLat = trackingList.get(i).getLatitude();\n double endLong = trackingList.get(i+1).getLongtitude();\n double endLat = trackingList.get(i+1).getLatitude();\n\n Location.distanceBetween(startLat,startLong,endLat,endLong,sumDistances);\n \n distanceValue += sumDistances[0];\n }\n\n }",
"public float getDistance();",
"public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }",
"private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}",
"public abstract double calculateDistance(double[] x1, double[] x2);",
"public double distance(){\n return DistanceTraveled;\n }",
"private double distance (double lata, double lona, double latb, double lonb) { \r\n return Math.acos(Math.sin(lata)*Math.sin(latb)+Math.cos(lata)*Math.cos(latb)*Math.cos(lonb-lona))*6371;\r\n }",
"public abstract double GetDistance();",
"private void getDistance() {\n\n float dist = 0;\n Location location = \n locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n while (location==null) { //If we don't know where we are right now\n Toast.makeText(this, \"No last known location. Aborting...\", \n Toast.LENGTH_LONG).show();\n location = \n locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }\n\n createPositions();\n\n dist = location.distanceTo(mPositions.get(0).toLocation());\n distanceList.add(dist);\n\n dist = mPositions.get(0).toLocation().distanceTo(mPositions.get(1).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(1).toLocation().distanceTo(mPositions.get(2).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(2).toLocation().distanceTo(mPositions.get(3).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(3).toLocation().distanceTo(mPositions.get(4).toLocation());\n distanceList.add(dist);\n \n }",
"private double lPDistance(Instance one, Instance two, int p_value) {\n\n double distanceSum = 0;\n\n for (int i = 0; i < one.numAttributes() - 1; i++) {\n distanceSum += Math.pow(Math.abs(one.value(i) - two.value(i)), p_value);\n }\n\n distanceSum = Math.pow(distanceSum, 1.0 / p_value); // Root in base P\n\n return distanceSum;\n\n }",
"private void computeDistances() {\n for (int i = 0; i < groundTruthInstant.size(); ++i)\n for (int j = 0; j < estimatedInstant.size(); ++j) {\n float currentDist = groundTruthInstant.get(i).getDistanceTo(estimatedInstant.get(j).getPos());\n if (currentDist < distToClosestEstimate[i][0]) {\n distToClosestEstimate[i][0] = currentDist;\n distToClosestEstimate[i][1] = j;\n }\n }\n }",
"public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }",
"public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}",
"void updateDistMatrix(long timeStamp) {\n\n\t\t\t// for each alive landmark, when its ping results are received by\n\t\t\t// the source node,\n\t\t\t// we start the clustering computation process\n\t\t\t// TODO: remove landmarks that return a subset of results 10-12\n\t\t\tLong timer = Long.valueOf(timeStamp);\n\n\t\t\tif (!pendingHSHLandmarks.containsKey(timer)\n\t\t\t\t\t|| pendingHSHLandmarks.get(timer).IndexOfLandmarks == null) {\n\t\t\t\tSystem.err.println(\"$: Null elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHSHRecord CurList = pendingHSHLandmarks.get(timer);\n\t\t\tint NoOfLandmarks = CurList.IndexOfLandmarks.size();\n\t\t\tif(NoOfLandmarks<=0){\n\t\t\t\tSystem.err.println(\"$: Empty elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords = CurList.pendingLandmarkLatency;\n\t\t\tif (LatRecords == null) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"$: Null HashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tint receivedLandmarks = LatRecords.keySet().size();\n\t\t\t// empty or incomplete records\n\t\t\tif (LatRecords.isEmpty() || receivedLandmarks < 0.8 * NoOfLandmarks) {\n\t\t\t\tSystem.err.println(\"$: Null LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: total landmarks: \" + NoOfLandmarks\n\t\t\t\t\t+ \", received from \" + receivedLandmarks);\n\t\t\t// use the IndexOfLandmarks as the index of nodes\n\n\t\t\tif (CurList.DistanceMatrix == null\n\t\t\t\t\t|| CurList.DistanceMatrix.length != NoOfLandmarks) {\n\t\t\t\tCurList.DistanceMatrix = null;\n\t\t\t\tCurList.DistanceMatrix = new double[NoOfLandmarks][NoOfLandmarks];\n\t\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\t\tfor (int j = 0; j < NoOfLandmarks; j++) {\n\t\t\t\t\t\tCurList.DistanceMatrix[i][j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// fill elements\n\t\t\tIterator<Entry<AddressIF, ArrayList<RemoteState<AddressIF>>>> entrySet = LatRecords\n\t\t\t\t\t.entrySet().iterator();\n\n\t\t\twhile (entrySet.hasNext()) {\n\t\t\t\tEntry<AddressIF, ArrayList<RemoteState<AddressIF>>> tmp = entrySet\n\t\t\t\t\t\t.next();\n\t\t\t\t// empty lists\n\t\t\t\tif (tmp.getValue() == null || tmp.getValue().size() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// ===============================================================\n\t\t\t\tAddressIF srcNode = tmp.getKey();\n\t\t\t\t// find the index of landmarks\n\t\t\t\tint from = CurList.IndexOfLandmarks.indexOf(srcNode);\n\t\t\t\tIterator<RemoteState<AddressIF>> ier = tmp.getValue()\n\t\t\t\t\t\t.iterator();\n\t\t\t\tif (from < 0) {\n\t\t\t\t\t// already removed landmarks!\n\t\t\t\t\tSystem.out.println(\"already removed landmarks!\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\twhile (ier.hasNext()) {\n\t\t\t\t\tRemoteState<AddressIF> NP = ier.next();\n\n\t\t\t\t\tif (!CurList.IndexOfLandmarks.contains(NP.getAddress())) {\n\t\t\t\t\t\t// not landmarks\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tint to = CurList.IndexOfLandmarks.indexOf(NP.getAddress());\n\n\t\t\t\t\tdouble rtt = NP.getSample();\n\t\t\t\t\tif (to < 0 || rtt < 0) {\n\t\t\t\t\t\tSystem.err.println(\"$: failed to find the landmarks!\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// System.out.print(\" <\"+to+\", \"+from+\", \"+rtt+\"> \");\n\t\t\t\t\t\t// Note: symmetric RTT\n\t\t\t\t\t\tif (CurList.DistanceMatrix[to][from] > 0) {\n\t\t\t\t\t\t\tdouble avgRTT;\n\t\t\t\t\t\t\tif (rtt > 0) {\n\t\t\t\t\t\t\t\tavgRTT = (rtt + CurList.DistanceMatrix[to][from]) / 2;\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tavgRTT = CurList.DistanceMatrix[to][from];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = avgRTT;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = avgRTT;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO: missing elements\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = rtt;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = rtt;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ======================================================\n\n\t\t\tboolean markZero = false;\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int column = 0; column < NoOfLandmarks; column++) {\n\t\t\t\t\tif (i == column) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (CurList.DistanceMatrix[i][column] > 0) {\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (sum < 0.7 * NoOfLandmarks) {\n\t\t\t\t\tmarkZero = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (markZero) {\n\t\t\t\t// CurList.DistanceMatrix=null;\n\t\t\t\tSystem.err.println(\"$: incomplete CurList.DistanceMatrix!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n\\n$: HSH: Start HSH clustering computation process!\");\n\n\t\t\t// TODO: find accurate clustering number\n\t\t\tint cluNum = MatrixOps.findClusteringNum(CurList.DistanceMatrix);\n\n\t\t\tif(cluNum<=0){\n\t\t\t\tSystem.err.println(\"the clustering number is <=0\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t// version control for dimensions\n\t\t\tif (CurList.S != null && CurList.S.length == cluNum) {\n\n\t\t\t} else {\n\t\t\t\tCurList.version = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\t// initialize the matrixes for computation\n\t\t\tCurList.H = new double[NoOfLandmarks][cluNum];\n\t\t\tCurList.S = new double[cluNum][cluNum];\n\t\t\t// CurList.Coord = new double[cluNum];\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.H[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < cluNum; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.S[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// update coordinate vectors\n\t\t\tMatrixOps.symmetric_NMF(NoOfLandmarks, cluNum,\n\t\t\t\t\tCurList.DistanceMatrix, CurList.H, CurList.S);\n\t\t\tCurList.alreadyComputedClustering = true;\n\n\t\t\t// TODO: H,S is Null\n\t\t\tif (CurList.H == null || CurList.S == null) {\n\t\t\t\tSystem.err.println(\"$: after HSH computation, NULL results!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// after centralized computation, the core node should send its H &\n\t\t\t// S to all the landmark nodes\n\t\t\tissueCoords(timeStamp, CurList.IndexOfLandmarks, new CB1<String>() {\n\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Core node has issued its H & S to all landmarks.\");\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"boolean hasDistance();",
"public Transition[] computeDistances(){\n\t\tSystem.out.println(\"Computing Transitions...\");\n\t\tTransition[] instanceTransitions = new Transition[nbBd*(nbBd-1)*4];\n\t\t//i sera l'indice de la cellule du tableau\n\t\tint i=0;\n\t\tfor (Strip aStrip : tabStrips){\n\t\t\tfor (Strip anotherStrip : tabStrips)\n\t\t\t\tif (aStrip != anotherStrip){\n\t\t\t\t\tdouble dist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t}//i != j\n\t\t\t//calcul de indMiddleTMin au fur et a mesure en utilisant des coefficients \n\t\t\t//pour eviter de depasser la taille maximale des int \n\t\t\tint divider = ((2*i) / ((nbBd-1) * 4));\n\t\t\tindMiddleTMin = ((indMiddleTMin * (divider - 2)) + (aStrip.indTMin0 + aStrip.indTMin1)) / divider;\n\t\t}//for\n\t\treturn instanceTransitions;\n\t}",
"@Override\n\tpublic double getDistance(ArrayList<Point> r, ArrayList<Point> s) {\n\t\tArrayList<Point> r_clone = DistanceService.clonePointsList(r);\n\t\tArrayList<Point> s_clone = DistanceService.clonePointsList(s);\n\t\t\n\t\t// Time range (parameters - given)\n\t\tlong t1 = getTimeIni(r_clone, s_clone);\n\t\tlong tn = getTimeEnd(r_clone, s_clone);\n\n\t\treturn getDISSIM(r_clone, s_clone, t1, tn);\n\t}",
"private void set_distance() {\n int[] k = new int[getQueue().length];\n distance = 0.0;\n for (int i = 1; i < getQueue().length; i++) {\n distance += getPoints().get(way[i]).distance(getPoints().get(way[i - 1]));\n }\n distance += getPoints().get(getQueue()[getPoints().size() - 1]).distance(getPoints().get(0));\n enterd = true;\n }",
"public double getDistance () {\n return distance;\n }",
"Execution getClosestDistance();",
"@Test\r\n public void testGetDistanceOfRoute() {\r\n System.out.println(\"getDistanceOfRoute\");\r\n \r\n String name = \"KiwiLand\";\r\n List<String> _lstStr = Arrays.asList(\"AB5\", \"BC4\", \"CD8\", \"DC8\", \"DE6\", \"AD5\", \"CE2\", \"EB3\", \"AE7\");\r\n Compute instance = new Compute();\r\n instance.initLand(name, _lstStr);\r\n String _strRoute = \"A-B-C\";\r\n int expResult = 9; \r\n int result = instance.getDistanceOfRoute(_strRoute);\r\n assertEquals(expResult, result);\r\n _strRoute = \"A-D\";\r\n expResult = 5;\r\n result = instance.getDistanceOfRoute(_strRoute);\r\n assertEquals(expResult, result);\r\n _strRoute = \"A-D-C\";\r\n expResult = 13;\r\n result = instance.getDistanceOfRoute(_strRoute);\r\n assertEquals(expResult, result);\r\n _strRoute = \"A-E-B-C-D\";\r\n expResult = 22;\r\n result = instance.getDistanceOfRoute(_strRoute);\r\n assertEquals(expResult, result);\r\n _strRoute = \"A-E-D\";\r\n expResult = -1;\r\n result = instance.getDistanceOfRoute(_strRoute);\r\n assertEquals(expResult, result);\r\n \r\n\r\n }",
"@Override\n\tvoid averageDistance() {\n\t\t\n\t}",
"public float influence(ArrayList<String> s)\n {\n HashMap<Integer, Integer> distances = new HashMap<>();\n HashMap<String, Integer> nodeDistances = new HashMap<>();\n\n for(String node : s){\n if(!graphVertexHashMap.containsKey(node)) continue;\n //At the end nodeDistances will contain min distance from all nodes to all other nodes\n getMinDistances(node, distances, nodeDistances);\n }\n distances = new HashMap<>();\n Iterator it = nodeDistances.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry entry = (Map.Entry) it.next();\n Integer distance = (Integer) entry.getValue();\n if(distances.containsKey(distance)){\n distances.put(distance, distances.get(distance)+1);\n }else{\n distances.put(distance, 1);\n }\n }\n return getTotal(distances);\n\n\n\n// float sum = 0.0f;\n// for(int i =0; i < numVertices; i++){\n// int y = gety(s, i);\n//// System.out.println(\"i is \" + i + \" and nodes at distance are \" + y);\n// sum += (1/(Math.pow(2,i)) * y);\n// }\n// return sum;\n }",
"public void calculateDistance() {\n SensorEventListener mSensorEventListener = new SensorEventListener() {\n @Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n mAngle = (Math.acos(sensorEvent.values[2] / 9.8)) * (180/Math.PI) - 5;\n mAngle = Math.toRadians(mAngle);\n mDistance = mHeight * Math.tan(mAngle);\n }\n\n @Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n\n }\n };\n mSensorManager.registerListener(mSensorEventListener, mAccelerometer,\n SensorManager.SENSOR_DELAY_UI);\n\n // Calculating the distance.\n mDistance = mHeight * Math.tan(mAngle);\n // Rounding it up to 2 decimal places\n DecimalFormat df = new DecimalFormat(\"#.##\");\n mDistance = Double.valueOf(df.format(mDistance));\n String distanceString = Double.toString(mDistance);\n\n // Update the distance TextView\n TextView distanceView = (TextView) findViewById(R.id.distanceText);\n String text = distanceString + \" cm\";\n distanceView.setText(text);\n distanceView.setTextSize(36);\n }",
"public void setEstimatedTrainLocations() {\n\t\t// TODO: for each train\n\t\tfor (Train t : trains) {\n\t\t\t// calculate the distance traveled since the last tick\n\t\t\tdouble speed = t.currSpeed * 0.488888889; // in yards/second\n\t\t\tdouble elapsedTime = SimClock.getDeltaMs() * 0.001; //in seconds\n\t\t\tdouble distanceTraveled = speed*elapsedTime; //yards\n\t\t\tDefaultBlock block = ((DefaultBlock)blockData.get(t.currentBlock));\n\t\t\tif (distanceTraveled > t.authority) {\n\t\t\t\tdistanceTraveled = t.authority;\n\t\t\t\tt.currSpeed = 0;\n\t\t\t}\n\t\t\telse if (trainRoutes.get(t.trainId).route.size() == 1) {\n\t\t\t\tif (t.distanceTraveledOnBlock + distanceTraveled > block.blockLength/2) {\n\t\t\t\t\tdistanceTraveled = block.blockLength/2 - t.distanceTraveledOnBlock;\n\t\t\t\t\tt.distanceTraveledOnBlock = block.blockLength/2;\n\t\t\t\t\tt.currSpeed = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check if the train has entered a new block\n\t\t\tif (block.occupied == false) {\n\t\t\t\t// it has.\n\t\t\t\tt.currentBlock = trainRoutes.get(t.trainId).route.get(1);\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength - t.distanceTraveledOnBlock;\n\t\t\t\tt.currSpeed = ((DefaultBlock) blockData.get(t.currentBlock)).speedLimit;\n\t\t\t\tif (t.currSpeed > t.maxSpeed) {\n\t\t\t\t\tt.currSpeed = t.maxSpeed;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// calculate the distance traveled on block\n\t\t\telse if ((t.distanceTraveledOnBlock + distanceTraveled) > block.blockLength) {\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength;\n\t\t\t}\n\t\t\tt.authority -= distanceTraveled;\n\t\t\tt.currSpeed = trainRoutes.get(t.trainId).speed;\n\t\t\tt.distanceTraveledOnBlock += distanceTraveled;\n\t\t\t\n\t\t}\n\t}",
"public float getDistance(){\n\t\t\treturn s1.start.supportFinal.dot(normal);\n\t\t}",
"public int calculateDistance(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2){\n double x1 = l1.data.getxCo();\n double y1 = l1.data.getyCo();\n double x2 = l2.data.getxCo();\n double y2 = l2.data.getyCo();\n double dist = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return (int) dist;\n }",
"public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);",
"double getDistance(Point p);",
"public double ComputeDistance(){ \n\t\tdouble lat1 = this.depAirportCity.getLatDegs() + (double)(this.depAirportCity.getLatMins())/60; \n\t\tdouble lon1 = this.depAirportCity.getLongDegs() + (double)(this.depAirportCity.getLongMins())/60;\n\t\tdouble lat2 = this.arrAirportCity.getLatDegs() + (double)(this.arrAirportCity.getLatMins())/60; \n\t\tdouble lon2 = this.arrAirportCity.getLongDegs() + (double)(this.arrAirportCity.getLongMins())/60;\n\t\t\n\t\tdouble distance = Haversine.getMiles(lat1, lon1, lat2, lon2);\n\t\treturn distance;\n\t}",
"@Test\n public void distanceTest() {\n //Query Matrix API\n Response response = given()\n .param(\"locations\", getParameter(\"manyLocations\"))\n .param(\"sources\", \"all\")\n .param(\"destinations\",\"all\")\n .param(\"metrics\", \"distance\")\n .param(\"profile\", \"driving-car\")\n .param(\"resolve_locations\", \"true\")\n .when()\n .get(getEndPointName());\n\n String[] locations = (String[]) getParameter(\"manyLocationsArray\");\n\n Assert.assertEquals(response.getStatusCode(), 200);\n JSONObject jResponse = new JSONObject(response.body().asString());\n JSONArray jDistances = jResponse.getJSONArray(\"distances\");\n //Query Routing API 12x12 times\n for(int i = 0; i < 12; i++) {\n for (int j = 0; j < 12; j++) {\n Response response2 = given()\n .param(\"coordinates\", locations[i] + \"|\" + locations[j])\n .param(\"instructions\", \"false\")\n .param(\"preference\", getParameter(\"preference\"))\n .param(\"profile\", getParameter(\"carProfile\"))\n .when()\n .get(\"routes\");\n\n JSONObject jResponseRouting = new JSONObject(response2.body().asString());\n JSONObject jRoute = (jResponseRouting.getJSONArray(\"routes\")).getJSONObject(0);\n double routeDistance = jRoute.getJSONObject(\"summary\").getDouble(\"distance\");\n double matrixDistance = jDistances.getJSONArray(i).getDouble(j);\n Assert.assertTrue( matrixDistance - .1 < routeDistance);\n Assert.assertTrue( matrixDistance + .1 > routeDistance);\n\n }\n }\n }",
"public static double getDistance(ArrayList<City> routine){ \n double totalDistance = 0.0;\n for (int i = 0; i < routine.size() - 1; i++) {\n totalDistance += routine.get(i).distance(routine.get(i+1));\n }\n return totalDistance;\n }",
"public CalculateDistance(LevelSetApplet japp, LevelSetCanvas canvas1)\r\n\t{\r\n\tthis.canvas1 = canvas1;\r\n\tthis.japp = japp;\t\r\n\t\t//System.out.println(\"got here\");\r\n\tinitializations();\t\r\n\t\t//System.out.println(\"got here2\");\r\n\t\tSystem.out.println(\"Finding Boundary\");\r\n\tfindBoundary(useDestinations);\r\n\t\tSystem.out.println(\"Building Initial Band\");\r\n\tbuildInitialBand();\r\n\t\tSystem.out.println(\"Running Algorithm\");\r\n\t\r\n\twhile(active.size()>0)\r\n\t\t{\r\n\t\trunAlgorithmStep();\r\n\t\t}\r\n \r\n System.out.println(\"Distance function calculated\");\r\n\t\r\n\tmaxPhi = findMaxPhi();\r\n\t//if(useDestinations) maxPhi = 150;\r\n \r\n // Save phi in phiTemp\r\n for(int i=0; i<pixelsWide; i++) {\r\n for(int j=0; j<pixelsHigh; j++) {\r\n phiTemp[i][j] = phi[i][j];\r\n }\r\n }\r\n\t}",
"@Test\n\tpublic void testGetDistance() {\n\t\t// Initialize 3 points\n\t\tPoint2D p1 = new Point2D.Double(1.848,8.331);\n\t\tPoint2D p2 = new Point2D.Double(10.241,9.463);\n\t\tPoint2D p3 = new Point2D.Double(8.889,2.456);\n\t\t\n\t\t// Initialized the Triangulate object and load points and radii\n\t\tTriangulate test = new Triangulate();\n\t\ttest.setPoints(p1, p2, p3);\n\t\tdouble err = 1e-4; \n\t\t\n\t\tdouble[] dist = test.getDistance();\n\t\tdouble actual1 = 8.4690;\n\t\tdouble actual2 = 7.1362;\n\t\tdouble actual3 = 9.1701;\n\t\t\n\t\tassertEquals(actual1, dist[0], err);\n\t\tassertEquals(actual2, dist[1], err);\n\t\tassertEquals(actual3, dist[2], err);\n\t}",
"private int calcDistance()\n\t{\n\t\tint distance = 0;\n\n\t\t// Generate a sum of all of the difference in locations of each list element\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tdistance += Math.abs(indexOf(unsortedList, sortedList[i]) - i);\n\t\t}\n\n\t\treturn distance;\n\t}",
"double getSquareDistance();",
"double dist(pair p1){\n\t\tdouble dx=(p1.x-centre.x);\n\t\tdouble dy=(p1.y-centre.y);\n\t\tcount++;\n\t\treturn java.lang.Math.sqrt((dx*dx)+(dy*dy));\n\t}",
"public static void computeDistanceToAllNodes()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); // instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node to show all distances: \");\r\n\t\tint src = scan.nextInt() - 1; // taking source node input\r\n\t\t\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, -1, false);\r\n\t}",
"public double getDistance(){\n\t\treturn this.distance;\n\t}",
"public float getDistance() {\r\n return distance;\r\n }",
"private double calculeDistanceLinaire(int[] tableauDeIntRandom) {\n double resultat = 0;\n for (int i = 0; i < tableauDeIntRandom.length; i++) {\n resultat += Math.abs(tableauDeIntRandom[i] - tableauDeIntRandom[(i + 1) % tableauDeIntRandom.length]);\n }\n return resultat;\n }",
"public abstract double distanceFrom(double x, double y);",
"float calFuelConsumption(float distance, float numLiters);",
"private static final double[][] computeDistances(Tree tree, IdGroup idGroup)\n\t{\n\t\treturn computeDistances(tree, idGroup, false, 0.0);\n\t}",
"public static void ITdistances()\n\t{\n\t\t//System.err.println(\"Position\");\n\n\t\tclade = clad[k];\n\n\t\tclade.tipDistance = 0;\n\t\tclade.intDistance = 0;\n\t\tclade.tipDisNested = 0;\n\t\tclade.intDisNested = 0;\n\t\tclade.indTipClades = 0;\n\t\tclade.indIntClades = 0;\n\n\n\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t{ \n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (clade.Position[i] == tip)\n\t\t\t\t\tclade.indTipClades += clade.rowTotal[i];\n\t\t\t\telse\n\t\t\t\t\tclade.indIntClades += clade.rowTotal[i];\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\t// weigthing within class\n\t\t\t\tclade.tipDistance += clade.Position[i] * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.tipDisNested += clade.Position[i] * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\tclade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\t\n\t\t\t\t\n\t\t\t\t// unweighted\n\t\t\t\t//clade.tipDistance += clade.Position[i] * clade.Dc[i] / (double) clade.check;\n\t\t\t\t//clade.tipDisNested += clade.Position[i] * clade.Dn[i] / (double) clade.check;\n\t\t\t\t//clade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] / (double) (clade.numSubClades - clade.check);\n\t\t\t\t//clade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] / (double) (clade.numSubClades - clade.check);\t\n\t\t\t}\n\n\t\t clade.tipIntDistance = clade.intDistance - clade.tipDistance;\n\t\t clade.tipIntDisNested = clade.intDisNested - clade.tipDisNested;\n\t\t if(verbose){\n\t\t\tlogfile.println(\"\\nIT \" + clade.cladeName + \" indTipClades = \" + clade.indTipClades\n\t\t\t\t+ \" indIntClades + \" + clade.indIntClades);\n\t\t\tlogfile.println(\"\\nITc \" + clade.cladeName + \" meanInt = \" + clade.intDistance\n\t\t\t\t+ \" meanTip = \" + clade.tipDistance);\n\t\t\tlogfile.println(\"ITn \" + clade.cladeName + \" meanInt = \" + clade.intDisNested\n\t\t\t\t+ \" meanTip = \" + clade.tipDisNested);\n\t\t }\n\t\t}\n\n\t\t//System.err.println(\"IT clade \" + clade.cladeName + \" meanInt = \" + clade.intDistance + \" meanTip = \" + clade.tipDistance);\n\n\t}",
"double distance (double px, double py);",
"public float getDistance() {\n return distance;\n }",
"private double calculateDis(double lata, double lona, double latb, double lonb){\n\t\tdouble lon2latRatio = Math.cos(lata * 3.14159 / 180.0);\n\t\tdouble milesperDegreeLat = 69.0;\n\t\tdouble milesperDegreeLon = milesperDegreeLat * lon2latRatio;\n\t\tdouble distance = 0.0;\n\t\tdistance = Math.sqrt((milesperDegreeLat * (latb - lata))\n\t\t\t\t* (milesperDegreeLat * (latb - lata))\n\t\t\t\t+ (milesperDegreeLon * (lonb - lona))\n\t\t\t\t* (milesperDegreeLon * (lonb - lona)));\n\t\treturn distance;\n\t}",
"double distance() {\r\n\t double dist_total = 0;\r\n\t for (int i = 0; i < index.length - 1; i++) {\r\n\t dist_total += city(i).distance(city(i + 1));\r\n\t }\r\n\t \r\n\t return dist_total;\r\n\t}",
"private Point calcLocation(String tagID){\t\t\t\n\t\tDate now = new Date();\n\t\tclass referenceDist implements Comparable<referenceDist>{\n\t\t\tString referenceID;\n\t\t\tDouble inverseDistance;\n\t\t\t\n\t\t\tpublic referenceDist(String id, double distance){\n\t\t\t\tthis.referenceID = id;\n\t\t\t\tthis.inverseDistance = new Double(distance);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int compareTo(referenceDist o) {\n\t\t\t\t\n\t\t\t\treturn o.inverseDistance.compareTo(this.inverseDistance);\n\t\t\t}\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tArrayList<referenceDist> referenceList = new ArrayList<referenceDist>();\t\t\n\t\tfor (int i = 0 ; i < (referenceTags.size()); i++){\n\t\t\tString referenceID = referenceTags.get(i);\n\t\t\t//System.err.printf(\"Comparing tag %s with readings: %s\\r\\n\", tagID, tags.get(tagID).toString());\n\t\t\tint distance = tags.get(tagID).calcDiff(tags.get(referenceID));\n\t\t\t//System.err.printf(\"Reference tag %s with readings: %s\\r\\n\", referenceID, tags.get(referenceID).toString());\n\t\t\tdouble power = 0;\n\t\t\tif (distance == 0){\n\t\t\t\tpower = 10;\n\t\t\t} else {\n\t\t\t\tpower = 1.0/distance;\n\t\t\t}\n\t\t\t\n\t\t\treferenceList.add(new referenceDist(referenceID, power));\n\t\t}\n\t\t\n\t\tCollections.sort(referenceList);\n//\t\tIterator<referenceDist> iter = referenceList.iterator();\n//\t\tSystem.out.printf(\"START\\r\\n\");\n//\t\twhile(iter.hasNext()){\n//\t\t\treferenceDist dist = iter.next();\n//\t\t System.out.printf(\"'%s : %s'\", dist.referenceID, dist.inverseDistance.toString());\n//\t\t}\n//\t\tSystem.out.printf(\"\\r\\nEND\\r\\n\");\n\t\tint neighbours = Math.min(maxNeighbours, referenceList.size());\n\t\tdouble total = 0;\n\t\tdouble x = 0;\n\t\tdouble y = 0;\n\t\tdouble diff = 0;\n\t\tfor (int i = 1; i <= neighbours; i++){\n\t\t\ttotal += referenceList.get(i).inverseDistance;\n\t\t}\n\t\tfor (int i = 1; i <= neighbours; i++){\n\t\t\tPoint current = tags.get(referenceList.get(i).referenceID).getLoc();\n\t\t\tx += (referenceList.get(i).inverseDistance / total) * current.getX();\n\t\t\ty += (referenceList.get(i).inverseDistance / total) * current.getY();\n\t\t}\n\t\tif (tagID.equals(\"03BD\")){\n\t\t\tdiff = Math.sqrt(Math.pow((x-345),2) + Math.pow((y-200),2));\n\t\t} else if (tagID.equals(\"03B8\")){\n\t\t\tdiff = Math.sqrt(Math.pow((x-345),2) + Math.pow((y-300),2));\n\t\t} else if (tagID.equals(\"03D3\")){\n\t\t\tdiff = Math.sqrt(Math.pow((x-345),2) + Math.pow((y-400),2));\n\t\t}\n\t\tlog(String.valueOf(diff)+ \"\\r\\n\", tagID+ \"_4.log\");\t\t\n\t\t\t\n\n\t\tPoint location = new Point((int )x, (int)y);\n\t\tlog(String.valueOf(now.getTime()) + \"\\r\\n\", \"time.log\");\t\t\t\n\n\t//\tlog(String.valueOf(now.getTime()) + \": Tag=\"+ tagID + \" x=\" + String.valueOf(x) + \" y=\"+String.valueOf(y)+\"\\r\\n\", \"tagLocationLogfile.log\");\n\t\t\n\t\treturn location;\n\t}",
"private static double calculDistanceTourneeAlea(List<Point> points, Random rand) {\n double distance = 0;\n Collections.shuffle(points, rand);\n Point courant = points.get(0);\n Point suivant;\n for(int i=1; i<points.size(); i++) {\n suivant = points.get(i);\n distance += courant.getDistance(suivant);\n courant = suivant;\n }\n suivant = points.get(0);\n distance += courant.getDistance(suivant);\n return distance;\n }",
"public void setDistance(float dist);",
"private static final double l2Distance (final double[] p0,\n final double[] p1) {\n assert p0.length == p1.length;\n double s = 0.0;\n double c = 0.0;\n for (int i=0;i<p0.length;i++) {\n final double dp = p0[i] - p1[i];\n final double zi = dp*dp - c;\n final double t = s + zi;\n c = (t - s) - zi;\n s = t; }\n return Math.sqrt(s); }",
"@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}",
"public double getDistance() {\n return distance;\n }",
"public float getDistance() {\n return distance;\n }",
"private static double dist(Data d, Centroid c)\r\n \t{\r\n \t\treturn Math.sqrt(Math.pow((c.Y() - d.Y()), 2) + Math.pow((c.X() - d.X()), 2));\r\n \t}",
"public double getDistance() {\r\n return this.distance;\r\n }",
"private void dist2Pos3Beacons()\n {\n //Betrachtung bei 3 Empfaengern\n double dist12 = Math.sqrt(Math.pow(posReceiver[0][0] - posReceiver[1][0], 2) + Math.pow(posReceiver[0][1] - posReceiver[1][1], 2));\n double dist13 = Math.sqrt(Math.pow(posReceiver[0][0] - posReceiver[2][0], 2) + Math.pow(posReceiver[0][1] - posReceiver[2][1], 2));\n double dist23 = Math.sqrt(Math.pow(posReceiver[1][0] - posReceiver[2][0], 2) + Math.pow(posReceiver[1][1] - posReceiver[2][1], 2));\n\n boolean temp12 = Math.abs(radius[0] - radius[1]) > dist12;\n boolean temp23 = Math.abs(radius[1] - radius[2]) > dist23;\n boolean temp13 = Math.abs(radius[0] - radius[2]) > dist13;\n\n //Zwei Kreise innerhalb eines anderen Kreises\n if ((temp12 && temp23) || (temp12 && temp13) || (temp23 && temp13))\n {\n double f0 = (dist12 / radius[0] + dist13 / radius[0]) / 2;\n double f1 = (dist12 / radius[1] + dist23 / radius[1]) / 2;\n double f2 = (dist12 / radius[2] + dist13 / radius[2]) / 2;\n\n radius[0] = radius[0] * f0;\n radius[1] = radius[1] * f1;\n radius[2] = radius[2] * f2;\n }\n //Kreis 2 in Kreis 1\n if ((Math.abs(radius[0] - radius[1]) > dist12) && (radius[0] > radius[1]))\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]}};\n double[] rad =new double[]{radius[0],radius[1],radius[2]};\n calcCircleInCircle(posRec, rad, dist13);\n }\n //Kreis 1 in Kreis 2\n else if ((Math.abs(radius[0] - radius[1]) > dist12) && (radius[1] > radius[0]))\n {\n double[][] posRec = new double[][]{{posReceiver[1][0],posReceiver[1][1]},{posReceiver[0][0],posReceiver[0][1]},{posReceiver[2][0],posReceiver[2][1]}};\n double[] rad =new double[]{radius[1],radius[0],radius[2]};\n calcCircleInCircle(posRec, rad, dist23);\n }\n //Kreis 3 in Kreis 1\n else if ((Math.abs(radius[0] - radius[2]) > dist13) && (radius[0] > radius[2]))//Kreis 3 in 1\n {\n double[][] posRec = new double[][]{{posReceiver[2][0],posReceiver[2][1]},{posReceiver[0][0],posReceiver[0][1]},{posReceiver[1][0],posReceiver[1][1]}};\n double[] rad =new double[]{radius[2],radius[0],radius[1]};\n calcCircleInCircle(posRec, rad, dist12);\n }\n //Kreis 1 in Kreis 3\n else if ((Math.abs(radius[0] - radius[2]) > dist13) && (radius[2] > radius[0]))//Kreis 1 in 3\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[1][0],posReceiver[1][1]}};\n double[] rad =new double[]{radius[0],radius[2],radius[1]};\n calcCircleInCircle(posRec, rad, dist23);\n }\n //Kreis 3 in Kreis 2\n else if ((Math.abs(radius[1] - radius[2]) > dist23) && (radius[1] > radius[2]))//Kreis 3 in 2\n {\n double[][] posRec = new double[][]{{posReceiver[2][0],posReceiver[2][1]},{posReceiver[1][0],posReceiver[1][1]},{posReceiver[0][0],posReceiver[0][1]}};\n double[] rad =new double[]{radius[2],radius[1],radius[0]};\n calcCircleInCircle(posRec, rad, dist12);\n }\n //Kreis 2 in Kreis 3\n else if ((Math.abs(radius[1] - radius[2]) > dist23) && (radius[2] > radius[1]))//Kreis 2 ind 3\n {\n double[][] posRec = new double[][]{{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[0][0],posReceiver[0][1]}};\n double[] rad =new double[]{radius[1],radius[2],radius[0]};\n calcCircleInCircle(posRec, rad, dist13);\n }\n //Kein Kreis liegt innerhalb eines Anderen\n else\n {\n\n if ((dist12 > (radius[0] + radius[1])) && (dist13 > (radius[0] + radius[2])) && (dist23 > (radius[1] + radius[2])))\n {\n double p1[] = new double[2];\t//x\n double p2[] = new double[2];\t//y\n\n double norm12 = norm(posReceiver[0][0], posReceiver[0][1], posReceiver[1][0], posReceiver[1][1]);\n // Verbindungspunkte Kreis 1 und 2\n p1[0] = posReceiver[0][0] + (radius[0]/ norm12) * (posReceiver[1][0] - posReceiver[0][0]); //x-P1\n p1[1] = posReceiver[0][1] + (radius[0]/ norm12) * (posReceiver[1][1] - posReceiver[0][1]); //y-P1\n p2[0] = posReceiver[1][0] + (radius[1]/ norm12) * (posReceiver[0][0] - posReceiver[1][0]); //x-P2\n p2[1] = posReceiver[1][1] + (radius[1]/ norm12) * (posReceiver[0][1] - posReceiver[1][1]); //y-P2\n double m12[] = new double[2];\n m12[0] = p1[0] + 0.5 * (p2[0] - p1[0]);\t//x\n m12[1] = p1[1] + 0.5 * (p2[1] - p1[1]);\t//y\n\n\n double norm23 = norm(posReceiver[1][0], posReceiver[1][1], posReceiver[2][0], posReceiver[2][1]);\n // Verbindungspunkte Kreis 2 und 3\n p1[0] = posReceiver[1][0] + (radius[1]/ norm23) * (posReceiver[2][0] - posReceiver[1][0]); //x-P1\n p1[1] = posReceiver[1][1] + (radius[1]/ norm23) * (posReceiver[2][1] - posReceiver[1][1]); //y-P1\n p2[0] = posReceiver[2][0] + (radius[2]/ norm23) * (posReceiver[1][0] - posReceiver[2][0]); //x-P2\n p2[1] = posReceiver[2][1] + (radius[2]/ norm23) * (posReceiver[1][1] - posReceiver[2][1]); //y-P2\n double m23[] = new double[2];\n m23[0] = p1[0] + 0.5 * (p2[0] - p1[0]);\t//x\n m23[1] = p1[1] + 0.5 * (p2[1] - p1[1]);\t//y\n\n\n double norm31 = norm(posReceiver[2][0], posReceiver[2][1], posReceiver[0][0], posReceiver[0][1]);\n // Verbindungspunkte Kreis 3 und 1\n p1[0] = posReceiver[2][0] + (radius[2]/ norm31) * (posReceiver[0][0] - posReceiver[2][0]); //x-P1\n p1[1] = posReceiver[2][1] + (radius[2]/ norm31) * (posReceiver[0][1] - posReceiver[2][1]); //y-P1\n p2[0] = posReceiver[0][0] + (radius[0]/ norm31) * (posReceiver[2][0] - posReceiver[0][0]); //x-P2\n p2[1] = posReceiver[0][1] + (radius[0]/ norm31) * (posReceiver[2][1] - posReceiver[0][1]); //y-P2\n double m31[] = new double[2];\n m31[0] = p1[0] + 0.5 * (p2[0] - p1[0]);\t//x\n m31[1] = p1[1] + 0.5 * (p2[1] - p1[1]);\t//y\n\n\n // Norm der drei Punkte berechnen\n double a_p = Math.sqrt((m12[0] * m12[0]) + (m12[1] * m12[1]));\n double b_p = Math.sqrt((m23[0] * m23[0]) + (m23[1] * m23[1]));\n double c_p = Math.sqrt((m31[0] * m31[0]) + (m31[1] * m31[1]));\n\n double denominator = 2 * (((m12[0] * m23[1]) - (m12[1] * m23[0])) + (m23[0] * m31[1] - m23[1] * m31[0]) + (m31[0] * m12[1] - m31[1] * m12[0]));\n xPos_func = (1/ denominator)*(((b_p * b_p - c_p * c_p)*(-m12[1]) + (c_p * c_p - a_p * a_p)* (-m23[1]) + (a_p * a_p - b_p * b_p)*(-m31[1])));\n yPos_func = (1/ denominator)*(((b_p * b_p - c_p * c_p)*m12[0] + (c_p * c_p - a_p * a_p)* m23[0] + (a_p * a_p - b_p * b_p)*m31[0]));\n errRad_func = norm(xPos_func, yPos_func, m12[0], m12[1]);\n\n }\n // Kreis 1 und 3 schneiden sich\n else if ((dist12 > (radius[0] + radius[1])) && (dist23 > (radius[1] + radius[2])))\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[1][0],posReceiver[1][1]}};\n double[] rad = new double[]{radius[0],radius[2],radius[1]};\n calc2Circle(posRec,rad);\n }\n //Kreis 2 und 3 schneide sich\n else if ((dist12 > (radius[0] + radius[1])) && (dist13 > (radius[0] + radius[2])))\n {\n double[][] posRec = new double[][]{{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]},{posReceiver[0][0],posReceiver[0][1]}};\n double[] rad = new double[]{radius[1],radius[2],radius[0]};\n calc2Circle(posRec,rad);\n }\n //Kreis 1 und 2 schneiden sich\n else if ((dist13 > (radius[0] + radius[2])) && (dist23 > (radius[1] + radius[2])))\n {\n double[][] posRec = new double[][]{{posReceiver[0][0],posReceiver[0][1]},{posReceiver[1][0],posReceiver[1][1]},{posReceiver[2][0],posReceiver[2][1]}};\n double[] rad = new double[]{radius[0],radius[1],radius[2]};\n calc2Circle(posRec,rad);\n }\n else if ((dist12 > (radius[0] + radius[1])))\n {\n double[][] posRec = new double[][]{\n {posReceiver[0][0],posReceiver[0][1]},\n {posReceiver[1][0],posReceiver[1][1]},\n {posReceiver[2][0],posReceiver[2][1]}};\n double[] rad = new double[]{radius[0],radius[1],radius[2]};\n calc1Circle(posRec,rad);\n }\n else if ((dist23 > (radius[1] + radius[2])))\n {\n double[][] posRec = new double[][]{\n {posReceiver[1][0],posReceiver[1][1]},\n {posReceiver[2][0],posReceiver[2][1]},\n {posReceiver[0][0],posReceiver[0][1]}};\n double[] rad = new double[]{radius[1],radius[2],radius[0]};\n calc1Circle(posRec,rad);\n }\n else if ((dist13 > (radius[0] + radius[2])))\n {\n double[][] posRec = new double[][]{\n {posReceiver[0][0],posReceiver[0][1]},\n {posReceiver[2][0],posReceiver[2][1]},\n {posReceiver[1][0],posReceiver[1][1]}};\n double[] rad = new double[]{radius[0],radius[2],radius[1]};\n calc1Circle(posRec,rad);\n }\n else\n {\n double x1 = 0, y1 = 0, x2 = 0, y2 = 0, x3 = 0, y3 = 0;\n //Kreisschnittpunkte\n //Kreisschnittpunkte\n //Kreisschnittpunkte\n double pos12[][] = circlepoints2(posReceiver[0][0], posReceiver[0][1], posReceiver[1][0], posReceiver[1][1], radius[0], radius[1]);\n double pos23[][] = circlepoints2(posReceiver[1][0], posReceiver[1][1], posReceiver[2][0], posReceiver[2][1], radius[1], radius[2]);\n double pos13[][] = circlepoints2(posReceiver[0][0], posReceiver[0][1], posReceiver[2][0], posReceiver[2][1], radius[0], radius[2]);\n\n if(radius[0] >= norm(pos23[0][0],pos23[0][1], posReceiver[0][0],posReceiver[0][1]))\n {\n x1 = pos23[0][0];\n y1 = pos23[0][1];\n }\n else if(radius[0] >= norm(pos23[1][0], pos23[1][1], posReceiver[0][0],posReceiver[0][1]))\n {\n x1 = pos23[1][0];\n y1 = pos23[1][1];\n }\n\n if(radius[1] >= norm(pos13[0][0], pos13[0][1], posReceiver[1][0],posReceiver[1][1]))\n {\n x2 = pos13[0][0];\n y2 = pos13[0][1];\n }\n else if(radius[1] >= norm(pos13[1][0], pos13[1][1], posReceiver[1][0],posReceiver[1][1]))\n {\n x2 = pos13[1][0];\n y2 = pos13[1][1];\n }\n\n if(radius[2] >= norm(pos12[0][0], pos12[0][1], posReceiver[2][0],posReceiver[2][1]))\n {\n x3 = pos12[0][0];\n y3 = pos12[0][1];\n }\n else if(radius[2] >= norm(pos12[1][0], pos12[1][1], posReceiver[2][0],posReceiver[2][1]))\n {\n x3 = pos12[1][0];\n y3 = pos12[1][1];\n }\n\n double tempD = x1 * y2 + x2 * y3 + x3 * y1 - x1 * y3 - x2 * y1 - x3 * y2;\n\n xPos_func = (0.5*(\n -y1*(y2*y2)\n +y1*(y3*y3)\n -y1*(x2*x2)\n +y1*(x3*x3)\n\n +y2*(y1*y1)\n -y2*(y3*y3)\n +y2*(x1*x1)\n -y2*(x3*x3)\n\n -y3*(y1*y1)\n +y3*(y2*y2)\n -y3*(x1*x1)\n +y3*(x2*x2)\n ))/ tempD;\n\n yPos_func = (0.5*(\n +x1*(x2*x2)\n -x1*(x3*x3)\n +x1*(y2*y2)\n -x1*(y3*y3)\n\n -x2*(x1*x1)\n +x2*(x3*x3)\n -x2*(y1*y1)\n +x2*(y3*y3)\n\n +x3*(x1*x1)\n -x3*(x2*x2)\n +x3*(y1*y1)\n -x3*(y2*y2)\n ))/ tempD;\n\n errRad_func = norm(x1, y1, xPos_func, yPos_func);\n }\n }\n }",
"public double calDistance()\n {\n double closest = poly[0].getD();\n\n for(int i = 1; i < sides; i++)\n {\n if(closest > poly[i].getD())\n {\n closest = poly[i].getD();\n }\n }\n this.distance = closest;\n\n return closest;\n }",
"private float distanceTo(BasicEvent event) {\n final float dx = event.x - location.x;\n final float dy = event.y - location.y;\n// return Math.abs(dx)+Math.abs(dy);\n return distanceMetric(dx, dy);\n// dx*=dx;\n// dy*=dy;\n// float distance=(float)Math.sqrt(dx+dy);\n// return distance;\n }",
"@Override\n\tpublic float getDistance(float[] fv1, float[] fv2) {\n\t\tif(settings.getMetric() == 1){\n\t\t\treturn getL1Distance(fv1, fv2);\n\t\t} else { //metric == 2\n\t\t\treturn getL2Distance(fv1, fv2);\n\t\t}\n\t\t\n\t\t\n\t}",
"private double calculateDistance(int sourceX, int sourceY, int targetX, int targetY){\n int xLength = targetX - sourceX;\n int yLength = targetY - sourceY;\n return Math.sqrt((xLength*xLength)+(yLength*yLength)); \n }",
"public static void setDistances (double idistances){\n\t\t\tdistances = idistances;\n\t}",
"void updateDistance(int distance);",
"public int readDistance() {\r\n\t\tint newDistance=0;\r\n\t\tint filterCount = 0;\r\n\t\twhile(filterCount<US_FILTER) {\r\n\t\t\tus.fetchSample(usData, 0); // acquire data\r\n\t\t\tnewDistance=(int) (usData[0] * 100.0);// extract from buffer, cast to int and add to total\r\n\t\t\t\r\n\t\t\tif(newDistance<=distance+US_ERROR && newDistance>=distance-US_ERROR) {\r\n\t\t\t\tfilterCount++;\r\n\t\t\t}else {\r\n\t\t\t\tfilterCount=0;\r\n\t\t\t}\r\n\t\t\tdistance=newDistance;\r\n\t\t}\r\n\t\treturn distance; \r\n\t}",
"private double getDistance(double initX, double initY, double targetX, double targetY) {\n\t\treturn Math.sqrt(Math.pow((initX - targetX), 2) + Math.pow((initY - targetY), 2));\n\t}",
"private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: distance from camera to base of target\n\t\tfinal double distance = ((h2 - h1) / Math.tan(Math.toRadians(a1 + a2)));\n\n\t\tfinal double d = Math.sqrt(Math.pow(h2 - h1, 2) + Math.pow(distance, 2));\n\t\tSmartDashboard.putNumber(\"Py Distance\", d);\n\n\t\treturn (distance);\n\n\t}",
"public void calculateShooterInfo(double distance) {\n }",
"private static double getDistance(Point r_p1, Point r_p2, Point s_p1, Point s_p2, long time){\n\t\t// get the factors\n\t\tdouble a = getA(r_p1, r_p2, s_p1, s_p2);\n\t\tdouble b = getB(r_p1, r_p2, s_p1, s_p2);\n\t\tdouble c = getC(r_p1, r_p2, s_p1, s_p2);\n\t\t\n\t\tdouble dist = Math.sqrt(a*Math.pow(time, 2) + b*time + c);\n\t\t\n\t\treturn dist;\n\t}",
"double estimatedDistanceToGoal(Vertex s, Vertex goal);",
"public void setDistanceFunction(DistanceFunction distanceFunction);",
"public int[] getDistances(){\n\t\treturn distances;\n\t}",
"public float fieldDistance(ArrayList<LatLng> path){\n return dronePath.fieldDistance(path);\n }",
"private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}",
"protected long travel() {\n\n return Math.round(((1 / Factory.VERTEX_PER_METER_RATIO) / (this.speed / 3.6)) * 1000);\n }",
"public double getDistance() {\n return this.distance;\n }",
"public double getDist() {\n return distance;\n }",
"double getDistance(int i, int j){\r\n\tdouble d = (coord[i][0]-coord[j][0])*(coord[i][0]-coord[j][0])+ (coord[i][1]-coord[j][1])*(coord[i][1]-coord[j][1]);\r\n\td = Math.sqrt(d);\r\n\treturn d;\r\n}",
"private float getDistance(SXRNode object)\n {\n float x = object.getTransform().getPositionX();\n float y = object.getTransform().getPositionY();\n float z = object.getTransform().getPositionZ();\n return (float) Math.sqrt(x * x + y * y + z * z);\n }",
"public double getDistanceFromSource()\n {\n return distanceFromSource;\n }",
"private void straightDistance(double distance) {\n\t\tdouble marginOfError = 0.3;// in inches\n\t\tdouble distanceTraveled = 0;// in inches\n\t\tdouble forwardSpeed = 0;\n\t\tdouble rightSpeed = 0;\n\t\tdouble leftSpeed = 0;\n\t\t// desiredAngle = maggie.getAngle();\n\t\tleftEncoder.reset();\n\t\trightEncoder.reset();\n\n\t\twhile (Math.abs(distanceTraveled - distance) > marginOfError && isEnabled() && isAutonomous()) {\n\t\t\tdistanceTraveled = kDriveToInches * ((-leftEncoder.get() + rightEncoder.get()) / 2);\n\t\t\tSmartDashboard.putNumber(\"distance Traveled\", distanceTraveled);\n\t\t\t// slowed down for now\n\t\t\tforwardSpeed = Math.atan(0.125 * (distance - distanceTraveled)) / (0.5 * Math.PI);//replace arctan with 1/(1+(1.0*e^(-1.0*x)))\n\t\t\t/*rightSpeed = forwardSpeed * (1 + (0.01 * (maggie.getAngle() - desiredAngle)));\n\t\t\tleftSpeed = forwardSpeed * (1 - 0.01 * (maggie.getAngle() - desiredAngle));*/\n\t\t\trobot.lDrive(leftSpeed);\n\t\t\trobot.rDrive(rightSpeed);\n\t\t\televator.update();\n\t\t\trobot.eDrive(elevator.motorMovement);\n\t\t\treportEncoder();\n\t\t}\n\t}",
"private void updatePointSpeeds() {\n\t\tfor (int i = 0; i < locations.size(); i++) {\n\t\t\tLocationStructure loc = locations.get(i);\t\t\n\t\t\tDouble dist = Double.MIN_VALUE;\n\t\t\tDouble lat1 = loc.getLatitude().doubleValue();\n\t\t\tDouble lon1 = loc.getLongitude().doubleValue();\n\t\t\t\n\t\t\tDate d = times.get(i);\n\t\t\t\n\t\t\tif( i+1 < locations.size()) {\n\t\t\t\tloc = locations.get(i+1);\n\t\t\t\tDouble lat2 = loc.getLatitude().doubleValue();\n\t\t\t\tDouble lon2 = loc.getLongitude().doubleValue();\n\t\t\t\tdist = calculateDistance(lat1, lon1, lat2, lon2);\n\t\t\t\t\n\t\t\t\tDate d1 = times.get(i+1);\n\t\t\t\tDateTime dt1 = new DateTime(d);\n\t\t\t\tDateTime dt2 = new DateTime(d1);\n\t\t\t\tint seconds = Seconds.secondsBetween(dt1, dt2).getSeconds();\t\t\t\n\t\t\t\tDouble pd = (dist/seconds)*60;\n\t\t\t\tif(!pd.isNaN()) {\n\t\t\t\t\tpointSpeed.add(pd);\t\t\n\t\t\t\t\tSystem.out.println(\"BUS STATE-- Added point speed of \"+ (dist/seconds)*60 + \" for \" +this.vehicleRef);\n\t\t\t\t}\n\t\t\t} else break;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public int rawDistance() {\r\n\t\tus.fetchSample(usData, 0); // acquire data\r\n\t\tdistance=(int) (usData[0] * 100.0);// extract from buffer, cast to int and add to total\r\n\t\t\t\r\n\t\treturn distance; \r\n\t}",
"public Distance getDistance() {\n return distance;\n }",
"void addDistance(float distanceToAdd);",
"private static void computeDistanceAndBearing(double lat1, double lon1,\n\t double lat2, double lon2, double[] results) {\n\n\t\tint MAXITERS = 20;\n\t\t// Convert lat/long to radians\n\t\tlat1 *= Math.PI / 180.0;\n\t\tlat2 *= Math.PI / 180.0;\n\t\tlon1 *= Math.PI / 180.0;\n\t\tlon2 *= Math.PI / 180.0;\n\n\t\tdouble a = 6378137.0; // WGS84 major axis\n\t\tdouble b = 6356752.3142; // WGS84 semi-major axis\n\t\tdouble f = (a - b) / a;\n\t\tdouble aSqMinusBSqOverBSq = (a * a - b * b) / (b * b);\n\n\t\tdouble L = lon2 - lon1;\n\t\tdouble A = 0.0;\n\t\tdouble U1 = Math.atan((1.0 - f) * Math.tan(lat1));\n\t\tdouble U2 = Math.atan((1.0 - f) * Math.tan(lat2));\n\n\t\tdouble cosU1 = Math.cos(U1);\n\t\tdouble cosU2 = Math.cos(U2);\n\t\tdouble sinU1 = Math.sin(U1);\n\t\tdouble sinU2 = Math.sin(U2);\n\t\tdouble cosU1cosU2 = cosU1 * cosU2;\n\t\tdouble sinU1sinU2 = sinU1 * sinU2;\n\n\t\tdouble sigma = 0.0;\n\t\tdouble deltaSigma = 0.0;\n\t\tdouble cosSqAlpha = 0.0;\n\t\tdouble cos2SM = 0.0;\n\t\tdouble cosSigma = 0.0;\n\t\tdouble sinSigma = 0.0;\n\t\tdouble cosLambda = 0.0;\n\t\tdouble sinLambda = 0.0;\n\n\t\tdouble lambda = L; // initial guess\n\t\tfor (int iter = 0; iter < MAXITERS; iter++) {\n\t\t\tdouble lambdaOrig = lambda;\n\t\t\tcosLambda = Math.cos(lambda);\n\t\t\tsinLambda = Math.sin(lambda);\n\t\t\tdouble t1 = cosU2 * sinLambda;\n\t\t\tdouble t2 = cosU1 * sinU2 - sinU1 * cosU2 * cosLambda;\n\t\t\tdouble sinSqSigma = t1 * t1 + t2 * t2; // (14)\n\t\t\tsinSigma = Math.sqrt(sinSqSigma);\n\t\t\tcosSigma = sinU1sinU2 + cosU1cosU2 * cosLambda; // (15)\n\t\t\tsigma = Math.atan2(sinSigma, cosSigma); // (16)\n\t\t\tdouble sinAlpha = (sinSigma == 0) ? 0.0 :\n\t\t\t\t\t\t\tcosU1cosU2 * sinLambda / sinSigma; // (17)\n\t\t\tcosSqAlpha = 1.0 - sinAlpha * sinAlpha;\n\t\t\tcos2SM = (cosSqAlpha == 0) ? 0.0 :\n\t\t\t\t\t\t\tcosSigma - 2.0 * sinU1sinU2 / cosSqAlpha; // (18)\n\n\t\t\tdouble uSquared = cosSqAlpha * aSqMinusBSqOverBSq; // defn\n\t\t\tA = 1 + (uSquared / 16384.0) * // (3)\n\t\t\t\t\t\t\t(4096.0 + uSquared *\n\t\t\t\t\t\t\t\t\t\t\t(-768 + uSquared * (320.0 - 175.0 * uSquared)));\n\t\t\tdouble B = (uSquared / 1024.0) * // (4)\n\t\t\t\t\t\t\t(256.0 + uSquared *\n\t\t\t\t\t\t\t\t\t\t\t(-128.0 + uSquared * (74.0 - 47.0 * uSquared)));\n\t\t\tdouble C = (f / 16.0) *\n\t\t\t\t\t\t\tcosSqAlpha *\n\t\t\t\t\t\t\t(4.0 + f * (4.0 - 3.0 * cosSqAlpha)); // (10)\n\t\t\tdouble cos2SMSq = cos2SM * cos2SM;\n\t\t\tdeltaSigma = B * sinSigma * // (6)\n\t\t\t\t\t\t\t(cos2SM + (B / 4.0) *\n\t\t\t\t\t\t\t\t\t\t\t(cosSigma * (-1.0 + 2.0 * cos2SMSq) -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(B / 6.0) * cos2SM *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(-3.0 + 4.0 * sinSigma * sinSigma) *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(-3.0 + 4.0 * cos2SMSq)));\n\n\t\t\tlambda = L +\n\t\t\t\t\t\t\t(1.0 - C) * f * sinAlpha *\n\t\t\t\t\t\t\t\t\t\t\t(sigma + C * sinSigma *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(cos2SM + C * cosSigma *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(-1.0 + 2.0 * cos2SM * cos2SM))); // (11)\n\n\t\t\tdouble delta = (lambda - lambdaOrig) / lambda;\n\t\t\tif (Math.abs(delta) < 1.0e-12) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfloat distance = (float) (b * A * (sigma - deltaSigma));\n\t\tresults[0] = distance;\n\t\tfloat initialBearing = (float) Math.atan2(cosU2 * sinLambda,\n\t\t cosU1 * sinU2 - sinU1 * cosU2 * cosLambda);\n\t\tinitialBearing *= 180.0 / Math.PI;\n\t\tfloat finalBearing = (float) Math.atan2(cosU1 * sinLambda,\n\t\t -sinU1 * cosU2 + cosU1 * sinU2 * cosLambda);\n\t\tfinalBearing *= 180.0 / Math.PI;\n\t\tresults[1] = finalBearing;\n\t}",
"@Test\n\tpublic void lineGetDistanceTest() {\n\t\tDouble distanceOfFirstLine = Math.sqrt((10 - 0) * (10 - 0) + (10 - 0) * (10 - 0));\n\n\t\tassertEquals(distanceOfFirstLine, firstLine.getDistance(), .0001d);\n\t\tassertNotEquals(Math.sqrt(2 * distanceOfFirstLine),\n\t\t\t\tfirstLine.getDistance(), .0001d);\n\t}",
"public double getDistance() {\n\t\t// miles = miles/hr * s / (s/hr)\n\t\treturn (double)speed/10.0 * duration / 3600.0;\n\t}",
"public distance()\n\t{\n\t\t// Initialize all data members.\n\t\tnumDatasets = 0;\t\t\t\n\t\tline = null;\n \tinputLine = null;\t\t\t\n\t\ttokenBuffer = null;\n\t\tlistSize = 0;\n\t}",
"public abstract double getDistance(T o1, T o2) throws Exception;",
"@Override\n\t\t\tpublic void onLine(String line) {\n\t\t\t\tPoint p = Point.parse(line);\n\t\t\t\tNearestPointStats stats = p.getNearestPoint(centers);\n\t\t\t\tsum.set(0, sum.get(0) + stats.distance);\n\t\t\t}",
"public double getDistance() {\n\t\treturn distance;\n\t}",
"public double getDistance() {\n\t\treturn distance;\n\t}",
"public int distance() {\n return distance;\n }",
"private void calculateDistances(int point) {\n int start = getDistanceIndex(point);\n\n for (int i = 0; i < point; i++) {\n distances[start + i] = getDistance(ntree.get(point), ntree.get(i));\n }\n\n int numPoints = getNumPoints();\n\n for (int i = point + 1; i < numPoints; i++) {\n start = getDistanceIndex(i);\n distances[start + point] = getDistance(ntree.get(point),\n ntree.get(i));\n }\n }"
]
| [
"0.6755936",
"0.66077393",
"0.65016806",
"0.6479271",
"0.64780676",
"0.62742734",
"0.6256415",
"0.6254487",
"0.6189598",
"0.6116574",
"0.6113442",
"0.6097413",
"0.6059156",
"0.60501724",
"0.60434073",
"0.6032214",
"0.60161966",
"0.6015085",
"0.59710366",
"0.5967728",
"0.58620036",
"0.58550656",
"0.5839327",
"0.5837105",
"0.5828931",
"0.5827207",
"0.5817281",
"0.58095276",
"0.580916",
"0.57930416",
"0.5791171",
"0.5783924",
"0.5773927",
"0.5772876",
"0.5764783",
"0.5759833",
"0.5752338",
"0.57464814",
"0.5706479",
"0.5700682",
"0.5687185",
"0.5667925",
"0.5667142",
"0.566553",
"0.5646911",
"0.5645811",
"0.5635673",
"0.56160635",
"0.5609278",
"0.5607375",
"0.5600619",
"0.5595958",
"0.5592821",
"0.55916786",
"0.55904317",
"0.5588124",
"0.55847275",
"0.55815667",
"0.5577149",
"0.55749816",
"0.5571672",
"0.5560586",
"0.5559661",
"0.5529796",
"0.5525795",
"0.55226356",
"0.551794",
"0.55150825",
"0.5509307",
"0.5503449",
"0.5494442",
"0.54882056",
"0.54854363",
"0.5478113",
"0.5474945",
"0.5474181",
"0.5472304",
"0.54697144",
"0.5465495",
"0.54624784",
"0.545991",
"0.5454024",
"0.5451599",
"0.54450697",
"0.544441",
"0.5443758",
"0.5441654",
"0.54415184",
"0.54357105",
"0.5434202",
"0.54337865",
"0.5417789",
"0.5414897",
"0.5413406",
"0.54088277",
"0.54078984",
"0.54043573",
"0.5399119",
"0.5399119",
"0.53967875",
"0.5393588"
]
| 0.0 | -1 |
ycoordinate of this point Initializes a new point. | public Point(int x, int y) {
/* DO NOT MODIFY */
this.x = x;
this.y = y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setY(double point) {\n this.y = point;\n }",
"void setY(final Number y) {\n this.yCoordinate = y;\n }",
"public double getY() {\r\n\t\t return this.yCoord;\r\n\t }",
"public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}",
"public int getYPoint() {\r\n return this.y;\r\n }",
"@Basic\n\tpublic double getYCoordinate() {\n\t\treturn this.y;\n\t}",
"public int getPointY() {\n return pointY;\n }",
"public double getyCoord() {\n\t\treturn yCoord;\n\t}",
"public double getyCoordinate() {\n return yCoordinate;\n }",
"public void setY(int y){\n\t\tthis.y_location = y;\n\t}",
"public double getY()\n\t{\t\n\t\treturn y;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's y-coordinate\n\t}",
"protected Number getY() {\n return this.yCoordinate;\n }",
"public double getY() { return y; }",
"public double getY(){\n return this.y;\n }",
"public void setY(int y) {\n\tbaseYCoord = y;\n}",
"public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}",
"public double getY() {\r\n return this.y;\r\n }",
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\r\n }",
"public void setY(double y)\n {\n this.y = y;\n }",
"public int y() {\r\n\t\treturn yCoord;\r\n\t}",
"public int getY() {\r\n\t\treturn ycoord;\r\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 int getyCoord() {\n\t\treturn yCoord;\n\t}",
"public void setY(double y){\n this.y = y;\n }",
"public void setY(double y){\n this.y = y;\n }",
"public int getyCoordinate() {\n return yCoordinate;\n }",
"public int getyCoordinate() {\n return yCoordinate;\n }",
"public double getYCoordinate() {\n return yCoordinate;\n }",
"public double getY(){\n\t\treturn y;\n\t}",
"public final double getY() { return location.getY(); }",
"public double getY() {\n return y;\r\n }",
"void setY(int y) {\n this.y = y;\n }",
"public int getY()\r\n {\r\n return yCoord;\r\n }",
"public double getY(){\r\n return y;\r\n }",
"public int getY() {\n return yCoord;\n }",
"public double getY() {\r\n return y;\r\n }",
"public int getY() {\n return this.coordinate.y;\n }",
"@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}",
"void setY(double y){\r\n\t\tthis.y=y;\r\n\t}",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public 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 final double getY() {\n return y;\n }",
"@Basic\n\tpublic double getY() {\n\t\treturn this.y;\n\t}",
"public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}",
"public double getY() {\n return y;\n }",
"public void setY(double y) {\n\t\tthis.y = y;\n\t}",
"public void setY(int y) {\n this.y = y;\r\n }",
"public double getY(){\n return y;\n }",
"public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}",
"public void setYPosition(double y)\n\t{\n\t\tthis.yPosition = y;\n\t}",
"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 int getY() {\r\n return this.y;\r\n }",
"public double getY()\n {\n return y;\n }",
"public void setY(int y)\n {\n this.y = y;\n }",
"public void setPointY(int pointY) {\n this.pointY = pointY;\n }",
"public void setEndY(double y)\n {\n endycoord=y; \n }",
"public void setY(double y)\n\t{\n\t\tthis.y = y;\n\t}",
"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 int getY() {\n return this.y;\n }",
"public double getYCoordinates() { return yCoordinates; }",
"public void setStartY(double y)\n {\n startycoord=y; \n }",
"public int getY() { return y; }",
"public int getY() { return y; }",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}",
"public int getY() {\n\treturn baseYCoord;\n}",
"public int getY(){\r\n\t\treturn y;\r\n\t}",
"public int getYCoordinate()\n\t{\n\t\treturn yCoordinate;\n\t}",
"@Override\n\tpublic float getY() \n\t{\n\t\treturn _y;\n\t}",
"public int getY()\n {\n return this.y;\n }",
"public PlotPosition setY( double y )\n {\n return setY( y, 1 );\n }",
"public double getY() {\n\t\treturn y;\n\t}"
]
| [
"0.7445294",
"0.740083",
"0.7375481",
"0.7356984",
"0.7307103",
"0.7292456",
"0.7272895",
"0.7267107",
"0.726491",
"0.7247131",
"0.7245219",
"0.72439414",
"0.72253084",
"0.7206983",
"0.71776295",
"0.71764696",
"0.71743387",
"0.71578103",
"0.71578103",
"0.71578103",
"0.714918",
"0.7147719",
"0.71459377",
"0.71440667",
"0.71440494",
"0.71440494",
"0.71440494",
"0.7129832",
"0.7120225",
"0.7120225",
"0.7120026",
"0.7120026",
"0.709654",
"0.7088948",
"0.70888954",
"0.7088792",
"0.7085038",
"0.70835525",
"0.7083174",
"0.7080423",
"0.707978",
"0.70770955",
"0.7068267",
"0.7056274",
"0.70530045",
"0.70530045",
"0.70530045",
"0.7044778",
"0.7044778",
"0.7044778",
"0.7044778",
"0.7044778",
"0.7044778",
"0.70409924",
"0.70403427",
"0.7029519",
"0.70258623",
"0.70252097",
"0.7024976",
"0.702007",
"0.7017708",
"0.701583",
"0.70154274",
"0.7015084",
"0.7015084",
"0.7015084",
"0.7015084",
"0.7015084",
"0.70146346",
"0.70146346",
"0.70146346",
"0.7013473",
"0.7013066",
"0.7012974",
"0.70110154",
"0.70106894",
"0.70046675",
"0.7003704",
"0.70036525",
"0.70036525",
"0.70036525",
"0.70036525",
"0.70036525",
"0.70036525",
"0.70036525",
"0.6997657",
"0.69951296",
"0.6991661",
"0.6991107",
"0.6991107",
"0.6989555",
"0.6989555",
"0.6989555",
"0.6989555",
"0.6987947",
"0.69802564",
"0.69785446",
"0.69772494",
"0.6976574",
"0.697129",
"0.6970614"
]
| 0.0 | -1 |
Draws this point to standard draw. | public void draw() {
/* DO NOT MODIFY */
StdDraw.point(x, y);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }",
"public void drawTo(Point that) {\r\n /* DO NOT MODIFY */\r\n StdDraw.line(this.x, this.y, that.x, that.y);\r\n }",
"public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }",
"public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }",
"public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }",
"public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.line(this.x, this.y, that.x, that.y);\n }",
"public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n }\n StdDraw.setPenRadius();\n }",
"public void drawTo(Point that) {\n StdDraw.line(this.x, this.y, that.x, that.y);\n }",
"public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }",
"public void draw() {\n\t\tSystem.out.println(getMessageSource().getMessage(\"greeting2\", null, null));\r\n\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.circle\", null, null));\r\n\t\tSystem.out.println(\"Center's Coordinates: (\" + getCenter().getX() + \", \" + getCenter().getY() + \")\");\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.center\",\r\n\t\t\t\tnew Object[] { getCenter().getX(), getCenter().getY() }, \"Default point coordinates msg\", null));\r\n\t}",
"public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }",
"public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(.01);\n for (Point2D p : s) {\n p.draw();\n }\n }",
"public void draw() {\n \n // TODO\n }",
"public void draw() {\r\n System.out.print(this);\r\n }",
"public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}",
"@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tgc.setFill(this.color.getColor());\n\t\tgc.fillRect(MyPoint.point[0], MyPoint.point[1], this.width, this.height);\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}",
"public void draw(Point location) {\n\t}",
"public void draw()\n {\n drawLine(x1, y1, x2, y2);\n }",
"public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }",
"public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }",
"protected abstract void draw();",
"public void draw() {\n \n }",
"public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }",
"public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}",
"public void draw() {\n }",
"private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }",
"void draw() {\n\t\tSystem.out.println(\"Drawing the Rectange...\");\n\t\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"Inside draw of Circle ..Point is: \"+center.getX() +\",\"+center.getY());\n\t}",
"public void draw() {\n\t\tsuper.repaint();\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}",
"@Override\r\n public void draw() {\n }",
"public void draw() {\n StdDraw.clear();\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setXscale(-drawLength * 0.1, drawLength * 1.2);\n StdDraw.setYscale(-drawLength * 0.65, drawLength * 0.65);\n StdDraw.line(0, 0, drawLength, 0);\n StdDraw.text(-drawLength * 0.05, 0, \"0\");\n StdDraw.text(drawLength * 1.1, 0, Integer.toString(size()));\n }",
"@Override\n\tpublic void draw(Graphics graphics) {\n\t\tgraphics.setColor(Color.black);\t\t\t\t\t\t\t\t\t//Farbe schwarz\n\t\tgraphics.drawRect(point.getX(),point.getY() , width, height);\t//malt ein leeren Rechteck\n\t}",
"@Override\n void draw()\n {\n \n System.out.println(\"Drawing Circle at\" + super.x +\"and\"+ super.y+\"!\");\n \n }",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"public void drawPoint(DrawPanelModel drawPanelModel);",
"public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }",
"public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}",
"@Override\n public void draw()\n {\n }",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"draw method\");\n\t}",
"@Override\n public void draw() {\n drawAPI.drawCircle(radius, x, y); \n }",
"public void startDraw(Vector2 point){\n path.add(point);\n }",
"@Override\n\tvoid draw(Graphics2D g2) {\n\t\t// TODO Auto-generated method stub\n\t\tg2.setColor(color);\n\t\tPoint2D.Double from = new Point2D.Double(this.getXPos(), this.getYPos());\n\t\tPoint2D.Double to = new Point2D.Double(x2, y2);\n\t\tsegment = new Line2D.Double(from, to);\n\t\tg2.drawLine((int) this.getXPos() - 8, (int) this.getYPos() - 96, (int) x2 - 8, (int) y2 - 96);\n\n\t}",
"@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }",
"@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}",
"public void draw(){\n }",
"public void draw() {\n\n }",
"@Override\n public void draw() {\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t}",
"void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}",
"public abstract void draw();",
"public abstract void draw();",
"public abstract void draw();",
"public void Draw(Graphics g)\n/* */ {\n/* 55 */ g.setColor(this.m_color);\n/* */ \n/* 57 */ Point prevPt = new Point(0, 0);Point currPt = new Point(0, 0);\n/* */ \n/* 59 */ for (double t = 0.0D; t < 1.01D; t += this.m_tValue) {\n/* 60 */ ptFromTVal(t, currPt);\n/* */ \n/* 62 */ if (t == 0.0D) {\n/* 63 */ prevPt.x = currPt.x;\n/* 64 */ prevPt.y = currPt.y;\n/* */ }\n/* */ \n/* 67 */ g.drawLine(prevPt.x, prevPt.y, currPt.x, currPt.y);\n/* */ \n/* 69 */ if (this.m_showTPoints) {\n/* 70 */ g.fillOval(currPt.x - this.PT_RADIUS, currPt.y - this.PT_RADIUS, this.PT_DIAMETER, this.PT_DIAMETER);\n/* */ }\n/* */ \n/* 73 */ prevPt.x = currPt.x;\n/* 74 */ prevPt.y = currPt.y;\n/* */ }\n/* */ }",
"public abstract void draw( );",
"public double draw() {\n\t\treturn this.bp.P1P2();\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"You are drawing a RECTANGLE\");\n\t}",
"public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}",
"public void draw() {\n draw(root, false);\n }",
"public void draw()\r\n {\r\n drawn = true;\r\n }",
"public void draw(Canvas canvas) {\n\t\tcanvas.drawPoint((float)getX(), (float)getY(), getPaint());\n\t}",
"public void draw();",
"public void draw();",
"public void draw();",
"private void showDraw() {\n StdDraw.show(0);\n // reset the pen radius\n StdDraw.setPenRadius();\n }",
"@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }",
"public void draw()\n {\n super.draw();\n k = 0;\n traceOK = true;\n\n // Initialize n, x0, and xn in the control panel.\n nText.setText(\" \");\n x0Text.setText(\" \");\n xnText.setText(\" \");\n\n PlotFunction plotFunction = getSelectedPlotFunction();\n\n // Create the fixed-point iteration root finder.\n finder = new FixedPointRootFinder((Function) plotFunction.getFunction());\n }",
"public void draw(){\n\t\tcomponent.draw();\r\n\t}",
"public void draw(){\n\t\tif(selected){\n\t\t\timg.draw(xpos,ypos,scale,Color.blue);\n\t\t}else{\n\t\t\timg.draw(xpos, ypos, scale);\n\t\t}\n\t}",
"abstract void draw();",
"abstract void draw();",
"public void draw() {\n draw(root, true);\n }",
"private void drawPoint(float X, float Y, Paint p, int velocity) {\r\n if (_brushType == BrushType.Square) {\r\n /* Draw square thing */\r\n _offScreenCanvas.drawRect(X-5,Y+5,X+5,Y-5,_paint);\r\n } else if (_brushType == BrushType.Point) {\r\n /* Draw a pixel, maybe draw a sized rectangle */\r\n _offScreenCanvas.drawPoint(X,Y,_paint);\r\n } else if (_brushType == BrushType.Circle) {\r\n _offScreenCanvas.drawCircle(X, Y, _defaultRadius + velocity, _paint);\r\n } else if (_brushType == BrushType.SprayPaint) {\r\n /* Draw a random point in the radius */\r\n float x = genX(X);\r\n _offScreenCanvas.drawPoint(X + x,Y + genY(x),_paint);\r\n } else {\r\n /* Draw generic pixel? */\r\n _offScreenCanvas.drawPoint(X,Y,_paint);\r\n }\r\n }",
"@Override\n public void draw(){\n ellipse(mouseX, mouseY, 50, 50);\n }",
"public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }",
"public void draw(DrawingContext context) {\n\t\t\t\t}",
"public void draw(){\n super.repaint();\n }",
"public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}",
"public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}",
"@Override\n\tpublic void draw1() {\n\n\t}",
"public void draw(PApplet marker) {\n\t\tsuper.draw(marker);\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制矩形\");\n\t\t\n\t}",
"public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}",
"private void draw() {\n gsm.draw(g);\n }",
"@Override\n\tpublic String draw() {\n\t\treturn \"Geometry Draws\";\n\t}",
"public void Draw(Graphics2D g2d, Point mousePosition)\n {\n \n }",
"void draw(Graphics g, int xoff, int yoff) {\n this.draw(g, xoff, yoff, 0, 0, this.getWidth(), this.getHeight());\n }",
"public void drawSelf() {\n for (Point p : matches) {\n this.drawPoint(p, Color.WHITE);\n }\n }",
"public void draw(){\n\t\tSystem.out.println(\"You are drawing a CIRCLE\");\n\t}",
"public String draw() {\n\t\treturn null;\r\n\t}",
"public void show() {\r\n\t\tif ((polygon.npoints > 1)\r\n\t\t\t\t&& ((polygon.xpoints[0] != polygon.xpoints[1]) || (polygon.ypoints[0] != polygon.ypoints[1]))) {\r\n\t\t\tGraphics2D gr = (Graphics2D) graphics;\r\n\t\t\tgr.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\t\tgr.setPaint(colorPar.getDevColor());\r\n\t\t\tgr.setStroke(new BasicStroke((float) lineWidth));\r\n\t\t\tPolygon p = isTransformed ? transformed() : polygon;\r\n\t\t\tGeneralPath gp = new GeneralPath();\r\n\t\t\tgp.moveTo((float) (p.xpoints[0]), (float) (p.ypoints[0]));\r\n\t\t\tfor (int i = 1; i < p.npoints; i++) {\r\n\t\t\t\tgp.lineTo((float) (p.xpoints[i]), (float) (p.ypoints[i]));\r\n\t\t\t}\r\n\t\t\tgr.draw(gp);\r\n\t\t\tif (validBounds) {\r\n\t\t\t\tsetBounds(gp.getBounds());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\tAffineTransform saveAT = g2d.getTransform() ;\n\t\t// Append this shape's transforms to the graphics object's transform. Note the\n\t\t// ORDER: Translation will be done FIRST, then Scaling, and lastly Rotation\n\t\tg2d.transform(getRotation());\n\t\tg2d.transform(getScale());\n\t\tg2d.transform(getTranslation());\n\t\t\n\t\t// draw this object in the defined color\n\t\t;\n\t\tg2d.drawLine(top.x, top.y, bottomLeft.x, bottomLeft.y);\n\t\tg2d.drawLine(bottomLeft.x,bottomLeft.y,bottomRight.x,bottomRight.y);\n\t\tg2d.drawLine(bottomRight.x,bottomRight.y,top.x,top.y);\n\t\t\n\t\t// restore the old graphics transform (remove this shape's transform)\n\t\tg2d.setTransform (saveAT) ;\n\t}"
]
| [
"0.80359924",
"0.71873075",
"0.71825695",
"0.71825695",
"0.71825695",
"0.71825695",
"0.7170866",
"0.7138526",
"0.711635",
"0.695633",
"0.69459975",
"0.68482095",
"0.68248",
"0.6772052",
"0.6764642",
"0.6759165",
"0.671562",
"0.66303027",
"0.661976",
"0.66051966",
"0.6593306",
"0.6573119",
"0.65694225",
"0.65635866",
"0.6551249",
"0.6510709",
"0.650159",
"0.64866",
"0.648228",
"0.64809406",
"0.6472413",
"0.6472413",
"0.6427656",
"0.64259464",
"0.6423568",
"0.6419497",
"0.6413031",
"0.6413031",
"0.63769317",
"0.6367461",
"0.63668144",
"0.6345987",
"0.6340291",
"0.63382715",
"0.6332637",
"0.6325281",
"0.63240457",
"0.6321337",
"0.6305351",
"0.6304572",
"0.6290063",
"0.6285132",
"0.6285132",
"0.62838024",
"0.6277316",
"0.62559843",
"0.62559843",
"0.62559843",
"0.62527215",
"0.6246151",
"0.6224557",
"0.6211863",
"0.62095195",
"0.6208793",
"0.6207607",
"0.6199635",
"0.6182098",
"0.6182098",
"0.6182098",
"0.61819965",
"0.6181245",
"0.61788785",
"0.6177289",
"0.61446387",
"0.6138265",
"0.6138265",
"0.61353385",
"0.6120471",
"0.6101086",
"0.6091262",
"0.608682",
"0.6064205",
"0.60546046",
"0.60503125",
"0.604771",
"0.6039726",
"0.60191476",
"0.60158366",
"0.60065114",
"0.5999334",
"0.5988247",
"0.5974568",
"0.597303",
"0.59728295",
"0.59695894",
"0.59640867",
"0.5963702"
]
| 0.805948 | 3 |
Draws the line segment between this point and the specified point to standard draw. | public void drawTo(Point that) {
/* DO NOT MODIFY */
StdDraw.line(this.x, this.y, that.x, that.y);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawLine(Point2D startPoint, Point2D endPoint, double lineStroke, int EndType);",
"public void drawLine(int x, int y, int x2, int y2, int color);",
"public void drawLine(int x1, int y1, int x2, int y2);",
"private void drawLine(GraphicsContext canvas, Point start, Point end) {\n canvas.strokeLine(\n start.X, start.Y,\n end.X, end.Y\n );\n }",
"public void drawTo(Point that) {\n StdDraw.line(this.x, this.y, that.x, that.y);\n }",
"public void drawTo(Point that) {\r\n /* DO NOT MODIFY */\r\n StdDraw.line(this.x, this.y, that.x, that.y);\r\n }",
"public void drawLine(double startx, double starty, double endx, double endy, Color color) {\n\t\tgc.setStroke(color);\n\t\tgc.strokeLine(startx,starty,endx,endy);\n\t}",
"public void draw()\n {\n drawLine(x1, y1, x2, y2);\n }",
"public void startDraw(Vector2 point){\n path.add(point);\n }",
"public void drawLine(float x, float y, float x2, float y2, float width) {\n throw new NotImplementedException(); // TODO Implement\n }",
"private void drawLine( Graphics2D g2, Point2D.Double p1, Point2D.Double p2, Color colour )\r\n {\r\n drawLine( g2, p1, p2, colour, DEFAULT_STROKE );\r\n }",
"public void paintLine(Point2D pt1, Point2D pt2, Graphics graphics) {\n Graphics2D g = (Graphics2D) graphics;\n g.setXORMode(java.awt.Color.lightGray);\n g.setColor(java.awt.Color.darkGray);\n if (pt1 != null && pt2 != null) {\n // the line connecting the segments\n OMLine cLine = new OMLine((float) pt1.getY(), (float) pt1.getX(), (float) pt2.getY(), (float) pt2.getX(), lineType);\n // get the map projection\n Projection proj = theMap.getProjection();\n // prepare the line for rendering\n cLine.generate(proj);\n // render the line graphic\n cLine.render(g);\n }\n }",
"public void drawLine(float x, float y, float x2, float y2, float width, float u, float v, float texW, float texH) {\n throw new NotImplementedException(); // TODO Implement\n }",
"private void drawLine(double x1, double y1, double x2, double y2) {\r\n\t\tGLine line = new GLine(x1,y1,x2,y2);\r\n\t\tadd(line);\r\n\t}",
"public void drawLine(float[] line) {\n\t\tparent.line(line[0], line[1], line[2], line[3]);\n\t}",
"public void drawLine(int x0, int y0, int x1, int y1) {\n \t\tmyCanvas.drawLine(x0, y0, x1, y1, myPaint);\n \t}",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }",
"public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }",
"@Override\n public void lineTo(double x, double y) {\n graphicsEnvironmentImpl.lineTo(canvas, x, y);\n }",
"public GLGraphics drawLine(float x, float y, float x2, float y2) {\n\t\tstats.incLine();\n\t\tgl.glBegin(GL.GL_LINES);\n\t\tgl.glVertex3f(x, y, z);\n\t\tgl.glVertex3f(x2, y2, z);\n\t\tgl.glEnd();\n\t\treturn this;\n\t}",
"public void drawLine(int x1, int y1, int x2, int y2) {\n canvas.drawLine(x1, y1, x2, y2, paint);\n }",
"private void drawLine( Graphics2D g2, Point2D.Double p1, Point2D.Double p2, Color colour, Stroke strk )\r\n {\r\n double x1 = translateX( p1.getX() );\r\n double y1 = translateY( p1.getY() );\r\n \r\n double x2 = translateX( p2.getX() );\r\n double y2 = translateY( p2.getY() );\r\n \r\n Line2D.Double line = new Line2D.Double( x1, y1, x2, y2 );\r\n \r\n g2.setStroke( strk );\r\n \r\n g2.setColor( colour );\r\n g2.draw( line );\r\n }",
"public void drawLine(float[] line) {\n\t\tline(line[0], line[1], line[2], line[3]);\n\t}",
"private void drawLine(Vector3 point1, Vector3 point2, Node n) {\n\n Node nodeForLine= new Node();\n nodeForLine.setName(LINE_STRING);\n //First, find the vector extending between the two points and define a look rotation\n //in terms of this Vector.\n final Vector3 difference = Vector3.subtract(point1, point2);\n final Vector3 directionFromTopToBottom = difference.normalized();\n final Quaternion rotationFromAToB =\n Quaternion.lookRotation(directionFromTopToBottom, Vector3.up());\n MaterialFactory.makeTransparentWithColor(getApplicationContext(), new Color(this.colorLine.x, this.colorLine.y, this.colorLine.z,this.alphaColor))\n .thenAccept(\n material -> {\n /* Then, create a rectangular prism, using ShapeFactory.makeCube() and use the difference vector\n to extend to the necessary length. */\n ModelRenderable model = ShapeFactory.makeCube(\n new Vector3(this.sizeLine, this.sizeLine, difference.length()),\n Vector3.zero(), material);\n /* Last, set the world rotation of the node to the rotation calculated earlier and set the world position to\n the midpoint between the given points . */\n\n nodeForLine.setParent(n);\n\n\n nodeForLine.setRenderable(model);\n nodeForLine.setWorldPosition(Vector3.add(point1, point2).scaled(.5f));\n nodeForLine.setWorldRotation(rotationFromAToB);\n }\n );\n\n }",
"private void drawLineSeg(int entryNum, GPoint from, GPoint to) {\n\t\tGLine line = new GLine(from.getX(), from.getY(),\n\t\t\t\t\t\t\t to.getX(), to.getY());\n\t\tline.setColor(getColor(entryNum));\n\t\tadd(line);\n\t}",
"public void drawLine(int i, int y1, int j, int y2, Paint paint) {\n\t\t\n\t}",
"private void drawLine(int x1, int y1, int x2, int y2)\n {\n System.out.println(\"Draw a line from x of \" + x1 + \" and y of \" + y1);\n System.out.println(\"to x of \" + x2 + \" and y of \" + y2);\n System.out.println(\"The line color is \" + lineColor);\n System.out.println(\"The width of the line is \" + lineWidth);\n System.out.println(\"Then length of the line is \" + df.format(getLength()) + \"\\n\" );\n }",
"public void drawLine(int x1, int y1, int x2, int y2){\n int a1 = new Coordinate2D(x1, y1).getPixelPointX();\n int b1 = new Coordinate2D(x1, y1).getPixelPointY();\n int a2 = new Coordinate2D(x2, y2).getPixelPointX();\n int b2 = new Coordinate2D(x2, y2).getPixelPointY();\n graphics2D.drawLine(a1, b1, a2, b2);\n }",
"@Override\n\tvoid draw(Graphics2D g2) {\n\t\t// TODO Auto-generated method stub\n\t\tg2.setColor(color);\n\t\tPoint2D.Double from = new Point2D.Double(this.getXPos(), this.getYPos());\n\t\tPoint2D.Double to = new Point2D.Double(x2, y2);\n\t\tsegment = new Line2D.Double(from, to);\n\t\tg2.drawLine((int) this.getXPos() - 8, (int) this.getYPos() - 96, (int) x2 - 8, (int) y2 - 96);\n\n\t}",
"private void drawLine(Graphics g, int x1, int y1, int x2, int y2) {\n int d = 0;\n\n int dx = Math.abs(x2 - x1);\n int dy = Math.abs(y2 - y1);\n\n int dx2 = 2 * dx; // slope scaling factors to\n int dy2 = 2 * dy; // avoid floating point\n\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n int x = x1;\n int y = y1;\n\n if (dx >= dy) {\n while (true) {\n plot(g, x, y);\n if (x == x2)\n break;\n x += ix;\n d += dy2;\n if (d > dx) {\n y += iy;\n d -= dx2;\n }\n }\n } else {\n while (true) {\n plot(g, x, y);\n if (y == y2)\n break;\n y += iy;\n d += dx2;\n if (d > dy) {\n x += ix;\n d -= dy2;\n }\n }\n }\n }",
"public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);",
"public abstract void lineTo(double x, double y);",
"public void drawLine(int x, int y, int x2, int y2, int color){\n int dy = y - y2;\n int dx = x - x2;\n int fraction, stepx, stepy;\n\n if(dy < 0){\n dy = -dy;\n stepy = -1;\n }else{\n stepy = 1;\n }\n if(dx < 0){\n dx = -dx;\n stepx = -1;\n }else{\n stepx = 1;\n }\n dy <<= 1;\n dx <<= 1;\n\n set(x, y, color);\n\n if(dx > dy){\n fraction = dy - (dx >> 1);\n while(x != x2){\n if(fraction >= 0){\n y += stepy;\n fraction -= dx;\n }\n x += stepx;\n fraction += dy;\n set(x, y, color);\n }\n }else{\n fraction = dx - (dy >> 1);\n while(y != y2){\n if(fraction >= 0){\n x += stepx;\n fraction -= dy;\n }\n y += stepy;\n fraction += dx;\n set(x, y, color);\n }\n }\n }",
"@Override\n public void draw(Graphics g) {\n g.setColor(Color.BLACK);\n g.drawLine(startingPoint.x, startingPoint.y, endingPoint.x, endingPoint.y);\n }",
"private void drawLine(int x, int y, int x1, int y1, int count, Color color) {\n\n // draw a line if count is greater than 0\n if (count > 0) {\n\n NscLine newLine = new NscLine(x+count, y, x1+count, y1);\n newLine.setForeground(color);\n add(newLine);\n \n // ensure we repaint the window\n repaint();\n\n // recursively call this method, decreasing count each time\n drawLine(x, y, x1, y1, count-1, color);\n\n }\n\n }",
"private void drawLine(Vector2 vt1, Vector2 vt2, GLayerGroup pGroup){\n DrawLineLaser.DrawLine(vt1,vt2);\n\n }",
"public void drawLine() {\n for(int i=0; i < nCols; i++) {\n System.out.print(\"----\");\n }\n System.out.println(\"\");\n }",
"@Override\n\tpublic void drawLine(Vector3f from, Vector3f to, Vector3f color) {\n\n\t\tfloat[] positions = new float[6];\n\t\tpositions[0] = from.x;\n\t\tpositions[1] = from.y;\n\t\tpositions[2] = from.z;\n\n\t\tpositions[3] = to.x;\n\t\tpositions[4] = to.y;\n\t\tpositions[5] = to.z;\n\n\t\t// Create a rawmodel to store the line\n\t\tRawModel model = Globals.getLoader().loadToVAO(positions, 3);\n\n\t\tshader.start();\n\t\tshader.loadProjectionMatrix(Globals.getRenderer().getProjectionMatrix());\n\t\tshader.loadViewMatrix(Globals.getActiveCamera());\n\t\tGL30.glBindVertexArray(model.getVaoID());\n\n\t\tGL20.glEnableVertexAttribArray(0);\n\t\tGL11.glDrawArrays(GL11.GL_LINES, 0, 6);\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL30.glBindVertexArray(0);\n\t\tshader.stop();\n\t\tmodel.cleanUp();\n\n\t}",
"public void draw(Graphics g) {\r\n g.drawLine(line.get(0).getX() + 4, line.get(0).getY() + 4, line.get(4).getX() + 4, line.get(4).getY() + 4);\r\n }",
"protected abstract void lineTo(final float x, final float y);",
"private void drawLine(KdNode kdNode, double x0, double x1, double y0, double y1) {\n if (kdNode.dimension) { // True, or node is vertical\n StdDraw.setPenColor(Color.red);\n StdDraw.line(kdNode.point.x(), y0, kdNode.point.x(), y1);\n if (kdNode.left != null) drawLine(kdNode.left, x0, kdNode.point.x(), y0, y1);\n if (kdNode.right != null) drawLine(kdNode.right, kdNode.point.x(), x1, y0, y1);\n }\n else { // False, or node is horizontal\n StdDraw.setPenColor(Color.blue);\n StdDraw.line(x0, kdNode.point.y(), x1, kdNode.point.y());\n if (kdNode.left != null) drawLine(kdNode.left, x0, x1, y0, kdNode.point.y());\n if (kdNode.right != null) drawLine(kdNode.right, x0, x1, kdNode.point.y(), y1);\n }\n\n }",
"public void drawLine(int x1, int y1, int x2, int y2 , Graphics g) {\r\n \tfloat dY, dX;\r\n \tfloat x,y;\r\n \tdX = x2-x1;\r\n \tdY = y2-y1;\r\n \tx = x1;\r\n \ty = y1;\r\n \t\t\t\r\n \tfloat range = Math.max(Math.abs(dX), Math.abs(dY));\r\n \tdY = dY/range;\r\n \tdX = dX/range;\r\n \t\r\n \tfor (int i =0 ; i < range ; i++ ) { \r\n \t\tg.drawRect(Math.round(x), Math.round(y),1,1);\r\n \t\tx = x + dX;\r\n \t\ty = y + dY;\r\n \t}\r\n\r\n \t\r\n }",
"public static void writeLine(Model model, int x1, int y1, int x2, int y2, char colour) {\n int xLength = model.getWidth();\n int yLength = model.getHeight();\n\n if (x1 > xLength || x2 > xLength || y1 > yLength || y2 > yLength) {\n System.out.println(String.format(\"Couldn't create line inside current simpleCanvas width: %d, height: %d\", xLength, yLength));\n return;\n }\n\n // Simple optimization if the line are orthogonal x or y.\n if (x1 == x2 || y1 == y2) {\n for (int i = Math.min(x1, x2); i <= Math.max(x1, x2); i++)\n for (int j = Math.min(y1, y2); j <= Math.max(y1, y2); j++)\n model.set(i, j, colour);\n } else {\n // try to draw line from left to write\n // To do this we should find min x coordinate\n int startx, starty, endx, endy;\n if (x1 < x2) {\n startx = x1;\n starty = y1;\n endx = x2;\n endy = y2;\n } else {\n startx = x2;\n starty = y2;\n endx = x1;\n endy = y1;\n }\n\n model.set(startx, starty, colour);\n model.set(endx, endy, colour);\n\n if (y1 < y2) {\n // Find line equation of the line\n // (y - y1)/(y2-y1) = (x - x1)/(x2 - x1)\n // y - y1 = (x - x1)(y2-y1)/(x2 - x1)\n // y = y1 + (x - x1)(y2-y1)/(x2 - x1)\n int newX = startx;\n int newY = starty;\n while (newX < endx && newY <= endy) {\n //TODO optimize coefficient\n double newYcompare = findY(newX + 1, startx, starty, endx, endy);\n\n if (newYcompare == newY + 1) {\n newY++;\n newX++;\n model.set(newX, newY, colour);\n model.set(newX, newY - 1, colour);\n } else if (newYcompare < newY + 1) {\n newX++;\n model.set(newX, newY, colour);\n } else {\n newY++;\n model.set(newX, newY, colour);\n }\n }\n } else {\n // Find line equation of the line\n // (x - x1)/(x2 - x1) = (y - y1)/(y2-y1)\n // (x - x1) = (y - y1)(x2 - x1)/(y2-y1)\n // x = x1 + (y - y1)(x2 - x1)/(y2-y1)\n int newX = startx;\n int newY = starty;\n while (newX <= endx && newY > endy) {\n //TODO optimize coefficient\n double newXcompare = findX(newY - 1, startx, starty, endx, endy);\n\n if (newXcompare == newX + 1) {\n newY--;\n newX++;\n model.set(newX, newY, colour);\n // array[newX - 2][newY - 1] = colour;\n model.set(newX, newY + 1, colour);\n } else if (newXcompare < newX + 1) {\n newY--;\n model.set(newX, newY, colour);\n } else {\n newX++;\n model.set(newX, newY, colour);\n }\n }\n }\n }\n }",
"public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }",
"public Vector2d getLineNormal(Line2d line)\n\t{\n\n\t\tthis.color = Color.BLACK;\n\t\t\n\n//\t\tDraw2DApplet da = new Draw2DApplet(this);\n//\t\tthis.display();\n\n\t\tVector2d dir = new Vector2d(line.getDirection());\n\t\tVector2d nDir = new Vector2d(-dir.y, dir.x);\n\t\tVector2d negDir = new Vector2d();\n\t\tnegDir.negate(nDir);\n\t\tVector2d sc = new Vector2d(nDir);\n\t\tsc.scale(20. * GeometryConstants.EPSILON);\n\t\tfinal Point2d mp = line.pointOnLine(line.getLength()/2);\n\t\tmp.add(sc);\n\t\tList points = getPoints();\n\t\tfinal int n = points.size();\n\t\tfinal double[] xp = new double[n];\n\t\tfinal double[] yp = new double[n];\n//\t\tSystem.out.println(\">>>>>>>>>> mpoint is: \" + mp);\n\t\tfor(int i = 0; i < n; i++) \n\t\t{\n\t\t\tPoint2d point = (Point2d) points.get(i);\n\t\t\txp[i] = point.x;\n\t\t\typ[i] = point.y;\n//\t\t\tSystem.out.println(\"-------------- point\" + i + \" is: \" + xp[i] + \", \" + yp[i]);\n\t\t}\n/*\t\tViewObject vo = new ViewObject () {\n\t\t\tpublic LinkedList getDrawList () {\n\t\t\t\tLinkedList list = new LinkedList(); \n\t\t\t\tfor (int i = 0; i <n-1; i++) {\n\t\t\t\t\tlist.add(new Line2D.Double (xp[i], yp[i], xp[i+1], yp[i+1]));\n\t\t\t\t}\n\t\t\t\tlist.add (new Ellipse2D.Double(mp.x, mp.y, mp.x+0.2, mp.y+0.2));\n\t\t\t\treturn list;\n\t\t\t}\n\t\t};\n\t\tvo.setApplet (new Draw2DApplet(vo));\n\t\tvo.display();*/\n\t\t try {\n\t\t\treturn Polygon2d.isPointInside(xp, yp, mp.x, mp.y)? negDir: nDir;\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 void addPoint(Point p) {\r\n line.add(p);\r\n }",
"protected void drawLineFromPointToPrevPoint(PointFloat[] points, int index, int thickness, Color c)\n\t{\n\t\t\tint x1 = (int) (points[index].x * drawnPlot.getScale().x + drawnPlot\n\t\t\t\t\t.getOffset().x);\n\t\t\tint y1 = (int) (-points[index].y * drawnPlot.getScale().y + drawnPlot\n\t\t\t\t\t.getOffset().y);\n\t\t\tint x2 = (int) (points[index - 1].x * drawnPlot.getScale().x + drawnPlot\n\t\t\t\t\t.getOffset().x);\n\t\t\tint y2 = (int) (-points[index - 1].y * drawnPlot.getScale().y + drawnPlot\n\t\t\t\t\t.getOffset().y);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg.setColor(c);\n\t\t\tg2.setStroke(new BasicStroke(thickness));\n\t\t\tg.drawLine(x1, y1, x2, y2);\n\t}",
"public void lineTo(int x, int y){\n paint.setColor(Color.parseColor(\"#000000\"));\n //ToDo: implement line drawing here\n\n canvas.drawLine(lastX, lastY, x, y, paint);\n lastX = x;\n lastY = y;\n Log.d(\"Canvas Element\", \"drawing line from: \" + lastX + \", \" + lastY +\",\" + \" to: \" + x +\", \" + y);\n }",
"public void lineDraw(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2) {\n Line l = new Line((int) l1.data.xCo, (int) l1.data.yCo, (int) l2.data.xCo, (int) l2.data.yCo);\n l.setTranslateX(mapImage.getLayoutX());\n l.setTranslateY(mapImage.getLayoutY());\n ((Pane) mapImage.getParent()).getChildren().add(l);\n }",
"private static void lineTo(float x, float y) {\n setPenDown();\n mPivotX = mPenX = x;\n mPivotY = mPenY = y;\n mPath.lineTo(x * mScale, y * mScale);\n elements.add(\n new PathElement(ElementType.kCGPathElementAddLineToPoint, new Point[] {new Point(x, y)}));\n }",
"public LineSegment( CartesianCoordinate start , CartesianCoordinate end)\n\t{\n\t\tthis.startPoint = start;\n\t\tthis.endPoint = end;\n\t}",
"public void drawOneLine(float x1, float y1,float x2,float y2){\n \tGL11.glBegin(GL11.GL_LINES);\n \tGL11.glVertex2f(x1,y1);\n \tGL11.glVertex2f(x2,y2);\n \tGL11.glEnd();\n }",
"public void drawLine(Graphics2D g, int width, int height, double minX,\n double minY, double maxX, double maxY) {\n upperX = maxX;\n lowerX = minX;\n\n upperY = maxY;\n lowerY = minY;\n //debug, drawLine bounds\n// g.drawLine(XOffSet, YOffSet, width, YOffSet);\n// g.drawLine(XOffSet, height, width, height); //X\n//\n// g.drawLine(XOffSet, YOffSet, XOffSet, height);\n// g.drawLine(width, YOffSet, width, height); //Y\n\n double Xscale = GetXScale(width);\n double Yscale = GetYScale(height);\n int centerX = getCenterX(width);\n int centerY = getCenterY(height);\n\n //drawGrid(g, width, height, minX, minY, maxX, maxY);\n\n g.setColor(LineColor);\n g.setStroke(new BasicStroke(curveThickness));\n //draws line from last point to current point\n for (int i = 2; i <= PointArray.length - 1; i += 2) {\n double x1 = ((PointArray[i - 2] * Xscale) + centerX);\n double y1 = ((centerY) - (PointArray[i - 1]) * Yscale);\n\n double x2 = ((PointArray[i] * Xscale) + centerX);\n double y2 = ((centerY) - (PointArray[i + 1]) * Yscale);\n\n if (Double.isNaN(y2)) {\n continue;\n }\n if (Double.isNaN(y1)) {\n continue;\n }\n if (y1 == Double.NaN) {\n i += 2;\n continue;\n } else if (y1 == Double.POSITIVE_INFINITY || y1 == Double.NEGATIVE_INFINITY) {\n continue;\n }\n\n if (y2 == Double.NaN) {\n i += 2;\n continue;\n } else if (y2 == Double.POSITIVE_INFINITY || y2 == Double.NEGATIVE_INFINITY) {\n if (i > 3) {\n if ((PointArray[i - 1] - PointArray[i - 3] > 0)) {\n y2 = YOffSet;\n } else {\n y2 = height;\n }\n } else {\n continue;\n }\n }\n if (x1 < XOffSet) {\n x1 = XOffSet;\n } else if (x1 > width) {\n continue;\n }\n if (x2 < XOffSet) {\n continue;\n } else if (x2 > width) {\n x2 = width;\n }\n\n if (y1 < YOffSet) {\n y1 = YOffSet;\n } else if (y1 > height) {\n continue;\n }\n if (y2 < YOffSet) {\n continue;\n } else if (y2 > height) {\n y2 = height;\n }\n g.drawLine((int) x1, (int) y1, (int) x2, (int) y2);\n }\n\n }",
"public void lineTo(double x, double y)\n {\n\tPoint2D pos = transformedPoint(x,y);\n\tdouble tx = pos.getX();\n\tdouble ty = pos.getY();\n\t\n\tLine line = new Line(_currentx, _currenty, tx, ty);\n\n\tSystem.out.println(\"+Line: \" + line.toString());\n\t_currentPath.add(line);\n\t_currentx = tx;\n\t_currenty = ty;\n }",
"public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }",
"private void drawConnectLine(double[] startPoint, double[] endPoint, Color color) {\r\n\t\tdouble startX = startPoint[0];\r\n\t\tdouble startY = startPoint[1];\r\n\t\t\r\n\t\tdouble endX = endPoint[0];\r\n\t\tdouble endY = endPoint[1];\r\n\t\t\r\n\t\tGLine line = new GLine();\r\n\t\tline.setStartPoint(startX, startY);\r\n\t\tline.setEndPoint(endX, endY);\r\n\t\tline.setColor(color);\r\n\t\tadd(line);\r\n\t}",
"public Polyline drawLine(Star one, Star two)\r\n\t{\t\t\r\n\t\treturn lang.newPolyline(new Offset[] { getStarPosition(one.x, one.y), getStarPosition(two.x, two.y) }, \"line\" + one.toString() + two.toString(), null, connectionLines);\r\n\t}",
"void showLine(int[] xy1, int[] xy2, int width, char col) {\r\n\t\tgc.setStroke(colFromChar(col)); // set the stroke colour\r\n\t\tgc.setLineWidth(width);\r\n\t\tgc.strokeLine(xy1[0], xy1[1], xy2[0], xy2[1]); // draw line\r\n\t}",
"public void draw(final Panel panel) {\n panel.drawLine(startPoint, finalPoint, contur);\n }",
"public static void renderLine(double startx , double starty , double endx , double endy) {\n\t\t//Find out what rendering mode to use\n\t\tif (! Settings.Android && Settings.Video.OpenGL)\n\t\t\t//Render a line using OpenGL\n\t\t\tBasicRendererOpenGL.renderLine(startx , starty , endx , endy);\n\t\telse if (! Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render a line using Java\n\t\t\tBasicRendererJava.renderLine(startx , starty , endx , endy);\n\t\telse if (Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render a line using Android\n\t\t\tBasicRendererAndroid.renderLine(startx , starty , endx , endy);\n\t}",
"public void drawSegment(Point_3 p, Point_3 q) {\n\t\tthis.frame.drawSegment(p, q);\n\t}",
"public void drawStroke(Canvas canvas) {\n if (isValidStroke && points.size() > 1) {\n for (int i = 0; i < points.size()-1; i++) {\n int x1 = points.get(i).x;\n int y1 = points.get(i).y;\n int x2 = points.get(i+1).x;\n int y2 = points.get(i+1).y;\n canvas.drawLine(x1, y1, x2, y2, paint);\n }\n }\n }",
"public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}",
"public Line(Point p1, Point p2) {\n super(p1, p2);\n this.p1 = p1;\n this.p2 = p2;\n }",
"private void addSegment(Point p0, Point p1) {\n resize(nOfSegs + 1);\n segments[nOfSegs++] = new LineSegment(p0, p1);\n }",
"public void renderLine (Graphics g)\r\n {\r\n if (glyph.getContourBox()\r\n .intersects(g.getClipBounds())) {\r\n getLine(); // To make sure the line has been computed\r\n\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStart(),\r\n (int) Math.rint(line.yAt((double) getStart()))),\r\n null);\r\n Point stop = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStop() + 1,\r\n (int) Math.rint(line.yAt((double) getStop() + 1))),\r\n null);\r\n g.drawLine(start.x, start.y, stop.x, stop.y);\r\n }\r\n }",
"private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}",
"public void draw(Graphics2D g){\r\n g.setColor(Color.WHITE);\r\n g.setStroke(new BasicStroke(1));\r\n g.draw(new Line2D.Float(p1, p2));\r\n }",
"@Override\n public void drawPolyline(PointList pointList) {\n Path2D path = new Path2D.Float();\n \n if (pointList.size() > 1) {\n Point origin = pointList.getPoint(0);\n path.moveTo(origin.x + transX, origin.y + transY);\n \n // Draw polylines as a Path2D\n for(int x = 1; x < pointList.size(); x++) {\n Point p2 = pointList.getPoint(x);\n path.lineTo(p2.x + transX, p2.y + transY);\n }\n \n checkState();\n getGraphics2D().setPaint(getColor(getSWTGraphics().getForegroundColor()));\n getGraphics2D().setStroke(createStroke());\n getGraphics2D().draw(path);\n }\n }",
"public void paintLine(Point2D pt1, Point2D pt2) {\n if (theMap != null) {\n paintLine(pt1, pt2, theMap.getGraphics());\n }\n }",
"private void addPointToStroke(float x, float y)\n\t{\n\t\tstrokePointCount++;\n\t\tlatestStroke.triangleStrip.addPoint(this, x, y, true);\n\t}",
"public void draw(Graphics g) {\n g.drawLine(start_x, start_y, start_x, end_y);\n g.drawLine(start_x, start_y, end_x, start_y);\n g.drawLine(start_x, end_y, end_x, end_y);\n g.drawLine(end_x, start_y, end_x, end_y);\n }",
"@Override\n public void drawLine(String id, Location start, Location end, double weight, Color color, boolean screenCoords) {\n drawLine(id, start, end, weight, color, false, screenCoords);\n }",
"public void setDrawLine(boolean b){\n\t\tdraw = b; \n\t}",
"public void addPoint(Point point) {\n if (isValidStroke) {\n points.add(point);\n }\n }",
"private void renderLine(Feature feature, LineSymbolizer symbolizer) {\n if (symbolizer.getStroke() == null) {\n return;\n }\n \n Stroke stroke = symbolizer.getStroke();\n applyStroke(graphics, stroke, feature);\n \n String geomName = symbolizer.geometryPropertyName();\n Geometry geom = findGeometry(feature, geomName);\n \n if ((geom == null) || geom.isEmpty()) {\n return;\n }\n \n Shape path = createPath(geom);\n \n if (stroke.getGraphicStroke() == null) {\n graphics.draw(path);\n } else {\n // set up the graphic stroke\n drawWithGraphicStroke(graphics, path, stroke.getGraphicStroke(), feature);\n }\n }",
"public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}",
"static Line pointsToLine(PointDouble p1, PointDouble p2) {\n Line line = new Line();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.a = 1.0; line.b = 0.0; line.c = -p1.x;\n } else {\n // Non-vertical Line through the points.\n // Since the Line eq. is homogeneous we fix the scaling by setting b = 1.0.\n line.a = -(p1.y - p2.y) / (p1.x - p2.x);\n line.b = 1.0;\n line.c = -(line.a * p1.x) - p1.y;\n }\n return line;\n }",
"public void drawLine(double x0, double y0, double x1, double y1, int red, int green, int blue){\n\t\tif( x0 > x1 ) {\n\t\t\tdouble xt = x0 ; x0 = x1 ; x1 = xt ;\n\t\t\tdouble yt = y0 ; y0 = y1 ; y1 = yt ;\n\t\t}\n\t\t\n\t\tdouble a = y1-y0;\n\t\tdouble b = -(x1-x0);\n\t\tdouble c = x1*y0 - x0*y1;\n\n\t\t\tif(y0<y1){ // Octant 1 or 2\n\t\t\t\tif( (y1-y0) <= (x1-x0) ) { //Octant 1\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// Calculate initial x and initial y\n\t\t\t\t\tint x = (int)Math.round(x0);\n\t\t\t\t\tint y = (int)Math.round((-a*x-c)/b);\n\t\t\t\t\t\n\t\t\t\t\tdouble d = a*(x+1) + b*(y+0.5) + c;\n\t\t\t\t\t\n\t\t\t\t\t// Do we need to go E or SE\n\t\t\t\t\twhile(x<=Math.round(x1)){\n\t\t\t\t\t\tRenderer.setPixel(x, y, red, green, blue);\n\t\t\t\t\t\tif(d<0){\n\t\t\t\t\t\t\td = d+a;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\td = d+a+b;\n\t\t\t\t\t\t\ty = y+1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx = x+1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else { // Octant 2\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// Calculate initial x and initial y\n\t\t\t\t\tint y = (int)Math.round(y0);\n\t\t\t\t\tint x = (int)Math.round((-b*y-c)/a);\n\t\t\t\n\t\t\t\t\tdouble d = a*(x+0.5) + b*(y+1) + c;\n\t\t\t\t\t\n\t\t\t\t\t// Do we need to go SE or S\t\t\t\t\t\n\t\t\t\t\twhile(y<=Math.round(y1)){\n\t\t\t\t\t\tRenderer.setPixel(x, y, red, green, blue);\n\t\t\t\t\t\tif(d>0){\n\t\t\t\t\t\t\td = d+b; \n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\td = d+a+b;\n\t\t\t\t\t\t\tx = x+1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y+1;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else { // Octant 7 or 8\n\t\t\t\tif( (y0-y1) <= (x1-x0) ) { // Octant 8\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tint x = (int)Math.round(x0);\n\t\t\t\t\tint y = (int)Math.round((-a*x-c)/b);\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tdouble d = a*(x+1) + b*(y-0.5) + c;\n\t\t\t\t\t\n\t\t\t\t\t// Do we need to go E or NE\t\t\t\t\t\n\t\t\t\t\twhile(x<=Math.round(x1)){\n\t\t\t\t\t\tRenderer.setPixel(x, y, red, green, blue);\n\t\t\t\t\t\tif(d>0){ \n\t\t\t\t\t\t\td = d+a;\n\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\td = d+a-b;\n\t\t\t\t\t\t\ty = y-1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx = x+1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else { //Octant 7\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tint y = (int)Math.round(y0);\n\t\t\t\t\tint x = (int)Math.round((-b*y-c)/a);\n\t\t\t\t\t\n\t\t\t\t\tdouble d = a*(x+0.5) + b*(y-1) + c;\n\t\t\t\t\t\n\t\t\t\t\t// Do we need to go NE or N\n\t\t\t\t\twhile(y>=Math.round(y1)){\n\t\t\t\t\t\tRenderer.setPixel(x, y, red, green, blue);\n\t\t\t\t\t\tif(d<0){\n\t\t\t\t\t\t\td = d-b; \n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\td = d+a-b;\n\t\t\t\t\t\t\tx = x+1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y-1;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"@Override\n public void drawLine(String id, Location start, Location end, double weight, Color color, boolean arrow, boolean screenCoords) {\n if(screenCoords) {\n start = convToImageCoords(start);\n end = convToImageCoords(end);\n }\n Line l = new Line(id, start, end, weight, color, arrow);\n lineMap.put(id, l);\n render();\n }",
"public static void line(GL2 gl, Vec3d start, Vec3d end)\n\t{\n\t\tgl.glBegin(GL.GL_LINES);\n\t\tgl.glVertex3d(start.x, start.y, start.z);\n\t\tgl.glVertex3d(end.x, end.y, end.z);\n\t\tgl.glEnd();\n\t}",
"public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void draw(Canvas canvas, MapView mapv, boolean shadow){\n\t super.draw(canvas, mapv, shadow);\n\n\t // paint object to define the prefrences of the line to be drawn\n\t Paint mPaint = new Paint();\n\t mPaint.setDither(true);\n\t mPaint.setColor(Color.RED);\n\t mPaint.setStyle(Paint.Style.FILL_AND_STROKE);\n\t mPaint.setStrokeJoin(Paint.Join.ROUND);\n\t mPaint.setStrokeCap(Paint.Cap.ROUND);\n\t mPaint.setStrokeWidth(20);\n\n\t GeoPoint gP1 = goeP1;\n\t GeoPoint gP2 = geoP2;\n\n\t \n\t // the points the will represent the start and finish of the line.\n\t Point p1 = new Point();\n\t Point p2 = new Point();\n\n\t // path object the draw a reference path.\n\t Path path = new Path();\n // A projection object which converts between coordinates and pixels on the screen.\n\t Projection projection = mapv.getProjection();\n\t // converting of coordinates to pixel\n\t projection.toPixels(gP1, p1);\n\t projection.toPixels(gP2, p2);\n// draw a reference path\n\t path.moveTo(p2.x, p2.y);\n\t path.lineTo(p1.x,p1.y);\n// draw the actual path.\n\t canvas.drawPath(path, mPaint);\t\n\t }",
"final public void drawPolyline(int[] points)\r\n\t{\n\t\tCanvasAdaptor.drawPolylineForMe(points, this);\r\n\t}",
"void drawLine(int startx,int starty,int endx,int endy,ImageView imageView){\n imageView.setVisibility(View.VISIBLE);\n Bitmap bitmap = Bitmap.createBitmap(getWindowManager().getDefaultDisplay().getWidth(),getWindowManager().getDefaultDisplay().getHeight(),Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n imageView.setImageBitmap(bitmap);\n\n Paint paint = new Paint();\n paint.setColor(Color.RED);\n paint.setStrokeWidth(20);\n paint.setStyle(Paint.Style.STROKE);\n\n canvas.drawLine(startx,starty,endx,endy,paint);\n\n //animates the drawing to fade in\n Animation animation = new AlphaAnimation(0.0f,1.0f);\n animation.setDuration(4000);\n imageView.startAnimation(animation);\n }",
"void addLine(int index, Coordinate start, Coordinate end);",
"public LineRelation lineLineRelation(Coordinates line1PointA, Coordinates line1PointB,\n Coordinates line2PointA, Coordinates line2PointB);",
"public Segment2D(Point2D point1, Point2D point2) {\n this.point1 = point1;\n this.point2 = point2;\n double xr0 = point1.getX();\n double yr0 = point1.getY();\n double xr1 = point2.getX();\n double yr1 = point2.getY();\n\n // compute line equation: ax+by+c=0\n double dx = xr0 - xr1;\n double dy = yr0 - yr1;\n double ddx = (dx > 0) ? dx : -dx;\n double ddy = (dy > 0) ? dy : -dy;\n if (ddx < EPS) {\n this.a = 1.0;\n this.b = 0.0;\n this.c = -xr0;\n }\n else {\n if (ddy < EPS) {\n this.a = 0.0;\n this.b = 1.0;\n this.c = -yr0;\n }\n else {\n // real case. Let b=1.0 -> y+ax+c=0\n this.a = (yr0 - yr1) / (xr1 - xr0);\n this.b = 1.0;\n this.c = -yr0 - this.a * xr0;\n }\n }\n this.minx = Math.min(this.point1.getX(), this.point2.getX());\n this.maxx = Math.max(this.point1.getX(), this.point2.getX());\n\n this.miny = Math.min(this.point1.getY(), this.point2.getY());\n this.maxy = Math.max(this.point1.getY(), this.point2.getY());\n }",
"@SuppressWarnings(\"IntegerDivisionInFloatingPointContext\")\n private void drawDotted(@NonNull Canvas canvas) {\n Paint paint = new Paint();\n paint.setARGB(255, 255, 255, 255);\n paint.setStyle(Paint.Style.STROKE);\n paint.setPathEffect(new DashPathEffect(new float[] {50, 30}, 0));\n paint.setStrokeWidth(16);\n\n canvas.drawLine(getWidth()/2 - 8, 0, getWidth()/2 + 8, getHeight(), paint);\n }",
"public ChartPointLin(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"private void drawVector(Vector2 v, float x, float y, float scayl, ShapeRenderer sr) {\n float arrowsize = 4;\n sr.begin(ShapeRenderer.ShapeType.Line);\n // Translate to location to render vector\n sr.setColor(0,0,0,.5f);\n sr.identity();\n sr.translate(x,y,0);\n // Call vector heading function to get direction (note that pointing to the right is a heading of 0) and rotate\n sr.rotate(0,0,1,v.angle());\n // Calculate length of vector & scale it to be bigger or smaller if necessary\n float len = scayl;\n // Draw three lines to make an arrow (draw pointing up since we've rotate to the proper direction)\n sr.line(0,0,len,0);\n //line(len,0,len-arrowsize,+arrowsize/2);\n //line(len,0,len-arrowsize,-arrowsize/2);\n sr.end();\n }",
"void touch_move_draw(float event_x, float event_y) {\n path.lineTo(event_x,event_y);\n cur_x = event_x;\n cur_y = event_y;\n\n // Add point to list\n addPoint();\n }",
"protected abstract void drawBorderLine(\n // CSOK: ParameterNumber\n final float x1, final float y1, final float x2, final float y2,\n final boolean horz, final boolean startOrBefore, final int style,\n final Color col);"
]
| [
"0.72415006",
"0.70916426",
"0.7048941",
"0.69983244",
"0.6927731",
"0.69134146",
"0.6835305",
"0.6828243",
"0.6819863",
"0.6792469",
"0.67858595",
"0.6713705",
"0.66874397",
"0.6668853",
"0.66057104",
"0.6495798",
"0.64528716",
"0.64528716",
"0.64528716",
"0.64528716",
"0.64492565",
"0.6443391",
"0.6407509",
"0.63836664",
"0.6369272",
"0.6360385",
"0.6358068",
"0.63256294",
"0.6304368",
"0.6294011",
"0.6286006",
"0.62758464",
"0.6252316",
"0.62301034",
"0.620676",
"0.61928314",
"0.61533934",
"0.6118797",
"0.61165243",
"0.61148894",
"0.61048746",
"0.60775906",
"0.60774857",
"0.6067288",
"0.6063669",
"0.60394645",
"0.60328984",
"0.602331",
"0.6009709",
"0.59962726",
"0.59619635",
"0.59591407",
"0.5948204",
"0.5928145",
"0.5913931",
"0.5906247",
"0.5888103",
"0.58817476",
"0.58794326",
"0.5878371",
"0.5867069",
"0.58663636",
"0.58625376",
"0.5841308",
"0.5799885",
"0.5796948",
"0.5792228",
"0.57898533",
"0.57881415",
"0.5781721",
"0.57769877",
"0.57666767",
"0.5746909",
"0.5746848",
"0.5738357",
"0.5718687",
"0.57143295",
"0.5698053",
"0.56972426",
"0.56877327",
"0.56795776",
"0.56693834",
"0.56304026",
"0.56268185",
"0.56222004",
"0.56067914",
"0.56023324",
"0.5587926",
"0.5585977",
"0.55813724",
"0.55682194",
"0.5561593",
"0.5551846",
"0.5545851",
"0.55454576",
"0.55418634",
"0.55218345"
]
| 0.6941427 | 7 |
Returns the slope between this point and the specified point. Formally, if the two points are (x0, y0) and (x1, y1), then the slope is (y1 y0) / (x1 x0). For completeness, the slope is defined to be +0.0 if the line segment connecting the two points is horizontal; Double.POSITIVE_INFINITY if the line segment is vertical; and Double.NEGATIVE_INFINITY if (x0, y0) and (x1, y1) are equal. | public double slopeTo(Point that) {
if (that.x == x && that.y == y) return Double.NEGATIVE_INFINITY;
else if (that.x == x && that.y != y) return Double.POSITIVE_INFINITY;
else if (that.x != x && that.y == y) return +0.0;
return (double) (that.y - y) / (that.x - x);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double slope() throws VerticalLineRuntimeException {\n if(this.isVertical()) \n throw new VerticalLineRuntimeException(\n \"You can't compute the slope of a vertical line.\");\n else \n return((point2.getSecond()-point1.getSecond())/\n (point2.getFirst()-point1.getFirst()));\n }",
"public double slope(){\n double x = getStart().getXco();\n double x1 = end.getXco();\n double y = getStart().getYco();\n double y1 = end.getYco();\n double num = y1 - y;\n double den = x1 -x;\n\n return num/den;\n }",
"public double getSlope(double x1, double y1, double x2, double y2) {\n // slope = (|y2 - y1|) / (|x2 - x1|)\n double slope = Math.abs(y2 - y1) / Math.abs(x2 - x1);\n return slope;\n }",
"public double slopeTo(Point that) {\n int x0 = this.x;\n int x1 = that.x;\n int y0 = this.y;\n int y1 = that.y;\n \n if (x0 == x1 && y0 == y1) {\n return Double.NEGATIVE_INFINITY;\n }\n \n if (y0 == y1) {\n return 0.0;\n }\n \n if (x0 == x1) {\n return Double.POSITIVE_INFINITY;\n }\n \n return (double)(y1 - y0) / (double)(x1 - x0);\n }",
"public static double slopeOfLine(double x1, double y1, double x2, double y2) {\n double slope = (y2 - y1) / (x2 - x1);\n slope = (double) Math.round(slope * 100) / 100;\n return slope;\n }",
"public float slope(int x1,int y1,int x2,int y2){\n return ((float)y2-y1)/(x2-x1);\n }",
"public double slopeTo(Point that) {\n if (this.compareTo(that) == 0)\n return Double.NEGATIVE_INFINITY;\n if (this.x == that.x)\n return Double.POSITIVE_INFINITY;\n if (this.y == that.y)\n return 0.0;\n double result = (double) (that.y - this.y) / (double) (that.x - this.x);\n return result;\n }",
"public Double getSlope() {\n\t\tif( slope == null ) {\n\t\t\tslope = computeSlope( p1.x, p1.y, p2.x, p2.y );\n\t\t}\n\t\treturn slope;\n\t}",
"public double getSlope( ){\n if (x1 == x0){\n throw new ArithmeticException();\n }\n\n return (y1 - y0)/(x1 - x0);\n }",
"public double slopeTo(Point that) {\n if (that.y == this.y && that.x == this.x) return Double.NEGATIVE_INFINITY;\n if (that.y == this.y) return 0.0;\n if (that.x == this.x) return Double.POSITIVE_INFINITY;\n else return (double) (that.y - this.y)/ (that.x - this.x);\n }",
"public double slopeTo(Point that) {\r\n\t\tdouble subX = (that.x - this.x);\r\n\t\tdouble subY = (that.y - this.y);\r\n\r\n\t\tif(subX == 0 && subY == 0) return Double.NEGATIVE_INFINITY;\r\n\t\tif(subX == 0) return Double.POSITIVE_INFINITY;\r\n\t\tif(subY == 0) return 0;\r\n return subY / subX;\r\n }",
"public static Double computeSlope( final double x1, final double y1, final double x2, final double y2 ) {\n\t\t// equation: u = ( y2 - y1 )/( x2 - x1 )\n\t\tfinal double rise = ( y2 - y1 );\n\t\tfinal double run = ( x2 - x1 );\n\t\treturn ( run != 0 ) ? rise / run : NaN;\n\t}",
"private float calculateRoadSlope(Point point1, Point point2) {\n float slopeSum = 0;\n int x1 = point1.getX();\n int y1 = point1.getY();\n int x2 = point2.getX();\n int y2 = point2.getY();\n pastSlopes.remove(0);\n pastSlopes.add((float) (y1 - y2) / (x1 - x2));\n\n // Average the slopes in pastSlopes\n for (Float slope : pastSlopes) {\n slopeSum += slope;\n }\n float slope = slopeSum / pastSlopes.size();\n return slope;\n }",
"public double slope(double X) {\r\n double slope; //double slope is created which will be retruned\r\n double deltaX = 0.0000000001; //slope equation is (x2-x1)/(y2-y1).\r\n double yInitial = evaluate(X - 0.00000000005);\r\n double yFinal = evaluate(X + 0.00000000005);\r\n double deltaY = yFinal - yInitial; \r\n slope = deltaY/deltaX; // slope equation represented in code.\r\n return slope; \r\n\t}",
"public double lineSlope() {\r\n //The formula to calculate the gradient.\r\n double slope;\r\n double dy = this.start.getY() - this.end.getY();\r\n double dx = this.start.getX() - this.end.getX();\r\n // line is vertical\r\n if (dx == 0 && dy != 0) {\r\n slope = Double.POSITIVE_INFINITY;\r\n return slope;\r\n }\r\n // line is horizontal\r\n if (dy == 0 && dx != 0) {\r\n slope = 0;\r\n return slope;\r\n }\r\n slope = dy / dx;\r\n return slope;\r\n }",
"protected Double getSlope(Line2D line) {\n\t\tdouble x1, y1, x2, y2;\n\t\tif (line.getX1() < line.getX2()) {\n\t\t\tx1 = line.getX1();\n\t\t\tx2 = line.getX2();\n\t\t\ty1 = line.getY1();\n\t\t\ty2 = line.getY2();\n\t\t} else {\n\t\t\tx1 = line.getX2();\n\t\t\tx2 = line.getX1();\n\t\t\ty1 = line.getY2();\n\t\t\ty2 = line.getY1();\n\t\t}\n\t\tif (x1 == x2)\n\t\t\treturn Double.POSITIVE_INFINITY;\n\t\tif (y1 == y2)\n\t\t\treturn new Double(0);\n\t\telse\n\t\t\treturn (y2 - y1) / (x2 - x1);\n\t}",
"public double slopeTo(Point that) {\n// System.out.printf(\"in slope %d %d %d %d\\n\", this.x , this.y, that.x, that.y);\n if (this.compareTo(that) == 0)\n return Double.NEGATIVE_INFINITY;\n if (this.x == that.x)\n return Double.POSITIVE_INFINITY;\n if (this.y == that.y)\n return 0.0;\n// System.out.println(\"int point :\" + (this.y - that.y) * 1.0 / (this.x - that.x));\n return (this.y - that.y) * 1.0 / (this.x - that.x);\n }",
"static double slope(Line line) {\n return (line.b == 1) ? -line.a : INF;\n }",
"public double getSlope() {\n if (n < 2) {\n return Double.NaN; //not enough data\n }\n if (Math.abs(sumXX) < 10 * Double.MIN_VALUE) {\n return Double.NaN; //not enough variation in x\n }\n return sumXY / sumXX;\n }",
"public static double slope(Point p, Point q){\n\t\tif ((p.x - q.x) == 0 ) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn Math.abs((double)(p.y - q.y)/(double)(p.x - q.x));\n\t}",
"static Line pointSlopeToLine(PointDouble p, double slope) {\n Line line = new Line();\n line.a = -slope; // always -slope TODO: solve case slope=INFINITY\n line.b = 1; // always 1\n line.c = -((line.a * p.x) + (line.b * p.y));\n return line;\n }",
"private double slopeBetweenTwoCircleOrigins(Circle other) {\n double y = origin.getY() - other.origin.getY();\n double x = origin.getX() - other.origin.getX();\n if (x == 0 && y != 0) {\n return Integer.MAX_VALUE;\n }\n return y / x;\n }",
"@Test\n\tpublic void lineGetSlopeTest() {\n\n\t\tassertEquals(1.0d, firstLine.getSlope(), .0001d);\n\t\tassertNotEquals(2.0d, firstLine.getSlope(), .0001d);\n\t}",
"private Point getEndPoint(double slope, int x, int y){\n Point p = new Point();\n int iteration = 0;\n \n return p;\n }",
"public double getMaxSlope(Coordinate a, Coordinate b) {\n\t\tdouble maxVertDiff = getMaxDiffVertical(a, b);\n\t\tdouble minHorizDiff = getMinDiffHorizontal(a, b);\n\t\tif (minHorizDiff == 0) {\n\t\t\tminHorizDiff = 0.0000001; //a very small number so we don't have to divide by zero\n\t\t}\n\t\tdouble maxSlope = maxVertDiff / minHorizDiff;\n\t\tSystem.out.println(a+\", \"+b+\", \"+maxSlope);\n\t\treturn maxSlope;\n\t}",
"public static float PointDistanceToLine(final Point point, final Point lineStart, final Point lineEnd) {\n Vector rotated = VectorTurnedLeft(Vector(lineStart, lineEnd).normal());\n Vector base = Vector(point, lineStart);\n return abs(dotProduct(base, rotated));\n }",
"public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);",
"public static double linearInterpolation(double x, double x1, double x2, double y1, double y2)\n\t{\n\t\tif(x2 == x1) throw new IllegalArgumentException(\"The two points may not have the same x-coordinate.\");\n\t\tdouble slope = slope(x1, x2, y1, y2);\n\t\treturn linearInterpolation(x, x1, y1, slope);\n\t}",
"private double getSlope( double time )\n throws IllegalArgumentException\n {\n // TODO: Optimize this search by having data set sorted by time\n \n // Search for previously calculated - and saved - slope value\n String timeVariable = getTimeVariable();\n Iterator<DataPoint> it = slopeValues.iterator();\n while ( it.hasNext() )\n {\n DataPoint dp = it.next();\n double dpTimeValue = dp.getIndependentValue( timeVariable );\n if ( Math.abs(time-dpTimeValue) < TOLERANCE )\n return dp.getDependentValue();\n }\n \n // Saved slope not found, so calculate it\n // (and save it for future reference)\n double previousTime = time - getTimeInterval();\n double slope = 0.0;\n \n // Initial condition for first periods\n if ( previousTime < getMinimumTimeValue()+TOLERANCE )\n slope = getObservedValue(time)-getObservedValue(previousTime);\n else\n slope\n = gamma*(forecast(time)-forecast(previousTime))\n + (1-gamma)*getSlope(previousTime);\n \n DataPoint dp = new Observation( slope );\n dp.setIndependentValue( timeVariable, time );\n slopeValues.add( dp );\n \n return slope;\n }",
"private Line linearRegression(ArrayList<Point> points) {\n double sumx = 0.0, sumz = 0.0, sumx2 = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n sumx += curPoint.x;\n sumz += curPoint.z;\n sumx2 += curPoint.x*curPoint.x;\n }\n\n double xbar = sumx/((double) points.size());\n double zbar = sumz/((double) points.size());\n\n double xxbar = 0.0, xzbar = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n xxbar += (curPoint.x - xbar) * (curPoint.x - xbar);\n xzbar += (curPoint.x - xbar) * (curPoint.z - zbar);\n }\n\n double slope = xzbar / xxbar;\n double intercept = zbar - slope * xbar;\n\n return new Line(slope, intercept);\n }",
"public double lineLenght() {\n\t\tdouble xdif = p1.getX() - p2.getX();\n\t\tdouble ydif = p1.getY() - p2.getY();\n\t\treturn Math.sqrt(xdif*xdif+ydif*ydif);\t\n\t\t\t\n\t}",
"public Comparator<Point> slopeOrder()\n {\n return new Comparator<Point>()\n {\n @Override\n public int compare(Point o1, Point o2)\n {\n if (slopeTo(o1) < slopeTo(o2)) return -1;\n else if (slopeTo(o1) == slopeTo(o2)) return 0;\n else return 1;\n }\n };\n }",
"public static double getPerpDist(double dX, double dY,\n\t double dX1, double dY1, double dX2, double dY2, SegSnapInfo oSnap)\n\t{\n\t\tdouble dXd = dX2 - dX1;\n\t\tdouble dYd = dY2 - dY1;\n\t\tdouble dXp = dX - dX1;\n\t\tdouble dYp = dY - dY1;\n\n\t\tif (dXd == 0 && dYd == 0) // line segment is a point\n\t\t\treturn dXp * dXp + dYp * dYp; // squared dist between the points\n\n\t\tdouble dU = dXp * dXd + dYp * dYd;\n\t\tdouble dV = dXd * dXd + dYd * dYd;\n\n\t\tif (dU < 0 || dU > dV) // nearest point is not on the line\n\t\t{\n\t\t\toSnap.m_dProjSide = dU;\n\t\t\treturn Double.NaN;\n\t\t}\n\n\t\toSnap.m_nRightHandRule = (int)((dXd * dYp) - (dYd * dXp));\n\n\t\t// find the perpendicular intersection of the point on the line\n\t\tdXp = dX1 + (dU * dXd / dV);\n\t\tdYp = dY1 + (dU * dYd / dV);\n\t\toSnap.m_nLonIntersect = (int)Math.round(dXp);\n\t\toSnap.m_nLatIntersect = (int)Math.round(dYp);\n\n\t\tdXd = dX - dXp; // calculate the squared distance\n\t\tdYd = dY - dYp; // between the point and the intersection\n\t\treturn dXd * dXd + dYd * dYd;\n\t}",
"public static double getMeanSlope( List<ProfilePoint> points ) {\n double meanSlope = 0;\n\n int num = 0;\n for( int i = 0; i < points.size() - 1; i++ ) {\n ProfilePoint p1 = points.get(i);\n ProfilePoint p2 = points.get(i + 1);\n\n double dx = p2.progressive - p1.progressive;\n double dy = p2.elevation - p1.elevation;\n double tmpSlope = dy / dx;\n meanSlope = meanSlope + tmpSlope;\n num++;\n }\n meanSlope = meanSlope / num;\n return meanSlope;\n }",
"public static Vector2i getClosestPointOnLine(int x1, int y1, int x2, int y2, int px, int py) {\n\t\n\t\tdouble xDelta = x2 - x1;\n\t\tdouble yDelta = y2 - y1;\n\t\t\n\t\t// line segment with length = 0\n\t\tif( (xDelta==0) && (yDelta==0) ) {\n\t\t\treturn new Vector2i(px, py);\n\t\t}\n\t\t\n\t\tdouble u = ((px - x1) * xDelta + (py - y1) * yDelta) / (xDelta * xDelta + yDelta * yDelta);\n\t\t\n\t\tVector2i closestPoint;\n\t\tif(u < 0) {\n\t\t\tclosestPoint = new Vector2i(x1, y1);\n\t\t\t\n\t\t} else if( u > 1) {\n\t\t\tclosestPoint = new Vector2i(x2, y2);\n\t\t\t\n\t\t} else {\n\t\t\tclosestPoint = new Vector2i((int)(x1+u*xDelta), (int)(y1+u*yDelta));\n\t\t\t\n\t\t}\n\t\t\n\t\treturn closestPoint;\n\t}",
"public Point intersectionWith(Line other) {\r\n double m1 = this.lineSlope();\r\n double m2 = other.lineSlope();\r\n double b1 = this.intercept();\r\n double b2 = other.intercept();\r\n double interX, interY;\r\n if (m1 == m2) {\r\n return null;\r\n // this line is vertical\r\n } else if (m1 == Double.POSITIVE_INFINITY || m1 == Double.NEGATIVE_INFINITY) {\r\n interX = this.start.getX();\r\n if ((Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.end().getX(), other.start().getX()))) {\r\n // y value of intersection point\r\n interY = interX * m2 + b2;\r\n if (Math.min(this.start().getY(), this.end().getY()) <= interY\r\n && interY <= Math.max(this.start().getY(), this.end().getY())) {\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // other line is vertical\r\n } else if (m2 == Double.POSITIVE_INFINITY || m2 == Double.NEGATIVE_INFINITY) {\r\n interX = other.start.getX();\r\n if ((Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.end().getX(), this.start().getX()))) {\r\n // y value of intersection point\r\n interY = interX * m1 + b1;\r\n if (Math.min(other.start().getY(), other.end().getY()) <= interY\r\n && interY <= Math.max(other.start().getY(), other.end().getY())) {\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // this line is horizontal\r\n } else if (m1 == 0) {\r\n // y value of potential intersection point\r\n interY = this.start.getY();\r\n if ((Math.min(other.start().getY(), other.end().getY()) <= interY\r\n && interY <= Math.max(other.end().getY(), other.start().getY()))) {\r\n interX = ((interY - other.start.getY()) / other.lineSlope()) + other.start.getX();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.start().getX(), this.end().getX())) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // other line is horizontal\r\n } else if (m2 == 0) {\r\n // y value of potential intersection point\r\n interY = this.start.getY();\r\n if ((Math.min(this.start().getY(), this.end().getY()) <= interY\r\n && interY <= Math.max(this.end().getY(), this.start().getY()))) {\r\n interX = ((interY - this.start.getY()) / this.lineSlope()) + this.start.getX();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.start().getX(), other.end().getX())) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // lines are not horizontal or vertical\r\n } else {\r\n interX = (b1 - b2) / (m2 - m1);\r\n interY = (m1 * (interX - this.start.getX())) + this.start.getY();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.start().getX(), other.end().getX())\r\n || (Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.start().getX(), this.end().getX()))) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n }",
"public static S1Angle getDistance(S2Point x, S2Point a, S2Point b) {\n Preconditions.checkArgument(S2.isUnitLength(x), \"S2Point not normalized: %s\", x);\n Preconditions.checkArgument(S2.isUnitLength(a), \"S2Point not normalized: %s\", a);\n Preconditions.checkArgument(S2.isUnitLength(b), \"S2Point not normalized: %s\", b);\n return S1Angle.radians(getDistanceRadians(x, a, b, S2.robustCrossProd(a, b)));\n }",
"@Override\n public double getSlope() {\n return Double.NaN;\n }",
"static Line pointsToLine(PointDouble p1, PointDouble p2) {\n Line line = new Line();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.a = 1.0; line.b = 0.0; line.c = -p1.x;\n } else {\n // Non-vertical Line through the points.\n // Since the Line eq. is homogeneous we fix the scaling by setting b = 1.0.\n line.a = -(p1.y - p2.y) / (p1.x - p2.x);\n line.b = 1.0;\n line.c = -(line.a * p1.x) - p1.y;\n }\n return line;\n }",
"public double pointOnLineT(int x, int y)\r\n {\r\n if (x == c0.x && y == c0.y)\r\n {\r\n return 0;\r\n }\r\n if (x == c1.x && y == c1.y)\r\n {\r\n return 1;\r\n }\r\n \r\n int dx = c1.x - c0.x;\r\n int dy = c1.y - c0.y;\r\n \r\n if (Math.abs(dx) > Math.abs(dy))\r\n {\r\n return (x - c0.x) / (double)dx;\r\n }\r\n else\r\n {\r\n return (y - c0.y) / (double)dy;\r\n }\r\n }",
"public static final double calculateSlope(final double max, final double min, final double validMax,\r\n final double validMin) {\r\n\r\n if ( (validMax - validMin) != 0) {\r\n return (max - min) / (validMax - validMin);\r\n }\r\n\r\n return 1.0;\r\n }",
"private double closestDistanceFromPointToEndlessLine(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Generate a line out of two points.\n\t\tRay3D gerade = geradeAusPunkten(startSegment, endSegment);\n\t\tVector direction = gerade.getDirection();\n\t\tdouble directionNorm = direction.getNorm();\n\t\t// d(PunktA, (line[B, directionU]) = (B-A) cross directionU durch norm u\n\t\tVector b = gerade.getPoint();\n\t\tVector ba = b.subtract(point);\n\t\tdouble factor = 1.0 / directionNorm; // Geteilt durch geraden länge\n\t\tVector distance = ba.cross(direction).multiply(factor);\n\t\tdouble distanceToGerade = distance.getNorm();\n\t\treturn distanceToGerade;\n\t}",
"public double getSlopeConfidenceInterval() throws MathException {\n return getSlopeConfidenceInterval(0.05d);\n }",
"private int slopeCompare(Pair oldp, Pair newp){\n\t\tif(oldp.getFirst().slopeTo(oldp.getSecond()) == newp.getFirst().slopeTo(newp.getSecond())){\n\t\t\tComparator<Point> cmp = oldp.getFirst().slopeOrder();\n\t\t\tif(newp.getFirst().compareTo(oldp.getFirst()) == 0 || newp.getSecond().compareTo(oldp.getSecond()) == 0 || cmp.compare(newp.getFirst(),newp.getSecond()) == 0){\n\t\t\t\tif(newp.getFirst().compareTo(oldp.getFirst()) <= 0 && newp.getSecond().compareTo(oldp.getSecond()) >= 0){\n\t\t\t\t\treturn 1;\t\t\n\t\t\t\t}\n\t\t\treturn 0;\t\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"static Line2 pointsToLine2(PointDouble p1, PointDouble p2) {\n Line2 line = new Line2();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.m = INF; // l contains m = INF and c = x_value\n line.c = p1.x; // to denote vertical Line x = x_value\n }\n else {\n // Non-vertical Line through the points.\n line.m = (p1.y - p2.y) / (p1.x - p2.x);\n line.c = p1.y - line.m * p1.x;\n }\n return line;\n }",
"public double distance(Point2DReadOnly point)\n {\n double alpha = percentageAlongLineSegment(point);\n\n if (alpha <= 0.0)\n {\n return point.distance(endpoints[0]);\n }\n else if (alpha >= 1.0)\n {\n return point.distance(endpoints[1]);\n }\n else\n {\n // Here we know the projection of the point belongs to the line segment.\n // In this case computing the distance from the point to the line segment is the same as computing the distance from the point the equivalent line.\n return EuclidGeometryTools.distanceFromPoint2DToLine2D(point, endpoints[0], endpoints[1]);\n }\n }",
"public static final double calculateIntercept(final double min, final double slope, final double validMin) {\r\n return (min - (slope * validMin));\r\n }",
"public static void main(String[] args) {\n // Create a scanner object \n Scanner input = new Scanner(System.in);\n \n // Prompt the user to enter the coordinates for 2 points \n System.out.print(\"Enter the coordinates for two points: \");\n double x1 = input.nextDouble();\n double y1 = input.nextDouble();\n double x2 = input.nextDouble();\n double y2 = input.nextDouble();\n \n// Background calculation for slope m and vertical intercept b\n double m = (y1-y2)/(x1-x2);\n double b = y1-m*x1;\n\n// Display the results\n if (m==1 && b==0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = x\");\n if (m==1 && b!=0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = x+\"+ b+\"\");\n if (m!=1 && b==0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = \"+ m +\"x\");\n if (m!=1 && b!=0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = \"+ m +\"x+\"+ b+\"\");\n }",
"@InterestingAlgorithm\r\n public Object lineIntersect (Line2D l1, Line2D l2) {\r\n if (l1 == null || l2 == null)\r\n return (null);\r\n\r\n double slope1 = l1.getA();\r\n double slope2 = l2.getA();\r\n\r\n double offset1 = l1.getB();\r\n double offset2 = l2.getB();\r\n\r\n if (MathUtils.closeEnough(slope1, slope2)) {\r\n if (MathUtils.closeEnough(offset1, offset2))\r\n return (l1); // same\r\n else\r\n return (null); // parallel\r\n }\r\n\r\n Point2D point = new Point2D.Double((offset2 - offset1) / (slope1 - slope2), (slope1 * offset2 - slope2 * offset1) / (slope1 - slope2));\r\n\r\n return (point);\r\n }",
"public ChartPointLin(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"private double distancePointToSegment(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Segment. Starts and Ends in the same point -> Distance == distance\n\t\tif (startSegment.subtract(endSegment).equals(NULL_VECTOR_3DIM)) {\n\t\t\treturn point.subtract(startSegment).getNorm(); // Length of a-b\n\t\t}\n\t\t// https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line\n\t\t/*\n\t\t * es reicht aber aus, wenn man zusätzlich noch die Länge AB der Strecke\n\t\t * kennt. (Die Strecke sei AB, der Punkt P.) Dann kann man nämlich\n\t\t * testen, ob der Winkel bei A (PB²>PA²+AB²) oder bei B (PA²>PB²+AB²)\n\t\t * stumpf (>90 <180grad) ist. Im ersten Fall ist PA, im zweiten PB der\n\t\t * kürzeste Abstand, ansonsten ist es der Abstand P-Gerade(AB).\n\t\t */\n\n\t\t// TESTEN WO ES AM NÄCHSTEN AN DER STRECKE IST,NICHT NUR AN DER GERADEN\n\t\tline = startSegment.subtract(endSegment); // Vektor von start zum end.\n\t\tlineToPoint = startSegment.subtract(point); // vom start zum punkt.\n\t\tlineEnd = endSegment.subtract(startSegment); // vom ende zum start\n\t\tlineEndToPoint = endSegment.subtract(point); // vom start zum ende\n\n\t\t// Wenn größer 90Grad-> closest ist start\n\t\tdouble winkelStart = getWinkel(line, lineToPoint);\n\t\t// Wenn größer 90Grad -> closest ist end\n\t\tdouble winkelEnde = getWinkel(lineEnd, lineEndToPoint);\n\t\tif (winkelStart > 90.0 && winkelStart < 180.0) {\n\t\t\t// Start ist am nächsten. Der winkel ist über 90Grad somit wurde nur\n\t\t\t// der nächste nachbar auf der geraden ausserhalb der strecke\n\t\t\t// gefunden\n\t\t\treturn startSegment.subtract(point).getNorm();\n\t\t}\n\t\tif (winkelEnde > 90.0 && winkelEnde < 180.0) {\n\t\t\t// Ende ist am nächsten\n\t\t\treturn endSegment.subtract(point).getNorm();\n\t\t}\n\n\t\t// If not returned yet. The closest position ist on the line\n\t\treturn closestDistanceFromPointToEndlessLine(point, startSegment, endSegment);\n\t}",
"private double[] calculateLineEquation(Point p1, Point p2) {\n double m = ((double) p2.y - p1.y) / (p2.x - p1.x);\n double c = p1.y - (m * p1.x);\n return new double[]{m, c};\n }",
"private Double distanceToLine(Vector v, PointD p)\r\n\t{\r\n\t\tPointD nearestPoint = getNearestPointOnLine(v,p);\t\t\r\n\t\t\r\n\t\tdouble x1 = nearestPoint.getX();\r\n\t\tdouble y1 = nearestPoint.getY();\r\n\t\t\r\n\t\tdouble t;\r\n\t\tif(v.getX()>v.getY())//if one component is close to zero, use other one\r\n\t\t\tt = (x1 - v.getTail().getX()) / v.getX();\r\n\t\telse\r\n\t\t\tt = (y1 - v.getTail().getY()) / v.getY();\r\n\t\t\r\n\t\tif(t < 0 || t > 1)//then calculated point is not in line segment\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn Math.sqrt((p.getX() - x1)*(p.getX() - x1) + (p.getY() - y1)*(p.getY() - y1));\r\n\t}",
"public static Double computeYIntercept( final double x, final double y, final Double slope ) {\n\t\treturn slope.equals( NaN ) ? slope : y - ( slope * x );\n\t}",
"public void setLine(int x1, int y1, int x2, int y2){\n\t\tint slope = 0;\n\t\tboolean vert = true;\n\t\t\n\t\tif((x2 - x1) != 0){\n\t\t\tslope = (y2 - y1) / (x2 - x1);\n\t\t\tvert = false;\n\t\t}\n\t\tif(!vert){\n\t\t\tfor(int a = 0; a < Math.abs(x2 - x1) + 1; a++){\n\t\t\t\tif(a >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tif((x2 - x1) < 0){\n\t\t\t\t\tpathX[a] = x1 - a;\n\t\t\t\t\tpathY[a] = y1 - (a * slope);\n\t\t\t\t}\n\t\t\t\telse if((x2 - x1) > 0){\n\t\t\t\t\tpathX[a] = x1 + a;\n\t\t\t\t\tpathY[a] = y1 + (a * slope);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(vert && (y2 - y1) < 0){\n\t\t\tfor(int b = 0; b < Math.abs(y2 - y1) + 1; b++){\n\t\t\t\tif(b >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tpathX[b] = x1;\n\t\t\t\tpathY[b] = y1 - b;\n\t\t\t}\n\t\t}\n\t\telse if(vert && (y2 - y1) > 0){\n\t\t\tfor(int b = 0; b < Math.abs(y2 - y1) + 1; b++){ \n\t\t\t\tif(b >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tpathX[b] = x1;\n\t\t\t\tpathY[b] = y1 + b;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn;\n\t\t\n\t}",
"private double getIntercept(double slope) {\n return (sumY - slope * sumX) / n;\n }",
"public double getSlopeStdErr() {\n return Math.sqrt(getMeanSquareError() / sumXX);\n }",
"public void Mirror(Line l)\n\t{\n\t\tif (l == null) return;\n\t\tif (l.point1 == null || l.point2 == null)\n {\n return;\n }\n\t\tint rise = l.point1.y - l.point2.y;\n\t\tint run = l.point1.x - l.point2.x;\n\t\t\n\t\tif (run != 0)\n\t\t{\n\t\t\tint slope = rise/run;\n\n\t\t\tint b = l.point1.y - (slope*l.point1.x);\n\n\t\t\tint d = (l.point1.x + (l.point1.y - b)*slope) / ( 1 + slope*slope);\n\n\t\t\tthis.x = 2*d - this.x;\n\t\t\tthis.y = (2*d*slope - this.y + 2*b);\n\t\t}\n\t\t//handle undefined slope; \n\t\telse\n\t\t{\n\t\t\tthis.x = -(this.x - l.point1.x); \n\t\t}\n\t\t\n\n\t}",
"public LineRelation lineLineRelation(Coordinates line1PointA, Coordinates line1PointB,\n Coordinates line2PointA, Coordinates line2PointB);",
"public double distanceBetween2Points(double x1,double y1,double x2, double y2){\n\t\treturn Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));\n\t}",
"public double predict(double x) {\n double b1 = getSlope();\n return getIntercept(b1) + b1 * x;\n }",
"private void drawLine(Graphics g, int x1, int y1, int x2, int y2) {\n int d = 0;\n\n int dx = Math.abs(x2 - x1);\n int dy = Math.abs(y2 - y1);\n\n int dx2 = 2 * dx; // slope scaling factors to\n int dy2 = 2 * dy; // avoid floating point\n\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n int x = x1;\n int y = y1;\n\n if (dx >= dy) {\n while (true) {\n plot(g, x, y);\n if (x == x2)\n break;\n x += ix;\n d += dy2;\n if (d > dx) {\n y += iy;\n d -= dx2;\n }\n }\n } else {\n while (true) {\n plot(g, x, y);\n if (y == y2)\n break;\n y += iy;\n d += dx2;\n if (d > dy) {\n x += ix;\n d -= dy2;\n }\n }\n }\n }",
"public static void main(String[] args) {\n \n Scanner readObject = new Scanner(System.in);\n double X1, X2, Y1, Y2;\n \n System.out.print(\"Enter Point X1\"); //prompt the user to enter Coordinate X1\n X1 = readObject.nextDouble(); // \n System.out.print(\"Enter Point X2 \"); //prompt the user to enter Coordinate X2\n X2 = readObject.nextDouble();\n System.out.print(\"Enter Point Y1 \");\n Y1 = readObject.nextDouble(); // prompt the user to enter Coordinate Y1\n System.out.print(\"Enter Point Y2 \");\n Y2 = readObject.nextDouble(); // prompt the user to enter Coordinate Y2\n double DistanceBetweenPointX = X2 -X1 ; // Determine the distance between point X\n double DistanceBetweenPointY = Y2-Y1; // Determine the distance between point Y\n double Slope = (DistanceBetweenPointY / DistanceBetweenPointX);\n System.out.println(\" Point A on a coordinate plane is (\" + X1 + \",\" + Y1 + \"). Point B on a coordinate plane is (\" + X2 + \",\" + Y2 + \").\");\n System.out.println( \"The distance between point A and B is (\" + DistanceBetweenPointX + \", \" + DistanceBetweenPointY+ \").\");\n System.out.println(\"The slope of the line is (\" + Slope + \").\");\n \n \n }",
"public static float getDistanceBetween(PVector p1, PVector p2) {\n // Note: Raw values between point 1 and point 2 not valid, as they are are origin-based.\n PVector sub = PVector.sub(p1, p2);\n PVector xaxis = new PVector(1, 0);\n float dist = PVector.dist(sub, xaxis);\n return dist;\n }",
"public Line (double x0, double y0, double x1, double y1) {\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n }",
"public Point2D.Double\ngetLineIntersectPoint(BLine2D line)\n{\n\treturn (getSegmentIntersectPoint(line));\n}",
"public double getSlope(double queryPosition) {\n /*The curve is generated by cos(hillPeakFrequency(x-pi/2)) so the \n * pseudo-derivative is cos(hillPeakFrequency* x) \n */\n return Math.cos(HILL_PEAK_FREQUENCY * queryPosition);\n }",
"public float getIntersection(Line2D.Float line) {\n // The intersection point I, of two vectors, A1->A2 and\n // B1->B2, is:\n // I = A1 + Ua * (A2 - A1)\n // I = B1 + Ub * (B2 - B1)\n //\n // Solving for Ua gives us the following formula.\n // Ua is returned.\n float denominator = (line.y2 - line.y1) * (x2 - x1) -\n (line.x2 - line.x1) * (y2 - y1);\n\n // check if the two lines are parallel\n if (denominator == 0) {\n return -1;\n }\n\n float numerator = (line.x2 - line.x1) * (y1 - line.y1) -\n (line.y2 - line.y1) * (x1 - line.x1);\n\n return numerator / denominator;\n }",
"public double tanSlope(double x) {\n this.tanSlope(x);\n return this.tanslope;\n }",
"public double getDemandAndSlope$forPrice(double slope, double p)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to getDemandAndSlope$forPrice : \" + \"Agent\");\r\n/* 252 */ return 0.0D;\r\n/* */ }",
"public double getDistanceToPoint(Point2D point) {\n double ax = point.getX() - this.point1.getX();\n double bx = this.point2.getX() - this.point1.getX();\n double ay = point.getY() - this.point1.getY();\n double by = this.point2.getY() - this.point1.getY();\n\n double denom = bx * bx + by * by;\n if (denom < MathConstants.EPS) {\n return this.point1.distance(point);\n }\n\n double t = (ax * bx + ay * by) / denom;\n if (t < 0) {\n return this.point1.distance(point);\n }\n if (t > 1) {\n return this.point2.distance(point);\n }\n double x = this.point1.getX() * (1.0 - t) + this.point2.getX() * t;\n double y = this.point1.getY() * (1.0 - t) + this.point2.getY() * t;\n\n double dx = x - point.getX();\n double dy = y - point.getY();\n\n return Math.sqrt(dx * dx + dy * dy);\n }",
"public double intercept() {\r\n return (this.start.getY() - (this.lineSlope() * this.start.getX()));\r\n }",
"public Vector2 intersect(Line line)\n {\n // find coefficients (a,b,c) of line1\n float a = direction.y;\n float b = -direction.x;\n float c = direction.y * point.x - direction.x * point.y;\n\n // find coefficients (d,e,f) of line2\n float d = line.getDirection().y;\n float e = -line.getDirection().x;\n float f = line.getDirection().y * line.getPoint().x - line.getDirection().x * line.getPoint().y;\n\n // find determinant: ae - bd\n float determinant = a * e - b * d;\n\n // find the intersect point (x,y) if det != 0\n // if det=0, return a Vector2 with Float.NaN\n Vector2 intersectPoint = new Vector2(Float.NaN, Float.NaN); // default point with NAN\n if(determinant != 0)\n {\n intersectPoint.x = (c * e - b * f) / determinant;\n intersectPoint.y = (a * f - c * d) / determinant;\n }\n\n // return the intersected point\n return intersectPoint;\n }",
"public double distancePointLine(Point2D PV, Point2D LV1, Point2D LV2) {\n\t\t\t\t\t\t\t\t\t\t\n\t Point2D slope = new Point2D (LV2.x() - LV1.x(), LV2.y() - LV1.y());\t\t\t\t// slope of line\n\t double lineLengthi = slope.x() * slope.x() + slope.y() * slope.y(); \t\t// squared length of line;\n\n\t Point2D s = new Point2D(PV.x() - LV1.x(), PV.y() - LV1.y());\n\t\tdouble ti = (s.x()* slope.x()+ s.y()*slope.y())/lineLengthi;\n\t\tPoint2D p = new Point2D(slope.x() * ti, slope.y() * ti);\t\t\t\t\t\t// crawl the line acoording to its slope to distance t\n\t\tPoint2D projectionOnLine = new Point2D(LV1.x()+p.x(), LV1.y()+p.y());\t\t\t// add the starting coordinates\t\t\t\n\t\tPoint2D subber = new Point2D(projectionOnLine.x()- PV.x(), projectionOnLine.y()- PV.y()); // now calculate the distance of the measuring point to the projected point on the line\n\t\tdouble dist = (float) Math.sqrt(subber.x() * subber.x() + subber.y() * subber.y());\n\t\treturn dist;\n\t}",
"public double closestPointInSegment(Vector v1, Vector v2) {\n if (v1.same(v2)) return dist(v1);\n\n Vector v = this.sub(v1);\n Vector p = v2.sub(v1).norm();\n\n Vector proj = p.mul(v.dot(p)).add(v1);\n if (proj.inBoundingBox(v1, v2)) {\n return Math.abs(v2.x - v1.x) > EPS ?\n (proj.x - v1.x) / (v2.x - v1.x)\n : (proj.y - v1.y) / (v2.y - v1.y);\n } else {\n return dist(v1) < dist(v2) ? 0 : 1;\n }\n }",
"private double getRegressionSumSquares(double slope) {\n return slope * slope * sumXX;\n }",
"public double distance(double x1, double y1, double x2, double y2)\n {\n return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow(y2 - y1, 2));\n }",
"public Segments(Point[] points) { //1 slopeTo\n double slope = points[points.length - 1].slopeTo(points[0]);\n if (Double.compare(slope ,0) < 0) {\n left = points[points.length - 1];\n right = points[0];\n } else { //>=\n right = points[points.length - 1];\n left = points[0];\n }\n }",
"public static double getAngle2D(Line2D line, Point2D point) {\n return AlgoPoint2D.getAngle2D(AlgoPoint2D.subtract(line.getP2(),line.getP1()), point);\r\n }",
"public Segment2D(Point2D point1, Point2D point2) {\n this.point1 = point1;\n this.point2 = point2;\n double xr0 = point1.getX();\n double yr0 = point1.getY();\n double xr1 = point2.getX();\n double yr1 = point2.getY();\n\n // compute line equation: ax+by+c=0\n double dx = xr0 - xr1;\n double dy = yr0 - yr1;\n double ddx = (dx > 0) ? dx : -dx;\n double ddy = (dy > 0) ? dy : -dy;\n if (ddx < EPS) {\n this.a = 1.0;\n this.b = 0.0;\n this.c = -xr0;\n }\n else {\n if (ddy < EPS) {\n this.a = 0.0;\n this.b = 1.0;\n this.c = -yr0;\n }\n else {\n // real case. Let b=1.0 -> y+ax+c=0\n this.a = (yr0 - yr1) / (xr1 - xr0);\n this.b = 1.0;\n this.c = -yr0 - this.a * xr0;\n }\n }\n this.minx = Math.min(this.point1.getX(), this.point2.getX());\n this.maxx = Math.max(this.point1.getX(), this.point2.getX());\n\n this.miny = Math.min(this.point1.getY(), this.point2.getY());\n this.maxy = Math.max(this.point1.getY(), this.point2.getY());\n }",
"double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }",
"private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }",
"public static double lerp(double y0, double y1, double x) {\n double m = y1 - y0;\n double b = y0;\n return m * x + b; // i.e, linear function\n }",
"private double norm(double x1, double y1, double x2, double y2)\n {\n return Math.sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));\n }",
"public double getAcuteAngle( final LineXY line ) {\n\t\t// get the intersection point\n\t\tfinal PointXY p1 = PointXY.getIntersectionPoint( this, line );\n\t\tif( p1 == null ) {\n\t\t\tthrow new IllegalArgumentException( format( \"No intersection found\" ) );\n\t\t}\n\t\t\n\t\t// get the points of both lines\n\t\tfinal PointXY pa1 = this.getBeginPoint();\n\t\tfinal PointXY pa2 = this.getEndPoint();\n\t\tfinal PointXY pb1 = line.getBeginPoint();\n\t\tfinal PointXY pb2 = line.getEndPoint();\n\t\t\n\t\tfinal PointXY p2 = PointXY.getFarthestPoint( p1, pa1, pa2 );\n\t\tfinal PointXY p3 = PointXY.getFarthestPoint( p1, pb1, pb2 );\n\t\t\n\t\t// are both lines orthogonal?\n\t\tif( this.isOrthogonal() && line.isOrthogonal() ) {\n\t\t\treturn this.isParallelTo( line ) ? 0 : Math.PI;\n\t\t}\n\t\t\n\t\t// is the either line orthogonal?\n\t\telse if( this.isOrthogonal() || line.isOrthogonal() ) {\n\t\t\t// cos t = ( -a^2 + b^2 - c^2 ) / 2cb \n\t\t\tfinal double a = getDistance( p1, p2 );\n\t\t\tfinal double b = getDistance( p1, p3 );\n\t\t\tfinal double c = getDistance( p2, p3 );;\n\t\t\treturn acos( ( -pow(a, 2d) + pow(b, 2d) - pow(c, 2d) ) / ( 2d * c * b ) );\n\t\t}\n\t\t\n\t\t// both must be angular\n\t\telse {\n\t\t\t// tan t = ( m1 - m2 ) / ( 1 + m1 * m2 ); where m2 > m1\n\t\t\tdouble m1 = this.getSlope();\n\t\t\tdouble m2 = line.getSlope();\n\t\t\tif( m1 > m2 ) {\n\t\t\t\tfinal double mt = m1;\n\t\t\t\tm1 = m2;\n\t\t\t\tm2 = mt;\n\t\t\t}\n\t\t\t\n\t\t\t// compute the angle\n\t\t\treturn atan( ( m1 - m2 ) / ( 1 + m1 * m2 ) );\n\t\t}\n\t}",
"public int calculateLineLength() {\n\t\tdouble x1 = pointOne.getxCoordinate();\n\t\tdouble y1 = pointOne.getyCoordinate();\n\n\t\t// storing pointTwo coordinates in x2 and y2\n\t\tdouble x2 = pointTwo.getxCoordinate();\n\t\tdouble y2 = pointTwo.getyCoordinate();\n\n\t\t// computing length\n\t\tint length = (int) Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\t\treturn length;\n\t}",
"public static Point GetClosestPointOnSegment( Double sx1, Double sy1,\n Double sx2, Double sy2,\n Double px, Double py)\n {\n double xDelta = sx2 - sx1;\n double yDelta = sy2 - sy1;\n\n if ((xDelta == 0) && (yDelta == 0))\n {\n throw new IllegalArgumentException(\"Segment start equals segment end\");\n }\n\n double u = ((px - sx1) * xDelta + (py - sy1) * yDelta) /\n (xDelta * xDelta + yDelta * yDelta);\n\n final Point closestPoint;\n if (u < 0)\n {\n closestPoint = new Point(sx1, sy1, 0.0);\n }\n else if (u > 1)\n {\n closestPoint = new Point(sx2, sy2, 0.0);\n }\n else\n {\n closestPoint = new Point( sx1 + u * xDelta, sy1 + u * yDelta, 0.0);\n }\n\n return closestPoint;\n }",
"public double getDistance(double x, double y, Point p)\n\t{\n\t\tdouble s1 = Math.sqrt((x - p.x)*(x - p.x) + (y - p.y)*(y - p.y));\n\t\treturn s1;\n\t}",
"public static final double distance(final double x1, final double x2, final double y1, final double y2) {\r\n return Math.sqrt( ( (x2 - x1) * (x2 - x1)) + ( (y2 - y1) * (y2 - y1)));\r\n }",
"public double tanSlope(double x) {\n double temp1, temp2, temp3;\n temp1 = this.a * this.b;\n temp2 = this.b * x + this.c;\n temp3 = Math.pow(1.0 / (Math.cos(temp2)), 2);\n this.tanslope = temp1 * temp3;\n return this.tanslope;\n\n }",
"public static float intersectRayOnLine(PointF rayPos, PointF rayDir,\n PointF line0, PointF line1){\n PointF v1 = Vec2D.subtract(rayPos, line0);\n PointF v2 = Vec2D.subtract(line1, line0);\n PointF v3 = Vec2D.perpendicular(rayDir);\n\n return Vec2D.dot(v1, v3) / Vec2D.dot(v2, v3);\n }",
"public static float horizontalDistance(PointF firstPoint, PointF secondPoint) {\n return Math.abs(secondPoint.x - firstPoint.x);\n }",
"public static double distance(\n\t\t\tdouble x1, double y1, double x2, double y2) {\n\t\treturn Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n\t}",
"static PointDouble intersection(Line l1, Line l2) {\n if (areParallel(l1, l2)) return null; // no intersection\n PointDouble p = new PointDouble();\n // solve system of 2 linear algebraic equations with 2 unknowns\n p.x = (l2.b * l1.c - l1.b * l2.c) / (l2.a * l1.b - l1.a * l2.b);\n // In one of the lines, the b in the equation will be 1, since if both are 0\n // the lines are parallel. We calculate y from that Line's equation\n if (Math.abs(l1.b) > EPS) {\n p.y = -(l1.a * p.x + l1.c);\n } else {\n p.y = -(l2.a * p.x + l2.c);\n }\n return p;\n }",
"public static void main(String[] args)\n {\n Point p1 = new Point(10, 0);\n Point p2 = new Point(0, 10);\n Point p3 = new Point(3, 7);\n Point p4 = new Point(7, 3);\n Point p5 = new Point(20, 21);\n Point p6 = new Point(3, 4);\n Point p7 = new Point(14, 15);\n Point p8 = new Point(6, 7);\n\n Point[] arr = new Point[8];\n arr[0] = p1;\n arr[1] = p2;\n arr[2] = p3;\n arr[3] = p4;\n arr[4] = p5;\n arr[5] = p6;\n arr[6] = p7;\n arr[7] = p8;\n\n System.out.println(\"Before sorting:\");\n for (Point i : arr)\n {\n System.out.println(i.toString());\n }\n\n Arrays.sort(arr, p1.slopeOrder());\n\n System.out.println(\"After sorting:\");\n for (Point i : arr)\n {\n System.out.println(i.toString());\n }\n\n double[] slopes = new double[8];\n Point pt = p1;\n slopes[0] = pt.slopeTo(p2);\n slopes[1] = pt.slopeTo(p3);\n slopes[2] = pt.slopeTo(p4);\n slopes[3] = pt.slopeTo(p5);\n slopes[4] = pt.slopeTo(p6);\n slopes[5] = pt.slopeTo(p7);\n slopes[6] = pt.slopeTo(p8);\n\n System.out.println(\"Slope values, initial:\");\n for (double d : slopes)\n {\n System.out.println(d);\n }\n\n for (int i = 0; i < 8; ++i)\n {\n slopes[i] = pt.slopeTo(arr[i]);\n }\n\n System.out.println(\"Slope values, final:\");\n for (double d : slopes)\n {\n System.out.println(d);\n }\n }",
"public GPoint midpoint() {\n return(new GPoint((point1.getFirst()+point2.getFirst())/2.0,\n (point1.getSecond()+point2.getSecond())/2.0));\n }",
"public double estimate_error(Point point, Line model)\n {\n double y = model.a * point.getX() + model.b;\n return (Math.abs(point.getY() - y) / Math.sqrt(1 + model.a * model.a));\n }",
"public Point2D.Float getIntersectionPoint(Line2D.Float line) {\n return getIntersectionPoint(line, null);\n }",
"@Override\r\n\tpublic double derivativeOf(double x) {\r\n\t\treturn ( 1 / (x - this.getLower_bound()) ) + ( 1 / (this.getUpper_bound() - x) ); \r\n\t}",
"public void rasterizeLine (int x0, int y0, int x1, int y1)\n {\n \tfloat dX = (x1 - x0);\n \tfloat dY = (y1 - y0);\n \tfloat m = (dY / dX);\t//slope\n \tint x = x0;\n \tfloat y = y0;\n \t\n \twhile(x < x1)\n \t{\n \t\traster.setPixel(x, Math.round(y), new int[]{255, 50, 100});\n \t\tx += 1;\n \t\ty += m;\n \t}\n }"
]
| [
"0.7934883",
"0.777518",
"0.7672909",
"0.7616454",
"0.7605469",
"0.7585993",
"0.75089544",
"0.74279785",
"0.7389036",
"0.73427653",
"0.73275775",
"0.7287065",
"0.72448385",
"0.72130245",
"0.71160126",
"0.7053105",
"0.69749385",
"0.6925853",
"0.6393567",
"0.6388538",
"0.61171156",
"0.61136174",
"0.5641767",
"0.5589289",
"0.5572493",
"0.5487035",
"0.5467969",
"0.5402452",
"0.534203",
"0.5318951",
"0.53100526",
"0.5301647",
"0.5284651",
"0.5279839",
"0.5242225",
"0.52233356",
"0.52212465",
"0.5220465",
"0.5214693",
"0.51138353",
"0.5113795",
"0.50572324",
"0.5055868",
"0.5022702",
"0.50033885",
"0.49998423",
"0.499663",
"0.49621576",
"0.49475485",
"0.49474898",
"0.49341866",
"0.49124405",
"0.48973605",
"0.48947674",
"0.4883536",
"0.48833174",
"0.4881978",
"0.4873521",
"0.48620737",
"0.48447132",
"0.48405656",
"0.48295724",
"0.48015445",
"0.47938868",
"0.47908998",
"0.47750992",
"0.47731683",
"0.47684944",
"0.47589082",
"0.47532457",
"0.4746819",
"0.47445124",
"0.47277692",
"0.4700629",
"0.47004557",
"0.4682485",
"0.466255",
"0.46611676",
"0.4641389",
"0.46409488",
"0.4635074",
"0.46255392",
"0.46180534",
"0.46142137",
"0.461306",
"0.46085548",
"0.46033803",
"0.45966488",
"0.45954508",
"0.458838",
"0.45849508",
"0.4575936",
"0.4571758",
"0.4560796",
"0.45542932",
"0.45424223",
"0.45408848",
"0.4536934",
"0.45350027",
"0.45323557"
]
| 0.7394536 | 8 |
Compares two points by ycoordinate, breaking ties by xcoordinate. Formally, the invoking point (x0, y0) is less than the argument point (x1, y1) if and only if either y0 < y1 or if y0 = y1 and x0 < x1. | public int compareTo(Point that)
{
if (y < that.y || (y == that.y && x < that.x)) return -1;
else if (x == that.x && y == that.y) return 0;
return 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.y - b.y));\n }",
"@Override\n public int compare(QuickHull.Point p1, QuickHull.Point p2){\n if(p1.x== p2.x && p1.y==p2.y)\n return 0;\n //if x coordinate less or x coordinate equal, but\n //y coordinate is less (tie break)\n else if(p1.x<p2.x || p1.x==p2.x && p1.y<p2.y)\n return -1;\n else\n return 1;\n }",
"@Override\n public int compare(MyPoint p1, MyPoint p2) {\n int thresh = 80;\n int xComp = Double.compare(p1.x, p2.x);\n //if they are on the same column, check who is the higher one.\n if (Math.abs(p1.x - p2.x) <= thresh) {\n return -Double.compare(p1.y, p2.y);\n } else\n return xComp;\n }",
"public int compareTo(PointDouble other) { // override less than operator\n if (Math.abs(x - other.x) > EPS) // useful for sorting\n return (int)Math.ceil(x - other.x); // first: by x-coordinate\n else if (Math.abs(y - other.y) > EPS)\n return (int)Math.ceil(y - other.y); // second: by y-coordinate\n else\n return 0; // they are equal\n }",
"public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.x - b.x));\n }",
"public int compareTo(Point2D that) {\r\n if (this.y < that.y) return -1;\r\n if (this.y > that.y) return +1;\r\n if (this.x < that.x) return -1;\r\n if (this.x > that.x) return +1;\r\n return 0;\r\n }",
"@Override\n\tpublic int compare(ObjectWithCoordinates p1, ObjectWithCoordinates p2) {\n\t\tif (p1.getX() < p2.getX()) return -1;\n\t\tif (p1.getX() > p2.getX()) return +1;\n\t\tif (p1.getY() < p2.getY()) return -1;\n\t\tif (p1.getY() > p2.getY()) return +1;\n\t\treturn 0;\n\t}",
"public int compareTo(Point that) {\n if (this.y < that.y)\n return -1;\n else if (this.y == that.y) {\n if (this.x < that.x)\n return -1;\n else if (this.x == that.x)\n return 0;\n }\n return 1;\n\n }",
"public int compareTo(Point that) {\n if (this.y < that.y) return -1;\n if (this.y > that.y) return +1;\n if (this.x < that.x) return -1;\n if (this.x > that.x) return +1;\n else return 0;\n }",
"public int compareTo(Point that) {\r\n\r\n\t\tif(this.y == that.y && this.x == that.x) return 0;\r\n\r\n if(this.y < that.y || (this.y == that.y && this.x < that.x)) return -1;\r\n\r\n\t\treturn 1;\r\n }",
"static int compar(int d1,int m1, int y1,int d2,int m2, int y2 )\n{\n if(y1>y2)\n return 1;\n if(y1<y2)\n return -1;\n \n if(m1>m2)\n return 1;\n if(m1<m2)\n return -1;\n \n if(d1>d2)\n return 1;\n if(d1<d2)\n return -1;\n \n \n \n return 0;\n \n \n}",
"private boolean iflt(PyObject x, PyObject y) {\n \n if (this.compare == null) {\n /* NOTE: we rely on the fact here that the sorting algorithm\n only ever checks whether k<0, i.e., whether x<y. So we\n invoke the rich comparison function with _lt ('<'), and\n return -1 when it returns true and 0 when it returns\n false. */\n return x._lt(y).__nonzero__();\n }\n \n PyObject ret = this.compare.__call__(x, y);\n \n if (ret instanceof PyInteger) {\n int v = ((PyInteger)ret).getValue();\n return v < 0;\n }\n throw Py.TypeError(\"comparision function must return int\");\n }",
"private static int comparePoints(Point p1, Point p2, int idx) {\n double p1Pos = p1.getX();\n double p2Pos = p2.getX();\n if (idx == 1) {\n p1Pos = p1.getY();\n p2Pos = p2.getY();\n }\n return Double.compare(p1Pos, p2Pos);\n }",
"private static boolean compareEdges(S2Point a0, S2Point a1, S2Point b0, S2Point b1) {\n if (a1.lessThan(a0)) {\n S2Point temp = a0;\n a0 = a1;\n a1 = temp;\n }\n if (b1.lessThan(b0)) {\n S2Point temp = b0;\n b0 = b1;\n b1 = temp;\n }\n return a0.lessThan(b0) || (a0.equalsPoint(b0) && b0.lessThan(b1));\n }",
"public int compareTo(Point that) {\n if (this.y != that.y) {\n if (this.y > that.y) {\n return 1;\n }\n else {\n return -1;\n }\n }\n return new Integer(this.x).compareTo(that.x);\n }",
"@Override\n\t\t\tpublic int compare(Point arg0, Point arg1) {\n\t\t\t return Double.compare(arg0.getX(), arg1.getX());\n\t\t\t}",
"public int compareTo(Point that) {\n// System.out.printf(\"in compare %d %d %d %d\\n\", this.x , this.y, that.x, that.y);\n if (that.y == this.y && that.x == this.x)\n return 0;\n else if (that.y == this.y)\n return this.x - that.x;\n return this.y - that.y;\n }",
"public int scomp(Point s1, Point s2) {\r\n\t\tif (s1.y < s2.y)\r\n\t\t\treturn (-1);\r\n\t\tif (s1.y > s2.y)\r\n\t\t\treturn (1);\r\n\t\tif (s1.x < s2.x)\r\n\t\t\treturn (-1);\r\n\t\tif (s1.x > s2.x)\r\n\t\t\treturn (1);\r\n\t\treturn (0);\r\n\t}",
"public boolean isAbove( final double x, final double y ) {\n\t\t// is the line above the point?\n\t\treturn ( this.getY1() < y ) && ( this.getY2() < y );\n\t}",
"public float compareTo(float x, float y) {\r\n float dx2 = (float) Math.abs((this.xf - x) * (this.xf - x));\r\n float dy2 = (float) Math.abs((this.yf - y) * (this.yf - y));\r\n float d = (float) Math.sqrt(dx2 + dy2);\r\n if (d > 3.0f) // Points closer than 3 pixels are the same\r\n return d;\r\n return 0;\r\n }",
"public static Point[] closestPair(double[] x, double[]y) throws Exception\r\n {\r\n /*if x-coordinates dont match y-coordinates*/\r\n if(x.length != y.length)\r\n {\r\n System.out.println(\"Can't compute closest pair. Input lengths mismatch!\");\r\n throw new Exception();\r\n }\r\n /*if there is one or less points*/\r\n if(x.length <2 || y.length <2)\r\n {\r\n System.out.println(\"Can't compute closest pair. Fewer inputs!\");\r\n throw new Exception();\r\n }\r\n /*if there are two points*/\r\n if(x.length == 2)\r\n {\r\n Point[] closest = {new Point(x[0],y[0]), new Point(x[1],y[1])};\r\n return closest;\r\n }\r\n /*if there are three points*/\r\n if(x.length == 3)\r\n {\r\n double cx1 = x[0], cy1 = y[0], cx2 = x[1], cy2 = y[1];\r\n //P0 and P1\r\n double cdist = Math.pow((cx1-cx2),2) + Math.pow((cy1-cy2),2); //ignoring square root to reduce computation time\r\n //P1 and P2\r\n double dist = Math.pow((x[0]-x[2]),2) + Math.pow((y[0]-y[2]),2);\r\n if(dist<cdist)\r\n {\r\n cx1 = x[0]; cy1 = y[0]; cx2 = x[2]; cy2 = y[2]; cdist = dist;\r\n }\r\n //P2 and P3\r\n dist = Math.pow((x[1]-x[2]),2) + Math.pow((y[1]-y[2]),2);\r\n if(dist<cdist)\r\n {\r\n cx1 = x[1]; cy1 = y[1]; cx2 = x[2]; cy2 = y[2]; cdist = dist;\r\n }\r\n Point[] closest = {new Point(cx1,cy1), new Point(cx2,cy2)};\r\n return closest;\r\n }\r\n \r\n //sorting based on x values\r\n int i=0;\r\n double z,zz;\r\n while (i < x.length) \r\n \t{\r\n \t\tif (i == 0 || x[i-1] <= x[i])\r\n \t\t\ti++;\r\n \t\telse \r\n \t\t{\r\n \t\t\tz = x[i];\r\n \t\t\tzz = y[i];\r\n \t\t\tx[i] = x[i-1];\r\n \t\t\ty[i] = y[i-1];\r\n \t\t\tx[--i] = z;\r\n \t\t\ty[i] = zz;\r\n \t\t}\r\n \t}\r\n \r\n //finding left closest pair\r\n Point[] closestL = closestPair(Arrays.copyOfRange(x, 0, x.length/2),Arrays.copyOfRange(y, 0, y.length/2));\r\n //finding right closest pair\r\n Point[] closestR = closestPair(Arrays.copyOfRange(x, x.length/2, x.length),Arrays.copyOfRange(y, y.length/2, y.length));\r\n \r\n double distLsq = Math.pow((closestL[0].getX() - closestL[1].getX()),2) + Math.pow((closestL[0].getY() - closestL[1].getY()),2);\r\n double distRsq = Math.pow((closestR[0].getX() - closestR[1].getX()),2) + Math.pow((closestR[0].getY() - closestR[1].getY()),2);\r\n \r\n double minD;\r\n Point[] closest;\r\n if(distLsq<distRsq)\r\n {\r\n minD = distLsq;\r\n closest = closestL;\r\n }\r\n else \r\n {\r\n minD = distRsq;\r\n closest = closestR;\r\n }\r\n \r\n double midLine = ((x[x.length/2-1]) + (x[x.length/2]))/2;\r\n \r\n //System.out.println(Arrays.toString(x));\r\n //System.out.println(\"midline... x = \" + midLine);\r\n \r\n /*looking at points at a horizontal distance of minD from the mid line*/\r\n for(i = 0; i < x.length/2; i++)\r\n {\r\n if(midLine - x[i] < minD)\r\n {\r\n for(int j = x.length/2; j < x.length; j++)\r\n {\r\n /*looking at points at a vertical and horizontal distance of minD from the current point*/\r\n if((x[j] - midLine < minD) && (y[j] - y [i] < minD || y[i] - y [j] < minD))\r\n {\r\n if(Math.pow((x[i] - x[j]),2) + Math.pow((y[i] - y[j]),2) < minD)\r\n {\r\n closest = new Point[]{new Point(x[i],y[i]), new Point(x[j],y[j])};\r\n minD = Math.pow((x[i] - x[j]),2) + Math.pow((y[i] - y[j]),2);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return closest;\r\n \r\n }",
"private int compareIntAndFloat(int x, float y) {\n if (x < y) {\n return -1;\n } else if (x == y) {\n return 0;\n } else {\n return 1;\n }\n }",
"public void replaceIfCloser(S2Point x, S2Point y) {\n double d2 = S2Point.minus(x, y).norm2();\n if (d2 < dmin2 || (d2 == dmin2 && y.lessThan(vmin))) {\n dmin2 = d2;\n vmin = y;\n }\n }",
"public int compare(double[] a, double[] b)\r\n\t\t\t\t{\n\t\t\t\t\tdouble x, y;\r\n\t\t\t\t\tif(a[0] != b[0]) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tx = a[0];\r\n\t\t\t\t\t\ty = b[0];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (x < y) \r\n\t\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t\telse if (x == y) \r\n\t\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\treturn 1;\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(a.length > 2)\r\n\t\t\t\t\t\t\treturn compare(ArrayUtils.subarray(a, 1, a.length - 1), ArrayUtils.subarray(b, 1, b.length - 1));\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"private int compareTo(int xIndx, int[] x, int yIndx, int[] y)\n {\n while (xIndx != x.length && x[xIndx] == 0)\n {\n xIndx++;\n }\n\n while (yIndx != y.length && y[yIndx] == 0)\n {\n yIndx++;\n }\n\n if ((x.length - xIndx) < (y.length - yIndx))\n {\n return -1;\n }\n\n if ((x.length - xIndx) > (y.length - yIndx))\n {\n return 1;\n }\n\n // lengths of magnitudes the same, test the magnitude values\n\n while (xIndx < x.length)\n {\n long v1 = (long)(x[xIndx++]) & IMASK;\n long v2 = (long)(y[yIndx++]) & IMASK;\n if (v1 < v2)\n {\n return -1;\n }\n if (v1 > v2)\n {\n return 1;\n }\n }\n\n return 0;\n }",
"boolean between(tPoint p2)\n {\n if (! this.collinear(p2))\n return false;\n \n //check to see if line is vertical\n if (this.p0.x != this.p1.x)\n {\n //if not vertical, check to see if point overlaps in x\n return (((this.p0.x < p2.x) && (p2.x < this.p1.x)) |\n ((this.p0.x > p2.x) && (p2.x > this.p1.x)));\n }\n else\n {\n //if vertical, check to see if point overlaps in y\n return (((this.p0.y < p2.y) && (p2.y < this.p1.y)) |\n ((this.p0.y > p2.y) && (p2.y > this.p1.y)));\n }\n }",
"private static int compareTo(int xIndx, int[] x, int yIndx, int[] y)\n {\n while (xIndx != x.length && x[xIndx] == 0)\n {\n xIndx++;\n }\n\n while (yIndx != y.length && y[yIndx] == 0)\n {\n yIndx++;\n }\n\n return compareNoLeadingZeroes(xIndx, x, yIndx, y);\n }",
"private void comparePoints(double[] firstP, double[] secondP) {\n assertEquals(firstP.length, secondP.length);\n\n for(int j=0; j<firstP.length; j++) {\n assertEquals(\"j = \"+j, firstP[j], secondP[j], TOLERANCE);\n }\n }",
"public static boolean pointIn(int a, int b, int point) {\n return point>a && point<b;\n }",
"@Override\n public int compare(Point pointOne, Point pointTwo) {\n if (pointOne == null) {\n throw new JMetalException(\"PointOne is null\") ;\n } else if (pointTwo == null) {\n throw new JMetalException(\"PointTwo is null\") ;\n } else if (index >= pointOne.getDimension()) {\n throw new JMetalException(\"The index value \" + index\n + \" is out of range (0, \" + (pointOne.getDimension()-1) + \")\") ;\n } else if (index >= pointTwo.getDimension()) {\n throw new JMetalException(\"The index value \" + index\n + \" is out of range (0, \" + (pointTwo.getDimension()-1) + \")\") ;\n }\n\n if (pointOne.getValue(index) < pointTwo.getValue(index)) {\n return -1;\n } else if (pointOne.getValue(index) > pointTwo.getValue(index)) {\n return 1;\n } else {\n return 0;\n }\n }",
"@Override\n\tpublic boolean contains(int x, int y) {\n\t\treturn (x > Math.min(x1, x2) && x < Math.max(x1, x2) && y > Math.min(y1, y2) && y < Math.max(y1, y2));\n\t}",
"public double compare(double x, double y) {\n\t\tif (Math.abs(x - y) > _threshold)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn 1;\n\t}",
"static double minimalDistance(int[] x, int y[]) {\n Point[] points = new Point[x.length];\n for (int i = 0; i < x.length; i++) {\n points[i] = new Point(x[i], y[i]);\n }\n\n Arrays.sort(points, (a, b) -> a.x == b.x ? Long.signum(a.y - b.y) : Long.signum(a.y - b.y));\n\n PairPoint minPointsDistance = getMinPointsDistance(points, 0, x.length);\n return minPointsDistance == null ? -1 : minPointsDistance.distance;\n }",
"boolean losCompare(double x1, double y1, double x2, double y2, CObject pHo)\r\n {\r\n double delta;\r\n int x, y;\r\n\r\n int xLeft = pHo.hoX - pHo.hoImgXSpot;\r\n int xRight = xLeft + pHo.hoImgWidth;\r\n int yTop = pHo.hoY - pHo.hoImgYSpot;\r\n int yBottom = yTop + pHo.hoImgHeight;\r\n\r\n if (x2 - x1 > y2 - y1)\r\n {\r\n delta = (double) (y2 - y1) / (double) (x2 - x1);\r\n if (x2 > x1)\r\n {\r\n if (xRight < x1 || xLeft >= x2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (xRight < x2 || xLeft >= x1)\r\n {\r\n return false;\r\n }\r\n }\r\n y = (int) (delta * (xLeft - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n y = (int) (delta * (xRight - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n else\r\n {\r\n delta = (double) (x2 - x1) / (double) (y2 - y1);\r\n if (y2 > y1)\r\n {\r\n if (yBottom < y1 || yTop >= y2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (yBottom < y2 || yTop >= y1)\r\n {\r\n return false;\r\n }\r\n }\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n }",
"boolean handleInput(float x, float y){\n return r1_.x_ <= x && r2_.x_ >= x && r1_.y_ >= y && r2_.y_ <= y;\n }",
"public boolean isBelow( final double x, final double y ) {\n\t\t// is the line below the point?\n\t\treturn ( this.getY1() > y ) && ( this.getY2() > y );\n\t}",
"private static boolean computeBelongingToPolygon(\n final int[] xArr,\n final int[] yArr,\n final int pointCount,\n //\n final int x,\n final int y) {\n\n int hits = 0;\n\n int lastx = xArr[pointCount - 1];\n int lasty = yArr[pointCount - 1];\n int curx;\n int cury;\n\n // Looping on edges.\n for (int i = 0; i < pointCount; lastx = curx, lasty = cury, i++) {\n curx = xArr[i];\n cury = yArr[i];\n\n if (cury == lasty) {\n // Point on same line.\n continue;\n }\n\n int leftx;\n if (curx < lastx) {\n // Going left.\n if (x >= lastx) {\n // But not as far as before.\n continue;\n }\n // New leftmost.\n leftx = curx;\n } else {\n // Going rightish.\n if (x >= curx) {\n continue;\n }\n leftx = lastx;\n }\n\n double test1;\n double test2;\n if (cury < lasty) {\n if ((y < cury) || (y >= lasty)) {\n continue;\n }\n if (x < leftx) {\n hits++;\n continue;\n }\n test1 = x - curx;\n test2 = y - cury;\n } else {\n if ((y < lasty) || (y >= cury)) {\n continue;\n }\n if (x < leftx) {\n hits++;\n continue;\n }\n test1 = x - lastx;\n test2 = y - lasty;\n }\n\n /*\n * JDK code uses \"test1 < (test2 / dy * dx)\" here,\n * but we want to avoid the division.\n */\n final int dx = (lastx - curx);\n final int dy = (lasty - cury);\n if (dy < 0) {\n if (test1 * dy > test2 * dx) {\n hits++;\n }\n } else {\n if (test1 * dy < test2 * dx) {\n hits++;\n }\n }\n }\n\n return ((hits & 1) != 0);\n }",
"public boolean lessP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) < (yRatio.numerator * x.denominator));\n }\n }\n }",
"@Test\n\tpublic void lessThanTest() {\n\t\tassertTrue(x.less(y));\n\t\tassertFalse(y.less(x));\n\t}",
"@Test\n public void compareFunctionalSmaller() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p2, p1);\n \n assertEquals(1, a);\n }",
"private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }",
"@Override\n public Point nearest(double x, double y) {\n double distance = Double.POSITIVE_INFINITY;\n Point nearestPoint = new Point(0, 0);\n Point targetPoint = new Point(x, y);\n\n for (Point p : pointsList) {\n double tempdist = Point.distance(p, targetPoint);\n if (tempdist < distance) {\n distance = tempdist;\n nearestPoint = p;\n }\n }\n\n return nearestPoint;\n }",
"@Override\r\n public Point nearest(double x, double y) {\r\n Point input = new Point(x, y);\r\n Point ans = points.get(0);\r\n double dist = Point.distance(ans, input);\r\n for (Point point : points) {\r\n if (Point.distance(point, input) < dist) {\r\n ans = point;\r\n dist = Point.distance(ans, input);\r\n }\r\n }\r\n return ans;\r\n }",
"public static void sortY(ArrayList<Point> points) {\n\t\tCollections.sort(points, new Comparator<Point>() {\n\t\t\t public int compare(Point p1, Point p2) {\n\t\t\t\tif (p1.getY() < p2.getY())\n\t\t\t\t\treturn -1;\n\t\t\t\tif (p1.getY() > p2.getY())\n\t\t\t\t\treturn 1;\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}",
"boolean isPartiallyOverlapped(int[] x, int[] y) {\n return y[0] <= x[1]; //정렬이 이미 되어 있어서 simplify 할 수 있음\n }",
"public int compare( final int x, final int y ) {\n\t\t\t\tfinal LazyIntIterator i = g.successors( x ), j = g.successors( y );\n\t\t\t\tint a, b;\n\n\t\t\t\t/* This code duplicates eagerly of the behaviour of the lazy comparator\n\t\t\t\t below. It is here for documentation and debugging purposes.\n\t\t\t\t\n\t\t\t\tbyte[] g1 = new byte[ g.numNodes() ], g2 = new byte[ g.numNodes() ];\n\t\t\t\twhile( i.hasNext() ) g1[ g.numNodes() - 1 - i.nextInt() ] = 1;\n\t\t\t\twhile( j.hasNext() ) g2[ g.numNodes() - 1 - j.nextInt() ] = 1;\n\t\t\t\tfor( int k = g.numNodes() - 2; k >= 0; k-- ) {\n\t\t\t\t\tg1[ k ] ^= g1[ k + 1 ];\n\t\t\t\t\tg2[ k ] ^= g2[ k + 1 ];\n\t\t\t\t}\n\t\t\t\tfor( int k = g.numNodes() - 1; k >= 0; k-- ) if ( g1[ k ] != g2[ k ] ) return g1[ k ] - g2[ k ];\n\t\t\t\treturn 0;\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tboolean parity = false; // Keeps track of the parity of number of arcs before the current ones.\n\t\t\t\tfor( ;; ) {\n\t\t\t\t\ta = i.nextInt();\n\t\t\t\t\tb = j.nextInt();\n\t\t\t\t\tif ( a == -1 && b == -1 ) return 0;\n\t\t\t\t\tif ( a == -1 ) return parity ? 1 : -1;\n\t\t\t\t\tif ( b == -1 ) return parity ? -1 : 1;\n\t\t\t\t\tif ( a != b ) return parity ^ ( a < b ) ? 1 : -1;\n\t\t\t\t\tparity = ! parity;\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"private boolean isHorizantalLines2Points(Point p1, Point p2) {\n\n if (abs(p1.y - p2.y ) < 70 && p1.x != p2.x) {\n return true;\n }\n return false;\n }",
"private static int[][] findMinYCoordinateIndex(int[][] pointSet)\n {\n int x = pointSet[0][0];\n int y = pointSet[1][0];\n int index = 0;\n for (int i = 1; i<=pointSet[0].length-1; i++)\n {\n if (pointSet[1][i] == y)\n {\n if (pointSet[0][i] < x)\n {\n y = pointSet[1][i];\n x = pointSet[0][i];\n index = i;\n }\n }\n else\n {\n if (pointSet[1][i] < y)\n {\n y = pointSet[1][i];\n x = pointSet[0][i];\n index = i;\n }\n }\n }\n int tempX = pointSet[0][0]; int tempY = pointSet[1][0];\n pointSet[0][0] = pointSet[0][index];\n pointSet[1][0] = pointSet[1][index];\n pointSet[0][index] = tempX; pointSet[1][index] = tempY;\n return pointSet;\n }",
"public static double closestPair(Point[] sortedX) {\n if (sortedX.length <= 1) {\n return Double.MAX_VALUE;\n }\n double mid = sortedX[(sortedX.length) / 2].getX();\n double firstHalf = closestPair(Arrays.copyOfRange(sortedX, 0, (sortedX.length) / 2));\n double secondHalf = closestPair(Arrays.copyOfRange(sortedX, (sortedX.length) / 2, sortedX.length));\n double min = Math.min(firstHalf, secondHalf);\n ArrayList<Point> close = new ArrayList<Point>();\n for (int i = 0; i < sortedX.length; i++) {\n double dis = Math.abs(sortedX[i].getX() - mid);\n if (dis < min) {\n close.add(sortedX[i]);\n }\n }\n // sort by Y coordinates\n Collections.sort(close, new Comparator<Point>() {\n public int compare(Point obj1, Point obj2) {\n return (int) (obj1.getY() - obj2.getY());\n }\n });\n Point[] near = close.toArray(new Point[close.size()]);\n\n for (int i = 0; i < near.length; i++) {\n int k = 1;\n while (i + k < near.length && near[i + k].getY() < near[i].getY() + min) {\n if (min > near[i].distance(near[i + k])) {\n min = near[i].distance(near[i + k]);\n System.out.println(\"near \" + near[i].distance(near[i + k]));\n System.out.println(\"best \" + best);\n\n if (near[i].distance(near[i + k]) < best) {\n best = near[i].distance(near[i + k]);\n arr[0] = near[i];\n arr[1] = near[i + k];\n // System.out.println(arr[0].getX());\n // System.out.println(arr[1].getX());\n\n }\n }\n k++;\n }\n }\n return min;\n }",
"@Override\n public int compare(Slope s1, Slope s2){\n if(s2.deno * s1.nomi - s1.deno * s2.nomi < 0) return -1;\n else if(s2.deno * s1.nomi - s1.deno * s2.nomi > 0) return 1;\n else return 0;\n }",
"@Override\n\t\tpublic int compareTo(Pair o) {\n\t\t\tif (x == o.x) return y-o.y;\n\t\t\treturn o.x-x;\n\t\t}",
"private boolean isVerticalLines2points(Point p1, Point p2) {\n if (abs(p1.x - p2.x ) < 70 && p1.y != p2.y ) {\n\n return true;\n }\n return false;\n }",
"@Override\n\t\tpublic int compare(MapEntity o1, MapEntity o2) {\n\t\t\tfloat o1RenderY = o1.getCutOffY();\n\t\t\tfloat o2RenderY = o2.getCutOffY();\n\n\t\t\tfloat comparisonVal = o2RenderY - o1RenderY;\n\t\t\tif (comparisonVal < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (comparisonVal > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"public static void main(String[] args) {\n int x=20;\r\n \r\n int y=30;\r\n if (x<\r\n y) {\r\n System.out.println(x);\r\n System.out.println(y);\r\n System.out.println(\"hi\");\r\n\t}\r\n else {\r\n \t System.out.println(\"xequaly\");\r\n }\r\n \r\n\t}",
"@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }",
"public int compareTo(KeyPoint other) {\n if (this.x == other.x) {\n int sign = (x - rec.r < 0) ? -1 : 1;\n int sign2 = (other.x - other.rec.r < 0) ? -1 : 1;\n return Integer.compare(this.rec.h * sign, other.rec.h * sign2);\n }\n return Integer.compare(this.x, other.x);\n }",
"public boolean lessEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) <= (yRatio.numerator * x.denominator));\n }\n }\n }",
"@Override\r\n public int compare(Node x, Node y)\r\n {\n if (x.getD() < y.getD())\r\n {\r\n return -1;\r\n }\r\n else if (x.getD() > y.getD())\r\n {\r\n return 1;\r\n }\r\n return 0;\r\n }",
"public boolean lessThan(int y, int z){\n\t\treturn queueArray[y][0].compareTo(queueArray[z][0]) < 0;\n\t}",
"@Override\n public int compare(TuplePathCost tpc1, TuplePathCost tpc2) {\n if (tpc1.getCost().compareTo(tpc2.getCost()) < 0) return -1;\n // else if (tpc1.getCost() < tpc2.getCost()) return - 1;\n else if (tpc1.getCost().compareTo(tpc2.getCost()) > 0) return 1;\n else return 0;\n }",
"private double findYByX(double x, Point2D p1, Point2D p2) {\n \t\tdouble x1 = p1.getX();\n \t\tdouble y1 = p1.getY();\n \t\tdouble x2 = p2.getX();\n \t\tdouble y2 = p2.getY();\n \t\tdouble k = (y2-y1)/(x2-x1);\n \t\tdouble b = y1-k*x1;\n \t\treturn k*x+b;\n }",
"@Override\n public int compare(CostVector o1, CostVector o2) {\n int i = 0;\n while (i < o1.getCosts().length && o1.getCosts()[i] == o2.getCosts()[i]) {\n i++;\n }\n if (i != o1.getCosts().length) {\n return o1.getCosts()[i] > o2.getCosts()[i] ? 1 : -1;\n } else {\n return 0;\n }\n }",
"@Override\n\t\tprotected boolean lessThan(final Entry hitA, final Entry hitB) {\n\t\t\tassert hitA != hitB;\n\t\t\tassert hitA.mSlot != hitB.mSlot;\n\n\t\t\tfinal int c = mOneReverseMul * mFirstComparator.compare(hitA.mSlot, hitB.mSlot);\n\t\t\tif (c != 0) \n\t\t\t\treturn c > 0;\n\n\t\t\t\t// avoid random sort order that could lead to duplicates (bug #31241):\n\t\t\t\treturn hitA.getDoc() > hitB.getDoc();\n\t\t}",
"public int compare(Entity e0, Entity e1) { // compares 2 entities\r\n\t\t\tif (e1.y < e0.y) return +1; // If the y position of the first entity is less (higher up) than the second entity, then it will be moved up in sorting.\r\n\t\t\tif (e1.y > e0.y) return -1; // If the y position of the first entity is more (lower) than the second entity, then it will be moved down in sorting.\r\n\t\t\treturn 0; // ends the method\r\n\t\t}",
"static int ifEquals(int x, int y, int a, int b) { \n //return x==y?a:b; \n return onEqu1(x, y, a, b, ((x-y)-1)>>31);\n }",
"static Boolean lineBetween(int x1, int y1, int x2, int y2) {\n double m, b; // for line eqn.\n int maxV = Math.max( pgmInf.img[y1][x1], pgmInf.img[y2][x2] );\n int xmin = Math.min(x1, x2), xmax = Math.max(x1, x2);\n int ymin = Math.min(y1, y2), ymax = Math.max(y1, y2);\n\n if (x1 == x2) {\n // x = c\n for (int y=ymin ; y < ymax ; y++)\n if (pgmInf.img[y][x1] > maxV) return false;\n }\n else {\n // setup for y=mx + b form\n double top = (y1-y2), bot = (x1-x2);\n m = top / bot; \n\n if (m > -1 && m < 1) {\n // y = mx + b\n b = y1 - m * (double)x1;\n\n for (int x=xmin ; x < xmax ; x++) {\n int y = (int)Math.round( m * (double)x + b );\n if (pgmInf.img[y][x] > maxV ) return false;\n }\n }\n else {\n // x = my + b\n top = (x1-x2); bot = (y1-y2); \n m = top / bot; b = x1 - m * (double)y1;\n\n for (int y=ymin ; y < ymax ; y++) {\n int x = (int)Math.round( m* (double)y + b );\n if (pgmInf.img[y][x] > maxV) return false;\n }\n }\n }\n return true;\n }",
"private int slopeCompare(Pair oldp, Pair newp){\n\t\tif(oldp.getFirst().slopeTo(oldp.getSecond()) == newp.getFirst().slopeTo(newp.getSecond())){\n\t\t\tComparator<Point> cmp = oldp.getFirst().slopeOrder();\n\t\t\tif(newp.getFirst().compareTo(oldp.getFirst()) == 0 || newp.getSecond().compareTo(oldp.getSecond()) == 0 || cmp.compare(newp.getFirst(),newp.getSecond()) == 0){\n\t\t\t\tif(newp.getFirst().compareTo(oldp.getFirst()) <= 0 && newp.getSecond().compareTo(oldp.getSecond()) >= 0){\n\t\t\t\t\treturn 1;\t\t\n\t\t\t\t}\n\t\t\treturn 0;\t\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public int pointLineTest2(Point3D a, Point3D b) {\n int flag = this.pointLineTest(a,b);\n if(a._x < b._x ) {\n if(a._x<=_x && b._x>_x) {\n if (flag == LEFT) return DOWN;\n if (flag == RIGHT) return UP;\n }\n }\n else\n if(a._x > b._x ) {\n if(b._x<=_x && a._x>_x) {\n if (flag == RIGHT) return DOWN;\n if (flag == LEFT) return UP;\n }\n }\n return flag;\n }",
"public static S2Point getClosestPoint(S2Point x, S2Point a, S2Point b) {\n return getClosestPoint(x, a, b, S2.robustCrossProd(a, b));\n }",
"@Override\n public boolean contain(int x, int y) {\n return(x>=this.x && y>=this.y && x<=this.x+(int)a && y<=this.y+(int)b);\n }",
"public int compare(HousingLocation h1, HousingLocation h2) {\n\t\tint h1Score = scoreCalc(h1);\n\t\tint h2Score = scoreCalc(h2);\n\t\tif(h1Score < h2Score) {\n\t\t\treturn -1;\n\t\t} else if(h1Score == h2Score) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn 1;\n\t}",
"private static int peakY(int x, int y, int[][] nums) {\n if (y > 0 && nums[y][x] < nums[y - 1][x])\n return -1;\n if (y < nums.length - 1 && nums[y][x] < nums[y + 1][x])\n return 1;\n return 0;\n }",
"@Test\n\tpublic void test2PointsParallelYParallel() {\n\t\tLine2D line1 = new Line2D(new Point2D(11.2, 1), new Point2D(11.2, 5));\n\t\tLine2D line2 = new Line2D(new Point2D(21.2, 100), new Point2D(21.2, -55));\n\t\t\n\t\tAssert.assertTrue(\"不能正常处理两点式直线平行于Y轴的情况\", line1.isParallel(line2));\n\t}",
"private boolean overlaps(Point2D p0, Point2D p1)\n {\n return Math.abs(p0.getX() - p1.getX()) < 0.001 && Math.abs(p0.getY() - p1.getY()) < 0.001;\n }",
"public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }",
"public static boolean compare_data(short[] x, short[] y) {\n\t\tfor (int i = 0;i < dims;i++) {\n\t\t\tif (i != dims-1){ //compare w.r.t. all except SA!!!\n\t\t\t\tif (x[dimension[i]] > y[dimension[i]]) {\n\t\t\t\t\t/*if (map[x][dimension[0]]<map[y][dimension[0]])\n\t\t\t\t\t System.out.println(\"oops\");*/\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (x[dimension[i]] < y[dimension[i]]) {\n\t\t\t\t\t/*if (map[x][dimension[0]]>map[y][dimension[0]])\n\t\t\t\t\t System.out.println(\"oops\");*/\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/*if (map[x][dimension[0]]>map[y][dimension[0]])\n\t\t\tSystem.out.println(\"oops\");*/\n\t\treturn false;\n\t}",
"public static int compare(double obj1,double obj2){\n\t\tif(obj1 == obj2) { return 0; }\n\t\telse if(obj1 > obj2){\n\t\t\treturn 1;\n\t\t} else{ return -1; }\n\t}",
"public static int min(int x, int y) {\r\n\t\tif(x < y) return x;\r\n\t\treturn y;\r\n\t}",
"private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}",
"public double getYOverlap(double oldy1, double oldy, double y1, double y2)\r\n {\r\n\r\n if (oldy1 > (this.y + height))\r\n {\r\n if (y1<(this.y + height))\r\n {\r\n //System.out.println((this.y + height)-y1);\r\n return (this.y + height)-y1;\r\n }\r\n else\r\n return 0;\r\n }\r\n else\r\n {\r\n if (y2 > this.y)\r\n return this.y - y2;\r\n else\r\n return 0;\r\n\r\n }\r\n }",
"public static boolean pointOnLine(int x1, int y1, int x2, int y2, int px, int py, int EPSILON) {\n\t\t// ..a.. ..b..\n\t\t// start |------P-----| end\t=> a+b = len\n\t\t//\t\t\t...len...\n\t\tint a = dist(x1, y1, px, py);\n\t\tint b = dist(x2, y2, px, py);\n\t\tint l = dist(x1, y1, x2, y2);\n\t\t\n\t\tint ab = a + b;\n\t\tint diff = Math.abs(l-ab);\n\t\t\n\t\treturn diff <= (EPSILON*EPSILON);\n\t}",
"@Override\n\tpublic int compare(GridPoint o1, GridPoint o2) {\n\t\treturn o1.getLesson()-o2.getLesson();\n\t}",
"@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // For A not to intersect B (where each loop interior is defined to be\n // its left side), the CCW edge order around ab1 must be a0 b2 b0 a2.\n // Note that it's important to write these conditions as negatives\n // (!OrderedCCW(a,b,c,o) rather than Ordered(c,b,a,o)) to get correct\n // results when two vertices are the same.\n return (orderedCCW(a0, b2, b0, ab1) && orderedCCW(b0, a2, a0, ab1) ? 0 : -1);\n }",
"public static void main(String[] args) {\n \r\n int x;\r\n int y;\r\n x= 40;\r\n y= 60;\r\n if(x<y) {\r\n\t System.out.println(\"y is bigger\");\t\r\n\t\r\n\t} \r\n\t}",
"@Override\r\n public int compare(Pair<Integer, Double> o1, Pair<Integer, Double> o2) {\r\n return o2.getValue().compareTo(o1.getValue());\r\n }",
"public int compare(Key<Double, Double> a, Key<Double, Double> b){\n\t\t\tif (a.getFirst() < b.getFirst()){\n\t\t\t\treturn -1;\n\t\t\t} else if (a.getFirst() == b.getFirst()){\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}",
"private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }",
"public static boolean a_lt_b(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"a_lt_b参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tint result = a.compareTo(b);\n\t\tboolean c = result == -1;\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tLOG.debug(\"[\" + a + \" < \" + b + \" is \" + c + \"]\");\n\t\t}\n\t\treturn c;\n\t}",
"final boolean operator_less(final Sample x) {\n for (int i = 0; i < positive_features.size(); i++) {\n if (i >= x.positive_features.size()) return false;\n int v0 = positive_features.get(i);\n int v1 = x.positive_features.get(i);\n if (v0 < v1) return true;\n if (v0 > v1) return false;\n }\n return false;\n }",
"protected static Set<Point2D.Float> getSortedPointSet(\n\t\t\tList<Point2D.Float> points) {\n\n\t\tfinal Point2D.Float lowest = getLowestPoint(points);\n\n\t\tTreeSet<Point2D.Float> set = new TreeSet<Point2D.Float>(\n\t\t\t\tnew Comparator<Point2D.Float>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(Point2D.Float a, Point2D.Float b) {\n\n\t\t\t\t\t\tif (a == b || a.equals(b)) {\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// use longs to guard against int-underflow\n\t\t\t\t\t\tdouble thetaA = Math.atan2((long) a.y - lowest.y,\n\t\t\t\t\t\t\t\t(long) a.x - lowest.x);\n\t\t\t\t\t\tdouble thetaB = Math.atan2((long) b.y - lowest.y,\n\t\t\t\t\t\t\t\t(long) b.x - lowest.x);\n\n\t\t\t\t\t\tif (thetaA < thetaB) {\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t} else if (thetaA > thetaB) {\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// collinear with the 'lowest' point, let the point\n\t\t\t\t\t\t\t// closest to it come first\n\n\t\t\t\t\t\t\t// use longs to guard against int-over/underflow\n\t\t\t\t\t\t\tdouble distanceA = Math\n\t\t\t\t\t\t\t\t\t.sqrt((((long) lowest.x - a.x) * ((long) lowest.x - a.x))\n\t\t\t\t\t\t\t\t\t\t\t+ (((long) lowest.y - a.y) * ((long) lowest.y - a.y)));\n\t\t\t\t\t\t\tdouble distanceB = Math\n\t\t\t\t\t\t\t\t\t.sqrt((((long) lowest.x - b.x) * ((long) lowest.x - b.x))\n\t\t\t\t\t\t\t\t\t\t\t+ (((long) lowest.y - b.y) * ((long) lowest.y - b.y)));\n\n\t\t\t\t\t\t\tif (distanceA < distanceB) {\n\t\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn 1;\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\tset.addAll(points);\n\n\t\treturn set;\n\t}",
"public int compare(PartialAlignment x, PartialAlignment y) {\n\t\t\tint matchDiff = (y.matches1 + y.matches2)\n\t\t\t\t\t- (x.matches1 + x.matches2);\n\t\t\tif (matchDiff > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (matchDiff < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t// Otherwise fewer chunks wins\n\t\t\tint chunkDiff = x.chunks - y.chunks;\n\t\t\tif (chunkDiff != 0)\n\t\t\t\treturn chunkDiff;\n\t\t\t// Finally shortest distance wins\n\t\t\treturn x.distance - y.distance;\n\t\t}",
"public int compare(GridCell a, GridCell b) {\n\t\treturn FloatUtil.compare(mapInfo.getHCost(a), mapInfo.getHCost(b));\n\t}",
"private boolean lineline(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4){\n float uA = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n float uB = ((x2-x1)*(y1-y3) - (y2-y1)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\n return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;\n }",
"@Override\n public int compareTo(Point o) {\n return this.id.compareTo(o.id);\n }",
"public boolean isOver(int x, int y) {\n // if the point is not within any of the edges of the image, we return false\n if ((y < this.y) || (y > (this.y + image.height))\n || ((x < this.x) || (x > (this.x + image.width)))) {\n return false;\n }\n\n // otherwise, (it is somewhere over the image) we return true\n return true;\n\n }",
"public static void findClosestPair(XYPoint points[], boolean print)\n\t{\n\t\tif(points.length==1){\n\t\t\treturn;\n\t\t}\n\t\tdouble mindist = INF;\n\t\tdouble dist = 0.0;\n\t\tint npoints=points.length;\n\t\tXYPoint point1 = new XYPoint();\n\t\tXYPoint point2 = new XYPoint();\n\t\tint i=0;\n\t\twhile(i<npoints-1){ //XYPoint[i]\n\t\t\t\tint k = i+1;\n\t\t\t\twhile (k<npoints){ //XYPoint[j]\n\t\t\t\t\tdist=points[i].dist(points[k]);\n\t\t\t\t\tif(dist<mindist){\n\t\t\t\t\t\tmindist=dist;\n\t\t\t\t\t\tpoint1=points[i];\n\t\t\t\t\t\tpoint2=points[k];\n\t\t\t\t\t}\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t}\n\t\tif (print){\n\t\t\tSystem.out.println(\"NAIVE \" + point1+\" \"+point2+\" \"+mindist);\n\t\t}\n\n\t}",
"private boolean close(LatLngPoint a, LatLngPoint b) {\n float lat_actual = Math.abs(a.lat - b.lat);\n float lng_actual = Math.abs(a.lng - b.lng);\n assertTrue(lat_actual < 1);\n assertTrue(lng_actual < 1);\n return true;\n }",
"public double pointOnLineT(int x, int y)\r\n {\r\n if (x == c0.x && y == c0.y)\r\n {\r\n return 0;\r\n }\r\n if (x == c1.x && y == c1.y)\r\n {\r\n return 1;\r\n }\r\n \r\n int dx = c1.x - c0.x;\r\n int dy = c1.y - c0.y;\r\n \r\n if (Math.abs(dx) > Math.abs(dy))\r\n {\r\n return (x - c0.x) / (double)dx;\r\n }\r\n else\r\n {\r\n return (y - c0.y) / (double)dy;\r\n }\r\n }",
"public int compare(LineString s1, LineString s2) {\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\t//prefer lines that end higher than they start\n\t\t\t\t\t\tboolean endsHigher1 = s1.getCoordinateN(0).getZ() <= s1.getCoordinateN(s1.getNumPoints()-1).getZ();\n\t\t\t\t\t\tboolean endsHigher2 = s2.getCoordinateN(0).getZ() <= s2.getCoordinateN(s2.getNumPoints()-1).getZ();\n\t\t\t\t\t\tif (endsHigher1 != endsHigher2) {\n\t\t\t\t\t\t\treturn endsHigher1 ? -1 : 1;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble slope1 = (SpatialUtils.getAverageElevation(s1) - s1.getCoordinateN(0).getZ()) / s1.getLength();\n\t\t\t\t\t\t\t\tdouble slope2 = (SpatialUtils.getAverageElevation(s2) - s2.getCoordinateN(0).getZ()) / s2.getLength();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn slope1 > slope2 ? -1 \n\t\t\t\t\t\t\t\t\t\t : slope1 < slope2 ? 1 \n\t\t\t\t\t\t\t\t\t : 0;\n\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 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\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public boolean contains2(Point p) {\n int crossings = 0;\n for (int i = 0; i < N; i++) {\n int j = i + 1;\n boolean cond1 = (a[i].y <= p.y) && (p.y < a[j].y);\n boolean cond2 = (a[j].y <= p.y) && (p.y < a[i].y);\n if (cond1 || cond2) {\n // need to cast to double\n if (p.x < (a[j].x - a[i].x) * (p.y - a[i].y) / (a[j].y - a[i].y) + a[i].x)\n crossings++;\n }\n }\n if (crossings % 2 == 1) return true;\n else return false;\n }"
]
| [
"0.6869067",
"0.68122935",
"0.6804685",
"0.6762705",
"0.66226184",
"0.66086364",
"0.6492272",
"0.6447281",
"0.6352061",
"0.6341507",
"0.63310987",
"0.6276339",
"0.62569326",
"0.6249785",
"0.6233951",
"0.62111664",
"0.6174498",
"0.61285555",
"0.6111189",
"0.61003995",
"0.59673846",
"0.59597945",
"0.5950006",
"0.5899427",
"0.58960944",
"0.58792347",
"0.5818166",
"0.578441",
"0.5775239",
"0.57266533",
"0.57132965",
"0.5707931",
"0.5705394",
"0.57035756",
"0.5691911",
"0.5683599",
"0.56822884",
"0.56465864",
"0.5607249",
"0.56022537",
"0.55894154",
"0.5578954",
"0.5567995",
"0.555979",
"0.55463964",
"0.55176014",
"0.5516101",
"0.55042475",
"0.54920596",
"0.5479601",
"0.54757",
"0.5445676",
"0.54223204",
"0.5410847",
"0.540825",
"0.5407506",
"0.5407489",
"0.54050785",
"0.53992105",
"0.5397331",
"0.5393642",
"0.5384561",
"0.53839576",
"0.5381316",
"0.5377334",
"0.5374927",
"0.5369523",
"0.5348818",
"0.5332252",
"0.53321576",
"0.5331829",
"0.5303613",
"0.5303507",
"0.52909565",
"0.5285495",
"0.5280414",
"0.5278988",
"0.5273027",
"0.52706075",
"0.5262829",
"0.52627337",
"0.52408946",
"0.5224229",
"0.5199055",
"0.5198675",
"0.5195308",
"0.5186348",
"0.51802737",
"0.51688856",
"0.5155507",
"0.5151361",
"0.51341105",
"0.5130624",
"0.5126096",
"0.5118061",
"0.51049113",
"0.50994074",
"0.50921726",
"0.5089555",
"0.5087346"
]
| 0.6419028 | 8 |
Compares two points by the slope they make with this point. The slope is defined as in the slopeTo() method. | public Comparator<Point> slopeOrder()
{
return new Comparator<Point>()
{
@Override
public int compare(Point o1, Point o2)
{
if (slopeTo(o1) < slopeTo(o2)) return -1;
else if (slopeTo(o1) == slopeTo(o2)) return 0;
else return 1;
}
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double slopeTo(Point that) {\n// System.out.printf(\"in slope %d %d %d %d\\n\", this.x , this.y, that.x, that.y);\n if (this.compareTo(that) == 0)\n return Double.NEGATIVE_INFINITY;\n if (this.x == that.x)\n return Double.POSITIVE_INFINITY;\n if (this.y == that.y)\n return 0.0;\n// System.out.println(\"int point :\" + (this.y - that.y) * 1.0 / (this.x - that.x));\n return (this.y - that.y) * 1.0 / (this.x - that.x);\n }",
"private int slopeCompare(Pair oldp, Pair newp){\n\t\tif(oldp.getFirst().slopeTo(oldp.getSecond()) == newp.getFirst().slopeTo(newp.getSecond())){\n\t\t\tComparator<Point> cmp = oldp.getFirst().slopeOrder();\n\t\t\tif(newp.getFirst().compareTo(oldp.getFirst()) == 0 || newp.getSecond().compareTo(oldp.getSecond()) == 0 || cmp.compare(newp.getFirst(),newp.getSecond()) == 0){\n\t\t\t\tif(newp.getFirst().compareTo(oldp.getFirst()) <= 0 && newp.getSecond().compareTo(oldp.getSecond()) >= 0){\n\t\t\t\t\treturn 1;\t\t\n\t\t\t\t}\n\t\t\treturn 0;\t\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public double slopeTo(Point that) {\n int x0 = this.x;\n int x1 = that.x;\n int y0 = this.y;\n int y1 = that.y;\n \n if (x0 == x1 && y0 == y1) {\n return Double.NEGATIVE_INFINITY;\n }\n \n if (y0 == y1) {\n return 0.0;\n }\n \n if (x0 == x1) {\n return Double.POSITIVE_INFINITY;\n }\n \n return (double)(y1 - y0) / (double)(x1 - x0);\n }",
"public double slopeTo(Point that) {\n if (this.compareTo(that) == 0)\n return Double.NEGATIVE_INFINITY;\n if (this.x == that.x)\n return Double.POSITIVE_INFINITY;\n if (this.y == that.y)\n return 0.0;\n double result = (double) (that.y - this.y) / (double) (that.x - this.x);\n return result;\n }",
"private float calculateRoadSlope(Point point1, Point point2) {\n float slopeSum = 0;\n int x1 = point1.getX();\n int y1 = point1.getY();\n int x2 = point2.getX();\n int y2 = point2.getY();\n pastSlopes.remove(0);\n pastSlopes.add((float) (y1 - y2) / (x1 - x2));\n\n // Average the slopes in pastSlopes\n for (Float slope : pastSlopes) {\n slopeSum += slope;\n }\n float slope = slopeSum / pastSlopes.size();\n return slope;\n }",
"public double slopeTo(Point that) {\n if (that.x == x && that.y == y) return Double.NEGATIVE_INFINITY;\n else if (that.x == x && that.y != y) return Double.POSITIVE_INFINITY;\n else if (that.x != x && that.y == y) return +0.0;\n\n return (double) (that.y - y) / (that.x - x);\n }",
"public double slopeTo(Point that) {\n if (that.y == this.y && that.x == this.x) return Double.NEGATIVE_INFINITY;\n if (that.y == this.y) return 0.0;\n if (that.x == this.x) return Double.POSITIVE_INFINITY;\n else return (double) (that.y - this.y)/ (that.x - this.x);\n }",
"public float slope(int x1,int y1,int x2,int y2){\n return ((float)y2-y1)/(x2-x1);\n }",
"public Double slope() throws VerticalLineRuntimeException {\n if(this.isVertical()) \n throw new VerticalLineRuntimeException(\n \"You can't compute the slope of a vertical line.\");\n else \n return((point2.getSecond()-point1.getSecond())/\n (point2.getFirst()-point1.getFirst()));\n }",
"public double slopeTo(Point that) {\r\n\t\tdouble subX = (that.x - this.x);\r\n\t\tdouble subY = (that.y - this.y);\r\n\r\n\t\tif(subX == 0 && subY == 0) return Double.NEGATIVE_INFINITY;\r\n\t\tif(subX == 0) return Double.POSITIVE_INFINITY;\r\n\t\tif(subY == 0) return 0;\r\n return subY / subX;\r\n }",
"private double slopeBetweenTwoCircleOrigins(Circle other) {\n double y = origin.getY() - other.origin.getY();\n double x = origin.getX() - other.origin.getX();\n if (x == 0 && y != 0) {\n return Integer.MAX_VALUE;\n }\n return y / x;\n }",
"public double slope(){\n double x = getStart().getXco();\n double x1 = end.getXco();\n double y = getStart().getYco();\n double y1 = end.getYco();\n double num = y1 - y;\n double den = x1 -x;\n\n return num/den;\n }",
"public static double slopeOfLine(double x1, double y1, double x2, double y2) {\n double slope = (y2 - y1) / (x2 - x1);\n slope = (double) Math.round(slope * 100) / 100;\n return slope;\n }",
"public double getSlope(double x1, double y1, double x2, double y2) {\n // slope = (|y2 - y1|) / (|x2 - x1|)\n double slope = Math.abs(y2 - y1) / Math.abs(x2 - x1);\n return slope;\n }",
"@Override\n public int compare(Slope s1, Slope s2){\n if(s2.deno * s1.nomi - s1.deno * s2.nomi < 0) return -1;\n else if(s2.deno * s1.nomi - s1.deno * s2.nomi > 0) return 1;\n else return 0;\n }",
"public Double getSlope() {\n\t\tif( slope == null ) {\n\t\t\tslope = computeSlope( p1.x, p1.y, p2.x, p2.y );\n\t\t}\n\t\treturn slope;\n\t}",
"public static void main(String[] args)\n {\n Point p1 = new Point(10, 0);\n Point p2 = new Point(0, 10);\n Point p3 = new Point(3, 7);\n Point p4 = new Point(7, 3);\n Point p5 = new Point(20, 21);\n Point p6 = new Point(3, 4);\n Point p7 = new Point(14, 15);\n Point p8 = new Point(6, 7);\n\n Point[] arr = new Point[8];\n arr[0] = p1;\n arr[1] = p2;\n arr[2] = p3;\n arr[3] = p4;\n arr[4] = p5;\n arr[5] = p6;\n arr[6] = p7;\n arr[7] = p8;\n\n System.out.println(\"Before sorting:\");\n for (Point i : arr)\n {\n System.out.println(i.toString());\n }\n\n Arrays.sort(arr, p1.slopeOrder());\n\n System.out.println(\"After sorting:\");\n for (Point i : arr)\n {\n System.out.println(i.toString());\n }\n\n double[] slopes = new double[8];\n Point pt = p1;\n slopes[0] = pt.slopeTo(p2);\n slopes[1] = pt.slopeTo(p3);\n slopes[2] = pt.slopeTo(p4);\n slopes[3] = pt.slopeTo(p5);\n slopes[4] = pt.slopeTo(p6);\n slopes[5] = pt.slopeTo(p7);\n slopes[6] = pt.slopeTo(p8);\n\n System.out.println(\"Slope values, initial:\");\n for (double d : slopes)\n {\n System.out.println(d);\n }\n\n for (int i = 0; i < 8; ++i)\n {\n slopes[i] = pt.slopeTo(arr[i]);\n }\n\n System.out.println(\"Slope values, final:\");\n for (double d : slopes)\n {\n System.out.println(d);\n }\n }",
"public double getSlope( ){\n if (x1 == x0){\n throw new ArithmeticException();\n }\n\n return (y1 - y0)/(x1 - x0);\n }",
"static double slope(Line line) {\n return (line.b == 1) ? -line.a : INF;\n }",
"public double slope(double X) {\r\n double slope; //double slope is created which will be retruned\r\n double deltaX = 0.0000000001; //slope equation is (x2-x1)/(y2-y1).\r\n double yInitial = evaluate(X - 0.00000000005);\r\n double yFinal = evaluate(X + 0.00000000005);\r\n double deltaY = yFinal - yInitial; \r\n slope = deltaY/deltaX; // slope equation represented in code.\r\n return slope; \r\n\t}",
"public static Double computeSlope( final double x1, final double y1, final double x2, final double y2 ) {\n\t\t// equation: u = ( y2 - y1 )/( x2 - x1 )\n\t\tfinal double rise = ( y2 - y1 );\n\t\tfinal double run = ( x2 - x1 );\n\t\treturn ( run != 0 ) ? rise / run : NaN;\n\t}",
"public Comparator<Point> slopeOrder() {\n /* YOUR CODE HERE */\n return new SlopeOrder();\n }",
"public Segments(Point[] points) { //1 slopeTo\n double slope = points[points.length - 1].slopeTo(points[0]);\n if (Double.compare(slope ,0) < 0) {\n left = points[points.length - 1];\n right = points[0];\n } else { //>=\n right = points[points.length - 1];\n left = points[0];\n }\n }",
"static Line pointSlopeToLine(PointDouble p, double slope) {\n Line line = new Line();\n line.a = -slope; // always -slope TODO: solve case slope=INFINITY\n line.b = 1; // always 1\n line.c = -((line.a * p.x) + (line.b * p.y));\n return line;\n }",
"public static void main(String[] args) {\n // Create a scanner object \n Scanner input = new Scanner(System.in);\n \n // Prompt the user to enter the coordinates for 2 points \n System.out.print(\"Enter the coordinates for two points: \");\n double x1 = input.nextDouble();\n double y1 = input.nextDouble();\n double x2 = input.nextDouble();\n double y2 = input.nextDouble();\n \n// Background calculation for slope m and vertical intercept b\n double m = (y1-y2)/(x1-x2);\n double b = y1-m*x1;\n\n// Display the results\n if (m==1 && b==0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = x\");\n if (m==1 && b!=0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = x+\"+ b+\"\");\n if (m!=1 && b==0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = \"+ m +\"x\");\n if (m!=1 && b!=0)\n System.out.println(\"The line equation for two points (\"+x1+\", \"+y1+\") and (\"+x2+\", \"+y2+\") is y = \"+ m +\"x+\"+ b+\"\");\n }",
"private Point getEndPoint(double slope, int x, int y){\n Point p = new Point();\n int iteration = 0;\n \n return p;\n }",
"private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}",
"@Test\n\tpublic void lineGetSlopeTest() {\n\n\t\tassertEquals(1.0d, firstLine.getSlope(), .0001d);\n\t\tassertNotEquals(2.0d, firstLine.getSlope(), .0001d);\n\t}",
"public int compareTo(PointDouble other) { // override less than operator\n if (Math.abs(x - other.x) > EPS) // useful for sorting\n return (int)Math.ceil(x - other.x); // first: by x-coordinate\n else if (Math.abs(y - other.y) > EPS)\n return (int)Math.ceil(y - other.y); // second: by y-coordinate\n else\n return 0; // they are equal\n }",
"public static double slope(Point p, Point q){\n\t\tif ((p.x - q.x) == 0 ) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn Math.abs((double)(p.y - q.y)/(double)(p.x - q.x));\n\t}",
"public double pointOnLineT(int x, int y)\r\n {\r\n if (x == c0.x && y == c0.y)\r\n {\r\n return 0;\r\n }\r\n if (x == c1.x && y == c1.y)\r\n {\r\n return 1;\r\n }\r\n \r\n int dx = c1.x - c0.x;\r\n int dy = c1.y - c0.y;\r\n \r\n if (Math.abs(dx) > Math.abs(dy))\r\n {\r\n return (x - c0.x) / (double)dx;\r\n }\r\n else\r\n {\r\n return (y - c0.y) / (double)dy;\r\n }\r\n }",
"private Line linearRegression(ArrayList<Point> points) {\n double sumx = 0.0, sumz = 0.0, sumx2 = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n sumx += curPoint.x;\n sumz += curPoint.z;\n sumx2 += curPoint.x*curPoint.x;\n }\n\n double xbar = sumx/((double) points.size());\n double zbar = sumz/((double) points.size());\n\n double xxbar = 0.0, xzbar = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n xxbar += (curPoint.x - xbar) * (curPoint.x - xbar);\n xzbar += (curPoint.x - xbar) * (curPoint.z - zbar);\n }\n\n double slope = xzbar / xxbar;\n double intercept = zbar - slope * xbar;\n\n return new Line(slope, intercept);\n }",
"protected Double getSlope(Line2D line) {\n\t\tdouble x1, y1, x2, y2;\n\t\tif (line.getX1() < line.getX2()) {\n\t\t\tx1 = line.getX1();\n\t\t\tx2 = line.getX2();\n\t\t\ty1 = line.getY1();\n\t\t\ty2 = line.getY2();\n\t\t} else {\n\t\t\tx1 = line.getX2();\n\t\t\tx2 = line.getX1();\n\t\t\ty1 = line.getY2();\n\t\t\ty2 = line.getY1();\n\t\t}\n\t\tif (x1 == x2)\n\t\t\treturn Double.POSITIVE_INFINITY;\n\t\tif (y1 == y2)\n\t\t\treturn new Double(0);\n\t\telse\n\t\t\treturn (y2 - y1) / (x2 - x1);\n\t}",
"public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);",
"public static void main(String[] args) {\n Point a = new Point(46, 65);\n Point b = new Point(40, 265);\n// Point c = new Point(20, 20);\n// Point d = new Point(21, 211);\n// Point e = new Point(2, 221);\n// Point f = new Point(23, 21);\n// Point g = new Point(-2, 21);\n// Point h = new Point(212, 22);\n//// StdDraw.setPenRadius(0.05);\n//// StdDraw.setPenColor(StdDraw.BLUE);\n//// StdDraw.point(1.0, 2.0);\n//// StdDraw.setCanvasSize(720, 720);\n//// StdDraw.setScale(-10, 10);\n//\n System.out.println(\"Compare : \"+ a.slopeTo(b));\n//\n//// a.draw();\n//// b.draw();\n//// c.draw();\n//// d.draw();\n//// e.draw();\n//// f.draw();\n//// g.draw();\n//// h.draw();\n//// a.drawTo(b);\n//\n//// a.draw();\n\n }",
"private double[] calculateLineEquation(Point p1, Point p2) {\n double m = ((double) p2.y - p1.y) / (p2.x - p1.x);\n double c = p1.y - (m * p1.x);\n return new double[]{m, c};\n }",
"public double lineSlope() {\r\n //The formula to calculate the gradient.\r\n double slope;\r\n double dy = this.start.getY() - this.end.getY();\r\n double dx = this.start.getX() - this.end.getX();\r\n // line is vertical\r\n if (dx == 0 && dy != 0) {\r\n slope = Double.POSITIVE_INFINITY;\r\n return slope;\r\n }\r\n // line is horizontal\r\n if (dy == 0 && dx != 0) {\r\n slope = 0;\r\n return slope;\r\n }\r\n slope = dy / dx;\r\n return slope;\r\n }",
"private void comparePoints(double[] firstP, double[] secondP) {\n assertEquals(firstP.length, secondP.length);\n\n for(int j=0; j<firstP.length; j++) {\n assertEquals(\"j = \"+j, firstP[j], secondP[j], TOLERANCE);\n }\n }",
"public double lineLenght() {\n\t\tdouble xdif = p1.getX() - p2.getX();\n\t\tdouble ydif = p1.getY() - p2.getY();\n\t\treturn Math.sqrt(xdif*xdif+ydif*ydif);\t\n\t\t\t\n\t}",
"public static void main(String[] args) {\n \n Scanner readObject = new Scanner(System.in);\n double X1, X2, Y1, Y2;\n \n System.out.print(\"Enter Point X1\"); //prompt the user to enter Coordinate X1\n X1 = readObject.nextDouble(); // \n System.out.print(\"Enter Point X2 \"); //prompt the user to enter Coordinate X2\n X2 = readObject.nextDouble();\n System.out.print(\"Enter Point Y1 \");\n Y1 = readObject.nextDouble(); // prompt the user to enter Coordinate Y1\n System.out.print(\"Enter Point Y2 \");\n Y2 = readObject.nextDouble(); // prompt the user to enter Coordinate Y2\n double DistanceBetweenPointX = X2 -X1 ; // Determine the distance between point X\n double DistanceBetweenPointY = Y2-Y1; // Determine the distance between point Y\n double Slope = (DistanceBetweenPointY / DistanceBetweenPointX);\n System.out.println(\" Point A on a coordinate plane is (\" + X1 + \",\" + Y1 + \"). Point B on a coordinate plane is (\" + X2 + \",\" + Y2 + \").\");\n System.out.println( \"The distance between point A and B is (\" + DistanceBetweenPointX + \", \" + DistanceBetweenPointY+ \").\");\n System.out.println(\"The slope of the line is (\" + Slope + \").\");\n \n \n }",
"@Override\n public int compareTo(DoubleVector2 o) {\n return (getVectorOne().getSteps() + getVectorTwo().getSteps()) - (o.getVectorOne().getSteps() + o.getVectorTwo().getSteps());\n }",
"private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}",
"public void setLine(int x1, int y1, int x2, int y2){\n\t\tint slope = 0;\n\t\tboolean vert = true;\n\t\t\n\t\tif((x2 - x1) != 0){\n\t\t\tslope = (y2 - y1) / (x2 - x1);\n\t\t\tvert = false;\n\t\t}\n\t\tif(!vert){\n\t\t\tfor(int a = 0; a < Math.abs(x2 - x1) + 1; a++){\n\t\t\t\tif(a >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tif((x2 - x1) < 0){\n\t\t\t\t\tpathX[a] = x1 - a;\n\t\t\t\t\tpathY[a] = y1 - (a * slope);\n\t\t\t\t}\n\t\t\t\telse if((x2 - x1) > 0){\n\t\t\t\t\tpathX[a] = x1 + a;\n\t\t\t\t\tpathY[a] = y1 + (a * slope);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(vert && (y2 - y1) < 0){\n\t\t\tfor(int b = 0; b < Math.abs(y2 - y1) + 1; b++){\n\t\t\t\tif(b >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tpathX[b] = x1;\n\t\t\t\tpathY[b] = y1 - b;\n\t\t\t}\n\t\t}\n\t\telse if(vert && (y2 - y1) > 0){\n\t\t\tfor(int b = 0; b < Math.abs(y2 - y1) + 1; b++){ \n\t\t\t\tif(b >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tpathX[b] = x1;\n\t\t\t\tpathY[b] = y1 + b;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn;\n\t\t\n\t}",
"public int compareTo(Point that) {\n// System.out.printf(\"in compare %d %d %d %d\\n\", this.x , this.y, that.x, that.y);\n if (that.y == this.y && that.x == this.x)\n return 0;\n else if (that.y == this.y)\n return this.x - that.x;\n return this.y - that.y;\n }",
"public SlopeLinkMatching(SimpleFeature[] slopes, SimpleFeature[] lifts) {\r\n\t\tsuper(slopes, lifts);\r\n\t\t\r\n\t\tthis.slopeThreshold = StartConfiguration.getInstance().getSlope_endpoint_dist() + 0.5; \r\n\t\tthis.midPointThreshold = StartConfiguration.getInstance().getSlope_midpoint_dist()[1] + 0.5;\r\n\t\tthis.init();\r\n\t}",
"public static double calculateDistance(Point point1, Point point2){\n\n if (point1.getX() > point2.getX() || point1.getY() > point2.getY()){\n Point tmp = point1;\n point1 = point2;\n point2 = tmp;\n }\n\n double distance = Math.abs(Math.sqrt((point2.x - point1.x) * (point2.x - point1.x) + (point2.y - point1.y) * (point2.y - point1.y)));\n\n return distance;\n //return Math.ceil(distance * scale) / scale;\n }",
"private double getWeight(LatLng point1, LatLng point2) {\n\t\tdouble distance = (point1.latitude - point2.latitude) * (point1.latitude - point2.latitude )\n\t\t\t\t+ (point1.longitude - point2.longitude) * (point1.longitude - point2.longitude);\n\t\tSystem.out.print(String.valueOf(distance));\n\t\treturn distance;\n\t}",
"public int differencePointsPow(){\n return (int) Math.pow(differencePoints(),2);\n }",
"private double d(Point a, Point b){\n\t\treturn Math.sqrt(Math.pow(b.getX()-a.getX(),2) + Math.pow(a.getY() - b.getY(), 2));\r\n\t}",
"public int compareTo(Point that) {\n if (this.y < that.y) return -1;\n if (this.y > that.y) return +1;\n if (this.x < that.x) return -1;\n if (this.x > that.x) return +1;\n else return 0;\n }",
"public int compareTo(Point2D that) {\r\n if (this.y < that.y) return -1;\r\n if (this.y > that.y) return +1;\r\n if (this.x < that.x) return -1;\r\n if (this.x > that.x) return +1;\r\n return 0;\r\n }",
"public static EquationExpression dist2(final EquationPoint a,\n\t\t\tfinal EquationPoint b) {\n\t\tEquationExpression x = diff(a.getXExpression(), b.getXExpression());\n\t\tEquationExpression y = diff(a.getYExpression(), b.getYExpression());\n\t\treturn sum(times(x, x), times(y, y));\n\t}",
"public static EquationExpression dist2(final EquationPoint a, final EquationPoint b) {\n EquationExpression x = diff(a.getXExpression(), b.getXExpression());\n EquationExpression y = diff(a.getYExpression(), b.getYExpression());\n return sum(times(x,x), times(y,y));\n }",
"public double getMaxSlope(Coordinate a, Coordinate b) {\n\t\tdouble maxVertDiff = getMaxDiffVertical(a, b);\n\t\tdouble minHorizDiff = getMinDiffHorizontal(a, b);\n\t\tif (minHorizDiff == 0) {\n\t\t\tminHorizDiff = 0.0000001; //a very small number so we don't have to divide by zero\n\t\t}\n\t\tdouble maxSlope = maxVertDiff / minHorizDiff;\n\t\tSystem.out.println(a+\", \"+b+\", \"+maxSlope);\n\t\treturn maxSlope;\n\t}",
"protected List<Candidate> getSlopeCandidates() {\r\n\t\t//method parameter declaration\r\n\t\tString de_name, xml_gid_in = null, xml_gid_out = null;\r\n\t\t\r\n\t\t//metaData logging\r\n\t\tLogger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.INFO, \"Features_in size is: \" + this.getFeatures_in().length);\r\n\t\tSystem.out.println(\"max allowed end-point distance is: \" + this.slopeThreshold);\r\n\t\tSystem.out.println(\"max allowed mid-point distance is: \" + midPointThreshold);\r\n\t\tSystem.out.println(\"max allowed height difference for slope Links is: \" + (StartConfiguration.getInstance().getSlope_heights()[5] + 0.5));\r\n\t\tList<SimpleFeature> slopes_out = new ArrayList<SimpleFeature>(Arrays.asList(this.getFeatures_in()));\r\n\t\tList<Candidate> candidates = new ArrayList<Candidate>();\r\n\t\tCandidate cand = null;\r\n\t\t\t\t\r\n\t\tfor (SimpleFeature slope_in: this.getFeatures_in()) {\r\n\t\t\t//remove first item of the out_feature list, to avoid checking a feature over itself\r\n\t\t\tslopes_out.remove(0);\r\n\t\t\t\r\n//if (!slope_in.getAttribute(\"DE_GR_L_1\").equals(\"Sportgastein\")) continue;\r\n\r\n\t\t\t//fetch geometry, coordinate sequence and create start and end point\r\n\t\t\tGeometry geom_in = (Geometry) slope_in.getDefaultGeometry();\r\n\t\t\tCoordinate [] slope_in_endPoints = GeometryOperations.getOrderedEndPoints(slope_in);\r\n\t\t\t\r\n\t\t\t//iterate over the out set of features\r\n\t\t\tfor (SimpleFeature slope_out: slopes_out) {\t\t\r\n\t\t\t\t//fetch semantic info\r\n\t\t\t\tde_name = slope_in.getAttribute(\"DE_GR_L_0\") + \" - \" + slope_in.getAttribute(\"DE_GR_L_1\");\r\n\t\t\t\txml_gid_in = slope_in.getAttribute(\"XML_GID\").toString();\r\n\t\t\t\txml_gid_out = slope_out.getAttribute(\"XML_GID\").toString();\r\n\t\t\t\t\r\n\t\t\t\tString[] attributes = new String [] {xml_gid_in, xml_gid_out, de_name};\r\n\t\t\t\t\r\n\t\t\t\t//fetch geometry and slope_out end-points\r\n\t\t\t\tCoordinate [] slope_out_endPoints = GeometryOperations.getOrderedEndPoints(slope_out);\r\n\t\t\t\tGeometry geom_out = (Geometry) slope_out.getDefaultGeometry();\r\n\t\t\t\t\r\n\t\t\t\t/* fetch intersection points of two geometries. size null -> means no intersection. size >=1 -> means slope intersect at one or more points */\r\n\t\t\t\tList<Coordinate> intersectionPoints = geomOps.getIntersectionVertices(geom_in, geom_out);\r\n\r\n\t\t\t\t//Remove common upper or lower point, if there is one, from intersection list\r\n\t\t\t\tcleanIntersectionsFromCommonEndPoints(slope_in_endPoints, slope_out_endPoints, intersectionPoints);\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t/* 1 - search slope_in upper for connection with slope_out lower or mid-point (distance < 20m) (traverse direction from slope_out to slope_in) */\r\n\t\t\t\tCoordinate midPointNeighbor = getMidPointCandidate(slope_in_endPoints[1], geom_out, midPointThreshold); //fetch midPoint neighbor if one exists, for upper endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_in_endPoints[1], slope_out_endPoints[0], intersectionPoints, midPointNeighbor, attributes, true);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand); }\r\n\t\t\t\t\r\n\t\t\t\t/* 2 - search slope_in lower for connection with slope_out upper or mid-point (distance < 20m) (traverse direction from slope_in to slope_out) */\r\n\t\t\t\tmidPointNeighbor = getMidPointCandidate(slope_in_endPoints[0], geom_out, this.midPointThreshold);\t//fetch midPoint neighbor if one exists, for lower endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_in_endPoints[0], slope_out_endPoints[1], intersectionPoints, midPointNeighbor, attributes, false);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand); }\r\n\t\t\t\t\r\n\t\t\t\t/* 3 - search slope_out upper for connection with slope_in lower or mid-point (distance < 20m) (traverse direction from slope_in to slope_out)*/\r\n\t\t\t\tmidPointNeighbor = getMidPointCandidate(slope_out_endPoints[1], geom_in, midPointThreshold); //fetch midPoint neighbor if one exists, for upper slope_out endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_out_endPoints[1], slope_in_endPoints[0], intersectionPoints, midPointNeighbor, new String [] { xml_gid_out, xml_gid_in, de_name}, true);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand); }\r\n\t\t\t\t\r\n\t\t\t\t/* 4 - search slope_out lower for connection with slope_in upper or mid-point (distance < 20m) (traverse direction from slope_out to slope_in) */\r\n\t\t\t\tmidPointNeighbor = getMidPointCandidate(slope_out_endPoints[0], geom_in, this.midPointThreshold);\t//fetch midPoint neighbor if one exists, for lower endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_out_endPoints[0], slope_in_endPoints[1], intersectionPoints, midPointNeighbor, new String [] { xml_gid_out, xml_gid_in, de_name}, false);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand);\t}\r\n\t\t\t\t\r\n\t\t\t\t/* 5 - No candidate links are found and slopes DO NOT INTERSECT, search for mid-point links*/\r\n\t\t\t\tif (candidates.size() == 0 && intersectionPoints == null) {\r\n\t\t\t\t\t//Fetch closest point between two geometries, that is within allowed threshold (10.50)\r\n\t\t\t\t\tif (DistanceOp.isWithinDistance(geom_in, geom_out, midPointThreshold)) {\r\n\t\t\t\t\t\t//fetch nearest points\r\n\t\t\t\t\t\tCoordinate[] nearestPoints = DistanceOp.nearestPoints(geom_in, geom_out);\r\n\t\t\t\t\t\tCoordinate nearestGeom_in = nearestPoints[0];\r\n\t\t\t\t\t\tCoordinate nearestGeom_out = nearestPoints[1];\r\n\t\t\t\t\t\t//fetch interpolated Z ordinate in case it is NaN\r\n\t\t\t\t\t\tnearestGeom_in = GeometryOperations.get3DLinePoint(nearestGeom_in, geom_in);\r\n\t\t\t\t\t\tnearestGeom_out = GeometryOperations.get3DLinePoint(nearestGeom_out, geom_out);\r\n\t\t\t\t\t\t//create and add mid-point candidate. Traverse direction has to be from highest to lowest point\r\n\t\t\t\t\t\tif (nearestGeom_in.z > nearestGeom_out.z) {\r\n\t\t\t\t\t\t\tcand = new Candidate(nearestGeom_in, nearestGeom_out, \"Slope2Slope\", xml_gid_in, xml_gid_out, de_name);\r\n\t\t\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcand = new Candidate(nearestGeom_out, nearestGeom_in, \"Slope2Slope\", xml_gid_out, xml_gid_in, de_name);\r\n\t\t\t\t\t\t\tcandidates.add(cand);\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\t\r\n\t\t\t\t//FINALLY add intersection points\r\n\t\t\t\tif (intersectionPoints != null && intersectionPoints.size() > 0) {\r\n\t\t\t\t\t//System.err.println(\"Still \" + intersectionPoints.size() + \" to add\");\r\n\t\t\t\t\tfor (Coordinate intersection: intersectionPoints) {\r\n\t\t\t\t\t\tcand = new Candidate(intersection, intersection, \"Intersection\", xml_gid_in, xml_gid_out, de_name);\r\n\t\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcand = null; //reset candidate\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t\t//Clean duplicate candidates in case some exist, candidates with different start and end features are needed for the final slope nodding\r\n\t\tcleanDuplicates(candidates);\r\n\t\t\t\r\n\t\t//********* METHOD END ****************\r\n\t\treturn candidates;\r\n\t}",
"public int compareTo(Point that) {\n if (this.y < that.y)\n return -1;\n else if (this.y == that.y) {\n if (this.x < that.x)\n return -1;\n else if (this.x == that.x)\n return 0;\n }\n return 1;\n\n }",
"public abstract double calculateDistance(double[] x1, double[] x2);",
"public static double lerp(double y0, double y1, double x) {\n double m = y1 - y0;\n double b = y0;\n return m * x + b; // i.e, linear function\n }",
"public int compareTo(Point that) {\r\n\r\n\t\tif(this.y == that.y && this.x == that.x) return 0;\r\n\r\n if(this.y < that.y || (this.y == that.y && this.x < that.x)) return -1;\r\n\r\n\t\treturn 1;\r\n }",
"public static double linearInterpolation(double x, double x1, double x2, double y1, double y2)\n\t{\n\t\tif(x2 == x1) throw new IllegalArgumentException(\"The two points may not have the same x-coordinate.\");\n\t\tdouble slope = slope(x1, x2, y1, y2);\n\t\treturn linearInterpolation(x, x1, y1, slope);\n\t}",
"public double distanceBetween2Points(double x1,double y1,double x2, double y2){\n\t\treturn Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));\n\t}",
"private double DistancePoint(Point a, Point b) {\n\t\tdouble ab = Math.sqrt( \n\t\t\t\tMath.pow( (b.getX() - a.getX()) , 2) +\n\t\t\t\tMath.pow( (b.getY() - a.getY()) , 2)\n\t\t);\n\t\treturn ab;\n\t}",
"public float compareTo(float x, float y) {\r\n float dx2 = (float) Math.abs((this.xf - x) * (this.xf - x));\r\n float dy2 = (float) Math.abs((this.yf - y) * (this.yf - y));\r\n float d = (float) Math.sqrt(dx2 + dy2);\r\n if (d > 3.0f) // Points closer than 3 pixels are the same\r\n return d;\r\n return 0;\r\n }",
"private double distancePointToSegment(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Segment. Starts and Ends in the same point -> Distance == distance\n\t\tif (startSegment.subtract(endSegment).equals(NULL_VECTOR_3DIM)) {\n\t\t\treturn point.subtract(startSegment).getNorm(); // Length of a-b\n\t\t}\n\t\t// https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line\n\t\t/*\n\t\t * es reicht aber aus, wenn man zusätzlich noch die Länge AB der Strecke\n\t\t * kennt. (Die Strecke sei AB, der Punkt P.) Dann kann man nämlich\n\t\t * testen, ob der Winkel bei A (PB²>PA²+AB²) oder bei B (PA²>PB²+AB²)\n\t\t * stumpf (>90 <180grad) ist. Im ersten Fall ist PA, im zweiten PB der\n\t\t * kürzeste Abstand, ansonsten ist es der Abstand P-Gerade(AB).\n\t\t */\n\n\t\t// TESTEN WO ES AM NÄCHSTEN AN DER STRECKE IST,NICHT NUR AN DER GERADEN\n\t\tline = startSegment.subtract(endSegment); // Vektor von start zum end.\n\t\tlineToPoint = startSegment.subtract(point); // vom start zum punkt.\n\t\tlineEnd = endSegment.subtract(startSegment); // vom ende zum start\n\t\tlineEndToPoint = endSegment.subtract(point); // vom start zum ende\n\n\t\t// Wenn größer 90Grad-> closest ist start\n\t\tdouble winkelStart = getWinkel(line, lineToPoint);\n\t\t// Wenn größer 90Grad -> closest ist end\n\t\tdouble winkelEnde = getWinkel(lineEnd, lineEndToPoint);\n\t\tif (winkelStart > 90.0 && winkelStart < 180.0) {\n\t\t\t// Start ist am nächsten. Der winkel ist über 90Grad somit wurde nur\n\t\t\t// der nächste nachbar auf der geraden ausserhalb der strecke\n\t\t\t// gefunden\n\t\t\treturn startSegment.subtract(point).getNorm();\n\t\t}\n\t\tif (winkelEnde > 90.0 && winkelEnde < 180.0) {\n\t\t\t// Ende ist am nächsten\n\t\t\treturn endSegment.subtract(point).getNorm();\n\t\t}\n\n\t\t// If not returned yet. The closest position ist on the line\n\t\treturn closestDistanceFromPointToEndlessLine(point, startSegment, endSegment);\n\t}",
"private double closestDistanceFromPointToEndlessLine(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Generate a line out of two points.\n\t\tRay3D gerade = geradeAusPunkten(startSegment, endSegment);\n\t\tVector direction = gerade.getDirection();\n\t\tdouble directionNorm = direction.getNorm();\n\t\t// d(PunktA, (line[B, directionU]) = (B-A) cross directionU durch norm u\n\t\tVector b = gerade.getPoint();\n\t\tVector ba = b.subtract(point);\n\t\tdouble factor = 1.0 / directionNorm; // Geteilt durch geraden länge\n\t\tVector distance = ba.cross(direction).multiply(factor);\n\t\tdouble distanceToGerade = distance.getNorm();\n\t\treturn distanceToGerade;\n\t}",
"double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }",
"static Line pointsToLine(PointDouble p1, PointDouble p2) {\n Line line = new Line();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.a = 1.0; line.b = 0.0; line.c = -p1.x;\n } else {\n // Non-vertical Line through the points.\n // Since the Line eq. is homogeneous we fix the scaling by setting b = 1.0.\n line.a = -(p1.y - p2.y) / (p1.x - p2.x);\n line.b = 1.0;\n line.c = -(line.a * p1.x) - p1.y;\n }\n return line;\n }",
"public static S1Angle getDistance(S2Point x, S2Point a, S2Point b) {\n Preconditions.checkArgument(S2.isUnitLength(x), \"S2Point not normalized: %s\", x);\n Preconditions.checkArgument(S2.isUnitLength(a), \"S2Point not normalized: %s\", a);\n Preconditions.checkArgument(S2.isUnitLength(b), \"S2Point not normalized: %s\", b);\n return S1Angle.radians(getDistanceRadians(x, a, b, S2.robustCrossProd(a, b)));\n }",
"private void linearFunction(Graphics g, double x0, double y0, double x1, double y1) {\n //abriviaciones para las funciones\n double dx = x1 - x0;\n double dy = y1 - y0;\n\n if (Math.abs(dx) > Math.abs(dy)) {\n double m = dy / dx;\n double b = y0 - m * x0;\n if (dx < 0) {\n dx = -1;\n } else {\n dx = 1;\n }\n\n while (x0 != x1) {\n x0 += dx;\n y0 = Math.round(m * x0 + b);\n g.drawLine((int) coord_x(x0), (int) coord_y(y0), (int) coord_x(x0), (int) coord_y(y0));\n }\n } else {\n if (dy != 0) {\n double m = dx / dy;\n double b = x0 - m * y0;\n if (dy < 0) {\n dy = -1;\n } else {\n dy = 1;\n }\n while (y0 != y1) {\n y0 += dy;\n x0 = Math.round(m * y0 + b);\n g.drawLine((int) coord_x(x0), (int) coord_y(y0), (int) coord_x(x0), (int) coord_y(y0));\n }\n }\n }\n }",
"public Point intersectionWith(Line other) {\r\n double m1 = this.lineSlope();\r\n double m2 = other.lineSlope();\r\n double b1 = this.intercept();\r\n double b2 = other.intercept();\r\n double interX, interY;\r\n if (m1 == m2) {\r\n return null;\r\n // this line is vertical\r\n } else if (m1 == Double.POSITIVE_INFINITY || m1 == Double.NEGATIVE_INFINITY) {\r\n interX = this.start.getX();\r\n if ((Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.end().getX(), other.start().getX()))) {\r\n // y value of intersection point\r\n interY = interX * m2 + b2;\r\n if (Math.min(this.start().getY(), this.end().getY()) <= interY\r\n && interY <= Math.max(this.start().getY(), this.end().getY())) {\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // other line is vertical\r\n } else if (m2 == Double.POSITIVE_INFINITY || m2 == Double.NEGATIVE_INFINITY) {\r\n interX = other.start.getX();\r\n if ((Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.end().getX(), this.start().getX()))) {\r\n // y value of intersection point\r\n interY = interX * m1 + b1;\r\n if (Math.min(other.start().getY(), other.end().getY()) <= interY\r\n && interY <= Math.max(other.start().getY(), other.end().getY())) {\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // this line is horizontal\r\n } else if (m1 == 0) {\r\n // y value of potential intersection point\r\n interY = this.start.getY();\r\n if ((Math.min(other.start().getY(), other.end().getY()) <= interY\r\n && interY <= Math.max(other.end().getY(), other.start().getY()))) {\r\n interX = ((interY - other.start.getY()) / other.lineSlope()) + other.start.getX();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.start().getX(), this.end().getX())) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // other line is horizontal\r\n } else if (m2 == 0) {\r\n // y value of potential intersection point\r\n interY = this.start.getY();\r\n if ((Math.min(this.start().getY(), this.end().getY()) <= interY\r\n && interY <= Math.max(this.end().getY(), this.start().getY()))) {\r\n interX = ((interY - this.start.getY()) / this.lineSlope()) + this.start.getX();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.start().getX(), other.end().getX())) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // lines are not horizontal or vertical\r\n } else {\r\n interX = (b1 - b2) / (m2 - m1);\r\n interY = (m1 * (interX - this.start.getX())) + this.start.getY();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.start().getX(), other.end().getX())\r\n || (Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.start().getX(), this.end().getX()))) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n }",
"public int differencePoints(){\n return player1Score - player2Score;\n }",
"public int compareTo(Point that) {\n if (this.y != that.y) {\n if (this.y > that.y) {\n return 1;\n }\n else {\n return -1;\n }\n }\n return new Integer(this.x).compareTo(that.x);\n }",
"private double getRegressionSumSquares(double slope) {\n return slope * slope * sumXX;\n }",
"public double getDemandAndSlope$forPrice(double slope, double p)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to getDemandAndSlope$forPrice : \" + \"Agent\");\r\n/* 252 */ return 0.0D;\r\n/* */ }",
"@Override\n\t\t\tpublic int compare(Point arg0, Point arg1) {\n\t\t\t return Double.compare(arg0.getX(), arg1.getX());\n\t\t\t}",
"private double lPDistance(Instance one, Instance two, int p_value) {\n\n double distanceSum = 0;\n\n for (int i = 0; i < one.numAttributes() - 1; i++) {\n distanceSum += Math.pow(Math.abs(one.value(i) - two.value(i)), p_value);\n }\n\n distanceSum = Math.pow(distanceSum, 1.0 / p_value); // Root in base P\n\n return distanceSum;\n\n }",
"public int compareTo(Point that)\n {\n if (y < that.y || (y == that.y && x < that.x)) return -1;\n else if (x == that.x && y == that.y) return 0;\n return 1;\n }",
"private final Point tangent1G1(Point a, Point b, Point c) {\n\t\t// horizontale volgorde: a ... b ... c\n\t\tif (a.X() < b.X() && c.X() > b.X()) {\n\t\t\tPoint temp = c.minus(a);\n\t\t\tdouble rico = temp.Y() / temp.X(); // kan nooit nul zijn\n\t\t\tdouble d1 = b.X() - a.X();\n\t\t\ttemp = new Point((int) Math.floor(-d1), (int) Math.floor(-rico * d1\n\t\t\t\t\t+ 0.5)).plus(b);\n\t\t\treturn temp;\n\t\t}\n\t\t// horizontale volgorde: c ... b ... a\n\t\telse if (a.X() > b.X() && c.X() < b.X()) {\n\t\t\tPoint temp = a.minus(c);\n\t\t\tdouble rico = temp.Y() / temp.X(); // kan nooit nul zijn\n\t\t\tdouble d1 = a.X() - b.X();\n\t\t\ttemp = new Point((int) Math.floor(d1), (int) Math.floor(rico * d1\n\t\t\t\t\t+ 0.5)).plus(b);\n\t\t\treturn temp;\n\t\t}\n\t\t// verticale volgorde: a ... b ... c\n\t\telse if (a.Y() > b.Y() && c.Y() < b.Y()) {\n\t\t\tPoint temp = a.minus(c);\n\t\t\tdouble ricoInv = temp.X() / temp.Y(); // kan nooit nul zijn\n\t\t\tdouble d1 = a.Y() - b.Y();\n\t\t\ttemp = new Point((int) Math.floor(ricoInv * d1 + 0.5), (int) Math\n\t\t\t\t\t.floor(d1)).plus(b);\n\t\t\treturn temp;\n\t\t}\n\t\t// verticale volgorde: c ... b ... a\n\t\telse if (a.Y() < b.Y() && c.Y() > b.Y()) {\n\t\t\tPoint temp = c.minus(a);\n\t\t\tdouble ricoInv = temp.X() / temp.Y(); // kan nooit nul zijn\n\t\t\tdouble d1 = b.Y() - a.Y();\n\t\t\ttemp = new Point((int) Math.floor(-ricoInv * d1 + 0.5), (int) Math\n\t\t\t\t\t.floor(-d1)).plus(b);\n\t\t\treturn temp;\n\t\t}\n\t\t// Beide tangentpunten liggen in eenzelfde kwadrant van het vlak t.o.v.\n\t\t// het punt b --> nu worden de eindpunten van de vector ac verplaatst,\n\t\t// overeenkomstig met de oorspronkelijke afstand tot b.\n\t\t//\n\t\t// Bvb.: a en c liggen onder b, a ligt verder van b dan c\n\t\t// --> het eerste eindpunt van de vector ac zal ook onder b\n\t\t// komen te liggen, het andere eindpunt zal boven b liggen.\n\t\telse {\n\t\t\t// verticale volgorde: b ... a ... c\n\t\t\tif (a.Y() > c.Y() && a.Y() <= b.Y()) {\n\t\t\t\tPoint temp = a.minus(c);\n\t\t\t\tdouble factor = (b.Y() - a.Y()) / (b.Y() - c.Y());\n\t\t\t\ttemp = new Point((int) Math.floor(temp.X() * factor + 0.5),\n\t\t\t\t\t\t(int) Math.floor(temp.Y() * factor + 0.5)).plus(b);\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\t// verticale volgorde: a ... c ... b\n\t\t\telse if (a.Y() > c.Y() && c.Y() >= b.Y()) {\n\t\t\t\tPoint temp = a.minus(c);\n\t\t\t\tdouble factor = 1.0 - (c.Y() - b.Y()) / (a.Y() - b.Y());\n\t\t\t\ttemp = new Point((int) Math.floor(temp.X() * factor + 0.5),\n\t\t\t\t\t\t(int) Math.floor(temp.Y() * factor + 0.5)).plus(b);\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\t// verticale volgorde: c ... a ... b\n\t\t\telse if (c.Y() > a.Y() && a.Y() >= b.Y()) {\n\t\t\t\tPoint temp = c.minus(a);\n\t\t\t\tdouble factor = (a.Y() - b.Y()) / (c.Y() - b.Y());\n\t\t\t\ttemp = new Point((int) Math.floor(-temp.X() * factor + 0.5),\n\t\t\t\t\t\t(int) Math.floor(-temp.Y() * factor + 0.5)).plus(b);\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\t// verticale volgorde: b ... c ... a\n\t\t\telse if (c.Y() > a.Y() && c.Y() <= b.Y()) {\n\t\t\t\tPoint temp = c.minus(a);\n\t\t\t\tdouble factor = 1.0 - (b.Y() - c.Y()) / (b.Y() - a.Y());\n\n\t\t\t\ttemp = new Point((int) Math.floor(-temp.X() * factor + 0.5),\n\t\t\t\t\t\t(int) Math.floor(-temp.Y() * factor + 0.5)).plus(b);\n\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}",
"private double getIntercept(double slope) {\n return (sumY - slope * sumX) / n;\n }",
"private double pointVal(double x0, double y0, double x1, double y1, double x, double dt) {\r\n double a;\r\n double poitY;\r\n if (Math.abs(x1 - x0) > eps) {\r\n a = (y1 - y0) / (x1 - x0);\r\n } else {\r\n a = (y1 - y0) / (x1 - x0 + dt / 2.0);\r\n }\r\n poitY = y0 + a * (x - x0);\r\n return poitY;\r\n }",
"static Line2 pointsToLine2(PointDouble p1, PointDouble p2) {\n Line2 line = new Line2();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.m = INF; // l contains m = INF and c = x_value\n line.c = p1.x; // to denote vertical Line x = x_value\n }\n else {\n // Non-vertical Line through the points.\n line.m = (p1.y - p2.y) / (p1.x - p2.x);\n line.c = p1.y - line.m * p1.x;\n }\n return line;\n }",
"public static final double calculateIntercept(final double min, final double slope, final double validMin) {\r\n return (min - (slope * validMin));\r\n }",
"public LineIntersect intersect(Line2D other, Vector2f intersectionPoint) {\r\n float denom = (other.pointB.y - other.pointA.y) * (this.pointB.x - this.pointA.x)\r\n - (other.pointB.x - other.pointA.x) * (this.pointB.y - this.pointA.y);\r\n float u0 = (other.pointB.x - other.pointA.x) * (this.pointA.y - other.pointA.y)\r\n - (other.pointB.y - other.pointA.y) * (this.pointA.x - other.pointA.x);\r\n float u1 = (other.pointA.x - this.pointA.x) * (this.pointB.y - this.pointA.y)\r\n - (other.pointA.y - this.pointA.y) * (this.pointB.x - this.pointA.x);\r\n\r\n //if parallel\r\n if (denom == 0.0f) {\r\n //if collinear\r\n if (u0 == 0.0f && u1 == 0.0f) {\r\n return LineIntersect.CoLinear;\r\n } else {\r\n return LineIntersect.Parallel;\r\n }\r\n } else {\r\n //check if they intersect\r\n u0 = u0 / denom;\r\n u1 = u1 / denom;\r\n\r\n float x = this.pointA.x + u0 * (this.pointB.x - this.pointA.x);\r\n float y = this.pointA.y + u0 * (this.pointB.y - this.pointA.y);\r\n\r\n if (intersectionPoint != null) {\r\n intersectionPoint.x = x; //(m_PointA.x + (FactorAB * Bx_minus_Ax));\r\n intersectionPoint.y = y; //(m_PointA.y + (FactorAB * By_minus_Ay));\r\n }\r\n\r\n // now determine the type of intersection\r\n if ((u0 >= 0.0f) && (u0 <= 1.0f) && (u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return LineIntersect.SegmentsIntersect;\r\n } else if ((u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return (LineIntersect.ABisectsB);\r\n } else if ((u0 >= 0.0f) && (u0 <= 1.0f)) {\r\n return (LineIntersect.BBisectsA);\r\n }\r\n\r\n return LineIntersect.LinesIntersect;\r\n }\r\n }",
"public static boolean pointOnLine(int x1, int y1, int x2, int y2, int px, int py, int EPSILON) {\n\t\t// ..a.. ..b..\n\t\t// start |------P-----| end\t=> a+b = len\n\t\t//\t\t\t...len...\n\t\tint a = dist(x1, y1, px, py);\n\t\tint b = dist(x2, y2, px, py);\n\t\tint l = dist(x1, y1, x2, y2);\n\t\t\n\t\tint ab = a + b;\n\t\tint diff = Math.abs(l-ab);\n\t\t\n\t\treturn diff <= (EPSILON*EPSILON);\n\t}",
"public int compare(LineString s1, LineString s2) {\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\t//prefer lines that end higher than they start\n\t\t\t\t\t\tboolean endsHigher1 = s1.getCoordinateN(0).getZ() <= s1.getCoordinateN(s1.getNumPoints()-1).getZ();\n\t\t\t\t\t\tboolean endsHigher2 = s2.getCoordinateN(0).getZ() <= s2.getCoordinateN(s2.getNumPoints()-1).getZ();\n\t\t\t\t\t\tif (endsHigher1 != endsHigher2) {\n\t\t\t\t\t\t\treturn endsHigher1 ? -1 : 1;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble slope1 = (SpatialUtils.getAverageElevation(s1) - s1.getCoordinateN(0).getZ()) / s1.getLength();\n\t\t\t\t\t\t\t\tdouble slope2 = (SpatialUtils.getAverageElevation(s2) - s2.getCoordinateN(0).getZ()) / s2.getLength();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn slope1 > slope2 ? -1 \n\t\t\t\t\t\t\t\t\t\t : slope1 < slope2 ? 1 \n\t\t\t\t\t\t\t\t\t : 0;\n\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 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\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public double getSlope() {\n if (n < 2) {\n return Double.NaN; //not enough data\n }\n if (Math.abs(sumXX) < 10 * Double.MIN_VALUE) {\n return Double.NaN; //not enough variation in x\n }\n return sumXY / sumXX;\n }",
"boolean between(tPoint p2)\n {\n if (! this.collinear(p2))\n return false;\n \n //check to see if line is vertical\n if (this.p0.x != this.p1.x)\n {\n //if not vertical, check to see if point overlaps in x\n return (((this.p0.x < p2.x) && (p2.x < this.p1.x)) |\n ((this.p0.x > p2.x) && (p2.x > this.p1.x)));\n }\n else\n {\n //if vertical, check to see if point overlaps in y\n return (((this.p0.y < p2.y) && (p2.y < this.p1.y)) |\n ((this.p0.y > p2.y) && (p2.y > this.p1.y)));\n }\n }",
"private boolean isHorizantalLines2Points(Point p1, Point p2) {\n\n if (abs(p1.y - p2.y ) < 70 && p1.x != p2.x) {\n return true;\n }\n return false;\n }",
"public void Mirror(Line l)\n\t{\n\t\tif (l == null) return;\n\t\tif (l.point1 == null || l.point2 == null)\n {\n return;\n }\n\t\tint rise = l.point1.y - l.point2.y;\n\t\tint run = l.point1.x - l.point2.x;\n\t\t\n\t\tif (run != 0)\n\t\t{\n\t\t\tint slope = rise/run;\n\n\t\t\tint b = l.point1.y - (slope*l.point1.x);\n\n\t\t\tint d = (l.point1.x + (l.point1.y - b)*slope) / ( 1 + slope*slope);\n\n\t\t\tthis.x = 2*d - this.x;\n\t\t\tthis.y = (2*d*slope - this.y + 2*b);\n\t\t}\n\t\t//handle undefined slope; \n\t\telse\n\t\t{\n\t\t\tthis.x = -(this.x - l.point1.x); \n\t\t}\n\t\t\n\n\t}",
"private double calculateDistance(Circle point1, Circle point2) {\r\n double x = point1.getCenterX() - point2.getCenterX();\r\n double y = point1.getCenterY() - point2.getCenterY();\r\n\r\n return Math.sqrt(x*x + y*y);\r\n }",
"private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }",
"private static final double l2Distance (final double[] p0,\n final double[] p1) {\n assert p0.length == p1.length;\n double s = 0.0;\n double c = 0.0;\n for (int i=0;i<p0.length;i++) {\n final double dp = p0[i] - p1[i];\n final double zi = dp*dp - c;\n final double t = s + zi;\n c = (t - s) - zi;\n s = t; }\n return Math.sqrt(s); }",
"@Override\n public int compareTo(Point point) {\n if (this.angle < point.getAngle()) {\n return -1;\n } else if (this.angle > point.getAngle()) {\n return 1;\n }\n return 0;\n }",
"private Double euclidean(LatitudeLongitude point1, LatitudeLongitude point2) {\n return Double.valueOf(Math.sqrt(Math.pow(point1.getLatitude() - point2.getLatitude(), 2)\n + Math.pow(point1.getLongitude() - point2.getLongitude(), 2)));\n }",
"private double findYByX(double x, Point2D p1, Point2D p2) {\n \t\tdouble x1 = p1.getX();\n \t\tdouble y1 = p1.getY();\n \t\tdouble x2 = p2.getX();\n \t\tdouble y2 = p2.getY();\n \t\tdouble k = (y2-y1)/(x2-x1);\n \t\tdouble b = y1-k*x1;\n \t\treturn k*x+b;\n }",
"private ArrayList<Point> findS(ArrayList<Point> s, Point p1, Point p2) {\n ArrayList<Point> s1 = new ArrayList<>();\n for(int i = 1; i < s.size(); i++){\n if(p1.x*p2.y + s.get(i).x*p1.y + p2.x*s.get(i).y - s.get(i).x*p2.y - p2.x*p1.y - p1.x*s.get(i).y > 0) {\n s1.add(s.get(i));\n }\n }\n return s1;\n }",
"public void testClosestApprochDist() {\r\n System.out.println(\"closestApprochDist\");\r\n\r\n ParametricLine2d other = new ParametricLine2d(new Point2d(), new Vector2d(0.0, 1.0));;\r\n ParametricLine2d instance = new ParametricLine2d();\r\n\r\n double expResult = 0.0;\r\n double result = instance.closestApprochDist(other);\r\n assertEquals(expResult, result);\r\n }",
"private DirectionTestResult getDirection() throws SimplexException {\r\n switch(pointCount) {\r\n case 1:\r\n return new DirectionTestResult(a.negate(new Vector2f()));\r\n case 2:\r\n Vector2f ab = b.sub(a);\r\n Vector2f perpAB = new Vector2f(-ab.y,ab.x);\r\n \r\n // check the perpendicular points opposite to vector A\r\n // i.e. towards the origin\r\n // if not, return the negated perpendicular and swap\r\n // points A and B to maintain clockwise rotation.\r\n if (perpAB.dot(a) < 0) {\r\n return new DirectionTestResult(perpAB);\r\n } else {\r\n Vector2f t = a;\r\n a = b;\r\n b = t;\r\n return new DirectionTestResult(perpAB.negate());\r\n }\r\n case 3:\r\n // first check line AC just like case 2\r\n Vector2f ac = c.sub(a);\r\n Vector2f perpAC = new Vector2f(-ac.y,ac.x);\r\n \r\n if (perpAC.dot(a) < 0) {\r\n b = c;\r\n c = null;\r\n pointCount = 2;\r\n return new DirectionTestResult(perpAC);\r\n }\r\n \r\n // now check line CB just like case 2\r\n Vector2f cb = b.sub(c);\r\n Vector2f perpCB = new Vector2f(-cb.y, cb.x);\r\n \r\n if (perpCB.dot(c) < 0) {\r\n a = c;\r\n c = null;\r\n pointCount = 2;\r\n return new DirectionTestResult(perpCB);\r\n }\r\n \r\n // if both checks failed the origin must be inside the\r\n // simplex which means there is a collision so return\r\n // a true directionTestResult\r\n \r\n return new DirectionTestResult();\r\n default:\r\n throw new SimplexException(\"pointCount outside acceptable range\");\r\n }\r\n }",
"public static float getDistanceBetween(PVector p1, PVector p2) {\n // Note: Raw values between point 1 and point 2 not valid, as they are are origin-based.\n PVector sub = PVector.sub(p1, p2);\n PVector xaxis = new PVector(1, 0);\n float dist = PVector.dist(sub, xaxis);\n return dist;\n }",
"private void drawLine(Graphics g, int x1, int y1, int x2, int y2) {\n int d = 0;\n\n int dx = Math.abs(x2 - x1);\n int dy = Math.abs(y2 - y1);\n\n int dx2 = 2 * dx; // slope scaling factors to\n int dy2 = 2 * dy; // avoid floating point\n\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n int x = x1;\n int y = y1;\n\n if (dx >= dy) {\n while (true) {\n plot(g, x, y);\n if (x == x2)\n break;\n x += ix;\n d += dy2;\n if (d > dx) {\n y += iy;\n d -= dx2;\n }\n }\n } else {\n while (true) {\n plot(g, x, y);\n if (y == y2)\n break;\n y += iy;\n d += dx2;\n if (d > dy) {\n x += ix;\n d -= dy2;\n }\n }\n }\n }"
]
| [
"0.71421397",
"0.6977321",
"0.6965073",
"0.69290274",
"0.6836311",
"0.68358284",
"0.68260694",
"0.67218065",
"0.67060184",
"0.6665413",
"0.6354583",
"0.6284609",
"0.6273099",
"0.623313",
"0.61945194",
"0.61584663",
"0.60364854",
"0.59297705",
"0.5869299",
"0.58622533",
"0.583899",
"0.56522584",
"0.5531443",
"0.54672664",
"0.5368302",
"0.53632903",
"0.53369266",
"0.5322875",
"0.5310147",
"0.530962",
"0.53005177",
"0.5276186",
"0.52593637",
"0.52289695",
"0.5227364",
"0.5214793",
"0.5194913",
"0.5158635",
"0.51540637",
"0.51255846",
"0.51254463",
"0.50941825",
"0.50886494",
"0.5086764",
"0.50568825",
"0.505224",
"0.504721",
"0.50447464",
"0.5033168",
"0.49913746",
"0.49816215",
"0.49770433",
"0.4976157",
"0.49668592",
"0.49650705",
"0.49636346",
"0.49602288",
"0.4906755",
"0.49065506",
"0.48929337",
"0.48899224",
"0.48862222",
"0.48860005",
"0.4883616",
"0.48828456",
"0.48735675",
"0.48606718",
"0.48592567",
"0.48522702",
"0.48381117",
"0.48360002",
"0.48194945",
"0.48100483",
"0.4809266",
"0.48074803",
"0.48031548",
"0.4791846",
"0.47875595",
"0.478595",
"0.47781134",
"0.47557703",
"0.474877",
"0.4747145",
"0.47457623",
"0.4744054",
"0.47437727",
"0.47427908",
"0.47376162",
"0.47212946",
"0.47197062",
"0.4712242",
"0.47098526",
"0.47055316",
"0.47054315",
"0.47047293",
"0.4691261",
"0.46724394",
"0.46724075",
"0.46714443",
"0.46640524"
]
| 0.67113984 | 8 |
Returns a string representation of this point. This method is provide for debugging; your program should not rely on the format of the string representation. | public String toString() {
/* DO NOT MODIFY */
return "(" + x + ", " + y + ")";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n\t\treturn \"#Point {x: \" + this.getX() + \", y: \" + this.getY() + \"}\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Point x=\"+x+\" y=\"+y;\n\t}",
"public String toString()\n\t{\n\t\tString data = \"(\" + x + \", \" + y + \")\";\n\t\treturn data;\t\t\t\t\t\t\t\t\t\t\t// Return point's data \n\t}",
"public String toString()\r\n\t{\r\n\t\tStringBuffer buffer = new StringBuffer(\"{X = \");\r\n\t\tbuffer.append(this.x);\r\n\t\tbuffer.append(\", Y = \");\r\n\t\tbuffer.append(this.y);\r\n\t\tbuffer.append('}');\r\n\t\treturn buffer.toString();\r\n\t}",
"public String getDetails()\n\t{\n\t return \"Point (\"+x+\",\"+y+\")\";\n\t}",
"public String toString()\r\n {\r\n return \"(\" + this.x() + \", \" + this.y() + \")\";\r\n }",
"public String toString() {\n\t\treturn (\"The value of \\\"x\\\" is: \" + x + \"\\n\"\n\t\t\t + \"The value of \\\"y\\\" is: \" + y);\n\t}",
"public String toString() {\n return \"(\"+this.x + \", \" + this.y+\")\";\n }",
"@Override\n public String toString() {\n String s = \"(\" + this.getY() + \",\" + this.getX() + \")\";\n return s;\n }",
"@Override\r\n\tpublic String toString() {\n\t\tString rtn=this.x+\".\"+this.y;\r\n\t\treturn rtn;\r\n\t}",
"public String toString() {\r\n \treturn new String(\"x: \" + x + \" y: \" + y);\r\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tint i;\n\t\tString out = \"\";\n\t\tfor (i = 0; i < points.length; i++) {\n\t\t\tout = out + points[i].getX() + \" \" + points[i].getY();\n\t\t}\n\t\t\treturn out + \"\\n\";\n\t}",
"public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}",
"public String toString() {\n\t return \"(\" + this.x + \",\" + this.y + \")\";\n\t }",
"@Override\n\tpublic String toString() {\n\t\treturn Globals.currentScore + \" \" + String.valueOf(points);\n\t}",
"@Override\n public String toString() \n\t{\n\t\t// This is just for the output format\n\t\tString sg = \"\";\n\t\tsg = sg + \"(\";\n\t\tsg = sg + x;\n\t\tsg = sg + \", \";\n\t\tsg = sg + y;\n\t\tsg = sg + \") \";\n\t\t\n\t\treturn sg;\n\n\t}",
"public String toString(){\n return \"(\" + this.x + \",\" + this.y + \")\";\n }",
"public String toString() {\n\t\tString blawk = \"X: \" + getLocation().getX() + \", Y: \" + getLocation().getY() + \", Id: \" + getId();\n\t\treturn blawk;\n\t}",
"public String toString()\n\t{\n\t\treturn getX()+\" \"+getY();\n\t}",
"public String toString() {\n checkRep();\n return \"(latitude,longitude)=(\" + this.latitude + \",\" + this.longitude + \") \\n\";\n\n }",
"@Override\n public String toString()\n {\n return TAG + \"[x:\" + x + \",y:\" + y + \"]\";\n }",
"public String toString() {\n\t\t\n\t\treturn (\"(\" + getX() + \", \" + getY() + \")\");\t\t\t// Returns a string representing the Coordinate object\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s with p=%.2f, r=%.2f and f=%.2f\", this.getClass().getSimpleName(), this.p, this.r, this.f);\n\t}",
"@Override\r\n\tpublic String toString(){\r\n\t\treturn \"[\" + this.getX()+ \" \" + this.getY()+ \"]\";\r\n\t}",
"public String getPointMessageInString() {\r\n\t\treturn pointMessage.get();\r\n\t}",
"public java.lang.String toString(){\n DecimalFormat df = new DecimalFormat(\"0.0\");\n return \"< \" + df.format(this.x) + \", \" + df.format(this.y) + \" >\";\n }",
"@Override\n public String toString() {\n return \"<\" + this.x + \",\" + this.y + \">\";\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tString ppString = \"\";\n\t\tif(x >= 0)\n\t\t\tppString += \"+\";\n\t\telse\n\t\t\tppString += \"-\";\n\t\tif(x >= 10 || x <= -10)\n\t\t\tppString += Math.abs(x);\n\t\telse\n\t\t\tppString += \"0\" + Math.abs(x);\n\t\tif(y >= 0)\n\t\t\tppString += \"+\";\n\t\telse\n\t\t\tppString += \"-\";\n\t\tif(y >= 10 || y <= -10)\n\t\t\tppString += Math.abs(y);\n\t\telse\n\t\t\tppString += \"0\" + Math.abs(y);\n\t\treturn ppString;\n\t}",
"public String getPrettyCoordinates() {\n\t\treturn coordinateTools.localToPrettyCoordinates(this);\n\t}",
"public String toString(){\n return \"{\"+this.x+\", \"+this.y+\"}\";\n }",
"public String toString()\n {\n String s = \"\";\n for (Point2D.Float p : points) {\n if (s.length() > 0) s += \", \";\n s += round(p.x) + \"f\" + \",\" + round(p.y) + \"f\";\n }\n return s;\n }",
"@Override\n public String toString() {\n if (isValid()) {\n return String.format(\n Locale.US,\n \"%+02f%+02f%s/\",\n coordinates.get(1), coordinates.get(0), coordinateSystem.toString());\n }\n return \"\";\n }",
"public String toString() {\n\t\tString s = \"Spike at x=\" + x + \"y=\" + y;\n\t\treturn s;\n\t}",
"public String toString() {\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n stringBuilder\r\n .append(this.x).append(\" \")\r\n .append(this.y).append(\" \")\r\n .append(this.z);\r\n\t\treturn stringBuilder.toString();\r\n }",
"public String toString() {\n\t\treturn \"(\" + x + \",\" + y + \")\";\n\t}",
"@Override\n public String toString() {\n return String.format(\"position X is='%s' ,position Y is='%s'\" , positionX , positionY);\n }",
"public String toString() {\r\n\t\treturn getx() + \" \" + gety() + \" \" + getWidth() + \" \" + getHeight() + \" \" + getColor() + \" \" + getXSpeed()+ \" \" + getYSpeed();\r\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn getClass().getSimpleName() + Arrays.toString(getPoint()) + ' ' + (getModel() != null ? getModel().toString() : \"(null)\");\n\t\t}",
"@Override\n @Nonnull\n public String toString() {\n final StringBuilder sb = new StringBuilder(\"GpsInfo{\");\n sb.append(\"latitude=\").append(latitude);\n sb.append(\", longitude=\").append(longitude);\n sb.append(\", altitude=\").append(altitude);\n sb.append(\", dateTimeZone='\").append(dateTimeZone).append('\\'');\n sb.append(\", datum='\").append(datum).append('\\'');\n sb.append('}');\n return sb.toString();\n }",
"public String toString() {\n\t\treturn \"(\" + roundToOneDecimal(x) + \", \" + roundToOneDecimal(y) + \")\";\n\t}",
"public String toString() {\n\t\treturn geoCoordinate.toString() + \" | \" + name + \" | \" + description;\n\t}",
"public String toString()\n {\n DataConversionUtility dcu = DataConversionUtility.getInstance();\n StringBuilder sb = new StringBuilder();\n sb.append(\" \");\n sb.append(this.timestamp);\n sb.append(\": \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.latitude, 6));\n sb.append(\" / \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.longitude, 6));\n sb.append(\" / elev.: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.elevation, 1));\n sb.append(\" / speed: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.speed, 2));\n sb.append(\" [\");\n sb.append(dcu.roundUpToNDecimalPlaces(this.course, 2));\n sb.append(\"] / wind speed: \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.windSpeed, 2));\n sb.append(\" - \");\n sb.append(dcu.roundUpToNDecimalPlaces(this.maxWindSpeed, 2));\n sb.append(\" [\");\n sb.append(dcu.roundUpToNDecimalPlaces(this.windDirection, 2));\n sb.append(\"]\\n\");\n return sb.toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"(\" + Double.toString(x) + \", \" + Double.toString(y) + \", \" + Double.toString(z) + \")\";\r\n\t\t// String.format is cleaner, but Double.toString appears to have behavior closer to that of the old editor\r\n//\t\treturn String.format(\"(%f, %f, %f)\", x, y, z);\r\n\t}",
"public String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}",
"public String toString() {\r\n /* DO NOT MODIFY */\r\n return \"(\" + x + \", \" + y + \")\";\r\n }",
"public String toString() {\r\n\t\treturn \"(\" + this.x + \",\" + this.y + \",\" + this.z + \")\";\r\n\t}",
"@Override\n public String toString() {\n return String.format(\"(%d,%d)\", x, y);\n }",
"public String toString() {\n return \"P(\" + x + \", \" + y + \", \" + z + \")\";\n }",
"public String toString() {\n\t\treturn \"PT\";\n\t}",
"@Override\n public String toString() {\n return new GsonBuilder().serializeSpecialFloatingPointValues().create().toJson(this);\n }",
"public String printPointsDiff() {\n return \"(\" + getPointsDiff() + \")\";\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"(%d, %d)\", x, y);\n\t}",
"@Override\n public String toString() {\n return position.toString()\n + rotation.toString()\n + scale.toString();\n }",
"public String toString() {\n return \"segment : \" + this.point1.toString() + \"-\" +\n this.point2.toString();\n }",
"public String toString() {\n // DecimalFormat class is used to format the output\n DecimalFormat df = new DecimalFormat(\".0\");\n return \"\\nCoordinates of Parallelogram are:\\n\"\n + super.toString()\n + \"\\nWidth is :\"\n + df.format(width)\n + \"\\nHeight is :\"\n + df.format(height)\n + \"\\nArea is :\"\n + df.format(area());\n }",
"public String toString() {\r\n\t\treturn \"P\";\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}",
"public String toString()\n\t{\n\t\treturn \"x:\"+xPos+\" y:\"+yPos+\" width:\"+width+\" height:\"+height+\" color:\"+ color;\n\t}",
"@Override\n public String toString() {\n return String.format(\"%-4s %-35s %-20s %-20s\\n\", this.pokeNumber, this.pokeName,\n this.pokeType_1, this.hitPoints);\n }",
"public String toString() {\n\t\treturn \"x1 = \" + x1 + \" y1 = \" + y1 + \" x2 = \" + x2 + \" y2 = \" + y2;\n\t}",
"public String toString()\n {\n return \"I am the nice \" + NAME + \", I am now standing on square \" + x + \" , \" + y + \".\";\n }",
"@Override\n public String toString()\n {\n return String.format(\"(%f,%f,%f,%f)\", kP, kI, kD, kF);\n }",
"public String toString() {\n return(\"[\"+point1+\",\"+point2+\"]\");\n }",
"@NonNull\n @Override\n public String toString() {\n return y + \",\" + x;\n }",
"public String toString()\n\t{\n\t\treturn Double.toString(latitude)+\", \"+Double.toString(longitude);\n\t}",
"public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }",
"public String toDebugString() {\n StringBuffer str = new StringBuffer(mySelf()+\"\\n\");\n return str.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}",
"public String toString() {\n return\n getLatitude(\"\") + \"|\" +\n getLongitude(\"\") + \"|\" +\n getDepth(\"\") + \"|\" +\n getTemperatureMin(\"\") + \"|\" +\n getTemperatureMax(\"\") + \"|\" +\n getSalinityMin(\"\") + \"|\" +\n getSalinityMax(\"\") + \"|\" +\n getOxygenMin(\"\") + \"|\" +\n getOxygenMax(\"\") + \"|\" +\n getNitrateMin(\"\") + \"|\" +\n getNitrateMax(\"\") + \"|\" +\n getPhosphateMin(\"\") + \"|\" +\n getPhosphateMax(\"\") + \"|\" +\n getSilicateMin(\"\") + \"|\" +\n getSilicateMax(\"\") + \"|\" +\n getChlorophyllMin(\"\") + \"|\" +\n getChlorophyllMax(\"\") + \"|\";\n }",
"public String toString() {\n return (\"x = \" + (p1.getX() - p2.getX()) + \" + \" + p1.getX() + \n \", y = \" + (p1.getY() - p2.getY()) + \" + \" + p1.getY() + \n \", z = \" + (p1.getZ() - p2.getZ()) + \" + \" + p1.getZ());\n }",
"public String toDebugString() {\n StringBuffer str = new StringBuffer(mySelf()+\"\\n\");\n return super.toDebugString()+str.toString();\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn \"x=\" + x + \",y=\" + y + \",obj=\" + block;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"(%f, %f, %f)\", x, y, z);\n\t}",
"public String toString()\n {\n return this.j2ksec + \",\" + this.eid + \",\" + this.lat + \",\" + this.lon + \",\" + this.depth + \",\" + this.prefmag;\n }",
"public String getCoordinatesAsString() {\r\n return String.format(\"%s, %s, %s, %s\\n\", p1, p2, p3, p4);\r\n }",
"public String getPointDescribe() {\n return pointDescribe;\n }",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn \"pX = \" + personX + \" ,pY = \" + personY + \" ,boxX = \" + boxX + \" ,boxY = \" + boxY + \" ,cost = \" + cost + \" , push = \" + push ;\n\t\t}",
"public String toString() { return stringify(this, true); }",
"public String toString()\n {\n return this.getGeoEvent().toString();\n }",
"public String toString()\n {\n return (\"x,y\" + x + y);\n }",
"@Override\n public String toString() {\n return String.valueOf(position.getX() + \" \" + position.getY() + \" \" + visible + \" \" + speed.getX() + \"\\n\");\n }",
"public String toString()\n\t{\n\t\treturn \"[\" + mX + \", \" + mY + \"]\";\n\t}",
"public String toString() {\n return \"<VariablePoint2: (\"+getX()+\", \"+getY()+\")>\";\n }",
"public String toString() {\n\t\treturn \"PoseDelta<\" + this.angleDelta + \", \" + this.distanceDelta + \">\"; \n\t}",
"public String toString() {\r\n\t\treturn super.toString() +\" \"+ getXSpeed() +\" \"+ getYSpeed();\r\n\t}",
"@Override\n public String toString() {\n return value + \" \" + position.name();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"(\" + X + \",\" + Y + \")\";\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\n public String toString() {\n double longDeg = Math.toDegrees(this.longitude);\n double latDeg = Math.toDegrees(this.latitude);\n Locale l = null;\n String s = String.format(l, \"(%.4f,%.4f)\", longDeg, latDeg);\n return s;\n }",
"@Override\n public String toString() {\n // using String.format to display out put value and infomation of Property\n return String.format(\n \"\\nCoordinates: %d, %d\\n\" + \"Length: %d m Width: %d m\\n\" + \"Registrant: #%d\\nArea: %d m2\\n\"\n + \"Property Taxes : $%.1f\",\n this.getXLeft(), this.getYTop(), this.getXLength(), this.getYWidth(), this.getRegNum(), this.getArea(),\n this.getTaxes());\n }",
"public String getLocationString(){\n return \"(\" + x + \", \" + y + \")\";\n }",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\n public String toString()\n {\n return id + \"*\" + name + \"|\" + lat + \"&\"+lon + \"\\n\";\n }",
"public String toString()\n {\n return id() + location().toString() + direction().toString();\n }",
"@Override\n public String toString() {\n return \"@(\"+x+\"|\"+y+\") mit Bewegung: \"+bewegung;\n }",
"public String toString() {\n\t\treturn String.valueOf(mDouble);\n\t}",
"public SimpleStringProperty getPointMessage() {\r\n\t\treturn this.pointMessage;\r\n\t}"
]
| [
"0.8186063",
"0.80700475",
"0.79832184",
"0.77531165",
"0.7584916",
"0.7580891",
"0.7580699",
"0.756612",
"0.75328547",
"0.75060695",
"0.7495054",
"0.7444795",
"0.74280006",
"0.73963344",
"0.7394032",
"0.7379329",
"0.7377226",
"0.7358632",
"0.7341362",
"0.7288161",
"0.72804976",
"0.72712874",
"0.72227556",
"0.72115564",
"0.72103006",
"0.7203454",
"0.7203",
"0.7202294",
"0.72018665",
"0.7179907",
"0.71762097",
"0.7171105",
"0.7146577",
"0.71296126",
"0.71019346",
"0.7098444",
"0.70924425",
"0.7078748",
"0.70772",
"0.70765483",
"0.70704645",
"0.7069815",
"0.7069086",
"0.70601684",
"0.70506454",
"0.7037669",
"0.702804",
"0.7028018",
"0.7000363",
"0.6992199",
"0.69870365",
"0.6983393",
"0.69643366",
"0.695939",
"0.69481075",
"0.6947424",
"0.6933301",
"0.6901643",
"0.6900346",
"0.68986976",
"0.687751",
"0.68663603",
"0.68634313",
"0.68522066",
"0.6843014",
"0.6841453",
"0.6841342",
"0.68367606",
"0.68180937",
"0.680715",
"0.6799216",
"0.6797578",
"0.67807865",
"0.6769172",
"0.6768006",
"0.6762479",
"0.67618227",
"0.6746995",
"0.67463505",
"0.6742227",
"0.67379147",
"0.67317647",
"0.67284465",
"0.6718194",
"0.67112845",
"0.67049676",
"0.6702519",
"0.66830266",
"0.667948",
"0.6668685",
"0.6668095",
"0.6667117",
"0.66610974",
"0.6657885",
"0.66571236",
"0.6653821",
"0.66519886",
"0.6650631"
]
| 0.7067834 | 45 |
Unit tests the Point data type. | public static void main(String[] args)
{
Point p1 = new Point(10, 0);
Point p2 = new Point(0, 10);
Point p3 = new Point(3, 7);
Point p4 = new Point(7, 3);
Point p5 = new Point(20, 21);
Point p6 = new Point(3, 4);
Point p7 = new Point(14, 15);
Point p8 = new Point(6, 7);
Point[] arr = new Point[8];
arr[0] = p1;
arr[1] = p2;
arr[2] = p3;
arr[3] = p4;
arr[4] = p5;
arr[5] = p6;
arr[6] = p7;
arr[7] = p8;
System.out.println("Before sorting:");
for (Point i : arr)
{
System.out.println(i.toString());
}
Arrays.sort(arr, p1.slopeOrder());
System.out.println("After sorting:");
for (Point i : arr)
{
System.out.println(i.toString());
}
double[] slopes = new double[8];
Point pt = p1;
slopes[0] = pt.slopeTo(p2);
slopes[1] = pt.slopeTo(p3);
slopes[2] = pt.slopeTo(p4);
slopes[3] = pt.slopeTo(p5);
slopes[4] = pt.slopeTo(p6);
slopes[5] = pt.slopeTo(p7);
slopes[6] = pt.slopeTo(p8);
System.out.println("Slope values, initial:");
for (double d : slopes)
{
System.out.println(d);
}
for (int i = 0; i < 8; ++i)
{
slopes[i] = pt.slopeTo(arr[i]);
}
System.out.println("Slope values, final:");
for (double d : slopes)
{
System.out.println(d);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}",
"public Point getTestPoint() {\n WKTReader reader = new WKTReader();\n try {\n Point point = (Point) reader.read(TEST_POINT_WKT);\n point.setSRID(getTestSrid());\n return point;\n } catch (ParseException e) {\n throw new RuntimeException(e);\n }\n }",
"@Test\n\tpublic void testIfCoordinatesAreValid()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.getCoordinate(0); // at index 0 is the king's default location (5, 5)\n\t\tassertEquals(c.getX(), 5);\n\t\tassertEquals(c.getY(), 5);\t\n\t}",
"public void testPointIntSetBoxed() throws Exception {\n assertEquals(\n IntPoint.newSetQuery(\"foo\", 1, 2, 3), IntPoint.newSetQuery(\"foo\", Arrays.asList(1, 2, 3)));\n assertEquals(\n FloatPoint.newSetQuery(\"foo\", 1F, 2F, 3F),\n FloatPoint.newSetQuery(\"foo\", Arrays.asList(1F, 2F, 3F)));\n assertEquals(\n LongPoint.newSetQuery(\"foo\", 1L, 2L, 3L),\n LongPoint.newSetQuery(\"foo\", Arrays.asList(1L, 2L, 3L)));\n assertEquals(\n DoublePoint.newSetQuery(\"foo\", 1D, 2D, 3D),\n DoublePoint.newSetQuery(\"foo\", Arrays.asList(1D, 2D, 3D)));\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void pointNullException() {\n\n\t\tset.addPoint(null);\n\t}",
"protected boolean isPoint( SimpleFeature feature )\n \t{\n \t\t// A better way to do this ?\n \t\treturn( feature.getType().getGeometryDescriptor().getType().getBinding() == com.vividsolutions.jts.geom.Point.class );\n \t}",
"public Point() {\n }",
"public Point() {\n }",
"@Test\n\tpublic void testCreation() {\n\n\t\tnew Point(20, 10).save();\n\n\t\tList<Point> points = Point.findByAll();\n\n\t\tassertEquals(1, points.size());\n\t\tassertEquals(points.get(0).x, 20);\n\t\tassertEquals(points.get(0).y, 10);\n\n\t}",
"@Test\n\tvoid testCheckCoordinates1() {\n\t\tassertTrue(DataChecker.checkCoordinate(1));\n\t}",
"@Test\r\n void testAddPoints() {\r\n AlwaysDefect testStrat = new AlwaysDefect();\r\n testStrat.addPoints(2);\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 2, \"addPoints or getPoints not functioning correctly\");\r\n }",
"public Vec4 expectPoint() {\n if(!isPoint()) throw new IllegalArgumentException(\"expected point: \" + this);\n return this;\n }",
"void pointCheck(LatLng point, boolean valid);",
"@Test\n public void getPointsTest() {\n int expextedValue = animal.getPoints();\n Assert.assertEquals(expextedValue,0);\n }",
"public void testSetLocationNegX() {\n try {\n container.setLocation(new Point(-1, 1));\n fail(\"the x of the point is -1, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }",
"@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}",
"@Test\n\tvoid testCheckCoordinates8() {\n\t\tassertTrue(DataChecker.checkCoordinate(new Integer(5)));\n\t}",
"@Test\n\tpublic void testGetOffsetsAgainstGeographiclibData() {\n\t\tfor(Point p: s_testPoints) {\n\t\t\tAssert.assertEquals(p.m, Geoid.getOffset(p.l), 0.015);\n\t\t}\n\t}",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"@Test\r\n\tpublic void testPointToString0() {\r\n\t\tPonto a1 = new Ponto(1.0, 2.5);\r\n\t\tAssert.assertEquals(\"(1.00, 2.50)\", a1.toString());\r\n\r\n\t\tPonto a2 = new Ponto(-2.4, 4.1);\r\n\t\tAssert.assertEquals(\"(-2.40, 4.10)\", a2.toString());\r\n\r\n\t\tPonto a3 = new Ponto(9.3, -1.9);\r\n\t\tAssert.assertEquals(\"(9.30, -1.90)\", a3.toString());\r\n\t}",
"Point createPoint();",
"@Test\n public void testAdding(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecFile.AddCommand(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n assertEquals(VecCommandType.RECTANGLE, VecFile.GetLastCommand().GetType());\n }",
"@Test\n public void shouldBeAbleToCreatePiecePosition() {\n Assert.assertNotNull(position);\n }",
"@Test\n public void testTrouverCoord() throws Exception {\n System.out.println(\"TrouverCoord\");\n Coordonnee p1 = null;\n Coordonnee p2 = null;\n double ratioDistSurDistTotale = 0.0;\n Coordonnee expResult = null;\n Coordonnee result = Utils.TrouverCoord(p1, p2, ratioDistSurDistTotale);\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\r\n public void getPriceValue() throws Exception {\r\n assertEquals(p1,point1.getPriceValue(),0.0);\r\n assertEquals(p2,point2.getPriceValue(),0.0);\r\n assertEquals(p3,point3.getPriceValue(),0.0);\r\n assertEquals(p4,point4.getPriceValue(),0.0);\r\n }",
"@Override\n protected boolean isValid(java.security.spec.ECPoint point) {\n return convertECPoint(point).isValid();\n }",
"@Test\r\n public void testSinglePoints() {\r\n String searchIntersection = \"Randall & Dayton\";\r\n Path path = backend.getPoints(searchIntersection);\r\n ArrayList<String> points = path.getPOI();\r\n // Search for 'Randall & Dayton' point of interest\r\n if(!points.contains(\"Vantage Point\"))\r\n fail(\"Failed to find points of interest\");\r\n }",
"public MyPoint1 (double x, double y) {}",
"@Test\n\tvoid testCheckCoordinates2() {\n\t\tassertTrue(DataChecker.checkCoordinate(-1));\n\t}",
"@Test\n\tvoid testCheckCoordinates3() {\n\t\tassertTrue(DataChecker.checkCoordinate(0));\n\t}",
"public abstract void setPoint(Point p);",
"@Test\n public void testPosition(){\n pos = Maze.position(25, 28);\n assertEquals(Maze.Position.class, pos.getClass());\n assertEquals(pos, Maze.position(25, 28));\n }",
"public void setPoint(double point){\r\n this.point = point;\r\n }",
"private GoodPoint(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"@Test\n public void testDiferentDataTypes() throws InterruptedException, RtdException {\n RtdBaseContinuous<BigDecimal> bigDecimalRtd = new RtdBaseContinuous<BigDecimal>();\n bigDecimalRtd.setDuration(500);\n bigDecimalRtd.setData(new BigDecimal(10));\n \n RtdBaseDiscrete<Point> pointRtd = new RtdBaseDiscrete<Point>();\n pointRtd.setData(new Point(5, 6));\n \n RtdBaseDiscrete<EmployeeentityBeanClassTest> employeeRtd = new RtdBaseDiscrete<EmployeeentityBeanClassTest>();\n EmployeeentityBeanClassTest emp = new EmployeeentityBeanClassTest();\n emp.setId(1);\n emp.setName(\"Max\");\n emp.setSalary(1000);\n employeeRtd.setData(emp);\n \n assertTrue(\"Incorrect BigDecimal\", bigDecimalRtd.getData().floatValue()==BigDecimal.valueOf(10).floatValue());\n assertTrue(\"Incorrect Point\", pointRtd.getData().getX() == 5 && pointRtd.getData().getY() == 6);\n assertTrue(\"Incorrect Employee \", employeeRtd.getData().getId() == 1 \n && employeeRtd.getData().getName().equals(\"Max\")\n && employeeRtd.getData().getSalary() == 1000);\n \n }",
"public boolean hasValidPoint() {\n return mPoint.x != 0 || mPoint.y != 0;\n }",
"@Test\n\tvoid testCheckCoordinates4() {\n\t\tassertFalse(DataChecker.checkCoordinate(-100));\n\t}",
"@org.junit.Test\n public void getPointTestOnePointCurve() {\n BezierCurve onePointCurve = new BezierCurve(new Vector(10, 20));\n assertEquals(new Vector(10, 20), onePointCurve.getPoint(0));\n assertEquals(new Vector(10, 20), onePointCurve.getPoint(1));\n }",
"@Override\n\tpublic boolean isPrimitiveTypeExpected() {\n\t\treturn false;\n\t}",
"@Test\n\tpublic void testPrimitives() throws Exception {\n\t\ttestWith(TestClassWithPrimitives.getInstance());\n\t}",
"public Point(double x, double y){\n this.x = x;\n this.y = y;\n }",
"TestViewpoint createTestViewpoint();",
"Point(int x_, int y_){\n x = x_;\n y = y_;\n }",
"public PrecisePoint() {\n }",
"@Test\n public void pipeDrawerValidPoints() {\n Point2D[] waypoints = {\n new Point2D(1, 1),\n new Point2D(1, 2),\n new Point2D(2, 2)\n };\n Pipe pipe = new Pipe(1f, 1, (byte) 1);\n\n new PipeDrawer(waypoints, pipe, 1);\n }",
"@Test\n\t\tpublic void canGiveTheseusLocation() {\n\t\t\tPoint whereTheseus = new Pointer(3,3);\n\t\t\tgameLoader.addTheseus(whereTheseus);\n\t\t\tPoint expected = whereTheseus;\n\t\t\tPoint actual = gameSaver.wheresTheseus();\n\t\t\t\n\t\t\tassertEquals(expected.across(), actual.across());\n\t\t\tassertEquals(expected.down(), actual.down());\n\t\t}",
"public abstract Point location( Solid shape ) throws DataException, FeatureException, InvalidXMLException,\n LocationException, MountingException, ReferenceException\n ;",
"@Test\n public void testGPSpingInvalid() {\n assertEquals(0.0, err1.getLat(), PRECISION);\n assertEquals(0.0, err1.getLon(), PRECISION);\n assertEquals(0.0, err2.getLon(), PRECISION);\n assertEquals(0,err1.getTime());\n assertEquals(0,err2.getTime());\n }",
"@Test\r\n\tpublic void constructorDeclarationTest(){\r\n\t\tint[] pointsToTest = {2,7,9,16,17,18,19,20};\r\n\t\tfor(int i=0;i<pointsToTest.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(pointsToTest[i],new PointGrade(pointsToTest[i]).getPoints());\r\n\t\t}\r\n\t}",
"@Test\n\tvoid testCheckCoordinates5() {\n\t\tassertFalse(DataChecker.checkCoordinate(100));\n\t}",
"@Test\n\tpublic void addPointsByListTest(){\n\t}",
"@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }",
"@Test\n public void testGetLatitude() {\n \n assertNotNull(o1.getLatitude());\n assertEquals(0.1f, o1.getLatitude(), 0.0);\n assertEquals(0.0f, o2.getLatitude(), 0.0);\n }",
"@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}",
"@Test\n public void testAddPoints() {\n System.out.println(\"addPoints\");\n int points = ScoreBoard.HARD_DROP_POINTS_PER_ROW * 4 + ScoreBoard.POINTS_PER_LINE;\n instance.addPoints(points);\n int result = instance.getPoints();\n int expResult = 108;\n assertEquals(result, expResult);\n }",
"public Point(){\n this.x = 0;\n this.y = 0;\n }",
"public PointRecord(){\n \n }",
"public interface Point{\n\t\n\t/**\n\t * Types of points.\n\t * @author zroslaw\n\t */\n\tpublic enum PointType{\n\t\tRegular,\n\t\tMultiPoint\n\t}\n\t\n\t/**\n\t * Return current lengthy.\n\t * @return lengthy instance on which this observable is placed\n\t */\n\tpublic Lengthy getLengthy();\n\n\t/**\n\t * Current position.\n\t * @return position of this point on the lengthy.\n\t */\n\tpublic float getPosition();\n\t\n\t/**\n\t * Set lengthy.\n\t */\n\tpublic void setLengthy(Lengthy lengthy);\n\n\t/**\n\t * Set position.\n\t */\n\tpublic void setPosition(float position);\n\t\n\t/**\n\t * Get point type.\n\t * @return point type.\n\t */\n\tpublic PointType getPointType();\n\n}",
"public Point(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}",
"@Test\n public void typeTest() {\n assertTrue(red_piece.getType() == Piece.Type.SINGLE);\n red_piece.king();\n assertTrue(red_piece.getType() == Piece.Type.KING);\n assertTrue(white_piece.getType() == Piece.Type.SINGLE);\n }",
"public Point(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"PointDouble() {\n x = y = 0.0;\n }",
"@Test\r\n public void testBoardPosition() {\r\n BoardPosition testBoardPosition = new BoardPosition(new Point(0, 0));\r\n assertEquals(testBoardPosition.getCoordinates().x, 0);\r\n assertEquals(testBoardPosition.getCoordinates().y, 0);\r\n //\tassertEquals(testBoardPosition.getImage(), ); <-- TODO\r\n }",
"private boolean pointsCheck(String point){\n\t\tboolean isNumber = true;\t\n\t\tfor (int i = 0; i < point.length(); i++) {\n\t if(point.charAt(i) < 48 || point.charAt(i) > 57) {\n\t isNumber = false;\n\t break;\n\t }\n\t }\n\t\t\t\t\n\t\tif(!isNumber){\n\t\t\tSystem.out.println(\"Input file format not correct: not numerical val second column in the text file\");\n\t\t\tSystem.exit(0);\n\t\t\t\n\t\t}\n\t\t//check if points exist in the database\n\t\tint pointsInLine = Integer.parseInt(point);\n\t\tif(findPointIndex(pointsInLine)!= -1){\n\t\t\treturn true;\n\t\t}\n\t\tSystem.out.println(\"Error: question's point val not existed in the database\");\n\t\tSystem.exit(0);\n\t\treturn false;\n\t\t\n\t\t\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.PricePointType createPricePointType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl();\n }",
"@Test\r\n void testGetPointsZeroPoints() {\r\n AlwaysDefect testStrat = new AlwaysDefect();\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 0, \"getPoints not returning correctly when 0 points\");\r\n }",
"@Test\n\tpublic void testGetX() {\n\t\t//String verify = \"Returns the correct X value for a Coordinate\";\n\t assertEquals(\"Returns the correct X value for a Coordinate\", \n\t \t\torigin.getX(), 0.0, 0.0);\n\t assertEquals(\"Returns the correct X value for a Coordinate\", \n\t \t\tbasic.getX(), 5.0, 0.0);\n\t assertEquals(\"Returns the correct X value for a Coordinate\", \n\t \t\tbasic2.getX(), 4.0, 0.0);\n\t}",
"@Test\n\tpublic void testFindByXandY() {\n\n\t\tnew Point(20, 10).save();\n\n\t\tList<Point> points = Point.findByXandY(20, 10);\n\n\t\tassertEquals(1, points.size());\n\t\tassertEquals(points.get(0).x, 20);\n\t\tassertEquals(points.get(0).y, 10);\n\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n public void case1_Position() {\r\n Position testPosition = new Position(-1, -2);\r\n\r\n }",
"@Test\n\tvoid testCheckCoordinates7() {\n\t\tassertTrue(DataChecker.checkCoordinate(-90));\n\t}",
"public void setPoint(Integer point) {\n this.point = point;\n }",
"@Test\r\n\tpublic void testLocation() {\r\n\t\tLocation l = new Location(3, 3);\r\n\t\tassertEquals(l.getCol(), 3);\r\n\t\tassertEquals(l.getRow(), 3);\r\n\t}",
"@Test\n public void typeTest() {\n // TODO: test type\n }",
"@Test\n public void typeTest() {\n // TODO: test type\n }",
"@Test\n public void typeTest() {\n // TODO: test type\n }",
"DataPointType createDataPointType();",
"public LocationPoint(int type, String latitude, String longitude, String title, String description) {\n this.latitude = latitude;\n this.longitude = longitude;\n this.type = type;\n this.title = title;\n this.description = description;\n }",
"public void testGetTagType_1_accuracy() {\n instance.setTagType(\"tagtype\");\n assertEquals(\"The type is not set properly.\", \"tagtype\", instance.getTagType());\n }",
"@Test\n\tpublic void testDistance() {\n\t\tCoordinate newBasic = new Coordinate(4,4);\n\t\tassertTrue(\"Correct distance\", newBasic.distance(basic2) == 5);\n\t}",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public MyPoint1(double x, int y) {\n this.x = x;\n this.y = y;\n }",
"@Test\n\tpublic void subPPTest(){\n\t\tPoint p1 = new Point(5,5);\n\t\tPoint p2 = new Point(2,2);\n\t\tXY r = p1.sub(p2);\n\t\tassertTrue(r.isOffs());\n\t\tassertFalse(r.isAbs());\n\t}",
"public PrimitivePropertyTest(String testName)\n {\n super(testName);\n }",
"public Point() {\n this.x = Math.random();\n this.y = Math.random();\n }",
"@Test\n\tvoid testCheckCoordinates6() {\n\t\tassertTrue(DataChecker.checkCoordinate(90));\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n public void case2_Position() {\r\n Position testPosition = new Position(6, 7);\r\n\r\n }",
"@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n assertTrue(this.board.isPositionValid(new Position(line, column)));\n }\n }\n }",
"@Test\n\tpublic void testNumberType() throws Exception {\n\t\tassertThat(0, is(0));\n\t}",
"@org.junit.Test\n public void getPointTestCurve1() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(20, 20));\n assertEquals(new Vector(10, 20), curve.getPoint(0));\n assertEquals(new Vector(20, 20), curve.getPoint(1));\n }",
"@Test\n\t\tpublic void canGiveMinotaurLocation() {\n\t\t\tPoint whereMinotaur = new Pointer(1,3);\n\t\t\tgameLoader.addMinotaur(whereMinotaur);\n\t\t\tPoint expected = whereMinotaur;\n\t\t\tPoint actual = gameSaver.wheresMinotaur();\n\t\t\t\n\t\t\tassertEquals(expected.across(), actual.across());\n\t\t\tassertEquals(expected.down(), actual.down());\n\t\t}",
"@Test\r\n\tpublic void testPrix() {\r\n\t\tassertEquals(4.50, plat.getPrix(), 0.001);\r\n\t}",
"@Test\n\tpublic void dotProductTest() {\n\t\tassertEquals((long) point.dot(point1), 57500);\n\t}",
"public double comparePoints(KdTreeST<Value>.Node node, Point2D p, boolean test) {\n\t\tif (test) {\n\t\t\treturn Double.compare(p.x(), node.point.x());\n\t\t} else {\n\t\t\treturn Double.compare(p.y(), node.point.y());\n\t\t}\n\n\t}",
"public Point(float x, float y)\n {\n this.x = x;\n this.y = y;\n }",
"public static void printPoint(Point<? extends Number> point)\r\n {\r\n System.out.println(\"X Coordinate: \" + point.getX());\r\n System.out.println(\"Y Coordinate: \" + point.getY());\r\n }",
"public Point getPoint(){\n\t\treturn _point;\n\t}",
"public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }"
]
| [
"0.6961049",
"0.68580943",
"0.6312498",
"0.63086283",
"0.6279404",
"0.62431157",
"0.6096818",
"0.6096818",
"0.60328907",
"0.6017686",
"0.6008273",
"0.59986067",
"0.5975305",
"0.5952036",
"0.594958",
"0.5934172",
"0.59340185",
"0.5908056",
"0.5906925",
"0.5866726",
"0.58542943",
"0.5835507",
"0.58316237",
"0.5818075",
"0.580759",
"0.57951236",
"0.5793899",
"0.5778752",
"0.57774377",
"0.5776336",
"0.57734054",
"0.5770835",
"0.57706696",
"0.5760153",
"0.5750357",
"0.5739915",
"0.57283306",
"0.571901",
"0.5712198",
"0.568576",
"0.5683631",
"0.56831837",
"0.56814134",
"0.5674571",
"0.56610304",
"0.5657247",
"0.565708",
"0.5651491",
"0.56510085",
"0.56461936",
"0.5643206",
"0.56431913",
"0.5640572",
"0.56367594",
"0.56331193",
"0.5613822",
"0.56085736",
"0.5600574",
"0.5592075",
"0.55859935",
"0.5580008",
"0.557902",
"0.5577804",
"0.55722815",
"0.5559598",
"0.5555778",
"0.555573",
"0.55466765",
"0.5537205",
"0.552827",
"0.55143744",
"0.55035853",
"0.5503216",
"0.5503216",
"0.5503216",
"0.5493549",
"0.54911023",
"0.54880524",
"0.54865015",
"0.5485551",
"0.5485551",
"0.5485551",
"0.5485551",
"0.5485551",
"0.5476805",
"0.5476739",
"0.54672956",
"0.5464893",
"0.54629636",
"0.5460432",
"0.5459445",
"0.5457954",
"0.5447505",
"0.54354656",
"0.54348105",
"0.54331696",
"0.54284054",
"0.5422745",
"0.5422646",
"0.5422153",
"0.5421093"
]
| 0.0 | -1 |
Creates a new BoardFactory that will create a board with the provided background sprites. | public BoardFactory(PacManSprites spriteStore) {Collect.Hit("BoardFactory.java","BoardFactory(PacManSprites spriteStore)");this.sprites = spriteStore; Collect.Hit("BoardFactory.java","BoardFactory(PacManSprites spriteStore)", "689");} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Texture createBackground() {\n Pixmap backgroundPixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n backgroundPixmap.setColor(0, 0, 0, 0.3f);\n backgroundPixmap.fill();\n Texture texture = new Texture(backgroundPixmap);\n backgroundPixmap.dispose();\n return texture;\n }",
"public void createBackground() {\n Sprite bg = this.levelInfo.getBackground();\n this.sprites.addSprite(bg);\n }",
"public Square createGround() {Collect.Hit(\"BoardFactory.java\",\"createGround()\"); Collect.Hit(\"BoardFactory.java\",\"createGround()\", \"1746\");return new Ground(sprites.getGroundSprite()) ; }",
"MainBoard createMainBoard();",
"@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}",
"private void createBackground()\n {\n GreenfootImage background = getBackground();\n background.setColor(Color.BLACK);\n background.fill();\n }",
"private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }",
"public Board<?> makeBoard() throws EscapeException {\n\t\tswitch (bi.getCoordinateId()) {\n\t\t\tcase HEX:\n\t\t\t\treturn makeHexBoard();\n\t\t\tcase ORTHOSQUARE:\n\t\t\t\treturn makeOrthoBoard();\n\t\t\tcase SQUARE:\n\t\t\t\treturn makeSquareBoard();\n\t\t\tdefault:\n\t\t\t\tthrow new EscapeException(\"Board does not exist!\");\n\t\t}\n\t}",
"public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }",
"Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}",
"private void initBackGround() {\n Entity walls = Entities.makeScreenBounds(100);\n walls.setType(PinballTypes.WALL);\n walls.addComponent(new CollidableComponent(true));\n getGameWorld().addEntity(walls);\n\n Entities.builder()\n .viewFromTexture(\"piñi.jpg\")\n .buildAndAttach();\n\n// adds bottom part of table, shared with all tables\n// getGameWorld().addEntity(factory.bottomLeft());\n// getGameWorld().addEntity(factory.bottomRight());\n }",
"public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}",
"private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/[email protected]\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/[email protected]\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }",
"public abstract void createBoard();",
"public org.politaktiv.map.infrastructure.model.Background create(\n\t\tlong backgroundId);",
"public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }",
"private Background InitBackground()\r\n {\r\n \tBoundingSphere worldBounds = new BoundingSphere(\r\n \t\t new Point3d( 0.0, 0.0, 0.0 ), // Center\r\n \t\t 1000000000000000000000.0 ); // Extent\r\n \t\t\r\n \t// Set the background color and its application bounds\r\n \tbg = new Background( );\r\n \tbg.setColor( backgroundColor );\r\n \tbg.setCapability( Background.ALLOW_COLOR_WRITE );\r\n \tbg.setCapability( Background.ALLOW_COLOR_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_WRITE );\r\n \tbg.setApplicationBounds( worldBounds );\r\n \t\r\n \treturn bg;\r\n }",
"public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }",
"public Sprite getBackground() {\r\n return new BackGround4();\r\n }",
"Sprite getBackground();",
"private void createWalls(){\n\t \tfloat wallWidth = GameRenderer.BOARD_WIDTH ;\n\t \tfloat wallHeight = GameRenderer.BOARD_HEIGHT ;\n\t \tint offset = -2;\n\t \tint actionBaOffset = 2;\n\t \t\n\t \t//Left Wall\n\t \tnew SpriteWall(0, actionBaOffset, 0, wallHeight+offset);\n\t \t\n\t \t//Right Wall\n\t \tnew SpriteWall(wallWidth+offset, actionBaOffset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t \t//Top Wall\n\t \tnew SpriteWall(0, actionBaOffset, wallWidth+offset, actionBaOffset);\n\t \t\n\t \t//Bottom Wall\n\t \tnew SpriteWall(0, wallHeight+offset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t }",
"public IImage createCheckerboard() {\n List<List<Pixel>> grid = new ArrayList<>();\n for (int i = 0; i < this.height; i++) {\n List<Pixel> row;\n // alternating between making rows starting with black or white tiles\n if (i % 2 == 0) {\n // start white\n for (int j = 0; j < this.tileSize; j++) {\n row = createRow(255, 0, (i * this.tileSize) + j);\n grid.add(row);\n }\n }\n else {\n // start black\n for (int m = 0; m < this.tileSize; m++) {\n row = createRow(0, 255, (i * this.tileSize) + m);\n grid.add(row);\n }\n }\n }\n return new Image(grid, 255);\n }",
"public DisplayBoardPanel(Board board, List<Room> rooms, boolean displayRoomPictures, String backgroundImageFilename, Color backgroundColor) {\n\t\tsuper(new GridLayout(board.getHeight(), board.getWidth(), 0, 0));\n\t\tthis.board = board;\n\t\t\n\t\troomIcons = new ArrayList<>();\n\t\troomTileStartPositions = new ArrayList<>();\n\t\troomTileEndPositions = new ArrayList<>();\n\t\t\n\t\tresizeBoardDisplay(575, 600);\n\t\t\n\t\tfor (DisplayTile tile : board.getTiles()) {\n\t\t\ttile.setPreferredSize(new Dimension(tileSize, tileSize));\n\t\t\tadd(tile);\n\t\t\tif (tile.isRemovedTile())\n\t\t\t\ttile.setVisible(false);\n\t\t\tfor (MouseListener listener : tile.getMouseListeners())\n\t\t\t\ttile.removeMouseListener(listener);\n\t\t}\n\t\n\t\tfor (Room room : rooms) {\n\t\t\tif (room.getPictureName() == null || !displayRoomPictures) {\n\t\t\t\tLinkedList<DisplayTile> roomTiles = board.getRoomTiles(room);\n\t\t\t\tfor (DisplayTile roomTile : roomTiles) {\n\t\t\t\t\tDisplayTile[] adjacentTiles = board.getAdjacentTiles(roomTile);\n\t\t\t\t\tDisplayTile northTile = adjacentTiles[DisplayTile.Direction.NORTH.getOrdinal()];\n\t\t\t\t\tDisplayTile westTile = adjacentTiles[DisplayTile.Direction.WEST.getOrdinal()];\n\t\t\t\t\tDisplayTile southTile = adjacentTiles[DisplayTile.Direction.SOUTH.getOrdinal()];\n\t\t\t\t\tDisplayTile eastTile = adjacentTiles[DisplayTile.Direction.EAST.getOrdinal()];\n\t\t\t\t\t\n\t\t\t\t\tint topBorderThickness = (northTile == null || !roomTiles.contains(northTile)) ? 2 : 0;\n\t\t\t\t\tint leftBorderThickness = (westTile == null || !roomTiles.contains(westTile)) ? 2 : 0;\n\t\t\t\t\tint bottomBorderThickness = (southTile == null || !roomTiles.contains(southTile)) ? 2 : 0;\n\t\t\t\t\tint rightBorderThickness = (eastTile == null || !roomTiles.contains(eastTile)) ? 2 : 0;\n\t\t\t\t\troomTile.setBorder(BorderFactory.createMatteBorder(topBorderThickness, leftBorderThickness, bottomBorderThickness, rightBorderThickness, Color.BLACK));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint smallestRow = Board.MAX_HEIGHT;\n\t\t\t\tint smallestCol = Board.MAX_WIDTH;\n\t\t\t\tint largestRow = -1;\n\t\t\t\tint largestCol = -1;\n\t\t\t\tfor (DisplayTile roomTile : board.getRoomTiles(room)) {\n\t\t\t\t\tBoard.TilePosition tilePosition = board.getTilePosition(roomTile);\n\t\t\t\t\tif (tilePosition.row < smallestRow) smallestRow = tilePosition.row;\n\t\t\t\t\tif (tilePosition.col < smallestCol) smallestCol = tilePosition.col;\n\t\t\t\t\tif (tilePosition.row > largestRow) largestRow = tilePosition.row;\n\t\t\t\t\tif (tilePosition.col > largestCol) largestCol = tilePosition.col;\n\t\t\t\t}\n\t\t\t\tif (smallestRow >= Board.MAX_HEIGHT || smallestCol >= Board.MAX_WIDTH)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\troomIcons.add(ImageHelper.getTransparentIcon(room.getPictureName(), room.getTransparentPictureColor()));\n\t\t\t\troomTileStartPositions.add(new Board.TilePosition(smallestRow, smallestCol));\n\t\t\t\troomTileEndPositions.add(new Board.TilePosition(largestRow, largestCol));\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (backgroundImageFilename != null) {\n\t\t\tsetBackground(Color.BLACK);\n\t\t\tbackgroundImage = ImageHelper.getTransparentIcon(backgroundImageFilename, backgroundColor);\n\t\t}\n\t\telse\n\t\t\tsetBackground(backgroundColor);\n\t}",
"public static Background createBackground(String filePath) {\n BackgroundImage backdrop = new BackgroundImage(new Image(\n MenuGUI.class.getResourceAsStream(filePath),\n 1080, 680, false, true),\n BackgroundRepeat.REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT,\n BackgroundSize.DEFAULT);\n return new Background(backdrop);\n }",
"public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }",
"public Background(GameLevel w, int width, int height) {\n super(w, 800, 800);\n this.world = w;\n //this.gameLevel = gameLevel;\n try {\n //All images being read from their respective image files and being assigned to variables.\n bg = ImageIO.read(new File(\"data/bg.png\"));\n bg2 = ImageIO.read(new File(\"data/bg2.png\"));\n bg3 = ImageIO.read(new File(\"data/bg3.png\"));\n fg = ImageIO.read(new File(\"data/clouds.png\"));\n win = ImageIO.read(new File(\"data/win.jpg\"));\n dead = ImageIO.read(new File(\"data/dead.jpg\"));\n scoreBoard = ImageIO.read(new File(\"data/scoreBoard.png\"));\n bulletBillSelect = ImageIO.read(new File(\"data/GUI/billSelect.png\"));\n bulletSelect = ImageIO.read(new File(\"data/GUI/bulletSelect.png\"));\n arrow = ImageIO.read(new File(\"data/GUI/arrow.png\"));\n health = ImageIO.read(new File(\"data/GUI/health.png\"));\n black = ImageIO.read(new File(\"data/GUI/black.jpg\"));\n\n\n } catch (IOException ex) {\n System.out.println(\"System Error\");\n }\n }",
"Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}",
"public static Board create(final Class board) {\n if (board.equals(standard)) {\n return new StandardBoard();\n } else if (board.equals(gothic)) {\n return new Gothic();\n } else if (board.equals(empty)) {\n return new EmptyBoard();\n } else {\n /* Throw exception? */\n return null;\n }\n }",
"@Override\r\n public void init() {\n Image bgImage = assets().getImage(\"images/bg.png\");\r\n ImageLayer bgLayer = graphics().createImageLayer(bgImage);\r\n graphics().rootLayer().add(bgLayer);\r\n\r\n // Create tiles\r\n tiles = new int[BOARD_MAX_WIDTH][BOARD_MAX_HEIGHT];\r\n printTiles();\r\n\r\n // Place mines at random positions\r\n int placedMines = 0;\r\n Random r = new Random();\r\n while (placedMines < MINES) {\r\n int row = r.nextInt(BOARD_MAX_WIDTH);\r\n int col = r.nextInt(BOARD_MAX_HEIGHT);\r\n if (tiles[row][col] == TILE_EMPTY) {\r\n tiles[row][col] = TILE_MINE;\r\n placedMines++;\r\n }\r\n }\r\n printTiles();\r\n\r\n // Count number of mines around blank tiles\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n // Check surrounding tiles if mine\r\n if (tiles[row][col] == TILE_MINE) {\r\n for (int rowCheck = -1; rowCheck <= 1; rowCheck++) {\r\n for (int colCheck = -1; colCheck <= 1; colCheck++) {\r\n if (tileExistAndNotMine(row+rowCheck, col+colCheck)) {\r\n tiles[row+rowCheck][col+colCheck]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n printTiles();\r\n\r\n // Create tile map\r\n Map<Integer, TileType> tileMap = new HashMap<Integer, TileType>();\r\n tileMap.put(0, TileType.EMPTY);\r\n tileMap.put(1, TileType.ONE);\r\n tileMap.put(2, TileType.TWO);\r\n tileMap.put(3, TileType.THREE);\r\n tileMap.put(4, TileType.FOUR);\r\n tileMap.put(5, TileType.FIVE);\r\n tileMap.put(6, TileType.SIX);\r\n tileMap.put(7, TileType.SEVEN);\r\n tileMap.put(8, TileType.EIGHT);\r\n tileMap.put(9, TileType.MINE);\r\n\r\n // Create a GroupLayer to hold the sprites\r\n GroupLayer groupLayer = graphics().createGroupLayer();\r\n graphics().rootLayer().add(groupLayer);\r\n\r\n // Create graphic tiles\r\n tileList = new ArrayList<Tile>();\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n Tile tile = new Tile(groupLayer, col*Tile.SIZE, row*Tile.SIZE, tileMap.get(tiles[row][col]), row, col);\r\n tileList.add(tile);\r\n }\r\n }\r\n\r\n // Timer text\r\n CanvasImage canvasImage = graphics().createImage(160, 70);\r\n timerLabel = canvasImage.canvas();\r\n ImageLayer countDownLayer = graphics().createImageLayer(canvasImage);\r\n countDownLayer.setTranslation(180, 10);\r\n graphics().rootLayer().add(countDownLayer);\r\n\r\n // Cleared tiles text\r\n CanvasImage clearedTilesImage = graphics().createImage(160, 70);\r\n clearedTilesLabel = clearedTilesImage.canvas();\r\n ImageLayer clearedTilesLayer = graphics().createImageLayer(clearedTilesImage);\r\n clearedTilesLayer.setTranslation(180, 30);\r\n graphics().rootLayer().add(clearedTilesLayer);\r\n updateClearedTiles();\r\n }",
"public ChessBoard() {\r\n\t\t\tsuper();\r\n\t\t\ttry {\r\n\t\t\t\tbgImage = ImageIO.read(new File(\"人人\\\\棋盘背景.png\"));\r\n\t\t\t\twImage = ImageIO.read(new File(\"人人\\\\白棋子.png\"));\r\n\t\t\t\tbImage = ImageIO.read(new File(\"人人\\\\黑棋子.png\"));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tthis.repaint();\r\n\t\t}",
"RasPiBoard createRasPiBoard();",
"@Override\n public void createBoard(List<List<Boolean>> mines) {\n dims = new Point(\n Util.clamp(mines.get(0).size(), MIN_DIM_X, MAX_DIM_X),\n Util.clamp(mines.size(), MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Create Cells based on mines\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n ArrayList<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), mines.get(i).get(j)));\n }\n cells.add(oneRow);\n }\n\n updateCellNumbers();\n }",
"@RestrictTo(Scope.LIBRARY_GROUP)\n @NonNull\n public static Background fromProto(\n @NonNull ModifiersProto.Background proto, @Nullable Fingerprint fingerprint) {\n return new Background(proto, fingerprint);\n }",
"private void resetBackgroundSprite(Texture newSpriteTexture) {\n backgroundSprite = new Sprite(newSpriteTexture);\n backgroundSprite.setSize(screenWidth, screenHeight);\n backgroundSprite.setPosition(0, 0);\n }",
"public Board(int dimensions){\n this.dimensions = dimensions;\n createBoard(dimensions);\n this.status = Status.CREATED;\n this.hitsLeft = 15;\n }",
"public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }",
"public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }",
"public IntelMainboard createMainboard() {\n\t\treturn new IntelMainboard();\n\t}",
"public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }",
"public Board() {\n initialize(3, null);\n }",
"Board() {\n this.cardFactory = new CardFactory(this);\n }",
"public Bitmap generateBackground()\n {\n Bitmap bg = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n Canvas temp = new Canvas(bg);\n for (int i = 0; i < width/blockWidth; i++)\n {\n for (int j = 0; j < height/blockHeight; j++)\n {\n Random rand = new Random();\n int val = rand.nextInt(5);\n\n if (val == 0)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_1), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n\n }\n else if (val == 1)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_2), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 2)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_3), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 3)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_4), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 4)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_5), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n\n }\n }\n\n return bg;\n\n }",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }",
"@Override\n public Sprite createSprite(TSSGame game) {\n return new Sprite();\n }",
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }",
"private static void fillBorders()\n\t{\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tif(i==0 || i==board.length-1)\n\t\t\t\tArrays.fill(board[i], Cells.WALL);\n\t\t\telse\n\t\t\t{\n\t\t\t\tboard[i][0]=Cells.WALL;\n\t\t\t\tboard[i][board[i].length-1]=Cells.WALL;\n\t\t\t}\n\t\t}\n\t}",
"public static void drawBackground(MatrixStack matrices, ContainerScreen<?> screen, ResourceLocation background) {\n RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n screen.getMinecraft().getTextureManager().bindTexture(background);\n screen.blit(matrices, screen.guiLeft, screen.guiTop, 0, 0, screen.xSize, screen.ySize);\n }",
"@Override\n public Sprite createSprite(SnakeSmash game) {\n Texture texture = game.getAssetManager().get(\"pinkSquare.png\");\n return new Sprite(texture, texture.getWidth(), texture.getHeight());\n }",
"protected Background background () {\n return Background.bordered(0xFFCCCCCC, 0xFFCC99FF, 5).inset(5);\n }",
"public static StackPane createBoard() {\n StackPane stackPane = new StackPane();\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n Tile tile = new Tile();\n Coordinates coordinates = new Coordinates(i, j);\n tile.setTextValue(\"\");\n tile.setTranslateX(i * 50);\n tile.setTranslateY(j * 50);\n tile.setEditable(true);\n tile.setTileId(coordinates);\n stackPane.getChildren().add(tile);\n tiles.put(coordinates, tile);\n }\n }\n return stackPane;\n }",
"public ChessRunner(){\n\t\taddMouseListener(this);\n\t\tfor(int i=0;i<8;i++){\n\t\t\tfor (int j=1;j<7;j++)\n\t\t\t\tif(j==1)\n\t\t\t\t\tboard[i][j] = new BlackPawn();\n\t\t\t\telse if(j==6)\n\t\t\t\t\tboard[i][j] = new WhitePawn();\n\t\t\t\telse\n\t\t\t\t\tboard[i][j]= new BlankPiece();\n\t\t}\n\t\tboard[1][0] = new BlackKnight();\n\t\tboard[6][0] = new BlackKnight();\n\t\tboard[0][0] = new BlackRook();\n\t\tboard[7][0] = new BlackRook();\n\t\tboard[2][0] = new BlackBishop();\n\t\tboard[5][0] = new BlackBishop();\n\t\tboard[4][0] = new BlackKing();\n\t\tboard[3][0] = new BlackQueen();\n\t\t\n\t\tboard[1][7] = new WhiteKnight();\n\t\tboard[6][7] = new WhiteKnight();\n\t\tboard[0][7] = new WhiteRook();\n\t\tboard[7][7] = new WhiteRook();\n\t\tboard[2][7] = new WhiteBishop();\n\t\tboard[5][7] = new WhiteBishop();\n\t\tboard[4][7] = new WhiteKing();\n\t\tboard[3][7] = new WhiteQueen();\n\t\t\n\t}",
"public void initGameboardPanel(){\n Image image = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"/board/Masters of Renaissance_PlayerBoard (11_2020)-1.png\"));\n this.backgroundImage = image.getScaledInstance(gameboardWidth,gameboardHeight,0);\n\n this.setSize(gameboardWidth,gameboardHeight);\n this.setBounds(0,0,gameboardWidth,gameboardHeight);\n this.setLayout(null);\n //this.addMouseListener(this);\n this.setVisible(true);\n }",
"@Override\r\n public Sprite getBackground() {\r\n return new Level3Background();\r\n }",
"public static int[][] createBoard() {\r\n\t\t\r\n\t\tint[][] board = new int [8][8];\r\n\t\t//printing the red solduers\r\n\t\tfor (int line =0,column=0;line<3;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printing the blu solduers\r\n\t\tfor (int line =5,column=0;line<8;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = -1;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn board;\r\n\t}",
"public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }",
"private Sprite createSprite(Image image)\n\t{\n\t\tSprite sprite = new Sprite(image, image.getWidth(), image.getHeight());\n\t\treturn sprite;\n\t}",
"private void testBoardCreation() {\n for (int r = 0; r < Constants.BOARD_GRID_ROWS; r++) {\n for (int c = 0; c < Constants.BOARD_GRID_COLUMNS; c++) {\n Vector2 tokenLocation = this.mBoardLevel.getCenterOfLocation(r, c);\n Image tokenImage = new Image(this.mResources.getToken(PlayerType.RED));\n tokenImage.setPosition(tokenLocation.x, tokenLocation.y);\n this.mStage.addActor(tokenImage);\n }\n }\n }",
"private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }",
"private void drawSquarePlayerZoneBackground(Canvas canvas) {\n\t\t\n\t\tint left = PLAY_AREA_LEFT_PADDING; \n\t\tint top = PLAY_AREA_UP_PADDING;\n\t\tint right = left + PLAY_AREA_WIDTH_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bottom = top + PLAY_AREA_HEIGHT_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bcolor = 0;\n\t\t\n\t\tbcolor = getResources().getColor(R.color.BG);\n\t\t\n\t\tfillpaint.setColor(bcolor);\n\t\tstrokepaint.setColor(getResources().getColor(R.color.PLAYZONESTROKE));\n\t\tstrokepaint.setStrokeWidth(1);\n\t\t\n\t\tcanvas.drawRect(left, top, right, bottom, fillpaint);\n\t\tcanvas.drawRect(left, top, right, bottom, strokepaint);\n\t}",
"public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }",
"public void makeBody()\n {\n Texture text;\n if(bounds.getHeight()<bounds.getWidth()) {\n text = new Texture(\"img/wall.jpg\");\n }else{\n text = new Texture(\"img/wall2.jpg\");\n }\n\n Sprite wallSprite;\n wallSprite = new Sprite(text);\n wallSprite.setSize(bounds.getWidth(),bounds.getHeight());\n wallSprite.setOrigin(bounds.getWidth()/2, bounds.getHeight()/2);\n\n BodyDef bodydef = new BodyDef();\n bodydef.type = BodyType.StaticBody;\n bodydef.position.set(position.x,position.y);\n\n PolygonShape shape = new PolygonShape();\n shape.setAsBox(bounds.width/2, bounds.height/2);\n\n FixtureDef def = new FixtureDef();\n def.shape = shape;\n def.friction = 0.5f;\n def.restitution = 0;\n wall = world.createBody(bodydef);\n wall.createFixture(def);\n wall.getFixtureList().get(0).setUserData(\"w\");\n wall.setUserData(wallSprite);\n\n shape.dispose();\n }",
"public static void createBoard() \n\t{\n\t\tfor (int i = 0; i < tictactoeBoard.length; i++) \n\t\t{\n\t\t\ttictactoeBoard[i] = '-';\n\t\t}\n\t}",
"public XOBoard() {\n\t\t// initialise the boards\n\t\tboard = new int[4][4];\n\t\trenders = new XOPiece[4][4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = EMPTY;\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\tcurrent_player = XPIECE;\n\n\t\t// initialise the rectangle and lines\n\t\tback = new Rectangle();\n\t\tback.setFill(Color.GREEN);\n\t\th1 = new Line();\n\t\th2 = new Line();\n\t\th3 = new Line();\n\t\tv1 = new Line();\n\t\tv2 = new Line();\n\t\tv3 = new Line();\n\t\th1.setStroke(Color.WHITE);\n\t\th2.setStroke(Color.WHITE);\n\t\th3.setStroke(Color.WHITE);\n\t\tv1.setStroke(Color.WHITE);\n\t\tv2.setStroke(Color.WHITE);\n\t\tv3.setStroke(Color.WHITE);\n\n\t\t// the horizontal lines only need the endx value modified the rest of //\n\t\t// the values can be zero\n\t\th1.setStartX(0);\n\t\th1.setStartY(0);\n\t\th1.setEndY(0);\n\t\th2.setStartX(0);\n\t\th2.setStartY(0);\n\t\th2.setEndY(0);\n\t\th3.setStartX(0);\n\t\th3.setStartY(0);\n\t\th3.setEndY(0);\n\n\t\t// the vertical lines only need the endy value modified the rest of the\n\t\t// values can be zero\n\t\tv1.setStartX(0);\n\t\tv1.setStartY(0);\n\t\tv1.setEndX(0);\n\t\tv2.setStartX(0);\n\t\tv2.setStartY(0);\n\t\tv2.setEndX(0);\n\t\tv3.setStartX(0);\n\t\tv3.setStartY(0);\n\t\tv3.setEndX(0);\n\n\t\t// setup the translation of one cell height and two cell heights\n\t\tch_one = new Translate(0, 0);\n\t\tch_two = new Translate(0, 0);\n\t\tch_three = new Translate(0, 0);\n\t\th1.getTransforms().add(ch_one);\n\t\th2.getTransforms().add(ch_two);\n\t\th3.getTransforms().add(ch_three);\n\n\t\t// setup the translation of one cell width and two cell widths\n\t\tcw_one = new Translate(0, 0);\n\t\tcw_two = new Translate(0, 0);\n\t\tcw_three = new Translate(0, 0);\n\t\tv1.getTransforms().add(cw_one);\n\t\tv2.getTransforms().add(cw_two);\n\t\tv3.getTransforms().add(cw_three);\n\n\t\t// add the rectangles and lines to this group\n\t\tgetChildren().addAll(back, h1, h2, h3, v1, v2, v3);\n\n\t}",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public Entity createMenuBg(Vector2 position, float width, float height) {\n Sprite sprite = new Sprite(BLACK_BOX, width, height);\n sprite.setAlpha(0.7f);\n\n ViewportSpaceSprite spriteComponent = new ViewportSpaceSprite(sprite);\n Position positionComponent = new Position(position.x, position.y);\n\n return createEntity(spriteComponent, positionComponent);\n }",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"@Override\n public Sprite createSprite(MyCumulusGame game) {\n walkingAnimation = createWalkingAnimation(game);\n jumpingAnimation = createJumpingAnimation(game);\n\n return new Sprite(jumpingAnimation);\n }",
"private void fillBoardWithCells(){\n double posx = MyValues.HORIZONTAL_VALUE*0.5*MyValues.HEX_SCALE + MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE;\n double posy = 2*MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE ;\n HexCell startCell = new HexCell(0,0, this);\n startCell.changePosition(posx, posy);\n boardCells[0][0] = startCell;\n for (int i = 0; i< x-1; i++) {\n HexCell currentCell = new HexCell(i+1, 0, this);\n boardCells[i+1][0] = currentCell;\n //i mod 2 = 0: Bottom\n if (i % 2 == 0) {\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT_RIGHT );\n } else {\n //i mod 2 =1: Top\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.TOP_RIGHT );\n }\n }\n for(int i = 0; i < x; i++){\n for(int j = 0; j < y-1; j++){\n HexCell currentCell = new HexCell(i, j+1, this);\n //System.out.println(Integer.toString(i) + Integer.toString(j));\n boardCells[i][j+1] = currentCell;\n boardCells[i][j].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT);\n }\n }\n }",
"@NonNull\n public Background build() {\n return new Background(mImpl.build(), mFingerprint);\n }",
"private void initSubSprites() {\n\n subSprites = new Hashtable<>();\n\n for (BrushType cT : BrushType.values()) {\n\n int x = cT.subSpr.x;\n int y = cT.subSpr.y;\n\n BufferedImage sprite = spriteSheet.getSubimage(x, y, 8, 8);\n\n subSprites.put(cT, sprite);\n }\n }",
"public static Board createBoard(String boardConfigFile) throws IOException {\n BufferedReader br = null;\n\n // 101 squares, start at 1 index to make it more similar to a game board\n Square[] squares = new Square[101];\n for(int i=0; i<squares.length; i++) {\n // Fill all squares with default value\n squares[i] = new Square(i, 'N', 0);\n }\n\n // Start reading in the board config for chutes/ladders event squares\n try {\n br = new BufferedReader(new FileReader(boardConfigFile));\n String line = \"\";\n int lineCount = 0;\n while((line = br.readLine()) != null) {\n if (lineCount > 0) {\n String[] data = line.split(\",\");\n // data[0] = square # (String) * Convert to int\n // data[1] = eventType char (String) * Convert to char\n // data[2] = offset # (String) * Convert to int\n // data[3] = endSquare # (String) * Not needed.\n\n int eventSquare = Integer.parseInt(data[0]);\n char eventType = data[1].toUpperCase().charAt(0);\n int eventOffset = Integer.parseInt(data[2]);\n Square curr = new Square(eventSquare, eventType, eventOffset);\n\n squares[eventSquare] = curr;\n }\n\n lineCount++;\n }\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return new Board(squares);\n }",
"private void initBackground() {\n\t\tfor (int i = numOfParticles - World.getObjects().size() - 1; i >= 0; i--) {\n\t\t\tfloat x = (float) (Math.random()\n\t\t\t\t\t* (Screen.getWidth() + LEDLogo.WIDTH * 2) - LEDLogo.WIDTH), y = (float) (Math\n\t\t\t\t\t.random() * (Screen.getHeight() + LEDLogo.HEIGHT * 2) - LEDLogo.HEIGHT);\n\t\t\tWorld.add(new LEDLogo(x, y, (float) Math.random() * 0.8f + 0.2f));\n\t\t}\n\t}",
"private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }",
"public AIPlayer(Board board) {\n cells = board.squares;\n }",
"private boolean initBackgroundImage(MinesweeperView frame) {\r\n try {\r\n int width = (int) frame.getDim().getWidth();\r\n int height = (int) frame.getDim().getHeight();\r\n Background image = new Background(new File(\"../Asset/explosion.jpg\"), 0, 0, width, height);\r\n frame.add(image);\r\n } catch (IOException event) {\r\n System.err.println(\"Image Not Found\");\r\n return false;\r\n }\r\n return true;\r\n }",
"public static GameBoard createGameBoard(Context context, Bitmap bitmap,\n\t\t\tTableLayout parentLayout, int width, int height, short gridSize,\n\t\t\tTextView moveTextView) {\n\n\t\tboard = new GameBoard(context, bitmap, parentLayout, width, height,\n\t\t\t\tgridSize, moveTextView);\n\n\t\treturn board;\n\t}",
"private void randBackground(){\n int index = (int)(Math.random()*FRAME_COUNT);\n TextureRegion newBackground = frames.get(index);\n for (Background background : backgrounds) {\n background.setFrame(newBackground);\n }\n }",
"private void drawBackgroundGrid(Canvas canvas) {\n Resources resources = getResources();\n Drawable backgroundCell = resources.getDrawable(R.drawable.cell_rectangle);\n // Outputting the game grid\n for (int xx = 0; xx < game.numSquaresX; xx++) {\n for (int yy = 0; yy < game.numSquaresY; yy++) {\n int sX = startingX + gridWidth + (cellSize + gridWidth) * xx;\n int eX = sX + cellSize;\n int sY = startingY + gridWidth + (cellSize + gridWidth) * yy;\n int eY = sY + cellSize;\n\n drawDrawable(canvas, backgroundCell, sX, sY, eX, eY);\n }\n }\n }",
"public static Board3 createEntity(EntityManager em) {\n Board3 board3 = new Board3()\n .title(DEFAULT_TITLE)\n .contents(DEFAULT_CONTENTS)\n .createdDate(DEFAULT_CREATED_DATE);\n return board3;\n }",
"private void initBoard() {\n initCommands();\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension((int) (W * Application.scale), (int) (H * Application.scale)));\n\n commandClasses.forEach((cmdstr) -> {\n try {\n Object obj = Class.forName(cmdstr).getDeclaredConstructor().newInstance();\n Command cmd = (Command) obj;\n connectCommand(cmd);\n System.out.println(\"Loaded \" + cmdstr);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n });\n\n Particle.heatmap.addColor(0, Color.GREEN);\n Particle.heatmap.addColor(50, Color.YELLOW);\n Particle.heatmap.addColor(100, Color.RED);\n\n Particle.slopemap.addColor(-5, Color.RED);\n Particle.slopemap.addColor(0, Color.WHITE);\n Particle.slopemap.addColor(5, Color.GREEN);\n\n setFocusable(true);\n }",
"public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }",
"public void newBoard(LiteBoard board) {\n }",
"private void drawBackground() {\n g2.setColor(SquareRenderer.BLANK_CELL_COLOR);\n g2.fillRect(BORDER_SIZE, BORDER_SIZE, BOARD_SIZE, BOARD_SIZE);\n }",
"public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}",
"public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}",
"public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }",
"public Board(String boardName) {\n\n /*\n * Created according to the specs online.\n */\n if (boardName.equals(\"default\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 1.25));\n Gadget circle = new CircleBumper(1, 10, new Gadget[] {});\n Gadget triangle = new TriangleBumper(12, 15, 180, new Gadget[] {});\n Gadget square1 = new SquareBumper(0, 17, new Gadget[] {});\n Gadget square2 = new SquareBumper(1, 17, new Gadget[] {});\n Gadget square3 = new SquareBumper(2, 17, new Gadget[] {});\n Gadget circle1 = new CircleBumper(7, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(8, 18, new Gadget[] {});\n Gadget circle3 = new CircleBumper(9, 18, new Gadget[] {});\n this.balls = new Ball[] { ball1 };\n this.gadgets = new Gadget[] { circle, triangle, square1, square2,\n square3, circle1, circle2, circle3, top, bottom, left,\n right };\n\n } else if (boardName.equals(\"absorber\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 15.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 5.25));\n Gadget absorber = new Absorber(0, 18, 20, 2, new Gadget[] {});\n Gadget triangle = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(1, 10, new Gadget[] { absorber });\n Gadget circle2 = new CircleBumper(2, 10, new Gadget[] { absorber });\n Gadget circle3 = new CircleBumper(3, 10, new Gadget[] { absorber });\n Gadget circle4 = new CircleBumper(4, 10, new Gadget[] { absorber });\n Gadget circle5 = new CircleBumper(5, 10, new Gadget[] { absorber });\n this.balls = new Ball[] { ball1, ball2, ball3 };\n this.gadgets = new Gadget[] { absorber, triangle, circle1, circle2,\n circle3, circle4, circle5, top, left, right, bottom };\n }\n\n else if (boardName.equals(\"flippers\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(.25,\n 3.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(5.25,\n 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 3.25));\n Ball ball4 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 15.25, 3.25));\n Ball ball5 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Gadget left1 = new LeftFlipper(0, 8, 90, new Gadget[] {});\n Gadget left2 = new LeftFlipper(4, 10, 90, new Gadget[] {});\n Gadget left3 = new LeftFlipper(9, 8, 90, new Gadget[] {});\n Gadget left4 = new LeftFlipper(15, 8, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(5, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(7, 13, new Gadget[] {});\n Gadget circle3 = new CircleBumper(0, 5, new Gadget[] { left1 });\n Gadget circle4 = new CircleBumper(5, 5, new Gadget[] {});\n Gadget circle5 = new CircleBumper(10, 5, new Gadget[] { left3 });\n Gadget circle6 = new CircleBumper(15, 5, new Gadget[] { left4 });\n Gadget triangle1 = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget triangle2 = new TriangleBumper(10, 18, 180, new Gadget[] {});\n Gadget right1 = new RightFlipper(2, 15, 0, new Gadget[] {});\n Gadget right2 = new RightFlipper(17, 15, 0, new Gadget[] {});\n Gadget absorber = new Absorber(0, 19, 20, 1, new Gadget[] { right1,\n right2, new Absorber(0, 19, 20, 1, new Gadget[] {}) });\n this.balls = new Ball[] { ball1, ball2, ball3, ball4, ball5 };\n this.gadgets = new Gadget[] { left1, left2, left3, left4, circle1,\n circle2, circle3, circle4, circle5, circle6, triangle1,\n triangle2, right1, right2, absorber, top, bottom, left,\n right };\n } else {\n this.gadgets = new Gadget[] {};\n this.balls = new Ball[] {};\n }\n\n checkRep();\n }",
"public static Board getInstance() {\n\t\t\n\t\tif(boardObj == null)\n\t\t\tboardObj = new Board();\n\t\t\n\t\treturn boardObj;\n\t}",
"Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}",
"protected BattleshipBoard(int rows, int cols, int maxPlayer, Interaction interaction, Piece currentPiece, Pattern pattern, Color color) {\n\t\tsuper(rows, cols, maxPlayer, interaction, currentPiece, pattern, color);\n\t\tthis.shipBoard = new BattleshipPiece[rows][cols];\n\t\tthis.playerScore = new int[maxPlayer];\n\t}",
"public Board(Piece[][] bd) {\n\t\tb = new Piece[8][8];\n\t\t\n\t\tfor (byte r = 0; r < b.length; r++) {\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tif (bd[r][c] instanceof Pawn) {\n\t\t\t\t\tb[r][c] = new Pawn(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Knight) {\n\t\t\t\t\tb[r][c] = new Knight(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Bishop) {\n\t\t\t\t\tb[r][c] = new Bishop(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Rook) {\n\t\t\t\t\tb[r][c] = new Rook(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Queen) {\n\t\t\t\t\tb[r][c] = new Queen(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof King) {\n\t\t\t\t\tb[r][c] = new King(bd[r][c].getSide(), r, c, ((King) bd[r][c]).getCKS(), ((King) bd[r][c]).getCQS());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tb[r][c] = new Null(r, c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Block(Rectangle rectangle, Background background) {\r\n this.rectangle = new Rectangle(rectangle.getUpperLeft(), rectangle.getWidth(), rectangle.getHeight());\r\n this.background = background;\r\n this.borderColor = null;\r\n this.hitListeners = new ArrayList<>();\r\n }",
"private PImage createBG() {\n\t\tPImage image = new PImage(64, 64);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tl\"), 0, 0, 16, 16, 0, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 16, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 32, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tr\"), 0, 0, 16, 16, 48, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bl\"), 0, 0, 16, 16, 0, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 16, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 32, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_br\"), 0, 0, 16, 16, 48, 48, 16, 16);\n\t\treturn image;\t\t\n\t}",
"public void createNewGame() {\n\t\tfor(int n = 0; n < 8; n++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif ( n % 2 == j % BLACK_PAWN ) {\n\t\t\t\t\tif (n < 3)\n\t\t\t\t\t\tarr[n][j] = RED_PAWN;\n\t\t\t\t\telse if (n > 4)\n\t\t\t\t\t\tarr[n][j] = BLACK_PAWN;\n\t\t\t\t\telse\n\t\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t } \n\t\t\t\telse\n\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t\t}\n\t\t}\n\t}",
"public GameBoard createGameBoard(int nunb_rows,int mumb_cols, int numb_players,String[] playerNames ) {\n this.squareCount = nunb_rows * mumb_cols;\n\n //counter is used to add fields\n int counter = 0;\n\n //initializes the board as an array of fields of size \"fieldcount\"\n this.mySquares = new Square[squareCount];\n mySquares[0]=new FirstSquareImpl(1, this);\n Square square;\n for (int i=1; i<(squareCount-1); i++) {\n square = new SquareImpl(i+1, this);\n mySquares[i]=square;\n }\n mySquares[(squareCount-1)]=new LastSquareImpl(squareCount, this);\n this.lastSquare=mySquares[(squareCount-1)];\n mySquares[1]=new LadderImpl(2,6, this);\n mySquares[6]=new LadderImpl(7,9, this);\n mySquares[10]=new SnakeImpl(11,5, this);\n\n\n //initialises a queue of players and add numb_players to stack\n Player player;\n for (int i=0; i<numb_players; i++) {\n player = new PlayerImpl(playerNames[i], this.mySquares[0]);\n this.myPlayers.add(player);\n\n //add Player to first Square\n this.mySquares[0].enter(player);\n\n }\n return this;\n }",
"public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}",
"public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }"
]
| [
"0.59439445",
"0.5853144",
"0.5782191",
"0.56723917",
"0.5645936",
"0.5498398",
"0.5451358",
"0.54286987",
"0.538784",
"0.5340696",
"0.5327028",
"0.5297162",
"0.52824974",
"0.5253488",
"0.5253372",
"0.5252043",
"0.5242734",
"0.5196618",
"0.5156702",
"0.5155471",
"0.5119725",
"0.50972164",
"0.50895613",
"0.50845635",
"0.5069877",
"0.50566167",
"0.5013034",
"0.50031126",
"0.49780473",
"0.49721056",
"0.4950563",
"0.49309152",
"0.49271533",
"0.4915607",
"0.49070454",
"0.49019688",
"0.489819",
"0.489524",
"0.48945287",
"0.4887825",
"0.4879655",
"0.48632002",
"0.48474973",
"0.48409158",
"0.48404285",
"0.48322725",
"0.48262298",
"0.48222423",
"0.48010412",
"0.47941893",
"0.47858784",
"0.4780553",
"0.4776776",
"0.4766103",
"0.47568062",
"0.47552878",
"0.47548527",
"0.4746636",
"0.47462487",
"0.47448924",
"0.47439703",
"0.4728182",
"0.4704833",
"0.4701984",
"0.47006786",
"0.46893665",
"0.46844244",
"0.46829343",
"0.46752274",
"0.46586642",
"0.46522206",
"0.46401602",
"0.46399313",
"0.46315402",
"0.46307075",
"0.46279287",
"0.46267563",
"0.4622869",
"0.4621985",
"0.46164975",
"0.46150756",
"0.46123883",
"0.46088952",
"0.4606352",
"0.45992374",
"0.45971486",
"0.4595731",
"0.45935938",
"0.4591392",
"0.45894274",
"0.45859513",
"0.45819435",
"0.45797455",
"0.45662427",
"0.4563294",
"0.4560109",
"0.4559999",
"0.45535168",
"0.455038",
"0.45483384"
]
| 0.53737915 | 9 |
Creates a new board from a grid of cells and connects it. | public Board createBoard(Square[][] grid) {Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)");assert grid != null; Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1053"); Board board = new Board(grid); Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1079"); int width = board.getWidth(); Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1115"); int height = board.getHeight(); Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1148"); for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
Square square = grid[x][y];
for (Direction dir : Direction.values()) {
int dirX = (width + x + dir.getDeltaX()) % width;
int dirY = (height + y + dir.getDeltaY()) % height;
Square neighbour = grid[dirX][dirY];
square.link(neighbour, dir);
}
}
} Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1183"); Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1552");return board ; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fillBoardWithCells(){\n double posx = MyValues.HORIZONTAL_VALUE*0.5*MyValues.HEX_SCALE + MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE;\n double posy = 2*MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE ;\n HexCell startCell = new HexCell(0,0, this);\n startCell.changePosition(posx, posy);\n boardCells[0][0] = startCell;\n for (int i = 0; i< x-1; i++) {\n HexCell currentCell = new HexCell(i+1, 0, this);\n boardCells[i+1][0] = currentCell;\n //i mod 2 = 0: Bottom\n if (i % 2 == 0) {\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT_RIGHT );\n } else {\n //i mod 2 =1: Top\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.TOP_RIGHT );\n }\n }\n for(int i = 0; i < x; i++){\n for(int j = 0; j < y-1; j++){\n HexCell currentCell = new HexCell(i, j+1, this);\n //System.out.println(Integer.toString(i) + Integer.toString(j));\n boardCells[i][j+1] = currentCell;\n boardCells[i][j].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT);\n }\n }\n }",
"public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }",
"public void createCellBoard(int rows, int cols) {\n\t\trowcount = rows;\n\t\tcolcount = cols;\n\t\tcells = new int[rows][cols];\n\t}",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }",
"public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }",
"private void initGameBoard(int rows, int cols)\n {\n //GameBoard = new Cell[ROWS][COLS];\n\n for(int i = 0; i < rows; i++)\n {\n for(int j = 0; j < cols; j++)\n {\n GameBoard[i][j] = new Cell(i,j, Color.BLUE,false);\n }\n\n }\n }",
"@Override\n public void createBoard(List<List<Boolean>> mines) {\n dims = new Point(\n Util.clamp(mines.get(0).size(), MIN_DIM_X, MAX_DIM_X),\n Util.clamp(mines.size(), MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Create Cells based on mines\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n ArrayList<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), mines.get(i).get(j)));\n }\n cells.add(oneRow);\n }\n\n updateCellNumbers();\n }",
"public Board(String[][] grid) {\n this.grid = grid;\n }",
"public GameBoard(){\r\n boardCells = new GameCell[NUMBER_OF_CELLS];\r\n for( int i= 0; i< NUMBER_OF_CELLS; i++ ){\r\n boardCells[i] = new GameCell(i);//\r\n }\r\n }",
"public void makeBoard2d() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board2d[i][j] = this.board[(i * 3) + j];\n }\n }\n }",
"public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}",
"public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }",
"public void createBoard() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n matrix[i][j] = WATER;\n }\n }\n }",
"private void makeGrid(JLabel moves, JLabel remainingBombs) {\r\n this.grid = new Tile[gridSize][gridSize]; \r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (solution[r][c] == 1) {\r\n grid[r][c] = new Tile(r, c, true);\r\n } else {\r\n grid[r][c] = new Tile(r, c, false);\r\n }\r\n final Tile t = grid[r][c];\r\n t.repaint();\r\n handleClicksAndMoves(t, moves, remainingBombs); \r\n }\r\n }\r\n }",
"public AIPlayer(Board board) {\n cells = board.squares;\n }",
"public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}",
"public IImage createCheckerboard() {\n List<List<Pixel>> grid = new ArrayList<>();\n for (int i = 0; i < this.height; i++) {\n List<Pixel> row;\n // alternating between making rows starting with black or white tiles\n if (i % 2 == 0) {\n // start white\n for (int j = 0; j < this.tileSize; j++) {\n row = createRow(255, 0, (i * this.tileSize) + j);\n grid.add(row);\n }\n }\n else {\n // start black\n for (int m = 0; m < this.tileSize; m++) {\n row = createRow(0, 255, (i * this.tileSize) + m);\n grid.add(row);\n }\n }\n }\n return new Image(grid, 255);\n }",
"public void setBoard() {\n margin = Math.round((sizeOfCell * 3) / 2);\n RelativeLayout.LayoutParams marginParam = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n marginParam.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n marginParam.addRule(RelativeLayout.CENTER_HORIZONTAL);\n marginParam.setMargins(0, 0, 0, (margin));\n gridContainer.setLayoutParams(marginParam);\n\n LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeOfCell * maxN, sizeOfCell);\n LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeOfCell, sizeOfCell);\n LinearLayout linRow;\n\n for (int row = 0; row < maxN; row++) {\n linRow = new LinearLayout(context);\n for (int col = 0; col < maxN; col++) {\n ivCell[row][col] = new ImageView(context);\n linRow.addView(ivCell[row][col], lpCell);\n }\n linBoardGame.addView(linRow, lpRow);\n }\n }",
"public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}",
"public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"public void populateNeighbors(Cell[][] cells) {\n\t\tint limitHoriz = cells[0].length;\n\t\tint limitVert = cells.length;\n\t\t// above left\n\t\tif (myRow > 0 && myRow < limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) {\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t\t// ADD 8 cells to neighbors (see the diagram from the textbook)\n\t\t\t}\n\t\t\tif (myCol == 0) { // left edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow+1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // right edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow -1][myCol]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == 0) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // top edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol -1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // top left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // top right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // bottom edge\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // bottom left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // bottom right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t}\n\t\t}\n\t}",
"public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }",
"public Board(int gridSize) throws Exception {\n\t\tthis.gridSize = gridSize;\n\t\tint currentPiece;\n\t\tint i, j;\n\n\t\t// initialize the pieces\n\t\tpiecePlacement = new Piece[NUM_PIECES];\n\t\tfor(i=0; i<piecePlacement.length; i++)\n\t\t\tpiecePlacement[i] = null;\n\n\t\tcurrentPiece = 0;\n\n\t\t// create all of the black pieces\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\tfor (j = 0; j < this.gridSize; j++) {\n\t\t\t\tif ((i + j) % 2 == 1) {\n\t\t\t\t\t// NOTE: i == y and j == x\n\t\t\t\t\tPiece piece = new Piece(new Position(j, i), false, Piece.WHITE);\n\t\t\t\t\tpiecePlacement[currentPiece++] = piece;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// create all of the white pieces\n\t\tfor (i = gridSize - 1; i > this.gridSize - 4; i--) {\n\t\t\tfor (j = 0; j < gridSize; j++) {\n\t\t\t\tif ((i + j) % 2 == 1) {\n\t\t\t\t\t// NOTE: i == y and j == x\n\t\t\t\t\tPiece piece = new Piece(new Position(j, i), false, Piece.BLACK);\n\t\t\t\t\tpiecePlacement[currentPiece++] = piece;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void initializeBoard(int r, int c) {\n\n grid = new Tile[HEIGHT][WIDTH];\n\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Tile(Tile.BLANK, row, col);\n }\n }\n\n Random random = new Random();\n for (int i = 0; i < numMines; i++) {\n int row = random.nextInt(HEIGHT);\n int col = random.nextInt(WIDTH);\n if ((row == r && col == c) || grid[row][col].getType() == Tile.MINE || grid[row][col].getType() == Tile.NUMBER) {\n i--;\n } else {\n grid[row][col] = new Tile(Tile.MINE, row, col);\n }\n }\n\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n if (getNumNeighboringMines(row, col) > 0 && grid[row][col].getType() != Tile.MINE) {\n Tile tile = new Tile(Tile.NUMBER, getNumNeighboringMines(row, col), row, col);\n grid[row][col] = tile;\n }\n }\n }\n }",
"private void draw() {\n GraphicsContext gc = canvas.getGraphicsContext2D();\n\n double size = getCellSize();\n Point2D boardPosition = getBoardPosition();\n\n // Clear the canvas\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n // Draw the grid\n gc.setStroke(Color.LIGHTGRAY);\n for (int i = 0; i <= board.getWidth(); i++) {\n gc.strokeLine(boardPosition.getX() + i * size, boardPosition.getY(),\n boardPosition.getX() + i * size, boardPosition.getY() + board.getHeight() * size);\n }\n\n for (int i = 0; i <= board.getHeight(); i++) {\n gc.strokeLine(boardPosition.getX(), boardPosition.getY() + i * size,\n boardPosition.getX() + board.getWidth() * size, boardPosition.getY() + i * size);\n }\n\n // Draw cells\n gc.setFill(Color.ORANGE);\n for (int i = 0; i < board.getWidth(); i++) {\n for (int j = 0; j < board.getHeight(); j++) {\n if (board.isAlive(i, j)) {\n gc.fillRect(boardPosition.getX() + i * size, boardPosition.getY() + j * size, size, size);\n }\n }\n }\n }",
"public TwoDimensionalGrid()\r\n {\r\n cellGrid = new Cell[LOWER_BOUND][RIGHT_BOUND];\r\n\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n cellGrid[columns][rows] = new Cell(true);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n System.out.print(\"\\n\");\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }",
"public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }",
"Board(int rows, int cols, double ratio) {\n\n colCount = cols;\n rowCount = rows;\n\n isRunning = true;\n isWon = false;\n\n board = new Cell[rowCount][colCount];\n\n do {\n boolean hasMine;\n Random r = new Random();\n r.setSeed(System.currentTimeMillis());\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < colCount; j++) {\n hasMine = (r.nextGaussian() > ratio);\n board[i][j] = new Cell(i, j, hasMine);\n }\n }\n\n int surroundingMineCount;\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < colCount; j++) {\n if (!board[i][j].hasMine()) {\n surroundingMineCount = 0;\n\n // check surrounding fields\n for (int m = -1; m <= 1; m++) {\n for (int n = -1; n <= 1; n++) {\n if (m != 0 || n != 0) { // ignore same cell\n if (i + m >= 0 && i + m < rowCount\n && j + n >= 0 && j + n < colCount) {\n if (board[i + m][j + n].hasMine()) surroundingMineCount++;\n }\n }\n }\n }\n\n board[i][j].setSurroundingMines(surroundingMineCount);\n }\n }\n }\n\n } while(!hasBlanks());\n\n setRandomCellActive();\n }",
"public void fillTheBoard() {\n for (int i = MIN; i <= MAX; i++) {\n for (int j = MIN; j <= MAX; j++) {\n this.getCells()[i][j] = new Tile(i, j, false);\n }\n }\n }",
"private void constructMaze() {\r\n\t\t\r\n\t\t// manual code to construct a sample maze going cell by cell\r\n\t\tgridSheet[0][0].breakSouthWall();\r\n\t\tgridSheet[1][0].breakEastWall();\r\n\t\tgridSheet[1][1].breakSouthWall();\r\n\t\tgridSheet[2][1].breakWestWall();\r\n\t\tgridSheet[2][0].breakSouthWall();\r\n\t\tgridSheet[2][1].breakEastWall();\r\n\t\tgridSheet[2][2].breakSouthWall();\r\n\t\tgridSheet[3][2].breakSouthWall();\r\n\t\tgridSheet[4][2].breakWestWall();\r\n\t\tgridSheet[4][1].breakNorthWall();\r\n\t\tgridSheet[4][1].breakWestWall();\r\n\t\tgridSheet[2][2].breakEastWall();\r\n\t\tgridSheet[2][3].breakNorthWall();\r\n\t\tgridSheet[1][3].breakWestWall();\r\n\t\tgridSheet[1][3].breakNorthWall();\r\n\t\tgridSheet[0][3].breakWestWall();\r\n\t\tgridSheet[0][2].breakWestWall();\r\n\t\tgridSheet[0][3].breakEastWall();\r\n\t\tgridSheet[0][4].breakSouthWall();\r\n\t\tgridSheet[1][4].breakSouthWall();\r\n\t\tgridSheet[2][4].breakSouthWall();\r\n\t\tgridSheet[3][4].breakWestWall();\r\n\t\tgridSheet[3][4].breakSouthWall();\r\n\t\tgridSheet[4][4].breakWestWall();\r\n\t\t\r\n\t}",
"public MinesweeperBoard(int rowsCount, int colsCount){\n this.rowsCount = rowsCount;\n this.colsCount = colsCount;\n this.cells = new Cell[rowsCount][colsCount];\n }",
"private TilePane createGrid() {\n\t\tTilePane board = new TilePane();\n\t\tboard.setPrefRows(9);\n\t\tboard.setPrefColumns(9);\n\t\tboard.setPadding(new Insets(3,3,3,3));\n\t\tboard.setHgap(3); //Horisontal gap between tiles\n\t\tboard.setVgap(3); //Vertical gap between tiles\n\t\t\n\t\t//Creates and colors tiles\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tLetterTextField text = new LetterTextField();\n\t\t\t\ttext.setPrefColumnCount(1);\n\t\t\t\t\n\t\t\t\tif(!(i/3 == 1 || k/3 == 1) || (i/3 == 1 && k/3 == 1)){\n\t\t\t\t\ttext.setStyle(\"-fx-background-color: #daa520;\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfield[i][k] = text;\n\t\t\t\tboard.getChildren().add(text);\n\t\t\t}\n\t\t}\t\t\n\t\treturn board;\n\t}",
"Grid(int width, int height) {\n this.width = width;\n this.height = height;\n\n // Create the grid\n grid = new Cell[width][height];\n\n // Populate with dead cells to start\n populateGrid(grid);\n }",
"public Board(int rows, int columns) throws Exception {\n\t\tif (rows >= 8 && columns >= 8) {\n\t\t\tthis.rows = rows;\n\t\t\tthis.columns = columns;\n\t\t\tboard = new int[rows][columns];\n\t\t\tthis.bombs = (rows * columns) / 3;\n\t\t\tfillBoard();\n\t\t} else {\n\t\t\tthrow new Exception(\"Minesweeper dimensions invalid:\\nWidth: from 8 to 100\\nHeight: from 8 to 100\\nBombs: 1 to 1/3 of squares\");\n\t\t}\n\t}",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}",
"private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }",
"private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }",
"private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }",
"ArrayList<ArrayList<GamePiece>> makeBoard() {\n ArrayList<ArrayList<GamePiece>> row = new ArrayList<ArrayList<GamePiece>>();\n for (int i = 0; i < this.width; i++) {\n ArrayList<GamePiece> column = new ArrayList<GamePiece>();\n for (int j = 0; j < this.height; j++) {\n GamePiece temp = new GamePiece(i, j);\n column.add(temp);\n nodes.add(temp);\n }\n row.add(column);\n }\n return row;\n }",
"private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }",
"private void createBoardRow(int row, int startState, int endState) {\n\t\tLog.d(LOG_TAG, String.format(\"Create board row %s with start state: %s and end state: %s\",row,startState,endState));\n\t\tBoardSquareInfo[][] squares = getBoardGame();\n\t\t\n\t\tfor(int col=0; col<COLUMNS; col++) {\n\t\t\tint id = row*COLUMNS+col;\n\t\t\tint state = (col%2 == 0)? startState: endState;\n\t\t\tint chip = (state == PLAYER1_STATE || state == PLAYER2_STATE)? PAWN_CHIP: EMPTY_CHIP;\n\t\t\t\n\t\t\tsquares[row][col] = new BoardSquareInfo(id,row,col,state,chip);\n\t\t}\n\t}",
"private void populateGrid(Cell[][] populateGrid) {\n\n //Iterate through the grid and create dead cells at all locations\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n populateGrid[x][y] = new Cell(this, x, y, false);\n }\n }\n }",
"public Grid(int recRowSize, int recColSize) {\r\n counter = 0;\r\n rowSize = recRowSize;\r\n colSize = recColSize;\r\n myCells = new Cell[recRowSize + 2][recColSize + 2];\r\n for (int row = 0; row < myCells.length; row++) {\r\n for (int col = 0; col < myCells[row].length; col++) {\r\n myCells[row][col] = new Cell();\r\n }\r\n }\r\n }",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"public void next(){\n\t\tboolean[][] newBoard = new boolean[rows][columns]; //create a temporary board, same size as real game board\n\t\tfor(int i = 0; i < rows; i++){\n\t\t\tfor(int j = 0; j < columns; j++){\n\t\t\t\tnewBoard[i][j] = false; //set all to false\n\t\t\t}\n\t\t}\n\t\tint cellCounter = 0;\n\t\tfor (int i = (rows - 1); i >= 0; i--) {\n\t\t\tfor (int j = (columns - 1); j >= 0; j--) { //iterate through the game board\n\t\t\t\tfor (int k = (i - 1); k < (i + 2); k++) {\n\t\t\t\t\tfor (int m = (j - 1); m < (j + 2); m++) {//iterate around the testable element\n\t\t\t\t\t\tif (!(k == i && m == j)) {\n\t\t\t\t\t\t\tif (!((k < 0 || k > (rows - 1)) || (m < 0 || m > (columns - 1)))) { //if not out of bounds and not the original point\n\t\t\t\t\t\t\t\tif (theGrid[k][m]) {\n\t\t\t\t\t\t\t\t\tcellCounter++; //if a cell is alive at the surrounding point, increase the counter\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (cellCounter == 3 || cellCounter == 2 && theGrid[i][j]) { //if meets the criteria\n\t\t\t\t\tnewBoard[i][j] = true; //create on new board\n\t\t\t\t}\n\t\t\t\tcellCounter = 0; //reset cell counter\n\t\t\t}\n\t\t}\n\t\t//transpose onto new grid\n\t\tfor(int i = 0; i < rows; i++){\n\t\t\tfor(int j = 0; j < columns; j++){\n\t\t\t\tif(newBoard[i][j]){ //read temp board, set temp board data on real game board\n\t\t\t\t\ttheGrid[i][j] = true;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttheGrid[i][j] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void generateBoard(){\n\t}",
"@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }",
"GameBoard(){\r\n int i, j;\r\n char first = '0';\r\n grid = new char[yMax][xMax];\r\n\r\n grid[0][0] = ' ';\r\n\r\n //labels rows\r\n for(i = 1; i < yMax; i++){\r\n j = 0;\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n\r\n //labels columns\r\n first = '0';\r\n for(j = 1; j < xMax; j++){\r\n i = 0;\r\n if(j % 2 == 0) {\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n\r\n //separates squares with '|'\r\n for(i = 1; i < yMax; i++){\r\n for(j = 1; j < xMax; j++){\r\n if(j % 2 != 0)\r\n grid[i][j] = '|';\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n }\r\n }",
"public abstract void createBoard();",
"public Board(int[][] tiles) {\n n = tiles.length;\n this.tiles = deepCopy(tiles);\n }",
"public TwoDimensionalGrid(int[] columnsAlive, int[] rowsAlive, int numberOfCellsSet)\r\n {\r\n cellGrid = new Cell[LOWER_BOUND][RIGHT_BOUND];\r\n\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n cellGrid[columns][rows] = new Cell();\r\n for (int cellsSet = 0; cellsSet < numberOfCellsSet; cellsSet ++)\r\n {\r\n if (columns == columnsAlive[cellsSet] && rows == rowsAlive[cellsSet])\r\n {\r\n cellGrid[columns][rows] = new Cell(true);\r\n } // end of if (columns == columnsAlive[cellsSet] && rows == rowsAlive[cellsSet])\r\n } // end of for (int cellsSet = 0; cellsSet < numberOfCellsSet; cellsSet ++)\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n System.out.print(\"\\n\");\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }",
"private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }",
"public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }",
"public Board(int[][] tiles) {\n N = tiles.length; // Store dimension of passed tiles array\n this.tiles = new int[N][N]; // Instantiate instance grid of N x N size\n for (int i = 0; i < N; i++)\n this.tiles[i] = tiles[i].clone(); // Copy passed grid to instance grid\n }",
"public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}",
"private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }",
"private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }",
"public Board(int boardSize, Random random)\n {\n this.random = random;\n GRID_SIZE = boardSize; \n this.grid = new int[boardSize][boardSize];\n for ( int i=0; i < NUM_START_TILES; i++) {\n this.addRandomTile();\n }\n }",
"public static StackPane createBoard() {\n StackPane stackPane = new StackPane();\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n Tile tile = new Tile();\n Coordinates coordinates = new Coordinates(i, j);\n tile.setTextValue(\"\");\n tile.setTranslateX(i * 50);\n tile.setTranslateY(j * 50);\n tile.setEditable(true);\n tile.setTileId(coordinates);\n stackPane.getChildren().add(tile);\n tiles.put(coordinates, tile);\n }\n }\n return stackPane;\n }",
"public void createGrid() {\r\n generator.generate();\r\n }",
"public void initialize() {\n\t\t// set seed, if defined\n\t\tif (randomSeed > Integer.MIN_VALUE) {\n\t\t\tapp.randomSeed(randomSeed);\n\t\t}\n\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = new Cell(\n\t\t\t\t\tapp,\n\t\t\t\t\tcellSize,\n\t\t\t\t\tcolors[(int)app.random(colors.length)],\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t\tc.position = PVector.add(offset, new PVector(x * cellSize, y * cellSize));\n\t\t\t\tcells[x + (y * gridX)] = c;\n\t\t\t\tnewCells[x + (y * gridX)] = c;\n\t\t\t}\n\t\t}\n\t}",
"private GamePiece[][] initBoard(int rows, int cols, Random rand) {\n gameBoard = new GamePiece[rows][cols];\n curPlayerRow = 0;\n curPlayerCol = 0;\n for(int i = 0; i < rows; i++){\n for(int j = 0; j < cols; j++){\n gameBoard[i][j] = new EmptyPiece();\n }\n }\n gameBoard[0][0] = new PlayerPiece(INIT_PLAYER_POINTS);\n curTrollRow = getRandTrollRow(rand, rows);\n curTrollCol = getRandTrollCol(rand, cols);\n while(curTrollRow == 7 && curTrollCol == 9){\n curTrollRow = getRandTrollRow(rand, rows);\n curTrollCol = getRandTrollCol(rand, cols);\n }\n gameBoard[curTrollRow][curTrollCol] = new TrollPiece();\n gameBoard[7][9] = new TreasurePiece(TREASURE_POINTS);\n return gameBoard;\n }",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"public TicTacToeBoard() {board = new int[rows][columns];}",
"public Gameboard() {\n\n\t\tturn = 0;\n\n\t\tboard = new Cell[4][4][4];\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\tfor (int k = 0; k < board.length; k++) {\n\n\t\t\t\t\tboard[i][j][k] = Cell.E;\n\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Board(int rows, int cols) {\n\t\t_board = new ArrayList<ArrayList<String>>();\n\t\t_rand = new Random();\n\t\t_colorFileNames = new ArrayList<String>();\n\t\tfor (int i=0; i<MAX_COLORS; i=i+1) {\n\t\t\t_colorFileNames.add(\"Images/Tile-\"+i+\".png\");\n\t\t}\n\t\tfor (int r=0; r<rows; r=r+1) {\n\t\t\tArrayList<String> row = new ArrayList<String>();\n\t\t\tfor (int c=0; c<cols; c=c+1) {\n\t\t\t\trow.add(_colorFileNames.get(_rand.nextInt(_colorFileNames.size())));\n\t\t\t}\n\t\t\t_board.add(row);\n\t\t\t\n\t\t\tif(_board.size()==rows) { //board is complete\n\t\t\t\tboolean istrue = false;\n\t\t\t\tif(match(3).size()>0 || end()){ //(1)there are match //(2)there is no valid move\n\t\t\t\t\tistrue = true;\n\t\t\t\t}\n\t\t\t\tif (istrue) {\n\t\t\t\t\t_board.clear();\t\t// if istrue clear the board\n\t\t\t\t\tr=-1;\t\t\t\t// restart; r=-1, at the end of loop will add 1\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\t\t\n\t}",
"public Board(){\r\n \r\n //fill tile list with tile objects\r\n tiles.add(new Tile(new Coordinate(0,0)));\r\n tiles.add(new Tile(new Coordinate(0,1)));\r\n tiles.add(new Tile(new Coordinate(0,2)));\r\n tiles.add(new Tile(new Coordinate(1,0)));\r\n tiles.add(new Tile(new Coordinate(1,1)));\r\n tiles.add(new Tile(new Coordinate(1,2)));\r\n tiles.add(new Tile(new Coordinate(1,3)));\r\n tiles.add(new Tile(new Coordinate(2,0)));\r\n tiles.add(new Tile(new Coordinate(2,1)));\r\n tiles.add(new Tile(new Coordinate(2,2)));\r\n tiles.add(new Tile(new Coordinate(2,3)));\r\n tiles.add(new Tile(new Coordinate(2,4)));\r\n tiles.add(new Tile(new Coordinate(3,1)));\r\n tiles.add(new Tile(new Coordinate(3,2)));\r\n tiles.add(new Tile(new Coordinate(3,3)));\r\n tiles.add(new Tile(new Coordinate(3,4)));\r\n tiles.add(new Tile(new Coordinate(4,2)));\r\n tiles.add(new Tile(new Coordinate(4,3)));\r\n tiles.add(new Tile(new Coordinate(4,4)));\r\n \r\n //fills corner list with corner objects\r\n List<Coordinate> cornercoords = new ArrayList<>();\r\n for(Tile t : tiles){\r\n for(Coordinate c : t.getAdjacentCornerCoords()){\r\n if(cornercoords.contains(c)==false) cornercoords.add(c);\r\n }\r\n }\r\n for(Coordinate c : cornercoords){\r\n corners.add(new Corner(c));\r\n }\r\n \r\n //fills adjacent corner/tile fields\r\n for(Tile t: tiles){\r\n t.fillAdjacents(tiles,corners);\r\n }\r\n for(Corner c: corners){\r\n c.fillAdjacents(tiles,corners);\r\n }\r\n \r\n //generates an edge between each corner and fills the list of edges\r\n //results in lots of duplicates\r\n for(Corner c: corners){\r\n for(Corner adjacent: c.getAdjacentCorners()){\r\n edges.add(new Edge(c,adjacent));\r\n }\r\n }\r\n \r\n //hopefully removes duplicates from the edge list\r\n Iterator<Edge> iter = edges.iterator();\r\n boolean b = false;\r\n while (iter.hasNext()) {\r\n Edge e = iter.next();\r\n for(Edge edge : edges){\r\n if(e.sharesCorners(edge)==true && edge!=e){\r\n b = true;\r\n }\r\n }\r\n if(b==true) iter.remove();\r\n b = false;\r\n }\r\n \r\n //give each tile a token number and resource type \r\n ArrayList<Tile> randomtiles = randomize(tiles);\r\n int sheep = 3;\r\n int wood = 3;\r\n int rock = 2;\r\n int brick = 2;\r\n int wheat = 3;\r\n for(Tile t : randomtiles){\r\n if(sheep>0){\r\n t.setResource(Resource.SHEEP);\r\n sheep--;\r\n }\r\n if(wood>0){\r\n t.setResource(Resource.WOOD);\r\n wood--;\r\n }\r\n if(brick>0){\r\n t.setResource(Resource.CLAY);\r\n brick--;\r\n }\r\n if(wheat>0){\r\n t.setResource(Resource.WHEAT);\r\n wheat--;\r\n }\r\n if(rock>0){\r\n t.setResource(Resource.ROCK);\r\n rock--;\r\n }\r\n else t.setResource(Resource.DESERT); \r\n } \r\n randomtiles = randomize(randomtiles);\r\n int twos = 1;\r\n int twelves = 1;\r\n int threes = 2;\r\n int fours = 2;\r\n int fives = 2;\r\n int sixes = 2;\r\n int sevens = 2;\r\n int eights = 2;\r\n int nines = 2;\r\n int tens = 2;\r\n int elevens = 2; \r\n for(Tile t : randomtiles){\r\n if(t.getResource() != Resource.DESERT){\r\n if(twos != 0){\r\n t.setToken(2);\r\n twos--;\r\n }\r\n else if(threes !=0){\r\n t.setToken(3);\r\n threes--;\r\n }\r\n else if(fours !=0){\r\n t.setToken(4);\r\n fours--;\r\n } \r\n else if(fives !=0){\r\n t.setToken(5);\r\n fives--;\r\n } \r\n else if(sixes !=0){\r\n t.setToken(6);\r\n sixes--;\r\n } \r\n else if(sevens !=0){\r\n t.setToken(7);\r\n sevens--;\r\n } \r\n else if(eights !=0){\r\n t.setToken(8);\r\n eights--;\r\n } \r\n else if(nines !=0){\r\n t.setToken(9);\r\n nines--;\r\n } \r\n else if(tens !=0){\r\n t.setToken(10);\r\n tens--;\r\n } \r\n else if(elevens !=0){\r\n t.setToken(11);\r\n elevens--;\r\n } \r\n else if(twelves !=0){\r\n t.setToken(12);\r\n twelves--;\r\n } \r\n }\r\n }\r\n }",
"public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }",
"public void splitBoard(Posn start, int currRows, int currCols) {\n int startRow = start.x;\n int startCol = start.y;\n if (currRows != 1 && currCols != 1) {\n // top left piece\n this.board.get(startCol).get(startRow).down = true; \n\n // top right piece\n this.board.get(startCol + currCols - 1).get(startRow).down = true; \n\n // bottom left right\n this.board.get(startCol).get(startRow + currRows - 1).right = true; \n this.board.get(startCol).get(startRow + currRows - 1).up = true; // bottom left up\n\n // bottom, right, left\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).left = true; \n // bottom, right, up\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).up = true; \n\n // connect middle pieces on both sides of subgrid\n for (int i = startRow + 1; i < startRow + currRows - 1; i++) { \n this.board.get(startCol).get(i).up = true;\n this.board.get(startCol).get(i).down = true;\n this.board.get(startCol + currCols - 1).get(i).up = true;\n this.board.get(startCol + currCols - 1).get(i).down = true;\n }\n // connect middle pieces on bottom of subgrid\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) { \n this.board.get(i).get(startRow + currRows - 1).left = true;\n this.board.get(i).get(startRow + currRows - 1).right = true;\n }\n }\n\n // grid base cases\n if (this.height == 1) {\n for (ArrayList<GamePiece> p : this.board) {\n if (p.get(0).row == 0) {\n p.get(0).right = true;\n }\n else if (p.get(0).row == this.width - 1) {\n p.get(0).left = true;\n }\n else {\n p.get(0).right = true;\n p.get(0).left = true;\n }\n }\n }\n else if (this.width == 1) {\n for (GamePiece p : this.board.get(0)) {\n if (p.col == 0) {\n p.down = true;\n }\n else if (p.col == this.height - 1) {\n p.up = true;\n }\n else {\n p.down = true;\n p.up = true;\n }\n }\n }\n else if (currRows == 2) {\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) {\n this.board.get(i).get(startRow).down = true;\n this.board.get(i).get(startRow + 1).up = true;\n }\n }\n else if (currRows == 3 && currCols == 3) { // base case for odd grid\n this.board.get(startCol).get(startRow + 1).right = true;\n this.board.get(startCol + 1).get(startRow + 1).left = true;\n this.board.get(startCol + 1).get(startRow + 1).up = true;\n this.board.get(startCol + 1).get(startRow).down = true;\n\n }\n // recur if the grid can be divided into 4 non-overlapping quadrants\n else if (currRows > 3 || currCols > 3) { \n this.splitBoard(new Posn(startRow, startCol), (int) Math.ceil(currRows / 2.0),\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0), startCol), currRows / 2,\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0),\n startCol + (int) Math.ceil(currCols / 2.0)), currRows / 2, currCols / 2);\n this.splitBoard(new Posn(startRow, startCol + (int) Math.ceil(currCols / 2.0)),\n (int) Math.ceil(currRows / 2.0), currCols / 2);\n }\n }",
"public Cell(int row, int col, int startingState, int[] neighborRowIndexes,\n int[] neighborColIndexes) {\n myState = startingState;\n myRow = row;\n myCol = col;\n neighborRowIndex = neighborRowIndexes;\n if (hexagon) {\n neighborEvenColIndex = new int[]{-1, -1, 0, 1, 0, -1};\n neighborOddColIndex = new int[]{-1, 0, 1, 1, 1, 0};\n neighborRowIndex = new int[]{0, -1, -1, 0, 1, 1};\n } else {\n neighborEvenColIndex = neighborColIndexes;\n neighborOddColIndex = neighborColIndexes;\n }\n }",
"private Board()\r\n {\r\n this.grid = new Box[Config.GRID_SIZE][Config.GRID_SIZE];\r\n \r\n for(int i = 0; i < Config.NB_WALLS; i++)\r\n {\r\n this.initBoxes(Wall.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_CHAIR; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_PLAYER; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n }",
"public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"Board createLayout();",
"public void drawGrid() {\r\n\t\tsetLayout(new GridLayout(getSize_w(), getSize_h()));\r\n\t\tfor (int i = 0; i < getSize_h(); i++) {\r\n\t\t\tfor (int j = 0; j < getSize_w(); j++) {\r\n\t\t\t\tcity_squares[i][j] = new Gridpanel(j, i);\r\n\t\t\t\tadd(city_squares[i][j]);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Board(int[][] blocks) {\n N = blocks.length;\n tiles = new int[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n tiles[i][j] = blocks[i][j];\n }\n }\n }",
"void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }",
"public char[][] initializeBoard(char[][] grid){\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = ' ';\n }\n }\n return grid;\n }",
"public void createSquares() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n playingBoard[row][col] = new Square();\n }\n }\n }",
"public void run() {\n GameBoard board = new GameBoard(nrows, ncols);\n\n\n }",
"public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating stairs to connect rooms\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Stairs[1][1] = 1;\n\n\t\t//creating board to keep track of garret\n\t\tfor(int i = 0; i <this.Garret.length; i++){\n\t\t\tfor(int p = 0; p < this.Garret.length; p++){\n\t\t\t\tthis.Garret[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of garret board\n\t\tthis.Garret[18][10] = 1;//putts garret there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 1; i< 6 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 7; p > 4; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 11 ; i++){\n\t\t\tfor(int p = 4; p < 5; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 10; i< 11 ; i++){\n\t\t\tfor(int p = 5; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 11; i< 15 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 7; p > 3; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 1; p < 4; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 12; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 5; i< 9 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 7; p < 12; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 16 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 12; p < 19; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }",
"public static void initBoard()\r\n\t{\n\t\tfor ( int r=0; r<3; r++ )\r\n\t\t\tfor ( int c=0; c<3; c++ )\r\n\t\t\t\tboard[r][c] = ' ';\r\n\t}",
"public Jewel[][] createGrid(int width, int height)\r\n\t{\r\n\t\tJewel[][] jewels = new Jewel[width][height];\r\n\t\tfor (int row=0; row<width; row++)\r\n\t\t{\r\n\t\t\tfor (int col=0; col<height; col++)\r\n\t\t\t{\r\n\t\t\t\tjewels[row][col] = generate(); //jewels is generated horizontally\r\n\t\t\t\tif (row >= 2 //check run two neighbors above\r\n\t\t\t\t\t&& jewels[row][col].getType() == jewels[row-1][col].getType()\r\n\t\t\t\t\t&& jewels[row][col].getType() == jewels[row-2][col].getType()\r\n\t\t\t\t\t|| (col>=2 //check run two neighbors left\r\n\t\t\t\t\t&& jewels[row][col].getType() == jewels[row][col-1].getType()\r\n\t\t\t\t\t&& jewels[row][col].getType() == jewels[row][col-1].getType()))\r\n\t\t\t\t{\r\n\t\t\t\t\tcol--;//back to previous solt and generate and chekc again\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn jewels;\r\n\t}",
"public GridPane initializeGridPane() {\n\t\tGridPane world = new GridPane();\n\t\t\n\t\tfor (int x = 0; x < this.columns; x++) {\n\t\t\tfor (int y = 0; y < this.rows; y++) {\n\t\t\t\tRectangle cellGUI = new Rectangle(this.widthOfCells - 1, this.heightOfCells - 1);\n\t\t\t\tcellGUI.setFill(Color.web(\"#FFFFFF\"));\t\t// White cell background color\n cellGUI.setStroke(Color.web(\"#C0C0C0\")); \t// Grey cell border color\n cellGUI.setStrokeWidth(1); \t\t\t\t\t// Width of the border\n\n world.add(cellGUI, x, y);\n this.cellGUIArray[x][y] = cellGUI;\n\n cellGUI.setOnMouseClicked((event) -> {\n \tthis.currentGeneration = this.simulation.getCurrentGeneration();\n for (int i = 0; i < columns; i++) {\n for (int j = 0; j < rows; j++) {\n if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 0) {\n this.currentGeneration[i][j] = 1;\n } else if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 1) {\n this.currentGeneration[i][j] = 0;\n }\n }\n }\n this.simulation.setCurrentGeneration(this.currentGeneration);\n });\n\t\t\t}\n\t\t}\n\t\treturn world;\n\t}",
"public Board(int x, int y){\n player1 = \"Player 1\";\n player2 = \"Player 2\";\n randomPlayer1 = \"CPU 1\";\n randomPlayer2 = \"CPU 2\";\n board = new Square[x][y];\n for (int i = 0; i < board.length;i++){\n row++;\n for(int j = 0; j < board.length; j++){\n if(column == y){\n column = 0;\n }\n column++;\n board[i][j] = new Square(row, column);\n }\n }\n row = x;\n column = y;\n }",
"private void boardInit() {\n for(int i = 0; i < this.boardHeight; i++)\n this.board[i][0] = ' ';\n for(int i = 0; i < this.boardWidth; i++)\n this.board[0][i] = ' ';\n \n for(int i = 1; i < this.boardHeight; i++) {\n for(int j = 1; j < this.boardWidth; j++) {\n this.board[i][j] = '*';\n }\n }\n }",
"private static void InitializeCells()\n {\n cells = new Cell[Size][Size];\n\n for (int i = 0; i < Size; i++)\n {\n for (int j = 0; j < Size; j++)\n {\n cells[i][j] = new Cell(i, j);\n }\n }\n }",
"public void newBoard(LiteBoard board) {\n }",
"public void initBasicBoardTiles() {\n\t\ttry {\n\t\t\tfor(int i = 1 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.BLACK).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.WHITE).build());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 2 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.WHITE).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.BLACK).build());\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(LocationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Grid() { //Constructs a new grid and fills it with Blank game objects.\r\n\t\tthis.grid = new GameObject[10][10];\r\n\t\tthis.aliveShips = new Ships[4];\r\n\t\tfor (int i = 0; i < this.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.grid[i].length; j++) {\r\n\t\t\t\tthis.grid[i][j] = new Blank(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }",
"public void create2(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[1][1] = 1;\n\n\t\t//creating stairs to transport to room3\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Stairs[18][18] = 1;\n\n\t\t//creating board to keep track of ari\n\t\tfor(int i = 0; i <this.Ari.length; i++){\n\t\t\tfor(int p = 0; p < this.Ari.length; p++){\n\t\t\t\tthis.Ari[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Ari[7][11] = 1;//putts ari there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 3; i< 4 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"MainBoard createMainBoard();",
"public BubbleGrid(int[][] grid) {\n this.grid = grid;\n }",
"public Board(ArrayList<Piece> pieces)\n {\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n firstSelected = null;\n mainBoard=true;\n turn = 0;\n fiftyMove = 0;\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n {\n squares[i][j] = new Square(i,j,this);\n for (Piece p: pieces)\n if (p.getOrigin().equals(new Location(i,j)))\n squares[i][j].setPiece(p);\n add(squares[i][j]);\n }\n positions = new ArrayList<>();\n positions.add(toString());\n }",
"public Board(int[][] tiles) {\n _N = tiles.length;\n _tiles = new int[_N][_N];\n _goal = new int[_N][_N];\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n _tiles[i][j] = tiles[i][j];\n _goal[i][j] = 1 + j + i * _N;\n }\n }\n _goal[_N-1][_N-1] = 0;\n }"
]
| [
"0.70344156",
"0.69177383",
"0.6905985",
"0.686853",
"0.663711",
"0.6616",
"0.65556103",
"0.6551734",
"0.6472274",
"0.6416313",
"0.6416113",
"0.64040995",
"0.6401278",
"0.63806045",
"0.63644385",
"0.63245755",
"0.6324315",
"0.632223",
"0.6301679",
"0.627769",
"0.62775254",
"0.6272565",
"0.62719524",
"0.62618613",
"0.6242993",
"0.62427247",
"0.6240956",
"0.62404716",
"0.6237417",
"0.62350756",
"0.6232791",
"0.6224888",
"0.62207615",
"0.62178695",
"0.62128407",
"0.6208643",
"0.62021327",
"0.6196987",
"0.61907834",
"0.61892754",
"0.617881",
"0.61694604",
"0.61558807",
"0.61423755",
"0.6126054",
"0.61210656",
"0.61195487",
"0.6117213",
"0.6116318",
"0.61101216",
"0.6096556",
"0.6090099",
"0.6082926",
"0.607551",
"0.60602224",
"0.6059982",
"0.6048723",
"0.6040807",
"0.60307527",
"0.6021084",
"0.60183966",
"0.6017182",
"0.6013893",
"0.60024405",
"0.5994955",
"0.5994214",
"0.59927803",
"0.59907275",
"0.59810424",
"0.597762",
"0.5972572",
"0.59702706",
"0.59533685",
"0.5951744",
"0.5933582",
"0.592731",
"0.5919186",
"0.58917546",
"0.5884002",
"0.5881918",
"0.5870635",
"0.5866694",
"0.5862111",
"0.5856516",
"0.5855908",
"0.58558595",
"0.58551687",
"0.58337885",
"0.5831067",
"0.5828182",
"0.58137596",
"0.58102345",
"0.5804728",
"0.57862866",
"0.57833",
"0.57829046",
"0.5779451",
"0.5776832",
"0.5775229",
"0.577131"
]
| 0.7323382 | 0 |
Creates a new square that can be occupied by any unit. | public Square createGround() {Collect.Hit("BoardFactory.java","createGround()"); Collect.Hit("BoardFactory.java","createGround()", "1746");return new Ground(sprites.getGroundSprite()) ; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Square(int w)\n {\n width = w;\n }",
"public Square() {\n this(\"x\", false, false);\n }",
"Square getSquare(int x, int y);",
"public Square() {\r\n\r\n }",
"Rectangle(int width, int height){\n area = width * height;\n }",
"@Test\n public void testSetTypeOccupiedSquare()\n {\n try\n {\n Square s = new Square();\n\n s.setTile(Tile.T);\n s.setType(Square.squareType.DB_WORD);\n\n fail(\"An occupied square should not have a special type.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"A Square cannot have a tile on it and have a special type.\", ex.getMessage());\n }\n }",
"public void createSquares() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n playingBoard[row][col] = new Square();\n }\n }\n }",
"public Square () {\r\n super();\r\n \r\n }",
"private static Square createSquare(String[] input) {\r\n int px = Integer.parseInt(input[1]);\r\n int py = Integer.parseInt(input[2]);\r\n int vx = Integer.parseInt(input[3]);\r\n int vy = Integer.parseInt(input[4]);\r\n boolean isFilled = Boolean.parseBoolean(input[5]);\r\n int side = Integer.parseInt(input[6]);\r\n float r = (float) Integer.parseInt(input[7]) / 255.0f;\r\n float g = (float) Integer.parseInt(input[8]) / 255.0f;\r\n float b = (float) Integer.parseInt(input[9]) / 255.0f;\r\n int insertionTime = Integer.parseInt(input[10]);\r\n boolean isFlashing = Boolean.parseBoolean(input[11]);\r\n float r1 = (float) Integer.parseInt(input[12]) / 255.0f;\r\n float g1 = (float) Integer.parseInt(input[13]) / 255.0f;\r\n float b1 = (float) Integer.parseInt(input[14]) / 255.0f;\r\n return new Square(insertionTime, px, py, vx, vy, side, new Color(r, g, b, 1), isFilled,\r\n isFlashing, new Color(r1, g1, b1, 1));\r\n }",
"public static SquareCoordinate makeCoordinate(int x, int y)\n {\n \treturn new SquareCoordinate(x, y);\n }",
"public Square()\r\n {\r\n super();\r\n }",
"private NormalSquare createSquare(ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new NormalSquare(color, hasDoor, row, column);\n }",
"public RegularUnit(Location location, int length, int width, int height){\n // initialise instance variables\n super(location, length, width, height, TYPE);\n }",
"private void createSquare(int x, int y, int row, int column) {\r\n grid[row][column] = new JLabel();\r\n grid[row][column].setOpaque(true);\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n grid[row][column].setBorder(SQUARE_BORDER);\r\n this.getContentPane().add(grid[row][column]);\r\n grid[row][column].setBounds(x,y,SQUARE_SIZE,SQUARE_SIZE);\r\n }",
"private static StructureElement createCenteredSquare(int size) {\r\n\t\treturn new StructureElement(createSquareMask(size), size / 2, size / 2);\r\n\t}",
"private SpawnSquare createSquare(boolean isSpawn, ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new SpawnSquare(color, hasDoor, row, column);\n }",
"@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}",
"@Test\n\tpublic void validOutsideSquare() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(false, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertTrue(gameState.isOutside(location));\n\t}",
"private void createSquare(Block block) {\n\t\tSquare square = factory.createSquare();\n\t\tsquare.setName(block.getName());\n\t\tsquare.setBlock(block.getBlock());\n\t\tsquare.getInArrow().addAll(block.getInArrow());\n\t\tsquare.getOutArrow().addAll(block.getOutArrow());\n\t}",
"Rectangle(){\n height = 1;\n width = 1;\n }",
"public SquareImmutable(Square square)\n {\n this.x = square.getX();\n this.y = square.getY();\n this.isAmmoPoint = square.isAmmoPoint();\n this.isSpawnPoint = square.isSpawnPoint();\n this.color = square.getColor();\n this.playerList = square.getPlayerListColor();\n\n if (square.isSpawnPoint())\n {\n SpawnPoint s = (SpawnPoint) square;\n weaponCardList = s.getWeaponCardList().stream().map(WeaponCard::getName).collect(Collectors.toList());\n }\n else\n {\n AmmoPoint ammoPoint = (AmmoPoint) square;\n\n if (ammoPoint.getAmmoTiles() instanceof JustAmmo)\n {\n JustAmmo justAmmo = (JustAmmo) ammoPoint.getAmmoTiles();\n\n if (justAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new JustAmmoImmutable(justAmmo.getAmmoCardID(),justAmmo.getSingleAmmo(),justAmmo.getDoubleAmmo());\n }\n else\n {\n PowerAndAmmo powerAndAmmo = (PowerAndAmmo) ammoPoint.getAmmoTiles();\n if (powerAndAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new PowerAndAmmoImmutable(powerAndAmmo.getAmmoCardID(),powerAndAmmo.getSingleAmmo(),powerAndAmmo.getSecondSingleAmmo());\n }\n\n }\n }",
"Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}",
"public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }",
"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 }",
"@Test\n\tpublic void invalidOutsideSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(true, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"public Square(String name) {\r\n this(name.charAt(0), name.charAt(1));\r\n }",
"public Asteroid makeAsteroid() {\r\n\t\tAsteroid asteroid = new AsteroidImpl(startBounds.x, random(startBounds.y,startBounds.height)\r\n\t\t\t\t\t\t\t\t\t\t\t, random(10,40), random(10,40)\r\n\t\t\t\t\t\t\t\t\t\t\t, random(1,4));\r\n\t\treturn asteroid;\r\n\t}",
"public SquareGrid(int width, int height) {\n this.width = width;\n this.height = height;\n }",
"public Square(int x, int y){\n\t\t\tthis.x = x;\n\t\t\tthis.y = y;\n\t\t}",
"public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }",
"@Test\n public void testIsOccupied()\n {\n try\n {\n Square s = new Square();\n\n assertFalse(s.isOccupied()); // Should be false as no tile on it yet\n\n s.setTile(Tile.A); // Add a tile\n\n assertTrue(s.isOccupied()); // Should now be true\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when adding a tile to a square normally.\");\n }\n }",
"Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }",
"public Square(int side) {\n super(side, side);\n }",
"@Test\n\tpublic void invalidOutsideSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = new BlankSquare();\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }",
"public static SquareBoard getFullBoard() {\n\n\t\tSquareBoard fullBoard = new SquareBoard(BOARD_SIZE);\n\t\t\n\t\tfor (int ctr = 0; ctr < (BOARD_SIZE * BOARD_SIZE); ctr++) {\n\t\t\tfullBoard.getSpaceByIndex(ctr).setPiece(\n\t\t\t\t\tnew BasicPieceHelper(String.valueOf(ctr), null));\n\t\t}\n\t\t\n\t\treturn fullBoard;\n\t}",
"public Unit(int x, int y, int width, int height) {\n super(x, y, width, height);\n LOGGER.log(Level.INFO, this.toString() + \" created at (\" + x + \",\" + y + \")\", this.getClass());\n }",
"public Square(Point start, Point end, Boolean fill){ //constructor for class Rectangle\r\n this.origin = start;\r\n this.start = start;\r\n this.end = end;\r\n this.fill = fill;\r\n }",
"public Square(int x, int y, int side)\n\t{\n\t\tsuper();\n\t\toneside = side;\n\t\tanchor = new Point(x, y);\n\t\tvertices.add(new Point(x, y));\n\t\tvertices.add(new Point(x + side, y)); // upper right\n\t\tvertices.add(new Point(x + side, y + side)); // lower right\n\t\tvertices.add(new Point(x, y + side)); // lower left\n\t}",
"public Rectangle() {\n\t\twidth = 1;\n\t\theight = 1;\n\t}",
"public Square(double sideIn)\r\n {\r\n super(sideIn, sideIn);\r\n }",
"public Square(int i1, int j1)\n {\n i = i1;\n j = j1;\n\n x = squareSize + squareSize*i;\n y = squareSize + squareSize*j;\n\n mark = ' ';\n }",
"public Square(int x, int y, int z) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t\tcontainingRows = new ArrayList<Row>();\n\t\tstate = null;\n\t}",
"PRSquare(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"private static int getSquareOfRoom(int length, int width) {\n return length * width;\n }",
"public Integer CreateUnit(Unit U) {\n\t\tif (UnitContainer.size() == 0) {\n\t\t\tif ((TileID !=4)&(TileID != 3)){\n\t\t\t\tUnitContainer.add(U);\n\t\t\t\tU.MoveLeft = 0.0;\n\t\t\t\tU.locate(xloc, yloc);\n\t\t\t\treturn 1; //Placement success\n\t\t\t} else {\n\t\t\t\treturn 0; //Tile is mountains or water\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0; //Already a unit here\n\t\t}\n\t}",
"public void createNew(int xSize, int ySize, int countOfMines);",
"public Square(int size, Color color){\n\t\tthis.square = new Rectangle();\n\t\tthis.setDimensions(size);\n\t\tthis.setColour(color);\n\t}",
"public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }",
"public Square getSquare() {\n\t\treturn new Square(y, x);\n\t}",
"public Square() {\n content = \"EMPTY\";\n \n }",
"public BossRoom() {\n\t\ttiles = new WorldTiles(width, height, width);\n\t\tbackground = new Sprite(SpriteList.BOSS_ROOM_BACKGROUND);\n\t}",
"@Test(expected=IllegalArgumentException.class)\n\tpublic void testInvalidSquare() {\n\t\tassertFalse(Player.isValidStartPosition(null));\n\t\t\n\t\tnew Player(null, 0);\n\t}",
"void createRectangles();",
"@Test\n\tpublic void ValidSetSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.setSquare(new Location(0, 0), new BlankSquare());\n\t\tassertNotNull(\"Shouldn't be null\", square);\n\t}",
"Rectangle(int width, int height){\n area = width * height;\n System.out.println(\"Area of a rectangle = \" +area);\n }",
"public FacultySquare(int myX, int myY, String myEidos){\r\n super(myX,myY, myEidos);\r\n }",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void testClearTileOccupied()\n {\n try\n {\n Square s = new Square();\n s.setTile(Tile.A);\n s.clearTile();\n assertNull(s.getTile());\n assertFalse(s.isOccupied());\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when removing a tile from an occupeid square.\");\n }\n }",
"Rectangle(){\n width = 5;\n height = 3;\n area = width * height;\n System.out.println(\"Area of a rectangle = \" +area);\n }",
"Rectangle(){\n width = 5;\n height = 3;\n area = width * height;\n System.out.println(\"Area of a rectangle = \" +area);\n }",
"public boolean isSquare()\n {\n return width == height;\n }",
"@Test\n public void testSetTileWhenOccupied()\n {\n try\n {\n Square s = new Square();\n\n s.setTile(Tile.E); // Add a tile\n\n s.setTile(Tile.B); // Add another tile\n\n fail(\"You should not be able to place a tile on a square which is already occupied.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"Cannot add a tile to a square with a tile on it.\", ex.getMessage());\n assertEquals(IllegalStateException.class, ex.getClass());\n }\n }",
"public abstract GF2nElement square();",
"public Rectangle() {\n this(50, 40);\n }",
"Rectangle()\n {\n this(1.0,1.0);\n }",
"public Square(Point center, double sideLength) {\n super(center, sideLength);\n }",
"@Test\r\n public void testIsValidSquare()\r\n {\r\n for(int y = 0; y < 8; y++)\r\n for(int x = 0; x < 8; x++)\r\n assertTrue(board.isValidSqr(x, y));\r\n }",
"private BufferedImage makeSquare(BufferedImage photo) {\n int width = photo.getWidth();\n int height = photo.getHeight();\n int size = Math.min(width, height);\n\n return photo.getSubimage((width/2) - (size/2), (height/2) - (size/2), size, size);\n }",
"protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}",
"private void boxCreator(int[] pos, int width, int height) {\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1]] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height; y++) {\n tiles[pos[0]][y] = Tileset.WALL;\n }\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1] + height] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height + 1; y++) {\n tiles[pos[0] + width][y] = Tileset.WALL;\n }\n for (int y = pos[1] + 1; y < pos[1] + height; y++) {\n for (int x = pos[0] + 1; x < pos[0] + width; x++) {\n tiles[x][y] = Tileset.FLOWER;\n }\n }\n }",
"public Complex square() {\n\t\tdouble sqReal = (real * real) - (imaginary * imaginary);\n\t\tdouble sqImaginary = 2 * real * imaginary;\n\t\treturn new Complex(sqReal, sqImaginary);\n\t}",
"public static Unit siege(){\n\t\tUnit unit = new Unit(\"Siege\", \"C_W_Siege\", 15, 5, 12, 14, 4);\n\t\tunit.addWep(new Weapon(\"Warhammer\",10,5));\n\t\tunit.addActive(ActiveType.SLAM);\n\t\tunit.addActive(ActiveType.POWER);\n\t\tunit.addPassive(PassiveType.ALERT);\n\t\treturn unit;\n\t}",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"@Test\n\tpublic void tesInvalidSetSquare_3() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare[][] board = gameState.getBoard();\n\t\tSquare square = gameState.setSquare(new Location(board[0].length, 0), new BlankSquare());\n\t\tassertNull(\"Should be null\", square);\n\t}",
"public Rectangle() {\n x = 0;\n y = 0;\n width = 0;\n height = 0;\n }",
"public void createRoom(Rect room) {\n for(int x = room.x1 + 1; x < room.x2; x++) {\n for(int y = room.y1 + 1; y < room.y2; y++ ) {\n dungeon.map[x][y].blocked = false;\n dungeon.map[x][y].blockSight = false;\n }\n }\n }",
"@Test\n public void testConstructor()\n {\n try\n {\n Square s = new Square();\n\n // Test the properties of s\n assertEquals(Square.squareType.REGULAR, s.getType());\n assertFalse(s.isOccupied());\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when a square is constructed normally.\");\n }\n }",
"public Square(int x, int y){\n\t\tc = Color.GRAY;\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}",
"public Cell(int x,int y){\r\n this.x = x;\r\n this.y = y;\r\n level = 0;\r\n occupiedBy = null;\r\n }",
"public Place(int x, int y){\n this.x=x;\n this.y=y;\n isFull=false;\n }",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"public Square(double length, String color, int x, int y) {\n if (length <= 0) {\n throw new IllegalArgumentException(\"Length must be positive.\");\n }\n \n boolean foundColor = false;\n for (String c : ALLOWED_COLORS) {\n if (color.equals(c)) {\n foundColor = true;\n break;\n }\n }\n \n if (!foundColor) {\n throw new IllegalArgumentException(\"Bad color :(\");\n }\n \n this.length = length;\n this.color = color;\n this.x = x;\n this.y = y;\n }",
"public abstract Area newArea();",
"Rectangle(int l, int w)\n {\n\tlength = l;\n\twidth = w;\n }",
"public void addSquare(Square square) {\n\t\t\n\t}",
"public WiuWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1xpixels.\n super(WIDTH_WORLD, HEIGHT_WORLD, 1); \n }",
"@Test\n\tpublic void testInvalidSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.getSquare(new Location(-1, -1));\n\t\tassertNull(\"Should be null\", square);\n\t}",
"public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}",
"public Complex square() {\n\t\treturn new Complex(this.getReal()*this.getReal()-this.getImag()*this.getImag(), 2*this.getImag()*this.getReal());\n\t\t\n\t}",
"Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}",
"@Test\n public void testGetTile()\n {\n try\n {\n Square s = new Square();\n\n assertNull(s.getTile()); // Should return null as no tile placed yet.\n\n s.setTile(Tile.E); // Add a tile\n\n assertEquals(Tile.E, s.getTile()); // Check the tile is now on the square\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when getting a Tile from the square.\");\n }\n }",
"Block create(int xpos, int ypos);",
"public Rectangle() {\n\t\tthis.width = 1;\n\t\tthis.hight = 1;\n\t\tcounter++;\n\t}",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"private Geometry createRectangle(double x, double y, double w, double h) {\n Coordinate[] coords = {\n new Coordinate(x, y), new Coordinate(x, y + h),\n new Coordinate(x + w, y + h), new Coordinate(x + w, y),\n new Coordinate(x, y)\n };\n LinearRing lr = geometry.getFactory().createLinearRing(coords);\n\n return geometry.getFactory().createPolygon(lr, null);\n }",
"@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}",
"public static SquareBoard getEmptyBoard() {\n\n\t\tSquareBoard emptyBoard = new SquareBoard(BOARD_SIZE);\n\t\t\n\t\treturn emptyBoard;\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void tesInvalidSetSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.getSquare(new Location(0, 0));\n\t\tgameState.setSquare(null, square);\n\t}",
"public Unit<Dimensionless> one() {return one;}"
]
| [
"0.62833774",
"0.62249136",
"0.6098229",
"0.6094201",
"0.6078408",
"0.60470086",
"0.604453",
"0.6018759",
"0.60071117",
"0.5954429",
"0.59519595",
"0.5929053",
"0.59021425",
"0.5851412",
"0.58317894",
"0.5819015",
"0.58181834",
"0.5797909",
"0.5793137",
"0.5779344",
"0.57758516",
"0.5748166",
"0.57449645",
"0.5740498",
"0.5738867",
"0.57262295",
"0.5694204",
"0.56878906",
"0.56572413",
"0.5655115",
"0.5623229",
"0.562062",
"0.561998",
"0.5617839",
"0.56175023",
"0.5560127",
"0.55523753",
"0.5552373",
"0.5547247",
"0.5544877",
"0.5538722",
"0.5524843",
"0.5518786",
"0.55002195",
"0.54987544",
"0.54882216",
"0.54877007",
"0.5485857",
"0.54771954",
"0.54734004",
"0.546078",
"0.5455063",
"0.5439809",
"0.54176176",
"0.54112023",
"0.540709",
"0.54029256",
"0.5398607",
"0.53970754",
"0.5395084",
"0.5395084",
"0.5389049",
"0.5387374",
"0.53794515",
"0.5368714",
"0.5360799",
"0.53392",
"0.53389525",
"0.5327099",
"0.53253376",
"0.5325003",
"0.53244054",
"0.5317413",
"0.52970266",
"0.5286585",
"0.5283125",
"0.5273362",
"0.5270406",
"0.526856",
"0.52626836",
"0.5262285",
"0.5260843",
"0.5256046",
"0.5249392",
"0.52473336",
"0.5234429",
"0.5228196",
"0.5223902",
"0.52026993",
"0.52014697",
"0.5201115",
"0.5198167",
"0.5193366",
"0.51897085",
"0.51872665",
"0.51867014",
"0.5176768",
"0.51734614",
"0.5167574",
"0.5163742"
]
| 0.58105767 | 17 |
Creates a new square that cannot be occupied by any unit. | public Square createWall() {Collect.Hit("BoardFactory.java","createWall()"); Collect.Hit("BoardFactory.java","createWall()", "1976");return new Wall(sprites.getWallSprite()) ; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Square() {\n this(\"x\", false, false);\n }",
"@Test\n\tpublic void invalidOutsideSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(true, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"@Test\n\tpublic void invalidOutsideSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = new BlankSquare();\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"public Square() {\r\n\r\n }",
"public Square () {\r\n super();\r\n \r\n }",
"public Square()\r\n {\r\n super();\r\n }",
"public Square(int w)\n {\n width = w;\n }",
"private NormalSquare createSquare(ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new NormalSquare(color, hasDoor, row, column);\n }",
"public SquareImmutable(Square square)\n {\n this.x = square.getX();\n this.y = square.getY();\n this.isAmmoPoint = square.isAmmoPoint();\n this.isSpawnPoint = square.isSpawnPoint();\n this.color = square.getColor();\n this.playerList = square.getPlayerListColor();\n\n if (square.isSpawnPoint())\n {\n SpawnPoint s = (SpawnPoint) square;\n weaponCardList = s.getWeaponCardList().stream().map(WeaponCard::getName).collect(Collectors.toList());\n }\n else\n {\n AmmoPoint ammoPoint = (AmmoPoint) square;\n\n if (ammoPoint.getAmmoTiles() instanceof JustAmmo)\n {\n JustAmmo justAmmo = (JustAmmo) ammoPoint.getAmmoTiles();\n\n if (justAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new JustAmmoImmutable(justAmmo.getAmmoCardID(),justAmmo.getSingleAmmo(),justAmmo.getDoubleAmmo());\n }\n else\n {\n PowerAndAmmo powerAndAmmo = (PowerAndAmmo) ammoPoint.getAmmoTiles();\n if (powerAndAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new PowerAndAmmoImmutable(powerAndAmmo.getAmmoCardID(),powerAndAmmo.getSingleAmmo(),powerAndAmmo.getSecondSingleAmmo());\n }\n\n }\n }",
"@Test\n public void testSetTypeOccupiedSquare()\n {\n try\n {\n Square s = new Square();\n\n s.setTile(Tile.T);\n s.setType(Square.squareType.DB_WORD);\n\n fail(\"An occupied square should not have a special type.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"A Square cannot have a tile on it and have a special type.\", ex.getMessage());\n }\n }",
"public void createSquares() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n playingBoard[row][col] = new Square();\n }\n }\n }",
"Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}",
"@Test(expected=IllegalArgumentException.class)\n\tpublic void testInvalidSquare() {\n\t\tassertFalse(Player.isValidStartPosition(null));\n\t\t\n\t\tnew Player(null, 0);\n\t}",
"@Test\n\tpublic void validOutsideSquare() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(false, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertTrue(gameState.isOutside(location));\n\t}",
"Rectangle(){\n height = 1;\n width = 1;\n }",
"@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}",
"private void createSquare(int x, int y, int row, int column) {\r\n grid[row][column] = new JLabel();\r\n grid[row][column].setOpaque(true);\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n grid[row][column].setBorder(SQUARE_BORDER);\r\n this.getContentPane().add(grid[row][column]);\r\n grid[row][column].setBounds(x,y,SQUARE_SIZE,SQUARE_SIZE);\r\n }",
"public static SquareCoordinate makeCoordinate(int x, int y)\n {\n \treturn new SquareCoordinate(x, y);\n }",
"@Test\n public void testClearTileOccupied()\n {\n try\n {\n Square s = new Square();\n s.setTile(Tile.A);\n s.clearTile();\n assertNull(s.getTile());\n assertFalse(s.isOccupied());\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when removing a tile from an occupeid square.\");\n }\n }",
"Square getSquare(int x, int y);",
"Rectangle(int width, int height){\n area = width * height;\n }",
"public Square createGround() {Collect.Hit(\"BoardFactory.java\",\"createGround()\"); Collect.Hit(\"BoardFactory.java\",\"createGround()\", \"1746\");return new Ground(sprites.getGroundSprite()) ; }",
"public Rectangle() {\n\t\twidth = 1;\n\t\theight = 1;\n\t}",
"private SpawnSquare createSquare(boolean isSpawn, ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new SpawnSquare(color, hasDoor, row, column);\n }",
"public Square() {\n content = \"EMPTY\";\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 static SquareBoard getEmptyBoard() {\n\n\t\tSquareBoard emptyBoard = new SquareBoard(BOARD_SIZE);\n\t\t\n\t\treturn emptyBoard;\n\t}",
"@Test\n\tpublic void tesInvalidSetSquare_3() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare[][] board = gameState.getBoard();\n\t\tSquare square = gameState.setSquare(new Location(board[0].length, 0), new BlankSquare());\n\t\tassertNull(\"Should be null\", square);\n\t}",
"public Rectangle() {\n x = 0;\n y = 0;\n width = 0;\n height = 0;\n }",
"public Square(int side) {\n super(side, side);\n }",
"private static Square createSquare(String[] input) {\r\n int px = Integer.parseInt(input[1]);\r\n int py = Integer.parseInt(input[2]);\r\n int vx = Integer.parseInt(input[3]);\r\n int vy = Integer.parseInt(input[4]);\r\n boolean isFilled = Boolean.parseBoolean(input[5]);\r\n int side = Integer.parseInt(input[6]);\r\n float r = (float) Integer.parseInt(input[7]) / 255.0f;\r\n float g = (float) Integer.parseInt(input[8]) / 255.0f;\r\n float b = (float) Integer.parseInt(input[9]) / 255.0f;\r\n int insertionTime = Integer.parseInt(input[10]);\r\n boolean isFlashing = Boolean.parseBoolean(input[11]);\r\n float r1 = (float) Integer.parseInt(input[12]) / 255.0f;\r\n float g1 = (float) Integer.parseInt(input[13]) / 255.0f;\r\n float b1 = (float) Integer.parseInt(input[14]) / 255.0f;\r\n return new Square(insertionTime, px, py, vx, vy, side, new Color(r, g, b, 1), isFilled,\r\n isFlashing, new Color(r1, g1, b1, 1));\r\n }",
"private Image blackSquare() {\n\t\tWritableImage wImage = new WritableImage(40, 40);\n\t\tPixelWriter writer = wImage.getPixelWriter();\n\t\tfor (int i = 0; i < 30; i++) {\n\t\t\tfor (int j = 0; j < 30; j++) {\n\t\t\t\twriter.setColor(i, j, Color.BLACK);\n\t\t\t}\n\t\t}\n\t\treturn wImage;\n\t}",
"public static void blankBoard() {\r\n\t\tfor (int i = 0; i < Spaces.length; i++) {\r\n\t\t\tSpaces[i] = new Piece();\r\n\t\t}\r\n\t}",
"public Rectangle() {\n this.length = 0;\n this.width = 0;\n\n }",
"@Test\n\tpublic void testInvalidSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.getSquare(new Location(-1, -1));\n\t\tassertNull(\"Should be null\", square);\n\t}",
"@Test\n public void testIsOccupied()\n {\n try\n {\n Square s = new Square();\n\n assertFalse(s.isOccupied()); // Should be false as no tile on it yet\n\n s.setTile(Tile.A); // Add a tile\n\n assertTrue(s.isOccupied()); // Should now be true\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when adding a tile to a square normally.\");\n }\n }",
"@Test\n public void testClearTileNotOccupied()\n {\n try\n {\n Square s = new Square();\n s.clearTile();\n fail(\"Should not be able to remove a tile from a Square that is not occupied.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"Cannot clear a tile from a square that is not occupied.\", ex.getMessage());\n }\n }",
"public RegularUnit(Location location, int length, int width, int height){\n // initialise instance variables\n super(location, length, width, height, TYPE);\n }",
"public Square(double sideIn)\r\n {\r\n super(sideIn, sideIn);\r\n }",
"public SquareGrid(int width, int height) {\n this.width = width;\n this.height = height;\n }",
"private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }",
"public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public Square(int x, int y){\n\t\t\tthis.x = x;\n\t\t\tthis.y = y;\n\t\t}",
"public void createRoom(Rect room) {\n for(int x = room.x1 + 1; x < room.x2; x++) {\n for(int y = room.y1 + 1; y < room.y2; y++ ) {\n dungeon.map[x][y].blocked = false;\n dungeon.map[x][y].blockSight = false;\n }\n }\n }",
"public static SquareBoard getFullBoard() {\n\n\t\tSquareBoard fullBoard = new SquareBoard(BOARD_SIZE);\n\t\t\n\t\tfor (int ctr = 0; ctr < (BOARD_SIZE * BOARD_SIZE); ctr++) {\n\t\t\tfullBoard.getSpaceByIndex(ctr).setPiece(\n\t\t\t\t\tnew BasicPieceHelper(String.valueOf(ctr), null));\n\t\t}\n\t\t\n\t\treturn fullBoard;\n\t}",
"public Asteroid makeAsteroid() {\r\n\t\tAsteroid asteroid = new AsteroidImpl(startBounds.x, random(startBounds.y,startBounds.height)\r\n\t\t\t\t\t\t\t\t\t\t\t, random(10,40), random(10,40)\r\n\t\t\t\t\t\t\t\t\t\t\t, random(1,4));\r\n\t\treturn asteroid;\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void tesInvalidSetSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.getSquare(new Location(0, 0));\n\t\tgameState.setSquare(null, square);\n\t}",
"Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }",
"private void createSquare(Block block) {\n\t\tSquare square = factory.createSquare();\n\t\tsquare.setName(block.getName());\n\t\tsquare.setBlock(block.getBlock());\n\t\tsquare.getInArrow().addAll(block.getInArrow());\n\t\tsquare.getOutArrow().addAll(block.getOutArrow());\n\t}",
"public Square(int x, int y, int side)\n\t{\n\t\tsuper();\n\t\toneside = side;\n\t\tanchor = new Point(x, y);\n\t\tvertices.add(new Point(x, y));\n\t\tvertices.add(new Point(x + side, y)); // upper right\n\t\tvertices.add(new Point(x + side, y + side)); // lower right\n\t\tvertices.add(new Point(x, y + side)); // lower left\n\t}",
"@Test\n public void testSetTileWhenOccupied()\n {\n try\n {\n Square s = new Square();\n\n s.setTile(Tile.E); // Add a tile\n\n s.setTile(Tile.B); // Add another tile\n\n fail(\"You should not be able to place a tile on a square which is already occupied.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"Cannot add a tile to a square with a tile on it.\", ex.getMessage());\n assertEquals(IllegalStateException.class, ex.getClass());\n }\n }",
"public Cell(int x,int y){\r\n this.x = x;\r\n this.y = y;\r\n level = 0;\r\n occupiedBy = null;\r\n }",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"public Square(int i1, int j1)\n {\n i = i1;\n j = j1;\n\n x = squareSize + squareSize*i;\n y = squareSize + squareSize*j;\n\n mark = ' ';\n }",
"public Square(Point start, Point end, Boolean fill){ //constructor for class Rectangle\r\n this.origin = start;\r\n this.start = start;\r\n this.end = end;\r\n this.fill = fill;\r\n }",
"PRSquare(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Square(double side) throws IllegalArgumentException{\r\n\t\tif(side<0){\r\n\t\t\tthrow new IllegalArgumentException(\"Side can not be negative\");\r\n\t\t}\r\n\t\tthis.side=side;\r\n\t}",
"@Test\n public void testConstructor()\n {\n try\n {\n Square s = new Square();\n\n // Test the properties of s\n assertEquals(Square.squareType.REGULAR, s.getType());\n assertFalse(s.isOccupied());\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when a square is constructed normally.\");\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void tesInvalidSetSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tgameState.setSquare(new Location(0, 0), null);\n\t}",
"public Rectangle() {\n this(50, 40);\n }",
"public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}",
"Rectangle()\n {\n this(1.0,1.0);\n }",
"public Square(int x, int y, int z) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t\tcontainingRows = new ArrayList<Row>();\n\t\tstate = null;\n\t}",
"private static StructureElement createCenteredSquare(int size) {\r\n\t\treturn new StructureElement(createSquareMask(size), size / 2, size / 2);\r\n\t}",
"public Board twin() {\n int x = -1, y = -1;\n int[][] tmpBlock = new int[N][N];\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (j < N-1 && matrix[i][j] != 0 && matrix[i][j+1] != 0) {\n x = i;\n y = j;\n }\n tmpBlock[i][j] = matrix[i][j];\n }\n }\n if (x == -1 && y == -1) throw new IllegalArgumentException();\n int t = tmpBlock[x][y];\n tmpBlock[x][y] = tmpBlock[x][y+1];\n tmpBlock[x][y+1] = t;\n return new Board(tmpBlock);\n }",
"@Test\r\n public void testIsValidSquare()\r\n {\r\n for(int y = 0; y < 8; y++)\r\n for(int x = 0; x < 8; x++)\r\n assertTrue(board.isValidSqr(x, y));\r\n }",
"public Point findEmptyCell(){\n int height = Math.min(labyrinth.getCells().length,LabyrinthFactory.HEIGHT-2);\n int widht = Math.min(labyrinth.getCells()[0].length, LabyrinthFactory.WIDTH);\n while(true) {\n int x = ThreadLocalRandom.current().nextInt(0, widht-2);\n int y = ThreadLocalRandom.current().nextInt(0, height-2);\n if (!labyrinth.getCell(x, y).isSolid()) {\n return new Point(x, y);\n }\n }\n }",
"public void createNew(int xSize, int ySize, int countOfMines);",
"public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}",
"public Square(String name) {\r\n this(name.charAt(0), name.charAt(1));\r\n }",
"public Square copy() {\n\t\tSquare s = new Square(x,y);\n\t\ts.z = z;\n\t\ts.c = new Color(c.getRGB());\n\t\treturn s;\n\t}",
"private void createAreaWithoutBorder(){\n image.setColor(backgroundColor);\n image.fillRect(0, 0, fieldWidth, fieldHeight);\n }",
"@Test\n\tpublic void ValidSetSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.setSquare(new Location(0, 0), new BlankSquare());\n\t\tassertNotNull(\"Shouldn't be null\", square);\n\t}",
"public abstract boolean initNoFill(int width, int height);",
"public Coordinate() { row = col = -1; }",
"private static void createEmptyBoard()\n {\n for (int index = 1; index < board.length; index++)\n {\n board[index] = ' ';\n }\n }",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"public void testSquareConstructor(int x, int y)\n {\n String fb = \"\";\n Square square = new Square(x, y);\n if (square.getxPosition() != x)\n {\n fb += \"Fail in TestPrelab2.\\n\";\n fb += \"Square parameter constructor improperly set xPosition.\\n\";\n fb += \"Square square = new Square(\" + x + \",\" + y + \");\\n\";\n fb += \"did not set xPosition to \" + x + \".\\n\";\n fail(fb);\n }\n \n if (square.getyPosition() != y)\n {\n fb += \"Fail in TestPrelab2.\\n\";\n fb += \"Square parameter constructor improperly set xPosition.\\n\";\n fb += \"Square square = new Square(\" + x + \",\" + y + \");\\n\";\n fb += \"did not set yPosition to \" + y + \".\\n\";\n fail(fb);\n }\n \n if (!square.getColor().equals(\"black\"))\n {\n fb += \"Fail in TestPrelab2.\\n\";\n fb += \"Square parameter constructor improperly set Color.\\n\";\n fb += \"Check lab documentation for proper color.\\n\";\n fail(fb); \n }\n \n if (square.getSize() != 5)\n {\n fb += \"Fail in TestPrelab2.\\n\";\n fb += \"Square parameter constructor improperly set size.\\n\";\n fb += \"Check lab documentation for proper size.\\n\";\n fail(fb); \n }\n \n if (!square.isIsVisible() || !square.isMvr())\n {\n fb += \"Fail in TestPrelab2.\\n\";\n fb += \"Square parameter constructor did not make the square \" \n + \"visible correctly.\\n\";\n fb += \"Constructor should run makeVisible().\\n\";\n fb += \"Check lab documentation.\\n\";\n fail(fb); \n }\n }",
"public BossRoom() {\n\t\ttiles = new WorldTiles(width, height, width);\n\t\tbackground = new Sprite(SpriteList.BOSS_ROOM_BACKGROUND);\n\t}",
"public Square getSquare() {\n\t\treturn new Square(y, x);\n\t}",
"public Rectangle()\n {\n length = 1;\n width = 1;\n count++;\n }",
"public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}",
"public Unit(int x, int y, int width, int height) {\n super(x, y, width, height);\n LOGGER.log(Level.INFO, this.toString() + \" created at (\" + x + \",\" + y + \")\", this.getClass());\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void tesInvalidSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tgameState.getSquare(null);\n\t}",
"public Square(int x, int y){\n\t\tc = Color.GRAY;\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}",
"@Test\n public void emptyBoard() {\n Board b = new Board();\n for (int c = 0; c < b.SIZE; c += 1) {\n for (int r = 0; r < b.SIZE; r += 1) {\n assertEquals(EMPTY, b.get(c, r));\n }\n }\n }",
"public FacultySquare(int myX, int myY, String myEidos){\r\n super(myX,myY, myEidos);\r\n }",
"@Override\n public Square getSquare() {\n return null;\n }",
"public GameBoard(){\r\n\t\tboard = new Box[boardSize];\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tboard[i] = Box.EMPTY;\r\n\t\t}\r\n\t}",
"public Square(Point center, double sideLength) {\n super(center, sideLength);\n }",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"public static Composition empty(int width, int height) {\n Canvas canvas = new Canvas(width, height);\n Composition comp = new Composition(canvas);\n return comp;\n }",
"private static int getSquareOfRoom(int length, int width) {\n return length * width;\n }",
"private void createNonDoorCells(Rectangle cellSize) {\r\n\r\n\t\tfor (int i = 0; i < this.roomCells.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.roomCells[i].length; j++) {\r\n\t\t\t\tif (this.roomCells[i][j] == null) {\r\n\r\n\t\t\t\t\tPoint coordinate = new Point(i * cellSize.width, j * cellSize.height);\r\n\t\t\t\t\tGameLocation location = new GameLocation(coordinate, this.roomId);\r\n\r\n\t\t\t\t\tif (this.stepablePolygon.contains(coordinate)) {\r\n\r\n\t\t\t\t\t\tthis.roomCells[i][j] = new Cell(location, CellProperty.Stepable);\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tthis.roomCells[i][j] = new Cell(location, CellProperty.NoProperty);\r\n\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}",
"public Complex square() {\n\t\treturn new Complex(this.getReal()*this.getReal()-this.getImag()*this.getImag(), 2*this.getImag()*this.getReal());\n\t\t\n\t}",
"protected SquareDungeon() throws IllegalMaximumDimensionsException {\r\n\t\tthis(Point.CUBE);\r\n\t}",
"public Square(int size, Color color){\n\t\tthis.square = new Rectangle();\n\t\tthis.setDimensions(size);\n\t\tthis.setColour(color);\n\t}"
]
| [
"0.62933767",
"0.6128897",
"0.61039066",
"0.6021218",
"0.600527",
"0.598458",
"0.59805894",
"0.5980523",
"0.594957",
"0.5938596",
"0.59339905",
"0.58523464",
"0.5848329",
"0.5846364",
"0.57789046",
"0.5776939",
"0.5750347",
"0.57448274",
"0.57356495",
"0.5725062",
"0.57211643",
"0.5696991",
"0.56829554",
"0.5674893",
"0.56673163",
"0.5649752",
"0.5647344",
"0.563509",
"0.56290454",
"0.5626131",
"0.5624829",
"0.5623361",
"0.56051284",
"0.56014025",
"0.5577016",
"0.5574319",
"0.5561405",
"0.55495244",
"0.5503725",
"0.5491389",
"0.5478409",
"0.5478333",
"0.5475963",
"0.5470242",
"0.54664356",
"0.5462865",
"0.54539305",
"0.5447069",
"0.5445982",
"0.54189503",
"0.54186547",
"0.5416021",
"0.5412395",
"0.53959095",
"0.5394699",
"0.53551424",
"0.5352099",
"0.5351091",
"0.534737",
"0.53433627",
"0.53413236",
"0.53383017",
"0.5333428",
"0.53318",
"0.5328318",
"0.532768",
"0.53262514",
"0.5316761",
"0.5315636",
"0.5306254",
"0.53037727",
"0.53007543",
"0.5296439",
"0.5291732",
"0.5287107",
"0.5282399",
"0.5274866",
"0.52724886",
"0.527148",
"0.5266846",
"0.5262705",
"0.5262506",
"0.52611595",
"0.52558684",
"0.52514744",
"0.52507085",
"0.52470756",
"0.52419215",
"0.5238105",
"0.5225507",
"0.522036",
"0.52183515",
"0.52164054",
"0.5212665",
"0.52107954",
"0.52102596",
"0.5208093",
"0.5205489",
"0.5204767",
"0.52040637"
]
| 0.57463986 | 17 |
Creates a new wall square. | Wall(Sprite sprite) {Collect.Hit("BoardFactory.java","Wall(Sprite sprite)");this.background = sprite; Collect.Hit("BoardFactory.java","Wall(Sprite sprite)", "2420");} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }",
"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 }",
"private void createWalls(){\n\t \tfloat wallWidth = GameRenderer.BOARD_WIDTH ;\n\t \tfloat wallHeight = GameRenderer.BOARD_HEIGHT ;\n\t \tint offset = -2;\n\t \tint actionBaOffset = 2;\n\t \t\n\t \t//Left Wall\n\t \tnew SpriteWall(0, actionBaOffset, 0, wallHeight+offset);\n\t \t\n\t \t//Right Wall\n\t \tnew SpriteWall(wallWidth+offset, actionBaOffset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t \t//Top Wall\n\t \tnew SpriteWall(0, actionBaOffset, wallWidth+offset, actionBaOffset);\n\t \t\n\t \t//Bottom Wall\n\t \tnew SpriteWall(0, wallHeight+offset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t }",
"@Override\n\tpublic Wall MakeWall() {\n\t\treturn new RedWall();\n\t}",
"private void createWalls() {\n int environmentWidth = config.getEnvironmentWidth();\n int environmentHeight = config.getEnvironmentHeight();\n // Left\n Double2D pos = new Double2D(0, environmentHeight / 2.0);\n Double2D v1 = new Double2D(0, -pos.y);\n Double2D v2 = new Double2D(0, pos.y);\n WallObject wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Right\n pos = new Double2D(environmentWidth, environmentHeight / 2.0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Top\n pos = new Double2D(environmentWidth / 2.0, 0);\n v1 = new Double2D(-pos.x, 0);\n v2 = new Double2D(pos.x, 0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Bottom\n pos = new Double2D(environmentWidth / 2.0, environmentHeight);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n }",
"public static MotionlessElement createWall() {\r\n\treturn wall;\r\n\t}",
"public Square createGround() {Collect.Hit(\"BoardFactory.java\",\"createGround()\"); Collect.Hit(\"BoardFactory.java\",\"createGround()\", \"1746\");return new Ground(sprites.getGroundSprite()) ; }",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"@Override\r\n\tpublic Wall createWall() throws UnsupportedOperationException\r\n\t{\r\n\t\treturn new Wall();\r\n\t}",
"@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}",
"public Wall(int x, int y)\r\n\t{\r\n\t\tsuper(x,y);\r\n\t}",
"public Wall() {\n super(false, \"wall\");\n }",
"public Wall(int x1, int y1,int x2,int y2) {\r\n\tthis.x1 = x1 + TRANSLATION;\r\n\tthis.x2 = x2 + TRANSLATION;\r\n\tthis.y1 = y1 + TRANSLATION;\r\n\tthis.y2 = y2 + TRANSLATION;\r\n\tbustedWall = false; \r\n}",
"public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"public void makeBody()\n {\n Texture text;\n if(bounds.getHeight()<bounds.getWidth()) {\n text = new Texture(\"img/wall.jpg\");\n }else{\n text = new Texture(\"img/wall2.jpg\");\n }\n\n Sprite wallSprite;\n wallSprite = new Sprite(text);\n wallSprite.setSize(bounds.getWidth(),bounds.getHeight());\n wallSprite.setOrigin(bounds.getWidth()/2, bounds.getHeight()/2);\n\n BodyDef bodydef = new BodyDef();\n bodydef.type = BodyType.StaticBody;\n bodydef.position.set(position.x,position.y);\n\n PolygonShape shape = new PolygonShape();\n shape.setAsBox(bounds.width/2, bounds.height/2);\n\n FixtureDef def = new FixtureDef();\n def.shape = shape;\n def.friction = 0.5f;\n def.restitution = 0;\n wall = world.createBody(bodydef);\n wall.createFixture(def);\n wall.getFixtureList().get(0).setUserData(\"w\");\n wall.setUserData(wallSprite);\n\n shape.dispose();\n }",
"public void createSquares() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n playingBoard[row][col] = new Square();\n }\n }\n }",
"public void createWall() { // make case statement?\n\t\tRandom ran = new Random();\n\t\tint range = 6 - 1 + 1; // max - min + min\n\t\tint random = ran.nextInt(range) + 1; // add min\n\n\t\t//each wall is a 64 by 32 chunk \n\t\t//which stack to create different structures.\n\t\t\n\t\tWall w; \n\t\tPoint[] points = new Point[11];\n\t\tpoints[0] = new Point(640, -32);\n\t\tpoints[1] = new Point(640, 0);\n\t\tpoints[2] = new Point(640, 32); // top\n\t\tpoints[3] = new Point(640, 384);\n\t\tpoints[4] = new Point(640, 416);\n\n\t\tif (random == 1) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 2) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96); // top\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 3) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192); // top\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 4) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192);\n\t\t\tpoints[10] = new Point(640, 224); // top\n\t\t} else if (random == 5) {\n\t\t\tpoints[5] = new Point(640, 64); // top\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 6) {\n\t\t\tpoints[5] = new Point(640, 192);\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256); // bottom\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t}\n\n\t\tfor (int i = 0; i < points.length; i++) { // adds walls\n\t\t\tw = new Wall();\n\t\t\tw.setBounds(new Rectangle(points[i].x, points[i].y, 64, 32));\n\t\t\twalls.add(w);\n\t\t}\n\t\tWall c; // adds a single checkpoint\n\t\tc = new Wall();\n\t\tcheckPoints.add(c);\n\t\tc.setBounds(new Rectangle(640, 320, 32, 32));\n\t}",
"public Wall() {\n\t\tcanHold = false;\n\t\tisPassable = false;\n\t\ttype = TileTypes.WALL;\n\t}",
"public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }",
"public void buildBoundaryWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (i == 0 || i == worldWidth - 1\n || j == 0 || j == worldHeight - 1) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }",
"private void addWalls() {\n wallList.add(new RectF(0, 0, wallSize, screenHeight / 2 - doorSize));\n wallList.add(new RectF(0, screenHeight / 2 + doorSize, wallSize, screenHeight));\n wallList.add(new RectF(0, 0, screenWidth / 2 - doorSize, wallSize));\n wallList.add(new RectF(screenWidth / 2 + doorSize, 0, screenWidth, wallSize));\n wallList.add(new RectF(screenWidth - wallSize, 0, screenWidth, screenHeight / 2 - doorSize));\n wallList.add(new RectF(screenWidth - wallSize, screenHeight / 2 + doorSize, screenWidth, screenHeight));\n wallList.add(new RectF(0, screenHeight - wallSize, screenWidth / 2 - doorSize, screenHeight));\n wallList.add(new RectF(screenWidth / 2 + doorSize, screenHeight - wallSize, screenWidth, screenHeight));\n }",
"public static Entity createWall(float width, float height) {\n\t\tEntity wall = new Entity()\n\t\t\t.addComponent(new PhysicsComponent().setBodyType(BodyType.StaticBody))\n\t\t\t.addComponent(new ColliderComponent().setLayer(PhysicsLayer.OBSTACLE));\n\t\twall.setScale(width, height);\n\t\treturn wall;\n\t}",
"private SpawnSquare createSquare(boolean isSpawn, ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new SpawnSquare(color, hasDoor, row, column);\n }",
"public void create() {\n int emptyBlocks = 0; \t\t\t\t\t\t\t\t// count of empty blocks\r\n int walls = 0; \t\t\t\t\t\t\t\t\t// count of walls\r\n int[] wallsRow = new int[(m.rows*m.columns)/2]; \t// temporary wall positions (half the total maze size)\r\n int[] wallsColumn = new int[(m.rows*m.columns)/2];\r\n \r\n for (int i = 0; i < m.rows; i++) \t\t\t\t\t// for each row\r\n for (int j = 0; j < m.columns; j++)\t\t\t\t// for each column (each block in a row)\r\n \tm.maze[i][j] = 1;\t\t\t\t\t\t\t// make the block a wall\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t// the maze is all walls\r\n \r\n for (int i = 1; i < m.rows - 1; i += 2) \t\t\t// loop over every other block\r\n for (int j = 1; j < m.columns - 1; j += 2) {\r\n \tm.maze[i][j] = -emptyBlocks; \t\t\t\t// make every other block an empty block\r\n \temptyBlocks++;\t\t\t\t\t\t\t\t// so increment our empty blocks\r\n if (i < m.rows - 2) { \t\t\t\t\t\t// if there is a block below this room\r\n \twallsRow[walls] = i + 1;\t\t\t\t// set this block to be a wall in the temporary wall array\r\n \twallsColumn[walls] = j;\r\n walls++;\t\t\t\t\t\t\t\t// increment because we added a wall to the maze\r\n }\r\n if (j < m.columns - 2) { \t\t\t\t\t// if there is a block below this room\r\n \twallsRow[walls] = i;\t\t\t\t\t// set this block to be a wall in the temporary wall array\r\n \twallsColumn[walls] = j + 1;\r\n walls++;\t\t\t\t\t\t\t\t// increment because we added a wall to the maze\r\n }\r\n }\r\n repaint();\r\n for (int i = walls - 1; i > 0; i--) {\t\t\t\t// loop over the number of walls generated (half the total maze size)\r\n int r = (int)(Math.random() * i); \t\t\t\t// choose a random wall\r\n removeWall(wallsRow[r], wallsColumn[r]);\t\t// remove the wall if it doesn't form a loop\r\n wallsRow[r] = wallsRow[i];\r\n wallsColumn[r] = wallsColumn[i];\r\n }\r\n for (int i = 1; i < m.rows - 1; i++) \t\t\t\t// for each row\r\n for (int j = 1; j < m.columns - 1; j++)\t\t\t// for each column (each block in a row)\r\n if (m.maze[i][j] < 0)\t\t\t\t\t\t// set the empty blocks to finalized blocks \r\n \tm.maze[i][j] = 3;\r\n }",
"public void addWall(Wall w)\n {\n walls.add(w);\n }",
"private static void makeWalls(City city) \n {\n Wall[] walls = new Wall[6];\n \n for(int i=0; i<6; i++)\n {\n walls[i] = new Wall(city, i+1, 5, Direction.EAST);\n walls[i] = new Wall(city, i+1, 0, Direction.WEST);\n walls[i] = new Wall(city, 1, i, Direction.NORTH);\n walls[i] = new Wall(city, 6, i, Direction.SOUTH);\n }\n }",
"public void buildWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (world[i][j].equals(Tileset.NOTHING)\n && isAdjacentFloor(i, j)) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }",
"public Wall(float x, float y, float width, float height, World world)\n {\n super(x,y,width, height);\n this.world = world;\n }",
"public void setupWorld()\r\n\t{\r\n\t\t//build walls\r\n\t\twall1.add(new PointD(-500, 500));\r\n\t\twall1.add(new PointD(-490, 500));\r\n\t\twall1.add(new PointD(-490, -500));\r\n\t\twall1.add(new PointD(-500, -500));\r\n\r\n\t\twall2.add(new PointD(-500, 500));\r\n\t\twall2.add(new PointD(2000, 500));\r\n\t\twall2.add(new PointD(2000, 490));\r\n\t\twall2.add(new PointD(-500, 490));\r\n\t\t\r\n\t\twall3.add(new PointD(2000, 500));\r\n\t\twall3.add(new PointD(1990, 500));\r\n\t\twall3.add(new PointD(1990, -500));\r\n\t\twall3.add(new PointD(2000, -500));\r\n\r\n\t\twall4.add(new PointD(-500, -500));\r\n\t\twall4.add(new PointD(2000, -500));\r\n\t\twall4.add(new PointD(2000, -490));\r\n\t\twall4.add(new PointD(-500, -490));\r\n\r\n\t\tobjects.add(wall1);\r\n\t\tobjects.add(wall2);\r\n\t\tobjects.add(wall3);\r\n\t\tobjects.add(wall4);\r\n\t\t\r\n\t\t\r\n\t\t//add people\r\n\t\tGameVars.people = people;\r\n\t\tGameVars.aSquare = aSquare;\r\n\t\t\r\n\t\tobjects.add(grandson.boundary);\r\n\t\tpeople.add(grandson);\r\n\t\t\r\n\t\tobjects.add(son.boundary);\r\n\t\tpeople.add(son);\r\n\t\t\r\n\t\tobjects.add(triangle.boundary);\r\n\t\tpeople.add(triangle);\r\n\r\n\t\tobjects.add(wife.boundary);\r\n\t\tpeople.add(wife);\r\n\r\n\t\tobjects.add(runaway.boundary);\r\n\t\tpeople.add(runaway);\r\n\t\t\r\n\t\t\r\n\t\t//set aSquare's position\r\n\t\taSquare.rotate(220);\r\n\t\t\r\n\t}",
"private NormalSquare createSquare(ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new NormalSquare(color, hasDoor, row, column);\n }",
"WallType createWallType();",
"public Wall(Point loc,int _length) {\n\t\tlocation=loc;\n\t\tlength=_length;\n\t\timage = new Rectangle(loc.getX(),loc.getY(),10,_length);\n\t\timage.setFill(Color.WHITE);\n\t}",
"public int generateWall() {\n Entity e = new Wall(rand.nextInt(10) + 1);\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(1000, mMap.getBottomBound() - e.getHeight());\n mGame.addEntity(e);\n\n return e.getWidth();\n }",
"public WallTile()\n\t{\n\t\t\n\t}",
"public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }",
"public Wall()\n {\n super();\n setColor( null );\n\n }",
"private void createSquare(Block block) {\n\t\tSquare square = factory.createSquare();\n\t\tsquare.setName(block.getName());\n\t\tsquare.setBlock(block.getBlock());\n\t\tsquare.getInArrow().addAll(block.getInArrow());\n\t\tsquare.getOutArrow().addAll(block.getOutArrow());\n\t}",
"public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }",
"private void boxCreator(int[] pos, int width, int height) {\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1]] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height; y++) {\n tiles[pos[0]][y] = Tileset.WALL;\n }\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1] + height] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height + 1; y++) {\n tiles[pos[0] + width][y] = Tileset.WALL;\n }\n for (int y = pos[1] + 1; y < pos[1] + height; y++) {\n for (int x = pos[0] + 1; x < pos[0] + width; x++) {\n tiles[x][y] = Tileset.FLOWER;\n }\n }\n }",
"private StackPane buildWall(Wall wall) {\n double x_offset = wall.getPosition().getX() * TILE_WIDTH;\n double y_offset = wall.getPosition().getY() * TILE_HEIGHT - 8;\n if (wall.getOrientation() == WallOrientation.VERTICAL) {\n x_offset -= 8;\n y_offset += 8;\n }\n ImageView imageView = getWallTextureFor(wall);\n StackPane stackPane = new StackPane();\n stackPane.setLayoutX(x_offset);\n stackPane.setLayoutY(y_offset);\n stackPane.setDisable(true);\n stackPane.getChildren().add(imageView);\n return stackPane;\n }",
"private void generateAddWalls(int x, int y) {\n\n\t\t// make center walkable\n\t\tmaze[x][y] = Block.EMPTY;\n\n\t\t// all around add to list\n\t\tfor (Point point : allDirections) {\n\t\t\tif (x > 1 && y > 1 && x < width - 2 && y < height - 2\n\t\t\t\t\t&& maze[x + point.x][y + point.y] == Block.WALL)\n\t\t\t\twallList.add(new Point(x + point.x, y + point.y));\n\t\t}\n\t}",
"private static Square createSquare(String[] input) {\r\n int px = Integer.parseInt(input[1]);\r\n int py = Integer.parseInt(input[2]);\r\n int vx = Integer.parseInt(input[3]);\r\n int vy = Integer.parseInt(input[4]);\r\n boolean isFilled = Boolean.parseBoolean(input[5]);\r\n int side = Integer.parseInt(input[6]);\r\n float r = (float) Integer.parseInt(input[7]) / 255.0f;\r\n float g = (float) Integer.parseInt(input[8]) / 255.0f;\r\n float b = (float) Integer.parseInt(input[9]) / 255.0f;\r\n int insertionTime = Integer.parseInt(input[10]);\r\n boolean isFlashing = Boolean.parseBoolean(input[11]);\r\n float r1 = (float) Integer.parseInt(input[12]) / 255.0f;\r\n float g1 = (float) Integer.parseInt(input[13]) / 255.0f;\r\n float b1 = (float) Integer.parseInt(input[14]) / 255.0f;\r\n return new Square(insertionTime, px, py, vx, vy, side, new Color(r, g, b, 1), isFilled,\r\n isFlashing, new Color(r1, g1, b1, 1));\r\n }",
"public static final Vector<JARWall> createFloor( int x, int y, int width, JARImage imgWall, JARImage imgTopping )\n {\n Vector<JARWall> ret = new Vector<JARWall>();\n\n int drawX = x;\n\n //browse width\n for ( int i = 0; i < width; ++i )\n {\n //add wall\n ret.add( new JARWall( drawX, y, imgWall, CollisionType.EColliding, DrawingLayer.EBeforePlayer ) );\n\n //add topping if specified\n if ( imgTopping != null )\n {\n ret.add( new JARWall( drawX, y - 64, imgTopping, CollisionType.ENonColliding, DrawingLayer.EBeforePlayer ) );\n }\n\n //increase drawing location\n drawX += 128;\n }\n\n return ret;\n }",
"private void addWall(int positionX, int positionY) {\n for (int i = Math.max(0, positionX - 1);\n i < Math.min(size.width, positionX + 2); i++) {\n for (int j = Math.max(0, positionY - 1);\n j < Math.min(size.height, positionY + 2); j++) {\n if (world[i][j] == Tileset.NOTHING) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }",
"public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }",
"public void createBoard() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n matrix[i][j] = WATER;\n }\n }\n }",
"private void buildWalls() {\n for (Position floor : floors) {\n addWall(floor.xCoordinate, floor.yCoordinate);\n }\n }",
"public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) ) / windowsX;\r\n int sizeY = ( building.getHeight() - spacingY * ( windowsY + 1 ) ) / windowsY;\r\n \r\n \r\n for( int i = 1; i <= windowsX; i++ )\r\n {\r\n for( int k = 1; k <= windowsY; k++ )\r\n {\r\n \r\n Rectangle r = new Rectangle( building.getXLocation() + ( spacingX / 2 + spacingX * i ) + sizeX * ( i - 1 ), \r\n building.getYLocation() + ( spacingY / 2 + spacingY * k ) + sizeY * ( k - 1 ) );\r\n r.setSize( sizeX, sizeY );\r\n r.setColor( new Color( 254, 254, 34 ) );\r\n add( r );\r\n }\r\n }\r\n }",
"private void createSquare(int x, int y, int row, int column) {\r\n grid[row][column] = new JLabel();\r\n grid[row][column].setOpaque(true);\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n grid[row][column].setBorder(SQUARE_BORDER);\r\n this.getContentPane().add(grid[row][column]);\r\n grid[row][column].setBounds(x,y,SQUARE_SIZE,SQUARE_SIZE);\r\n }",
"public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}",
"public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }",
"static private Screen createScreen() {\n Screen test = new Screen();\n //These values below, don't change\n test.addWindow(1,1,64, 12);\n test.addWindow(66,1,64,12);\n test.addWindow(1,14,129,12);\n test.setWidthAndHeight();\n test.makeBoarders();\n test.setWindowsType();\n test.draw();\n return test;\n }",
"public WorldScene makeScene() {\n WorldScene w = new WorldScene(width * scale, height * scale);\n for (Vertex v : vertices) {\n Color color = generateColor(v);\n w.placeImageXY(new RectangleImage(scale, scale, OutlineMode.SOLID, color),\n (v.x * scale) + (scale * 1 / 2), (v.y * scale) + (scale * 1 / 2));\n }\n for (Edge e : walls) {\n if (e.to.x == e.from.x) {\n w.placeImageXY(\n new RectangleImage(scale, scale / 10, OutlineMode.SOLID, Color.black),\n (e.to.x * scale) + (scale * 1 / 2),\n ((e.to.y + e.from.y) * scale / 2) + (scale * 1 / 2));\n }\n else {\n w.placeImageXY(\n new RectangleImage(scale / 10, scale, OutlineMode.SOLID, Color.black),\n ((e.to.x + e.from.x) * scale / 2) + (scale * 1 / 2),\n (e.to.y * scale) + (scale * 1 / 2));\n }\n }\n return w;\n }",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public void addWall(StructureTypeEnum type, int x1, int y1, int x2, int y2, float qualityLevel, long structureId, boolean isIndoor) {\n/* 3891 */ if (logger.isLoggable(Level.FINEST))\n/* */ {\n/* 3893 */ logger.finest(\"StructureID: \" + structureId + \" adding wall at \" + x1 + \"-\" + y1 + \",\" + x2 + \"-\" + y2 + \", QL: \" + qualityLevel);\n/* */ }\n/* */ \n/* */ \n/* 3897 */ DbWall dbWall = new DbWall(type, this.tilex, this.tiley, x1, y1, x2, y2, qualityLevel, structureId, StructureMaterialEnum.WOOD, isIndoor, 0, getLayer());\n/* 3898 */ addWall((Wall)dbWall);\n/* 3899 */ updateWall((Wall)dbWall);\n/* */ }",
"public void createRoom(Rect room) {\n for(int x = room.x1 + 1; x < room.x2; x++) {\n for(int y = room.y1 + 1; y < room.y2; y++ ) {\n dungeon.map[x][y].blocked = false;\n dungeon.map[x][y].blockSight = false;\n }\n }\n }",
"public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }",
"public WpWallSurface(int x, int y,Position position,SurfaceType type,boolean passing) {\n super(x, y,position);\n this.type = type;\n this.passing = passing;\n }",
"public void createNewGame() {\n\t\tfor(int n = 0; n < 8; n++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif ( n % 2 == j % BLACK_PAWN ) {\n\t\t\t\t\tif (n < 3)\n\t\t\t\t\t\tarr[n][j] = RED_PAWN;\n\t\t\t\t\telse if (n > 4)\n\t\t\t\t\t\tarr[n][j] = BLACK_PAWN;\n\t\t\t\t\telse\n\t\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t } \n\t\t\t\telse\n\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t\t}\n\t\t}\n\t}",
"private void generateBorder() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (x == 0 || y == 0 || x == width - 1 || y == height - 1) {\n\t\t\t\t\ttiles[x + y * width] = Tile.darkGrass;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void createHallway(int len) {\n createRoom(len, 0, 0);\n }",
"public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }",
"public void generateShape() {\n\n //TODO for tetris game - copy added to Tetris\n Shape newShape = null;\n //if(GAME_TO_TEST==GameEnum.TETRIS){\n //newShape = TetrisShapeFactory.getRandomShape(this.board);\n //} else if (GAME_TO_TEST== GameEnum.DRMARIO){\n //newShape = DrMarioShapeFactory.getRandomShape(this.board);\n //}\n\n //Temporary\n //-------------------------------------//\n Image image = null;\n try {\n image = new Image(new FileInputStream(\"resources/BlockPurple.png\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int spawnColIndex = 0;\n int spawnRowIndex = 0;\n int tileSize = 0;\n boolean setColor = false;\n boolean setTileBorder = false; //toggle to add boarder to tile\n boolean setImage = true;\n spawnColIndex = (board.gridWidth-1)/2; //half of board width\n spawnRowIndex = 0;\n tileSize = board.tileSize;\n\n Tile tile1 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 0 , Direction.DOWN); //Center Tile\n Tile tile2 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex,1 , Direction.RIGHT);\n Tile tile3 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.LEFT);\n Tile tile4 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.DOWN);\n\n List<Tile> tiles = new ArrayList<Tile>();\n tiles.add(tile1);\n tiles.add(tile2);\n tiles.add(tile3);\n tiles.add(tile4);\n newShape = new Shape(tiles);\n\n //set newly created shape as the currently active shape\n this.currentActiveShape = newShape;\n\n //check if spawn area is occupied\n boolean isOccupied =false;\n for (Tile newTile : this.currentActiveShape.tiles) {\n if(this.board.getTile(newTile.columnIndex,newTile.rowIndex)!=null){\n isOccupied = true;\n }\n }\n\n //TODO\n //check if shape reaches top\n if(!isOccupied){\n //add tiles to board\n for (Tile newTile : this.currentActiveShape.tiles) {\n this.board.placeTile(newTile);\n }\n } else {\n //TODO later add Game Over JavaFx message\n System.out.println(\"GAME OVER\");\n\n //TODO Finishlater\n //Text gameoverText = new Text(10,20,\"GAME OVER\");\n //gameoverText.setFill(Color.RED);\n //gameoverText.setX( 100/*( ((board.gridWidth-1)*tileSize)/2)*/ );\n //gameoverText.setY( 100/*( ((board.gridHeight-1)*tileSize)/2)*/ );\n //gameoverText.setStyle(\"-fx-font: 70 arial;\");\n //this.group.getChildren().add(gameoverText);\n\n //Text t = new Text();\n //t.setX(20.0f);\n //t.setY(65.0f);\n //t.setX(100);\n //t.setY(200);\n //t.setText(\"Perspective\");\n //t.setFill(Color.YELLOW);\n //t.setFont(Font.font(null, FontWeight.BOLD, 36));\n //this.group.getChildren().add(t);\n //this.pane.getChildren().add(t);\n\n //System.exit(0);\n }\n\n }",
"public boolean addHorizontalWall(int x, int y) {\n if(x+1 > width || y > height) \n throw new IllegalArgumentException(\"Wall exceeds maze boundary\");\n return walls.add(new Wall(x, y, true));\n }",
"MainBoard createMainBoard();",
"public void setWalls (Array<Rectangle> walls) {\n\t\tthis.walls = walls;\n\t}",
"public void newGame() {\n \tturn = PieceColor.White;\n \t\n \t//the middle are empty squares\n \tfor(int i = 2; i < 6; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tsetPiece(j, i, new NoPiece(j, i));\n \t\t}\n \t}\n \t\n \t//pawns\n \tfor(int i = 0; i < 8; i++) {\n \t\t//make these pawns\n \t\tsetPiece(i, 1, new Pawn(i, 1, PieceColor.White, this));\n \t\tsetPiece(i, 6, new Pawn(i, 6, PieceColor.Black, this));\n \t}\n \t\n \t//white back row\n \tsetPiece(0, 0, new Rook(0, 0, PieceColor.White, this));\n \tsetPiece(1, 0, new Knight(1, 0, PieceColor.White, this));\n \tsetPiece(2, 0, new Bishop(2, 0, PieceColor.White, this));\n \tsetPiece(3, 0, new Queen(3, 0, PieceColor.White, this));\n \tsetPiece(4, 0, new King(4, 0, PieceColor.White, this));\n \tsetPiece(5, 0, new Bishop(5, 0, PieceColor.White, this));\n \tsetPiece(6, 0, new Knight(6, 0, PieceColor.White, this));\n \tsetPiece(7, 0, new Rook(7, 0, PieceColor.White, this));\n \t\n \t//black back row\n \tsetPiece(0, 7, new Rook(0, 7, PieceColor.Black, this));\n \tsetPiece(1, 7, new Knight(1, 7, PieceColor.Black, this));\n \tsetPiece(2, 7, new Bishop(2, 7, PieceColor.Black, this));\n \tsetPiece(3, 7, new Queen(3, 7, PieceColor.Black, this));\n \tsetPiece(4, 7, new King(4, 7, PieceColor.Black, this));\n \tsetPiece(5, 7, new Bishop(5, 7, PieceColor.Black, this));\n \tsetPiece(6, 7, new Knight(6, 7, PieceColor.Black, this));\n \tsetPiece(7, 7, new Rook(7, 7, PieceColor.Black, this));\n \t\n \t//store locations of king so they can be checked\n \twKing = new Square(4, 0);\n \tbKing = new Square(4, 7);\n }",
"@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }",
"public static void createBoard() \n\t{\n\t\tfor (int i = 0; i < tictactoeBoard.length; i++) \n\t\t{\n\t\t\ttictactoeBoard[i] = '-';\n\t\t}\n\t}",
"private void createGraySquares() {\n for (int x = 0; x < 16; x ++)\n for (int y = 0; y < 16; y ++)\n // If the area is not explored, creates a gray square at that point.\n if (!storage.explored[x][y]) {\n GraySquare square = new GraySquare(screen.miscAtlases.get(2));\n // Uses the x and y integers to set the corresponding position in the grid.\n square.setPosition(x * 20, y * 20 + 19);\n // Adds to the rendering list.\n squares.add(square);\n }\n }",
"public Wall()\n {\n GreenfootImage img = this.getImage();\n img.scale(64, 64);\n \n }",
"public void generate() {\n\t\t// all cardinal direction for up,down,left and right\n\t\tthis.allDirections = Arrays.asList(new Point(-1, 0), new Point(1, 0), new Point(0, 1),\n\t\t\t\tnew Point(0, -1));\n\n\t\twallList = new ArrayList<>();\n\t\tgenerateAddWalls(width / 2, height / 2);\n\t\t// generateAddWalls( 3, 3);\n\n\t\tRandom rand = new Random();\n\n\t\twhile (wallList.size() > 0) {\n\t\t\tPoint wall = wallList.get(rand.nextInt(wallList.size()));\n\n\t\t\tint emptyWallX = wall.x;\n\t\t\tint emptyWallY = wall.y;\n\n\t\t\tfor (Point point : allDirections) {\n\t\t\t\tif (maze[wall.x + point.x][wall.y + point.y] == Block.EMPTY) {\n\t\t\t\t\temptyWallX = wall.x + point.x;\n\t\t\t\t\temptyWallY = wall.y + point.y;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// find if oposite direction is empty by inverting the delta\n\t\t\tint deltaX = wall.x - emptyWallX;\n\t\t\tint deltaY = wall.y - emptyWallY;\n\n\t\t\tif (maze[wall.x + deltaX][wall.y + deltaY] == Block.WALL) {\n\t\t\t\tmaze[wall.x][wall.y] = Block.EMPTY;\n\t\t\t\tgenerateAddWalls(wall.x + deltaX, wall.y + deltaY);\n\t\t\t}\n\n\t\t\twallList.remove(wall);\n\t\t}\n\t}",
"void createRectangles();",
"public void border() {\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tmaze[x][0] = Block.WALL;\n\t\t\tmaze[x][height - 1] = Block.WALL;\n\t\t}\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tmaze[0][y] = Block.WALL;\n\t\t\tmaze[width - 1][y] = Block.WALL;\n\t\t}\n\t}",
"public abstract void createBoard();",
"@Override\n\tpublic void buildWalls() {\n\t\tSystem.out.println(\"Building Glass Walls\");\t\n\t}",
"protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}",
"public void getWalls() {\n\t\tRandomMapGenerator rmg = new RandomMapGenerator();\n\n\t\tboolean[][] cm = rmg.cellmap;\n\n\t\tfor (int x = 0; x < rmg.width; x++) {\n\t\t\tfor (int y = 0; y < rmg.height; y++) {\n\t\t\t\tif (cm[x][y]) {\n\t\t\t\t\twallArray.add(new Wall(x * 12, y * 12, mode));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void createSnake() {\r\n int halfWidth = gridWidth / 2;\r\n int halfHeight = gridHeight / 2;\r\n \r\n snake = new Snake(new Coordinates(halfWidth, halfHeight), 5, Direction.WEST);\r\n }",
"public WallObject() {\n super(\"walls/\");\n setEnterable(false);\n }",
"void drawWall(Graphics g, Wall wall) {\n int x = wall.x;\n int y = wall.y;\n if(wall.horz) {\n g.drawLine(BORDER + x*SIZE, BORDER + y*SIZE, BORDER + (x+1)*SIZE, BORDER + y*SIZE);\n } else {\n g.drawLine(BORDER + x*SIZE, BORDER + y*SIZE, BORDER + x*SIZE, BORDER + (y+1)*SIZE);\n }\n }",
"public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }",
"public WinScreen()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(1500, 500, 1); \r\n\r\n prepare();\r\n }",
"public Wall(String name, physics.Vect p1, physics.Vect p2) {\n this.name = name;\n this.wall = new physics.LineSegment(p1, p2);\n checkRep();\n }",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"public static final Vector<JARWall> createBlock( int x, int y, int width, int height, JARImage imgFill, CollisionType colliding )\n {\n Vector<JARWall> ret = new Vector<JARWall>();\n\n int drawX = 0;\n int drawY = 0;\n\n //browse height\n drawY = y;\n for ( int i = 0; i < height; ++i )\n {\n //browse width\n drawX = x;\n for ( int j = 0; j < width; ++j )\n {\n //if collision is enabled, enable collision for all border blocks\n boolean collision =\n (\n colliding == CollisionType.EColliding\n && (\n i == 0\n || j == 0\n || i == height - 1\n || j == width - 1\n )\n );\n\n ret.add( new JARWall( drawX, drawY, imgFill, ( collision ? CollisionType.EColliding : CollisionType.ENonColliding ), DrawingLayer.EBehindPlayer ) );\n\n drawX += 128;\n }\n drawY += 64;\n }\n\n return ret;\n }",
"public DrawMaze(int w, int h) {\n width = w;\n height = h;\n setPreferredSize(new Dimension(width * SIZE + 2 * BORDER + WALL, \n height * SIZE + 2 * BORDER + WALL));\n walls = new HashSet<Wall>();\n }",
"public static void addFullWall(Block fullWall) {\r\n\t\t_fullWalls.add(fullWall);\r\n\t}",
"public Square(int w)\n {\n width = w;\n }",
"public boolean isWall() {\n return type == CellType.WALL;\n }",
"public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }",
"public Square(int x, int y, int side)\n\t{\n\t\tsuper();\n\t\toneside = side;\n\t\tanchor = new Point(x, y);\n\t\tvertices.add(new Point(x, y));\n\t\tvertices.add(new Point(x + side, y)); // upper right\n\t\tvertices.add(new Point(x + side, y + side)); // lower right\n\t\tvertices.add(new Point(x, y + side)); // lower left\n\t}",
"public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), 25, 576), fill);\n //add each screen-side block to game and set 1 hitpoint.\n topB.addToGame(this);\n topB.setHitPoints(1);\n rightB.addToGame(this);\n rightB.setHitPoints(1);\n leftB.addToGame(this);\n leftB.setHitPoints(1);\n }",
"private void renderWalls(Graphics g, ArrayList<GridLocation> walls, Location gridPosition){\n g.setColor(Color.BLACK);\n for(GridLocation wall : walls){\n g.fillRect(gridPosition.getX() + wall.getX()*CELL_SIZE, gridPosition.getY() + wall.getY()*CELL_SIZE,CELL_SIZE, CELL_SIZE);\n }\n }",
"public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"public static final Vector<JARWall> createBridge( int x, int y, int width )\n {\n Vector<JARWall> ret = new Vector<JARWall>();\n\n int drawX = x;\n\n //left socket\n ret.add( new JARWall( drawX, y, JARImage.EWallWood1Small, CollisionType.EColliding, DrawingLayer.EBehindPlayer ) );\n ret.add( new JARWall( drawX + 64, y, JARImage.EWallWood1ArcLeft, CollisionType.ENonColliding, DrawingLayer.EBeforePlayer ) );\n ret.add( new JARWall( drawX, y - 64, JARImage.EWallWood1Ascending, CollisionType.EColliding, DrawingLayer.EBehindPlayer ) );\n ret.add( new JARWall( drawX, y - 128, JARImage.EDecoRailing1Ascending, CollisionType.ENonColliding, DrawingLayer.EBeforePlayer ) );\n\n //water\n drawX += 64;\n ret.add( new JARWall( drawX, y, JARImage.EWallWater1, CollisionType.ENonColliding, DrawingLayer.EBehindPlayer ) );\n\n //browse width\n for ( int i = 0; i < width; ++i )\n {\n drawX += 64;\n\n //railing\n ret.add( new JARWall( drawX, y - 128, JARImage.EDecoRailing1, CollisionType.ENonColliding, DrawingLayer.EBeforePlayer ) );\n //rack\n ret.add( new JARWall( drawX, y - 64, JARImage.EWallWood1, CollisionType.EColliding, DrawingLayer.EBehindPlayer ) );\n //water\n drawX += 64;\n ret.add( new JARWall( drawX, y, JARImage.EWallWater1, CollisionType.ENonColliding, DrawingLayer.EBehindPlayer ) );\n }\n\n //right socket\n drawX += 64;\n ret.add( new JARWall( drawX, y - 64, JARImage.EWallWood1Descending, CollisionType.EColliding, DrawingLayer.EBehindPlayer ) );\n ret.add( new JARWall( drawX, y - 128, JARImage.EDecoRailing1Descending, CollisionType.ENonColliding, DrawingLayer.EBeforePlayer ) );\n drawX += 64;\n ret.add( new JARWall( drawX, y, JARImage.EWallWood1Small, CollisionType.EColliding, DrawingLayer.EBehindPlayer ) );\n ret.add( new JARWall( drawX - 64, y, JARImage.EWallWood1ArcRight, CollisionType.ENonColliding, DrawingLayer.EBeforePlayer ) );\n\n return ret;\n }",
"public Room() {\n\t\twall=\"\";\n\t\tfloor=\"\";\n\t\twindows=0;\n\t}",
"public Room(int noOfWindows) {\n\t\tthis.windows = noOfWindows;\n\t\tthis.floor=\"\";\n\t\tthis.wall=\"\";\n\t}",
"public static void setBoard() {\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledCircle(200, 800, 35);\n\t\tStdDraw.filledCircle(500, 800, 35);\n\t\tStdDraw.filledCircle(800, 800, 35);\n\t\tStdDraw.filledCircle(200, 200, 35);\n\t\tStdDraw.filledCircle(500, 200, 35);\n\t\tStdDraw.filledCircle(800, 200, 35);\n\t\tStdDraw.filledCircle(200, 500, 35);\n\t\tStdDraw.filledCircle(800, 500, 35);\n\t\tStdDraw.filledCircle(350, 650, 35);\n\t\tStdDraw.filledCircle(500, 650, 35);\n\t\tStdDraw.filledCircle(650, 650, 35);\n\t\tStdDraw.filledCircle(350, 350, 35);\n\t\tStdDraw.filledCircle(500, 350, 35);\n\t\tStdDraw.filledCircle(650, 350, 35);\n\t\tStdDraw.filledCircle(350, 500, 35);\n\t\tStdDraw.filledCircle(650, 500, 35);\n\n\t\tStdDraw.setPenRadius(0.01);\n\t\tStdDraw.line(200, 200, 800, 200);\n\t\tStdDraw.line(200, 800, 800, 800);\n\t\tStdDraw.line(350, 350, 650, 350);\n\t\tStdDraw.line(350, 650, 650, 650);\n\t\tStdDraw.line(200, 500, 350, 500);\n\t\tStdDraw.line(650, 500, 800, 500);\n\t\tStdDraw.line(200, 800, 200, 200);\n\t\tStdDraw.line(800, 800, 800, 200);\n\t\tStdDraw.line(350, 650, 350, 350);\n\t\tStdDraw.line(650, 650, 650, 350);\n\t\tStdDraw.line(500, 800, 500, 650);\n\t\tStdDraw.line(500, 200, 500, 350);\n\n\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\tStdDraw.filledCircle(80, 200, 35);\n\t\tStdDraw.filledCircle(80, 300, 35);\n\t\tStdDraw.filledCircle(80, 400, 35);\n\t\tStdDraw.filledCircle(80, 500, 35);\n\t\tStdDraw.filledCircle(80, 600, 35);\n\t\tStdDraw.filledCircle(80, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledCircle(920, 200, 35);\n\t\tStdDraw.filledCircle(920, 300, 35);\n\t\tStdDraw.filledCircle(920, 400, 35);\n\t\tStdDraw.filledCircle(920, 500, 35);\n\t\tStdDraw.filledCircle(920, 600, 35);\n\t\tStdDraw.filledCircle(920, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\n\t}",
"public HorizontalWall(int id, Vector2f position) {\n \t\tsuper(id, HORIZONTAL_WALL_SIZE, position);\n \t\tspriteID = \"horizontal_wall\";\n \t\tGameController.getInstance().getWorld().addEntity(this);\n\t\trenderLayer = RenderLayer.THIRD;\n \t}"
]
| [
"0.817905",
"0.7711221",
"0.7402422",
"0.72814435",
"0.703192",
"0.6881929",
"0.6658767",
"0.660774",
"0.65312004",
"0.65184677",
"0.6514328",
"0.6508831",
"0.6455846",
"0.64349914",
"0.6409747",
"0.637631",
"0.63744575",
"0.63722163",
"0.63545144",
"0.63497627",
"0.6347518",
"0.63322794",
"0.6309279",
"0.6293913",
"0.62861896",
"0.62577486",
"0.62526554",
"0.61973995",
"0.61679757",
"0.6147385",
"0.613264",
"0.6131525",
"0.60878265",
"0.6073018",
"0.60697806",
"0.60614747",
"0.60415804",
"0.6027974",
"0.60197806",
"0.5996753",
"0.59921956",
"0.5987823",
"0.5987186",
"0.5955443",
"0.59332013",
"0.5922173",
"0.5918623",
"0.59166527",
"0.59003794",
"0.5895361",
"0.5856895",
"0.58566844",
"0.5845723",
"0.58368665",
"0.58147156",
"0.58026654",
"0.5785711",
"0.5782353",
"0.57721984",
"0.57491964",
"0.5747106",
"0.57437694",
"0.57382476",
"0.5733839",
"0.56982696",
"0.5694506",
"0.5679335",
"0.56772053",
"0.5674215",
"0.567132",
"0.56636715",
"0.56595296",
"0.5649406",
"0.5639581",
"0.56250966",
"0.5611887",
"0.56104726",
"0.56094825",
"0.5590662",
"0.5586824",
"0.5569613",
"0.5559261",
"0.5553675",
"0.5548575",
"0.5547177",
"0.55302685",
"0.55261314",
"0.5525948",
"0.5525334",
"0.5521327",
"0.5519078",
"0.5508877",
"0.5506001",
"0.55029947",
"0.5500846",
"0.5498349",
"0.5488562",
"0.5488049",
"0.5466971",
"0.54622114"
]
| 0.5542823 | 85 |
Creates a new ground square. | Ground(Sprite sprite) {Collect.Hit("BoardFactory.java","Ground(Sprite sprite)");this.background = sprite; Collect.Hit("BoardFactory.java","Ground(Sprite sprite)", "3015");} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Square createGround() {Collect.Hit(\"BoardFactory.java\",\"createGround()\"); Collect.Hit(\"BoardFactory.java\",\"createGround()\", \"1746\");return new Ground(sprites.getGroundSprite()) ; }",
"public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }",
"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 Ground() {\r\n\t\tsuper(new SpriteSet(), UnitTypeEnum.GROUND);\r\n\t\tthis.getSpriteSet().getSprites().add(null);\r\n\t}",
"public Ground(int x, int y)\n {\n // initialise instance variables\n xleft= x;\n ybottom= y;\n \n }",
"public Ground(final IVector position) {\r\n\t\tsuper(UnitTypeEnum.GROUND);\r\n\t\tthis.setPosition(position);\r\n\t}",
"public void createSquares() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n playingBoard[row][col] = new Square();\n }\n }\n }",
"public PhysicsSimulator() {\n\t\tshapes = new ArrayList<PhysicsShape>();\n\t\t\n\t\tground = new PhysicsRectangle(400, 800, 1000000, 1000, 200, new Color(200, 200, 200), new Color(0));\n\t\tshapes.add(ground);\n\t\t\n\t}",
"private static Square createSquare(String[] input) {\r\n int px = Integer.parseInt(input[1]);\r\n int py = Integer.parseInt(input[2]);\r\n int vx = Integer.parseInt(input[3]);\r\n int vy = Integer.parseInt(input[4]);\r\n boolean isFilled = Boolean.parseBoolean(input[5]);\r\n int side = Integer.parseInt(input[6]);\r\n float r = (float) Integer.parseInt(input[7]) / 255.0f;\r\n float g = (float) Integer.parseInt(input[8]) / 255.0f;\r\n float b = (float) Integer.parseInt(input[9]) / 255.0f;\r\n int insertionTime = Integer.parseInt(input[10]);\r\n boolean isFlashing = Boolean.parseBoolean(input[11]);\r\n float r1 = (float) Integer.parseInt(input[12]) / 255.0f;\r\n float g1 = (float) Integer.parseInt(input[13]) / 255.0f;\r\n float b1 = (float) Integer.parseInt(input[14]) / 255.0f;\r\n return new Square(insertionTime, px, py, vx, vy, side, new Color(r, g, b, 1), isFilled,\r\n isFlashing, new Color(r1, g1, b1, 1));\r\n }",
"public Square() {\r\n\r\n }",
"public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"private void createGroundSensor() {\n CircleShape shape = new CircleShape();\n shape.setRadius(bodyHalfSize.x / 2);\n shape.setPosition(new Vector2(0, -bodyHalfSize.y - bodyHalfSize.x));\n\n FixtureDef fixDef = new FixtureDef();\n fixDef.shape = shape;\n fixDef.isSensor = true;\n fixDef.filter.categoryBits = Global.PLAYER_BIT;\n fixDef.filter.maskBits = Global.GROUND_BIT | Global.SEMISOLID_BIT;\n\n body.createFixture(fixDef).setUserData(\"sensor\");\n shape.dispose();\n }",
"@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}",
"protected void ground(double xCoord, double yCoord, double len, double width)\n {\n double x1 = (xCoord - (width/2));\n double x2 = (xCoord + (width/2));\n double y1 = (yCoord - (len/2));\n double y2 = (yCoord + (len/2));\n\n Triple pos1, pos2, pos3, pos4, col1;\n\n pos1 = new Triple(x1, y1, 0);\n pos2 = new Triple(x2, y1, 0);\n pos3 = new Triple(x2, y2, 0);\n pos4 = new Triple(x1, y2, 0);\n col1 = new Triple(0.5, 0.5, 0.5);\n\n frozenSoups.addTri(new Triangle(new Vertex(pos1, 0, 0), \n new Vertex(pos2, 0, 1), \n new Vertex(pos3, 1, 1),\n 23 ) );\n frozenSoups.addTri(new Triangle(new Vertex(pos3, 1, 1), \n new Vertex(pos4, 1, 0), \n new Vertex(pos1, 0, 0),\n 23 ) );\n }",
"public void generateShape() {\n\n //TODO for tetris game - copy added to Tetris\n Shape newShape = null;\n //if(GAME_TO_TEST==GameEnum.TETRIS){\n //newShape = TetrisShapeFactory.getRandomShape(this.board);\n //} else if (GAME_TO_TEST== GameEnum.DRMARIO){\n //newShape = DrMarioShapeFactory.getRandomShape(this.board);\n //}\n\n //Temporary\n //-------------------------------------//\n Image image = null;\n try {\n image = new Image(new FileInputStream(\"resources/BlockPurple.png\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int spawnColIndex = 0;\n int spawnRowIndex = 0;\n int tileSize = 0;\n boolean setColor = false;\n boolean setTileBorder = false; //toggle to add boarder to tile\n boolean setImage = true;\n spawnColIndex = (board.gridWidth-1)/2; //half of board width\n spawnRowIndex = 0;\n tileSize = board.tileSize;\n\n Tile tile1 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 0 , Direction.DOWN); //Center Tile\n Tile tile2 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex,1 , Direction.RIGHT);\n Tile tile3 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.LEFT);\n Tile tile4 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.DOWN);\n\n List<Tile> tiles = new ArrayList<Tile>();\n tiles.add(tile1);\n tiles.add(tile2);\n tiles.add(tile3);\n tiles.add(tile4);\n newShape = new Shape(tiles);\n\n //set newly created shape as the currently active shape\n this.currentActiveShape = newShape;\n\n //check if spawn area is occupied\n boolean isOccupied =false;\n for (Tile newTile : this.currentActiveShape.tiles) {\n if(this.board.getTile(newTile.columnIndex,newTile.rowIndex)!=null){\n isOccupied = true;\n }\n }\n\n //TODO\n //check if shape reaches top\n if(!isOccupied){\n //add tiles to board\n for (Tile newTile : this.currentActiveShape.tiles) {\n this.board.placeTile(newTile);\n }\n } else {\n //TODO later add Game Over JavaFx message\n System.out.println(\"GAME OVER\");\n\n //TODO Finishlater\n //Text gameoverText = new Text(10,20,\"GAME OVER\");\n //gameoverText.setFill(Color.RED);\n //gameoverText.setX( 100/*( ((board.gridWidth-1)*tileSize)/2)*/ );\n //gameoverText.setY( 100/*( ((board.gridHeight-1)*tileSize)/2)*/ );\n //gameoverText.setStyle(\"-fx-font: 70 arial;\");\n //this.group.getChildren().add(gameoverText);\n\n //Text t = new Text();\n //t.setX(20.0f);\n //t.setY(65.0f);\n //t.setX(100);\n //t.setY(200);\n //t.setText(\"Perspective\");\n //t.setFill(Color.YELLOW);\n //t.setFont(Font.font(null, FontWeight.BOLD, 36));\n //this.group.getChildren().add(t);\n //this.pane.getChildren().add(t);\n\n //System.exit(0);\n }\n\n }",
"private void createSnake() {\r\n int halfWidth = gridWidth / 2;\r\n int halfHeight = gridHeight / 2;\r\n \r\n snake = new Snake(new Coordinates(halfWidth, halfHeight), 5, Direction.WEST);\r\n }",
"public Square () {\r\n super();\r\n \r\n }",
"public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }",
"public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }",
"public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }",
"public Space_Object (){\n groundPosition = 0;\n }",
"public MinigameGhost() {\n this(Math.random() * RIGHT_BORDER, Math.random() * LOWER_BORDER);\n }",
"public void newGame() {\n \tturn = PieceColor.White;\n \t\n \t//the middle are empty squares\n \tfor(int i = 2; i < 6; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tsetPiece(j, i, new NoPiece(j, i));\n \t\t}\n \t}\n \t\n \t//pawns\n \tfor(int i = 0; i < 8; i++) {\n \t\t//make these pawns\n \t\tsetPiece(i, 1, new Pawn(i, 1, PieceColor.White, this));\n \t\tsetPiece(i, 6, new Pawn(i, 6, PieceColor.Black, this));\n \t}\n \t\n \t//white back row\n \tsetPiece(0, 0, new Rook(0, 0, PieceColor.White, this));\n \tsetPiece(1, 0, new Knight(1, 0, PieceColor.White, this));\n \tsetPiece(2, 0, new Bishop(2, 0, PieceColor.White, this));\n \tsetPiece(3, 0, new Queen(3, 0, PieceColor.White, this));\n \tsetPiece(4, 0, new King(4, 0, PieceColor.White, this));\n \tsetPiece(5, 0, new Bishop(5, 0, PieceColor.White, this));\n \tsetPiece(6, 0, new Knight(6, 0, PieceColor.White, this));\n \tsetPiece(7, 0, new Rook(7, 0, PieceColor.White, this));\n \t\n \t//black back row\n \tsetPiece(0, 7, new Rook(0, 7, PieceColor.Black, this));\n \tsetPiece(1, 7, new Knight(1, 7, PieceColor.Black, this));\n \tsetPiece(2, 7, new Bishop(2, 7, PieceColor.Black, this));\n \tsetPiece(3, 7, new Queen(3, 7, PieceColor.Black, this));\n \tsetPiece(4, 7, new King(4, 7, PieceColor.Black, this));\n \tsetPiece(5, 7, new Bishop(5, 7, PieceColor.Black, this));\n \tsetPiece(6, 7, new Knight(6, 7, PieceColor.Black, this));\n \tsetPiece(7, 7, new Rook(7, 7, PieceColor.Black, this));\n \t\n \t//store locations of king so they can be checked\n \twKing = new Square(4, 0);\n \tbKing = new Square(4, 7);\n }",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"@Override\r\n\tpublic void create() {\n\t\tsuper.create();\r\n\t\t// Ground\r\n\t\tBodyDef groundBodyDef = new BodyDef();\r\n\t\tgroundBody = world.createBody(groundBodyDef);\r\n\t\tEdgeShape edgeShape = new EdgeShape();\r\n\t\tedgeShape.set(new Vector2(50.0f, 0.0f), new Vector2(50.0f, 0.0f));\r\n\t\tgroundBody.createFixture(edgeShape, 0.0f);\r\n \r\n\t\tcreateFirstGroupShape();\r\n\t\t// the second group\r\n\t\tcreateSecondGroupShape();\r\n\t}",
"public Grid()\n {\n dest = new GridReference[2];\n dest[0] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.2));\n dest[1] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.8));\n //dest[2] = new GridReference(5,50);\n defaultStart = new GridReference((int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.5));\n defaultWalker = Walkers.WEIGHTED2;\n \n createField();\n \n walkers = new ArrayList<>();\n //addUnits(randDest(), randDest());\n /*for (int i = 0; i < grassPatches.length; i++)\n {\n System.out.println(i + \":\" + grassPatches[i]);\n }*/\n }",
"private SpawnSquare createSquare(boolean isSpawn, ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new SpawnSquare(color, hasDoor, row, column);\n }",
"public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }",
"public Square()\r\n {\r\n super();\r\n }",
"private void createGraySquares() {\n for (int x = 0; x < 16; x ++)\n for (int y = 0; y < 16; y ++)\n // If the area is not explored, creates a gray square at that point.\n if (!storage.explored[x][y]) {\n GraySquare square = new GraySquare(screen.miscAtlases.get(2));\n // Uses the x and y integers to set the corresponding position in the grid.\n square.setPosition(x * 20, y * 20 + 19);\n // Adds to the rendering list.\n squares.add(square);\n }\n }",
"private void drawGround(Graphics2D world_g2) {\n\t\tRectangle ground = new Rectangle\n\t\t\t\t(\t\n\t\t\t\t\t\t-getCurrentPosition().x,\t\n\t\t\t\t\t\ttoScaledY(0) , \n\t\t\t\t\t\tgetWidth(), \n\t\t\t\t\t\tgetHeight()/4 \t\n\t\t\t\t);\n\t\t// Set paint.\n\t\tif( isUsingTextures() ){\n\t\t\tworld_g2.setPaint( grassTexture );\n\t\t}else{\n\t\t\tworld_g2.setPaint( ColourSchema.grass );\n\t\t}\n\t\tworld_g2.fill(ground);\n\t\tPoint p = overlayPoint(new Point(0, toScaledY(0)));\n\t\treverseRectangle(world_g2, \n\t\t\t\tnew Point(0, p.y), \n\t\t\t\tnew Point(getWidth(), p.y), \n\t\t\t\tnew Point(getWidth(), getHeight()), \n\t\t\t\tnew Point(0, getHeight()));\n\t}",
"protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}",
"public void createNewGame() {\n\t\tfor(int n = 0; n < 8; n++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif ( n % 2 == j % BLACK_PAWN ) {\n\t\t\t\t\tif (n < 3)\n\t\t\t\t\t\tarr[n][j] = RED_PAWN;\n\t\t\t\t\telse if (n > 4)\n\t\t\t\t\t\tarr[n][j] = BLACK_PAWN;\n\t\t\t\t\telse\n\t\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t } \n\t\t\t\telse\n\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t\t}\n\t\t}\n\t}",
"private void createSquare(Block block) {\n\t\tSquare square = factory.createSquare();\n\t\tsquare.setName(block.getName());\n\t\tsquare.setBlock(block.getBlock());\n\t\tsquare.getInArrow().addAll(block.getInArrow());\n\t\tsquare.getOutArrow().addAll(block.getOutArrow());\n\t}",
"public Space() \n {\n super(600, 500, 1);\n\n createBackground();\n \n /**\n * TODO (10): Make a method call to the paint stars method.\n * Play around with the parameter value until you are \n * happy with the look of your scenario\n */\n paintStars(1000);\n \n prepareGame();\n }",
"public Cenario1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(900, 600, 1);\n adicionar();\n \n }",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"@Override\n\tpublic void create() {\n\t\t// This should come from the platform\n\t\theight = platform.getScreenDimension().getHeight();\n\t\twidth = platform.getScreenDimension().getWidth();\n\n\t\t// create the drawing boards\n\t\tsb = new SpriteBatch();\n\t\tsr = new ShapeRenderer();\n\n\t\t// Push in first state\n\t\tgsm.push(new CountDownState(gsm));\n//\t\tgsm.push(new PlayState(gsm));\n\t}",
"private NormalSquare createSquare(ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new NormalSquare(color, hasDoor, row, column);\n }",
"Block create(int xpos, int ypos);",
"public Grass(int x, int y, int w, int h)\n {\n Xx = x;\n Yy = y;\n Ww = w;\n Hh = h;\n }",
"@Override\n public Sprite createSprite(SnakeSmash game) {\n Texture texture = game.getAssetManager().get(\"pinkSquare.png\");\n return new Sprite(texture, texture.getWidth(), texture.getHeight());\n }",
"public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }",
"public BossRoom() {\n\t\ttiles = new WorldTiles(width, height, width);\n\t\tbackground = new Sprite(SpriteList.BOSS_ROOM_BACKGROUND);\n\t}",
"public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }",
"public Main()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n\n prepare();\n }",
"public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}",
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 800, 1); \n GreenfootImage bg = new GreenfootImage(\"background.jpg\");\n bg.scale(getWidth(), getHeight());\n setBackground(bg);\n initialize();\n \n }",
"public Grid() { //Constructs a new grid and fills it with Blank game objects.\r\n\t\tthis.grid = new GameObject[10][10];\r\n\t\tthis.aliveShips = new Ships[4];\r\n\t\tfor (int i = 0; i < this.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.grid[i].length; j++) {\r\n\t\t\t\tthis.grid[i][j] = new Blank(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Stone create();",
"public WinningWorld(GreenfootSound bgm)\n { \n // Create a new world with 800x540 cells with a cell size of 1x1 pixels.\n super(800, 540, 1); \n this.bgm = bgm;\n prepare();\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }",
"public ClassTester()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(new NonScrollingBackground(\"Stage - 0.jpg\"),300,131);\n addObject(playerMage,35,170);\n addObject(new AbilityDisplayer(playerMage),125,268);\n }",
"public Background() {\n\t\ttime = 0;\n\t\tRandom rand = new Random();\n\t\trandomGrid = new Vector2[101][101];\n\t\tfor (int i = 0; i < randomGrid.length; i++) {\n\t\t\tfor (int j = 0; j < randomGrid[0].length; j++) {\n\t\t\t\trandomGrid[i][j] = new Vector2(rand.nextFloat() - 0.5f, rand.nextFloat() - 0.5f).nor();\n\t\t\t}\n\t\t}\n\n\t\tshapeRenderer = new ShapeRenderer();\n\t}",
"public Rectangle() {\n\t\twidth = 1;\n\t\theight = 1;\n\t}",
"public Square() {\n content = \"EMPTY\";\n \n }",
"Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}",
"public WallTile()\n\t{\n\t\t\n\t}",
"private void newPowerUp() {\r\n int row = 0;\r\n int column = 0;\r\n do {\r\n row = Numbers.random(0,maxRows-1);\r\n column = Numbers.random(0,maxColumns-1);\r\n } while(isInSnake(row,column,false));\r\n powerUp = new Location(row,column,STOP);\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }",
"public void setGround(Ground ground) {\n\t\tthis.ground = ground;\n\t}",
"public Grid() {\n\t\tthis.moveCtr = 0; \n\t\tlistOfSquares = new ArrayList<Square>();\n\t\t//populating grid array with squares\n\t\tfor(int y = 0; y < GridLock.HEIGHT; y++) {\n\t \tfor(int x = 0; x < GridLock.WIDTH; x++) { //square coordinates go from (0,0) to (5,5)\n\t \tSquare square;\n\t \t//Setting up a square which has index values x,y and the size of square.\n\t\t\t\t\tsquare = new Square(x, y, GridLock.SQUARE_SIZE, GridLock.SQUARE_SIZE); \n\t\t\t\t\tgrid[x][y] = square;\n\t\t\t\t\tlistOfSquares.add(square);\n\t \t\t\t\t\t\n\t \t\t}\n\t \t}\n \t\n }",
"public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }",
"MainBoard createMainBoard();",
"public ParkingSquare(Game game) \r\n {\r\n super(game);\r\n }",
"public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }",
"public Grid() {\n setPreferredSize(new Dimension(960, 640));\n setBounds(0, 0, 960, 640);\n setLayout(null);\n setBackground(Color.black);\n this.size = 30;\n squares = new Square[size][20];\n }",
"public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }",
"public Ground getGround() {\n\t\treturn ground;\n\t}",
"public Paddle(int screenWidth, int screenHeight){\n myScreenWidth = screenWidth;\n myScreenHeight = screenHeight;\n initialXLocation = myScreenWidth / 2 - myLength / 2;\n initialYLocation = myScreenHeight/2 + initialYLocationAdjustment;\n\n myRectangle = new Rectangle(initialXLocation, initialYLocation, PADDLE_LENGTH, PADDLE_HEIGHT);\n myRectangle.setFill(PADDLE_COLOR);\n }",
"public Square() {\n this(\"x\", false, false);\n }",
"public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }",
"public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating stairs to connect rooms\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Stairs[1][1] = 1;\n\n\t\t//creating board to keep track of garret\n\t\tfor(int i = 0; i <this.Garret.length; i++){\n\t\t\tfor(int p = 0; p < this.Garret.length; p++){\n\t\t\t\tthis.Garret[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of garret board\n\t\tthis.Garret[18][10] = 1;//putts garret there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 1; i< 6 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 7; p > 4; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 11 ; i++){\n\t\t\tfor(int p = 4; p < 5; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 10; i< 11 ; i++){\n\t\t\tfor(int p = 5; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 11; i< 15 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 7; p > 3; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 1; p < 4; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 12; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 5; i< 9 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 7; p < 12; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 16 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 12; p < 19; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }",
"public WinScreen()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(1500, 500, 1); \r\n\r\n prepare();\r\n }",
"public ScoreBoard()\r\n {\r\n super();\r\n int boardWidth = 200;\r\n int boardHeight = 30;\r\n \r\n board = new GreenfootImage(boardWidth,boardHeight);\r\n board.setColor(Color.green); \r\n //&& Color.blue);\r\n board.fillRect(0, 0, boardWidth,boardHeight);\r\n this.setImage(board);\r\n \r\n //draw it\r\n update();\r\n }",
"public Game(){\n\t\tDimension size = new Dimension(width * scale, height * scale);\n\t\tsetPreferredSize(size);\n\t\t\n\t\tscreen = new Screen(width, height);//instantiated the new screen\n\t\t\n\t\tframe = new JFrame();\n\t\t\n\t}",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1, false); \n Greenfoot.start(); //Autostart the game\n Greenfoot.setSpeed(50); // Set the speed to 30%\n setBackground(bgImage);// Set the background image\n \n //Create instance\n \n Airplane gameplayer = new Airplane ();\n addObject (gameplayer, 100, getHeight()/2);\n \n }",
"public Box()\n\t{\n\t\t\n\t\ttopLeftX = 50;\n\t\ttopLeftY = 50;\n\t\twidth = 50;\n\t\theight = 25;\n\t\t\n\t}",
"public Rectangle() {\n this(50, 40);\n }",
"public WaterWorld()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n populateWorld();\r\n }",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"Ball create(int xpos, int ypos);",
"public abstract void createBoard();",
"public Ground (GameView gameView){\n super(gameView);\n this.width = GameView.WIDTH;\n this.height = 100;\n this.position = new Position(0, GameView.HEIGHT - height);\n }",
"public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }",
"public Stage() {\n\n for (int i = 0; i < 20; i++) { // Generate the basic grid array\n ArrayList<Cell> cellList = new ArrayList<Cell>();\n cells.add(cellList);\n for (int j = 0; j < 20; j++) {\n cells.get(i).add(new Cell(10 + 35 * i, 10 + 35 * j));\n }\n }\n\n for (int i = 0; i < cells.size(); i++) { // Generate the list of environment blocks\n ArrayList<Environment> envList = new ArrayList<Environment>();\n environment.add(envList);\n for (int j = 0; j < cells.size(); j++) {\n int cellGenerator = (int) (Math.random() * 100) + 1;\n environment.get(i).add(generateCell(cellGenerator, cells.get(i).get(j)));\n }\n }\n\n grid = new Grid(cells, environment); // Initialise the grid with the generated cells array\n }",
"@Test\n\tpublic void ValidSetSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.setSquare(new Location(0, 0), new BlankSquare());\n\t\tassertNotNull(\"Shouldn't be null\", square);\n\t}",
"public NewShape() {\r\n\t\tsuper();\r\n\t}",
"public Snake(Ground gameGround, ScoreBoard scoreBoard) {\n this.gameGround = gameGround;\n this.scoreBoard = scoreBoard;\n initDefaults();\n }",
"public Board() {\n this.x = 0;\n this.o = 0;\n }",
"private void createSquare(int x, int y, int row, int column) {\r\n grid[row][column] = new JLabel();\r\n grid[row][column].setOpaque(true);\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n grid[row][column].setBorder(SQUARE_BORDER);\r\n this.getContentPane().add(grid[row][column]);\r\n grid[row][column].setBounds(x,y,SQUARE_SIZE,SQUARE_SIZE);\r\n }",
"private void generateBorder() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (x == 0 || y == 0 || x == width - 1 || y == height - 1) {\n\t\t\t\t\ttiles[x + y * width] = Tile.darkGrass;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Wall() {\n\t\tcanHold = false;\n\t\tisPassable = false;\n\t\ttype = TileTypes.WALL;\n\t}",
"public void createNewCube() {\n CUBE = new Cube();\n }",
"public Game() {\n\t\tthis.board = new Board();\n\t\tthis.pieces = new HashMap<Chess.Color, List<Piece>>();\n\t\tthis.pieces.put(Chess.Color.WHITE, new ArrayList<Piece>());\n\t\tthis.pieces.put(Chess.Color.BLACK, new ArrayList<Piece>());\n\t\tthis.moveStack = new Stack<Move>();\n\t}",
"public SquareImmutable(Square square)\n {\n this.x = square.getX();\n this.y = square.getY();\n this.isAmmoPoint = square.isAmmoPoint();\n this.isSpawnPoint = square.isSpawnPoint();\n this.color = square.getColor();\n this.playerList = square.getPlayerListColor();\n\n if (square.isSpawnPoint())\n {\n SpawnPoint s = (SpawnPoint) square;\n weaponCardList = s.getWeaponCardList().stream().map(WeaponCard::getName).collect(Collectors.toList());\n }\n else\n {\n AmmoPoint ammoPoint = (AmmoPoint) square;\n\n if (ammoPoint.getAmmoTiles() instanceof JustAmmo)\n {\n JustAmmo justAmmo = (JustAmmo) ammoPoint.getAmmoTiles();\n\n if (justAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new JustAmmoImmutable(justAmmo.getAmmoCardID(),justAmmo.getSingleAmmo(),justAmmo.getDoubleAmmo());\n }\n else\n {\n PowerAndAmmo powerAndAmmo = (PowerAndAmmo) ammoPoint.getAmmoTiles();\n if (powerAndAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new PowerAndAmmoImmutable(powerAndAmmo.getAmmoCardID(),powerAndAmmo.getSingleAmmo(),powerAndAmmo.getSecondSingleAmmo());\n }\n\n }\n }"
]
| [
"0.8204302",
"0.6603824",
"0.6510459",
"0.6359681",
"0.6340222",
"0.6217697",
"0.614666",
"0.6133004",
"0.6087789",
"0.6082773",
"0.6048692",
"0.60451823",
"0.6039916",
"0.6039263",
"0.6008301",
"0.59886086",
"0.5973383",
"0.5951604",
"0.59489596",
"0.59394884",
"0.59352934",
"0.5930321",
"0.58952594",
"0.58914214",
"0.5886492",
"0.58645785",
"0.5862516",
"0.58530426",
"0.584785",
"0.58263886",
"0.582262",
"0.5766183",
"0.57553035",
"0.5747789",
"0.57457566",
"0.5741017",
"0.57344157",
"0.5727551",
"0.5717159",
"0.57130456",
"0.5704667",
"0.5704507",
"0.56738466",
"0.566297",
"0.56573445",
"0.5650287",
"0.5649239",
"0.5641393",
"0.5640917",
"0.56376046",
"0.5634598",
"0.56293285",
"0.5624878",
"0.562083",
"0.5612471",
"0.56115896",
"0.56100565",
"0.56046635",
"0.5594849",
"0.5591781",
"0.55916476",
"0.5589181",
"0.5586563",
"0.5579425",
"0.557707",
"0.5574391",
"0.55692875",
"0.5568854",
"0.55614746",
"0.55606765",
"0.55593616",
"0.5557262",
"0.554708",
"0.5531017",
"0.5528143",
"0.55199283",
"0.55178094",
"0.5517643",
"0.55103403",
"0.55091053",
"0.5503729",
"0.5500841",
"0.54982233",
"0.54833186",
"0.54812574",
"0.54766047",
"0.5472589",
"0.54705083",
"0.5470498",
"0.54654306",
"0.54652894",
"0.54612505",
"0.54594517",
"0.5458513",
"0.5457922",
"0.5454226",
"0.5453746",
"0.54480547",
"0.5448032",
"0.54404944"
]
| 0.54898006 | 83 |
Creates new form bookDetails | public bookDetails() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }",
"@RequestMapping(value=\"/book\",method=RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity<Books> createBooks(@RequestBody Books bookDetails) throws Exception{\n\t\tBooks book=null;\n\t\t\n\t\t//for checking duplicate entry of books\n\t\tbook=booksDAO.findOne(bookDetails.getIsbn());\n\t\tif(book==null){\n\t\t\t//create a new book entry \n\t\t\ttry{\n\t\t\t\tbook=new Books(bookDetails.getBookName(),bookDetails.getBookDescription(),bookDetails.getPrice(),bookDetails.getIsActive(),new Date(),new Date());\n\t\t\t\tbooksDAO.save(book);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tthrow new Exception(\"Exception in saving book details...\",e);\n\t\t\t\t}\n\t\t}else{\n\t\t\t bookDetails.setCreationTime(book.getCreationTime());\n\t\t\t bookDetails.setLastModifiedTime(new Date());\n\t\t\t booksDAO.save(bookDetails);\n\t\t}\n\t\t\treturn new ResponseEntity<Books>(book, HttpStatus.OK);\n\t}",
"public com.huqiwen.demo.book.model.Books create(long bookId);",
"public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}",
"private Book createBook() {\n Book book = null;\n\n try {\n\n //determine if fiction or non-fiction\n if (radFiction.isSelected()) {\n //fiction book\n book = new Fiction(Integer.parseInt(tfBookID.getText()));\n\n } else if (radNonFiction.isSelected()) {\n //non-fiction book\n book = new NonFiction(Integer.parseInt(tfBookID.getText()));\n\n } else {\n driver.errorMessageNormal(\"Please selecte fiction or non-fiction.\");\n }\n } catch (NumberFormatException nfe) {\n driver.errorMessageNormal(\"Please enter numbers only the Borrower ID and Book ID fields.\");\n }\n return book;\n }",
"@GetMapping(\"/addBook\")\n public String addNewBook(Model model) {\n Book newBook = new Book();\n List<Author> authors = authorService.getAllAuthor();\n List<Category> categories = categoryService.getAllCategory();\n model.addAttribute(\"authorAddBook\", authors);\n model.addAttribute(\"newBook\", newBook);\n model.addAttribute(\"categoryAddBook\", categories);\n return \"add-new-book\";\n }",
"@GetMapping(\"/books/new\")\n\tpublic String newBook(@ModelAttribute(\"newbook\") Book newbook, HttpSession session) {\n\t\tLong userId = (Long)session.getAttribute(\"user_id\");\n\t\tif(userId == null) {\n\t\t\treturn \"redirect:/\";\n\t\t} else {\t\n\t\t\treturn \"newbook.jsp\";\n\t\t}\n\t\t\n\t}",
"void create(Book book);",
"@PostMapping(\"/books\")\n\tpublic Book createBook(@RequestBody Book book)\n\t{\n\t\treturn bookRepository.save(book);\n\t}",
"public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}",
"public void create(Book book) {\n\t\tentityManager.persist(book);\n\t\tSystem.out.println(\"BookDao.create()\" +book.getId());\n\t\t\n\t}",
"public Book createBook(Book newBook) {\n\t\treturn this.sRepo.save(newBook);\n\t}",
"Book createBook();",
"@Override\n\tpublic Book createBook(Book book) throws SQLException {\n\t\ttry {\n\t\t\treturn dao.insertBook(book);\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}return book;\n\t}",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"public Book(String bookAuthor, String bookTitle, int bookPages, String getDetails)\n {\n author = bookAuthor;\n title = bookTitle;\n pages = bookPages;\n details = author,title,pages;\n Number = \"\";\n }",
"public static void addBook(final @Valid Book book) {\n\t\tif (book.serie.id == null) {\r\n\t\t\tValidation.required(\"book.serie.name\", book.serie.name);\r\n\r\n\t\t\tif (book.serie.name != null) {\r\n\t\t\t\tSerie serie = Serie.find(\"byName\", book.serie.name).first();\r\n\t\t\t\tif (serie != null) {\r\n\t\t\t\t\tValidation.addError(\"book.serie.name\",\r\n\t\t\t\t\t\t\t\"La série existe déjà\",\r\n\t\t\t\t\t\t\tArrayUtils.EMPTY_STRING_ARRAY);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Validation errror treatment\r\n\t\tif (Validation.hasErrors()) {\r\n\r\n\t\t\tif (Logger.isDebugEnabled()) {\r\n\t\t\t\tfor (play.data.validation.Error error : Validation.errors()) {\r\n\t\t\t\t\tLogger.debug(error.message() + \" \" + error.getKey());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Specific treatment for isbn, just to provide example\r\n\t\t\tif (!Validation.errors(\"book.isbn\").isEmpty()) {\r\n\t\t\t\tflash.put(\"error_isbn\", Messages.get(\"error.book.isbn.msg\"));\r\n\t\t\t}\r\n\r\n\t\t\tparams.flash(); // add http parameters to the flash scope\r\n\t\t\tValidation.keep(); // keep the errors for the next request\r\n\t\t} else {\r\n\r\n\t\t\t// Create serie is needed\r\n\t\t\tif (book.serie.id == null) {\r\n\t\t\t\tbook.serie.create();\r\n\t\t\t}\r\n\r\n\t\t\tbook.create();\r\n\r\n\t\t\t// Send WebSocket message\r\n\t\t\tWebSocket.liveStream.publish(MessageFormat.format(\r\n\t\t\t\t\t\"La BD ''{0}'' a été ajoutée dans la série ''{1}''\",\r\n\t\t\t\t\tbook.title, book.serie.name));\r\n\r\n\t\t\tflash.put(\"message\",\r\n\t\t\t\t\t\"La BD a été ajoutée, vous pouvez créer à nouveau.\");\r\n\t\t}\r\n\r\n\t\tBookCtrl.prepareAdd(); // Redirection toward input form\r\n\t}",
"private void insertBook() {\n /// Create a ContentValues object with the dummy data\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_NAME, \"Harry Potter and the goblet of fire\");\n values.put(BookEntry.COLUMN_BOOK_PRICE, 100);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, 2);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, \"Supplier 1\");\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE, \"972-3-1234567\");\n\n // Insert the dummy data to the database\n Uri uri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n // Show a toast message\n String message;\n if (uri == null) {\n message = getResources().getString(R.string.error_adding_book_toast).toString();\n } else {\n message = getResources().getString(R.string.book_added_toast).toString();\n }\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }",
"Booking createBooking(Booking newBooking) throws Exception;",
"public void createBooking(Booking book) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.createBooking(book);\n}",
"@PostMapping\n\tpublic ResponseEntity<?> createBook(@Valid @RequestBody Book book, UriComponentsBuilder ucBuilder) {\n\t\tif (bookRepository.findByIsbn(book.getIsbn()).isPresent()) {\n\t\t\tthrow new BookIsbnAlreadyExistException(book.getIsbn()); \n\t\t}\n\t\tLOGGER.info(\"saving book\");\n\t\tbookRepository.save(book);\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\t// uri templates & UCB to specify resource location\n\t\t/**\n\t\t * 2. We need to send where the new book resource can be located, so the client is\n\t\t * able to parse the header response and make a new request to retrieve the book's data.\n\t\t */\n\t\theaders.setLocation(ucBuilder.path(\"/api/books/{isbn}\").buildAndExpand(book.getIsbn()).toUri());\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\n\t\tLOGGER.info(\"setting headers and sending response\");\n\n\t\treturn new ResponseEntity<>(headers, HttpStatus.CREATED);\n\t}",
"public void getBookInfo(CheckOutForm myForm) {\n\t\tString isbn=myForm.getFrmIsbn();\r\n\t\tViewDetailBook myViewDetailBook=myViewDetailBookDao.getBookInfoByIsbn(isbn);\r\n\t\tmyForm.setFrmViewDetailBook(myViewDetailBook);\r\n\t\t\r\n\t}",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createBook(Book book) {\n final BookServiceResult result = bookService.addBook(book);\n return Response\n .status(result.getStatus())\n .entity(getJsonFromServiceResult(result))\n .build();\n }",
"public void getBookDetails() {\n\t}",
"@GetMapping(\"/students/new\")\n\tpublic String createStudentForm(Model model) throws ParseException\n\t{\n\t\t\n\t\tStudent student=new Student(); //To hold form Data.\n\t\t\n\t\tmodel.addAttribute(\"student\",student);\n\t\t\n\t\t// go to create_student.html page\n\t\treturn \"create_student\";\n\t}",
"@RequestMapping(\"/create\")\n\tpublic Booking create(Booking booking) {\n\t\tbooking.setTravelDate(new Date());\n\t\tbooking = bookingRepository.save(booking);\n\t return booking;\n\t}",
"public void addBook() {\n\t\t JTextField callno = new JTextField();\r\n\t\t JTextField name = new JTextField();\r\n\t\t JTextField author = new JTextField(); \r\n\t\t JTextField publisher = new JTextField(); \r\n\t\t JTextField quantity = new JTextField(); \r\n\t\t Object[] book = {\r\n\t\t\t\t \"Callno:\",callno,\r\n\t\t\t\t \"Name:\",name,\r\n\t\t\t\t \"Author:\",author,\r\n\t\t\t\t \"Publisher:\",publisher,\r\n\t\t\t\t \"Quantity:\",quantity\r\n\t\t\t\t\r\n\t\t };\r\n\t\t int option = JOptionPane.showConfirmDialog(null, book, \"New book\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t if(option==JOptionPane.OK_OPTION) {\r\n // add to the Book database\r\n\t\t try {\r\n\t\t\t \r\n\t\t String query = \"insert into Book(callno,name,author,publisher,quantity,added_date)\"\r\n\t\t\t\t +\" values(?,?,?,?,?,GETDATE())\";\r\n\t\t \r\n\t\t PreparedStatement s = SimpleLibraryMangement.connector.prepareStatement(query);\r\n\t\t s.setString(1, callno.getText());\r\n\t\t s.setString(2, name.getText());\r\n\t\t s.setString(3, author.getText());\r\n\t\t s.setString(4, publisher.getText());\r\n\t s.setInt(5, Integer.parseInt(quantity.getText()));\r\n\t\t s.executeUpdate();\r\n\t\t JOptionPane.showMessageDialog(null, \"Add book successfully\", null, JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t } catch(Exception e) {\r\n\t\t\t JOptionPane.showMessageDialog(null, \"Add book failed\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t } \r\n\t\t \r\n\t}",
"public void saveDetails() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.update(event, timelineUpdater);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking details \" + getRoom() + \" have been saved\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}",
"public void saveBookListInfo(CheckOutForm myForm) {\n\t\tint id=myForm.getFrmViewDetailBook().getBookId();\r\n\t\tBookList myBookList=myBookListDao.getBookListById(id);\r\n\t\tint c=myForm.getFrmViewDetailBook().getNoofcopies();\r\n\t\tint copy=c+myForm.getNoOfcopies();\r\n\t\tmyForm.setNoOfcopies(copy);\r\n\t\tmyBookList.setNoOfCopy(copy);\r\n\t\tmyBookListDao.saveBookInfo(myBookList);\r\n\t\t\r\n\t}",
"@RequestMapping(value=\"/createBook\",method=RequestMethod.POST,consumes=\"application/json\")\n\tpublic ResponseEntity<Void> createBook (@RequestBody Book bookMap,UriComponentsBuilder uri) throws JsonMappingException, JsonParseException, IOException{\n\t\tbookRepository.save(bookMap);\n\t\tHttpHeaders header = new HttpHeaders();\n\t\treturn new ResponseEntity<Void>(header,HttpStatus.CREATED);\n\t}",
"public void onAdd() {\n String bookTitle = details[0];\n String author = details[1];\n boolean addedCorrectly = ControllerBook.addBook(this.ISBN, author, bookTitle, \"\");\n if (addedCorrectly) {\n dispose();\n } else {\n\n pack();\n }\n\n }",
"public void addLivros( LivroModel book){\n Connection connection=ConexaoDB.getConnection();\n PreparedStatement pStatement=null;\n try {\n String query=\"Insert into book(id_book,title,author,category,publishing_company,release_year,page_number,description,cover)values(null,?,?,?,?,?,?,?,?)\";\n pStatement=connection.prepareStatement(query);\n pStatement.setString(1, book.getTitulo());\n pStatement.setString(2, book.getAutor());\n pStatement.setString(3, book.getCategoria());\n pStatement.setString(4, book.getEditora());\n pStatement.setInt(5, book.getAnoDeLancamento());\n pStatement.setInt(6, book.getPaginas());\n pStatement.setString(7, book.getDescricao());\n pStatement.setString(8, book.getCapa());\n pStatement.execute();\n } catch (Exception e) {\n \n }finally{\n ConexaoDB.closeConnection(connection);\n ConexaoDB.closeStatement(pStatement);\n }\n }",
"public BookView() {\n initComponents();\n setLocationRelativeTo(null);\n setTitle(\"Livaria Paris - Editora\");\n dataBase = new DataBase();\n dataBase.insertBook();\n fillTable(dataBase.getBooks());\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n jLabel9 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n jLabel11 = new javax.swing.JLabel();\r\n bookSubject = new javax.swing.JTextField();\r\n bookTitle = new javax.swing.JTextField();\r\n author = new javax.swing.JTextField();\r\n publisher = new javax.swing.JTextField();\r\n copyright = new javax.swing.JTextField();\r\n edition = new javax.swing.JTextField();\r\n ISBN = new javax.swing.JTextField();\r\n numPages = new javax.swing.JTextField();\r\n numCopies = new javax.swing.JTextField();\r\n jtfShelfNum = new javax.swing.JTextField();\r\n jLabel12 = new javax.swing.JLabel();\r\n btnSaveBook = new javax.swing.JButton();\r\n btnExit = new javax.swing.JButton();\r\n jLabel13 = new javax.swing.JLabel();\r\n bookID = new javax.swing.JTextField();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"Add Books\");\r\n setFont(new java.awt.Font(\"Calibri\", 0, 12)); // NOI18N\r\n setName(\"AddBooks\"); // NOI18N\r\n\r\n jLabel1.setText(\"BOOK INFORMATION\");\r\n\r\n jLabel2.setText(\"Add a new book:\");\r\n\r\n jLabel3.setText(\"The book subject\");\r\n\r\n jLabel4.setText(\"The book title\");\r\n\r\n jLabel5.setText(\"The name of the Author(s)\");\r\n\r\n jLabel6.setText(\"The name of Publisher\");\r\n\r\n jLabel7.setText(\"Copyright of the book\");\r\n\r\n jLabel8.setText(\"The number of Pages\");\r\n\r\n jLabel9.setText(\"ISBN for the books\");\r\n\r\n jLabel10.setText(\"The number of Copies\");\r\n\r\n jLabel11.setText(\"Shelf Numbeer\");\r\n\r\n jLabel12.setText(\"Edition\");\r\n\r\n btnSaveBook.setText(\"Save\");\r\n\r\n btnExit.setText(\"Exit\");\r\n\r\n jLabel13.setText(\"Book ID\");\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\r\n .addGap(42, 42, 42)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel11)\r\n .addComponent(jLabel10))\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel9)\r\n .addComponent(jLabel8)\r\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel7)))\r\n .addGap(46, 46, 46)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(numPages)\r\n .addComponent(ISBN)\r\n .addComponent(numCopies)\r\n .addComponent(jtfShelfNum)\r\n .addComponent(edition)))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(3, 3, 3)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel6)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(publisher, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(111, 111, 111)\r\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel5)\r\n .addComponent(jLabel4))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(bookID, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(bookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(author, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(bookSubject, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)))))\r\n .addGap(0, 2, Short.MAX_VALUE))))))\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(btnSaveBook)\r\n .addGap(38, 38, 38)\r\n .addComponent(btnExit))\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel3)\r\n .addGap(287, 287, 287))))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\r\n .addGap(45, 45, 45)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(copyright, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel2))\r\n .addGap(0, 0, Short.MAX_VALUE)))))\r\n .addGap(42, 42, 42))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(19, 19, 19)\r\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel2)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)\r\n .addComponent(jLabel3)\r\n .addGap(18, 18, 18)\r\n .addComponent(jLabel4))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(bookID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(bookSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(bookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(author, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel6)\r\n .addComponent(publisher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(copyright, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel7))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel12)\r\n .addComponent(edition, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(ISBN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel9))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(numPages, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel8))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel10)\r\n .addComponent(numCopies, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jtfShelfNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel11))\r\n .addGap(18, 18, 18)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(btnSaveBook)\r\n .addComponent(btnExit))\r\n .addGap(19, 19, 19))\r\n );\r\n\r\n pack();\r\n }",
"public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }",
"public static Response createBook(String title, double price){\n Book b = new Book();\n b.setTitle(title);\n b.setPrice(price);\n EntityTransaction t = em.getTransaction();\n t.begin();\n em.persist(b);\n t.commit();\n return Response.ok().build();\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tStoredBookDAO storeBookDAO = new StoredBookDAO(BookInfoActivity.this);\n\t\t\tBookStoredEntity testBookBorrowedEntity1 = new BookStoredEntity();\n\t\t\ttestBookBorrowedEntity1.setBookId(\"1\");\n\t\t\ttestBookBorrowedEntity1.setBookText(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookImageUrl(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPress(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPressTime(\"android\");\n\t\t\tstoreBookDAO.insert(testBookBorrowedEntity1);\n\t\t\tToast.makeText(BookInfoActivity.this, R.string.storesuccess, Toast.LENGTH_SHORT).show();\n\t\t}",
"public BookingInfo() {\n }",
"@PostMapping(\"/book\")\n public String saveBook(@Valid Book book, BindingResult bindingResult){\n if(bindingResult.hasErrors()){\n return \"bookform\";\n }\n bookService.saveBook(book);\n return \"redirect:/book/\" + book.getId();\n }",
"private void save(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tBook book = new Book();\r\n\t\tbook.setId(bookService.list().size()+1);\r\n\t\tbook.setBookname(request.getParameter(\"bookname\"));\r\n\t\tbook.setAuthor(request.getParameter(\"author\"));\r\n\t\tbook.setPrice(Float.parseFloat(request.getParameter(\"price\")));\r\n\t\tbookService.save(book);\r\n\t\t//out.println(\"<script>window.location.href='index.html'</script>\");\r\n\t\tresponse.sendRedirect(\"index.html\");\r\n\t}",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}",
"public BookInfoDO() {\n super();\n }",
"private static void addNewBook(){\n\t\tSystem.out.println(\"===Add New Book===\");\n\t\tBookDetails new_book = new BookDetails();\n\t\tScanner string_input = new Scanner(System.in); //takes string input from user\n\t\tScanner integer_input = new Scanner(System.in); //takes integer input from user\n\t\t\n\t\tSystem.out.println(\"Enter BookId: \");\n\t\tint bookId = getIntegerInput(); //ensures user input is an integer value\n\t\t/*if bookId entered already exists then continually ask user to enter bookId until a bookId that does not exist is entered. \n\t\t * Do the same if bookId is less than 1 because book's in the library will not have Id's less than 1.*/\n\t\twhile(ALL_BOOKS.containsKey(bookId) || bookId < 1){\n\t\t\tSystem.out.println(\"Book Id entered already exists! Enter BookId: \");\n\t\t\tbookId = integer_input.nextInt();\n\t\t}\n\t\tnew_book.setBookId(bookId);\n\t\t\n\t\tSystem.out.println(\"Enter Book Title: \");\n\t\tString bookTitle = string_input.nextLine();\n\t\tnew_book.setBookTitle(bookTitle);\n\t\t\n\t\tString author_firstname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's First Name: \");\n\t\t\tauthor_firstname = string_input.next();\n\t\t}while(!new_book.setAuthorFirstName(author_firstname)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tString author_middlename;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's Middle Name (Type 'null' if author has no middle name): \");\n\t\t\tauthor_middlename = string_input.next();\n\t\t}while(!new_book.setAuthorMiddleName(author_middlename)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tString author_lastname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's Last Name: \");\n\t\t\tauthor_lastname = string_input.next();\n\t\t}while(!new_book.setAuthorLastName(author_lastname)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tstring_input = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter Book's Publisher: \");\n\t\tString publisher = string_input.nextLine();\n\t\tnew_book.setPublisher(publisher);\n\t\t\n\t\t\n\t\t/*Set book's genre. Valid values for a book's Genre are Biology, Mathematics, Chemistry, Physics,\n\t\t * Science_Fiction, Fantasy, Action, Drama, Romance, Horror, History, Autobiography, Biography.*/\n\t\tString genre;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Book's Genre: \");\n\t\t\tgenre = string_input.next();\n\t\t}while(!new_book.setGenre(genre)); //loop until valid genre value is entered\n\t\t\n\t\t/*Set book's condition. Valid values for a book's Condition are New, Good, Worn, Damaged.*/\n\t\tString condition;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Book's Condition: \");\n\t\t\tcondition = string_input.next();\n\t\t}while(!new_book.setCondition(condition)); //loop until valid value for condition is entered\n\t\t\n\t\tALL_BOOKS.put(new_book.getBookId(), new_book);\n\t\taddToPublisherTable(new_book.getPublisher(), new_book.getBookTitle()); //add book's title to the ALL_PUBLISHERS Hashtable\n\t\taddToGenreTable(new_book, new_book.getBookTitle()); //add book's title to the ALL_GENRES ArrayList\n\t\taddToAuthorTable(new_book.getAuthor().toString(), new_book.getBookTitle()); //add book's title to the ALL_AUTHORS Hashtable\n\t\tSystem.out.println(\"Book Successfully Added!\");\n\t}",
"public Book() {\n this.bookName = \"Five Point Someone\";\n this.bookAuthorName = \"Chetan Bhagat\";\n this.bookIsbnNumber = \"9788129104595\";\n\n }",
"private void saveBook() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String productName = etTitle.getText().toString().trim();\n String author = etAuthor.getText().toString().trim();\n String price = etPrice.getText().toString().trim();\n String quantity = etEditQuantity.getText().toString().trim();\n String supplier = etSupplier.getText().toString().trim();\n String supplierPhoneNumber = etPhoneNumber.getText().toString().trim();\n\n // If this is a new book and all of the fields are blank.\n if (currentBookUri == null &&\n TextUtils.isEmpty(productName) && TextUtils.isEmpty(author) &&\n TextUtils.isEmpty(price) && quantity.equals(getString(R.string.zero)) &&\n TextUtils.isEmpty(supplier) && TextUtils.isEmpty(supplierPhoneNumber)) {\n // Exit the activity without saving a new book.\n finish();\n return;\n }\n\n // Make sure the book title is entered.\n if (TextUtils.isEmpty(productName)) {\n Toast.makeText(this, R.string.enter_title, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the author is entered.\n if (TextUtils.isEmpty(author)) {\n Toast.makeText(this, R.string.enter_author, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the price is entered.\n if (TextUtils.isEmpty(price)) {\n Toast.makeText(this, R.string.enter_price, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the quantity is entered if it is a new book.\n // Can be zero when editing book, in case the book is out of stock and user wants to change\n // other information, but hasn't received any new inventory yet.\n if (currentBookUri == null && (quantity.equals(getString(R.string.zero)) ||\n quantity.equals(\"\"))) {\n Toast.makeText(this, R.string.enter_quantity, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier is entered.\n if (TextUtils.isEmpty(supplier)) {\n Toast.makeText(this, R.string.enter_supplier, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier's phone number is entered.\n if (TextUtils.isEmpty(supplierPhoneNumber)) {\n Toast.makeText(this, R.string.enter_suppliers_phone_number,\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Convert the price to a double.\n double bookPrice = Double.parseDouble(price);\n\n // Convert the quantity to an int, if there is a quantity entered, if not set it to zero.\n int bookQuantity = 0;\n if (!quantity.equals(\"\")) {\n bookQuantity = Integer.parseInt(quantity);\n }\n\n // Create a new map of values, where column names are the keys\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n values.put(BookEntry.COLUMN_BOOK_AUTHOR, author);\n values.put(BookEntry.COLUMN_BOOK_PRICE, bookPrice);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, bookQuantity);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER, supplier);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhoneNumber);\n\n // Check if this is a new or existing book.\n if (currentBookUri == null) {\n // Insert a new book into the provider, returning the content URI for the new book.\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the row ID is null, then there was an error with insertion.\n Toast.makeText(this, R.string.save_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful, display a toast.\n Toast.makeText(this, R.string.save_successful, Toast.LENGTH_SHORT).show();\n }\n } else {\n // Check to see if any updates were made if not, no need to update the database.\n if (!bookHasChanged) {\n // Exit the activity without updating the book.\n finish();\n } else {\n // Update the book.\n int rowsUpdated = getContentResolver().update(currentBookUri, values, null,\n null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsUpdated == 0) {\n // If no rows were updated, then there was an error with the update.\n Toast.makeText(this, R.string.update_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful, display a toast.\n Toast.makeText(this, R.string.update_successful,\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n // Exit the activity, called here so the user can enter all of the required fields.\n finish();\n }",
"public void addnew(book newbook) {\n\t\trepository.save(newbook);\n\t\t\n\t}",
"@Secured(value=\"CRIAR_LIVRO\")\n\t@Override\n\tpublic IEbook createEbook(IEbook object) {\n\t\t\n\t\tsecurityFacade.saveUserTransaction(\"CRIAR_LIVRO\", object, object.getCollection());\n\t\treturn (IEbook) ebookDataprovider.saveOrUpdate(object);\n\t}",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"public Bookings saveBookingDetails(Bookings bookings) ;",
"public Result save() {\n try {\n Form<Book> bookForm = formFactory.form(Book.class).bindFromRequest();\n Book book = bookForm.get();\n libraryManager.addLibraryItem(book);\n return redirect(routes.MainController.index());\n } catch (IsbnAlreadyInUseException e) {\n return notAcceptable(e.getMessage());\n }\n }",
"public Book() {\n }",
"private void setUpAddBookButton()\n {\n setComponentAlignment(addBookButton, Alignment.BOTTOM_LEFT);\n addBookButton.setCaption(\"Add\");\n addBookButton.addClickListener(new Button.ClickListener() {\n public void buttonClick(Button.ClickEvent event)\n {\n Object id = bookTable.getValue();\n int book_id = (int)bookTable.getContainerProperty(id,\"id\").getValue();\n basket.add(allBooksBean.getIdByIndex(book_id-1));\n //basket.add(allBooks.get(book_id-1));\n errorLabel.setCaption(\"Successfully added book to Basket\");\n }\n });\n }",
"public void setBook_id(int book_id) {\n\tthis.book_id = book_id;\n}",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"protected static void addBook(Book toAdd)\n {\n if (toAdd == null) // if product is null, becuase the formatting wasnt correct, then dont go forward and print out that the book wasnt added\n ProductGUI.Display(\"Book not added\\n\");\n else{\n try{\n if (!(toAdd.isAvailable(toAdd.getID(), productList))) // if the product id alrady exists, dont go forard towards adding it\n {\n ProductGUI.Display(\"Sorry. this product already exists\\n\");\n return;\n }\n else\n ProductGUI.Display(\"New book product\\n\");\n \n myProduct = new Book(toAdd.getID(), toAdd.getName(), toAdd.getYear(), toAdd.getPrice(), toAdd.getAuthor(), toAdd.getPublisher()); // make new product using this object\n productList.add(myProduct); // add product to arraylist\n \n addToMap(toAdd.getName()); // adding the product name to the hashmap\n System.out.println(\"book added to all\");\n ProductGUI.fieldReset(); // reset the fields to being blank\n } catch (Exception e){\n ProductGUI.Display(e.getMessage()+\"errorrorror\\n\");\n }\n }\n }",
"public void create(String title, String numPages, String quantity, String category, String price, String publicationYear, String[] authorsId, String publisherId) {\n System.out.println(\"creating book \" + title + \" by \"+ authorsId[0] + \" published by \" + publisherId);\n dbmanager.open();\n \n JSONObject item = new JSONObject();\n item.put(\"idBOOK\", dbmanager.getNextId());\n item.put(\"title\", title);\n item.put(\"numPages\", numPages);\n item.put(\"quantity\", quantity);\n item.put(\"category\", category);\n item.put(\"price\", price);\n item.put(\"publicationYear\", publicationYear);\n item.put(\"authors\", authorsId); \n item.put(\"publisher\", publisherId);\n\n dbmanager.createCommit(getNextBookId(),item);\n \n dbmanager.close();\n }",
"@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }",
"public Event createBooking(RequestContext context) {\n\tHotel hotel = (Hotel) context.getFlowScope().get(\"hotel\");\n\tUser user = (User) context.getConversationScope().get(\"user\");\n\tBooking booking = new Booking(hotel, user);\n\tEntityManager em = (EntityManager) context.getFlowScope().get(\"entityManager\");\n\tem.persist(booking);\n\tcontext.getFlowScope().put(\"booking\", booking);\n\treturn success();\n }",
"@RequestMapping(\"/book/edit/{id}\")\n public String edit(@PathVariable Long id, Model model){\n model.addAttribute(\"book\", bookService.getBookById(id));\n return \"bookform\";\n }",
"@Override\n\tpublic void add() {\n\t\tHashMap<String, String> data = new HashMap<>();\n\t\tdata.put(\"title\", title);\n\t\tdata.put(\"author\", author);\n\t\tdata.put(\"publisher\", publisher);\n\t\tdata.put(\"isbn\", isbn);\n\t\tdata.put(\"bookID\", bookID);\n\t\tHashMap<String, Object> result = null;\n\t\tString endpoint = \"bookinfo/post.php\";\n\t\ttry {\n\t\t\tresult = APIClient.post(BookInfo.host + endpoint, data);\n\t\t\tvalid = result.get(\"status_code\").equals(\"Success\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }",
"@Override\r\n\tpublic Book addBook(Book book) {\n\t\treturn bd.save(book);\r\n\t}",
"@Override\n\tpublic void addBook() {\n\t\t\n\t}",
"public void addBook(Book title)\n {\n bookList.add(title);\n }",
"public Book() {}",
"@Override\n\tpublic int addBook(bookInfo bookinfo) {\n\t\treturn 0;\n\t}",
"public static void addBook(Book book) throws HibernateException{\r\n session=sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n //Insert detail of the book to the database\r\n session.save(book);\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n }",
"public Book addBook(){\n Book book = new Book();\r\n String t = title.getText().toString();\r\n book.setTitle(t);\r\n String[] str = author.getText().toString().split(\",\");\r\n Author[] authors = new Author[str.length];\r\n int index = 0;\r\n for(String s : str){\r\n Author a = null;\r\n String[] fml = s.split(\"\\\\s+\");\r\n if(fml.length == 1){\r\n a = new Author(fml[0]);\r\n }else if(fml.length == 2){\r\n a = new Author(fml[0], fml[1]);\r\n }else if(fml.length == 3){\r\n a = new Author(fml[0], fml[1], fml[2]);\r\n }else{\r\n Toast.makeText(this, \"Invalid Author Name\", Toast.LENGTH_LONG).show();\r\n }\r\n authors[index] = a;\r\n index++;\r\n }\r\n book.setAuthors(authors);\r\n String isb = isbn.getText().toString();\r\n book.setIsbn(isb);\r\n\r\n\t\treturn book;\r\n\t}",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"@RequestMapping(value = \"/createReservation.htm\", method = RequestMethod.POST)\n\tpublic ModelAndView createReservation(HttpServletRequest request) {\n\t\tModelAndView modelAndView = new ModelAndView();\t\n\t\t\n\t\tif(request.getSession().getAttribute(\"userId\") != null){\n\t\t\n\t\t\t\n\t\t\tBank bank = bankDao.retrieveBank(Integer.parseInt(request.getParameter(\"bankId\")));\t\t\n\t\t\tUser user = userDao.retrieveUser(Integer.parseInt(request.getParameter(\"id\")));\n\t\t\t\n\t\t\t\n\t\t\tNotes notes5 = noteskDao.retrieveNotes(500);\n\t\t\tNotes notes10 = noteskDao.retrieveNotes(1000);\n\t\t\t\n\t\t\tint quantity5 = Integer.parseInt(request.getParameter(\"five\"));\n\t\t\tint quantity10 = Integer.parseInt(request.getParameter(\"thousand\"));\n\t\t\t\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId5 = new ReservationDetailsId();\n\t\t\treservationDetailsId5.setNotesId(notes5.getId());\n\t\t\treservationDetailsId5.setQuantity(quantity5);\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId10 = new ReservationDetailsId();\n\t\t\treservationDetailsId10.setNotesId(notes10.getId());\n\t\t\treservationDetailsId10.setQuantity(quantity10);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails5= new ReservationDetails();\n\t\t\treservationDetails5.setId(reservationDetailsId5);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails10= new ReservationDetails();\n\t\t\treservationDetails10.setId(reservationDetailsId10);\n\t\t\t\n\t\t\t\n\t\t\tReservation reservation = new Reservation();\t\n\t\t\treservation.setBank(bank);\n\t\t\treservation.setDate(request.getParameter(\"date\"));\n\t\t\treservation.setTimeslot(request.getParameter(\"timeslot\"));\n\t\t\treservation.setUser(user);\n\t\t\treservation.setStatus(\"incomplete\");\n\t\t\treservation.getReservationDetailses().add(reservationDetails5);\n\t\t\treservation.getReservationDetailses().add(reservationDetails10);\n\t\t\t\n\t\t\tuser.getResevations().add(reservation);\n\t\t\tuserDao.createUser(user);\n\t\t\t\n\t\t\t\n\t\t\treservationDAO.createReservation(reservation);\n\t\t\treservationDetails5.setResevation(reservation);\n\t\t\treservationDetails10.setResevation(reservation);\n\t\t\t\n\t\t\treservationDetailsId10.setResevationId(reservation.getId());\n\t\t\treservationDetailsId5.setResevationId(reservation.getId());\n\t\t\t\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails5);\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails10);\n\t\t\t\n\t\t\tmodelAndView.setViewName(\"result_reservation\");\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tmodelAndView.setViewName(\"login\");\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\t\n\t\treturn modelAndView;\n\t}",
"@RequestMapping(value = { \"/newproduct\" }, method = RequestMethod.GET)\r\n\tpublic String newProduct(ModelMap model) {\r\n\t\tProduct product = new Product();\r\n\t\tmodel.addAttribute(\"product\", product);\r\n\t\tmodel.addAttribute(\"productTypes\", productTypeService.findAllProductTypes());\r\n\t\tmodel.addAttribute(\"brands\", brandService.findAllBrands());\r\n\t\tmodel.addAttribute(\"edit\", false);\r\n\t\treturn \"newproduct\";\r\n\t}",
"@PostMapping(\"api/book\")\n public ResponseEntity<Book> addBook(@RequestBody Book book) {\n Result<Book> result = bookService.save(book);\n if (result.isSuccess()) {\n return ResponseEntity.ok(book);\n } else {\n return ResponseEntity.noContent().build();\n }\n }",
"public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}",
"public void issueBook() {\n\t\t JTextField callno = new JTextField();\r\n\t\t JTextField name = new JTextField();\r\n\t\t JTextField id = new JTextField(); \r\n\t\t JTextField contact = new JTextField(); \r\n\t\t Object[] issued = {\r\n\t\t\t\t \"Bookcallno:\",callno,\r\n\t\t\t\t \"Student ID:\",id,\r\n\t\t\t\t \"Name:\",name,\r\n\t\t\t\t \"Contact:\",contact\r\n\t\t\t\t\r\n\t\t };\r\n\t\t int option = JOptionPane.showConfirmDialog(null, issued, \"New issued book\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t if(option==JOptionPane.OK_OPTION) {\r\n\t\t\tint check = checkBook(callno.getText());\r\n\t\t\tif(check==-1) {\r\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Wrong book call number\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t return;\r\n\t\t\t}\r\n\t\t\telse if(check == 0) {\r\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Book is not available right now\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t return;\r\n\t\t\t}\r\n // add to the Book database\r\n\t\t try {\r\n\t\t\t \r\n\t\t String query = \"insert into Issued(bookcallno,studentId,studentName,studentContact,issued_date)\"\r\n\t\t\t\t +\" values(?,?,?,?,GETDATE())\";\r\n\t\t \r\n\t\t PreparedStatement s = SimpleLibraryMangement.connector.prepareStatement(query);\r\n\t\t s.setString(1, callno.getText());\r\n\t\t s.setInt(2, Integer.parseInt(id.getText()));\r\n\t\t s.setString(3, name.getText());\r\n\t\t s.setString(4, contact.getText());\r\n\t\t \r\n\t\t s.executeUpdate();\r\n\t\t updateIssuedBook(callno.getText());\r\n\t\t JOptionPane.showMessageDialog(null, \"Issue book successfully\", null, JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t } catch(Exception e) {\r\n\t\t\t JOptionPane.showMessageDialog(null, \"Issue book failed\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t } \r\n\t }",
"public void setBook(Book book) {\n this.book = book;\n }",
"public Book create(String title,double price, Author author)\r\n {\r\n return new Book(title,price,author);\r\n }",
"@RequestMapping(\"/newRecipe\")\r\n\tpublic ModelAndView newRecipe() {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\r\n\t\tmav.addObject(\"recipe\", new Recipe());\r\n\t\tmav.addObject(\"newFlag\", true);\r\n\t\tmav.setViewName(\"recipe/editRecipe.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}",
"public InsertOrUpdate_Details() {\n initComponents();\n }",
"@ModelAttribute(value = \"booking\")\n\tpublic Booking getNewBooking() {\n\t\tBooking booking = new Booking();\n\t\t\n\t\tlogger.info(\"getNewBooking() method: Returning a new instance of Booking\");\n\t\t\n\t\treturn booking;\n\t}",
"@PostMapping(\"/{username}/books\")\n public Book addBookToLibrary(@PathVariable String username,\n @RequestBody Book book) {\n\n if(book.getBookId() == null) {\n logger.error(\"bookId is null\");\n throw new IllegalArgumentException(\"Invalid bookId\");\n }\n return userBookToBook.apply(userService.addBook(username, book.getBookId()));\n }",
"@GetMapping(\"/trip/{id}/reservation/add\")\n public String showReservationForm(@PathVariable(\"id\") long id, Model model) {\n \n \tReservation reservation = new Reservation();\n \treservation.setAddress(new Address());\n \tTrip trip = tripRepository.findById(id).get();\n model.addAttribute(\"reservation\", reservation);\n model.addAttribute(\"trip\", trip);\n return \"add-reservation\";\n }",
"@Override\n public void onClick(View view) {\n LinearLayout layout = new LinearLayout(BookListActivity.this);\n layout.setOrientation(LinearLayout.VERTICAL);\n\n //create edit texts and add to layout\n final EditText bookEditText = new EditText(BookListActivity.this);\n bookEditText.setHint(\"Book name\");\n layout.addView(bookEditText);\n final EditText authorEditText = new EditText(BookListActivity.this);\n authorEditText.setHint(\"Author name\");\n layout.addView(authorEditText);\n\n //create alert dialog\n AlertDialog.Builder dialog = new AlertDialog.Builder(BookListActivity.this);\n dialog.setTitle(\"Add Book\");\n dialog.setView(layout);\n dialog.setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //get book name entered\n final String newBookName = bookEditText.getText().toString();\n final String newAuthorName = authorEditText.getText().toString();\n\n if(!newBookName.isEmpty()) {\n //start realm write transaction\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n //create a realm object\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAuthor_name(newAuthorName);\n }\n });\n }\n }\n });\n dialog.setNegativeButton(\"Cancel\", null);\n dialog.show();\n }",
"public NewBooking() {\n initComponents();\n setDate();\n setTime();\n loadcmbOrigin();\n loadcmbDestination();\n }",
"public Book() {\n\t\t// Default constructor\n\t}",
"public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }",
"@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}",
"private void insertDummyBook() {\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_NAME, getString(R.string.dummy_book_name));\n values.put(BookEntry.COLUMN_GENRE, BookEntry.GENRE_SELF_HELP);\n values.put(BookEntry.COLUMN_PRICE, getResources().getInteger(R.integer.dummy_book_price));\n values.put(BookEntry.COLUMN_QUANTITY, getResources().getInteger(R.integer.dummy_book_quantity));\n values.put(BookEntry.COLUMN_SUPPLIER, getString(R.string.dummy_book_supplier));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_PHONE, getString(R.string.dummy_supplier_phone_number));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_EMAIL, getString(R.string.dummy_book_supplier_email));\n getContentResolver().insert(BookEntry.CONTENT_URI, values);\n }",
"public BookList(){\n\n }",
"@RequestMapping(\"showForm\")\n\tpublic String showForm( Model theModel) {\n\t\t\n\t\t//create a student\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t//add student to the model\n\t\ttheModel.addAttribute(\"student\", theStudent);\n\t\t\n\t\treturn \"student-form\";\n\t}",
"public AddressbookModel newAddressbook() throws IOException {\n if (adressbookmap.containsValue(\"open\")) {\n System.out.println(\"close the current addressbook to create new one\");\n AddressBook.mainfunction();\n } else {\n System.out.println(\"enter the addressbook name :\");\n Scanner scanner = new Scanner(System.in);\n addressbookname = scanner.nextLine() + \".csv\";\n\n try {\n String PATH = \"C:/Users/Sukrutha Manjunath/IdeaProjects/Parctice+\" + addressbookname;\n File file = new File(PATH);\n if (file.createNewFile()) {\n System.out.println(\"welcome to addressbook \" + addressbookname);\n return new AddressbookModel();\n } else {\n System.out.println(\"file already exits\");\n AddressBook.mainfunction();\n }\n } catch (IOException ee) {\n System.out.println(\"error\");\n ee.printStackTrace();\n }\n return null;\n }\n AddressbookModel addressbookModel = new AddressbookModel();\n addressbookModel.setaddressbookname(addressbookModel.getaddressbookname());\n addressbookModel.setSaved(\"yes\");\n adressbookmap.put(addressbookModel, \"open\");\n System.out.println(\"choose a case \");\n System.out.println(\"Case1 :add a person , Case2 :Back to main menu\");\n int input = InputUtil.getIntValue();\n switch (input) {\n case 1:\n PersonServices personServices = new PersonServices();\n personServices.addRecord();\n break;\n case 2:\n close();\n break;\n }\n\n return null;\n }",
"public Book(String title, String genre)\n {\n bookTitle = title;\n bookGenre = genre;\n }",
"private void saveBook() {\n // Read the data from the fields\n String productName = productNameEditText.getText().toString().trim();\n String price = priceEditText.getText().toString().trim();\n String quantity = Integer.toString(bookQuantity);\n String supplierName = supplierNameEditText.getText().toString().trim();\n String supplierPhone = supplierPhoneEditText.getText().toString().trim();\n\n // Check if any fields are empty, throw error message and return early if so\n if (productName.isEmpty() || price.isEmpty() ||\n quantity.isEmpty() || supplierName.isEmpty() ||\n supplierPhone.isEmpty()) {\n Toast.makeText(this, R.string.editor_activity_empty_message, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Format the price so it has 2 decimal places\n String priceFormatted = String.format(java.util.Locale.getDefault(), \"%.2f\", Float.parseFloat(price));\n\n // Create the ContentValue object and put the information in it\n ContentValues contentValues = new ContentValues();\n contentValues.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n contentValues.put(BookEntry.COLUMN_BOOK_PRICE, priceFormatted);\n contentValues.put(BookEntry.COLUMN_BOOK_QUANTITY, quantity);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, supplierName);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhone);\n\n // Save the book data\n if (currentBookUri == null) {\n // New book, so insert into the database\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, contentValues);\n\n // Show toast if successful or not\n if (newUri == null)\n Toast.makeText(this, getString(R.string.editor_insert_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_insert_book_successful), Toast.LENGTH_SHORT).show();\n } else {\n // Existing book, so save changes\n int rowsAffected = getContentResolver().update(currentBookUri, contentValues, null, null);\n\n // Show toast if successful or not\n if (rowsAffected == 0)\n Toast.makeText(this, getString(R.string.editor_update_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_update_book_successful), Toast.LENGTH_SHORT).show();\n\n }\n\n finish();\n }",
"@GetMapping(\"/addAuthor\")\n public String addAuthor(Model model){\n Author author = new Author();\n model.addAttribute(\"newAuthor\", author);\n return \"add-author\";\n }",
"public void addBook(Book book) {\n this.bookList.add(book);\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public void createPaperbackBook(String[] bookInfo) {\n\t\tString isbn = bookInfo[0];\n\t\tString callNumber = bookInfo[1];\n\t\tint available = Integer.parseInt(bookInfo[2]);\n\t\tint total = Integer.parseInt(bookInfo[3]);\n\t\tString title = bookInfo[4];\n\t\tString authors = bookInfo[5];\n\t\tint year = Integer.parseInt(bookInfo[6]);\n\t\tchar genre = bookInfo[7].charAt(0);\n\n\t\tbookList.add(new PaperBack(isbn, callNumber, available, total, title, authors, year, genre));\n\t}",
"@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }",
"public void setBookId(String bookId) {\n this.bookId = bookId;\n }",
"@Override\n\tpublic String insertBook(Book book) {\n\t\treturn \"Book successfully inserted\";\n\t}",
"private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }"
]
| [
"0.7396128",
"0.7034798",
"0.69581294",
"0.673665",
"0.6683837",
"0.65349865",
"0.6399423",
"0.6302117",
"0.6274836",
"0.6234821",
"0.6196227",
"0.6135894",
"0.61066604",
"0.60973954",
"0.60805994",
"0.6077713",
"0.6059976",
"0.6027549",
"0.6012411",
"0.60000557",
"0.59907305",
"0.596082",
"0.59081817",
"0.59070987",
"0.58514273",
"0.5850408",
"0.58404446",
"0.5833945",
"0.5819634",
"0.58177054",
"0.5805506",
"0.57922655",
"0.57724",
"0.57584965",
"0.5743221",
"0.5730455",
"0.57268214",
"0.5707774",
"0.5707114",
"0.5704241",
"0.5693259",
"0.5691117",
"0.5682692",
"0.56764126",
"0.5676071",
"0.56579",
"0.5625134",
"0.56229496",
"0.5602165",
"0.5593992",
"0.55838746",
"0.55732614",
"0.55496883",
"0.554622",
"0.55308294",
"0.5501734",
"0.54960966",
"0.5486976",
"0.5473788",
"0.5442253",
"0.54307467",
"0.5425351",
"0.54089653",
"0.5407658",
"0.5404525",
"0.540227",
"0.5394474",
"0.5390504",
"0.53900295",
"0.53876823",
"0.5384415",
"0.53831667",
"0.53749365",
"0.5373726",
"0.5373258",
"0.53695893",
"0.53633404",
"0.53573483",
"0.53516203",
"0.534855",
"0.5336605",
"0.53268707",
"0.532613",
"0.5322016",
"0.53218496",
"0.53199935",
"0.53193414",
"0.5318559",
"0.53142494",
"0.53114074",
"0.53104293",
"0.53065145",
"0.53001845",
"0.52944046",
"0.52917475",
"0.5291507",
"0.5290582",
"0.5288054",
"0.52862394",
"0.527757"
]
| 0.64943236 | 6 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jPanel1.setBackground(new java.awt.Color(36, 47, 65));
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Book_id", "Name", "Publisher Name", "Author name", "No of Copies"
}
));
jScrollPane1.setViewportView(jTable1);
jButton1.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N
jButton1.setText("Get Books");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N
jButton2.setText("Back");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 741, Short.MAX_VALUE)
.addContainerGap())
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(174, 174, 174)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(191, 191, 191)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(23, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public MusteriEkle() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.7321342",
"0.7292121",
"0.7292121",
"0.7292121",
"0.72863305",
"0.7249828",
"0.7213628",
"0.7209084",
"0.7197292",
"0.71912086",
"0.7185135",
"0.7159969",
"0.7148876",
"0.70944786",
"0.70817256",
"0.7057678",
"0.69884527",
"0.69786763",
"0.69555986",
"0.69548863",
"0.69453996",
"0.69434965",
"0.69369817",
"0.6933186",
"0.6929363",
"0.69259083",
"0.69255763",
"0.69123995",
"0.6911665",
"0.6894565",
"0.6894252",
"0.68922615",
"0.6891513",
"0.68894076",
"0.6884006",
"0.68833494",
"0.6882281",
"0.6879356",
"0.68761575",
"0.68752",
"0.6872568",
"0.68604666",
"0.68577915",
"0.6856901",
"0.68561065",
"0.6854837",
"0.68547136",
"0.6853745",
"0.6853745",
"0.68442935",
"0.6838013",
"0.6837",
"0.6830046",
"0.68297213",
"0.68273175",
"0.682496",
"0.6822801",
"0.6818054",
"0.68177056",
"0.6812038",
"0.68098444",
"0.68094784",
"0.6809155",
"0.680804",
"0.68033874",
"0.6795021",
"0.67937285",
"0.6793539",
"0.6791893",
"0.6790516",
"0.6789873",
"0.67883795",
"0.67833847",
"0.6766774",
"0.6766581",
"0.67658913",
"0.67575616",
"0.67566",
"0.6754101",
"0.6751978",
"0.6741716",
"0.6740939",
"0.6738424",
"0.6737342",
"0.6734709",
"0.672855",
"0.6728138",
"0.6721558",
"0.6716595",
"0.6716134",
"0.6715878",
"0.67096144",
"0.67083293",
"0.6703436",
"0.6703149",
"0.6701421",
"0.67001027",
"0.66999036",
"0.66951054",
"0.66923416",
"0.6690235"
]
| 0.0 | -1 |
/ Complete the 'stockPairs' function below. The function is expected to return an INTEGER. The function accepts following parameters: 1. INTEGER_ARRAY stocksProfit 2. LONG_INTEGER target | public static int stockPairs(List<Integer> stocksProfit, long target) {
var stockCounters = new HashMap<Integer, Integer>();
var pairs = 0;
for (var stock : stocksProfit) {
var pair = Math.toIntExact(target - stock);
if (stockCounters.containsKey(pair)) {
if ((pair == stock && stockCounters.get(stock) == 1)
|| (pair != stock && !stockCounters.containsKey(stock))) {
pairs++;
}
}
stockCounters.put(stock, 1 + stockCounters.getOrDefault(stock, 0));
}
return pairs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void analyzeStocks(JSONArray stockArray){\n\t\tbuyArray = new JSONArray();\n\t\tsellArray = new JSONArray();\n\n\t\tfor(int a = 0; a < stockArray.length(); a++){\n\n\t\t\t// Some objects dont always have correct values\n\t\t\tif (!stockArray.getJSONObject(a).isNull(\"DividendYield\") \n\t\t\t\t\t&& !stockArray.getJSONObject(a).isNull(\"FiftydayMovingAverage\")\n\t\t\t\t\t&& !stockArray.getJSONObject(a).isNull(\"Bid\")\n\t\t\t\t\t&& !stockArray.getJSONObject(a).isNull(\"PERatio\")){\n\n\n\n\t\t\t\tdouble fiftyDayAvg = stockArray.getJSONObject(a).getDouble(\"FiftydayMovingAverage\");\n\t\t\t\tdouble bid = stockArray.getJSONObject(a).getDouble(\"Bid\");\n\t\t\t\tdouble divYield = stockArray.getJSONObject(a).getDouble(\"DividendYield\");\n\t\t\t\tdouble peRatio = stockArray.getJSONObject(a).getDouble(\"PERatio\");\n\n\t\t\t\t//Parse Market Cap - form: 205B (int)+(string)\n\t\t\t\tString marketCap = stockArray.getJSONObject(a).getString(\"MarketCapitalization\");\n\t\t\t\tString marketCapSuf = marketCap.substring(marketCap.length()-1);\n\t\t\t\tdouble marketCapAmt = Double.parseDouble(marketCap.substring(0, marketCap.length()-1));\n\t\t\t\tmarketCapAmt = marketCapAmt*suffixes.get(marketCapSuf);\n\n\t\t\t\t//Large checks\n\t\t\t\tif(marketCapAmt >= (10*suffixes.get(\"B\"))){\n\t\t\t\t\tif((bid < fiftyDayAvg*largefiftyWeekPercBuy)\t\t\t//Buy\n\t\t\t\t\t\t\t&& (divYield > largeYield) \n\t\t\t\t\t\t\t&& (peRatio < largePEBuy)){\n\n\t\t\t\t\t\tbuyArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t\telse if((bid > fiftyDayAvg*largefiftyWeekPercSell)\t\t//Sell\n\t\t\t\t\t\t\t&& (peRatio > largePESell)){\n\n\t\t\t\t\t\tsellArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Medium checks\n\t\t\t\telse if(marketCapAmt >= (2*suffixes.get(\"B\"))){\t\n\t\t\t\t\tif((bid < fiftyDayAvg*medfiftyWeekPercBuy)\t\t\t\t//Buy\n\t\t\t\t\t\t\t&& (divYield > medYield) \n\t\t\t\t\t\t\t&& (peRatio < medPEBuy)){\n\n\t\t\t\t\t\tbuyArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t\telse if((bid > fiftyDayAvg*medfiftyWeekPercSell)\t\t//Sell\n\t\t\t\t\t\t\t&& (peRatio > medPESell)){\n\n\t\t\t\t\t\tsellArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Small\tchecks\n\t\t\t\telse if(marketCapAmt >= (300*suffixes.get(\"M\"))){\t\t\t\t\n\t\t\t\t\tif((bid < fiftyDayAvg*smfiftyWeekPercBuy)\t\t\t\t//Buy\n\t\t\t\t\t\t\t&& (divYield > smYield) \n\t\t\t\t\t\t\t&& (peRatio < smPEBuy)){\n\n\t\t\t\t\t\tbuyArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t\telse if((bid > fiftyDayAvg*smfiftyWeekPercSell)\t\t\t//Sell\n\t\t\t\t\t\t\t&& (peRatio > smPESell)){\n\n\t\t\t\t\t\tsellArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"stockFilePT102.StockDocument.Stock getStockArray(int i);",
"public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }",
"public int getStock(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.stock;\n}\n}\nreturn -1;\n}",
"void setStockArray(int i, stockFilePT102.StockDocument.Stock stock);",
"int sizeOfStockArray();",
"private int twoPairs() {\n\t\tint check = 0;\n\t\tint[] pairPos = new int[2];\n\t\tfor (int counter = POS_ONE; counter < Constants.HAND_SIZE; counter++) {\n\t\t\tif (hand[counter - 1].getValueIndex() == hand[counter].getValueIndex()) {\n\t\t\t\tpairPos[check] = counter;\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tif (check == 2) {\n\t\t\tresult.setPrimaryValuePos(hand[pairPos[1]].getValueIndex());\n\t\t\tresult.setSecondaryValuePos(hand[pairPos[0]].getValueIndex());\n\t\t\tList<Card> tertiaryValue = Arrays.stream(hand)\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[0]].getValueIndex())\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[1]].getValueIndex())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tresult.setTertiaryValuePos(tertiaryValue.get(0).getValueIndex());\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"@SuppressWarnings(\"unused\")\r\n\tprivate int[] helper(int buyId, int[] price) {\r\n\t\tint maxProfit = 0;\r\n\t\tint sellDay = -1;\r\n\t\tfor (int i = buyId + 1; i < price.length; i++) {\r\n\t\t\tint currentProfit = price[i] - price[buyId];\r\n\t\t\tif (currentProfit >= 0 && currentProfit >= maxProfit) {\r\n\t\t\t\tmaxProfit = currentProfit;\r\n\t\t\t\tsellDay = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new int[] { maxProfit, sellDay };\r\n\t}",
"public int[][] convertPairsToIntTable(List<PairOfInts> pairList) {\n\t\tint tableSize = 0;\n\t\tif(pairList != null) tableSize = pairList.size();\n\t\t\n\t\tint[][] tableOfPairs = new int[tableSize][MAX_RANGE_SIZE];\n\t\tint count = 0;\n\t\t\n\t\tfor(PairOfInts pair : pairList) {\n\t\t\tif(pair != null) {\n\t\t\t\ttableOfPairs[count][0] = pair.getNumber1();\n\t\t\t\ttableOfPairs[count][1] = pair.getNumber2();\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\treturn tableOfPairs;\n\t}",
"public int maxProfit(int[] prices) {\n \n \n int highestProfit = 0;\n\n //1\n int lengthIndex = prices.length-1;\n int[] lowest = getLowestPricesInTerm(prices);\n int[] highest = getHighestPricesInTerm(Arrays.copyOfRange(prices,lowest[1],lengthIndex));\n highestProfit = Math.max(highestProfit, highest[0]-lowest[0]);\n int[] secondLow;\n int[] secondHigh;\n\n // need to consider \"index out of bounds\"\n //2\n if(lowest[1]+1<=highest[1]-1){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,lowest[1]+1,highest[1]-1));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],highest[1]-1));\n highestProfit = Math.max(highestProfit, secondHigh[0]-lowest[0] + highest[0]-secondLow[0]);\n }\n \n //3\n if(lowest[1]-1>0){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,0,lowest[1]-1));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],lowest[1]-1));\n highestProfit = Math.max(highestProfit, secondHigh[0]-secondLow[0] + highest[0]-lowest[0]);\n }\n \n //4\n if(highest[1]+1<lengthIndex){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,highest[1]+1,lengthIndex));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],lengthIndex));\n highestProfit = Math.max(highestProfit, secondHigh[0]-secondLow[0] + highest[0]-lowest[0]);\n }\n \n \n return highestProfit;\n\n }",
"private static int buyLowSellHigh(int[] prices) {\n int minPrice = Integer.MAX_VALUE;\n int maxProfit = Integer.MIN_VALUE;\n\n for (int v : prices) {\n if (minPrice == Integer.MAX_VALUE) {\n // update min price for the first time\n minPrice = v;\n } else if (v > minPrice) {\n // calculate profit since the stock price is > minPrice\n int profit = v - minPrice;\n maxProfit = Math.max(maxProfit, profit);\n } else {\n // either v is equal to or smaller than minPrice, then update it\n minPrice = v;\n }\n }\n System.out.printf(\"minPrice: %d\\n\", minPrice);\n return maxProfit;\n }",
"void setStockArray(stockFilePT102.StockDocument.Stock[] stockArray);",
"public ComplexOrderEntryTO[] getStockItems(long storeID, ProductTO[] requiredProductTOs) throws NotImplementedException;",
"public List<Map<String, Object>> getStockPriceLow() throws SQLException;",
"private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}",
"public ArrayList<String[]> loadStocks() {\n Log.d(TAG, \"loadStocks: Start Loading\");\n ArrayList<String[]> stocks = new ArrayList<>();\n Cursor cursor = database.query(\n TABLE_NAME,\n new String[]{STOCK_SYMBOL, STOCK_NAME},\n null,\n null,\n null,\n null,\n STOCK_SYMBOL);\n if (cursor != null) {\n cursor.moveToFirst();\n for (int i = 0; i < cursor.getCount(); i++) {\n String symbol = cursor.getString(0);\n //Double price = cursor.getDouble(1);\n // Double change = cursor.getDouble(2);\n //Double changePer = cursor.getDouble(3);\n String name = cursor.getString(1);\n stocks.add(new String[]{symbol, name});\n cursor.moveToNext();\n }\n cursor.close();\n }\n return stocks;\n}",
"private ArrayList<Integer> getAllStockValues() {\n\t\tArrayList<Integer> stock = new ArrayList<>();\n\t\tint k, s, f, n;\n\t\tk = s = f = n = 0;\n\t\tfor (char ch : getAccepted().toCharArray()) {\n\t\t\tif (ch == 'F') {\n\t\t\t\tf += 1;\n\t\t\t} else if (ch == 'N') {\n\t\t\t\tn += 1;\n\t\t\t} else if (ch == 'S') {\n\t\t\t\ts += 1;\n\t\t\t} else if (ch == 'K') {\n\t\t\t\tk += 1;\n\t\t\t}\n\t\t}\n\t\tstock.add(k);\n\t\tstock.add(s);\n\t\tstock.add(f);\n\t\tstock.add(n);\n\t\treturn stock;\n\t}",
"public static int[] getPrice()\n {\n \n String TableData[][]= getTableData();\n int row=getRowCount();\n String SearchPrice[]=new String[row];\n int a[]=new int[row];\n for (int i=0;i<TableData.length;i++)\n {\n SearchPrice[i]= TableData[i][5];\n a[i]=Integer.parseInt(SearchPrice[i]); //converts the data into integer as it was in string\n }\n return a; //returns price array\n }",
"public static ArrayList<Integer> updatedKitchenStock(ArrayList<Integer> userStockList, ArrayList<Integer> kitchenStockList){\n\t\tArrayList<Integer> updatedStockList = new ArrayList<Integer>();\n\n\t\tfor(int i=0 ; i< kitchenStockList.size() && i<userStockList.size() ;i++){\n\n\t\t\tInteger upStock = kitchenStockList.get(i)- userStockList.get(i);\n\t\t\tupdatedStockList.add(upStock);\n\t\t}\n\t\t//System.out.println(\"Updated Stock List->\"+updatedStockList);\n\t\treturn updatedStockList;\n\t}",
"public static native boolean GetItemPair(long lpjFbxStatistics, int pNum, Long pItemName, Integer pItemCount);",
"private static ArrayList<Integer> getkitchenStockIdList(String kitchenName, ArrayList<OrderItemDetailsBean> orderItemDetailList){\n\t\tArrayList<Integer> kitchenStockIdList = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tString sql= \"select kitchen_stock_id from fapp_kitchen_stock \"\n\t\t\t\t\t+\" where kitchen_cuisine_id = ?\"\n\t\t\t\t\t+\" and kitchen_category_id = ?\"\n\t\t\t\t\t+\" and kitchen_id = (SELECT kitchen_id from fapp_kitchen where kitchen_name = ?)\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tfor(OrderItemDetailsBean items : orderItemDetailList){\n\t\t\t\t\tpreparedStatement.setInt(1, items.cuisineId);\n\t\t\t\t\tpreparedStatement.setInt(2, items.categoryId);\n\t\t\t\t\tpreparedStatement.setString(3, kitchenName);\n\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\tif (resultSet.next()) {\n\t\t\t\t\t\tkitchenStockIdList.add(resultSet.getInt(\"kitchen_stock_id\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(\"ERROR DUE TO:\"+e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tif(connection != null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\n\t\t//System.out.println(\"Kitchen Stock Id list::\"+kitchenStockIdList);\n\t\treturn kitchenStockIdList;\n\t}",
"@Test\r\n\tpublic void shouldReturn2PairsWhen110100() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(1, 1, 0, 1, 0, 0));\r\n\t\tassertEquals(2, Coins.countPairs(A));\r\n\t}",
"public Items[] findWhereStockIdEquals(int stockId) throws ItemsDaoException;",
"public int maxProfit(int k, int[] prices) {\n if(prices.length==0) return 0;\n if(k>(prices.length>>>1)){\n int T0=0;\n int T1=-(int)1e8;\n for(int val:prices){\n T0=Math.max(T0,T1 + val);\n T1=Math.max(T1,T0 - val);\n }\n return T0;\n }\n int Ti0[]=new int[k+1];\n int Ti1[]=new int[k+1];\n Arrays.fill(Ti1,(int)-1e8);\n for(int val:prices){\n for(int K=k;K>0;K--){\n Ti0[K]=Math.max(Ti0[K],Ti1[K]+val);\n Ti1[K]=Math.max(Ti1[K],Ti0[K-1] - val);\n }\n }\n return Ti0[k];\n }",
"private static long profit(long[] a) {\n\t\tlong b=0,bought=0,profit=0;\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t if(!sell[i])\n\t\t {\n\t\t\t bought+=a[i];\n\t\t\t b++;\n\t\t }\t\n\t\t else\n\t\t {\n\t\t\tprofit+=a[i]*b-bought;\n\t\t\tbought=0;\n\t\t\tb=0;\n\t\t }\n\t\t\n\t\t}\n\t\treturn profit;\n\t\t\n\t}",
"Price[] getTradePrices();",
"public int getNumberOfpairs(int[] returnArray, int k) {\n\t\tint[] temp = new int[returnArray.length];\r\n\t\ttemp = mergeSort(returnArray, temp, 0, returnArray.length - 1);\r\n\t\tint p1 = 0;\r\n\t\tint p2 = temp.length - 1;\r\n\t\tint cnt = 0;\r\n\t\twhile(p1<p2){\r\n\t\t\tint sum = temp[p1] + temp[p2];\r\n\t\t\tif (sum == k) {\r\n\t\t\t\tcnt++;\r\n\t\t\t\tp1++;\r\n\t\t\t\tp2--;\r\n\t\t\t} else if (sum < k)\r\n\t\t\t\tp1++;\r\n\t\t\telse\r\n\t\t\t\tp2--;\r\n\t\t}\r\n\t\tSystem.out.print(cnt + \" \");\r\n\t\tSystem.out.println();\r\n\t\treturn cnt;\r\n\t}",
"@Override\r\n public ArrayList<CurrencyTuple> getSymbols() throws MalformedURLException, IOException{\r\n String symbolsUrl = \"https://api.binance.com/api/v1/ticker/24hr\";\r\n String charset = \"UTF-8\";\r\n String symbol = this.pair;\r\n URLConnection connection = new URL(symbolsUrl).openConnection();\r\n connection.setRequestProperty(\"Accept-Charset\", charset);\r\n InputStream stream = connection.getInputStream();\r\n ByteArrayOutputStream responseBody = new ByteArrayOutputStream();\r\n byte buffer[] = new byte[1024];\r\n int bytesRead = 0;\r\n while ((bytesRead = stream.read(buffer)) > 0) {\r\n responseBody.write(buffer, 0, bytesRead);\r\n }\r\n String responseString = responseBody.toString();\r\n int position = 0;\r\n ArrayList<CurrencyTuple> toReturn = new ArrayList<>();\r\n for (int i = 0; i < 100; i++){\r\n position = responseString.indexOf(\"symbol\", position + 6);\r\n String symbols = responseString.substring(position + 9, position + 15);\r\n String symbolOwned = symbols.substring(0, 3);\r\n String symbolNotOwned = symbols.substring(3, 6);\r\n if (responseString.substring(position+9, position + 16).contains(\"\\\"\")\r\n || responseString.substring(position+9, position + 16).contains(\"USD\")){\r\n if (symbolOwned.contains(\"USD\")) {\r\n symbolOwned = symbolOwned.concat(\"T\");\r\n }\r\n if (symbolNotOwned.contains(\"USD\")) {\r\n symbolOwned = symbolNotOwned.concat(\"T\");\r\n }\r\n Currency CurrencyOwned = new Currency(symbolOwned, 0.0);\r\n Currency CurrencyNotOwned = new Currency(symbolNotOwned, 0.0);\r\n CurrencyTuple tuple = new CurrencyTuple(CurrencyOwned, CurrencyNotOwned);\r\n System.out.println(CurrencyOwned.getName() + \" - \" + CurrencyNotOwned.getName());\r\n toReturn.add(tuple);\r\n }\r\n }\r\n return toReturn;\r\n }",
"public float getStocksValue(StockStatus stockStatus[]) {\r\n\t\tfloat allStocksValue = 0;\r\n\t\tfor (int i = 0; i < portfolioSize; i++) {\r\n\t\t\tallStocksValue += stockStatus[i].bid * stockStatus[i].stockQuantity;\r\n\t\t}\r\n\t\treturn allStocksValue;\r\n\t}",
"@SuppressWarnings({ \"unchecked\", \"finally\" })\n\t@RequestMapping(value=\"/{username}/buy\", method = RequestMethod.POST)\n\tpublic String buyStock(@PathVariable String username, @RequestParam(value=\"stock\") String stock, @RequestParam(value=\"shares\") int shares ){\n\t\tUser user = userService.getUserByName(username);\n\t\tString portfolio = user.getPortfolio();\n\t\tSystem.out.println(portfolio);\n\t\tString stockToBuy = stock;\n\t\tint amountToBuy = shares;\n\n\t\tJSONParser parser = new JSONParser();\n\t\ttry {\n\t\t\tJSONObject json = (JSONObject) parser.parse(portfolio);\n\t\t\tJSONArray details = (JSONArray) json.get(\"portfolio\");\n\t\t\tSystem.out.println(\"Details:\");\n\t\t\tSystem.out.println(details.toJSONString());\n\t\t\tSystem.out.println(json.toString());\n\t\t\tList<String> stockInfo = new ArrayList<>();\n\n\t\t\tHashMap<String, String> stockKeyValue = new HashMap<String, String>();\n\n\n\t\t\t//\t\t\tdouble testint[] = {0,0,0,0};\n\n\t\t\tdetails.forEach( stockInfoFromPortfolio -> {\n\t\t\t\tJSONObject parse = (JSONObject) stockInfoFromPortfolio;\n\n\t\t\t\tfor(int i = 0; i<parse.size(); i++){\n\n\t\t\t\t\tString key = parse.keySet().toArray()[i].toString();\n\t\t\t\t\tstockKeyValue.put(key, parse.get(key).toString());\n\t\t\t\t\tstockInfo.add(i, parse.get(key).toString());\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(stockKeyValue.get(\"amount\"));\n\n\t\t\t\tSystem.out.println(stockKeyValue.toString());\n\n\t\t\t});\n\t\t\tArrayList<PortfolioIndex> stocks = new ArrayList<PortfolioIndex>();\n\t\t\tPortfolioIndex index;\n\t\t\tfor(int i = 0; i<stockInfo.size()-1;i+=2){\n\t\t\t\tindex = new PortfolioIndex(stockInfo.get(i+1).toString(), Integer.parseInt(stockInfo.get(i)));\n\t\t\t\tstocks.add(index);\n\t\t\t}\n\n\t\t\tboolean exists = false;\n\t\t\tint positionIndex = -1;\n\t\t\tint counter = 0;\n\t\t\tfor(PortfolioIndex indexes: stocks){\n\t\t\t\tif(indexes.getTicker().equalsIgnoreCase(stock)){\n\t\t\t\t\texists=true;\n\t\t\t\t\tpositionIndex = counter;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t\tSystem.out.println(\"OK TILL NOW\");\n\t\t\tSystem.out.println(\"STOCK:\"+stock);\n\t\t\tString stockURL = \"http://localhost:9090/price/\"+stock;\n\t\t\tdouble responsePrice = Double.parseDouble(this.sendGet(stockURL));\n\t\t\tSystem.out.println(\"RESPONSE PRICE:\" + responsePrice);\n\t\t\tif(responsePrice == 0.0){\n\t\t\t\tSystem.out.println(\"WHY?\");\n\t\t\t\treturn \"Stock not found please try again later\";\n\t\t\t}else{\n\t\t\t\tif(user.getFunds()-(responsePrice*shares) < 0.0){\n\t\t\t\t\tSystem.out.println(\"ALSO WHY?\");\n\t\t\t\t\treturn \"Invalid funds for transaction\";\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"price not 0\");\n\t\t\t\t\tuser.removeFunds((responsePrice*shares));\n\t\t\t\t\tif(positionIndex != -1){\n\t\t\t\t\t\tSystem.out.println(\"counter found\");\n\t\t\t\t\t\t//Stock was in portfolio need to save new user with new portfolio\n\t\t\t\t\t\tSystem.out.println(positionIndex);\n\t\t\t\t\t\tSystem.out.println(stocks);\n\t\t\t\t\t\tstocks.get(positionIndex).setValue(stocks.get(positionIndex).getValue()+shares);\n\t\t\t\t\t\tSystem.out.println(\"VALUE:\");\n\t\t\t\t\t\tSystem.out.println(stocks.get(positionIndex).getValue()+\" \"+stocks.get(positionIndex).getTicker());\n\t\t\t\t\t\tString newPortfolio = \"\";\n\t\t\t\t\t\tfor(int i=0; i<stocks.size(); i++){\n\t\t\t\t\t\t\tif(i != stocks.size()-1){\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex()+\",\";\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.print(\"New Portfolio:\");\n\t\t\t\t\t\t\tSystem.out.println(newPortfolio);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//System.out.println(stocks.get(counter).getValue()+\" \"+stocks.get(counter+1).getValue());\n\t\t\t\t\t\tuser.setPortfolio(newPortfolio);\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tPortfolioIndex portIndex = new PortfolioIndex(stock,shares);\n\t\t\t\t\t\tuser.addCustomPortfolioIndexes(portIndex.returnIndex());\n\t\t\t\t\t\tSystem.out.println(\"WE HIT\");\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tuserService.saveNewUser(user);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//System.out.println(user.get);\n\t\t\treturn \"Purchase successful heres your new portfolio:\\n\"+user.getPortfolio();\n\t\t}catch(Exception e){\n\t\t\treturn \"Exception found!\";\n\t\t}\n\t}",
"private static ArrayList<Integer> getkitchenStockQuantity(String kitchenName, ArrayList<OrderItemDetailsBean> orderItemDetailList){\n\t\tArrayList<Integer> stockInKitchen = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tString sql= \"select category_stock from fapp_kitchen_stock \"\n\t\t\t\t\t+\" where kitchen_cuisine_id = ?\"\n\t\t\t\t\t+\" and kitchen_category_id = ?\"\n\t\t\t\t\t+\" and kitchen_id = (SELECT kitchen_id from fapp_kitchen where kitchen_name = ?) \";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tfor(OrderItemDetailsBean items : orderItemDetailList){\n\t\t\t\t\tpreparedStatement.setInt(1, items.cuisineId);\n\t\t\t\t\tpreparedStatement.setInt(2, items.categoryId);\n\t\t\t\t\tpreparedStatement.setString(3, kitchenName);\n\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\tif (resultSet.next()) {\n\t\t\t\t\t\tstockInKitchen.add(resultSet.getInt(\"category_stock\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(\"ERROR DUE TO:\"+e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tif(connection != null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\n\t\t//System.out.println(\"Kitchen Stock list::\"+stockInKitchen);\n\t\treturn stockInKitchen;\n\t}",
"public void addStock(Product p, int n) {\nif (p.id < 0) return;\nif (n < 1) return;\n\nfor (int i = 0; i < productCatalog.size(); i++) {\nProductStockPair pair = productCatalog.get(i);\nif (pair.product.id == p.id) {\nproductCatalog.set(i, new ProductStockPair(p, pair.stock + n));\nreturn;\n}\n}\nproductCatalog.add(new ProductStockPair(p, n));\n}",
"public Response doStockQuery(JSONArray stockArray){\n\n\t\tString frontUrl = \"http://query.yahooapis.com/v1/public/yql?q=\";\n\t\tString endUrl = \"&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys\";\n\n\t\tString query = \"select * from yahoo.finance.quotes where symbol in (\";\n\n\t\t//Parse symbols to (\"YHOO\",\"AAPL\",\"GOOG\",\"MSFT\") form\n\t\tfor(int a = 0; a < stockArray.length(); a++){\n\n\t\t\tif(a == stockArray.length()-1){\n\t\t\t\tquery = query + \"\\\"\"+stockArray.getJSONObject(a).getString(\"symbol\")+\"\\\") \";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tquery = query + \"\\\"\"+stockArray.getJSONObject(a).getString(\"symbol\")+\"\\\",\";\n\t\t\t}\n\t\t}\n\n\t\tURI uri = UriBuilder.fromUri(frontUrl)\n\t\t\t\t.replaceQuery(\"q=\"+query+endUrl)\n\t\t\t\t.build();\n\n\n\t\tClient client = ClientBuilder.newClient();\n\t\tWebTarget webTarget = client.target(uri);\n\n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON_TYPE);\n\t\tResponse response = invocationBuilder.get();\n\n\t\tresponseObject = new JSONObject(response.readEntity(String.class));\n\n\t\tanalyzeStocks(responseObject.getJSONObject(\"query\").getJSONObject(\"results\").getJSONArray(\"quote\"));\n\n\t\t\n\t\treturn response;\n\n\t}",
"public int getPrice(Stock stock)\r\n\t{\r\n\t\tfor(Share share: this.prices)\r\n\t\t{\r\n\t\t\tif(share.getStock().equals(stock))\r\n\t\t\t{\r\n\t\t\t\treturn share.getShares();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"protected static int[] composeRange(int... pairs) {\n if(pairs.length % 2 != 0)\n throw new IllegalArgumentException(\"Pairs has to be a multiple of 2!\");\n\n List<Integer> nums = new ArrayList<>();\n\n for(int start = 0, end = 1; end < pairs.length; start+=2, end+=2) {\n int[] semiRange = range(pairs[start], pairs[end]);\n for(Integer i : semiRange)\n nums.add(i); //potencjalna optymalizacja: dodac caly array do listy\n }\n\n //potencjalna optymalizacja: zwrocic bezposrednio z listy\n int[] finalRange = new int[nums.size()];\n for(int id = 0; id < nums.size(); id++)\n finalRange[id] = nums.get(id);\n\n return finalRange;\n }",
"private int[] getLowestPricesInTerm(int[] prices){\n int lowest = Integer.MAX_VALUE;\n int index = -1;\n for(int i=0;i<prices.length;i++){\n if(prices[i]<lowest){\n lowest = prices[i];\n index = i;\n }\n }\n return new int[]{lowest,index};\n }",
"public int maxProfitII(int[] prices) {\n if (prices == null || prices.length == 0) return 0;\n int profit = 0;\n int buyInPrice = prices[0];\n int sellPrice = prices[0];\n for (int i : prices) {\n if (i > sellPrice) {\n profit += i - sellPrice;\n buyInPrice = i;\n sellPrice = i;\n }\n if (i < buyInPrice) {\n buyInPrice = i;\n sellPrice = i;\n }\n }\n return profit;\n }",
"public static void main(String args[] ) throws Exception {\n int[] stockPricesYesterday = new int[] {10, 7, 5, 8, 11, 9};\n //{10, 6, 18, 7, 5, 8, 11, 9}\n System.out.println(findMaxProfit(stockPricesYesterday));\n\n }",
"private static int[] getPairUsingHasing(int[] arr, int target) {\n Set<Integer> hashSet = new HashSet<>();\n int[] result = new int[2];\n for(int ele : arr) {\n if(hashSet.contains(target-ele)) {\n result[0] = ele;\n result[1] = target - ele;\n } else hashSet.add(ele);\n\n }\n return result;\n }",
"private int[] getHighestPricesInTerm(int[] prices){\n int highest = -1;\n int index = -1;\n for(int i=0;i<prices.length;i++){\n if(prices[i]>highest){\n highest = prices[i];\n index = i;\n }\n }\n return new int[]{highest,index};\n }",
"public List<ProductWithStockItemTO> getProductsWithLowStock(long storeID);",
"public List<Interval> findMaximumProfit(int[] prices){\n\n if(prices == null || prices.length ==0){\n return Collections.EMPTY_LIST;\n }\n int i=0;\n int n = prices.length;\n ArrayList<Interval> solutions = new ArrayList<>();\n while(i<n-1){\n while(i<n-1 && prices[i]>=prices[i+1]){\n i++;\n }\n if(i== n-1){\n return Collections.EMPTY_LIST;\n }\n Interval interval = new Interval();\n interval.buy = i;\n i++;\n while(i<=n-1 && prices[i]>=prices[i-1]){\n i++;\n }\n interval.sell = i-1;\n solutions.add(interval);\n }\n return solutions;\n }",
"public int[] computeHandPositions(int[] cardIdxsToDeal, int playerIdx, Round round) {\r\n\t\t\tif (this.decisionType == DecisionType.SCANNER) {\r\n\t\t\t\tif (round.getPrintToSystemOut()) {\r\n\t\t\t\t\tSystem.out.println(\" Play cards, one number per card dealt. 0 = top hand, 1 = middle hand, 2 = bottom hand, 3 = discard card. Example: 1 2 2\");\r\n\t\t\t\t}\r\n\t\t\t\tassert(this.scanner != null);\r\n\t\t\t\tint[] handPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\tint handPositionsIdx = 0;\r\n\t\t\t\twhile (handPositionsIdx < cardIdxsToDeal.length && this.scanner.hasNextInt()) {\r\n\t\t\t\t\tint handPositionToPlay = this.scanner.nextInt();\r\n\t\t\t\t\tif (handPositionToPlay == TOP) {\r\n\t\t\t\t\t\thandPositions[handPositionsIdx] = handPositionToPlay;\r\n\t\t\t\t\t\thandPositionsIdx++;\r\n\t\t\t\t\t} else if (handPositionToPlay == MIDDLE) {\r\n\t\t\t\t\t\thandPositions[handPositionsIdx] = handPositionToPlay;\r\n\t\t\t\t\t\thandPositionsIdx++;\r\n\t\t\t\t\t} else if (handPositionToPlay == BOTTOM) {\r\n\t\t\t\t\t\thandPositions[handPositionsIdx] = handPositionToPlay;\r\n\t\t\t\t\t\thandPositionsIdx++;\r\n\t\t\t\t\t} else if (handPositionToPlay == DISCARD) {\r\n\t\t\t\t\t\thandPositions[handPositionsIdx] = DISCARD;\r\n\t\t\t\t\t\thandPositionsIdx++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (round.getPrintToSystemOut()) {\r\n\t\t\t\t\t\t\tSystem.out.println(\" You can only choose between hand positions 0, 1, or 2, or discard with 3! You picked \\\"\" + handPositionToPlay + \"\\\"\");\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\treturn handPositions;\r\n\t\t\t} else if (this.decisionType == DecisionType.RANDOM) {\r\n\t\t\t\tint[] handPositions = getRandomHandPositions(cardIdxsToDeal, playerIdx, round);\r\n\t\t\t\tif (round.getPrintToSystemOut() && round.getDebugPrintToSystemOut()) {\r\n\t\t\t\t\tSystem.out.println(\" Player \" + this.id + \" (\" + this.decisionType.toString() + \") hand positions: \" + Arrays.toString(handPositions));\r\n\t\t\t\t}\r\n\t\t\t\treturn handPositions;\r\n\t\t\t} else if (this.decisionType == DecisionType.MONTE_CARLO_10000) {\r\n\t\t\t\tint numSamples = this.decisionType.getNumMonteCarloSamples();\r\n\t\t\t\tMap<Integer, Double> handPositionsHash2TotalHandPositionsScore = new HashMap<Integer, Double>();\r\n\t\t\t\tMap<Integer, Integer> handPositionsHash2Count = new HashMap<Integer, Integer>();\r\n\t\t\t\t\r\n\t\t\t\tint[] currHandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\twhile (nextPossibleHandPosition(currHandPositions, playerIdx, round)) {\r\n\t\t\t\t\tif (!isLegalHandPosition(currHandPositions, playerIdx, round, false)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfor (int i = 0; i < numSamples; i++) {\r\n\t\t\t\t\t\tint numPlayers = round.getPlayers().length;\r\n\t\t\t\t\t\tPlayer[] randomPlayers = new Player[numPlayers];\r\n\t\t\t\t\t\tfor (int j = 0; j < numPlayers; j++) {\r\n\t\t\t\t\t\t\tPlayer player = round.getPlayers()[j];\r\n\t\t\t\t\t\t\tPlayer clonedPlayer = new Player(player.getId(), DecisionType.RANDOM, 0, player.isInFantasyLand());\r\n\t\t\t\t\t\t\trandomPlayers[j] = clonedPlayer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tRound clonedRound = new Round(round, randomPlayers, false, false, true);\r\n\r\n\t\t\t\t\t\t// Finish the current hand\r\n\t\t\t\t\t\tclonedRound.playCardsForPlayer(currHandPositions, cardIdxsToDeal, playerIdx);\r\n\t\t\t\t\t\tif (clonedRound.getNumTurn() == 0) {\r\n\t\t\t\t\t\t\tclonedRound.startRound(playerIdx + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tclonedRound.nextTurn(playerIdx + 1);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Finish the rest of the round\r\n\t\t\t\t\t\twhile (!clonedRound.isFinished()) {\r\n\t\t\t\t\t\t\tclonedRound.nextTurn();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tclonedRound.endRound();\r\n\r\n\t\t\t\t\t\tInteger minScore = null;\r\n\t\t\t\t\t\tfor (Player player : randomPlayers) {\r\n\t\t\t\t\t\t\tif (minScore == null || player.getScore() < minScore) {\r\n\t\t\t\t\t\t\t\tminScore = player.getScore();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tassert(minScore != null);\r\n\t\t\t\t\t\tint totalScoreNormalized = 0;\r\n\t\t\t\t\t\tfor (Player player : randomPlayers) {\r\n\t\t\t\t\t\t\ttotalScoreNormalized += (player.getScore() - minScore);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdouble handPositionsScore;\r\n\t\t\t\t\t\tif (totalScoreNormalized == 0) {\r\n\t\t\t\t\t\t\thandPositionsScore = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\thandPositionsScore = (randomPlayers[playerIdx].getScore() - minScore) / ((double)totalScoreNormalized);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tint handPositionsHash = 0;\r\n\t\t\t\t\t\tfor (int j = 0; j < currHandPositions.length; j++) {\r\n\t\t\t\t\t\t\thandPositionsHash = 10 * handPositionsHash + currHandPositions[j];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tDouble oldScore = handPositionsHash2TotalHandPositionsScore.get(handPositionsHash);\r\n\t\t\t\t\t\tif (oldScore == null) {\r\n\t\t\t\t\t\t\toldScore = 0d;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thandPositionsHash2TotalHandPositionsScore.put(handPositionsHash, oldScore + handPositionsScore);\r\n\r\n\t\t\t\t\t\tInteger oldCount = handPositionsHash2Count.get(handPositionsHash);\r\n\t\t\t\t\t\tif (oldCount == null) {\r\n\t\t\t\t\t\t\toldCount = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thandPositionsHash2Count.put(handPositionsHash, oldCount + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tassert(handPositionsHash2TotalHandPositionsScore.size() > 0);\r\n\t\t\t\tint[] bestHandPositions = null;\r\n\t\t\t\tDouble bestScore = null;\r\n\t\t\t\tint bestHandPositionsCount = -1;\r\n\t\t\t\tfor (Map.Entry<Integer, Double> entry : handPositionsHash2TotalHandPositionsScore.entrySet()) {\r\n\t\t\t\t\tInteger handPositionsHash = entry.getKey();\r\n\t\t\t\t\tdouble totalScore = entry.getValue();\r\n\t\t\t\t\tint count = handPositionsHash2Count.get(handPositionsHash);\r\n\t\t\t\t\tdouble score = totalScore / count;\r\n\t\t\t\t\t\r\n\t\t\t\t\tint[] handPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\tfor (int i = handPositions.length - 1; i >= 0; i --) { // reverse the hash\r\n\t\t\t\t\t\thandPositions[i] = handPositionsHash % 10;\r\n\t\t\t\t\t\thandPositionsHash /= 10;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tassert(handPositionsHash == 0);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (bestScore == null || score > bestScore) {\r\n\t\t\t\t\t\tbestScore = score;\r\n\t\t\t\t\t\tbestHandPositions = handPositions;\r\n\t\t\t\t\t\tbestHandPositionsCount = count;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tassert(bestHandPositions != null);\r\n\r\n\t\t\t\tif (round.getPrintToSystemOut() && round.getDebugPrintToSystemOut()) {\r\n\t\t\t\t\tSystem.out.println(\" Player \" + this.id + \" (\" + this.decisionType.toString() + \") hand positions: \" + Arrays.toString(bestHandPositions) + \" (bestScore=\" + bestScore + \", count=\" + bestHandPositionsCount + \")\");\r\n\t\t\t\t}\r\n\t\t\t\treturn bestHandPositions;\r\n\t\t\t} else if (this.decisionType == DecisionType.HEURISTIC_MONTE_CARLO_10000) {\r\n\t\t\t\tint numSamples = this.decisionType.getNumMonteCarloSamples();\r\n\t\t\t\tif (round.getNumTurn() == 0) { // Use heuristics on the first turn. monte carlo itself doesnt do very well even with 100,000 samples, and its very slow\r\n\t\t\t\t\tint[] handPositions = null;\r\n\t\t\t\t\tint[][] dealtCards = new int[cardIdxsToDeal.length][];\r\n\t\t\t\t\tfor (int i = 0; i < cardIdxsToDeal.length; i++) {\r\n\t\t\t\t\t\tdealtCards[i] = round.getFullDeck()[cardIdxsToDeal[i]];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (round.getPlayers()[playerIdx].isInFantasyLand()) {\r\n\t\t\t\t\t\tint[] bestHandPositions = null;\r\n\t\t\t\t\t\tInteger bestHandPositionsScore = null;\r\n\t\t\t\t\t\tint[] currHandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\tcurrHandPositions[currHandPositions.length - 1] = -1; // going to increment in the while check loop, so dont skip the first hand positions\r\n\t\t\t\t\t\twhile (nextPossibleHandPosition(currHandPositions, playerIdx, round)) {\r\n\t\t\t\t\t\t\tif (!isLegalHandPosition(currHandPositions, playerIdx, round, false)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tHand topHand = new Hand();\r\n\t\t\t\t\t\t\tHand middleHand = new Hand();\r\n\t\t\t\t\t\t\tHand bottomHand = new Hand();\r\n\t\t\t\t\t\t\tfor (int i = 0; i < currHandPositions.length; i++) {\r\n\t\t\t\t\t\t\t\tint handPositionToPlay = currHandPositions[i];\r\n\t\t\t\t\t\t\t\tif (handPositionToPlay == TOP) {\r\n\t\t\t\t\t\t\t\t\ttopHand.addCard(dealtCards[i]);\r\n\t\t\t\t\t\t\t\t} else if (handPositionToPlay == MIDDLE) {\r\n\t\t\t\t\t\t\t\t\tmiddleHand.addCard(dealtCards[i]);\r\n\t\t\t\t\t\t\t\t} else if (handPositionToPlay == BOTTOM) {\r\n\t\t\t\t\t\t\t\t\tbottomHand.addCard(dealtCards[i]);\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t} else if (handPositionToPlay == DISCARD) {\r\n\t\t\t\t\t\t\t\t\t// Don't add it to any hand\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tif (round.getPrintToSystemOut()) {\r\n\t\t\t\t\t\t\t\t\t\tLOGGER.log(Level.WARNING, \"Unknown hand position to play \\\"\" + handPositionToPlay + \"\\\". Don't know what to do -- skipping loop and hoping nothing breaks.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcontinue;\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\tint totalBonusScore;\r\n\t\t\t\t\t\t\tif (isFouled(topHand, middleHand, bottomHand)) {\r\n\t\t\t\t\t\t\t\ttotalBonusScore = -1; // a non-fouled bonus score of 0 should take priority over a fouled hand\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\ttotalBonusScore = getBonusScore(topHand, TOP) + getBonusScore(middleHand, MIDDLE) + getBonusScore(bottomHand, BOTTOM);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (bestHandPositionsScore == null || totalBonusScore > bestHandPositionsScore) {\r\n\t\t\t\t\t\t\t\tbestHandPositions = new int[currHandPositions.length];\r\n\t\t\t\t\t\t\t\tSystem.arraycopy(currHandPositions, 0, bestHandPositions, 0, currHandPositions.length);\r\n\t\t\t\t\t\t\t\tbestHandPositionsScore = totalBonusScore;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thandPositions = bestHandPositions;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tassert(dealtCards.length <= 5);\r\n\t\t\t\t\t\tint[] suit2Count = new int[4];\r\n\t\t\t\t\t\tfor (int[] card : dealtCards) {\r\n\t\t\t\t\t\t\tsuit2Count[card[Poker.SUIT]]++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tInteger suitOfMaxSameSuitCards = null;\r\n\t\t\t\t\t\tInteger maxSameSuitCards = null;\r\n\t\t\t\t\t\tfor (int i = 0; i < suit2Count.length; i++) {\r\n\t\t\t\t\t\t\tint count = suit2Count[i];\r\n\t\t\t\t\t\t\tif (maxSameSuitCards == null || count > maxSameSuitCards) {\r\n\t\t\t\t\t\t\t\tmaxSameSuitCards = count;\r\n\t\t\t\t\t\t\t\tsuitOfMaxSameSuitCards = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tassert(suitOfMaxSameSuitCards != null && maxSameSuitCards != null);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tHand hand = new Hand();\r\n\t\t\t\t\t\tfor (int[] card : dealtCards) {\r\n\t\t\t\t\t\t\thand.addCard(card);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tInteger maxConsecutiveCardLength = null;\r\n\t\t\t\t\t\tInteger startingIdxOfMaxConsecutiveCardLength = null;\r\n\t\t\t\t\t\tInteger currConsecutiveCardLength = null;\r\n\t\t\t\t\t\tInteger currStartingIdxOfConsecutiveCards = null;\r\n\t\t\t\t\t\tfor (int i = 0; i < hand.getNumCards() - 1; i++) {\r\n\t\t\t\t\t\t\tif (hand.getCardValue(i) - hand.getCardValue(i + 1) == 1) {\r\n\t\t\t\t\t\t\t\tif (currConsecutiveCardLength == null) {\r\n\t\t\t\t\t\t\t\t\tcurrConsecutiveCardLength = 1;\r\n\t\t\t\t\t\t\t\t\tcurrStartingIdxOfConsecutiveCards = i;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tcurrConsecutiveCardLength++;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tif (currConsecutiveCardLength != null) {\r\n\t\t\t\t\t\t\t\t\tif (maxConsecutiveCardLength == null ||\r\n\t\t\t\t\t\t\t\t\t\t\tcurrConsecutiveCardLength > maxConsecutiveCardLength) {\r\n\t\t\t\t\t\t\t\t\t\tmaxConsecutiveCardLength = currConsecutiveCardLength;\r\n\t\t\t\t\t\t\t\t\t\tstartingIdxOfMaxConsecutiveCardLength = currStartingIdxOfConsecutiveCards;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcurrConsecutiveCardLength = null;\r\n\t\t\t\t\t\t\t\t\tcurrStartingIdxOfConsecutiveCards = null;\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\tif (currConsecutiveCardLength != null) {\r\n\t\t\t\t\t\t\tif (maxConsecutiveCardLength == null ||\r\n\t\t\t\t\t\t\t\t\tcurrConsecutiveCardLength > maxConsecutiveCardLength) {\r\n\t\t\t\t\t\t\t\tmaxConsecutiveCardLength = currConsecutiveCardLength;\r\n\t\t\t\t\t\t\t\tstartingIdxOfMaxConsecutiveCardLength = currStartingIdxOfConsecutiveCards;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcurrConsecutiveCardLength = null;\r\n\t\t\t\t\t\t\tcurrStartingIdxOfConsecutiveCards = null;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmaxConsecutiveCardLength = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (hand.getComboType() == ComboType.ROYAL_FLUSH ||\r\n\t\t\t\t\t\t\t\thand.getComboType() == ComboType.STRAIGHT_FLUSH) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < handPositions.length; i++) {\r\n\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (hand.getComboType() == ComboType.FOUR_OF_A_KIND) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\tif (value == hand.getComboCardValue(0)) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tif (value < WEAK_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM; // weak cards at the bottom\r\n\t\t\t\t\t\t\t\t\t} else if (value < MEDIUM_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (hand.getComboType() == ComboType.FULL_HOUSE ||\r\n\t\t\t\t\t\t\t\thand.getComboType() == ComboType.FLUSH ||\r\n\t\t\t\t\t\t\t\thand.getComboType() == ComboType.STRAIGHT) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < handPositions.length; i++) {\r\n\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (hand.getComboType() == ComboType.TWO_PAIRS) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\tif (value == hand.getComboCardValue(0) ||\r\n\t\t\t\t\t\t\t\t\t\tvalue == hand.getComboCardValue(hand.getNumComboCards() - 1)) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tif (value < MEDIUM_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (hand.getComboType() == ComboType.THREE_OF_A_KIND) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\tif (value == hand.getComboCardValue(0)) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tif (value < MEDIUM_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (maxSameSuitCards == 4) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tint suit = dealtCards[i][Poker.SUIT];\r\n\t\t\t\t\t\t\t\tif (suit == suitOfMaxSameSuitCards) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\t\tif (value < MEDIUM_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (maxConsecutiveCardLength == 4) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tif (i >= startingIdxOfMaxConsecutiveCardLength &&\r\n\t\t\t\t\t\t\t\t\t\ti < startingIdxOfMaxConsecutiveCardLength + maxConsecutiveCardLength) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\t\tif (value < MEDIUM_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (maxSameSuitCards == 3) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tint suit = dealtCards[i][Poker.SUIT];\r\n\t\t\t\t\t\t\t\tif (suit == suitOfMaxSameSuitCards) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\t\tif (value < MEDIUM_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (maxConsecutiveCardLength == 3) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tif (i >= startingIdxOfMaxConsecutiveCardLength &&\r\n\t\t\t\t\t\t\t\t\t\ti < startingIdxOfMaxConsecutiveCardLength + maxConsecutiveCardLength) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\t\tif (value < MEDIUM_VALUE) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (hand.getComboType() == ComboType.PAIR) {\r\n\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\tint numBottomCards = 0;\r\n\t\t\t\t\t\t\tint numTopCards = 0;\r\n\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\tif (value == hand.getComboCardValue(0)) {\r\n\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t\tnumBottomCards++;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tif (value < WEAK_VALUE && numBottomCards < 3) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t\t\tnumBottomCards++;\r\n\t\t\t\t\t\t\t\t\t} else if (value < MEDIUM_VALUE && numTopCards < 2) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t\tnumTopCards++;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else {\r\n\t\t\t\t\t\t\tint numSuitsOfTwo = 0;\r\n\t\t\t\t\t\t\tfor (int count : suit2Count) {\r\n\t\t\t\t\t\t\t\tif (count >= 2) {\r\n\t\t\t\t\t\t\t\t\tnumSuitsOfTwo++;\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 (numSuitsOfTwo == 1) {\r\n\t\t\t\t\t\t\t\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\t\tint numTopCards = 0;\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\t\tint suit = dealtCards[i][Poker.SUIT];\r\n\t\t\t\t\t\t\t\t\tif (suit == suitOfMaxSameSuitCards) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tint value = dealtCards[i][Poker.VALUE];\r\n\t\t\t\t\t\t\t\t\t\tif (value < MEDIUM_VALUE && numTopCards < 2) {\r\n\t\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP; // medium cards at the top, don't want it to be too strong for higher chance of fouling\r\n\t\t\t\t\t\t\t\t\t\t\tnumTopCards++;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\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} else if (numSuitsOfTwo == 2) {\r\n\t\t\t\t\t\t\t\tInteger highestSuitedCardValue = null;\r\n\t\t\t\t\t\t\t\tInteger suitOfHighestSuitedCardValue = null;\r\n\t\t\t\t\t\t\t\tfor (int[] card: dealtCards) {\r\n\t\t\t\t\t\t\t\t\tint suit = card[Poker.SUIT];\r\n\t\t\t\t\t\t\t\t\tif (suit2Count[suit] == 2) {\r\n\t\t\t\t\t\t\t\t\t\tint value = card[Poker.VALUE];\r\n\t\t\t\t\t\t\t\t\t\tif (highestSuitedCardValue == null || value > highestSuitedCardValue) {\r\n\t\t\t\t\t\t\t\t\t\t\thighestSuitedCardValue = value;\r\n\t\t\t\t\t\t\t\t\t\t\tsuitOfHighestSuitedCardValue = suit;\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\tassert(highestSuitedCardValue != null);\r\n\t\t\t\t\t\t\t\tassert(suitOfHighestSuitedCardValue != null);\r\n\t\t\t\t\t\t\t\tInteger suitOfLowerSuitedCardValue = null;\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < suit2Count.length; i++) {\r\n\t\t\t\t\t\t\t\t\tif (i == suitOfHighestSuitedCardValue) {\r\n\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (suit2Count[i] == 2) {\r\n\t\t\t\t\t\t\t\t\t\tsuitOfLowerSuitedCardValue = i;\r\n\t\t\t\t\t\t\t\t\t\tbreak;\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\thandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < dealtCards.length; i++) {\r\n\t\t\t\t\t\t\t\t\tint suit = dealtCards[i][Poker.SUIT];\r\n\t\t\t\t\t\t\t\t\tif (suit == suitOfHighestSuitedCardValue) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = BOTTOM;\r\n\t\t\t\t\t\t\t\t\t} else if (suit == suitOfLowerSuitedCardValue) {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = MIDDLE;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandPositions[i] = TOP;\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}\r\n\r\n\t\t\t\t\tassert(handPositions != null);\r\n\t\t\t\t\tif (round.getPrintToSystemOut() && round.getDebugPrintToSystemOut()) {\r\n\t\t\t\t\t\tSystem.out.println(\" Player \" + this.id + \" (\" + this.decisionType.toString() + \") hand positions: \" + Arrays.toString(handPositions) + \" (HEURISTIC)\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn handPositions;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tMap<Integer, Double> handPositionsHash2TotalHandPositionsScore = new HashMap<Integer, Double>();\r\n\t\t\t\t\tMap<Integer, Integer> handPositionsHash2Count = new HashMap<Integer, Integer>();\r\n\r\n\t\t\t\t\tint[] currHandPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\tcurrHandPositions[currHandPositions.length - 1] = -1; // going to increment in the while check loop, so dont skip the first hand positions\r\n\t\t\t\t\twhile (nextPossibleHandPosition(currHandPositions, playerIdx, round)) {\r\n\t\t\t\t\t\tif (!isLegalHandPosition(currHandPositions, playerIdx, round, false)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < numSamples; i++) {\r\n\t\t\t\t\t\t\tint numPlayers = round.getPlayers().length;\r\n\t\t\t\t\t\t\tPlayer[] randomPlayers = new Player[numPlayers];\r\n\t\t\t\t\t\t\tfor (int j = 0; j < numPlayers; j++) {\r\n\t\t\t\t\t\t\t\tPlayer player = round.getPlayers()[j];\r\n\t\t\t\t\t\t\t\tPlayer clonedPlayer = new Player(player.getId(), DecisionType.RANDOM, 0, player.isInFantasyLand());\r\n\t\t\t\t\t\t\t\trandomPlayers[j] = clonedPlayer;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tRound clonedRound = new Round(round, randomPlayers, false, false, true);\r\n\r\n\t\t\t\t\t\t\t// Finish the current hand\r\n\t\t\t\t\t\t\tclonedRound.playCardsForPlayer(currHandPositions, cardIdxsToDeal, playerIdx);\r\n\t\t\t\t\t\t\tif (clonedRound.getNumTurn() == 0) {\r\n\t\t\t\t\t\t\t\tclonedRound.startRound(playerIdx + 1);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tclonedRound.nextTurn(playerIdx + 1);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// Finish the rest of the round\r\n\t\t\t\t\t\t\twhile (!clonedRound.isFinished()) {\r\n\t\t\t\t\t\t\t\tclonedRound.nextTurn();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tclonedRound.endRound();\r\n\r\n\t\t\t\t\t\t\tInteger minScore = null;\r\n\t\t\t\t\t\t\tfor (Player player : randomPlayers) {\r\n\t\t\t\t\t\t\t\tif (minScore == null || player.getScore() < minScore) {\r\n\t\t\t\t\t\t\t\t\tminScore = player.getScore();\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\tassert(minScore != null);\r\n\t\t\t\t\t\t\tint totalScoreNormalized = 0;\r\n\t\t\t\t\t\t\tfor (Player player : randomPlayers) {\r\n\t\t\t\t\t\t\t\ttotalScoreNormalized += (player.getScore() - minScore);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tdouble handPositionsScore;\r\n\t\t\t\t\t\t\tif (totalScoreNormalized == 0) {\r\n\t\t\t\t\t\t\t\thandPositionsScore = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\thandPositionsScore = (randomPlayers[playerIdx].getScore() - minScore) / ((double)totalScoreNormalized);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tint handPositionsHash = 0;\r\n\t\t\t\t\t\t\tfor (int j = 0; j < currHandPositions.length; j++) {\r\n\t\t\t\t\t\t\t\thandPositionsHash = 10 * handPositionsHash + currHandPositions[j];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tDouble oldScore = handPositionsHash2TotalHandPositionsScore.get(handPositionsHash);\r\n\t\t\t\t\t\t\tif (oldScore == null) {\r\n\t\t\t\t\t\t\t\toldScore = 0d;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thandPositionsHash2TotalHandPositionsScore.put(handPositionsHash, oldScore + handPositionsScore);\r\n\r\n\t\t\t\t\t\t\tInteger oldCount = handPositionsHash2Count.get(handPositionsHash);\r\n\t\t\t\t\t\t\tif (oldCount == null) {\r\n\t\t\t\t\t\t\t\toldCount = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thandPositionsHash2Count.put(handPositionsHash, oldCount + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tassert(handPositionsHash2TotalHandPositionsScore.size() > 0);\r\n\t\t\t\t\tint[] bestHandPositions = null;\r\n\t\t\t\t\tDouble bestScore = null;\r\n\t\t\t\t\tint bestHandPositionsCount = -1;\r\n\t\t\t\t\tfor (Map.Entry<Integer, Double> entry : handPositionsHash2TotalHandPositionsScore.entrySet()) {\r\n\t\t\t\t\t\tInteger handPositionsHash = entry.getKey();\r\n\t\t\t\t\t\tdouble totalScore = entry.getValue();\r\n\t\t\t\t\t\tint count = handPositionsHash2Count.get(handPositionsHash);\r\n\t\t\t\t\t\tdouble score = totalScore / count;\r\n\r\n\t\t\t\t\t\tint[] handPositions = new int[cardIdxsToDeal.length];\r\n\t\t\t\t\t\tfor (int i = handPositions.length - 1; i >= 0; i --) { // reverse the hash\r\n\t\t\t\t\t\t\thandPositions[i] = handPositionsHash % 10;\r\n\t\t\t\t\t\t\thandPositionsHash /= 10;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tassert(handPositionsHash == 0);\r\n\r\n\t\t\t\t\t\tif (bestScore == null || score > bestScore) {\r\n\t\t\t\t\t\t\tbestScore = score;\r\n\t\t\t\t\t\t\tbestHandPositions = handPositions;\r\n\t\t\t\t\t\t\tbestHandPositionsCount = count;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tassert(bestHandPositions != null);\r\n\t\t\t\t\tif (round.getPrintToSystemOut() && round.getDebugPrintToSystemOut()) {\r\n\t\t\t\t\t\tSystem.out.println(\" Player \" + this.id + \" (\" + this.decisionType.toString() + \") hand positions: \" + Arrays.toString(bestHandPositions) + \" (bestScore=\" + bestScore + \", count=\" + bestHandPositionsCount + \")\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn bestHandPositions;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn null;\r\n\t\t\t} \r\n\t\t}",
"static void displayMinProfitableStock(ForeighStockHolding array[])\r\n\t{\n\t\tForeighStockHolding temp = array[0];\r\n\t\t\r\n\t\t//traversing the array to find the min profitable stock\r\n\t\tfor(int i=1; i<array.length; i++)\r\n\t\t{\r\n\t\t\tif((temp.valueInDollars()-temp.costInDollars()) > (array[i].valueInDollars()-array[i].costInDollars()))\r\n\t\t\t{\r\n\t\t\t\ttemp = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//printing the minimum profitable stock\r\n\t\tSystem.out.println(\"Minimum Profitable Stock :\");\r\n\t\tSystem.out.println(\"Company Name : \"+temp.companyName);\r\n\t\tSystem.out.println(\"Purchase Share Price : \"+temp.purchaseSharePrice);\r\n\t\tSystem.out.println(\"Current Share Price : \"+temp.currentSharePrice);\r\n\t\tSystem.out.println(\"Number of Shares : \"+temp.numberOfShares);\r\n\t\tSystem.out.println(\"Conversion Rate : \"+temp.conversionRate);\r\n\t\tSystem.out.println();\r\n\t}",
"public int getNumberOfDifferentBeanBagsInStock() {\n int counter = 0;\r\n // Define integer \"tracker\" and set the value to 0.\r\n int tracker;\r\n // Define new string array \"idArray\" with same length as \"stockList\".\r\n String[] idArray = new String[stockList.size()];\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n if (!((BeanBag) stockList.get(i)).isSold()) {\r\n // Set string \"ID\" to the id in the current \"stockList\" location\r\n String ID = ((BeanBag) stockList.get(i)).getID();\r\n // Set the \"tracker\" integer to 0.\r\n tracker = 0;\r\n // Again, Loop through every object in the \"stockList\" object array list.\r\n for (int j = 0; j < stockList.size(); j++) {\r\n // If the string \"ID\" matches the current position in the \"idArray\".\r\n if (ID.equals(idArray[j])) {\r\n // Increment the \"tracker\" integer by 1.\r\n tracker += 1;\r\n }\r\n }\r\n // If the \"tracker\" integer equals 0.\r\n if (tracker == 0) {\r\n // Loop through every object in the \"stockList\" object array list.\r\n // Set the element at position \"counter\" in \"idArray\" to the value of \"ID\".\r\n idArray[counter] = ID;\r\n // Increment the \"counter\" integer by 1.\r\n counter++;\r\n }\r\n }\r\n }\r\n // Return the value of the \"counter\" integer.\r\n return counter;\r\n }",
"public static void main(String[] args) {\n\t\t\t\tStockHolding STOCKS[] = new StockHolding[3];\r\n\t\t\t\t\r\n\t\t\t\tSTOCKS[0] = new StockHolding((float)2.30, (float)4.50, (int)40, \"Cr7 limited\");\r\n\t\t\t\tSTOCKS[1] = new StockHolding((float)12.19, (float)10.56, (int)90, \"L10 Pvt Limited\");\r\n\t\t\t\tSTOCKS[2] = new StockHolding((float)45.10, (float)49.51, (int)210, \"21LVA Ltd.\");\r\n\t\t\t\t\r\n\t\t\t\t//function to display in alphabetical order\r\n\t\t\t\tsort_asc_S(STOCKS);\r\n\t\t\t\t\r\n\t\t\t\t//array of ForeignStockHolding\r\n\t\t\t\tForeighStockHolding FR_STOCKS[] = new ForeighStockHolding[3];\r\n\t\t\t\t\r\n\t\t\t\tFR_STOCKS[0] = new ForeighStockHolding((float)1.30, (float)3.50, (int)30, \"Recron limited\", (float)0.94);\r\n\t\t\t\tFR_STOCKS[1] = new ForeighStockHolding((float)2.19, (float)2.56, (int)60, \"Utratech Pvt Limited\", (float)1.10);\r\n\t\t\t\tFR_STOCKS[2] = new ForeighStockHolding((float)5.10, (float)4.51, (int)10, \"Gulf Oil\", (float)1.25);\r\n\t\t\t\t\r\n\t\t\t\t//function to display in reverse alphabetical order\r\n\t\t\t\tsort_des_F(FR_STOCKS);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//modifying the application according to the user \r\n\t\t\t\t\r\n\t\t\t\t//taking no of stock from user\r\n\t\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Enter no of stocks(Do not enter more than 8 stocks) : \");\r\n\t\t\t\t\r\n\t\t\t\t//no of stock user want to access\r\n\t\t\t\tint n = input.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//declaring array of ForeignStockHolding as per user requirement \r\n\t\t\t\tForeighStockHolding STOCKS_F[] = new ForeighStockHolding[n];\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=0; i<n; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//to take the type of stock user want to enter\r\n\t\t\t\t\tint type_Stock;\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.print(\"Press enter\\n 1). For StockHolding \\n 2). For ForeignStockHolding \\n\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//taking the type of stock\r\n\t\t\t\t\ttype_Stock = input.nextInt();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//declaring the variable to take input for purchaseSharePrice, currentSharePrice, conversionRate\r\n\t\t\t\t\tfloat purchasePrice,currentPrice, conRate;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//declaring the variable to take input for numberOfShares\r\n\t\t\t\t\tint noOfShare;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//declaring the variable to take input for companyName\r\n\t\t\t\t\tString c_ame;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//taking input from user for each field specified in stock\r\n\t\t\t\t\tSystem.out.print(\"Enter the purchaseSharePrice for stock : \");\r\n\t\t\t\t\tpurchasePrice = input.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"Enter the currentSharePrice for stock : \");\r\n\t\t\t\t\tcurrentPrice = input.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"Enter the noOfShares for stock : \");\r\n\t\t\t\t\tnoOfShare = input.nextInt();\r\n\t\t\t\t\tSystem.out.print(\"Enter the companyName for stock : \");\r\n\t\t\t\t\tc_ame = input.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//if the stock is of type StockHolding then conversion rate is 1 else take input from user\r\n\t\t\t\t\tif(type_Stock == 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tconRate = 1;\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\tSystem.out.print(\"Enter the conversion Rate for foreign stock\");\r\n\t\t\t\t\t\tconRate = input.nextFloat();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//initialize the stock type as per user requirement\r\n\t\t\t\t\tSTOCKS_F[i] = new ForeighStockHolding(purchasePrice, currentPrice, noOfShare, c_ame, conRate);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//a variable of boolean type\r\n\t\t\t\tboolean value = true;\r\n\t\t\t\t\r\n\t\t\t\t//continue loop until user donot command to exit\r\n\t\t\t\twhile(value)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Enter your choice : \\n 1) To display stock information with the lowest value\\r\\n\" + \r\n\t\t\t\t\t\t\t\" 2) To display stock with the highest value\\r\\n\" + \r\n\t\t\t\t\t\t\t\" 3) To display the most profitable stock\\r\\n\" + \r\n\t\t\t\t\t\t\t\" 4) To display the least profitable stock\\r\\n\" + \r\n\t\t\t\t\t\t\t\" 5) To list all stocks sorted by company name (A-Z)\\r\\n\" + \r\n\t\t\t\t\t\t\t\" 6) To list all stocks sorted from the lowest value to the highest value\\r\\n\" + \r\n\t\t\t\t\t\t\t\" 7) To exit\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//variable to take choice of user\r\n\t\t\t\t\tint choice = input.nextInt();\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch(choice)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase 1: \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisplayMinValue(STOCKS_F);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisplayMaxValue(STOCKS_F);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisplayMaxProfitableStock(STOCKS_F);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisplayMinProfitableStock(STOCKS_F);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsort_asc_S(STOCKS_F);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcase 6:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisplayInSortedValueOrder(STOCKS_F);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcase 7:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvalue = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"EXITING THE SYSTEM\\n\\nSYSTEM EXIT STATUS : RETURNED\");\r\n\t\t\t\tinput.close();\r\n\t\t\t}",
"public int getremainingstock(String selection,String item) throws SQLException\n {\n // int stock_rate[]= new int [2];\n PreparedStatement remaining_stock = conn.prepareStatement(\"Select stock from purchases where Categroy=? and Item=? \");\n remaining_stock.setString(1, selection);\n remaining_stock.setString(2, item);\n ResultSet remaining_stock_rows = remaining_stock.executeQuery(); \n \n int sum=0,current=0;\n while(remaining_stock_rows.next()) \n {\n sum=Integer.parseInt(remaining_stock_rows.getString(1));\n \n \n }\n return sum;\n }",
"@Test\n public void testFindOrientedPairs() {\n System.out.println(\"findOrientedPairs\");\n \n CCGeneticDrift instance = new CCGeneticDrift();\n String input = \"6 3 1 6 5 -2 4\";\n List<Integer> numbers = instance.inputStringToIntegerList(input);\n String expResult = \"[1 -2, 3 -2]\";\n List result = instance.findOrientedPairs(numbers);\n assertEquals(result.toString(), expResult);\n assertEquals(result.size(), 2);\n }",
"private int[] funcGetRateDigits(int iCurrency, int iCurrency2) throws OException\r\n\t{\r\n\r\n//\t\tINCGeneralItau.print_msg(\"INFO\", \"**** funcGetRateDigits ****\");\r\n\t\t\r\n\t\t@SuppressWarnings(\"unused\")\r\n int iRetVal, iRateDigits = 0, iCcy1Digits = 0, iCcy2Digits = 0;\r\n\t\tTable tblInsNum = Util.NULL_TABLE;\r\n\r\n\t\t/* Array */\r\n\t\tint[] iRounding = new int[3];\r\n\r\n\t\ttblInsNum = Table.tableNew();\r\n\t\tString sQuery = \"Select ab.ins_num, ab.cflow_type, ab.reference, par.currency, par1.currency as currency2, par.nearby as rate_digits, \" +\r\n\t\t\t\t\t\"c.round as currency1_digits, c2.round as currency2_digits \" +\r\n\t\t\t\t\t\"From ab_tran ab \" +\r\n\t\t\t\t\t\"Left Join parameter par on ab.ins_num = par.ins_num \" +\r\n\t\t\t\t\t\"Left Join parameter par1 on ab.ins_num = par1.ins_num \" +\r\n\t\t\t\t\t\"Left Join header hea on ab.ins_num = hea.ins_num, \" +\r\n\t\t\t\t\t\"currency c, currency c2 \" +\r\n\t\t\t\t\t\"Where ab.tran_type = \" + TRAN_TYPE_ENUM.TRAN_TYPE_HOLDING.jvsValue() +\r\n\t\t\t\t\t\" And ab.tran_status = \" + TRAN_STATUS_ENUM.TRAN_STATUS_VALIDATED.jvsValue() +\r\n\t\t\t\t\t\" And ab.toolset = \" + TOOLSET_ENUM.FX_TOOLSET.jvsValue() +\r\n\t\t\t\t\t\" And par.param_seq_num = 0 And par1.param_seq_num = 1\" +\r\n\t\t\t\t\t\" And c.id_number = \" + iCurrency +\r\n\t\t\t\t\t\" And c2.id_number = \" + iCurrency2 +\r\n\t\t\t\t\t\" And ((par.currency = \" + iCurrency +\r\n\t\t\t\t\t\" And par1.currency = \" + iCurrency2 + \")\" +\r\n\t\t\t\t\t\" Or (par.currency = \" + iCurrency2 +\r\n \" And par1.currency = \" + iCurrency + \"))\" +\r\n\t\t\t\t\t\" And hea.portfolio_group_id > 0\";\r\n\r\n\t\tiRetVal = DBaseTable.execISql(tblInsNum, sQuery);\r\n\r\n//\t\tINCGeneralItau.print_msg(\"DEBUG\", \"(funcGetInsNum)\\n\" + sQuery);\r\n\r\n\t\tif (tblInsNum.getNumRows() > 0)\r\n\t\t{\r\n\t\t\tiRateDigits = tblInsNum.getInt(\"rate_digits\", 1);\r\n\t\t\tiCcy1Digits = tblInsNum.getInt(\"currency1_digits\", 1);\r\n\t\t\tiCcy2Digits = tblInsNum.getInt(\"currency2_digits\", 1);\r\n\r\n\t\t\tiRounding[0] = iRateDigits;\r\n\t\t\tiRounding[1] = iCcy1Digits;\r\n\t\t\tiRounding[2] = iCcy2Digits;\r\n\t\t}\r\n\t\ttblInsNum.destroy();\r\n\r\n\t\treturn iRounding;\r\n\t}",
"@Override\n\tpublic int getStock() {\n\t\treturn 2;\n\t}",
"private static ArrayList getStocksSpan(int[] a) {\n Stack<ValueIndex> stack = new Stack<>();\n ArrayList<Integer> list = new ArrayList();\n for(int i =0 ; i<a.length;i++){\n if(stack.isEmpty())list.add(-1);\n else if(stack.peek().value>a[i])list.add(i-1);\n else if(stack.peek().value<= a[i]){\n while(!stack.isEmpty() && stack.peek().value<=a[i])stack.pop();\n if(stack.isEmpty())list.add(-1);\n else list.add(stack.peek().index);\n }\n stack.push(new ValueIndex(a[i],i));\n }\n for(int i=0;i<list.size();i++){\n// System.out.print(list.get(i)+\"\\t\"); //[-1, 1, 2, -1, 4, -1, 6]\n if(list.get(i)!= -1)list.set(i,i-list.get(i));\n }\n return list;\n }",
"private static int maxProfit2(int[] prices) {\n\t\tint profit = 0;\n\t\t\n\t\tint[] leftProfit = new int[prices.length];\n\t\tleftProfit[0] = 0;\n\t\tint leftBuyPrice = prices[0];\n\t\tfor(int i=1; i< prices.length; i++) {\n\t\t\tleftBuyPrice = Math.min(prices[i], leftBuyPrice);\n\t\t\tleftProfit[i] = Math.max(leftProfit[i-1], (prices[i]-leftBuyPrice));\n\t\t}\n\t\t\n\t\tint[] rightProfit = new int[prices.length];\n\t\trightProfit[prices.length-1] = 0;\n\t\tint rightSellPrice = prices[prices.length-1];\n\t\tfor(int i=prices.length-2; i>=0; i--) {\n\t\t\trightSellPrice = Math.max(prices[i], rightSellPrice);\n\t\t\trightProfit[i] = Math.max(rightProfit[i+1], (rightSellPrice-prices[i]));\n\t\t}\n\t\t\n\t\tfor(int i=0; i<prices.length; i++) {\n\t\t\tprofit = Math.max(profit, leftProfit[i]+rightProfit[i]);\n\t\t}\n\t\treturn profit;\n\t}",
"static int traderProfit(int k, int n, int[] A) {\n\t\t\n\t\treturn traderProfit(k, A,0);\n }",
"void buyStock(String portfolio, String stock, Integer count, Date date)\r\n throws IllegalArgumentException;",
"public Pair findNumbers(int input[]) {\r\n\t\tPair p = new Pair();\r\n\t\tfor (int i = 0; i < input.length; i++) {\r\n\t\t\tif (input[Math.abs(input[i]) - 1] < 0) {\r\n\t\t\t\tp.repeating = Math.abs(input[i]);\r\n\t\t\t} else {\r\n\t\t\t\tinput[Math.abs(input[i]) - 1] = -input[Math.abs(input[i]) - 1];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < input.length; i++) {\r\n\t\t\tif (input[i] < 0) {\r\n\t\t\t\tinput[i] = -input[i];\r\n\t\t\t} else {\r\n\t\t\t\tp.missing = i + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn p;\r\n\t}",
"public int[] currentProductsInInventory(){\r\n\t\tString sql=\"SELECT Barcode FROM ProductTable WHERE Quantity_In_Store>=0 OR Quantity_In_storeroom>=0 \";\r\n\t\tint[] products=null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\t try (Connection conn = this.connect();\r\n\t Statement stmt = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(sql)){\r\n\t\t\t while(rs.next()){\r\n\t\t\t\t tmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\t counter++;\r\n\t\t\t }\r\n\t\t\t products= new int[counter];\r\n\t\t\t for(int i=0;i<counter;i++){\r\n\t\t\t\t products[i]=tmpList.get(i);\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (SQLException e) {\r\n\t\t\t System.out.println(\"currentProductsInInventory: \"+e.getMessage());\r\n\t\t\t return new int[0]; \r\n\t\t }\r\n\t\treturn products;\r\n\t}",
"private static int[] convertDiceValueArray(ArrayList<Dice> dices) {\n int[] combos = new int[dices.size()];\n\n for (int i = 0; i < dices.size(); i++) {\n combos[i] = dices.get(i).getValue();\n }\n return combos;\n }",
"public String[] showStock() {\n \tString[] stock = new String[5];\n \tstock[0] = Integer.toString(this.getId());\n \tstock[1] = this.getName();\n \tstock[2] = Integer.toString(this.getAvailableNumber());\n \tstock[3] = Double.toString(this.getBuyPrice().getAmount());\n \tstock[4] = Double.toString(this.getSellPrice().getAmount());\n \treturn stock;\n }",
"Couple[] Exchange (Couple[] v,Gift[] G) throws IOException{\n \n \n int i;\n String y;\n int s = 0;\n int e = 99;\n \n for (i = 0; i < 10; i++) {\n \n y = v[i].btype;\n \n \n if (\"Generous\" == y) {\n \n if ((v[i].spend <= v[i].bd)) {\n \n if (v[i].spend <= v[i].m) {\n \n v[i].lc = v[i].lc + 1;\n v[i].lv = v[i].lv + G[e].price;\n v[i].spend = v[i].spend +G[e].price;\n e--;\n \n }else {\n \n v[i].lc = v[i].lc + 1;\n v[i].lv = v[i].lv + G[e].price;\n v[i].spend = v[i].spend +G[e].price;\n v[i].extra = v[i].extra + G[e].price;\n e--;\n \n \n }\n \n }\n \n }else if (\"Miser\" == y) {\n \n if (v[i].spend <= v[i].m) {\n \n v[i].spend = v[i].spend + G[s].price;\n s++;\n }\n \n \n }else if (\"Geeky\" == y) {\n \n if (v[i].spend <= v[i].m) {\n \n v[i].spend = v[i].spend + G[s].price;\n s++;\n }else {\n \n v[i].spend = v[i].spend + G[e].price;\n v[i].extra = v[i].extra + G[e].price;\n \n } \n }\n \n \n \n }\n\n return v;\n}",
"java.util.List<stockFilePT102.StockDocument.Stock> getStockList();",
"static pair getMinMax(long a[], long n) \n {\n Arrays.sort(a);\n return new pair(a[0],a[(int)(n-1)]);\n }",
"public static void main(String[] args) {\n\t\tint prices[] = {7,1,5,5,5,5,5,4};\r\n\t\tSystem.out.println(maxProfitOneTrade(prices));\r\n\t\t\r\n\t\tint prices1[] = {1,3,2,5};\r\n\t\tSystem.out.println(maxProfitOneTrade(prices1));\r\n\t\t\r\n\t\tint prices2[] = {7,6,4,3,1};\r\n\t\tSystem.out.println(maxProfitOneTrade(prices2));\r\n\t\t\r\n\t\tint prices3[] = {0,0,0,0,1};\r\n\t\tSystem.out.println(maxProfitOneTrade(prices3));\r\n\t}",
"@Test\r\n\tpublic void shouldReturn2PairsWhen000() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(0, 0, 0));\r\n\t\tassertEquals(2, Coins.countPairs(A));\r\n\t}",
"public static int calculateMaximumProfit(int[] input) {\n int minPrice = Integer.MAX_VALUE;\n int maxPrice = Integer.MIN_VALUE;\n\n if (input == null || input.length <= 1) {\n return 0;\n }\n\n for (int currentPrice : input) {\n minPrice = getMinPrice(minPrice, currentPrice);\n maxPrice = getMaxPrice(maxPrice, currentPrice);\n }\n return maxPrice - minPrice;\n }",
"@Deprecated\n stockFilePT102.StockDocument.Stock[] getStockArray();",
"public int maxProfit2(int[] prices) {\n // input validation\n if (prices == null || prices.length <= 1) {\n return 0;\n }\n\n // record the min up util now\n int min = Integer.MAX_VALUE;\n int res = 0;\n for (int i : prices) {\n min = Math.min(min, i);\n res = Math.max(res, i - min);\n }\n return res;\n }",
"public static int maximumProfit(int[] input){\n\t\tint maxTotalProfit = 0;\n\t\tList<Integer> firstBuySellProfits = new ArrayList<Integer>();\n\t\tint minPriceSoFar = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < input.length; i++){\n\t\t\tminPriceSoFar = Math.min(minPriceSoFar, input[i]);\n\t\t\tmaxTotalProfit = Math.max(maxTotalProfit, input[i] - minPriceSoFar);\n\t\t\tfirstBuySellProfits.add(maxTotalProfit);\n\t\t}\n\n\t\tint maxPriceSoFar = Integer.MIN_VALUE;\n\t\tfor(int i = input.length-1; i > 0; i--){\n\t\t\tmaxPriceSoFar = Math.max(maxPriceSoFar, input[i]);\n\t\t\tmaxTotalProfit = Math.max(maxTotalProfit, maxPriceSoFar - input[i] + firstBuySellProfits.get(i - 1));\n\t\t}\n\t\treturn maxTotalProfit;\n\t}",
"public int maxProfit(int[] prices) {\n\n if(prices.length==0) return 0;\n\n int[] dp = new int[3];\n\n dp[0] = -prices[0];\n\n dp[1] = Integer.MIN_VALUE;\n\n dp[2] = 0;\n\n for(int i=1; i<prices.length; i++){\n\n int hold = Math.max(dp[0], dp[2]- prices[i]);\n\n int coolDown = dp[0] + prices[i];\n\n int notHold = Math.max(dp[2], dp[1]);\n\n dp[0] = hold;\n\n dp[1] = coolDown;\n\n dp[2] = notHold;\n\n\n }\n\n return Math.max(Math.max(dp[0],dp[1]),dp[2]);\n\n }",
"public Order getSellOrder(int[] spotPrices, int[] futurePrices, int pos,\r\n long money, int restDay) {\r\n\r\n /* Information available for trading:\r\n spotPrices[]: Time series of spot prices. It provides 120 elements from spotPrices[0]\r\n to spotPrices[119]. The element spotPrices[119] is the latest.\r\n futurePrices[]: Time series of futures price. It provides 60 elements from futurePrices[0]\r\n to futurePrices[59]. The element futurePrices[59] is the latest.\r\n Before opening the market, same values with spot prices are given.\r\n If no contract is made in the market, value -1 is given.\r\n pos: Position of the agent. Positive is buying position. Negative is selling.\r\n money: Available cash. Note that type 'long' is used because of needed precision.\r\n restDay: Number of remaining transaction to the closing of the market. */\r\n\r\n Order order = new Order(); // Object to return values.\r\n\r\n order.buysell = Order.SELL;\r\n // Cancel decision if it may increase the position\r\n if (pos < -fMaxPosition) {\r\n order.buysell = Order.NONE;\r\n return order;\r\n }\r\n\r\n int latestFuturePrice = futurePrices[futurePrices.length - 1];\r\n if (latestFuturePrice < 0) {\r\n order.buysell = Order.NONE;\r\n return order;\r\n } // If previous price is invalid, it makes no order.\r\n\r\n order.price = (int) ( (double) latestFuturePrice * (1.0 + fSpreadRatio));\r\n\r\n order.quant = fMinQuant + fRandom.nextInt(fMaxQuant - fMinQuant + 1);\r\n\r\n // Message\r\n message(\"Sell\" + \", price = \" + order.price + \", volume = \" + order.quant +\r\n \" )\");\r\n\r\n return order;\r\n }",
"public Map<Integer, Integer> getPairs(int[] input, int sum) {\n\t\tMap<Integer, Integer> pairs = new HashMap<Integer, Integer>();\n\t\ttry {\n\t\t\t// validate the input\n\t\t\tif (input == null && input.length == 0) {\n\t\t\t\tthrow new RuntimeException(\" Invalid input \");\n\t\t\t}\n\n\t\t\tint n = input.length;\n\t\t\tint a = 0;\n\n\t\t\t// construct an arraylist from input\n\t\t\tArrayList<Integer> result = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tresult.add(input[i]);\n\t\t\t}\n\n\t\t\t// check if pairs add to the sum\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta = Math.abs(sum - input[i]);\n\t\t\t\tif (result.contains(a)) {\n\t\t\t\t\tpairs.put(input[i], a);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn pairs;\n\t}",
"void makeMarketSellOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);",
"public int solve(String infile) {\r\n\r\n\t\ttry {\r\n\t\t\treadData(infile);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//A temporary object array of bids\r\n\t\tBids[] numBids = populateBids();\r\n\t\t//A temporary integer array to hold the maximum value\r\n\t\tint[] storeMaxRev = new int[numBids.length];\r\n\t\t//A temporary variable for the maximum revenue that will be updated in the main loop.\r\n\t\tint maxRev = 0;\r\n\t\t\r\n\t\t//Invokes the comparator method defined earlier\r\n\t\tLotComparator compareFinishTimes = new LotComparator();\r\n\t\tArrays.sort(numBids,compareFinishTimes);\r\n\t\t\r\n\t\t\r\n\t\t//Edge case check if the number of bids is less than 0\r\n\t\tif(numBids.length <= 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\t//Choose the first bid in the object array.\r\n\t\tstoreMaxRev[0] = numBids[0].priceOfLot;\r\n\t\t\r\n\t\t//From the second element of the object array, iterate through the array and store the price\r\n\t\t//of the element that is larger than the previous element\r\n\t\tfor(int i = 1; i < numBids.length; i++) {\r\n\t\t\tstoreMaxRev[i] = Math.max(numBids[i].priceOfLot, storeMaxRev[i - 1]);\r\n\t\t\t\r\n\t\t\t//Iterating backwards from the second last element relative to i, check if the current element is compatible.\r\n\t\t\t//A compatible bid is when the ending lot number is less than the starting lot number of the next bid.\r\n\t\t\t//If it is an compatible bid, add the price of the current bid to the previous bid and take the maximum price out of the two.\r\n\t\t\tfor(int j = i - 1; j >= 0; j--) {\r\n\t\t\t\tif(numBids[j].endLot < numBids[i].beginningLot) {\r\n\t\t\t\t\tstoreMaxRev[i] = Math.max(storeMaxRev[i], numBids[i].priceOfLot + storeMaxRev[j]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Once all of the bids in numBid object array is processed, we get an integer array that will contain the maximum revenue.\r\n\t\t//This loop iterates through storeMaxRev and selects the largest integer which is then set to the variable maxRev and returned as the answer\r\n\t\tfor(int priceIdx = 0; priceIdx < storeMaxRev.length; priceIdx++) {\r\n\t\t\tif(maxRev < storeMaxRev[priceIdx]) {\r\n\t\t\t\tmaxRev = storeMaxRev[priceIdx];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn maxRev;\r\n\t}",
"public static int findMaxProfit(int [] prices){\n int max_profit = 0;\r\n for (int i = 0;i<prices.length-1;i++){\r\n if(prices [i] < prices [i+1]){\r\n max_profit = max_profit + (prices[i+1]-prices[i]);\r\n }\r\n }\r\n return max_profit;\r\n }",
"object_detection.protos.Calibration.XYPairs getXYPairs();",
"public List<Pair<INDArray, INDArray>> generateTestDataSet (List<Point> stockDataList) {\n \tint window = exampleLength + predictLength;\n \tList<Pair<INDArray, INDArray>> test = new ArrayList<Pair<INDArray, INDArray>>();\n \tfor (int i = 0; i < stockDataList.size() - window; i++) {\n \t\tINDArray input = Nd4j.create(new int[] {exampleLength, VECTOR_SIZE}, 'f'); // f pour la construction rapide (fast)\n \t\tfor (int j = i; j < i + exampleLength; j++) {\n \t\t\tPoint stock = stockDataList.get(j);\n \t\t\tinput.putScalar(new int[] {j - i, 0}, (stock.getOpen() - minArray[0]) / (maxArray[0] - minArray[0]));\n \t\t\tinput.putScalar(new int[] {j - i, 1}, (stock.getClose() - minArray[1]) / (maxArray[1] - minArray[1]));\n \t\t\tinput.putScalar(new int[] {j - i, 2}, (stock.getLow() - minArray[2]) / (maxArray[2] - minArray[2]));\n \t\t\tinput.putScalar(new int[] {j - i, 3}, (stock.getHigh() - minArray[3]) / (maxArray[3] - minArray[3]));\n \t\t\tinput.putScalar(new int[] {j - i, 4}, (stock.getVolume() - minArray[4]) / (maxArray[4] - minArray[4]));\n \t\t}\n Point stock = stockDataList.get(i + exampleLength);\n INDArray label;\n if (category.equals(PriceCategory.ALL)) {\n label = Nd4j.create(new int[]{VECTOR_SIZE}, 'f'); // f pour la construction rapide (fast)\n label.putScalar(new int[] {0}, stock.getOpen());\n label.putScalar(new int[] {1}, stock.getClose());\n label.putScalar(new int[] {2}, stock.getLow());\n label.putScalar(new int[] {3}, stock.getHigh());\n label.putScalar(new int[] {4}, stock.getVolume());\n } else {\n label = Nd4j.create(new int[] {1}, 'f');\n switch (category) {\n case OPEN: label.putScalar(new int[] {0}, stock.getOpen()); break;\n case CLOSE: label.putScalar(new int[] {0}, stock.getClose()); break;\n case LOW: label.putScalar(new int[] {0}, stock.getLow()); break;\n case HIGH: label.putScalar(new int[] {0}, stock.getHigh()); break;\n case VOLUME: label.putScalar(new int[] {0}, stock.getVolume()); break;\n default: throw new NoSuchElementException();\n }\n }\n \t\ttest.add(new Pair<INDArray, INDArray>(input, label));\n \t}\n \treturn test;\n }",
"public Order getBuyOrder(int[] spotPrices, int[] futurePrices, int pos,\r\n long money, int restDay) {\r\n\r\n /* Information available for trading:\r\n spotPrices[]: Time series of spot prices. It provides 120 elements from spotPrices[0]\r\n to spotPrices[119]. The element spotPrices[119] is the latest.\r\n futurePrices[]: Time series of futures price. It provides 60 elements from futurePrices[0]\r\n to futurePrices[59]. The element futurePrices[59] is the latest.\r\n Before opening the market, same values with spot prices are given.\r\n If no contract is made in the market, value -1 is given.\r\n pos: Position of the agent. Positive is buying position. Negative is selling.\r\n money: Available cash. Note that type 'long' is used because of needed precision.\r\n restDay: Number of remaining transaction to the closing of the market. */\r\n\r\n Order order = new Order(); // Object to return values.\r\n\r\n order.buysell = Order.BUY;\r\n // Cancel decision if it may increase absolute value of the position\r\n if (pos > fMaxPosition) {\r\n order.buysell = Order.NONE;\r\n return order;\r\n }\r\n\r\n int latestFuturePrice = futurePrices[futurePrices.length - 1];\r\n if (latestFuturePrice < 0) {\r\n order.buysell = Order.NONE;\r\n return order;\r\n } // If previous price is invalid, it makes no order.\r\n order.price = (int) ( (double) latestFuturePrice * (1.0 - fSpreadRatio));\r\n\r\n if (order.price < 1) {\r\n order.price = 1;\r\n\r\n }\r\n order.quant = fMinQuant + fRandom.nextInt(fMaxQuant - fMinQuant + 1);\r\n\r\n // Message\r\n message(\"Buy\" + \", price = \" + order.price + \", volume = \" + order.quant +\r\n \" )\");\r\n\r\n return order;\r\n }",
"public static void findBestDaysToTrade(int[] values) {\n\n int highestDiff = 0;\n int dayToBuy = -1, dayToSell = -1;\n\n int curSmallInx = 0;\n int curSmallValue = values[0];\n\n for (int inx = 1; inx < values.length; inx++) {\n int curValue = values[inx];\n\n // If we find smaller index, record it & continue\n if (curValue < curSmallValue) {\n curSmallValue = curValue;\n curSmallInx = inx;\n continue;\n }\n\n // If we find a greater difference value, then record it\n if ((curValue-curSmallValue) > highestDiff) {\n highestDiff = curSmallValue = curValue;\n dayToBuy = curSmallInx;\n dayToSell = inx;\n }\n }\n\n System.out.println (\"dayToBuy: \" + (dayToBuy+1) + \", dayToSell: \" + (dayToSell+1) + \", margin: \" + highestDiff);\n }",
"public static Object[] ticket_combo(int l, Set<Set<Object>> ticket_indices_powerset, Object[] all_number_subset_array, Object[] winning_number_subset_array) {\n \n Set<Object> curr_t = new HashSet<Object>(); //carries one ticket\n Set<Object> set_to_buy = new HashSet<Object>(); //carries one winning combo\n Set<Object> curr_win_combo = new HashSet<Object>(); //carries one ticket combo\n \n boolean has_winning = false;\n int match_count = 0;\n int ticket_amount_count = all_number_subset_array.length; //smallest amount of tickets needed so far\n \n // a combo to possibly buy\n for(Set<Object> curr_indices_subset : ticket_indices_powerset) {\n int curr_num_tickets_to_buy = curr_indices_subset.toArray().length;\n if(ticket_amount_count <= curr_num_tickets_to_buy && has_winning)\n {\n continue;\n }\n //copy a winning array\n Object[] winning_number_subset_array_copy = Arrays.copyOf(winning_number_subset_array, winning_number_subset_array.length);\n //setup a counter of uncovered winning combos\n int uncovered_winning_possibilities = winning_number_subset_array_copy.length;\n Object[] curr_indices_subset_array = curr_indices_subset.toArray();\n \n //take each ticket in a combo\n for(Object curr_index : curr_indices_subset_array) {\n int curr_index_int = ((Integer) curr_index).intValue() - 1;\n curr_t = (java.util.HashSet<java.lang.Object>) all_number_subset_array[curr_index_int];\n \n //see which winning combos you can cross out\n for(int i = 0; i < winning_number_subset_array_copy.length; i++) {\n match_count = 0;\n curr_win_combo = (java.util.HashSet<java.lang.Object>) winning_number_subset_array[i];\n if (winning_number_subset_array_copy[i] instanceof Integer)\n {\n continue;\n }\n \n for(Object combo_num : curr_win_combo) {\n for(Object ticket_num : curr_t) {\n if(((Integer)combo_num).intValue() == ((Integer)ticket_num).intValue())\n {\n match_count++;\n }\n }\n }\n if(match_count >= l)\n {\n uncovered_winning_possibilities--;\n winning_number_subset_array_copy[i] = 0;\n }\n }\n }\n //after ticket combo loop\n if((uncovered_winning_possibilities == 0) && (!has_winning || (curr_num_tickets_to_buy < ticket_amount_count)))\n {\n has_winning = true;\n ticket_amount_count = curr_num_tickets_to_buy;\n set_to_buy = curr_indices_subset;\n \n }\n }\n Object[] final_ticket_indeces = set_to_buy.toArray();\n return final_ticket_indeces;\n }",
"public static ArrayList<int[]> pairsThatEqualSum(int[] inputArray, int targetSum) {\n\t\tArrays.sort(inputArray);\n\t\tint start = 0;\n\t\tint end = inputArray.length - 1;\n\t\tArrayList<int[]> arr = new ArrayList<>();\n\t\twhile (start < end) {\n\t\t\tif (inputArray[start] + inputArray[end] == targetSum) {\n\t\t\t\tint[] array = { start, end };\n\t\t\t\tarr.add(array);\n\t\t\t\tstart++;\n\t\t\t\tend--;\n\t\t\t}\n\t\t\tif (inputArray[start] + inputArray[end] < targetSum) {\n\t\t\t\tstart++;\n\t\t\t} else if (inputArray[start] + inputArray[end] > targetSum) {\n\t\t\t\tend--;\n\t\t\t}\n\n\t\t}\n\t\treturn arr;\n\t}",
"public void buyStock(double askPrice, int shares, int tradeTime) {\n }",
"public BigDecimal getBSCA_ProfitPriceListEntered();",
"private static int findPairs(int[] nums, int k) {\n if(nums == null || nums.length == 0 || k < 0)\n return 0;\n\n int count = 0;\n Map<Integer, Integer> map = new HashMap<>();\n for(int i : nums)\n map.put(i, map.getOrDefault(i, 0) + 1);\n\n for(Map.Entry<Integer, Integer> entry : map.entrySet()) {\n if(k == 0) {\n if(entry.getValue() >= 2)\n count++;\n } else {\n if(map.containsKey(entry.getKey() + k))\n count++;\n }\n }\n return count;\n }",
"static void displayMaxProfitableStock(ForeighStockHolding array[])\r\n\t{\n\t\tForeighStockHolding temp = array[0];\r\n\t\t\r\n\t\t//traversing the array to find the max profitable stock\r\n\t\tfor(int i=1; i<array.length; i++)\r\n\t\t{\r\n\t\t\tif((temp.valueInDollars()-temp.costInDollars()) < (array[i].valueInDollars()-array[i].costInDollars()))\r\n\t\t\t{\r\n\t\t\t\ttemp = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//printing the maximum profitable stock\r\n\t\tSystem.out.println(\"Maximum Profitable Stock :\");\r\n\t\tSystem.out.println(\"Company Name : \"+temp.companyName);\r\n\t\tSystem.out.println(\"Purchase Share Price : \"+temp.purchaseSharePrice);\r\n\t\tSystem.out.println(\"Current Share Price : \"+temp.currentSharePrice);\r\n\t\tSystem.out.println(\"Number of Shares : \"+temp.numberOfShares);\r\n\t\tSystem.out.println(\"Conversion Rate : \"+temp.conversionRate);\r\n\t\tSystem.out.println();\r\n\t}",
"Stock retrieveStock(String symbol);",
"public Map<Number, Double> getThePastPrices(Number stockID, Number stDate, Number enDate) {\n Map<Number, Double> m = new HashMap<Number, Double>();\n\n //get VO instance\n TestStockPricesVOImpl tspVO = getTestStockPricesVO();\n\n //get VC instance\n ViewCriteria vc =\n tspVO.getViewCriteria(\"GetStockPricesInGivenDateRangeCriteria\");\n vc.resetCriteria();\n\n //set All the bind parameters\n tspVO.setBindStockID(stockID);\n tspVO.setBindStartDate(stDate);\n tspVO.setBindEndDate(enDate);\n \n //apply the view criteria\n tspVO.applyViewCriteria(vc);\n \n //execute the view Object programatically\n tspVO.executeQuery();\n System.out.print(\"Row count: \");\n System.out.println(tspVO.getRowCount());\n\n //Iterate through the results\n RowSetIterator it = tspVO.createRowSetIterator(null);\n while (it.hasNext()) {\n TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next();\n Number datetracked = newRow.getDatetracked();\n Number timetracked = newRow.getTimetracked();\n Number price = newRow.getPrice();\n \n m.put(datetracked, price.doubleValue());\n }\n it.closeRowSetIterator();\n return m;\n }",
"private static int maxProfit(int[] prices) {\n\t\tint profit = 0;\n\t\tint buyPrice = prices[0]; //min price to buy the stock\n\t\tfor(int i=1; i< prices.length; i++) {\n\t\t\tbuyPrice = Math.min(buyPrice, prices[i]);\n\t\t\tprofit = Math.max(profit, (prices[i]-buyPrice));\n\t\t}\n\t\treturn profit;\n\t}",
"public int maxProfit(int[] prices) {\n int N = prices.length;\n int res = 0; // min, buy and sell on the same day\n for (int i = 0; i < N; i++) {\n for (int j = i; j < N; j++) {\n res = Math.max(res, prices[j] - prices[i]);\n }\n }\n return res;\n }",
"@Test\r\n\tpublic void shouldReturn1PairsWhen11() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(1, 1));\r\n\t\tassertEquals(1, Coins.countPairs(A));\r\n\t}",
"public static long stockmax(List<Integer> prices) {\n\t\t// Write your code here\n\t\tlong profit=0L;\n\t\tlong maxSoFar=0L;\n\t\t for (int i = prices.size() - 1; i > -1 ; i--) {\n\t if (prices.get(i) >= maxSoFar) {\n\t maxSoFar = prices.get(i);\n\t }\n\t profit += maxSoFar - prices.get(i);\n\t }\n\t return profit;\n\t}",
"@Test\n public void pairNumbers_passTwoListsNumbers_returnListOfPairs() {\n List<int[]> output = Java8Streams.pairNumbers(new ArrayList<>(Arrays.asList(1, 2, 3)), new ArrayList<>(Arrays.asList(3, 4)));\n assertThat(output).containsExactly(new int[]{1, 3}, new int[]{1, 4}, new int[]{2, 3}, new int[]{2, 4}, new int[]{3, 3}, new int[]{3, 4});\n }",
"public static int maxProfit(int[] prices) {\n if (prices.length < 2) {\n return 0;\n }\n\n int[] leftProfit = new int[prices.length], rightProfit = new int[prices.length];\n\n int low = prices[0], high = prices[prices.length - 1], maxProfit = 0;\n\n for (int j = prices.length - 2; j >=0; j--) {\n high = Math.max(high, prices[j]);\n rightProfit[j] = Math.max(high - prices[j], rightProfit[j + 1]);\n }\n\n for (int i = 1; i < prices.length; i++) {\n low = Math.min(low, prices[i]);\n leftProfit[i] = Math.max(prices[i] - low, leftProfit[i - 1]);\n }\n\n for (int i = 1; i < prices.length - 2; i++) {\n maxProfit = Math.max(maxProfit, leftProfit[i] + rightProfit[i + 1]);\n }\n\n return Math.max(maxProfit, Math.max(leftProfit[leftProfit.length - 1], rightProfit[0]));\n }",
"public int maxProfit3(int[] prices) {\n // input validation\n if (prices == null || prices.length == 0) {\n return 0;\n }\n\n // calculate the result\n int sum = 0;\n int res = 0;\n for (int i = 0; i < prices.length; i++) {\n int diff = prices[i + 1] - prices[i]; // get the diff\n sum = Math.max(0, sum + diff); // local\n res = Math.max(res, sum); // global\n }\n return res;\n }",
"static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}",
"int sizeOfFinancialStatementsArray();",
"int[] getGivenByOrder();",
"public abstract int[] getInts(int paramInt1, int paramInt2, int paramInt3, int paramInt4);",
"public Integer getStock() {\n return stock;\n }",
"public List<Pair<Integer, Integer>> getArray(){\n return qtadePorNum;\n }",
"public int maxProfit(int[] prices) {\n\t if(prices.length == 0){\n\t return 0;\n\t }\n\t int s0 = 0, s0prev = 0;\n\t int s1 = 0, s1prev=-prices[0];\n\t int s2 = 0, s2prev=Integer.MIN_VALUE;\n\t for(int p : prices){\n\t s0 = Math.max(s0prev,s2prev);\n\t s1 = Math.max(s1prev,s0prev-p);\n\t s2 = Math.max(s2prev,s1prev+p);\n\t s0prev=s0;\n\t s1prev=s1;\n\t s2prev=s2;\n\t }\n\t return Math.max(s0,s2);\n\t}",
"private int pairValue() {\n int pValue = 0;\n \n for (int i = 0; i < combos.length; i++) {\n if (combos[i].length == 2 && combos[i][0].charAt(0) == combos[i][1].charAt(0)) {\n pValue += 2;\n }\n }\n \n return pValue;\n }"
]
| [
"0.5932236",
"0.5782952",
"0.5749592",
"0.56015575",
"0.5551276",
"0.54911566",
"0.5294133",
"0.51892066",
"0.51865125",
"0.5171032",
"0.5168246",
"0.5152801",
"0.51379853",
"0.5107297",
"0.5095889",
"0.5071074",
"0.50438637",
"0.5019748",
"0.49581766",
"0.49107805",
"0.49098337",
"0.48902392",
"0.4880935",
"0.48597664",
"0.48431656",
"0.48254648",
"0.4797417",
"0.4783383",
"0.47831696",
"0.47772104",
"0.47568035",
"0.4730999",
"0.4712395",
"0.47108686",
"0.47090685",
"0.47032148",
"0.4682104",
"0.46788093",
"0.4674012",
"0.46654767",
"0.46629256",
"0.46625707",
"0.46551567",
"0.46469736",
"0.4643863",
"0.4643601",
"0.46352896",
"0.46308905",
"0.46230978",
"0.46226114",
"0.4611194",
"0.46090844",
"0.4605098",
"0.4588023",
"0.45878115",
"0.4582367",
"0.45734948",
"0.45703065",
"0.45645452",
"0.45618275",
"0.45566183",
"0.45525956",
"0.45483083",
"0.45480043",
"0.4547372",
"0.45468247",
"0.45458207",
"0.45419264",
"0.45361018",
"0.45338628",
"0.45303825",
"0.4530313",
"0.45255902",
"0.4522428",
"0.45220816",
"0.45182118",
"0.45092905",
"0.45088437",
"0.45086256",
"0.45065916",
"0.4504562",
"0.4501632",
"0.4500752",
"0.4499871",
"0.44834152",
"0.448263",
"0.44626302",
"0.44620115",
"0.44617838",
"0.44607502",
"0.44592792",
"0.44580954",
"0.44431895",
"0.44377393",
"0.44361478",
"0.443335",
"0.44073033",
"0.44052628",
"0.44039646",
"0.44033372"
]
| 0.6624044 | 0 |
Inside abstract class we can take abstract as well as concrete methods | abstract void move(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void method();",
"public abstract void abstractMethodToImplement();",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}",
"@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\");\r\n\t}",
"public abstract void abstractone();",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"public abstract void method1();",
"private abstract void privateabstract();",
"public void setupAbstract() {\n \r\n }",
"public abstract void afvuren();",
"public abstract void test();",
"public abstract void test();",
"public abstract void mh();",
"abstract void sub();",
"abstract public T doSomething();",
"public interface AbstractC14990nD {\n void ACi(View view);\n\n void ACk(View view);\n\n void ACo(View view);\n}",
"public abstract void operation();",
"public abstract void mo102899a();",
"public abstract void call();",
"public abstract void Do();",
"abstract void sayHello();",
"public abstract void mo957b();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public interface AbstractC0273Ek {\n void e();\n}",
"public abstract void comes();",
"public boolean isAbstract()\n/* */ {\n/* 146 */ return false;\n/* */ }",
"public abstract String a();",
"public void callmetoo(){\r\n\tSystem.out.println(\"This is a concrete method\");\r\n\t}",
"public abstract void mo30696a();",
"public abstract T a();",
"public interface Behaviour {\n/**abstract method of the Behaviour interface*/\n\tvoid sad();\n}",
"abstract void m1();",
"public void calling(){ // when the abstract method is implemented in other class 'public' keyword is used..\r\n System.out.println(\"I am calling...\");\r\n }",
"public interface AbstractC7729o0ooOoo {\n void OooO00o();\n}",
"interface PureAbstract {\n void method1();\n long method2(long a, long b);\n}",
"abstract int pregnancy();",
"public interface AbstractC00591m {\n void A9X(C0495Jm jm);\n\n void AAI(List<RG> list);\n}",
"abstract void geometryMethod();",
"@Override\n\tvoid func() {\n\t\tSystem.out.println(\"Overriden Abstract Method\");\n\t}",
"public abstract void mo35054b();",
"@Override\n\tpublic void method2() {\n\t\tSystem.out.println(\"AbstractClass 추상메쏘드 method2()를 재정의(implement)\");\n\t}",
"public abstract void mo70713b();",
"abstract void fly();",
"public interface AbstractC7617o0oOO {\n void OooO00o(View view);\n\n void OooO0O0(View view);\n\n void OooO0OO(View view);\n}",
"public abstract void mo4359a();",
"public abstract void t1();",
"public abstract void mo27386d();",
"public interface Citizen {\n public abstract void sayHello();\n}",
"public void testCreateMethodWithAbstractModifier() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccAbstract);\n assertSourceEquals(\"source code incorrect\", \"public abstract void foo() {\\n\" + \"}\\n\", method.getContents());\n }",
"public abstract int a();",
"public interface FlyBehavior {\n public abstract void fly();\n// public abstract void\n}",
"public abstract void mo45765b();",
"public abstract void mo27464a();",
"public abstract void alimentarse();",
"public interface AbstractC01264e {\n void ABn(AnonymousClass4X v, @Nullable AnonymousClass4A v2, AnonymousClass4A v3);\n\n void ABp(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @Nullable AnonymousClass4A v3);\n\n void ABr(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @NonNull AnonymousClass4A v3);\n\n void ADd(AnonymousClass4X v);\n}",
"public abstract void t2();",
"public abstract void mo2150a();",
"public interface AbstractC1953c50 {\n}",
"public abstract void mo42330e();",
"public interface AbstractC0211Dj0 {\n void a(int i);\n}",
"public boolean isAbstract();",
"protected abstract void work();",
"public interface AbstractC2930hp1 {\n void a(String str, boolean z);\n\n void b(String str, long j);\n\n void c(String str, int i, int i2, int i3, int i4);\n\n void d(String str, int i);\n\n void e(String str, int i, int i2, int i3, int i4);\n}",
"public abstract void mo3994a();",
"public abstract void mo56925d();",
"public abstract void mo42331g();",
"public abstract void p1();",
"@Override\n\tpublic void doStuff() {\n\t\tSystem.out.println(\"Do stuff in Abstract Car\");\n\t}",
"public void setAbstract() {\r\n\t\tthis.isAbstract = true;\r\n\t}",
"public abstract void mo42329d();",
"public interface AbstractC2883ha {\n boolean a();\n}",
"public abstract void t3();",
"abstract public void performAction();",
"public abstract void onClick();",
"public abstract void onClick();",
"public interface TellStory {\n public abstract void tellStory();\n}",
"public abstract Object mo26777y();",
"public abstract int b();",
"public abstract void film();",
"public interface AbstractC2726a {\n /* renamed from: a */\n void mo36480a(int i, int i2, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36481a(int i, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36482a(ImageView imageView, Uri uri);\n\n /* renamed from: b */\n void mo36483b(int i, ImageView imageView, Uri uri);\n}",
"public abstract void mo27385c();",
"public void setAbstract(boolean abstractMethod) {\n this.abstractMethod = abstractMethod;\n }",
"public abstract void talk();",
"public interface Pet {// interface is the blueprint for other class\r\n\r\n\tpublic String food();// method food abstract method no action \r\n\r\n\r\n}",
"public interface AbstractC3386kV0 {\n boolean b();\n\n void d();\n\n void dismiss();\n\n ListView f();\n}",
"public abstract boolean foo();",
"public abstract void m15813a();",
"@FunctionalInterface\r\ninterface SingleMethod { // functional interface cant have more than one abstract method\r\n\tvoid method();\r\n\t\r\n}",
"public abstract void peel();",
"public abstract void doSomething() throws Exception;",
"public abstract void visit();",
"public void noabstractone() {\n\t\tSystem.out.println(\"No Abstract\");\n\t}",
"public interface Animal {\n\n public void eat();\n public void travel();\n}",
"abstract protected boolean checkMethod();",
"protected abstract void switchOnCustom();",
"abstract protected void execute();",
"public interface i\n{\n\n public abstract void a(long l, a a1);\n}"
]
| [
"0.8092027",
"0.7711296",
"0.7448615",
"0.7333677",
"0.7180898",
"0.71773756",
"0.7066552",
"0.70177245",
"0.6913452",
"0.69068855",
"0.6886295",
"0.6767709",
"0.6767709",
"0.6764453",
"0.6749366",
"0.6729039",
"0.6728381",
"0.672786",
"0.6714439",
"0.6666695",
"0.66327405",
"0.66212857",
"0.66017437",
"0.65988004",
"0.65988004",
"0.65988004",
"0.65988004",
"0.6592788",
"0.6591683",
"0.65654",
"0.65590185",
"0.6548664",
"0.6544304",
"0.6544005",
"0.65298927",
"0.65083176",
"0.65064394",
"0.6491721",
"0.64860374",
"0.6465763",
"0.646317",
"0.644748",
"0.64402515",
"0.6436316",
"0.64293784",
"0.6424035",
"0.64227337",
"0.64180046",
"0.64065814",
"0.6401679",
"0.6392284",
"0.63897735",
"0.6386923",
"0.63727695",
"0.63573956",
"0.6354256",
"0.6353882",
"0.6348088",
"0.6342171",
"0.633485",
"0.633453",
"0.6329016",
"0.631421",
"0.6291618",
"0.6281093",
"0.624411",
"0.6230068",
"0.6228142",
"0.62252814",
"0.6224764",
"0.6222826",
"0.61952984",
"0.61768496",
"0.6150261",
"0.6147254",
"0.61445343",
"0.6139344",
"0.6138802",
"0.6138802",
"0.6135529",
"0.6131924",
"0.61314076",
"0.61227125",
"0.6119562",
"0.6117835",
"0.6114773",
"0.6100612",
"0.6099044",
"0.6095439",
"0.6088009",
"0.60866076",
"0.60859185",
"0.6081029",
"0.6079512",
"0.60691696",
"0.6065327",
"0.60599405",
"0.6055073",
"0.60504025",
"0.6049352",
"0.60431874"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Animal a = new Dog();
a.move();
a.eat();
Animal b= new Cow();
b.move();
b.eat();
} | {
"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 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_home, container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348",
"0.66202056",
"0.66176945",
"0.66094035",
"0.65976113",
"0.65937936",
"0.6585841",
"0.6585124",
"0.65741223",
"0.65721804",
"0.65698904",
"0.65695107",
"0.6569451",
"0.6568099",
"0.6565633",
"0.6554688",
"0.65533894",
"0.65447044",
"0.65432465",
"0.6542017",
"0.65385425",
"0.6537571",
"0.65369105",
"0.6535379",
"0.6533447",
"0.6533258",
"0.65316767",
"0.6529574",
"0.6528449",
"0.65262675",
"0.6525467",
"0.6525181",
"0.6524235",
"0.6523963",
"0.65187466",
"0.65138274",
"0.65137535",
"0.6513218",
"0.6513202",
"0.65115535",
"0.651113",
"0.6510943",
"0.6510124",
"0.65094703",
"0.65082514",
"0.65038425",
"0.65023196",
"0.6501983",
"0.65014684",
"0.64982104",
"0.64945936",
"0.6492533",
"0.6491023",
"0.6488248",
"0.64879525",
"0.6487852",
"0.6487744",
"0.64873713",
"0.6487171",
"0.64851",
"0.6485003",
"0.6483167",
"0.6482433",
"0.64824027",
"0.6481711",
"0.6480902",
"0.64779234",
"0.64767206",
"0.6476515",
"0.6475657",
"0.64747864",
"0.64715266",
"0.64714354",
"0.64711314",
"0.6470619",
"0.6468112",
"0.6466466",
"0.64631015",
"0.646268",
"0.6462456",
"0.64620507"
]
| 0.0 | -1 |
NOTE: this pipeline is primarily run as a remote pipeline, but on TeamCity it runs locally. this is primarily designed to guess the location of the R exe, without needing extra TeamCity config for this to run. | private String inferRPath()
{
String path;
//preferentially use R config setup in scripting props. only works if running locally.
if (PipelineJobService.get().getLocationType() == PipelineJobService.LocationType.WebServer)
{
LabKeyScriptEngineManager svc = LabKeyScriptEngineManager.get();
for (ExternalScriptEngineDefinition def : svc.getEngineDefinitions())
{
if (RScriptEngineFactory.isRScriptEngine(def.getExtensions()))
{
path = new File(def.getExePath()).getParent();
getJob().getLogger().info("Using RSciptEngine path: " + path);
return path;
}
}
}
//then pipeline config
String packagePath = PipelineJobService.get().getConfigProperties().getSoftwarePackagePath("R");
if (StringUtils.trimToNull(packagePath) != null)
{
getJob().getLogger().info("Using path from pipeline config: " + packagePath);
return packagePath;
}
//then RHOME
Map<String, String> env = System.getenv();
if (env.containsKey("RHOME"))
{
getJob().getLogger().info("Using path from RHOME: " + env.get("RHOME"));
return env.get("RHOME");
}
//else assume it's in the PATH
getJob().getLogger().info("Unable to infer R path, using null");
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getExecutable();",
"File getExecutable();",
"public String getExecutable();",
"public String tryGetIncomingRsyncExecutable();",
"public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }",
"public static String getPathProgramsFiles(){\r\n\t\treturn System.getenv(\"ProgramFiles\");\r\n\t}",
"public String getExecutable(final Launcher launcher) throws IOException, InterruptedException {\n return launcher.getChannel().call(new Callable<String, IOException>() {\n private static final long serialVersionUID = 2373163112639943768L;\n\n @Override\n public String call() throws IOException {\n String nsisHome = Util.replaceMacro(getHome(), EnvVars.masterEnvVars);\n File exe = new File(nsisHome, \"makensis.exe\");\n\n return exe.exists() ? exe.getPath() : null;\n }\n });\n }",
"public String getJVMExecutablePath();",
"public String getAbsoluteApplicationPath()\r\n {\r\n String res = null;\r\n\r\n if (_windows)\r\n {\r\n RegQuery r = new RegQuery();\r\n res = r.getAbsoluteApplicationPath(_execName);\r\n if (res != null)\r\n {\r\n return res;\r\n }\r\n String progFiles = System.getenv(\"ProgramFiles\");\r\n String dirs[] = { \"\\\\Mozilla\\\\ Firefox\\\\\", \"\\\\Mozilla\", \"\\\\Firefox\", \"\\\\SeaMonkey\",\r\n \"\\\\mozilla.org\\\\SeaMonkey\" };\r\n\r\n for (int i = 0; i < dirs.length; i++)\r\n {\r\n File f = new File(progFiles + dirs[i]);\r\n if (f.exists())\r\n {\r\n return progFiles + dirs[i];\r\n }\r\n }\r\n }\r\n\r\n else if (_linux)\r\n {\r\n try\r\n {\r\n File f;\r\n Properties env = new Properties();\r\n env.load(Runtime.getRuntime().exec(\"env\").getInputStream());\r\n String userPath = (String) env.get(\"PATH\");\r\n String[] pathDirs = userPath.split(\":\");\r\n\r\n for (int i = 0; i < pathDirs.length; i++)\r\n {\r\n f = new File(pathDirs[i] + File.separator + _execName);\r\n\r\n if (f.exists())\r\n {\r\n return f.getCanonicalPath().substring(0,\r\n f.getCanonicalPath().length() - _execName.length());\r\n }\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n return res;\r\n }",
"static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }",
"public static void main(String[] args) {\n\t\tClass cls = AbsolutePath.class; // These api are coming from java framework\n\t\tClassLoader loader = cls.getClassLoader();\n\t\tURL url = loader.getResource(\"./chromedriver.exe\"); // \". \" represents current working directory \n System.out.println(url.toString()); //chromeedriver gets automatically copied from source to target\n\t}",
"public String tryGetOutgoingRsyncExecutable();",
"public String getRunLocation();",
"protected abstract Executable getExecutable();",
"private String getRepositoryPath() {\n if (repoPath != null) {\n return repoPath;\n }\n\n final String pathProp = System.getProperty(SYSTEM_PATH_PROPERTY);\n\n if (pathProp == null || pathProp.isEmpty()) {\n repoPath = getWorkingDirectory();\n } else if (pathProp.charAt(0) == '.') {\n // relative path\n repoPath = getWorkingDirectory() + System.getProperty(\"file.separator\") + pathProp;\n } else {\n repoPath = RepoUtils.stripFileProtocol(pathProp);\n }\n\n log.info(\"Using repository path: \" + repoPath);\n return repoPath;\n }",
"private String getAndroidResourcePathByExecingWhichAndroid() {\n try {\n Process process = Runtime.getRuntime().exec(new String[]{\"which\", \"android\"});\n String sdkPath = new BufferedReader(new InputStreamReader(process.getInputStream())).readLine();\n if (sdkPath != null && sdkPath.endsWith(\"tools/android\")) {\n return getResourcePathFromSdkPath(sdkPath.substring(0, sdkPath.indexOf(\"tools/android\")));\n }\n } catch (IOException e) {\n // fine we'll try something else\n }\n return null;\n }",
"private static String nativeLocationInJar() {\n\t\tString OS = System.getProperty(\"os.name\");\n\t\tString arch = System.getProperty(\"os.arch\");\n\t\tlog.info(\"Found OS={}, arch={}\", OS, arch);\n\t\tString key = OS+\"_\"+arch;\n\t\tswitch(key)\n\t\t{\n\t\tcase \"Linux_amd64\":\n\t\t\treturn \"native/MANIFEST.Linux_amd64\";\n\t\tcase \"Windows 7_amd64\":\n\t\tcase \"Windows 8_amd64\":\n\t\tcase \"Windows 8.1_amd64\":\n\t\t\treturn \"native/MANIFEST.Windows_amd64\";\n\t\t}\n\t\tlog.error(\"No matching native library for {}\", key);\n\t\tthrow new Error(\"No matching native library for \"+key);\n\t}",
"public static String getToolchainExecPath(MakeConfiguration conf) {\n String execPath = conf.getLanguageToolchain().getDir().getValue();\n\n if('/' != File.separatorChar)\n execPath = execPath.replace(File.separatorChar, '/');\n\n if('/' != execPath.charAt(execPath.length() - 1))\n execPath += '/';\n\n return execPath;\n }",
"public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }",
"@Override \n\t\tprotected String findEclipseOnPlatform(File dir) {\n\t\t\tFile possible = new File(dir, getWindowsExecutableName());\n\t\t\treturn (possible.isFile()) ? dir.getAbsolutePath() : null;\n\t\t}",
"String getDockerFilelocation();",
"public RecipeExecutor build() {\n if (testServerEndpoint != null) {\n try {\n return buildRemote(testServerEndpoint);\n } catch (Exception e) {\n LOG.error(\"Failed to build remote RecipeExecutor for\", e);\n }\n }\n\n Map<String, String> env = System.getenv();\n String endpoint = env.getOrDefault(TESTSERVER_ENDPOINT_PROPERTY, System.getProperty(TESTSERVER_ENDPOINT_PROPERTY));\n if (endpoint != null) {\n try {\n return buildRemote(endpoint);\n } catch (Exception e) {\n LOG.error(\"Failed to build remote RecipeExecutor\", e);\n }\n }\n\n return buildLocal();\n }",
"private String getBinaryPath() {\n return System.getProperty(SeLionConstants.WEBDRIVER_GECKO_DRIVER_PROPERTY,\n Config.getConfigProperty(ConfigProperty.SELENIUM_GECKODRIVER_PATH));\n }",
"public String getClusterExecutableBasename() {\n return SeqExec.EXECUTABLE_BASENAME;\n }",
"public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }",
"@Nullable\n public static String getExecutionRoot(BuildInvoker invoker, BlazeContext context)\n throws GetArtifactsException {\n try {\n return invoker.getBlazeInfo().getExecutionRoot().getAbsolutePath();\n } catch (SyncFailedException e) {\n IssueOutput.error(\"Could not obtain exec root from blaze info: \" + e.getMessage())\n .submit(context);\n context.setHasError();\n return null;\n }\n }",
"public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"D:\\\\VisionITWorkspace\\\\dependencies\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tReporter.log(\"Chrome Exe path Set up\", true);\r\n\t}",
"public Path getEmbeddedBinariesRoot() {\n return installBase.getChild(\"_embedded_binaries\");\n }",
"public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }",
"protected String setPathToResourcesIfNotProvided(String[] args) {\n if (args.length == 0) {\n args = new String[1];\n args[0] = \"./src/main/resources/Code Test\";\n }\n return args[0];\n }",
"public Path getRemoteRepositoryBaseDir();",
"public static void main(String[] args) throws Exception {\n\n String context = System.getProperty(\"rjrcontext\");\n String webAppDir = System.getProperty(\"rjrwebapp\");\n Integer port = Integer.getInteger(\"rjrport\");\n Integer sslport = Integer.getInteger(\"rjrsslport\");\n String webAppClassPath = System.getProperty(\"rjrclasspath\");\n String keystore = System.getProperty(\"rjrkeystore\");\n String password = System.getProperty(\"rjrpassword\");\n String keyPassword = System.getProperty(\"rjrkeypassword\");\n\n if (context == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrcontext\");\n }\n if (webAppDir == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrwebapp\");\n }\n if (port == null && sslport == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrport and/or -Drjrsslport\");\n }\n\n Server server = new Server();\n\n if (port != null) {\n SelectChannelConnector connector = new SelectChannelConnector();\n connector.setPort(port);\n\n if (sslport != null) {\n connector.setConfidentialPort(sslport);\n }\n\n server.addConnector(connector);\n }\n\n if (sslport != null) {\n if (keystore == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeystore with -Drjrsslport\");\n }\n if (password == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrpassword with -Drjrsslport\");\n }\n if (keyPassword == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeypassword with -Drjrsslport\");\n }\n\n SslSocketConnector sslConnector = new SslSocketConnector();\n sslConnector.setKeystore(keystore);\n sslConnector.setPassword(password);\n sslConnector.setKeyPassword(keyPassword);\n\n sslConnector.setMaxIdleTime(30000);\n sslConnector.setPort(sslport);\n\n server.addConnector(sslConnector);\n }\n\n WebAppContext web = new WebAppContext();\n web.setContextPath(context);\n web.setWar(webAppDir);\n\n // Fix issue 7, File locking on windows/Disable Jetty's locking of static files\n // http://code.google.com/p/run-jetty-run/issues/detail?id=7\n // by disabling the use of the file mapped buffers. The default Jetty behavior is\n // intended to provide a performance boost, but run-jetty-run is focused on\n // development (especially debugging) of web apps, not high-performance production\n // serving of static content. Therefore, I'm not worried about the performance\n // degradation of this change. My only concern is that there might be a need to\n // test this feature that I'm disabling.\n web.setInitParams(Collections.singletonMap(\"org.mortbay.jetty.servlet.Default.useFileMappedBuffer\", \"false\"));\n\n if (webAppClassPath != null) {\n ProjectClassLoader loader = new ProjectClassLoader(web, webAppClassPath);\n web.setClassLoader(loader);\n }\n\n server.addHandler(web);\n\n MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();\n MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);\n server.getContainer().addEventListener(mBeanContainer);\n mBeanContainer.start();\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(100);\n }\n return;\n }",
"public static void setup(String[] args) {\n\t\tif (parametersContains(\"classpath\", args)) {\r\n\t\t\tRESOURCE_TYPE = RessourceType.CLASSPATH;\r\n\t\t\tCobra2DEngine.setupEnvironment(RESOURCE_TYPE);\r\n\t\t\tROOT_PATH_STR = \"./src/main/resources/\";\r\n\t\t} else if (parametersContains(\"currentDir\", args)) {\r\n\t\t\tRESOURCE_TYPE = RessourceType.INSTALL_DIR;\r\n\t\t\tCobra2DEngine.setupEnvironment(RESOURCE_TYPE);\r\n\t\t\tROOT_PATH_STR = \".\";\r\n\t\t} else {\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"Start this runtime environment with option -classpath to load all resources from your classpath or with -currentDir to load all resources from current directory ./game-resources/.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\r\n\t\tROOT_PATH = new File(ROOT_PATH_STR);\r\n\t\tRESOURCE_PATH = new File(ROOT_PATH_STR + File.separator\r\n\t\t\t\t+ RESOURCE_PATH_STR);\r\n\t\tIMAGE_RESOURCE_PATH = new File(ROOT_PATH_STR + File.separator\r\n\t\t\t\t+ RESOURCE_PATH_STR + File.separator + IMAGE_FOLDER_STR);\r\n\r\n\t\tlog.info(\"Setting up path settings for runtime.\");\r\n\t\tlog.info(\"Resource loading strategy : \" + RESOURCE_TYPE);\r\n\t\tlog.info(\"Root path (path): \" + ROOT_PATH.getPath());\r\n\t\tlog.info(\"Root path (absolute): \"\r\n\t\t\t\t+ ROOT_PATH.getAbsolutePath());\r\n\t\tlog.info(\"Resource path (path): \" + RESOURCE_PATH.getPath());\r\n\t\tlog.info(\"Resource path (absolute): \"\r\n\t\t\t\t+ RESOURCE_PATH.getAbsolutePath());\r\n\t\tlog.info(\"Image resource path (path): \"\r\n\t\t\t\t+ IMAGE_RESOURCE_PATH.getPath());\r\n\t\tlog.info(\"Image resource path (absolute): \"\r\n\t\t\t\t+ IMAGE_RESOURCE_PATH.getAbsolutePath());\r\n\t}",
"private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }",
"@Override\n\tpublic java.lang.String getBinPath() {\n\t\treturn _scienceApp.getBinPath();\n\t}",
"public File tryFindSshExecutable();",
"@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }",
"private synchronized void addBuildWrapperPath(ProcessBuilder pb){\r\n \t\tif (needPath==null || needPath.booleanValue() && bwPath!=null){\r\n \t\t\tneedPath=false;\r\n \t\t\tString path=new File(bwPath).getParent();\r\n \t\t\tif (path!=null){\r\n \t\t\t\tMap<String,String> env=pb.environment();\r\n \t\t\t\tString pathValue=env.get(\"PATH\");\r\n \t\t\t\tif (Boolean.TRUE.equals(needPath) || pathValue==null || pathValue.length()==0 || !pathValue.contains(path)){\r\n \t\t\t\t\tif (pathValue==null || pathValue.length()==0){\r\n \t\t\t\t\t\tpathValue=path;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tpathValue+=File.pathSeparator+path;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tenv.put(\"PATH\",pathValue);\r\n \t\t\t\t\tneedPath=true;\r\n \t\t\t\t} \r\n \t\t\t}\r\n \t\t}\r\n \t}",
"public interface JavaExecutableLocator {\n public String javaExecutable();\n}",
"public String checkR_HOME(String path) throws FileNotFoundException {\n\t\tboolean trustRPath = false;\n\t\tif (OS.startsWith(\"Mac\")) {\n\t\t\ttrustRPath = rExist(path + \"/R\") || rExist(path + \"/bin/R\");\n\t\t\tif(!trustRPath) {\n\t\t\t\tpath = \"/Library/Frameworks/R.framework/Resources\";\n\t\t\t\ttrustRPath = rExist(path + \"/R\");\n\t\t\t}\n\t\t\tif(!trustRPath) {\n\t\t\t\tpath = \"/opt/local/lib/R\";\n\t\t\t\ttrustRPath = rExist(path + \"/bin/R\");\n\t\t\t}\n\t\t} else if (OS.startsWith(\"Windows\")) {\n\t\t\tif (path == null) {\n\t\t\t\tpath = RegQuery(\"HKLM\\\\SOFTWARE\\\\R-core\\\\R /v InstallPath\");\n\t\t\t\tif (path == null)\n\t\t\t\t\tpath = \"\";\n\t\t\t}\n\t\t\ttrustRPath = rExist(path + \"\\\\bin\\\\R.exe\"); \n\t\t} else if (OS.startsWith(\"Linux\")) {\n\t\t\tif (path == null) {\n\t\t\t\tpath = \"/usr/lib/R\";\n\t\t\t}\n\t\t\ttrustRPath = rExist(path);\n//\t\t\tlink: /usr/bin/R -> /usr/lib/R/bin/R\n//\t\t\tno link: /usr/lib/R/R -> /usr/lib/R/bin/R \n//\t\t R_HOME is /usr/lib/R\n\t\t}\n\t\tif (!trustRPath)\n\t\t\tthrow new FileNotFoundException(\"Incorrect R_HOME path: \" + path);\n\t\tlogger.debug(\"R_HOME = \" + path);\n\t\treturn path;\n\t}",
"String getWorkingDirectory();",
"private String defineAbsoluteFilePath() throws IOException {\n\n\t\tString absoluteFilePath = \"\";\n\n\t\tString workingDir = System.getProperty(\"user.dir\");\n\n\t\tString OS = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (OS.indexOf(\"win\") >= 0) {\n\t\t\tabsoluteFilePath = workingDir + \"\\\\\" + PATH + \"\\\\\" + FILE_NAME;\n\t\t} else {\n\t\t\tabsoluteFilePath = workingDir + \"/\" + PATH + \"/\" + FILE_NAME;\n\t\t}\n\n\t\tFile file = new File(absoluteFilePath);\n\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"File found!\");\n\t\t\tSystem.out.println(absoluteFilePath);\n\t\t} else {\n\t\t\tSystem.err.println(\"File not found...\");\n\t\t}\n\n\t\treturn absoluteFilePath;\n\n\t}",
"private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }",
"public File getJRELocation() {\n \t\tif (executableLocation == null)\n \t\t\treturn null;\n \t\treturn new File(executableLocation.getParentFile(), \"jre\"); //$NON-NLS-1$\n \t}",
"private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }",
"public File getExecutableWorkFile(CommonjWork work) {\r\n\t\tFile workExecutableFile = new File(getExecutableWorkDir(work), work.getWorkName());\t\r\n\t\treturn workExecutableFile;\r\n\t}",
"public\n static\n String\n which( CharSequence cmd )\n {\n String cmdStr = inputs.notNull( cmd, \"cmd\" ).toString();\n\n String path = System.getenv( ENV_PATH );\n\n if ( path != null ) \n {\n for ( String dir : PAT_PATH_SEP.split( path ) )\n {\n File f = new File( dir, cmdStr );\n if ( f.exists() && f.canExecute() ) return f.toString();\n }\n }\n\n return null; // if we get here\n }",
"public String getSimulatorExecutable() {\n return simSpec.getSimExecutable();\n }",
"private String locateFile(String fileName) {\n\t\tString file = null;\n\t\tURL fileURL = ClassLoader.getSystemResource(fileName);\n\t\tif (fileURL != null) {\n\t\t\tfile = fileURL.getFile();\n\t\t} else\n\t\t\tSystem.err.println(\"Unable to locate file \" + fileName);\n\t\treturn file;\n\t}",
"private static Path getTargetPath() {\r\n return Paths.get(getBaseDir(), \"target\");\r\n }",
"public void setStrPipelineExeURL(final String strPipelineExeURL) {\n this.strPipelineExeURL = strPipelineExeURL;\n }",
"protected String getSquawkExecutable() {\n return \"squawk\" + env.getPlatform().getExecutableExtension();\n }",
"private ProcessBuilder appendExecutablePath(ProcessBuilder builder) {\n String executable = builder.command().get(0);\n if (executable == null) {\n throw new IllegalArgumentException(\n \"No executable provided to the Process Builder... we will do... nothing... \");\n }\n builder\n .command()\n .set(0, FileUtils.getFileResourceId(configuration.getWorkerPath(), executable).toString());\n return builder;\n }",
"File getWorkingDirectory();",
"public String artifactsLocationTemplate() {\n String pipeline = get(\"GO_PIPELINE_NAME\");\n String stageName = get(\"GO_STAGE_NAME\");\n String jobName = get(\"GO_JOB_NAME\");\n\n String pipelineCounter = get(\"GO_PIPELINE_COUNTER\");\n String stageCounter = get(\"GO_STAGE_COUNTER\");\n return artifactsLocationTemplate(pipeline, stageName, jobName, pipelineCounter, stageCounter);\n }",
"public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }",
"public Channel buildChannel( TaskListener listener, JDK jdk, FilePath slaveRoot, Launcher launcher, //\n String jvmExtraArgs )\n throws Exception\n {\n\n ArgumentListBuilder args = new ArgumentListBuilder();\n if ( jdk == null )\n {\n args.add( \"java\" );\n }\n else\n {\n args.add( jdk.getHome() + \"/bin/java\" ); // use JDK.getExecutable() here ?\n }\n\n if ( DEBUG_PORT > 0 )\n {\n args.add( \"-Xrunjdwp:transport=dt_socket,server=y,address=\" + DEBUG_PORT );\n }\n\n if (jvmExtraArgs != null)\n {\n args.addTokenized( jvmExtraArgs );\n }\n\n\n String remotingJar = launcher.getChannel().call( new GetRemotingJar() );\n\n args.add( \"-cp\" );\n StringBuilder classPath = new StringBuilder( );\n\n List<Class> classes = Arrays.asList( JenkinsRemoteStarter.class, //\n QpsListenerDisplay.class, //\n RequestQueuedListenerDisplay.class, //\n Recorder.class);\n\n classes.stream().forEach( aClass -> {\n classPath.append( classPathEntry( slaveRoot, //\n aClass, //\n aClass.getName(), //\n listener ) ) //\n .append( launcher.isUnix() ? \":\" : \";\" );\n } );\n\n String cp = classPath.toString() + remotingJar;\n\n for (LoadGeneratorProcessClasspathDecorator decorator : LoadGeneratorProcessClasspathDecorator.all())\n {\n cp = decorator.decorateClasspath( cp, listener, slaveRoot, launcher );\n }\n\n\n args.add( cp );\n\n args.add( \"org.mortbay.jetty.load.generator.starter.JenkinsRemoteStarter\" );\n\n final Acceptor acceptor = launcher.getChannel().call( new SocketHandler() );\n\n InetAddress host = InetAddress.getLocalHost();\n String hostName = null;// host.getHostName();\n\n final String socket =\n hostName != null ? hostName + \":\" + acceptor.getPort() : String.valueOf( acceptor.getPort() );\n listener.getLogger().println( \"Established TCP socket on \" + socket );\n\n args.add( socket );\n\n final Proc proc = launcher.launch().cmds( args ).stdout( listener ).stderr( listener.getLogger() ).start();\n\n Connection con;\n try\n {\n con = acceptor.accept();\n }\n catch ( SocketTimeoutException e )\n {\n // failed to connect. Is the process dead?\n // if so, the error should have been provided by the launcher already.\n // so abort gracefully without a stack trace.\n if ( !proc.isAlive() )\n {\n throw new AbortException( \"Failed to launch LoadGenerator. Exit code = \" + proc.join() );\n }\n throw e;\n }\n\n Channel ch;\n try\n {\n ch = Channels.forProcess( \"Channel to LoadGenerator \" + Arrays.toString( args.toCommandArray() ), //\n Computer.threadPoolForRemoting, //\n new BufferedInputStream( con.in ), //\n new BufferedOutputStream( con.out ), //\n listener.getLogger(), //\n proc );\n\n\n return ch;\n }\n catch ( IOException e )\n {\n throw e;\n }\n\n }",
"String getAbsolutePathWithinSlingHome(String relativePath);",
"private String checkUserLibDir() {\n\t\t// user .libPaths() to list all paths known when R is run from the \n\t\t// command line\n \tif (!runRCmd(\"R -e \\\".libPaths()\\\" -s\")) {\n \t\tlogger.error(\"Could not detect user lib path.\");\n \t} else {\n \t\t// split on '\"'. This gives irrelevant strings, but those will\n \t\t// not match a user.home anyway\n \t\tString[] parts = status.split(\"\\\\\\\"\");\n \t\tString userHome = System.getProperty(\"user.home\");\n \t\tlogger.debug(\"user.home: \" + userHome);\n \t\tfor (int i=0; i<parts.length; i++) {\n \t\t\tString part = parts[i];\n \t\t\t// The replacement for front-slashes for windows systems.\n \t\t\tif (part != null && part.startsWith(userHome) || part.replace(\"/\", \"\\\\\").startsWith(userHome)) {\n \t\t\t\t// OK, we found the first lib path in $HOME\n \t\t\t\treturn part;\n \t\t\t}\n \t\t}\n \t}\n\t\treturn null;\n }",
"public String getLaunchPath() {\n return this.LaunchPath;\n }",
"private String createExecutionLine() throws Exception {\n\t\t\n\t\tfinal StringBuilder buf = new StringBuilder();\n\t\t\n\t\t// Get the path to the workspace and the model path\n\t\tfinal String install = getDawnInstallationPath();\n\t\t\n\t\tbuf.append(install);\n\t\tbuf.append(\" -noSplash \");\n\t\t\n\t\tif (!progArgs.containsKey(\"application\")) {\n\t\t\tbuf.append(\" -application \");\n\t\t\tbuf.append(applicationName);\n\t\t}\n\t\t\n\t\tfinal String workspace = getWorkspace();\n\t\tif (!progArgs.containsKey(\"data\")) {\n\t\t\tbuf.append(\" -data \");\n\t\t\tbuf.append(workspace);\n\t\t}\n\t\t\n\t\tif (progArgs!=null) {\n\t\t\tfor(String name : progArgs.keySet()) {\n\t\t\t\tbuf.append(\" -\");\n\t\t\t\tbuf.append(name);\n\t\t\t\tbuf.append(\" \");\n\t\t\t\tString value = progArgs.get(name).toString().trim();\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t\tbuf.append(value);\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t}\n\t\t}\n\t\n\t\tif (propertiesFile==null && sysProps!=null && propagateSysProps) {\n\t\t\tbuf.append(\" -vmargs \");\n\t\t\tfor(String name : sysProps.keySet()) {\n\t\t\t\tbuf.append(\" \");\n\t\t\t\tbuf.append(\"-D\");\n\t\t\t\tbuf.append(name);\n\t\t\t\tbuf.append(\"=\");\n\t\t\t\tString value = sysProps.get(name).toString().trim();\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t\tbuf.append(value);\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t}\n\t\t}\n\t\tif (xmx!=null || xms!=null) {\n\t\t\tif (!buf.toString().contains(\"-vmargs\")) buf.append(\" -vmargs \");\n\t\t\tif (xms!=null) {\n\t\t\t\tbuf.append(\"-Xms\");\n\t\t\t\tbuf.append(xms);\n\t\t\t}\n\t\t\tif (xmx!=null) {\n\t\t\t\tbuf.append(\"-Xmx\");\n\t\t\t\tbuf.append(xmx);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sysProps.containsKey(\"logLocation\") && propagateSysProps) {\n\t\t\t// Two spaces deals with the value of the last property being \\\n\t\t\tbuf.append(\" > \"+sysProps.get(\"logLocation\"));\n\t\t} else if (propagateSysProps){\n\t\t\t// Two spaces deals with the value of the last property being \\\n\t\t\tbuf.append(\" > \"+workspace+\"/consumer.log\");\n\t\t}\n\n\t\treturn buf.toString();\n\t}",
"public String getJarLocation();",
"private static String getResourcePath(String resPath) {\n URL resource = XmlReaderUtils.class.getClassLoader().getResource(resPath);\n Assert.assertNotNull(\"Could not open the resource \" + resPath, resource);\n return resource.getFile();\n }",
"public String getResultsDir() {\n return opensimActuatorsAnalysesToolsJNI.Tool_getResultsDir(swigCPtr, this);\n }",
"public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }",
"public String findMakeTX() {\n\t\tif (executableExists(\"maketx\")) return \"maketx\";\n\t\tif (executableExists(\"txmake\")) return \"txmake\";\n\t\tif (executableExists(\"maketx.exe\")) return \"maketx.exe\";\n\t\tif (executableExists(\"txmake.exe\")) return \"txmake.exe\";\n\n\t\tif (executableExists(\"./maketx\")) return \"./maketx\";\n\t\tif (executableExists(\"./txmake\")) return \"./txmake\";\n\t\tif (executableExists(\"./maketx.exe\")) return \"./maketx.exe\";\n\t\tif (executableExists(\"./txmake.exe\")) return \"./txmake.exe\";\n\n\t\tString RMAN_PREFIX = \"C:\\\\Program Files\\\\Pixar\\\\RenderManProServer-\";\n\t\tString RMAN_SUFFIX = \"\\\\bin\\\\txmake.exe\";\n\t\tfor (int v1 = 20; v1 < 40; ++v1) {\n\t\t\tfor (int v2 = 0; v2 < 10; ++v2) {\n\t\t\t\tString RMAN_PATH = RMAN_PREFIX + v1 + \".\" + v2 + RMAN_SUFFIX;\n\t\t\t\tif (new File(RMAN_PATH).exists()) return RMAN_PATH;\n\t\t\t}\n\t\t}\n\n\t\tString ARNOLD_PREFIX = \"C:\\\\Program Files\\\\Autodesk\\\\Arnold\\\\maya\";\n\t\tString ARNOLD_SUFFIX = \"\\\\bin\\\\maketx.exe\";\n\t\tfor (int v1 = 2016; v1 < 2040; ++v1) {\n\t\t\tString ARNOLD_PATH = ARNOLD_PREFIX + v1 + ARNOLD_SUFFIX;\n\t\t\tif (new File(ARNOLD_PATH).exists()) return ARNOLD_PATH;\n\t\t}\n\n\t\treturn \"\";\n\t}",
"@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }",
"private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }",
"private static String getDockerPath() {\n final String dockerPath = \"/usr/bin/docker\"; // path on Ubuntu\n File f = new File(dockerPath);\n if (f.exists() && !f.isDirectory()) {\n return dockerPath;\n }\n\n // path on Mac\n return \"/usr/local/bin/docker\";\n }",
"public static void main(String[] ignored) {\n try {\n ArtifactoryClientConfiguration clientConfiguration = createArtifactoryClientConfiguration();\n ArtifactoryManagerBuilder artifactoryManagerBuilder = new ArtifactoryManagerBuilder().setClientConfiguration(clientConfiguration, clientConfiguration.resolver);\n ArtifactoryClientConfiguration.PackageManagerHandler packageManagerHandler = clientConfiguration.packageManagerHandler;\n ArtifactoryClientConfiguration.GoHandler goHandler = clientConfiguration.goHandler;\n GoRun goRun = new GoRun(\n packageManagerHandler.getArgs(),\n Paths.get(packageManagerHandler.getPath() != null ? packageManagerHandler.getPath() : \".\"),\n packageManagerHandler.getModule(),\n artifactoryManagerBuilder,\n clientConfiguration.resolver.getRepoKey(),\n clientConfiguration.resolver.getUsername(),\n clientConfiguration.resolver.getPassword(),\n clientConfiguration.getLog(),\n clientConfiguration.getAllProperties()\n );\n goRun.executeAndSaveBuildInfo(clientConfiguration);\n } catch (RuntimeException e) {\n ExceptionUtils.printRootCauseStackTrace(e, System.out);\n System.exit(1);\n }\n }",
"com.google.cloud.aiplatform.v1.Context getPipelineRunContext();",
"default void buildMainGenerateCustomRuntimeImage() {\n if (!bach().project().settings().tools().enabled(\"jlink\")) return;\n say(\"Assemble custom runtime image\");\n var image = bach().folders().workspace(\"image\");\n Paths.deleteDirectories(image);\n bach().run(buildMainJLink(image));\n }",
"public String getToolfilepath() {\r\n return toolfilepath;\r\n }",
"public Object run() {\n System.out.println(\"\\nYour java.home property: \"\n +System.getProperty(\"java.home\"));\n\n System.out.println(\"\\nYour user.home property: \"\n +System.getProperty(\"user.home\"));\n\n File f = new File(\"foo.txt\");\n System.out.print(\"\\nfoo.txt does \");\n if (!f.exists())\n System.out.print(\"not \");\n System.out.println(\"exist in the current working directory.\");\n return null;\n }",
"private void makeBinariesExecutable() throws IOException {\n\t\tif (!isWindows()) {\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tFile binDir = new File(FileLocator.toFileURL(FileLocator.find(bundle, new Path(\"bin\"), null)).getPath());\n\t\t\tnew File(binDir, \"align-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"filter-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"strip-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"shape-it\").setExecutable(true);\n\t\t}\n\t}",
"protected String retrieveRbFile() {\r\n\t\tString className = this.getClass().getName();\r\n\t\tString packageName = this.getClass().getPackage().getName() + \".\";\r\n\t\treturn className.replaceFirst(packageName, \"\");\r\n\t}",
"File getLauncherDir() {\n return launcherDir;\n }",
"private static RubyFile findRubyScript(RubyProject rubyProject, String rubyScriptName) {\r\n \t\tfor (RubyProjectElement rubyElement : rubyProject.getRubyElementsInternal()) {\r\n \t\t\tif (rubyElement.getFileExtension().equals(\"urf\")) {\r\n \t\t\t\tif (rubyElement.getName().equals(rubyScriptName)) {\r\n \t\t\t\t\treturn (RubyFile)rubyElement;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public IStatus prepareRuntimeDirectory(IPath baseDir);",
"public TestOutcome executeTests()\n\t//throws InternalBuildServerException//, IOException \n\t{\n\t\tString buildServerTestFilesDir = getDirectoryFinder().getTestFilesDirectory().getAbsolutePath() + File.separator;\n\t\t\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n //TODO Factor the amount of memory and the extra -D parameters into config.properties\n javaArgs.add(\"-Xmx256m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n String vmArgs = tester.getTestProperties().getVmArgs();\n if (vmArgs != null) {\n // Break up into separate tokens if necessary\n StringTokenizer tokenizer = new StringTokenizer(vmArgs);\n while (tokenizer.hasMoreElements()) {\n String nextArg = tokenizer.nextToken();\n nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n // nextArg = nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n }\n }\n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\" + getProjectSubmission().getProjectJarFile().getAbsolutePath() + \"\");\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\" + getDirectoryFinder().getBuildDirectory().getAbsolutePath());\n\t\t// Add trusted code bases\n\t\tfor (Iterator<TrustedCodeBase> i = getTrustedCodeBaseFinder().getCollection().iterator(); i.hasNext(); ) {\n\t\t\tTrustedCodeBase trustedCodeBase = i.next();\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\" + trustedCodeBase.getValue());\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\" \n + new File(getDirectoryFinder().getTestFilesDirectory(), \"security.policy\").getAbsolutePath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tif (nextTestNumber > 0) {\n\t\t\tjavaArgs.add(\"-startTestNumber\");\n\t\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\t\t}\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType);\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties().getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInSeconds() != 0) {\n\t\t\ttimeoutInSeconds = testCase.getMaxTimeInSeconds();\n getLog().trace(\"Using @MaxTestTime(value=\" +timeoutInSeconds+ \") annotation\");\n }\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\t\t\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir() && !testType.equals(TestOutcome.STUDENT_TEST))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\t\t\n\t\tgetLog().debug(\"TestRunner working directory: \" +testRunnerCWD);\n\t\t\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\t//XXX What is this timing? This assumes we're timing the entire process, which\n\t\t// we're clearly not doing from here\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t\ttestRunner = Runtime.getRuntime().exec(\n\t\t\t\t\tjavaArgs.toArray(new String[javaArgs.size()]),\n\t\t\t\t\tenvironment,\n\t\t\t\t\ttestRunnerCWD\n\t\t\t);\n \n String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n try {\n int pid=MarmosetUtilities.getPid(testRunner);\n getLog().debug(\"Subprocess for submission \" +getProjectSubmission().getSubmissionPK() +\n \" for testSetup \" +getProjectSubmission().getProjectJarfilePK() +\n \" for \"+testType +\" \"+nextTestNumber+\n \" \" +testMethod+\n \" in testClass \" +testClass+\n \" has pid = \" +pid);\n } catch (IllegalAccessException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n } catch (NoSuchFieldException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n }\n \n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(), testRunner.getErrorStream());\n\t\t\tmonitor.start();\n\t\t\t\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n // Groovy, we finished before the alarm went off.\n // Disable it (and clear our interrupted status)\n // in case it went off just after the process wait\n // finished.\n alarm.turnOff();\n \n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n if (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n getLog().warn(\"Clover could not be initialized due to an AccessControlException. \" +\n \" Please check your security.policy file and make sure that student code \" +\n \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n }\n\t\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult=getFullTestName() +\" failed with IOException: \" +e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult=e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n getLog().trace(\"Timeout for \" +testType+ \" \" +testMethod+ \" \" +nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber, TestOutcome.TIMEOUT, shortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning)\n\t\t\t\ttestRunner.destroy();\n\t\t}\n\t\t\n\t\tif (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName() +\" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass,\n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t}\n\t\t\n\t\tgetLog().debug(getFullTestName()+ \" test finished with \" + new File(outputFilename).length() +\n\t\t\t\t\" bytes of output\");\n\n\t\treturn readTestOutcomeFromFile();\n\t}",
"public String\n getProgram() \n {\n if(PackageInfo.sOsType == OsType.Windows) \n return (\"winimage.exe\");\n return super.getProgram();\n }",
"private static String getJarFilePath() throws URISyntaxException, UnsupportedEncodingException {\n\n\t\tFile jarFile;\n\n\t\t// if (codeSource.getLocation() != null) {\n\t\t// jarFile = new File(codeSource.getLocation().toURI());\n\t\t// } else {\n\t\tString path = ConfigurationLocator.class.getResource(ConfigurationLocator.class.getSimpleName() + \".class\")\n\t\t\t\t.getPath();\n\t\tString jarFilePath = path.substring(path.indexOf(\":\") + 1, path.indexOf(\"!\"));\n\t\tjarFilePath = URLDecoder.decode(jarFilePath, \"UTF-8\");\n\t\tjarFile = new File(jarFilePath);\n\t\t// }\n\t\treturn jarFile.getParentFile().getAbsolutePath();\n\t}",
"public static void main(String[] args) {\n String fileDirectoryPath = \"D:\\\\My WorkSpace\\\\New folder\\\\FBCO Worklist\";\n String[] sysEnvDetails = {\"SrcSystem\", \"SrcEnv\", \"TgtSystem\", \"TgtEnv\"};\n File dir = new File(fileDirectoryPath);\n search(\".*\\\\.sql\", dir, sysEnvDetails);\n\n }",
"public static String getRapidSmithPath() {\n String path = System.getenv(rapidSmithPathVariableName);\n if (path == null) {\n String nl = System.getProperty(\"line.separator\");\n MessageGenerator.briefErrorAndExit(\"Error: You do not have the \" + rapidSmithPathVariableName +\n \" set in your environment.\" + nl + \" Please set this environment variable to the \" +\n \"location of your rapidSmith project.\" + nl + \" For example: \" +\n rapidSmithPathVariableName + \"=\" + \"/home/fred/workspace/rapidSmith\");\n }\n if (path.endsWith(File.separator)) {\n path.substring(0, path.length() - 1);\n }\n return path;\n }",
"public String getWorkRelativePath() {\n return getWorkRelativePath(testURL);\n }",
"public File getProgramTbLoadersDir() {\n return pathsProvider.getProgramTbLoadersDir();\n }",
"@Override\n\tpublic String getExecutingProgramName() throws RemoteException {\n\t return null;\n\t}",
"private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }",
"public File getExecutableWorkDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile workDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn workDir;\r\n\t}",
"String getEnvironment();",
"public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }",
"public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }",
"public File getExecutableWorkProjectDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile worksDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn worksDir;\r\n\t}",
"static synchronized String[] startup(String[] cmdArgs, URL r10plugins, String r10app, String metaPath) throws Exception {\n \n \t\t// if BootLoader was invoked directly (rather than via Main), it is possible\n \t\t// to have the plugin-path and application set in 2 ways: (1) via an explicit\n \t\t// argument on the invocation method, or (2) via a command line argument (passed\n \t\t// into this method as the argument String[]). If specified, the explicit\n \t\t// values are used even if the command line arguments were specified as well.\n \t\tcmdPlugins = r10plugins; // R1.0 compatibility\n \t\tcmdApplication = r10app; // R1.0 compatibility\n \n \t\t// process command line arguments\n \t\tString[] passthruArgs = processCommandLine(cmdArgs);\n \t\tif (cmdDev)\n \t\t\tcmdNoUpdate = true; // force -noupdate when in dev mode (eg. PDE)\n \n \t\t// create current configuration\n \t\tif (currentPlatformConfiguration == null)\n \t\t\tcurrentPlatformConfiguration = new PlatformConfiguration(cmdConfiguration, metaPath, cmdPlugins);\n \n \t\t// check if we will be forcing reconciliation\n \t\tpassthruArgs = checkForFeatureChanges(passthruArgs, currentPlatformConfiguration);\n \n \t\t// check if we should indicate new changes\n \t\tpassthruArgs = checkForNewUpdates(currentPlatformConfiguration, passthruArgs);\n \n \t\treturn passthruArgs;\n \t}",
"private String retrieveWorkSpaceFileLoc(String fileName) {\n ArrayList<String> regResourceProjects = loadRegistryResourceProjects();\n boolean fileExists = false;\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n String folder = workspace.getRoot().getLocation().toFile().getPath().toString();\n String resourceFilePath = null;\n for (String regResourceProject : regResourceProjects) {\n resourceFilePath = folder + File.separator + regResourceProject + File.separator +\n fileName;\n File resourceFile = new File(resourceFilePath);\n if (resourceFile.exists()) {\n fileExists = true;\n break;\n }\n }\n if (!fileExists) {\n displayUserError(RESGISTRY_RESOURCE_RETRIVING_ERROR, NO_SUCH_RESOURCE_EXISTS);\n }\n return resourceFilePath;\n }",
"private static void testRunHardcodedCmd() {\n\t\tString[] cmdArray = { \"./runAsUser/runAsUser.exe\", \"c:\\\\procesos\", \"martin.zaragoza@ACCUSYSARGBSAS\", \"Marzo2015\", \"\\\"C:\\\\WINDOWS\\\\system32\\\\cmd.exe\\\"\",\n\t\t\t\t\"\\\"/c a.exe 1\\\"\" };\n\t\ttry {\n\t\t\tFile wrkDir = new File(\"c:\\\\procesos\");\n\n\t\t\tProcess process = Runtime.getRuntime().exec(cmdArray, null, wrkDir);\n\t\t\tprintStdout(process.getInputStream());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }",
"public void build(@NonNull CommandLineRunner launcher)\n throws IOException, InterruptedException, LoggedErrorException {\n FileGatherer fileGatherer = new FileGatherer();\n SourceSearcher searcher = new SourceSearcher(mSourceFolders, \"rs\", \"fs\");\n searcher.setUseExecutor(false);\n searcher.search(fileGatherer);\n\n List<File> renderscriptFiles = fileGatherer.getFiles();\n\n if (renderscriptFiles.isEmpty()) {\n return;\n }\n\n // get the env var\n Map<String, String> env = Maps.newHashMap();\n if (SdkConstants.CURRENT_PLATFORM == SdkConstants.PLATFORM_DARWIN) {\n env.put(\"DYLD_LIBRARY_PATH\", mBuildToolInfo.getLocation().getAbsolutePath());\n } else if (SdkConstants.CURRENT_PLATFORM == SdkConstants.PLATFORM_LINUX) {\n env.put(\"LD_LIBRARY_PATH\", mBuildToolInfo.getLocation().getAbsolutePath());\n }\n\n doMainCompilation(renderscriptFiles, launcher, env);\n\n if (mSupportMode) {\n createSupportFiles(launcher, env);\n }\n }"
]
| [
"0.5519091",
"0.54975045",
"0.5410083",
"0.5336622",
"0.5256367",
"0.5212604",
"0.5181548",
"0.51689607",
"0.5163847",
"0.51011384",
"0.50869673",
"0.5055581",
"0.50192964",
"0.49635857",
"0.49528694",
"0.4950895",
"0.49221584",
"0.4864525",
"0.4849541",
"0.4835941",
"0.48202726",
"0.47864428",
"0.47862542",
"0.47814175",
"0.4775168",
"0.47664917",
"0.4757058",
"0.47243553",
"0.4703909",
"0.468311",
"0.46715012",
"0.46616068",
"0.46521425",
"0.46476623",
"0.4642567",
"0.46313494",
"0.46199897",
"0.4619726",
"0.46186873",
"0.4607409",
"0.4601698",
"0.4592537",
"0.45817158",
"0.45806718",
"0.45765352",
"0.45742893",
"0.45532474",
"0.45525098",
"0.45473486",
"0.45427844",
"0.45425284",
"0.45371056",
"0.45317125",
"0.45239073",
"0.45133343",
"0.45063922",
"0.45053867",
"0.45009464",
"0.44923857",
"0.44884884",
"0.44862804",
"0.448243",
"0.44696888",
"0.44680935",
"0.4446327",
"0.4434078",
"0.44339415",
"0.4432375",
"0.44151622",
"0.44089842",
"0.4389654",
"0.43892092",
"0.43856835",
"0.4383808",
"0.43817267",
"0.43702132",
"0.43696904",
"0.43694085",
"0.4364101",
"0.43634915",
"0.43614385",
"0.4360525",
"0.43569657",
"0.43549505",
"0.43544802",
"0.43544626",
"0.43454114",
"0.4337883",
"0.43327877",
"0.4332458",
"0.43287718",
"0.4317506",
"0.43164378",
"0.4309858",
"0.4300469",
"0.429841",
"0.4296205",
"0.42899615",
"0.42775807",
"0.4275288"
]
| 0.6881935 | 0 |
[Durga,CEO,30000.000000,Hyderabad] String string = String.format("%s,%s,%f,%s", name, designation, salary, city); [Durga,CEO,30000.00,Hyderabad] String string = String.format("%s,%s,%.2f,%s", name, designation, salary, city); [Durga,CEO,30000.00,Hyderabad, THEJA,COO,29000.00,Bangalore] String string = String.format("%s,%s,%.2f,%s", name, designation, salary, city); | @Override
public String toString() {
// [Durga,CEO,30000.00,Hyderabad, THEJA,COO,29000.00,Bangalore]
// String string = String.format("%s,%s,%.2f,%s", name, designation, salary, city);
String string = String.format("(%s,%s,%.2f,%s)", name, designation, salary, city);
return string;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String StringifyBody(String[] line , double... args){\n\n String output = String.format(\"%-20s %-20s\" , line[0] , line[1]);\n\n for(int i = 0; i < line.length - 2 ;i++){\n output += String.format(\"%-10s\",line[2 + i]); // Skip the first two element City & Country\n\n }\n for (double element: args) { //args is again for the total\n output += String.format(\"%-10.1f\" ,element );\n }\n\n return output;\n }",
"public static void main(String[] args) {\n\n double i = 47456.23456;\n String r1 = String.format(\"i have %,6.2f\", i);\n System.out.println(r1);\n String r2 = String.format(\"i have %,6.1f\", 4.12);\n System.out.println(r2);\n String r3 = String.format(\"i have %c\", 42);\n System.out.println(r3);\n String r4 = String.format(\"i have %x\", 42);\n System.out.println(r4);\n\n\n }",
"private String format(ArrayList<Location> locs) {\n String res = \"\";\n for (Location loc : locs) {\n res += loc.getLatitude() + \"-\" + loc.getLongitude() + \";\";\n }\n return res;\n }",
"public static void main( String [] args ) \n {\n String string1 = String.format(\"%, d\", 1000000000); \n System.out.println(string1);\n\n // ---------------- Number formatting example 2 -----------------------\n String string2 = String.format(\"I have %.2f bugs to fix\", 476578.09876); \n System.out.println(string2);\n\n // ---------------- Number formatting example 3 -----------------------\n String string3 = String.format(\"I have %,.2f bugs to fix\", 476578.09876); \n System.out.println(string3);\n\n // ---------------- Number formatting example 4 -----------------------\n String string4 = String.format(\"The rank is %,d out of %,.2f\", 18972653, 1897263.877837);\n System.out.println(string4);\n\n // ------------------ Date formatting example 1 -----------------------\n Date date1 = new Date();\n\n String string5 = String.format(\"Today is %tc - got that sir?\", date1);\n System.out.println(string5);\n\n // ------------------ Date formatting example 2 -----------------------\n System.out.println(String.format(\"%tA, %<tB %<td\", new Date()));\n\n\n }",
"public static String stringFormat(String format, Object... objs) {\n\n String retVal = \"\";\n\n Pattern p = Pattern.compile(\"([{][^}]*[}])\");\n\n Matcher m = p.matcher(format);\n\n String individualFormat;\n int order = -1;\n int pos = -1;\n\n //loc_re.match(format);\n\n retVal = format;\n\n int loc_Conta = 0;\n\n while (m.find()) {\n\n if (m.group().length() == 0) {\n continue;\n }\n\n pos = m.group().indexOf(\":\");\n\n if (pos > 0) {\n individualFormat = m.group().substring(pos + 1, m.group().length() - pos + 1);\n\n order = Integer.parseInt(m.group().substring(1, pos));\n\n //Logger.getLogger(GeneralFunc.class).log(Level.DEBUG, \"individualFormat \" + individualFormat + \"orden: \" + order);\n\n retVal = retVal.replace(m.group(), formatObject(objs[order], individualFormat, '.'));\n } else {\n retVal = retVal.replace(m.group(), formatObject(objs[Integer.parseInt(m.group().substring(1, m.group().length() - 1))], \"\", '.'));\n }\n\n loc_Conta++;\n }\n\n\n return retVal;\n }",
"public static void test000(String[] args) throws IOException\n {\n\n\n //System.out.println(sql_insert_shipto_template);\n\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SALES_ORGANIZATION_CODE%\", \"261\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%DC_SHORTNAME%\", \"PF\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SHIPTO_CODE%\", \"10156409\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%PRODUCT_CODE%\", \"10104574\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%STARTDATE%\", \"01.02.2014\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%FINISHDATE%\", \"31.12.9999\");\n\n\n // String test = \"1\\t2\\t3\\n4\\t5\\t6\";\n\n String test = \"SO;SHIPTO;SHIPTO;DCSHORT;REP;GRD;Name;start date;end date\\n\" +\n \"261;10156405PF;10156405;PF;249394;10104570;A.KORKUNOV DARK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"261;10156405CH;10156405;CH;249410;10104542;A.KORKUNOV MILK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"377;10156409PF;10156409;PF;249399;10104574;A.KORKUNOV DARK ALMOND 5*10*100G;07.10.2014;31.12.9999\\n\";\n\n\n //CSVParser parser = CSVParser.parse(test, CSVFormat.newFormat(';'));\n File file = new File(\"c:\\\\MATDET_SHIPTO_EXAMPLE.csv\");\n CSVParser parser = CSVParser.parse(file, java.nio.charset.Charset.defaultCharset(), CSVFormat.newFormat(';'));\n\n int rownum = 0;\n for (CSVRecord strings : parser)\n {\n\n if (rownum++ == 0)\n continue;\n String SO = strings.get(0);\n String SHIPTO = strings.get(2);\n String DCSHORT = strings.get(3);\n //String REP = strings.get(4);\n String PRODUCT = strings.get(5);\n String START = strings.get(7);\n String END = strings.get(8);\n\n String temp = SQL_INSERT_TMATDET_SHIPTO_TEMPLATE;\n temp = temp.replaceAll(\"%SALES_ORGANIZATION_CODE%\", SO);\n temp = temp.replaceAll(\"%DC_SHORTNAME%\", DCSHORT);\n temp = temp.replaceAll(\"%SHIPTO_CODE%\", SHIPTO);\n temp = temp.replaceAll(\"%PRODUCT_CODE%\", PRODUCT);\n temp = temp.replaceAll(\"%STARTDATE%\", START);\n temp = temp.replaceAll(\"%FINISHDATE%\", END);\n\n\n System.out.println(temp);\n }\n\n System.out.println(\"rows=\" + rownum);\n\n\n// CsvParser parser = new CsvParserImpl();\n// CSV\n// parser.\n// List parsed = parser.parse(\"1\\t2\\t3\\n4\\t5\\t6\");\n// System.out.println(parsed.get(0));\n\n //System.out.println(sql_insert_shipto_template);\n\n }",
"public static String formatCommaString(String text){\r\n\t\tString[] arr = text.split(\",\");\r\n\t\tString result=\"\";\r\n\t\tfor(String s: arr){\r\n\t\t\tif(!\"\".equalsIgnoreCase(s.trim())){\r\n\t\t\t\tresult+=s+\",\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(result.endsWith(\",\")){\r\n\t\t\tresult=result.substring(0,result.length()-1);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private String commaDelimited(String strs[]) {\n StringBuffer sb = new StringBuffer();\n if (strs.length > 0) {\n sb.append(Utils.encToURL(strs[0]));\n for (int i=1;i<strs.length;i++) sb.append(\",\" + Utils.encToURL(strs[i]));\n }\n return sb.toString();\n }",
"private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }",
"public static void main(String[] args) {\n\t\tDecimalFormat k_10df = new DecimalFormat(\"###,###,###,###,###\");\n //숫자 5 이름 32 가격 15 수량 2 총가격 15\n\t\tString[] k_10itemname = { // item이름을 위한 배열이다\n\t\t\t\t\"01 테스트라면555 3,000 1 3,000\", \n\t\t\t\t\"02* 맛asdadad포카칩 1,000 2 2,000\",\n\t\t\t\t\"03 ddd초코센드위치ss위치 1,000 2 2,000\", \n\t\t\t\t\"04 피시방햄버거는맛없어 1,000 12 13,000\",//틀린거 \n\t\t\t\t\"05* 치즈없는피자 111,000 2 223,000\", \n\t\t\t\t\"06 맛있는포카칩 1,000 2 2,000\", \n\t\t\t\t\"07 뉴질랜드산항이 11,000 2 2,000\", \n\t\t\t\t\"08* 오늘의커피아이스 7,000 2 12,000\", //틀린거 \n\t\t\t\t\"09 시티위아아 1,000 2 2,000\", \n\t\t\t\t\"10 가나가맛있어 1,000 2 2,000\", \n\t\t\t\t\"11 스물두번째과자 800 2 1,600\", \n\t\t\t\t\"12 (싸이버버세트라지 4,000 2 8,000\", \n\t\t\t\t\"13 aaa프링클스오리지널 1,000 2 2,000\",\n\t\t\t\t\"14 55포카칩어니언맛 1,000 2 2,000\", \n\t\t\t\t\"15 떡없는떡볶이 1,000 6 6,000\", \n\t\t\t\t\"16* 호식이두마리치킨 1,000 2 2,000\", \n\t\t\t\t\"17* 땅땅치킨매운맛 3,000 2 6,000\", \n\t\t\t\t\"18 라면은역시매고랭 1,000 2 2,000\", \n\t\t\t\t\"19 된장찌개맛사탕 1,000 2 2,000\", \n\t\t\t\t\"20 삼겹살맛치토스 1,000 2 2,000\", \n\t\t\t\t\"21* 나홀로집에세트 1,000 2 2,000\", \n\t\t\t\t\"22 자바칩세트는맛없다 1,000 2 2,000\",\n\t\t\t\t\"23* 오레오레오레오 1,000 2 2,000\", \n\t\t\t\t\"24 자바에이드 1,000 2 2,000\", \n\t\t\t\t\"25 자이언트자바 1,000 2 2,000\", \n\t\t\t\t\"26 이건오떡오떡 2,000 10 20,100\", // 틀린거 \n\t\t\t\t\"27 마지막과자세트 1,000 11 11,000\", \n\t\t\t\t\"28* 차가운삼각김밥 1,000 2 2,000\", \n\t\t\t\t\"29 신라면짜장맛 1,000 2 2,000\", \n\t\t\t\t\"30 맛탕과김치 1,000 2 2,000\" }; \n\t\t\n\t\tfor (int k_10_i = 0; k_10_i < k_10itemname.length; k_10_i++) {\n\t\t\tString k_10_ToString = k_10itemname[k_10_i].toString();\n\t\t\tbyte [] k_10_bb = k_10_ToString.getBytes();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString k_10_number = new String (k_10_bb,0,5);\t\t\t\t\t\t\t\t\t\t// 1번째부터 5바이트만큼 크기로 정의\n\t\t\tString k_10_name = new String (k_10_bb,5,33);\t\t\t\t\t\t\t\t\t\t// 6번째부터 33바이트만큼 크기로 정의\n\t\t\tString k_10_price1 = new String (k_10_bb,35,15);\t\t\t\t\t\t\t\t\t// 36번째부터 15바이트만큼 크기로 정의\n\t\t\tString k_10_units1 = new String (k_10_bb,55,10);\t\t\t\t\t\t\t\t\t// 56번째부터 10바이트만큼 크기로 정의\n\t\t\tString k_10_totalprice1 = new String (k_10_bb,60,14);\t\t\t\t\t\t\t\t// 61번째부터 14바이트만큼 크기로 정의\n\t\t\t\n\t\t\tint k_10_price = Integer.parseInt(k_10_price1.replace(\",\", \"\").trim());\t\t\t\t// int로 바꾸고 , 제거 후 공백도 제거\n\t\t\tint k_10_units = Integer.parseInt(k_10_units1.replace(\",\", \"\").trim());\t\t\t\t// int로 바꾸고 , 제거 후 공백도 제거\n\t\t\t\n\t\t\t//String price1 = k_10itemname[i].substring(33, 48);\n\t\t\t\n\t\t\t//String units1 = k_10itemname[i].substring(45, 58);\n\n\t\t\tint k_10_totalprice = Integer.parseInt(k_10_totalprice1.replace(\",\", \"\").trim()); // int로 바꾸고 , 제거 후 공백도 제거\n\t\t\t\n\t\t\tif(k_10_price * k_10_units != k_10_totalprice) {\n\t\t\t\tSystem.out.println(\"******************************\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ( ) 출력\n\t\t\t\tSystem.out.printf(\"오류[%s%s%10s%10s%10s]\\n\", k_10_number, k_10_name, k_10_price1, k_10_units1, k_10df.format(k_10_totalprice));\t\t\t// ( ) 출력\n\t\t\t\tSystem.out.printf(\"수정[%s%s%10s%10s%10s]\\n\", k_10_number, k_10_name, k_10_price1, k_10_units1, k_10df.format(k_10_price * k_10_units));\t// ( ) 출력\n\t\t\t\tSystem.out.println(\"******************************\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ( ) 출력\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\n\t\t\n\t}",
"public String toString(){\n return String.format(\"%s, %s, %s, %s, %s, %s\",make,model,variant, year, quantity,price);\n }",
"public static String buildCommaSeperatedValues(ArrayList input) throws Exception{\r\n\t\tString retString = \"\";\r\n\t\tif(input != null){\r\n\t\tfor(int i=0; i<input.size(); i++){\r\n\t\t\tretString = retString + \",\" +input.get(i);\r\n\t\t}\r\n\t\tretString = retString.substring(1);\r\n\t\t}\r\n\t\treturn retString;\t\t\r\n\t}",
"private static void format2(String[] l) {\n\t\tString[] listContents = l;\n\t\tArrayList<Person> personList = new ArrayList<Person>();\n\n\t\tfor (int i = 0; i < (listContents.length / 9); i++) {\n\t\t\tPerson person = new Person();\n\n\t\t\tperson.setFirstName(listContents[i * 9]);\n\t\t\tperson.setLastName(listContents[1 + i * 9]);\n\t\t\tperson.setStartDate(listContents[2 + i * 9]);\n\t\t\tperson.setAddress(listContents[3 + i * 9]);\n\t\t\tperson.setAptNum(listContents[4 + i * 9]);\n\t\t\tperson.setCity(listContents[5 + i * 9]);\n\t\t\tperson.setState(listContents[6 + i * 9]);\n\t\t\tperson.setCountry(listContents[7 + i * 9]);\n\t\t\tperson.setZipCode(listContents[8 + i * 9]);\n\n\t\t\tpersonList.add(person);\n\t\t}\n\t\tselectSortingOption(personList);\n\t}",
"private ARXOrderedString(String[] format){\r\n if (format.length == 0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.length; i++){\r\n if (this.order.put(format[i], i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format[i]+\"'\");\r\n }\r\n }\r\n }\r\n }",
"void LoesungAusgeben (String strA) { createOutput ()\n //\n // println(\"strA = \"+strA);\n //\n String[] list1 = { \n strA\n };\n list1=split(strA, ',');\n // now write the strings to a file, each on a separate line\n // saveStrings (\"c:\\\\soft\\\\SolProcess\\\\result\" + Date1() + \"_\" + Now1() + \".txt\", list1);\n // saveStrings (\"result\" + Date1() + \"_\" + Now1() + \".txt\", list1);\n saveStrings (\"result.txt\", list1);\n}",
"private String createValues() {\n String values = getLatitude(\"\");\n if (getLongitude() != FLOATNULL) {\n values = values + \",\" + getLongitude(\"\");\n } // if getLongitude\n if (getDepth() != FLOATNULL) {\n values = values + \",\" + getDepth(\"\");\n } // if getDepth\n if (getTemperatureMin() != FLOATNULL) {\n values = values + \",\" + getTemperatureMin(\"\");\n } // if getTemperatureMin\n if (getTemperatureMax() != FLOATNULL) {\n values = values + \",\" + getTemperatureMax(\"\");\n } // if getTemperatureMax\n if (getSalinityMin() != FLOATNULL) {\n values = values + \",\" + getSalinityMin(\"\");\n } // if getSalinityMin\n if (getSalinityMax() != FLOATNULL) {\n values = values + \",\" + getSalinityMax(\"\");\n } // if getSalinityMax\n if (getOxygenMin() != FLOATNULL) {\n values = values + \",\" + getOxygenMin(\"\");\n } // if getOxygenMin\n if (getOxygenMax() != FLOATNULL) {\n values = values + \",\" + getOxygenMax(\"\");\n } // if getOxygenMax\n if (getNitrateMin() != FLOATNULL) {\n values = values + \",\" + getNitrateMin(\"\");\n } // if getNitrateMin\n if (getNitrateMax() != FLOATNULL) {\n values = values + \",\" + getNitrateMax(\"\");\n } // if getNitrateMax\n if (getPhosphateMin() != FLOATNULL) {\n values = values + \",\" + getPhosphateMin(\"\");\n } // if getPhosphateMin\n if (getPhosphateMax() != FLOATNULL) {\n values = values + \",\" + getPhosphateMax(\"\");\n } // if getPhosphateMax\n if (getSilicateMin() != FLOATNULL) {\n values = values + \",\" + getSilicateMin(\"\");\n } // if getSilicateMin\n if (getSilicateMax() != FLOATNULL) {\n values = values + \",\" + getSilicateMax(\"\");\n } // if getSilicateMax\n if (getChlorophyllMin() != FLOATNULL) {\n values = values + \",\" + getChlorophyllMin(\"\");\n } // if getChlorophyllMin\n if (getChlorophyllMax() != FLOATNULL) {\n values = values + \",\" + getChlorophyllMax(\"\");\n } // if getChlorophyllMax\n if (dbg) System.out.println (\"<br>values = \" + values); // debug\n return values;\n }",
"private ARXOrderedString(List<String> format){\r\n if (format.size()==0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.size(); i++){\r\n if (this.order.put(format.get(i), i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format.get(i)+\"'\");\r\n }\r\n }\r\n }\r\n }",
"private static String StringifyHeader(int numberOfMonths , String[] MonthsNames , String... args) {//args is for total and any additions ..in case..\n String output = String.format(\"%-20s %-20s\" , \"City\" , \"Country\");\n\n for(int i = 0 ; i < numberOfMonths ; i++)\n output += String.format(\"%-10s\" ,MonthsNames[i] ); // print months in the first line : Jan Feb ....\n\n for (String element: args) { //args = ['total']\n output += String.format(\"%-10s\" ,element );\n }\n return output ;\n }",
"@Override \npublic String toString() { \n return String.format(\"%s: %s%n%s: $%,.2f; %s: %.2f\", \n \"commission nurse\", super.toString(), \n \"gross sales\", getGrossSales(), \n \"commission rate\", getCommissionRate()); \n}",
"public static void exampleStringJoiner() {\n\t\tStringJoiner example1 = new StringJoiner(\",\"); // passing comma(,) as delimiter\r\n\r\n\t\t// Adding values to StringJoiner\r\n\t\texample1.add(\"Rohini Example1\");\r\n\t\texample1.add(\"Alex Example1\");\r\n\t\texample1.add(\"Peter Example1\");\r\n\r\n\t\tSystem.out.println(\"Example 1 - passing comma(,) as delimiter ... \\n\" + example1);\r\n\t\t\r\n\t\t// Example 2 - passing comma(,) and square-brackets (adding prefix and suffix) as delimiter\r\n\t\tStringJoiner example2 = new StringJoiner(\":\", \"[\", \"]\"); // passing comma(,) and square-brackets as delimiter\r\n\r\n\t\t// Adding values to StringJoiner\r\n\t\texample2.add(\"Rohini Example2\");\r\n\t\texample2.add(\"Raheem Example2\");\r\n\t\tSystem.out.println(\"\\nExample 2 - passing comma(:) and square-brackets (adding prefix and suffix) as delimiter ... \\n\" + example2);\r\n\r\n\t\t// Example 3 - Merge Two StringJoiner\r\n\t\tStringJoiner merge = example1.merge(example2);\r\n\t\tSystem.out.println(\"\\nExample 3 - Merge Two StringJoiner ... \\n\" + merge);\r\n\t}",
"public String formatText(String resultString) {\n String outputString = \"\";\n\n resultString = resultString.substring(1); // removes first [\n String[] percents = resultString.split(\",\");\n\n for(int i = 0; i < percents.length && i < 3; i++) { // at most top 3 predictions\n String prediction = percents[i];\n Log.d(\"displayPredictionResult\", \"prediction @\" + i + \" \" + prediction);\n\n String digit = prediction.substring(prediction.indexOf('[') + 1, prediction.indexOf(']'));\n String percent = prediction.substring(prediction.indexOf('(') + 1, prediction.indexOf(')'));\n // outputString += \"There is a \" + percent + \" chance the number is \" + digit + '\\n';\n outputString += percent + \" chance the number is \" + digit + '\\n';\n }\n\n return outputString.substring(0, outputString.length() - 1); // removes last new line character\n }",
"public void splitData(String fullData){\n\t\t\n\t\tDictionary<String> strings = new Dictionary<>();\n\t\tDictionary<Float> floats = new Dictionary<>();\n\t\tDictionary<Boolean> booleans = new Dictionary<>();\n\t\t\n\t\tList<String> lines = new ArrayList<>(Arrays.asList(fullData.split(\"\\n\")));\n\t\t\n\t\tString[] labels = lines.get(0).split(\",\");\n\t\tlines.remove(0);\n\t\t\n\t\tfor(String line: lines){\n\t\t\tString[] data = line.split(\",\");\n\t\t\t\n\t\t\tfor(int i=0;i<data.length;i++){\n\t\t\t\t\n\t\t\t\t//placeholder since current data has no actual booleans\n\t\t\t\tif(labels[i].equals(\"autoBaselineGroup\") || labels[i].equals(\"autoGear\") || labels[i].equals(\"Did Climb\") || labels[i].equals(\"died\") || labels[i].equals(\"defense\")){\n\t\t\t\t\tif(data[i].equals(\"1\")){\n\t\t\t\t\t\tbooleans.add(labels[i], true);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tbooleans.add(labels[i], false);\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//check what type it is\n\t\t\t\tSystem.out.println(number);\n\t\t\t\ttry{\n\t\t\t\t\tswitch(labels[i]){\n\t\t\t\t\tcase \"Round\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase \"Date and Time Of Match\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase \"UUID\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase \"end\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfloats.add(labels[i], Float.parseFloat(data[i]));\n\t\t\t\t\tcontinue;\n\t\t\t\t} catch(NumberFormatException e){\n\t\t\t\t\t//not an int, check for bool\n\t\t\t\t\t\n\t\t\t\t\tif(data[i].toLowerCase().contains(\"true\")){\n\t\t\t\t\t\tbooleans.add(labels[i], true);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(data[i].toLowerCase().contains(\"false\")){\n\t\t\t\t\t\tbooleans.add(labels[i], false);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//must be string\n\t\t\t\t\tdata[i] = \"\\n\\t\"+data[i];\n\t\t\t\t\tdata[i] = data[i].replace(\"|c\", \",\").replace(\"|n\", \"\\n\\t\").replace(\"||\", \"|\").replace(\"|q\", \"\\\"\").replace(\"|;\", \":\");\n\t\t\t\t\tstrings.add(labels[i], data[i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint matchNum = getMatchNum(line, labels);\n\t\t\t\n\t\t\tMatch r = new Match(number, matchNum, \"TIME\");\n\t\t\tr.setData(strings, floats, booleans);\n\t\t\tmatches.add(r);\n\t\t\t\n\t\t\tstrings = new Dictionary<>();\n\t\t\tfloats = new Dictionary<>();\n\t\t\tbooleans = new Dictionary<>();\n\t\t}\n\t}",
"public static void stringsJoining() {\n\n StringJoiner joiner = new StringJoiner(\" \", \"{\", \"}\");\n String result = joiner.add(\"Dorota\").add(\"is\").add(\"ill\").add(\"and\").add(\"stays\").add(\"home\").toString();\n System.out.println(result);\n }",
"public static void main(String[] args) {\n\t\tString record =\"px123,kingstone,340,1|3|4|1\";\n\t\tString record1 =\"px125,electronics,storege,pendrive,kingstone,340,1|3|4|1\";\n\t\tString record2 =\"px125,electronics,storege,pendrive,kingstone,340\";\n\t\tString what = \"\\\\d+,(\\\\d\\\\|*)+$\";\n\t\tPattern p=Pattern.compile(what);\n\t\tMatcher m=p.matcher(record);\n\t\tif(m.find())\n\t\t{\n\t\t\tSystem.out.println(\"correct\");\n\t\t\tString str[]=m.group().split(\",\");\n\t\t\tSystem.out.println(str[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\t\t}\n\t\t\n\t}",
"private static void format1(ArrayList<String> l) {\n\t\tArrayList<String> listContents = l;\n\t\tArrayList<Person> personList = new ArrayList<Person>();\n\t\tfor (int i = 0; i < listContents.size(); i++) {\n\t\t\tPerson person = new Person();\n\n\t\t\tperson.setFirstName(listContents.get(i).substring(0, 10).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setLastName(listContents.get(i).substring(10, 27).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setStartDate(listContents.get(i).substring(27, 35).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setAddress(listContents.get(i).substring(35, 45).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setAptNum(listContents.get(i).substring(45, 55).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setCity(listContents.get(i).substring(55, 65).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setState(listContents.get(i).substring(65, 67).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setCountry(listContents.get(i).substring(67, 70).replaceFirst(\"\\\\s++$\", \"\"));\n\t\t\tperson.setZipCode(listContents.get(i).substring(70, 80).replaceFirst(\"\\\\s++$\", \"\"));\n\n\t\t\tpersonList.add(person);\n\t\t}\n\t\tselectSortingOption(personList);\n\t}",
"public static void main(String[] args) throws IOException, ParseException {\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"C:\\\\Dev\\\\Demo\\\\Demo\\\\src\\\\main\\\\resources\\\\data\\\\USNationalParks.txt\"));\n\t\ttry {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t String line = \"\";\n\t\t String[] lineArray;\n\t\t \n\t\t Park park = new Park();\n\t\t \n\t\t \n\t\t \n\t\t ArrayList<Park> retArray = new ArrayList<Park>();\n\t\t while ((line = br.readLine()) != null) {\n\t\t \tpark = new Park();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\"); //2 Acadia\n\t\t\t park.setParkName(lineArray[2].substring(0, lineArray[2].indexOf('<')));\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); //2 Maine\n\t\t\t lineArray = line.split(\">\");\n\t\t\t park.setProvince(lineArray[2].substring(0, lineArray[2].indexOf('<')));\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine(); //19: \"44.35, -68.21\"\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setLatitude(lineArray[19].substring(0, 5));\n\t\t\t park.setLongitude(lineArray[19].substring(7, lineArray[19].indexOf('<')));\n\t\t\t \n\t\t\t \n\t\t\t line = br.readLine(); //4 February 26th, 1919\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setDateEstablished(stringToDate(lineArray[4].substring(0, lineArray[4].indexOf('<'))));\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); //3 347,389 acres '('\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setParkArea(NumberFormat.getNumberInstance(java.util.Locale.US).parse(lineArray[3].substring(0, lineArray[3].indexOf('a')-1)).intValue());\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); // 1 3,303,393 <\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setParkVisitors(NumberFormat.getNumberInstance(java.util.Locale.US).parse(lineArray[1].substring(0, lineArray[1].indexOf('<'))).intValue());\n\t\t\t \n\t\t\t line = br.readLine(); //skip for now\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t \n\n\t\t \n\t\t\t retArray.add(park);\n\t\t }\n\t\t \n\t\t for(Park p: retArray){\n\t\t \tSystem.out.println(\"Insert into parks(name, country, province, latitude, longitude, dtEst, parkArea, annualVisitors)\" + \"VALUES('\"+ p.getParkName()+\"',\"+ \"'United States','\"+p.getProvince() +\"','\"+ p.getLatitude()+\"','\" + p.getLongitude() + \"','\" + dateToString(p.getDateEstablished()) + \"',\" + p.getParkArea() +\",\"+ \t\t\t\tp.getParkVisitors()+\");\");\n\t\t \t//System.out.println();\n\t\t }\n\t\t} finally {\n\t\t br.close();\n\t\t}\n\t}",
"public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }",
"static public List<String> formatString(List<String> strings)\n\t{\n\t\tList<String> new_strings = new ArrayList<String>();\n\t\tfor(String s : strings)\n\t\t{\n\t\t\tnew_strings.add(StringUtilities.formatString(s));\n\t\t}\n\t\treturn new_strings;\n\t}",
"public void splitter(String values) {\n\n\t\tfor(int i=0; i < values.length(); i++) {\n\t\t\tnewString += values.charAt(i);\n\n\t\t\tif(semi == values.charAt(i)) {\n\t\t\t\tnewString = newString.replaceAll(\";\", \"\");\n\t\t\t\tnewString = newString.replaceAll(\"\\n\", \"\");\n\t\t\t\tsplittedString.add(newString);\n\t\t\t\tnewString = \"\";\n\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i < splittedString.size()-1; i++) {\n\t\t\tsection = splittedString.get(i);\n\t\t\tString[] dev = section.split(\",\");\n\t\t\tboolean validValues = true;\n\t\t\tfor(int x1 = 0; x1 < dev.length; x1+=3) {\n\t\t\t\tString xx1 = dev[x1];\n\t\t\t\tif(isInteger(xx1) && validValues) {\n\t\t\t\t\tx.add(Integer.parseInt(xx1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tfor(int y1= 1; y1 <dev.length; y1+=3) {\n\t\t\t\tString yy1 = dev[y1];\n\t\t\t\tif(isInteger(yy1) && validValues) {\n\t\t\t\t\ty.add(Integer.parseInt(yy1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tfor(int z1= 2; z1 <dev.length; z1+=3) {\n\t\t\t\tString zz1 = dev[z1];\n\t\t\t\tif(isInteger(zz1) && validValues) {\n\t\t\t\t\tz.add(Integer.parseInt(zz1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"private final static String cleanRecord3( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length +16]; // allow for all commas\n char letter;\n char lastLetter = 'a'; // init for complier\n int i2 = 0;\n\n for ( int i=0; i<ca.length; i++ ) {\n\n letter = ca[i];\n if ( letter == ',' ) { // if a comma\n\n if (lastLetter == ',') { // if 2 commas in a row\n\n ca2[i2] = '?'; // replace with a '?'\n i2++;\n }\n }\n\n ca2[i2] = letter; // copy this character to work area\n i2++;\n\n lastLetter = letter; // save last letter\n\n } // end of loop\n\n char[] ca3 = new char [i2];\n\n for ( int i=0; i<i2; i++ ) {\n letter = ca2[i]; // get from first array\n ca3[i] = letter; // move to correct size array\n }\n\n return new String (ca3);\n\n }",
"private static String createNewEntry(String minI, String minJ) {\n\t\tString first[] = minI.split(\",\");\n\t\tString second[] = minJ.split(\",\");\n\t\tArrayList<Integer> arr = new ArrayList<>();\n\t\tfor(int i=0;i<first.length;i++)\n\t\t\tarr.add(Integer.parseInt(first[i]));\n\t\tfor(int j=0;j<second.length;j++)\n\t\t\tarr.add(Integer.parseInt(second[j]));\n\t\tCollections.sort(arr);\n\t\tString result = arr.get(0)+\"\";\n\t\tfor(int i=1;i<arr.size();i++) {\n\t\t\tresult = result + \",\" + arr.get(i);\n\t\t}\n\t\treturn result;\n\t}",
"public static void main(String[] args) {\n List<String> names = new ArrayList<>();\n StringBuilder sb = new StringBuilder();\n\n names.add(\"melissa\");\n names.add(\"joile\");\n names.add(\"clemence\");\n names.add(\"daniko\");\n for (String name : names) {\n sb.append(name + \",\");\n }\n System.out.println(\"index of last , \" + sb.lastIndexOf(\",\"));\n sb.replace(sb.lastIndexOf(\",\"), sb.lastIndexOf(\",\")+1, \"\");\n System.out.println(\"sb = \" + sb);\n }",
"private static Object[] FormatString(Object[] testDataDetail){\n for (int i = 0; i < testDataDetail.length; i++){\n testDataDetail[i] = testDataDetail[i].toString().trim();\n if (testDataDetail[i].toString().startsWith(\"\\\"\")) {\n testDataDetail[i] = testDataDetail[i].toString().substring(1);\n }\n if (testDataDetail[i].toString().endsWith(\"\\\"\")) {\n testDataDetail[i] = testDataDetail[i].toString().substring(0, testDataDetail[i].toString().length() - 1);\n }\n testDataDetail[i] = testDataDetail[i].toString().trim();\n }\n return testDataDetail;\n }",
"public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}",
"public String formatoDecimales(double valorInicial, int numeroDecimales ,int espacios) { \n String number = String.format(\"%.\"+numeroDecimales+\"f\", valorInicial);\n String str = String.valueOf(number);\n String num = str.substring(0, str.indexOf(',')); \n String numDec = str.substring(str.indexOf(',') + 1);\n \n for (int i = num.length(); i < espacios; i++) {\n num = \" \" + num;\n }\n \n for (int i = numDec.length(); i < espacios; i++) {\n numDec = numDec + \" \";\n }\n \n return num +\".\" + numDec;\n }",
"private void createLocations(ArrayList<String> locations) {\n for (String line : locations) {\n String[] entry = line.split(\",\");\n for(int i = 0; i < entry.length; i++) {\n Log.i(\"ec\", entry[i]);\n Log.d(\"debugExtra\", entry[i]);\n }\n //Log.i(\"entry length\", Integer.toString(entry.length));\n if (entry.length == 5) {\n locationList.add(new Location(entry[0], Double.parseDouble(entry[1]), Double.parseDouble(entry[2]), entry[3], entry[4]));\n }\n }\n }",
"public static void main(String[] D_Stark) {String[] y ={\n\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\",\"\",\"\",\"\",\"\",\n\"\"};\n\nfor( int i =0;i<2;++i){\n\nfor(String h:y){c(h);}}}",
"public static String stockSummary(String[] lstOfArt, String[] lstOf1stLetter) {\n // your code here\n //on transforme listofArt en Map cle valeur avec le = premier char du livre et valeur somme des valeurs\n Map<String, Integer> collect = Arrays.stream(lstOfArt)\n .map(s -> s.split(\" \"))\n .filter(strings -> Arrays.asList(lstOf1stLetter).contains(Character.toString(strings[0].charAt(0))))\n .collect(Collectors.toMap(s -> Character.toString(s[0].charAt(0)), s -> Integer.parseInt(s[1]), (integer, integer2) -> integer + integer2));\n\n //pareil qu'au dessus mais en mieux et plus concis\n Map<String,Integer> categoryQuantities = Arrays.stream(lstOfArt)\n .collect(Collectors.groupingBy(book -> book.substring(0,1), Collectors.summingInt(book -> Integer.parseInt(book.split(\" \")[1]))));\n\n //on boucle sur le tableau des categories et pour chaque categorie on recupere la quantité dans la Map\n //generée precedemment ou 0 si null et on fabrique le string au bon format\n return collect.isEmpty() ? \"\" : Arrays.stream(lstOf1stLetter)\n .map(initial -> String.format(\"(%s : %d)\", initial, collect.getOrDefault(initial, 0)))\n .collect(Collectors.joining(\" - \"));\n }",
"@ParameterizedTest\n @CsvFileSource(files = \"src/test/resources/params/shoppinglist3.csv\",\n numLinesToSkip = 1, delimiterString = \"___\") // Delimiter string in this case.\n public void csvFileSource_StringDoubleIntStringString3(String name,\n double price, int qty, String uom,\n String provider){\n System.out.println(\"name = \" + name + \", price = \" + price + \", qty = \" + qty\n + \", uom = \" + uom + \", provider = \" + provider);\n }",
"public static void main(String[] args) {\n\t\tdouble d = 1234567.437;\n\n\t\tDecimalFormat one = new DecimalFormat(\"###,###,###.###\");\n\t\tSystem.out.println(one.format(d)); // 1,234,567.437\n\n\t\tDecimalFormat two = new DecimalFormat(\"000,000,000.00000\");\n\t\tSystem.out.println(two.format(d)); // 001,234,567.43700\n\n\t\tDecimalFormat three = new DecimalFormat(\"$#,###,###.##\");\n\t\tSystem.out.println(three.format(d)); // $1,234,567.44\n\t}",
"private static String formatStrings(Set<String> strings) {\n\t\tif (strings != null && !strings.isEmpty()) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor (String str : strings) {\n\t\t\t\tsb.append(':').append(escape(str, \"=;:\"));\n\t\t\t}\n\n\t\t\treturn sb.substring(1);\n\t\t}\n\t\telse {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String outputFormatter(ArrayList<String> output){\r\n\t\treturn output.toString().replace(\",\", \"\").replace(\"[\", \"\").replace(\"]\", \"\");\r\n\t}",
"public static String insertCommas(String strString)\r\n {\r\n StringBuffer sb = new StringBuffer(strString);\r\n for (int i = sb.length() - 3; i > 0; i -= 3)\r\n {\r\n sb.insert(i, ',');\r\n }\r\n return sb.toString();\r\n }",
"public static String formatLabel(String lbl){\n\t\t\n\t\t// XXX There is be a better way to do this...\n\t\tlbl = lbl.replaceAll(\",\", \"COMMA\");\n\t\tlbl = lbl.replaceAll(\"\\\\$\", \"DOL\");\n\t\tlbl = lbl.replaceAll(\"\\\\?\", \"QMARK\");\n\t\tlbl = lbl.replaceAll(\"\\\\!\", \"EXCMARK\");\n\t\tlbl = lbl.replaceAll(\"'\", \"\");\n\t\t\n\t\treturn lbl;\n\t}",
"private String locateToUsFormat(Location location) {\n\t\t\n\t\tString latitudeString = Location.convert(location.getLatitude(), Location.FORMAT_DEGREES);\n\t\tString longitudeString = Location.convert(location.getLongitude(), Location.FORMAT_DEGREES);\n\t\treturn latitudeString.replace(',', '.') + \",\" + longitudeString.replace(',', '.');\n\t}",
"private ARXOrderedString(String format){\r\n if (format==null || format.equals(\"Default\") || format.equals(\"\")) {\r\n this.order = null;\r\n } else {\r\n try {\r\n this.order = new HashMap<String, Integer>(); \r\n BufferedReader reader = new BufferedReader(new StringReader(format));\r\n int index = 0;\r\n String line = reader.readLine();\r\n while (line != null) {\r\n if (this.order.put(line, index) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+line+\"'\");\r\n }\r\n line = reader.readLine();\r\n index++;\r\n }\r\n reader.close();\r\n } catch (IOException e) {\r\n throw new IllegalArgumentException(\"Error reading input data\");\r\n }\r\n }\r\n }",
"private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }",
"public String SplitCurrencyValueString(String str) {\n\t\t\n\t\tString temp = null;\n\t\tPattern pattern;\n\n\t\tif (str.contains(\",\") && str.contains(\".\")) {\n\t\t\tpattern = Pattern.compile(\"(\\\\d{0,9},)?\\\\d{0,9}\\\\.\\\\d{0,9}\");\n\t\t\tMatcher m = pattern.matcher(str);\n\t\t\twhile (m.find()) {\n\t\t\t\tif (!m.group().isEmpty())\n\t\t\t\t\ttemp = m.group().replaceAll(\",\", \"\");\n\t\t\t}\n\t\t} else if (str.contains(\",\")) {\n\t\t\tpattern = Pattern.compile(\"(\\\\d{0,9},)?\\\\d{0,9}\");\n\t\t\tMatcher m = pattern.matcher(str);\n\t\t\twhile (m.find()) {\n\t\t\t\tif (m.group() != null)\n\t\t\t\t\ttemp = m.group().replaceAll(\",\", \"\");\n\t\t\t}\n\t\t} else if (str.contains(\".\")) {\n\t\t\tpattern = Pattern.compile(\"(\\\\d+(?:\\\\.\\\\d+)?)\");\n\t\t\tMatcher m = pattern.matcher(str);\n\t\t\twhile (m.find()) {\n\t\t\t\tif (m.group() != null)\n\t\t\t\t\ttemp = m.group();\n\t\t\t}\n\t\t} else {\n\t\t\tpattern = Pattern.compile(\"(\\\\d+)\");\n\t\t\tMatcher m = pattern.matcher(str);\n\t\t\twhile (m.find()) {\n\t\t\t\tif (m.group() != null)\n\t\t\t\t\ttemp = m.group();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(temp);\n\t\treturn df.format(Double.parseDouble(temp));\n\n\t}",
"public static String toString(String format, double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.format(format, array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"public static void main(String[] args) {\n\t\tStringJoiner joiner=new StringJoiner(\" and \",\"{\",\"}\");\n\t\tjoiner.add(\"python\");\n\t\tjoiner.add(\"java\");\n\t\tjoiner.add(\"c\");\n\t\tjoiner.add(\"c++\").add(\"html\").add(\"css\").add(\"js\");\n\t\tString s=joiner.toString();\n\t\tSystem.out.println(s);\n\t\tString s1=\"asd ad ad vxczvz\";\n\t\tSystem.out.println(s1.lastIndexOf(\" \"));\n\t\tSystem.out.println(s1.substring(s1.lastIndexOf(\" \")));\n\t\t\n\t\tStringJoiner joiner1=new StringJoiner(\" and \",\"[\",\"]\");\n\t\tjoiner1.add(\"asdsa\").add(\"rgrg\").add(\"grger\");\n\t\tSystem.out.println(joiner1);\n\t\tjoiner.merge(joiner1);\n\t\tSystem.out.println(joiner);\n\t}",
"public void prueba(){\r\n //Float f = Float.parseFloat(jtfValor.getText());\r\n String s = \"100.000,5\";\r\n \r\n String d = s.replace(\".\",\"\");\r\n // s.replaceAll(\",\", \".\");\r\n // s.trim();\r\n System.out.println(d);\r\n \r\n }",
"@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"Proper string format\", basic.toString(), \"5, 5\");\n\t}",
"public static String spf (String format, Object[] args) {\n\n StringBuffer result = new StringBuffer(format.length() + args.length*20);\n\n int current_arg = 0;\n for (int i = 0; i < format.length(); i++) {\n char c = format.charAt(i);\n\n if (c != '%') {\n result.append (c);\n } else {\n i++;\n char cmd = format.charAt(i);\n if (cmd == '%')\n result.append ('%');\n else if (cmd == 's') {\n if (args[current_arg] == null)\n result.append (\"null\");\n else {\n Object arg = args[current_arg];\n if (arg instanceof long[])\n result.append (ArraysMDE.toString ((long[])arg));\n else if (arg instanceof String[])\n result.append (ArraysMDE.toString ((String[])arg));\n else if (arg instanceof double[])\n result.append (ArraysMDE.toString ((double[])arg));\n else\n result.append (arg.toString());\n }\n current_arg++;\n }\n }\n }\n\n if (current_arg != args.length)\n throw new RuntimeException\n (spf (\"spf: only %s of %s arguments used up: [result = %s]\",\n i(current_arg), i(args.length), result));\n\n return (result.toString());\n }",
"public String toString(){\n\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\tString lastprice = nf.format(this.price);\r\n\t\tString lasttprice = nf.format(this.bulkP);\r\n\t\tif (this.bulkQ == 0){\r\n\t\t\treturn (this.name + \", \" + lastprice);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.name + \", \" + lastprice + \" (\" + bulkQ + \" for \" + lasttprice + \")\";\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override //indicates that this method overrides a superclass method\n public String toString(){\n\n return String.format(\"%s: %s %s%n%s : %s%n%s: %.2f%n%s: %.2f\",\"commission employee\",firstName,lastName,\n \"pan number\",panCardNumber,\"gross sales\",grossSales,\"commission rate\",commissionRate);\n }",
"protected static Item parseStringToItem(String str) {\n String[] strList = str.split(\",\");\n if (strList.length != 3) {\n System.err.println(\"File line data is not in the correct format.\");\n return null;\n }\n\n //find the index of the place where the cost numbers start\n Matcher matcher = Pattern.compile(\"\\\\d\").matcher(strList[2]);\n matcher.find();\n int numberIndex = strList[2].indexOf(matcher.group());\n Item item = new Item(Integer.parseInt(strList[0]),\n Double.valueOf(strList[1]),\n strList[2].substring(0, numberIndex).trim(),\n Double.valueOf(strList[2].substring(numberIndex)));\n return item;\n }",
"private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \" \";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static void splitPitData(String fullData, Dictionary<String> strings, Dictionary<Float> floats ,Dictionary<Boolean> booleans){\n\t\t\n\t\tList<String> lines = new ArrayList<>(Arrays.asList(fullData.split(\"\\n\")));\n\t\t\n\t\tString[] labels = lines.get(0).split(\",\");\n\t\tlines.remove(0);\n\t\t\n\t\tfor(String line: lines){\n\t\t\t\n\t\t\tString[] data = line.split(\",\");\n\t\t\t\n\t\t\tfor(int i=0;i<data.length;i++){\n\t\t\t\t\n\t\t\t\t//check what type it is\n\t\t\t\ttry{\n\t\t\t\t\tfloats.add(labels[i], Float.parseFloat(data[i]));\n\t\t\t\t\tcontinue;\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\t//not an int, check for bool\n\t\t\t\t\t\n\t\t\t\t\tif(data[i].toLowerCase().contains(\"true\")){\n\t\t\t\t\t\tbooleans.add(labels[i], true);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(data[i].toLowerCase().contains(\"false\")){\n\t\t\t\t\t\tbooleans.add(labels[i], false);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//must be string\n\t\t\t\t\tdata[i] = data[i].replace(\"|c\", \",\").replace(\"|n\", \"\\n\\t\").replace(\"||\", \"|\").replace(\"|q\", \"\\\"\").replace(\"|;\", \":\");\n\t\t\t\t\tstrings.add(labels[i], data[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public String toString(){\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\t\r\n\t\tsb.append(String.format(\" initial pairs: %8d\\n\",num[0]));\r\n\t\t\r\n\t\tsb.append(\" time(day) samples Dxx(km) Dyy(km) Dis(km) Kxx(10^7cm^2/s) Kyy(10^7cm^2/s)\\n\");\r\n\t\t\r\n\t\tfor(int l=0,L=num.length;l<L;l++)\r\n\t\tsb.append(String.format(\r\n\t\t\t\" %5.1f %6d %7.3f %7.3f %7.3f %7.3f %7.3f\\n\",\r\n\t\t\tl*dt/86400f,num[l],Dxx[l]/1e6,Dyy[l]/1e6,Dis[l]/1e6,Kxx[l],Kyy[l]\r\n\t\t));\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}",
"private String createName(String line) {\n line = line.replace(\"(L)\",\"\").replace(\"(D)\",\"\").replace(\"(R)\",\"\").replace(\"(I)\",\"\").replace(\"(\",\"\").replace(\")\",\"\");\n String firstName;\n String middleName = \"\";\n String lastName;\n String postNominal = \"\";\n\n firstName = line.split(\",\")[1].trim();\n if (firstName.contains(\" \")){\n middleName = firstName.split(\" \")[1];\n firstName = firstName.split(\" \")[0];\n }\n lastName = line.split(\",\")[0];\n if(lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"iii\")\n || lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"ii\")\n || lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"sr\")\n || lastName.split(\" \")[lastName.split(\" \").length-1].toLowerCase().equals(\"jr\")){\n postNominal = lastName.split(\" \")[1];\n lastName = lastName.split(\" \")[0];\n }\n\n return firstName.trim() + \",\" + middleName.trim() + \",\" + lastName.trim() + \",\" + postNominal.trim();\n }",
"@SuppressWarnings(\"null\")\n public static void main(String[] args) {\n String num[]= {\n \"회계연도\",\"회계명\",\"(수입)수입계획액(원)\",\"(수입)수납금액(원)\",\"(수입)순액(원)\",\"(수입)증감액(원)\",\"(수입)증감순액(원)\",\"(지출)지출계획현액(원)\",\"(지출)지출금액(원)\",\"(지출)순계(원)\",\"(지출)순액(원)\",\"(지출)증감순액(원)\",\"(지출)다음년도이월액(원)\",\"(지출)불용액(원)\",\n \"2017\",\"고용보험기금\",\"13744326000000\",\"20369391827660\",\"13315997827660\",\"6625065827660\",\"-428328172340\",\"13745562552200\",\"20369391827660\",\"13315997827660\",\"-6623829275460\",\"429564724540\",\"678671000\",\"631486395590\",\n \"2017\",\"공공자금관리기금\",\"189776876000000\",\"404256842999040\",\"183224542999040\",\"214479966999040\",\"-6552333000960\",\"189776876000000\",\"404256842999040\",\"183224542999040\",\"-214479966999040\",\"6552333000960\",\"0\",\"7271019279430\",\n \"2017\",\"공무원연금기금\",\"22538866000000\",\"37382431946845\",\"20630823797150\",\"14843565946845\",\"-1908042202850\",\"22545032000000\",\"37382431946845\",\"20630823797150\",\"-14837399946845\",\"1914208202850\",\"1066488200\",\"610806901939\",\n \"2017\",\"공적자금상환기금\",\"16123501000000\",\"15984076342880\",\"15894376342880\",\"-139424657120\",\"-229124657120\",\"16123501000000\",\"15984076342880\",\"15894376342880\",\"139424657120\",\"229124657120\",\"0\",\"147355105660\",\n \"2017\",\"과학기술진흥기금\",\"180979000000\",\"254739557740\",\"146619600420\",\"73760557740\",\"-34359399580\",\"180979000000\",\"254739557740\",\"146619600420\",\"-73760557740\",\"34359399580\",\"0\",\"40809967520\",\n \"2017\",\"관광진흥개발기금\",\"1493556000000\",\"2260249691260\",\"1588453308630\",\"766693691260\",\"94897308630\",\"1494802809970\",\"2260249691260\",\"1588453308630\",\"-765446881290\",\"-93650498660\",\"2179367690\",\"13371325600\",\n \"2017\",\"국민건강증진기금\",\"3974064000000\",\"6342643502890\",\"3686736329250\",\"2368579502890\",\"-287327670750\",\"4030252122930\",\"6342643502890\",\"3686736329250\",\"-2312391379960\",\"343515793680\",\"16423765880\",\"144716500820\",\n \"2017\",\"국민연금기금\",\"108422755000000\",\"440820974127419\",\"122128978859737\",\"332398219127419\",\"13706223859737\",\"108429730671960\",\"440820974127419\",\"122128978859737\",\"-332391243455459\",\"-13699248187777\",\"1575399980\",\"439377913501\",\n \"2017\",\"국민체육진흥기금\",\"1597810000000\",\"2003568719282\",\"2003568719282\",\"405758719282\",\"405758719282\",\"1602164720150\",\"2003568719282\",\"2003568719282\",\"-401403999132\",\"-401403999132\",\"2128957600\",\"48955211990\",\n \"2017\",\"국유재산관리기금\",\"1227962000000\",\"3110165835830\",\"1268887204949\",\"1882203835830\",\"40925204949\",\"1476165337260\",\"3110165835830\",\"1268887204949\",\"-1634000498570\",\"207278132311\",\"250737379020\",\"126552056950\",\n \"2017\",\"국제교류기금\",\"108471000000\",\"132308781414\",\"132308781414\",\"23837781414\",\"23837781414\",\"108471000000\",\"132308781414\",\"132308781414\",\"-23837781414\",\"-23837781414\",\"1518000000\",\"9244859988\",\n \"2017\",\"국제질병퇴치기금\",\"83129000000\",\"92763940261\",\"92763940261\",\"9634940261\",\"9634940261\",\"83129000000\",\"92763940261\",\"92763940261\",\"-9634940261\",\"-9634940261\",\"276275400\",\"561141097\",\n \"2017\",\"군인복지기금\",\"1318187000000\",\"829479208950\",\"829479208950\",\"-488707791050\",\"-488707791050\",\"1319382699730\",\"829479208950\",\"829479208950\",\"489903490780\",\"489903490780\",\"4562556510\",\"39398198850\",\n \"2017\",\"군인연금기금\",\"3145114000000\",\"5921214590440\",\"3166114590440\",\"2776100590440\",\"21000590440\",\"3145166700000\",\"5921214590440\",\"3166114590440\",\"-2776047890440\",\"-20947890440\",\"0\",\"5963055840\",\n \"2017\",\"근로복지진흥기금\",\"326573000000\",\"1839757038827\",\"287310709194\",\"1513184038827\",\"-39262290806\",\"326573000000\",\"1839757038827\",\"287310709194\",\"-1513184038827\",\"39262290806\",\"0\",\"5396143584\",\n \"2017\",\"금강수계관리기금\",\"115888000000\",\"229111068640\",\"123174068640\",\"113223068640\",\"7286068640\",\"116928194400\",\"229111068640\",\"123174068640\",\"-112182874240\",\"-6245874240\",\"773288078\",\"521939301\",\n \"2017\",\"기술보증기금\",\"2459797000000\",\"2935409356436\",\"2935409356436\",\"475612356436\",\"475612356436\",\"2459797000000\",\"2935409356436\",\"2935409356436\",\"-475612356436\",\"-475612356436\",\"0\",\"22761421796\",\n \"2017\",\"낙동강수계관리기금\",\"242129000000\",\"478207061365\",\"256804061365\",\"236078061365\",\"14675061365\",\"243359738351\",\"478207061365\",\"256804061365\",\"-234847323014\",\"-13444323014\",\"639744122\",\"896338278\",\n \"2017\",\"남북협력기금\",\"1970786000000\",\"1558859976590\",\"1196698745110\",\"-411926023410\",\"-774087254890\",\"1973229136680\",\"1558859976590\",\"1196698745110\",\"414369160090\",\"776530391570\",\"41411647650\",\"872170807440\",\n \"2017\",\"농림수산업자신용보증기금\",\"1007434000000\",\"1339296763232\",\"1339296763232\",\"331862763232\",\"331862763232\",\"1007434000000\",\"1339296763232\",\"1339296763232\",\"-331862763232\",\"-331862763232\",\"0\",\"8785357432\",\n \"2017\",\"농산물가격안정기금\",\"2885008000000\",\"3647638241960\",\"2311260285832\",\"762630241960\",\"-573747714168\",\"2885456767970\",\"3647638241960\",\"2311260285832\",\"-762181473990\",\"574196482138\",\"0\",\"228284718350\",\n \"2017\",\"농어가목돈마련저축장려기금\",\"86563000000\",\"95169395440\",\"83099395440\",\"8606395440\",\"-3463604560\",\"86563000000\",\"95169395440\",\"83099395440\",\"-8606395440\",\"3463604560\",\"0\",\"1761808720\",\n \"2017\",\"농어업재해재보험기금\",\"227055000000\",\"260651485140\",\"196572554347\",\"33596485140\",\"-30482445653\",\"227055000000\",\"260651485140\",\"196572554347\",\"-33596485140\",\"30482445653\",\"0\",\"435067370\",\n \"2017\",\"농업소득보전직접지불기금\",\"1554480000000\",\"2939848719930\",\"1498849373800\",\"1385368719930\",\"-55630626200\",\"1554480000000\",\"2939848719930\",\"1498849373800\",\"-1385368719930\",\"55630626200\",\"0\",\"566470810\",\n \"2017\",\"농지관리기금\",\"2070263000000\",\"3725341147100\",\"3349472868632\",\"1655078147100\",\"1279209868632\",\"2070263000000\",\"3725341147100\",\"3349472868632\",\"-1655078147100\",\"-1279209868632\",\"0\",\"64964907410\",\n \"2017\",\"대외경제협력기금\",\"1019436000000\",\"1796484227980\",\"858358115800\",\"777048227980\",\"-161077884200\",\"1023061207690\",\"1796484227980\",\"858358115800\",\"-773423020290\",\"164703091890\",\"9234011270\",\"207147217650\",\n \"2017\",\"무역보험기금\",\"3372170000000\",\"2924692605628\",\"1684930605628\",\"-447477394372\",\"-1687239394372\",\"3372170000000\",\"2924692605628\",\"1684930605628\",\"447477394372\",\"1687239394372\",\"0\",\"110680394372\",\n \"2017\",\"문화예술진흥기금\",\"540207000000\",\"532127077750\",\"532127077750\",\"-8079922250\",\"-8079922250\",\"540747864270\",\"532127077750\",\"532127077750\",\"8620786520\",\"8620786520\",\"744040000\",\"7876746520\",\n \"2017\",\"문화재보호기금\",\"133463000000\",\"154593134260\",\"152257709000\",\"21130134260\",\"18794709000\",\"138779974790\",\"154593134260\",\"152257709000\",\"-15813159470\",\"-13477734210\",\"3385319100\",\"2940521430\",\n \"2017\",\"방사성폐기물관리기금\",\"4859199000000\",\"4221710900020\",\"3538120620750\",\"-637488099980\",\"-1321078379250\",\"4859199000000\",\"4221710900020\",\"3538120620750\",\"637488099980\",\"1321078379250\",\"0\",\"0\",\n \"2017\",\"방송통신발전기금\",\"983419000000\",\"1666772954670\",\"950674697068\",\"683353954670\",\"-32744302932\",\"984607470000\",\"1666772954670\",\"950674697068\",\"-682165484670\",\"33932772932\",\"0\",\"5368600500\",\n \"2017\",\"범죄피해자보호기금\",\"101869000000\",\"101206599540\",\"101206599540\",\"-662400460\",\"-662400460\",\"101869000000\",\"101206599540\",\"101206599540\",\"662400460\",\"662400460\",\"0\",\"968027770\",\n \"2017\",\"보훈기금\",\"584222000000\",\"356957438690\",\"260757438690\",\"-227264561310\",\"-323464561310\",\"584222000000\",\"356957438690\",\"260757438690\",\"227264561310\",\"323464561310\",\"96600000\",\"12116378770\",\n \"2017\",\"복권기금\",\"5064884000000\",\"5071439013780\",\"5071439013780\",\"6555013780\",\"6555013780\",\"5064884000000\",\"5071439013780\",\"5071439013780\",\"-6555013780\",\"-6555013780\",\"0\",\"18961931090\",\n \"2017\",\"사립학교교직원연금기금\",\"10915394000000\",\"11273959679737\",\"11273959679737\",\"358565679737\",\"358565679737\",\"10915394000000\",\"11273959679737\",\"11273959679737\",\"-358565679737\",\"-358565679737\",\"2432108768\",\"129021189497\",\n \"2017\",\"사법서비스진흥기금\",\"50500000000\",\"54478924050\",\"54478924050\",\"3978924050\",\"3978924050\",\"50618000000\",\"54478924050\",\"54478924050\",\"-3860924050\",\"-3860924050\",\"0\",\"327245090\",\n \"2017\",\"사학진흥기금\",\"443055000000\",\"412317713823\",\"412317713823\",\"-30737286177\",\"-30737286177\",\"443134908629\",\"412317713823\",\"412317713823\",\"30817194806\",\"30817194806\",\"0\",\"35121091324\",\n \"2017\",\"산업기반신용보증기금\",\"376629000000\",\"604834786685\",\"604834786685\",\"228205786685\",\"228205786685\",\"376629000000\",\"604834786685\",\"604834786685\",\"-228205786685\",\"-228205786685\",\"0\",\"18335513615\",\n \"2017\",\"산업기술진흥및사업화촉진기금\",\"208456000000\",\"125940377440\",\"125940377440\",\"-82515622560\",\"-82515622560\",\"208456000000\",\"125940377440\",\"125940377440\",\"82515622560\",\"82515622560\",\"0\",\"50443000000\",\n \"2017\",\"산업재해보상보험및예방기금\",\"12278202000000\",\"16785667051820\",\"11093375051820\",\"4507465051820\",\"-1184826948180\",\"12278202000000\",\"16785667051820\",\"11093375051820\",\"-4507465051820\",\"1184826948180\",\"0\",\"9985509230\",\n \"2017\",\"석면피해구제기금\",\"49867000000\",\"66863753060\",\"66863753060\",\"16996753060\",\"16996753060\",\"49867000000\",\"66863753060\",\"66863753060\",\"-16996753060\",\"-16996753060\",\"151914000\",\"125502400\",\n \"2017\",\"소상공인시장진흥기금\",\"2917318000000\",\"5367206054670\",\"2913316105420\",\"2449888054670\",\"-4001894580\",\"2917318000000\",\"5367206054670\",\"2913316105420\",\"-2449888054670\",\"4001894580\",\"0\",\"4001894580\",\n \"2017\",\"수산발전기금\",\"767731000000\",\"864032957540\",\"707449615812\",\"96301957540\",\"-60281384188\",\"776019900000\",\"864032957540\",\"707449615812\",\"-88013057540\",\"68570284188\",\"431670000\",\"72378302260\",\n \"2017\",\"순국선열애국지사사업기금\",\"65637000000\",\"51873529670\",\"51873529670\",\"-13763470330\",\"-13763470330\",\"80817509190\",\"51873529670\",\"51873529670\",\"28943979520\",\"28943979520\",\"887259540\",\"332279480\",\n \"2017\",\"신용보증기금\",\"5488847000000\",\"8312761498977\",\"8312761498977\",\"2823914498977\",\"2823914498977\",\"5488847000000\",\"8312761498977\",\"8312761498977\",\"-2823914498977\",\"-2823914498977\",\"0\",\"601479196233\",\n \"2017\",\"양곡증권정리기금\",\"1780842000000\",\"1922597393120\",\"1759188932870\",\"141755393120\",\"-21653067130\",\"1780842000000\",\"1922597393120\",\"1759188932870\",\"-141755393120\",\"21653067130\",\"0\",\"18565997900\",\n \"2017\",\"양성평등기금\",\"222381000000\",\"425866527870\",\"227811487804\",\"203485527870\",\"5430487804\",\"222381000000\",\"425866527870\",\"227811487804\",\"-203485527870\",\"-5430487804\",\"0\",\"1119376310\",\n \"2017\",\"언론진흥기금\",\"35736000000\",\"57982723950\",\"26470864930\",\"22246723950\",\"-9265135070\",\"35736000000\",\"57982723950\",\"26470864930\",\"-22246723950\",\"9265135070\",\"0\",\"1008937810\",\n \"2017\",\"영산강·섬진강수계관리기금\",\"89438000000\",\"128405783797\",\"91179783797\",\"38967783797\",\"1741783797\",\"89803321400\",\"128405783797\",\"91179783797\",\"-38602462397\",\"-1376462397\",\"539349140\",\"381719126\",\n \"2017\",\"영화발전기금\",\"327374000000\",\"311602087226\",\"311602087226\",\"-15771912774\",\"-15771912774\",\"328018441430\",\"311602087226\",\"311602087226\",\"16416354204\",\"16416354204\",\"1019214000\",\"3561420751\",\n \"2017\",\"예금보험기금채권상환기금\",\"8991280000000\",\"6980887556371\",\"6980887556371\",\"-2010392443629\",\"-2010392443629\",\"8991280000000\",\"6980887556371\",\"6980887556371\",\"2010392443629\",\"2010392443629\",\"0\",\"34464237709\",\n \"2017\",\"외국환평형기금\",\"90046415000000\",\"338392258255650\",\"97541618666970\",\"248345843255650\",\"7495203666970\",\"90046415000000\",\"338392258255650\",\"97541618666970\",\"-248345843255650\",\"-7495203666970\",\"0\",\"1753953898063\",\n \"2017\",\"원자력기금\",\"353027000000\",\"579170246010\",\"333497587550\",\"226143246010\",\"-19529412450\",\"353336169360\",\"579170246010\",\"333497587550\",\"-225834076650\",\"19838581810\",\"291802000\",\"67808000\",\n \"2017\",\"응급의료기금\",\"291421000000\",\"580732029160\",\"321732029160\",\"289311029160\",\"30311029160\",\"293938948710\",\"580732029160\",\"321732029160\",\"-286793080450\",\"-27793080450\",\"3345239800\",\"19804925600\",\n \"2017\",\"임금채권보장기금\",\"1353970000000\",\"1218862711350\",\"896130711350\",\"-135107288650\",\"-457839288650\",\"1353970000000\",\"1218862711350\",\"896130711350\",\"135107288650\",\"457839288650\",\"0\",\"29944873420\",\n \"2017\",\"자동차사고피해지원기금\",\"243833000000\",\"263883352068\",\"263883352068\",\"20050352068\",\"20050352068\",\"243833000000\",\"263883352068\",\"263883352068\",\"-20050352068\",\"-20050352068\",\"0\",\"15034685000\",\n \"2017\",\"자유무역협정이행지원기금\",\"697382000000\",\"1091012649440\",\"562013979328\",\"393630649440\",\"-135368020672\",\"697382000000\",\"1091012649440\",\"562013979328\",\"-393630649440\",\"135368020672\",\"0\",\"216764815000\",\n \"2017\",\"장애인고용촉진및직업재활기금\",\"1201710000000\",\"1464600902950\",\"833900902950\",\"262890902950\",\"-367809097050\",\"1201710000000\",\"1464600902950\",\"833900902950\",\"-262890902950\",\"367809097050\",\"0\",\"442990560\",\n \"2017\",\"전력산업기반기금\",\"4143938000000\",\"4974493501060\",\"3587918501060\",\"830555501060\",\"-556019498940\",\"4144118000000\",\"4974493501060\",\"3587918501060\",\"-830375501060\",\"556199498940\",\"154000000\",\"4591492090\",\n \"2017\",\"정보통신진흥기금\",\"958104000000\",\"1537780073020\",\"789904301639\",\"579676073020\",\"-168199698361\",\"958104000000\",\"1537780073020\",\"789904301639\",\"-579676073020\",\"168199698361\",\"0\",\"242786650\",\n \"2017\",\"주택금융신용보증기금\",\"3190784000000\",\"4871893331502\",\"4871893331502\",\"1681109331502\",\"1681109331502\",\"3190886520000\",\"4871893331502\",\"4871893331502\",\"-1681006811502\",\"-1681006811502\",\"95600000\",\"201612653812\",\n \"2017\",\"주택도시기금\",\"68893276000000\",\"66529367791652\",\"57729367791652\",\"-2363908208348\",\"-11163908208348\",\"68893376000000\",\"66529367791652\",\"57729367791652\",\"2364008208348\",\"11164008208348\",\"338427270\",\"2018593724366\",\n \"2017\",\"중소기업창업및진흥기금\",\"9920963000000\",\"9897816250203\",\"9897816250203\",\"-23146749797\",\"-23146749797\",\"9920963000000\",\"9897816250203\",\"9897816250203\",\"23146749797\",\"23146749797\",\"0\",\"29449684554\",\n \"2017\",\"지역신문발전기금\",\"9696000000\",\"34956850760\",\"10102959910\",\"25260850760\",\"406959910\",\"9696000000\",\"34956850760\",\"10102959910\",\"-25260850760\",\"-406959910\",\"0\",\"415196920\",\n \"2017\",\"청소년육성기금\",\"129843000000\",\"183750640860\",\"125878041015\",\"53907640860\",\"-3964958985\",\"129910034970\",\"183750640860\",\"125878041015\",\"-53840605890\",\"4031993955\",\"0\",\"588126200\",\n \"2017\",\"축산발전기금\",\"1166039000000\",\"1561452399210\",\"1084283662935\",\"395413399210\",\"-81755337065\",\"1174219800000\",\"1561452399210\",\"1084283662935\",\"-387232599210\",\"89936137065\",\"1551800000\",\"38607531910\",\n \"2017\",\"한강수계관리기금\",\"513433000000\",\"1001920911829\",\"589666806821\",\"488487911829\",\"76233806821\",\"524128039081\",\"1001920911829\",\"589666806821\",\"-477792872748\",\"-65538767740\",\"8155884156\",\"7007904347\"\n };\n \n// System.out.println(num[14]);\n String field_name[] = new String [14];\n for (int i=0;i<14;i++) {\n field_name[i] = num[i];\n }\n \n// for(int i = 0; i<num.length-13;i++) {\n// \n// }\n String field[] = new String[14];\n for (int i = 1 ; i <num.length/14; i++) {\n for(int j=0; j<14;j++) {\n \n field[j]=num[i*14 + j];\n System.out.println(field[j]);\n }\n for(int k=0; k<14;k++) {\n System.out.printf(\"%s : %s\\n\", field_name[k],field[k]);\n \n }\n }\n }",
"@Test\n void testToString() {\n // Create a new item object with the following parameters:\n // Description: \"Test Description\", Due Date: \"2022-05-30\", isComplete: \"Complete\"\n Item actualResult = new Item(\"Test Description\", \"2022-05-30\", \"Complete\");\n // Then assertEquals to see if the actual string equals \"Test Description,2022-05-30,Complete\"\n assertEquals(\"Test Description,2022-05-30,Complete\", actualResult.toString());\n }",
"@Override\n public String toString()\n {\n return String.format(\"%-20s\\t\\t%-30s%-30s\",number, name, party);\n}",
"public String nameString(ArrayList<String> nameList) {\n String nameStore = nameList.get(0) + \", \";\n for (int i = 1; i < nameList.size(); i++) {\n if (i == nameList.size() - 1) {\n nameStore += nameList.get(i);\n } else {\n nameStore += nameList.get(i) + \", \";\n }\n }\n return nameStore;\n }",
"private String getValue(String s)\n {\n if(s.contains(\",\"))\n {\n return s.split(\",\")[0];\n }\n else\n {\n s = s.replaceAll(\"\\\\)\",\"\");\n return s;\n }\n }",
"@Test\n\tpublic void common() {\n\t\tString testString = \"Monday,Tuesday,Thursday,Friday,,\";\n\t\tIterable<String> parts = Splitter.on(\",\").split(testString);\n\t\tfor (String s : parts)\n\t\t\tSystem.out.println(s);\n\t}",
"public String format(NumberFormatTestData tuple) {\n return null;\n }",
"private static String createPrepStmPlaceHolder(int num) {\n\t\tchar[] c_ar = new char[num*3];\n\t\tc_ar[0] = '(';\n\t\tc_ar[1] = '?';\n\t\tfor(int i=1; i<num; ++i) {\n\t\t\tc_ar[3*i-1] = ',';\n\t\t\tc_ar[3*i] = ' ';\n\t\t\tc_ar[3*i+1] = '?';\n\t\t}\n\t\tc_ar[3*num-1] = ')';\n\t\treturn new String(c_ar);\n\t}",
"void format();",
"public static void main(String[] args) {\n\t\tArrayList<String>list=new ArrayList<String>(Arrays.asList(\"c\",\"c++\",\"java\",\"python\",\"html\"));\r\n\t\tStringJoiner sj=new StringJoiner(\",\",\"{\",\"}\");\r\n\t\tlist.forEach(e->sj.add(e));\r\n\t\tSystem.out.println(sj);\r\n\t}",
"private static String removeFormatForNumberStr(String str){\n String result = str;\n if(result != null){\n if(result.contains(\",\")){\n result = result.replace(\",\", \"\");\n }\n if(result.contains(\" \")){\n result = result.replace(\" \", \"\");\n }\n }\n return result;\n }",
"public String format(String format, Object... objects){\n return format(String.format(format, objects));\n }",
"private static String generateCRString (CRType<?> cr) {\r\n\t\tString res = \"\";\r\n\t\tif (cr.getAU_A() == null) {\r\n\t\t\tif (cr.getAU_L() != null) res += cr.getAU_L() + \", \" + cr.getAU_F().replaceAll(\"([A-Z])\", \"$1.\"); \r\n\t\t} else {\r\n\t\t\tres += cr.getAU_A().replaceAll(\";\", \",\");\r\n\t\t}\r\n\t\tres += \",\";\r\n\t\tif (cr.getTI() != null)\tres += cr.getTI();\r\n\t\tif (cr.getRPY() != null) res += \" (\" + cr.getRPY() + \") \";\r\n\t\tif (cr.getJ_N() != null) res += cr.getJ_N();\r\n\t\tif (cr.getVOL() != null) res += \", \" + cr.getVOL();\r\n\t\tif (cr.getPAG() != null) res += \", pp.\" + cr.getPAG();\r\n\t\tif (cr.getDOI() != null) res += \", DOI \" + cr.getDOI();\r\n\r\n\t\treturn res;\r\n\t}",
"private static String createDataString(\n \t\tCollection<ProductAmountTO> requiredProductAmounts,\n \t\tHashtable<Store, Collection<StockItem>> storeStockItems,\n \t\tHashtable<Store, Integer> storeDistances) {\n \t\n \tStringBuffer output = new StringBuffer();\n\n \tappendStoreDistances(storeDistances, output); \t\n \t\n \tappendRequiredProductAmounts(requiredProductAmounts, output);\n \t\n \tappendOfferingStoresProductsAmountsMatrix(storeStockItems, requiredProductAmounts, output);\n \t\n \treturn output.toString();\n \t \n\n }",
"private String formatString(String s) {\n \t\tif (s.length() > 13) return s.substring(0,11) + \"...\"; \n \t\telse return s;\n \t}",
"private String getValues()\n\t{\n\t\tString values = \"(\";\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tvalues += \"'\" + fieldList.get(spot).getText() + \"'\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tvalues += \");\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalues += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn values;\n\t}",
"private String getDescription(int num, String[] data) {\n String description = \"\";\n boolean removedFirstQuote = false;\n for (int j = num; j < data.length; j++) {\n description += data[j];\n if (j == num && description.charAt(0) == '\"') {\n description = description.substring(1);\n removedFirstQuote = true;\n }\n if (j != data.length - 1) {\n description += \",\";\n } else {\n if (removedFirstQuote) {\n description = description.substring(0,description.length()-1);\n }\n }\n }\n return description;\n }",
"public String getStringRecord() {\n NumberFormat nf = new DecimalFormat(\"0000.00\");\n String delimiter = \",\";\n\n return String.format(\"%05d\", orderLineId) + delimiter + String.format(\"%05d\", orderId) + delimiter\n + String.format(\"%05d\", userId) + delimiter + String.format(\"%05d\", productId) + delimiter\n + String.format(\"%05d\", orderLineQuantity) + delimiter + nf.format(salesPrice)\n + System.getProperty(\"line.separator\");\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"(%f, %f, %f)\", x, y, z);\n\t}",
"private String formatCSV(String value){\r\n\t\treturn value.replaceAll(\"\\\"\",\"\\\"\\\"\");\r\n\t}",
"public static void main(String[] args) {\n\n\t\tCar myCar = new Car(\"그렌져\");\n\t\tCar yourCar = new Car(\"그렌져\");\n\t\tString bigyo ;\n\t\tDate date = new Date();\n\t\t\n\t\tif(myCar.equals(yourCar.getName()) == true) {\n\t\t\tbigyo = \"같다\";\n\t\t}\n\t\telse{\n\t\t\tbigyo = \"다르다\";\n\t\t}\n\t\t\n\t\tSimpleDateFormat sdf1 = new SimpleDateFormat(\"MM-dd-YYYY\");\n\t\tString s = MessageFormat.format(\"내 차 [{0}], 니 차 [{1}] 로 {2}\", myCar.getName(), yourCar.getName(), bigyo);\n\t\tString s1 = MessageFormat.format(\"날짜: {0}, 자동차 모델 = {1}, 운전자(홍길동)\", sdf1.format(date), myCar.getName());\n\t\tSystem.out.println(s);\n\t\tSystem.out.println(s1);\n\n\t\tStringTokenizer token = new StringTokenizer(s1,\" =,()\");\n\t\t//문장에 있는 문자들을 문자단위로 구분하여 추출하려할때 쓰는 클래스 StringTokenizer.\n\t\t//StringTokenizer(구분할 문자열 변수명, \"조건들\");\n\t\t//조건들에는 공백문자도 포함하므로 조건과 조건 사이에 공백을 안써도 된다.\n\t\t//즉, 이 문장에서 구분 추출의 조건은 공백문자 / = / , / ( / ) 이다.\n\t\tSystem.out.println(token.countTokens());\n\t\t\n\t\twhile(token.hasMoreTokens()) {\n\t\t\tSystem.out.println(token.nextToken());\n\t\t}\n\t}",
"public static String commas(Iterable<?> parts) {\n return join(\", \", parts);\n }",
"protected abstract String format();",
"private String mergeStringsLists(String string1, String string2) {\n if (string1==null || string1.isEmpty()) return string2;\n else if (string2==null || string2.isEmpty()) return string1;\n else {\n String[] elements1=string1.split(\"\\\\s*,\\\\s*\");\n String[] elements2=string2.split(\"\\\\s*,\\\\s*\");\n ArrayList<String> result=new ArrayList<String>(elements1.length);\n for (String e:elements1) result.add(e.trim());\n for (String e:elements2) if (!result.contains(e.trim())) result.add(e.trim());\n StringBuilder builder=new StringBuilder(string1.length()+string2.length());\n builder.append(result.get(0));\n for (int i=1;i<result.size();i++) {builder.append(\",\");builder.append(result.get(i));}\n return builder.toString();\n }\n }",
"static String m23274a(String str, Object... objArr) {\n String valueOf = String.valueOf(str);\n StringBuilder sb = new StringBuilder(valueOf.length() + (objArr.length * 16));\n int i = 0;\n int i2 = 0;\n while (i < objArr.length) {\n int indexOf = valueOf.indexOf(\"%s\", i2);\n if (indexOf == -1) {\n break;\n }\n sb.append(valueOf.substring(i2, indexOf));\n int i3 = i + 1;\n sb.append(objArr[i]);\n int i4 = i3;\n i2 = indexOf + 2;\n i = i4;\n }\n sb.append(valueOf.substring(i2));\n if (i < objArr.length) {\n sb.append(\" [\");\n int i5 = i + 1;\n sb.append(objArr[i]);\n while (i5 < objArr.length) {\n sb.append(\", \");\n int i6 = i5 + 1;\n sb.append(objArr[i5]);\n i5 = i6;\n }\n sb.append(']');\n }\n return sb.toString();\n }",
"private String[] formatEntry(String[] features) {\n if (this.format == DictionaryBuilder.DictionaryFormat.IPADIC) {\n return features;\n } else {\n String[] features2 = new String[13];\n features2[0] = features[0];\n features2[1] = features[1];\n features2[2] = features[2];\n features2[3] = features[3];\n features2[4] = features[4];\n features2[5] = features[5];\n features2[6] = features[6];\n features2[7] = features[7];\n features2[8] = features[8];\n features2[9] = features[9];\n features2[10] = features[11];\n\n // If the surface reading is non-existent, use surface form for reading and pronunciation.\n // This happens with punctuation in UniDic and there are possibly other cases as well\n if (features[13].length() == 0) {\n features2[11] = features[0];\n features2[12] = features[0];\n } else {\n features2[11] = features[13];\n features2[12] = features[13];\n }\n return features2;\n }\n }",
"private String formatStr(String s) {\r\n\t\treturn formatStr(s, null, null);\r\n\t}",
"public String toString(int precision) {\n\t\treturn formatXYZ(precision,\"(\",\", \",\")\");\n\t}",
"public void testFormatting()\r\n {\n \tassertNotNull(\"failed to create degree symbol\", DEGREE_SYMBOL);\r\n \tassertEquals(\"degree symbol wrong length\", 1, DEGREE_SYMBOL.length());\r\n \t\r\n WorldLocation la = new WorldLocation(0d, 0d, 0d);\r\n String res1 = \" 00\" + DEGREE_SYMBOL + \"00\\'00.00\\\" 000\" + DEGREE_SYMBOL + \"00\\'00.00\\\"\";\r\n super.assertEquals(\"first test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(-12.345);\r\n la.setLong(22.432);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'42.00\\\"S 022\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"second test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(12.34533);\r\n la.setLong(-22.43222);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'43.19\\\"N 022\" + DEGREE_SYMBOL + \"25\\'55.99\\\"W\";\r\n super.assertEquals(\"third test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(82.345);\r\n la.setLong(172.432);\r\n res1 = \" 82\" + DEGREE_SYMBOL + \"20\\'42.00\\\"N 172\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"fourth test\", res1, BriefFormatLocation.toString(la));\r\n\r\n }",
"public void format(List<Alignment> alignmentList);",
"public String getFormattedString(String format, Object... objects) {\n return (String.format(format, objects));\n }",
"public static String preparePlaceHolders(int length) {\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < length;) {\n builder.append(\"?\");\n if (++i < length) {\n builder.append(\",\");\n }\n }\n return builder.toString();\n }",
"public double[] makeDouble(String[] vals){\n try {\n double[] result = new double[vals.length - 1];\n\n for (int i = 0; i < vals.length - 1; i++) {\n vals[i] = vals[i].replace(\",\", \".\");\n result[i] = Double.parseDouble(vals[i]);\n }\n return result;\n }catch (Exception e){\n System.out.println(e);\n }\n return null;\n }",
"private String createTextCompanyWithVisitTimes(final List<Object[]> listCompanyAndVisitTimes) {\n StringBuilder sb = new StringBuilder();\n for (Object[] object : listCompanyAndVisitTimes) {\n sb.append(\"; \" + object[0].toString() + \"(\" + object[1].toString() + \")\");\n }\n return sb.toString().replaceFirst(\"; \", \"\");\n }",
"public String generarEstadisticasPorFacultad(String cualFacultad) {\n \n int contadorAlta = 0;\n String pAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n if(EmpleadosPrioridadAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorAlta += 1;\n pAltaEmpl += \"nombre: \" + EmpleadosPrioridadAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pAlta = \"Se encuentran \" + contadorAlta + \" Empleados en condicion Alta\\n\";\n if(EmpleadosPrioridadAlta.isEmpty() == false){\n pAlta += \"los cuales son:\\n\" + pAltaEmpl;\n }\n \n int contadorMAlta = 0;\n String pMAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n if(EmpleadosPrioridadMediaAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMAlta += 1;\n pMAltaEmpl += \"nombre: \" + EmpleadosPrioridadMediaAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMediaAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMAlta = \"Se encuentran \" + contadorMAlta + \" Empleados en condicion Media Alta\\n\";\n if(EmpleadosPrioridadMediaAlta.isEmpty() == false){\n pMAlta += \"los cuales son:\\n\" + pMAltaEmpl;\n }\n \n int contadorMedia = 0;\n String pMediaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n if(EmpleadosPrioridadMedia.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMedia += 1;\n pMediaEmpl += \"nombre: \" + EmpleadosPrioridadMedia.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMedia.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMedia = \"Se encuentran \" + contadorMedia + \" Empleados en condicion Media\\n\";\n if(EmpleadosPrioridadMedia.isEmpty() == false){\n pMedia += \"los cuales son:\\n\" + pMediaEmpl;\n }\n \n int contadorBaja = 0;\n String pBajaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n if(EmpleadosPrioridadBaja.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorBaja += 1;\n pBajaEmpl += \"nombre: \" + EmpleadosPrioridadBaja.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadBaja.get(i).getIdentificacion() + \"\\n\";\n }\n }\n String pBaja = \"Se encuentran \" + contadorBaja + \" Empleados en condicion Baja\\n\" ;\n if(EmpleadosPrioridadBaja.isEmpty() == false){\n pBaja += \"los cuales son:\\n\" + pBajaEmpl;\n }\n \n return \"En la facultad \" + cualFacultad + \" de la universidad del valle: \\n\"\n + pAlta + pMAlta + pMedia + pBaja;\n }",
"public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }",
"public static String format(Object val, String pattern, char groupsepa, char decimalsepa)\n {\n if(val == null)\n {\n\t return \"\";\n } \n try\n {\n\t DecimalFormat _df = new DecimalFormat();\n\t _df.setRoundingMode(RoundingMode.HALF_UP);\n\t _df.applyPattern(pattern);\n\n\t String standardFrmt = _df.format(val);\n\t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n\t String returnFrmt = standardFrmt.replace(\",\",\"#grp#\");\n\t returnFrmt = returnFrmt.replace(\".\",decimalsepa+\"\");\n\t returnFrmt = returnFrmt.replace(\"#grp#\",groupsepa+\"\");\n\t return returnFrmt;\n\n }\n catch(Exception ex)\n {\n\t log.error(ex, \"[NumberUtil] Error caught in method format\");\n\t return \"\";\n }\n}",
"public static void main(String[] args) throws Exception {\r\n\t\t\r\n\t\tString csv = \"regional-us-weekly-latest.txt\";\r\n\t\t//String to hold file name\r\n\t\tScanner sc = new Scanner(new File(csv));\r\n\t\t//Scanner object to read the csv file\r\n\t\tPrintWriter outputFile = new PrintWriter(\"Artists-WeekOf08272020.txt\");\r\n\t\t//printwriter object to print the report to an output file\t\t\r\n\r\n\t\tString header = sc.nextLine(); //gets header\r\n\t\tString artistName = \"\"; //string for holding artist name\r\n\t\tArrayList<String> top200 = new ArrayList<>(); \r\n\t\t//arraylist for all the top 200 names, in the order they're in from the csv file\r\n\t\tArrayList<ArrayList<String>> nameList = new ArrayList<ArrayList<String>>(); \r\n\t\t//nested arraylist, one for names in report and another for the amount of times each appears\r\n\t\t\r\n\t\tString line = sc.nextLine(); //gets the first line after header before the while loop starts since it is irrelevant data\r\n\t\t/*this while loop gets all the names from the csv file and ignores the rest of the data as it is unneeded for the report\r\n\t\tit then adds all the names to the top200 arraylist in the order that they were in in the csv file (including duplicates)*/\r\n while(sc.hasNext()) { //loop continues to the end of the file\r\n \tline = sc.nextLine(); //reads in an entire line\r\n String [] name = line.split(\",\"); //splits lines by commas as the data values are separated by commas\r\n artistName = name[name.length-3];\r\n /*originally I wanted to assign values[2] to artist because the names were the third value of the data (the element is\r\n 2 due to arrays starting at 0), but there was a problem, some values had commas within them. So, I improvised, no matter\r\n what the column with the names will always be the 3rd to last column, so instead I made the array element be the length \r\n of the array minus 3 to ensure I always get the artist's name.*/\r\n top200.add(artistName); //adds artist name to the top200 arraylist\r\n } //end of while loop\r\n \r\n \r\n /*this loop sorts the top200 names in alphabetical order, the first character of an element is compared to the first character \r\n of the next element, then it swaps the two names if the name after it starts with a letter that comes before it in the alphabet*/\r\n for (int i = 1; i < top200.size(); i++) {\r\n \tString temp = \"\";\r\n \tfor (int j = 0; j < top200.size()-1; j++) {\r\n \t\tif(top200.get(i).charAt(0) < top200.get(j).charAt(0)) { //compares first letter of strings\r\n \t\t\ttemp = top200.get(i); \r\n \t\t\ttop200.set(i, top200.get(j));\r\n \t\t\ttop200.set(j, temp);\r\n \t\t}\r\n \t} //end of second for loop\r\n } //end of for loop\r\n \r\n nameList.add(top200); //this adds the list of names to the nested arraylist \r\n \r\n ArrayList<String> appearanceCount = new ArrayList<>(); \r\n //arraylist to be parallel to the names and will say how many times the name appeared on the top 200 list\r\n \r\n /*the job of this for loop is to go through the first loop in the nested arraylist, which is currently the only one, and it\r\n looks through it for duplicates, by comparing every single element with every element after it, when it finds a duplicate \r\n it deletes it, then it adds 1 to the corresponding element value on the appearanceCount arraylist, otherwise it will add \"1\" to \r\n the appearanceCount arraylist as it didnt have a duplicate for the corresponding element value, thus it will only appear once*/\r\n for (int i = 0; i < nameList.get(0).size(); i++) { // this loop goes through the arraylist containing the list of 200 names 1 by 1\r\n \tint cnt = 1; //this is the default count, if a name appears once on the list, its corresponding array will hold the string \"1\"\r\n \tString stringNum = \"\"; //this String is there to hold the count of appearances, it will hold the int when converted to a string\r\n \tfor (int j = i+1; j < nameList.get(0).size(); j++) { //this loop will compare the current element with the rest of the array\r\n \t\tif(nameList.get(0).get(i).equals(nameList.get(0).get(j))) { //this condition checks for duplicates\r\n \t\t\tnameList.get(0).remove(j); //when a duplicate is found it will be removed\r\n \t\t\tj--; //j is decreased by 1, since an element was removed the arraylist is shorter now, so the loop wont throw it out of bounds\r\n \t\t\tcnt++; //when a duplicate is found, cnt is incremented \r\n \t\t\tstringNum = Integer.toString(cnt); //the int value of cnt is converted to a string\r\n appearanceCount.set(i, stringNum); //this places the amount of times the artist appears in the parallel appearanceCount arraylist\r\n \t\t}//end of if\r\n \t\telse appearanceCount.add(\"1\"); //if there is no duplicate, that means it appears only once, so \"1\" is added to appearanceCount\r\n \t}//end of second for loop\r\n } //end of for loop\r\n \r\n /*when the loop ends, appearanceCount should be full and have all the amount of times an artist appeared on the list and its elements\r\n will correspond to the values of the arraylist containing all the names*/\r\n nameList.add(appearanceCount); //then the appearance count arraylist is added to the nested nameList arrayList\r\n \r\n //prints report for header of the report to the output file\r\n outputFile.println(\"This is a report of the list of artists that appear on Spotify's\");\r\n outputFile.println(\"Top 200 list in the United States for the week of August 27, 2020.\");\r\n outputFile.println(\"The following names in the report are in alphabetical order.\\n\");\r\n \r\n int cnt = 0; //this is to count how many names are on the list altogether\r\n //this for loop is to print out the report to the output file\r\n for (int i = 0; i < nameList.get(0).size(); i++) {\r\n \tint a = Integer.parseInt(nameList.get(1).get(i)); //this converts the appearance count of every name into an int \r\n \tif (a > 1) //this if will check if the appearance count is greater than 1\r\n \t\toutputFile.println(nameList.get(0).get(i) + \" appears \" + nameList.get(1).get(i) + \" times on the list.\");\r\n \t\t//if it is greater than 1, than to be grammatically correct it will print \"appears i times\", (times being plural)\r\n \telse outputFile.println(nameList.get(0).get(i) + \" appears \" + nameList.get(1).get(i) + \" time on the list.\");\r\n \t\t//otherwise, if its not bigger than 1, then it will say \"appears 1 time\", (time being singular)\r\n \tcnt++; //increments the count of names\r\n } //end of for loop\r\n \r\n outputFile.println(\"\\nThere are \" + cnt + \" artists on the list.\");\r\n \r\n sc.close();\r\n outputFile.close();\r\n \r\n\t}",
"private static String[] sepInst(String inst){\n\n String[] separated = new String[3];\n separated[0] = inst.substring(0, inst.indexOf(' '));\n if(-1 == inst.indexOf(',')){//enters if when only one variable\n separated[1] = inst.substring(inst.indexOf(' ')+1, inst.length());\n }else{//enters else when only when two variables\n separated[1] = inst.substring(inst.indexOf(' ')+1, inst.indexOf(','));\n separated[2] = inst.substring(inst.indexOf(',')+2, inst.length());\n }//end ifelse\n\n return separated;\n }",
"public static String sumStringValues(String... values) {\n\t\tFloat total = new Float(0);\n\t\tfor (String value : values) {\n\t\t\ttotal += formatString(value);\n\t\t}\n\t\treturn curencyFormatterString(total);\n\t}"
]
| [
"0.614829",
"0.61404127",
"0.5934497",
"0.5848042",
"0.58133185",
"0.5802575",
"0.5758733",
"0.56739664",
"0.56191194",
"0.5589726",
"0.5541513",
"0.5528173",
"0.54822105",
"0.54731554",
"0.54552555",
"0.54511607",
"0.54484826",
"0.54212",
"0.5398145",
"0.5363824",
"0.53028196",
"0.52718115",
"0.5271328",
"0.5260537",
"0.52377784",
"0.5201608",
"0.5176979",
"0.51533693",
"0.5149951",
"0.5136439",
"0.5135651",
"0.51308995",
"0.5129061",
"0.512556",
"0.5105461",
"0.50873834",
"0.5083442",
"0.50758",
"0.50754154",
"0.5072209",
"0.50428665",
"0.5042324",
"0.5032338",
"0.50286263",
"0.5021377",
"0.50143355",
"0.50138795",
"0.5010143",
"0.4998875",
"0.49844044",
"0.4967626",
"0.49672884",
"0.49565932",
"0.49548542",
"0.49492037",
"0.49361783",
"0.4916146",
"0.4914568",
"0.49136093",
"0.49125218",
"0.49123517",
"0.49083555",
"0.48981598",
"0.48904264",
"0.4889675",
"0.48868385",
"0.48828885",
"0.48789564",
"0.48737365",
"0.48678693",
"0.48637408",
"0.48484522",
"0.48452652",
"0.48416638",
"0.48395973",
"0.4837839",
"0.48350397",
"0.48333472",
"0.48282117",
"0.4827089",
"0.48223078",
"0.48212332",
"0.48195252",
"0.481756",
"0.48146185",
"0.48012677",
"0.47981793",
"0.47882384",
"0.47855967",
"0.47815084",
"0.4779268",
"0.47785667",
"0.47773007",
"0.47771057",
"0.47754505",
"0.47707114",
"0.47654352",
"0.4764432",
"0.4763619",
"0.47585574"
]
| 0.6738651 | 0 |
History string that record all action. | public Calculator () {
total = 0; // not needed - included for clarity
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString ()\r\n\t{\r\n\t\treturn history + \" \";\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\n\t\treturn history;\n\t}",
"public String history(){\n return this.inventoryHistory.toString();\n }",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"public String getOrderHistory() {\n\n\t\treturn getOrderHistory(\"\");\n\t}",
"public HistoryAction getHistoryAction()\n {\n return historyAction;\n }",
"private void addHistory(String s) {\r\n\t\tcurrentPlayer.getHistory().add(s);\r\n\t\tif (currentPlayer.getHistory().size() > 6) currentPlayer.getHistory().remove(0);\r\n\t\t//updatePlayArea(currentPlayer, false);\r\n\t}",
"public String getActionLog() {\n \t\treturn actionLog;\n \t}",
"@Override\n public String toString() {\n StringBuilder buf = new StringBuilder();\n buf.append(Time.toUsefulFormat(time));\n buf.append(\" \" + actionType.name());\n buf.append(\" author=[\" + author + \"]\");\n buf.append(\" target=\" + target.name());\n buf.append(\" path=\" + path);\n buf.append(\" ipath=\" + ipath);\n \n return buf.toString();\n }",
"public void setHistoryAction(HistoryAction historyAction)\n {\n this.historyAction = historyAction;\n }",
"public String getWithdrawalHistory() {\n\n\t\treturn getWithdrawalHistory(\"\");\n\t}",
"void onHistoryButtonClicked();",
"private History() {}",
"public IapHistory() {\n\t\tthis(\"iap_history\", null);\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tfinal WebHistory history=engine.getHistory();\r\n\t\t ObservableList<WebHistory.Entry> entryList=history.getEntries();\r\n\t\t int currentIndex=history.getCurrentIndex();\r\n//\t\t Out(\"currentIndex = \"+currentIndex);\r\n//\t\t Out(entryList.toString().replace(\"],\",\"]\\n\"));\r\n\t\t\t if(history.getCurrentIndex()<entryList.size()-1){\r\n\t\t\t \r\n\t\t Platform.runLater(new Runnable() { public void run() { history.go(1); } });\r\n\t\t System.out.println(entryList.get(currentIndex<entryList.size()-1?currentIndex+1:currentIndex).getUrl());\r\n\t\t\t}\r\n\t\t}",
"@Override\n public String toString()\n {\n return \"HistoryEntry from: \" + validFrom + \", to: \" + validTo;\n }",
"public ArrayList<String> getCommandHistory() {\r\n return commandHistory;\r\n }",
"public String getDepositHistory() {\n\n\t\treturn getDepositHistory(\"\");\n\t}",
"public String getJdHistory() {\r\n\t\treturn jdHistory;\r\n\t}",
"@UiHandler(\"history\")\n public void showHistory (ClickEvent event){\n \tshowHistory();\n }",
"public synchronized String getHistory() {\r\n\t\tString log = new String();\r\n\t\ttry {\r\n\t\t\tFile logFile = new File(\"serverlogs.log\");\r\n\t\t\tBufferedReader logReader = new BufferedReader(new InputStreamReader(new FileInputStream(logFile)));\r\n\t\t\tString line;\r\n\t\t\twhile((line = logReader.readLine()) != null) {\r\n\t\t\t\tlog += (line + \"\\n\");\r\n\t\t\t}\r\n\t\t\tlogReader.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tgui.acknowledge(\"Error : logs are not available\");\r\n\t\t\tstop();\r\n\t\t}\r\n\t\tif(log.equals(\"\\n\")) {\r\n\t\t\tlog = new String();\r\n\t\t}\r\n\t\treturn log;\r\n\t}",
"public void showHistorySwitchAction() {\n\t\tanimalsListPanel.switchToPast();\n\t}",
"private String indexHistoryElement(int index, String historyElement) {\n return Integer.toString(index) + \". \" + historyElement;\n }",
"@Override\n public void updateHistory(Command c) {\n }",
"private void historyButtonListener() {\n JButton historyButton = gui.getHistory_Button();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n gui.getHistory_TextArea().setText(\"\");\n gui.getFrame_History().setVisible(true);\n gui.getFrame_History().setSize(415, 250);\n gui.getHistory_TextArea().setEditable(false);\n for (int key : requestsAnswered.keySet()) {\n gui.getHistory_TextArea().append(requestsAnswered.get(key).getFormattedRequest());\n }\n for (int key : processingRequests.keySet()) {\n gui.getHistory_TextArea().append(processingRequests.get(key).getFormattedRequest());\n }\n };\n historyButton.addActionListener(actionListener);\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAction() != null)\n sb.append(\"Action: \").append(getAction()).append(\",\");\n if (getDateAdded() != null)\n sb.append(\"DateAdded: \").append(getDateAdded()).append(\",\");\n if (getDateDue() != null)\n sb.append(\"DateDue: \").append(getDateDue());\n sb.append(\"}\");\n return sb.toString();\n }",
"protected void saveHistoryData() throws RemoteHomeManagerException {\n int expected = (isCurrentState()) ? 1 : 0;\n if (isEnabledScheduler()) {\n Boolean action = getLightSchedule().getCurrentSchedule();\n expected = action?1:0;\n }\n HistoryData history = new HistoryData();\n history.setDeviceId(getDeviceId());\n history.setDataName(\"ONOFF\");\n history.setDataValue(((isCurrentState())?1:0)+\"|\"+expected);\n history.setDataTimestamp();\n m.getPersistance().addHistoryData(history);\n RemoteHomeManager.log.debug(\"Saved history data: \"+history.toString());\n }",
"public UpdateHistory() {\n this(\"update_history\", null);\n }",
"private void appendAction(String action) {\n \t\tif (board.isSetupPhase())\n \t\t\treturn;\n \n \t\tif (actionLog == \"\")\n \t\t\tactionLog += \"→ \" + action;\n \t\telse\n \t\t\tactionLog += \"\\n\" + \"→ \" + action;\n \n \t}",
"public org.naru.park.ParkController.CommonAction getGetUserHistory() {\n if (getUserHistoryBuilder_ == null) {\n return getUserHistory_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : getUserHistory_;\n } else {\n return getUserHistoryBuilder_.getMessage();\n }\n }",
"org.naru.park.ParkController.CommonAction getGetUserHistory();",
"public ArrayList<String> getCommandsHistory() {\n\t\treturn commandsHistory;\n\t}",
"public void addCommandToHistory(String command) {\r\n commandHistory.add(command);\r\n }",
"private String toLoggableString() {\n\t\tString string = canceled ? \"canceled call\" : \"call\";\n\t\tHttpUrl redactedUrl = originalRequest.url().resolve(\"/...\");\n\t\treturn string + \" to \" + redactedUrl;\n\t}",
"private void setHistory(final CreateUrlRequest request)\n {\n String token = Session.getInstance().generateUrl(request);\n History.newItem(token, true);\n }",
"public History() {\n\tthis.timestampMinute = new Date();\n\tthis.status = false;\n\n }",
"private void Log(String action) {\r\n\t}",
"public void printAllHistory() {\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n System.out.println(p_eqn.equation + \" + \" + Integer.toString(p_eqn.result));\n p_eqn = p_eqn.next;\n }\n }",
"public String toString() {\n\t\treturn trail.toString();\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tupdateHistoryButtonText(\"\"); \n\t}",
"public void openHistory() {\n usingHistoryScreen = true;\n myActivity.setContentView(R.layout.history);\n Button historyButtonToGame = myActivity.findViewById(R.id.button8);\n TextView historyText = myActivity.findViewById(R.id.textView46);\n historyText.setText(state.getHistory());\n historyText.setMovementMethod(new ScrollingMovementMethod());\n gui.invalidate();\n historyButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingHistoryScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }",
"protected abstract void createHistoryEvents();",
"@Override\n\tpublic String toString() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(super.toString());\n\t\tbuffer.append('\\n');\n\t\tfor (final State state : getStates()) {\n\t\t\tif (initialState == state) {\n\t\t\t\tbuffer.append(\"--> \");\n\t\t\t}\n\t\t\tbuffer.append(state);\n\t\t\tif (isFinalState(state)) {\n\t\t\t\tbuffer.append(\" **FINAL**\");\n\t\t\t}\n\t\t\tbuffer.append('\\n');\n\t\t\tfor (final Transition transition : getTransitionsFromState(state)) {\n\t\t\t\tbuffer.append('\\t');\n\t\t\t\tbuffer.append(transition);\n\t\t\t\tbuffer.append('\\n');\n\t\t\t}\n\t\t}\n\n\t\treturn buffer.toString();\n\t}",
"private String makeOneStringHistory(){\n String result = \"\";\n\n for(int i = 0 ; i < sensorDatas.size() ; i++ ){\n if(sensorDatas.get(i).getProduct().getValueOfProduct() == 0){\n result = result + \"<tr><td><h3 style='color:red' > \" +sensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:red' > \" + sensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td></tr>\";\n\n }else{\n result = result + \" <tr><td><h3 style='color:blue' > \" +sensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:blue' > \" + sensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td></tr>\";\n }\n }\n return result;\n }",
"public String getForward() {\n index++;\n return (String) history.get(index);\n }",
"public void botaohistory(View v) {\n startActivity(new Intent(this, com.example.appstore.history.class));\n }",
"@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"SmartMeterDataRecordAction [id=\"+id+\", sm_id=\"+sm_id+\", start_time=\"+start_time+\", \"\n\t\t\t\t+ \"end_time=\"+end_time+\", time_before_current=\"+time_before_current+\", operation=\"+operation+\n\t\t\t\t\", status=\"+status+\", err_msg=\"+err_msg+\", interval=\"+interval+\"]\";\n\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tType = \"History\";\n\t\t\t\t\tTV_History.setTextColor(Color.parseColor(\"#FFCC00\"));\n\t\t\t\t\tTV_All.setTextColor(Color.parseColor(\"#FFFFFF\"));\n\t\t\t\t\tTV_Collect.setTextColor(Color.parseColor(\"#FFFFFF\"));\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\trefresh(getDate());\n\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\t\n\t\t\t\t\tLog.i(\"---------------\", \"点击了历史\");\n\t\t\t\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAction() != null) sb.append(\"Action: \" + getAction() + \",\");\n if (getAutoAppliedAfterDate() != null) sb.append(\"AutoAppliedAfterDate: \" + getAutoAppliedAfterDate() + \",\");\n if (getForcedApplyDate() != null) sb.append(\"ForcedApplyDate: \" + getForcedApplyDate() + \",\");\n if (getOptInStatus() != null) sb.append(\"OptInStatus: \" + getOptInStatus() + \",\");\n if (getCurrentApplyDate() != null) sb.append(\"CurrentApplyDate: \" + getCurrentApplyDate() );\n sb.append(\"}\");\n return sb.toString();\n }",
"private String redo() {\n this.undos.push(History.copy(this));\n if (!redos.isEmpty()) {\n History history = redos.pop();\n this.undos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"public String getPrevCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if (this.currIndex <= 0) {\n return this.history.get(0);\n }\n\n this.currIndex -= 1;\n return this.history.get(this.currIndex);\n }",
"public String actionsToString() {\n String res = \"\";\n for (UserCheck userCheck: checks) {\n res += userCheck.toString() + \" \\n\";\n }\n return res;\n }",
"public String toString()\n {\n // import Component.Application.Console.Coherence;\n \n return \"RefAction{Method=\" + getMethod().getName() + \", Target=\" + getTarget() +\n \", Args=\" + Coherence.toString(getArguments()) + '}';\n }",
"public Map consoleInputHistory(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"history\"));\n\t}",
"@Override \n public String toString(){\n return this.logRepresentation;\n }",
"public void showHistory(){\n \tif (historyExample==null) historyExample = new HistoryExample();\n setWidgetAsExample(historyExample);\n }",
"static void recordUserAction(String name) {\n RecordUserAction.record(\"BackMenu_\" + name);\n }",
"private void printHistory(patient toPrint){\r\n if (toPrint == null)\r\n JOptionPane.showMessageDialog\r\n (null, \"No Patient to print\");\r\n else{\r\n String history = \"\";\r\n for (String s: toPrint.getApptPaymentHistory()){\r\n history += s + \"\\n\";\r\n }\r\n billing_patientHistoryTextArea.setText(history);\r\n }\r\n }",
"private void printBrowsingHistory()\r\n\t{\r\n\t\tQueue temp = new Queue(SIZE);\r\n\t\tObject element;\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Oldest to Most Recent):\");\r\n\t\tfor (int i = 0; i < queueCount; i++)\r\n\t\t{\r\n\t\t\telement = rChronological.dequeue();\t\t\t\t//dequeue first element to the variable element\r\n\t\t\tSystem.out.println(element);\t\t\t\t\t//print out the value of element (the URL)\r\n\t\t\ttemp.enqueue(element);\t\t\t\t\t\t\t//enqueue element to a temporary queue\r\n\t\t}\r\n\t\tfor (int i = 0; i < queueCount; i++)\r\n\t\t\trChronological.enqueue(temp.dequeue());\t\t\t//put all elements in temp back to the original queue\r\n\t}",
"public String getUndoInformation() {\n return previousActionUndoString;\n }",
"public void printMedicationHistory() {\n StringBuilder builder = new StringBuilder();\n if (medications.size() > 0) {\n for (Medication medication : medications) {\n builder.append(medication.toString()).append(\"\\n\");\n }\n builder.delete(builder.length() - 1, builder.length());\n }\n System.out.println(builder.toString());\n }",
"private void addToHistory(String msg){\n\t\ttry{\n\t\t\tlockHistory.writeLock().lock();\n\t\t\thistory.add(msg);\n\t\t\tlogOut.write(msg);\n\t\t\tlogOut.newLine();\n\t\t\tlogOut.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tlockHistory.writeLock().unlock();\n\t\t}\n\t}",
"public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUIViewTransactionHistory h = new GUIViewTransactionHistory(true);\n\t\t\t}",
"private void consoleAppend(String string){\r\n sbCommandHistory.append(string);\r\n sbCommandHistory.append(\"\\n\");\r\n }",
"Action(String desc){\n this.desc = desc;\n this.append = \"\";\n }",
"public List<String> getStatesHistory() {\n return statesHistory;\n }",
"public String getTravelRequisitionHistoryList() {\n\t\t// default method invoked when this action is called - struts framework rule\n\t\tif (logger.isDebugEnabled())\n\t\t\tlogger.debug(\"inside expense history action\");\n\t\tString status = \"\";\n\t\ttreqMaster = (TravelReqMasters) session.get(IConstants.TRAVEL_REQUISITION_SESSION_DATA);\n\n\t\tif (treqMaster == null) {\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t} else {\n\t\t\ttreqHistoryList = treqService.getTravelRequisitionHistory(treqMaster.getTreqeIdentifier().getTreqeIdentifier());\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t\tstatus = treqMaster.getStatus();\n\t\t\tString nextActionCode = null;\n\t\t\tnextActionCode = treqService.getNextActionCode(treqMaster);\n\t\t\tif (nextActionCode != null) {\n\t\t\t\tsetStatus(treqService.getRemainingApprovalPaths(\n\t\t\t\t\t\ttreqMaster.getTreqmIdentifier(), getUserSubject()));\n\t\t\t}\t\t\t\n\t\t\telse\n\t\t\t\tif (status != null) {\n\t\t\t\t\tif (status.equals(IConstants.APPROVED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.EXTRACTED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.HOURS_ADJUSTMENT_SENT)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_APPROVED_EXTRACTED_HOURS_ADJUSTMENT_SENT);\n\t\t\t\t\t} else if (status.equals(IConstants.PROCESSED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_PROCESSED);\n\t\t\t\t\t} else if (status.equals(IConstants.REJECTED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_REJECTED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_NEEDSTOBESUBMITTED);\n\t\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn IConstants.SUCCESS;\n\t}",
"public String toString(String x)\r\n\t{\n\t\tString details;\r\n\t\tdetails = (id+\":\"+ title +\":\"+genre+\":\"+description+\":\"+x);\r\n\t\t//PRINT HIRE HISTORY FROM OLDEST TO NEWEST\r\n\t\tfor(int i = hireHistory.length -1;i > -1; i--)\r\n\t\t{\r\n\t\t\tif(hireHistory[i] != null)\r\n\t\t\t{\r\n\t\t\t\tdetails += \"\\n\" + hireHistory[i].toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn details + \"\\n\";\r\n\t}",
"private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(\"result.txt\"));\n\t\t\tfos = new FileOutputStream(new File(\"history.txt\"), true);\n\t\t\t\n\t\t\tfos.write(\"\\n\\n\".getBytes(\"utf-8\"));\n\t\t\tfos.flush();\n\t\t\t\n\t\t\tresultChannel = fis.getChannel();\n\t\t\thistoryChannel = fos.getChannel();\n\n\t\t\tresultChannel.transferTo(0, resultChannel.size(), historyChannel);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tif (fos != null) {\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(resultChannel != null) {\n\t\t\t\t\tresultChannel.close();\n\t\t\t\t}\n\t\t\t\tif(historyChannel != null) {\n\t\t\t\t\thistoryChannel.close();\n\t\t\t\t}\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\t}",
"public interface Save {\n String writeHistory();\n}",
"private void Writehistory (List list, savekq savehistory){\n if (kiemtrasopt(list) < 10) {\n list.add(0, savehistory);\n } else {\n list.remove(9);\n list.add(0, savehistory);\n }\n }",
"public String showBrowsingHistory()\n {\n\t String result = \"\";\n\t \n\t if (this.getBrowseHistory() != null)\n\t {\n\t\tfor(String univ : (this.getBrowseHistory()))\n\t \t{\n\t\t result += univ + \"\\n\";\n\t \t}\n\t }\n\t \n\t return result;\n }",
"public String getNextCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if ((this.currIndex + 1) >= this.history.size()) {\n this.currIndex = this.history.size();\n return \"\";\n }\n\n this.currIndex += 1;\n return this.history.get(this.currIndex);\n }",
"private String E19History() {\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_HISTORY + \"\\n\\n\");\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int loop = 0;\n int needed = 0;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 3);\n\n for (Pub pub : data.getPubList()) {\n String beginDate = sdf.format(pub.getBegin());\n String endDate = \" \";\n if (pub.getEnd() != null) {\n endDate = sdf.format(pub.getEnd());\n }\n String tmp1 = String.format(\" %-25s %7s%10s %10s\\n\",\n pub.getPpub(), \" \", beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n for (Gage gage : gageList) {\n String beginDate = sdf.format(gage.getBegin());\n String endDate = \" \";\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n }\n\n String tmp1 = String.format(\n \" %-11s %14s%-11s %10s %10s\\n\", gage.getType(),\n \" \", gage.getOwner(), beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n\n for (Datum datum : data.getDatumList()) {\n String elevation = \" \";\n if (datum.getElevation() != -999) {\n elevation = String.format(\"%8.3f\", datum.getElevation());\n }\n\n String date = sdf.format(datum.getDate());\n\n String tmp1 = String.format(\" %s %24s%10s\\n\", elevation,\n \" \", date);\n\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);// ????\n\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n avail = available + count1;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(new Date()), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }",
"@Override\n\tpublic String getTitle() {\n\t\treturn \"Publish Worksheet History\";\n\t}",
"public void saveHistory(OperatorSelectionHistory history,String filename){\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(filename));){\n os.writeObject(history);\n os.close();\n } catch (IOException ex) {\n Logger.getLogger(IOSelectionHistory.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public org.naru.park.ParkController.CommonAction getGetUserHistory() {\n return getUserHistory_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : getUserHistory_;\n }",
"public String[] getStepActions() {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n String[] actions = new String[steps.length];\r\n Action action = null;\r\n \r\n for (int i = 0; i < steps.length; i++) {\r\n try {\r\n if (steps[i].getAction().equals(\"#question#\"))\r\n actions[i] = getString(\"processManager.question\");\r\n \r\n else if (steps[i].getAction().equals(\"#response#\"))\r\n actions[i] = getString(\"processManager.response\");\r\n \r\n else if (steps[i].getAction().equals(\"#reAssign#\"))\r\n actions[i] = getString(\"processManager.reAffectation\");\r\n \r\n else {\r\n action = processModel.getAction(steps[i].getAction());\r\n actions[i] = action.getLabel(currentRole, getLanguage());\r\n }\r\n } catch (WorkflowException we) {\r\n actions[i] = \"##\";\r\n }\r\n }\r\n \r\n return actions;\r\n }",
"public void actionPerformed(ActionEvent ae){\n sbCommandHistory.append(\"\\n\");\r\n sbCommandHistory.append(\">>\");\r\n sbCommandHistory.append(jtfConsole.getText());\r\n sbCommandHistory.append(\"\\n\");\r\n\r\n //Execute the command\r\n parseCommand(jtfConsole.getText());\r\n\r\n //Reset the text field\r\n jtfConsole.setText(\"\");\r\n }",
"private void printHistoryReverse()\r\n\t{\r\n\t\tStack temp = new Stack(SIZE);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Most Recent to Oldest):\");\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(chronological.peek());\t\t//print out value currently at the top of stack\r\n\t\t\ttemp.push(chronological.pop());\t\t\t\t\t//pop the top of stack and push to another stack\r\n\t\t}\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t\tchronological.push(temp.pop());\t\t\t\t\t//push all elements of temp back to the original stack\r\n\t}",
"private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}",
"public org.naru.park.ParkController.CommonActionOrBuilder getGetUserHistoryOrBuilder() {\n return getGetUserHistory();\n }",
"public IOperationHistory getOperationHistory() {\n\t\treturn OperationHistoryFactory.getOperationHistory();\r\n\t}",
"public String toString()\n {\n /**\n * Set the format as [timestamp] account number : command\n */\n String transaction = \"[\" + timestamp + \"] \" + accountInfo.getAccountNumber() + \" : \" + command.name(); \n \n /**\n * Return the string.\n */\n return transaction;\n }",
"LogAction createLogAction();",
"private void storeUserInputHistory(String input) {\n if (userInputHistoryPointer != userInputHistory.size() - 1\n || (userInputHistoryPointer == userInputHistory.size() - 1\n && !input.equals(userInputHistory.get(userInputHistoryPointer)))) {\n userInputHistory.add(input);\n }\n userInputHistoryPointer = userInputHistory.size();\n currentInput = null;\n }",
"public IapHistory(String alias) {\n\t\tthis(alias, IAP_HISTORY);\n\t}",
"public ExternalRequestHistoryRecord() {\n super(ExternalRequestHistory.EXTERNAL_REQUEST_HISTORY);\n }",
"public void showMoveHistory() {\n\t\ttry {\n\t\t\tif (gameMoveHistoryStage == null) {\n\t\t\t\tgameMoveHistoryStage = new Stage();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String trade_history(String pair, int since) {\n\t\treturn this.apiCall(\"trade_history\", pair, (\"since,\" + since), false);\n\t}",
"@Override\n public String save_toString() {\n return \"D | \" + super.save_toString() + \"| \" + date;\n }",
"@Test\n public void listAppHistoryTest() throws ApiException {\n Boolean naked = null;\n String appId = null;\n String status = null;\n String created = null;\n Long limit = null;\n Long offset = null;\n // HistoryEvent response = api.listAppHistory(naked, appId, status, created, limit, offset);\n\n // TODO: test validations\n }",
"@Override\n\tpublic String toString() {\n\t\tif(receive2==null && give2==null)\n\t\t\treturn \" Trade Action:\" + give1+ \" to \"+receive1;\n\t\telse return \" Trade Action: (1) \" + give1+ \" to \"+receive1+\" or (2) \" + give2+ \" to \" +receive2;\n\t}",
"private void LogPurchaseHistoryTable() {\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + DBHelper.TABLE_PURCHASEHISTORY, null);\n Log.d(DatabaseHelper.class.getName(), \"Contents of PurchaseHistory Table:\");\n\n c.moveToFirst();\n while (!c.isAfterLast()) {\n Log.d(DatabaseHelper.class.getName(), \"\\t _id:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_ID))) +\n \", pid:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PID))) +\n \", sid:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_SID))) +\n \", price:\" + String.valueOf(c.getDouble(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PRICE))) +\n \", quality:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_QUALITY))) +\n \", timestamp:\" + String.valueOf(c.getString(c.getColumnIndex(DBHelper.PURCHASEHISTORY_DATE))) );\n c.moveToNext();\n }\n\n db.close();\n }",
"private JMenuItem createSaveHistoryMenuItem() {\r\n\t\tJMenuItem saveHistory = new JMenuItem(\"Save History\");\r\n\t\tsaveHistory.setMnemonic('s');\r\n\t\tsaveHistory.setVisible(true);\r\n\t\tsaveHistory.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// stop animation temporarily if it was on\r\n\t\t\t\tVariable animateVar = Variable\r\n\t\t\t\t\t\t.getVariable(Grapher2DConstants.Grapher2DAnimateFlag);\r\n\t\t\t\tValue oldAnimateValue = animateVar.evaluate();\r\n\t\t\t\tanimateVar.set(new BooleanValue(false));\r\n\r\n\t\t\t\t// save the script\r\n\t\t\t\tActionScriptSaveUtilities.promptUserToSaveScript();\r\n\r\n\t\t\t\t// restart animation if it was on before\r\n\t\t\t\tanimateVar.set(oldAnimateValue);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn saveHistory;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Activity [activityName=\" + activityName + \", activityDescri=\" + activityDescri + \"]\";\r\n\t}",
"public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }",
"private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }"
]
| [
"0.7705352",
"0.72050726",
"0.72050726",
"0.7144025",
"0.6828622",
"0.68074137",
"0.6454979",
"0.6388075",
"0.6385467",
"0.6173623",
"0.6081833",
"0.6065303",
"0.6030715",
"0.60099494",
"0.5981026",
"0.5930139",
"0.5924455",
"0.5920703",
"0.591725",
"0.590697",
"0.5867926",
"0.5816594",
"0.58143604",
"0.58028644",
"0.57993764",
"0.5791207",
"0.5764409",
"0.57375497",
"0.5728531",
"0.5728515",
"0.56885153",
"0.5687498",
"0.5674048",
"0.5660414",
"0.5635583",
"0.56170803",
"0.56091297",
"0.5604294",
"0.55987805",
"0.55849504",
"0.5583317",
"0.5578017",
"0.5571473",
"0.5542323",
"0.5542216",
"0.5525649",
"0.5523095",
"0.5503827",
"0.5502273",
"0.5501666",
"0.54988813",
"0.5489449",
"0.54800135",
"0.5468758",
"0.5463123",
"0.5462247",
"0.54569143",
"0.5453947",
"0.5451958",
"0.54459417",
"0.5441201",
"0.5435244",
"0.54278857",
"0.5425009",
"0.5409095",
"0.5397596",
"0.53855544",
"0.5385105",
"0.5366754",
"0.53645825",
"0.53613317",
"0.5357378",
"0.53491974",
"0.53466105",
"0.53301764",
"0.53226924",
"0.5321107",
"0.53192663",
"0.5318906",
"0.5315535",
"0.5310275",
"0.5288202",
"0.5286352",
"0.52803963",
"0.52793384",
"0.52726454",
"0.5272526",
"0.5267652",
"0.52602696",
"0.52556777",
"0.52452314",
"0.52443564",
"0.5217952",
"0.5207671",
"0.51995677",
"0.5193184",
"0.5186193",
"0.51860064",
"0.5183073",
"0.5182915",
"0.517461"
]
| 0.0 | -1 |
This method will return the total number. | public int getTotal () {
return total;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int getTotalNumber() {\n\t\treturn totalNum;\n\t}",
"public Integer getTotalNum() {\n return totalNum;\n }",
"public int getTotal () {\n return total;\n }",
"public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}",
"public int getTotal () {\n\t\treturn total;\n\t}",
"public int getTotal() {\n return total;\n }",
"public int getTotal() {\n return total;\n }",
"public int total() {\n return _total;\n }",
"public long getTotal() {\n return total;\n }",
"public long getTotal() {\n return total;\n }",
"public int getTotal() {\n\t\treturn total;\n\t}",
"public int getTotal() {\n return total;\n }",
"public long getTotal() { return total; }",
"public long getTotal() { return total; }",
"public int getTotal() {\n\t\t\treturn total;\n\t\t}",
"public int total() {\n return this.total;\n }",
"public int getTotal() {\n\t\treturn this.total;\n\t}",
"Integer total();",
"public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}",
"public BigInteger getTotal()\n\t{\n\t\treturn total;\n\t}",
"public int result() {\n\t\treturn total;\n\t}",
"public Integer total() {\n return this.total;\n }",
"public double getTotal() {\r\n\t\treturn total;\r\n\t}",
"public double getTotal() {\n return Total;\n }",
"public static float getTotal() {\n return total;\r\n }",
"public double getTotal() {\n\t\treturn total;\n\t}",
"public BigInteger getTotal() {\n return total;\n }",
"public double getTotal (){ \r\n return total;\r\n }",
"public Long total() {\n return this.total;\n }",
"public BigInteger getTotal () {\n\t return total;\n\t }",
"@Override\r\n\tpublic long getTotal() {\n\t\treturn 0;\r\n\t}",
"public float getTotal(){\r\n\t\treturn Total;\r\n\t}",
"@Override\n public double getTotal() {\n return total;\n }",
"public int getTotalAmount();",
"public double getTotal(){\n return total;\n }",
"public Number getTotal() {\n return (Number)getAttributeInternal(TOTAL);\n }",
"double getTotal();",
"public Number getTotalNum() {\n return (Number) getAttributeInternal(TOTALNUM);\n }",
"public float getTotal() {\n return this.total;\n }",
"public BigDecimal getTotal() {\n return total;\n }",
"public BigDecimal getTotal() {\n return total;\n }",
"public int getTotal(){\n\t\tif (getDistance() < N*1000){\n\t\t\treturn firstNKmCost;\n\t\t} else {\n\t\t\treturn firstNKmCost + (getDistance() - N * 1000 ) * costPerKm / 1000;\n\t\t}\n\t}",
"public Double getTotal() {\n return total;\n }",
"public Double getTotal() {\n return total;\n }",
"public Double getTotal() {\n return total;\n }",
"public int getTotal() {\n return total[ke];\n }",
"public void total() {\n\t\t\n\t}",
"public int getSueldoTotal() {\n return sueldoTotal;\n }",
"public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}",
"public int getTotalCount() {\n return totalCount;\n }",
"public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}",
"int getTotal(){\n\t\treturn this.orderTotal;\n\t}",
"@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}",
"public static int totalSupply() {\n return totalSupplyGet();\n }",
"public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}",
"public native int getTotal() /*-{\n\t\treturn this.total;\n\t}-*/;",
"public java.lang.Double getTotal () {\r\n\t\treturn total;\r\n\t}",
"public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }",
"public long getTotalCount() {\n return _totalCount;\n }",
"public Total getTotal() {\r\n\t\treturn total;\r\n\t}",
"@Override\n public double total() {\n return 2500;\n }",
"public Long getTotalCount() {\r\n return totalCount;\r\n }",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}",
"public long getTotal() {\r\n\t\treturn page.getTotalElements();\r\n\t}",
"UnsignedInt getTotal();",
"public Double getTotal();",
"public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }",
"public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}",
"public BigDecimal total() {\n return executor.calculateTotal(basket);\n }",
"public int getTotalReturnCount(){\n return totalReturnCount;\n }",
"public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}",
"public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}",
"public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }",
"public int totalNum(){\n return wp.size();\n }",
"public double getTotal() {\n double amount = 0;\n amount = (this.getQuantity() * product.getPrice().doubleValue());\n return amount;\n }",
"public java.math.BigInteger getTotalResults()\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(TOTALRESULTS$4);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"BigDecimal getTotal();",
"BigDecimal getTotal();",
"@Override\n\tpublic Integer getTotalNum(String hql) {\n\t\treturn super.findTotleNum(hql);\n\t}",
"private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }",
"public double Get_Total(Context context){\n return ((double) (TrafficStats.getTotalRxBytes()+TrafficStats.getTotalTxBytes())/1048576);\n }",
"public int getSum() {\n\t\t\treturn 0;\r\n\t\t}",
"public Document getTotal() { return total; }",
"@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}",
"public int getMontantTotal() {\n\t\treturn montantTotal;\n\t}",
"public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}",
"public long getPointsTotal()\n {\n return pointsTotal;\n }",
"public int queryTotal() {\n\t\treturn this.studentMaper.queryTotal();\r\n\t}",
"public int total() {\n\t \treturn totalWords;\n\t }",
"int getTotalCount();",
"public int getTotRuptures();",
"public double getTotal() {\n return totalCost;\n }",
"public Double getTotal() {\n\t\treturn null;\n\t}",
"public int getTotal() {\n int value = 0;\n for (Map.Entry<Integer, Integer> entry : gramma.entrySet()) {\n value += entry.getKey() * entry.getValue();\n }\n return value;\n }",
"public int getTotalQuantity() {\n\t\treturn totalQuantity;\n\t}",
"public Coverage getTotal() {\n return this.total;\n }",
"public BigDecimal getTotalAmount() {\n return totalAmount;\n }"
]
| [
"0.8400831",
"0.8334001",
"0.8272691",
"0.8229696",
"0.8225558",
"0.82188404",
"0.82188404",
"0.8142767",
"0.8124673",
"0.8124673",
"0.8116954",
"0.8104153",
"0.80936927",
"0.80936927",
"0.8056917",
"0.80373824",
"0.79624295",
"0.79555625",
"0.7940852",
"0.78300995",
"0.7776394",
"0.7756027",
"0.7755418",
"0.7752557",
"0.77367264",
"0.7721532",
"0.77043545",
"0.7673287",
"0.7658275",
"0.7631206",
"0.7619784",
"0.76177526",
"0.76164633",
"0.76152295",
"0.75438046",
"0.7541361",
"0.75245506",
"0.7514942",
"0.7511105",
"0.7501714",
"0.7501714",
"0.74961585",
"0.7480313",
"0.7480313",
"0.7480313",
"0.744822",
"0.74074715",
"0.74071956",
"0.7406356",
"0.7398407",
"0.73860794",
"0.73547876",
"0.7343176",
"0.7297004",
"0.7289852",
"0.728322",
"0.72434884",
"0.72390425",
"0.7212181",
"0.7195789",
"0.71909636",
"0.7172491",
"0.716238",
"0.716238",
"0.7157225",
"0.7147794",
"0.7139973",
"0.71345615",
"0.7131654",
"0.71312577",
"0.71293956",
"0.71287155",
"0.7119243",
"0.71063995",
"0.7089606",
"0.70807207",
"0.70742875",
"0.70572776",
"0.7013254",
"0.7013254",
"0.7009234",
"0.69957626",
"0.6992151",
"0.6991065",
"0.69797343",
"0.6974044",
"0.6958961",
"0.69531286",
"0.69399667",
"0.69375217",
"0.6932798",
"0.6930649",
"0.69281",
"0.6921779",
"0.69172555",
"0.6912729",
"0.68913174",
"0.688149",
"0.6870999"
]
| 0.8280396 | 3 |
This method will return a history string that include all action history. | public String getHistory () {
return history;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString ()\r\n\t{\r\n\t\treturn history + \" \";\r\n\t}",
"public String getHistory () {\n\t\treturn history;\n\t}",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"public String getOrderHistory() {\n\n\t\treturn getOrderHistory(\"\");\n\t}",
"public String history(){\n return this.inventoryHistory.toString();\n }",
"public String getWithdrawalHistory() {\n\n\t\treturn getWithdrawalHistory(\"\");\n\t}",
"public String getDepositHistory() {\n\n\t\treturn getDepositHistory(\"\");\n\t}",
"public HistoryAction getHistoryAction()\n {\n return historyAction;\n }",
"public synchronized String getHistory() {\r\n\t\tString log = new String();\r\n\t\ttry {\r\n\t\t\tFile logFile = new File(\"serverlogs.log\");\r\n\t\t\tBufferedReader logReader = new BufferedReader(new InputStreamReader(new FileInputStream(logFile)));\r\n\t\t\tString line;\r\n\t\t\twhile((line = logReader.readLine()) != null) {\r\n\t\t\t\tlog += (line + \"\\n\");\r\n\t\t\t}\r\n\t\t\tlogReader.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tgui.acknowledge(\"Error : logs are not available\");\r\n\t\t\tstop();\r\n\t\t}\r\n\t\tif(log.equals(\"\\n\")) {\r\n\t\t\tlog = new String();\r\n\t\t}\r\n\t\treturn log;\r\n\t}",
"public ArrayList<String> getCommandHistory() {\r\n return commandHistory;\r\n }",
"public org.naru.park.ParkController.CommonAction getGetUserHistory() {\n if (getUserHistoryBuilder_ == null) {\n return getUserHistory_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : getUserHistory_;\n } else {\n return getUserHistoryBuilder_.getMessage();\n }\n }",
"public String showBrowsingHistory()\n {\n\t String result = \"\";\n\t \n\t if (this.getBrowseHistory() != null)\n\t {\n\t\tfor(String univ : (this.getBrowseHistory()))\n\t \t{\n\t\t result += univ + \"\\n\";\n\t \t}\n\t }\n\t \n\t return result;\n }",
"public String getJdHistory() {\r\n\t\treturn jdHistory;\r\n\t}",
"@Override\n public String toString()\n {\n return \"HistoryEntry from: \" + validFrom + \", to: \" + validTo;\n }",
"public ArrayList<String> getCommandsHistory() {\n\t\treturn commandsHistory;\n\t}",
"public List<String> getStatesHistory() {\n return statesHistory;\n }",
"org.naru.park.ParkController.CommonAction getGetUserHistory();",
"public String getTravelRequisitionHistoryList() {\n\t\t// default method invoked when this action is called - struts framework rule\n\t\tif (logger.isDebugEnabled())\n\t\t\tlogger.debug(\"inside expense history action\");\n\t\tString status = \"\";\n\t\ttreqMaster = (TravelReqMasters) session.get(IConstants.TRAVEL_REQUISITION_SESSION_DATA);\n\n\t\tif (treqMaster == null) {\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t} else {\n\t\t\ttreqHistoryList = treqService.getTravelRequisitionHistory(treqMaster.getTreqeIdentifier().getTreqeIdentifier());\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t\tstatus = treqMaster.getStatus();\n\t\t\tString nextActionCode = null;\n\t\t\tnextActionCode = treqService.getNextActionCode(treqMaster);\n\t\t\tif (nextActionCode != null) {\n\t\t\t\tsetStatus(treqService.getRemainingApprovalPaths(\n\t\t\t\t\t\ttreqMaster.getTreqmIdentifier(), getUserSubject()));\n\t\t\t}\t\t\t\n\t\t\telse\n\t\t\t\tif (status != null) {\n\t\t\t\t\tif (status.equals(IConstants.APPROVED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.EXTRACTED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.HOURS_ADJUSTMENT_SENT)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_APPROVED_EXTRACTED_HOURS_ADJUSTMENT_SENT);\n\t\t\t\t\t} else if (status.equals(IConstants.PROCESSED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_PROCESSED);\n\t\t\t\t\t} else if (status.equals(IConstants.REJECTED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_REJECTED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_NEEDSTOBESUBMITTED);\n\t\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn IConstants.SUCCESS;\n\t}",
"@Test\n public void listAppHistoryTest() throws ApiException {\n Boolean naked = null;\n String appId = null;\n String status = null;\n String created = null;\n Long limit = null;\n Long offset = null;\n // HistoryEvent response = api.listAppHistory(naked, appId, status, created, limit, offset);\n\n // TODO: test validations\n }",
"public ResourcesHistory resourcesHistory() {\n return this.resourcesHistory;\n }",
"public String getPrevCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if (this.currIndex <= 0) {\n return this.history.get(0);\n }\n\n this.currIndex -= 1;\n return this.history.get(this.currIndex);\n }",
"public IOperationHistory getOperationHistory() {\n\t\treturn OperationHistoryFactory.getOperationHistory();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(super.toString());\n\t\tbuffer.append('\\n');\n\t\tfor (final State state : getStates()) {\n\t\t\tif (initialState == state) {\n\t\t\t\tbuffer.append(\"--> \");\n\t\t\t}\n\t\t\tbuffer.append(state);\n\t\t\tif (isFinalState(state)) {\n\t\t\t\tbuffer.append(\" **FINAL**\");\n\t\t\t}\n\t\t\tbuffer.append('\\n');\n\t\t\tfor (final Transition transition : getTransitionsFromState(state)) {\n\t\t\t\tbuffer.append('\\t');\n\t\t\t\tbuffer.append(transition);\n\t\t\t\tbuffer.append('\\n');\n\t\t\t}\n\t\t}\n\n\t\treturn buffer.toString();\n\t}",
"public String toString() {\n\t\treturn trail.toString();\n\t}",
"public Set<T> getHistoryEvents() {\n\t\tif (historyEvents == null) {\n\t\t\tcreateHistoryEvents();\n\t\t}\n\t\treturn historyEvents;\n\t}",
"public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }",
"public org.naru.park.ParkController.CommonAction getGetUserHistory() {\n return getUserHistory_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : getUserHistory_;\n }",
"public List<InteractionEvent> getInteractionHistory() {\n \t\tSet<InteractionEvent> events = new HashSet<InteractionEvent>();\n \t\tfor (InteractionContext taskscape : contexts.values()) {\n \t\t\tevents.addAll(taskscape.getInteractionHistory());\n \t\t}\n \t\treturn new ArrayList<InteractionEvent>(events);\n \t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAction() != null) sb.append(\"Action: \" + getAction() + \",\");\n if (getAutoAppliedAfterDate() != null) sb.append(\"AutoAppliedAfterDate: \" + getAutoAppliedAfterDate() + \",\");\n if (getForcedApplyDate() != null) sb.append(\"ForcedApplyDate: \" + getForcedApplyDate() + \",\");\n if (getOptInStatus() != null) sb.append(\"OptInStatus: \" + getOptInStatus() + \",\");\n if (getCurrentApplyDate() != null) sb.append(\"CurrentApplyDate: \" + getCurrentApplyDate() );\n sb.append(\"}\");\n return sb.toString();\n }",
"public org.naru.park.ParkController.CommonActionOrBuilder getGetUserHistoryOrBuilder() {\n return getGetUserHistory();\n }",
"public String actionsToString() {\n String res = \"\";\n for (UserCheck userCheck: checks) {\n res += userCheck.toString() + \" \\n\";\n }\n return res;\n }",
"public ScriptHistory getScriptHistory() {\n return scriptHistory;\n }",
"public org.naru.park.ParkController.CommonAction.Builder getGetUserHistoryBuilder() {\n \n onChanged();\n return getGetUserHistoryFieldBuilder().getBuilder();\n }",
"private void printHistoryReverse()\r\n\t{\r\n\t\tStack temp = new Stack(SIZE);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Most Recent to Oldest):\");\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(chronological.peek());\t\t//print out value currently at the top of stack\r\n\t\t\ttemp.push(chronological.pop());\t\t\t\t\t//pop the top of stack and push to another stack\r\n\t\t}\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t\tchronological.push(temp.pop());\t\t\t\t\t//push all elements of temp back to the original stack\r\n\t}",
"@Override\n public String toString() {\n StringBuilder buf = new StringBuilder();\n buf.append(Time.toUsefulFormat(time));\n buf.append(\" \" + actionType.name());\n buf.append(\" author=[\" + author + \"]\");\n buf.append(\" target=\" + target.name());\n buf.append(\" path=\" + path);\n buf.append(\" ipath=\" + ipath);\n \n return buf.toString();\n }",
"public String getOrderHistory(String market) {\n\n\t\tString method = \"getorderhistory\";\n\n\t\tif(market.equals(\"\"))\n\n\t\t\treturn getJson(API_VERSION, ACCOUNT, method);\n\n\t\treturn getJson(API_VERSION, ACCOUNT, method, returnCorrectMap(\"market\", market));\n\t}",
"private IOperationHistory getOperationHistory() {\n return PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();\n }",
"public String getActionLog() {\n \t\treturn actionLog;\n \t}",
"private String E19History() {\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_HISTORY + \"\\n\\n\");\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int loop = 0;\n int needed = 0;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 3);\n\n for (Pub pub : data.getPubList()) {\n String beginDate = sdf.format(pub.getBegin());\n String endDate = \" \";\n if (pub.getEnd() != null) {\n endDate = sdf.format(pub.getEnd());\n }\n String tmp1 = String.format(\" %-25s %7s%10s %10s\\n\",\n pub.getPpub(), \" \", beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n for (Gage gage : gageList) {\n String beginDate = sdf.format(gage.getBegin());\n String endDate = \" \";\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n }\n\n String tmp1 = String.format(\n \" %-11s %14s%-11s %10s %10s\\n\", gage.getType(),\n \" \", gage.getOwner(), beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n\n for (Datum datum : data.getDatumList()) {\n String elevation = \" \";\n if (datum.getElevation() != -999) {\n elevation = String.format(\"%8.3f\", datum.getElevation());\n }\n\n String date = sdf.format(datum.getDate());\n\n String tmp1 = String.format(\" %s %24s%10s\\n\", elevation,\n \" \", date);\n\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);// ????\n\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n avail = available + count1;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(new Date()), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }",
"String toStringBackwards();",
"public org.naru.park.ParkController.CommonActionOrBuilder getGetUserHistoryOrBuilder() {\n if (getUserHistoryBuilder_ != null) {\n return getUserHistoryBuilder_.getMessageOrBuilder();\n } else {\n return getUserHistory_ == null ?\n org.naru.park.ParkController.CommonAction.getDefaultInstance() : getUserHistory_;\n }\n }",
"private void printBrowsingHistory()\r\n\t{\r\n\t\tQueue temp = new Queue(SIZE);\r\n\t\tObject element;\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Oldest to Most Recent):\");\r\n\t\tfor (int i = 0; i < queueCount; i++)\r\n\t\t{\r\n\t\t\telement = rChronological.dequeue();\t\t\t\t//dequeue first element to the variable element\r\n\t\t\tSystem.out.println(element);\t\t\t\t\t//print out the value of element (the URL)\r\n\t\t\ttemp.enqueue(element);\t\t\t\t\t\t\t//enqueue element to a temporary queue\r\n\t\t}\r\n\t\tfor (int i = 0; i < queueCount; i++)\r\n\t\t\trChronological.enqueue(temp.dequeue());\t\t\t//put all elements in temp back to the original queue\r\n\t}",
"void onHistoryButtonClicked();",
"private String toLoggableString() {\n\t\tString string = canceled ? \"canceled call\" : \"call\";\n\t\tHttpUrl redactedUrl = originalRequest.url().resolve(\"/...\");\n\t\treturn string + \" to \" + redactedUrl;\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAction() != null)\n sb.append(\"Action: \").append(getAction()).append(\",\");\n if (getDateAdded() != null)\n sb.append(\"DateAdded: \").append(getDateAdded()).append(\",\");\n if (getDateDue() != null)\n sb.append(\"DateDue: \").append(getDateDue());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getMarketHistory(String market) {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getmarkethistory\", returnCorrectMap(\"market\", market));\n\t}",
"private History() {}",
"public String getWithdrawalHistory(String currency) {\n\n\t\tString method = \"getwithdrawalhistory\";\n\n\t\tif(currency.equals(\"\"))\n\n\t\t\treturn getJson(API_VERSION, ACCOUNT, method);\n\n\t\treturn getJson(API_VERSION, ACCOUNT, method, returnCorrectMap(\"currency\", currency));\n\t}",
"private void addHistory(String s) {\r\n\t\tcurrentPlayer.getHistory().add(s);\r\n\t\tif (currentPlayer.getHistory().size() > 6) currentPlayer.getHistory().remove(0);\r\n\t\t//updatePlayArea(currentPlayer, false);\r\n\t}",
"private String makeOneStringHistory(){\n String result = \"\";\n\n for(int i = 0 ; i < sensorDatas.size() ; i++ ){\n if(sensorDatas.get(i).getProduct().getValueOfProduct() == 0){\n result = result + \"<tr><td><h3 style='color:red' > \" +sensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:red' > \" + sensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td></tr>\";\n\n }else{\n result = result + \" <tr><td><h3 style='color:blue' > \" +sensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:blue' > \" + sensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td></tr>\";\n }\n }\n return result;\n }",
"@UiHandler(\"history\")\n public void showHistory (ClickEvent event){\n \tshowHistory();\n }",
"public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }",
"public List<Weather> getHistory() {\n return weatherRepo.findAll();\n }",
"public ArrayList<String> getBrowseHistory() {\n \treturn this.browseHistory;\n }",
"private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"public String toString()\n {\n // import Component.Application.Console.Coherence;\n \n return \"RefAction{Method=\" + getMethod().getName() + \", Target=\" + getTarget() +\n \", Args=\" + Coherence.toString(getArguments()) + '}';\n }",
"org.naru.park.ParkController.CommonActionOrBuilder getGetUserHistoryOrBuilder();",
"public AccountsHistory accountsHistory() {\n return this.accountsHistory;\n }",
"@GET(\"points-transaction-history?expand=translations&sort=-created_at\")\n Call<HistoryExchangeResponse> getTransactionHistoryAll();",
"public java.util.List<EncounterStatusHistory> statusHistory() {\n return getList(EncounterStatusHistory.class, FhirPropertyNames.PROPERTY_STATUS_HISTORY);\n }",
"public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }",
"public void setHistoryAction(HistoryAction historyAction)\n {\n this.historyAction = historyAction;\n }",
"public String[] getStepActions() {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n String[] actions = new String[steps.length];\r\n Action action = null;\r\n \r\n for (int i = 0; i < steps.length; i++) {\r\n try {\r\n if (steps[i].getAction().equals(\"#question#\"))\r\n actions[i] = getString(\"processManager.question\");\r\n \r\n else if (steps[i].getAction().equals(\"#response#\"))\r\n actions[i] = getString(\"processManager.response\");\r\n \r\n else if (steps[i].getAction().equals(\"#reAssign#\"))\r\n actions[i] = getString(\"processManager.reAffectation\");\r\n \r\n else {\r\n action = processModel.getAction(steps[i].getAction());\r\n actions[i] = action.getLabel(currentRole, getLanguage());\r\n }\r\n } catch (WorkflowException we) {\r\n actions[i] = \"##\";\r\n }\r\n }\r\n \r\n return actions;\r\n }",
"private String redo() {\n this.undos.push(History.copy(this));\n if (!redos.isEmpty()) {\n History history = redos.pop();\n this.undos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"public IapHistory() {\n\t\tthis(\"iap_history\", null);\n\t}",
"public AccountResourcesHistory accountResourcesHistory() {\n return this.accountResourcesHistory;\n }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tfinal WebHistory history=engine.getHistory();\r\n\t\t ObservableList<WebHistory.Entry> entryList=history.getEntries();\r\n\t\t int currentIndex=history.getCurrentIndex();\r\n//\t\t Out(\"currentIndex = \"+currentIndex);\r\n//\t\t Out(entryList.toString().replace(\"],\",\"]\\n\"));\r\n\t\t\t if(history.getCurrentIndex()<entryList.size()-1){\r\n\t\t\t \r\n\t\t Platform.runLater(new Runnable() { public void run() { history.go(1); } });\r\n\t\t System.out.println(entryList.get(currentIndex<entryList.size()-1?currentIndex+1:currentIndex).getUrl());\r\n\t\t\t}\r\n\t\t}",
"@Override\n public String toString ()\n {\n StringBuffer buffer = new StringBuffer();\n for (State value : stateMap.values()) {\n buffer.append(value.toString());\n buffer.append(\"\\n\");\n }\n return buffer.toString();\n }",
"public String getForward() {\n index++;\n return (String) history.get(index);\n }",
"public FileHistory getFileHistory() {\n\t\treturn theFileHistory;\n\t}",
"public List<Order> getOrderHistory();",
"private ArrayList<String> getAllActions() {\n\t\t\n\t\tArrayList<String> allActions = new ArrayList<String>();\n\t\tallActions.add(\"Job fisher\");\n\t\tallActions.add(\"Job captain\");\n\t\tallActions.add(\"Job teacher\");\n\t\tallActions.add(\"Job factory worker\");\n\t\tallActions.add(\"Job factory boss\");\n\t\tallActions.add(\"Job elderly caretaker\");\n\t\tallActions.add(\"Job work outside village\");\n\t\tallActions.add(\"Job unemployed\");\n\t\treturn allActions;\n\t}",
"public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> getExchangeHistoryListList() {\n return exchangeHistoryList_;\n }",
"public String displayAllActivities() {\n String str = \"\";\n for (Map.Entry<String, Activity> a : activities.entrySet()) {\n str += a.getKey() + \",\";\n }\n return str;\n }",
"public String toString() {\n\t\t\tif (lastAppendNewLine) {\n\t\t\t\tmBuilder.deleteCharAt(mBuilder.length() - 1);\n\t\t\t}\n\t\t\treturn mBuilder.toString();\n\t\t}",
"public UpdateHistory() {\n this(\"update_history\", null);\n }",
"public String getBack() {\n index--;\n return (String) history.get(index);\n }",
"public void printMedicationHistory() {\n StringBuilder builder = new StringBuilder();\n if (medications.size() > 0) {\n for (Medication medication : medications) {\n builder.append(medication.toString()).append(\"\\n\");\n }\n builder.delete(builder.length() - 1, builder.length());\n }\n System.out.println(builder.toString());\n }",
"public String getNextCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if ((this.currIndex + 1) >= this.history.size()) {\n this.currIndex = this.history.size();\n return \"\";\n }\n\n this.currIndex += 1;\n return this.history.get(this.currIndex);\n }",
"public hr.client.appuser.CouponCenter.ExchangeRecord.Builder addExchangeHistoryListBuilder() {\n return getExchangeHistoryListFieldBuilder().addBuilder(\n hr.client.appuser.CouponCenter.ExchangeRecord.getDefaultInstance());\n }",
"public String getUndoInformation() {\n return previousActionUndoString;\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder(\"(\");\r\n\t\tfor (int j = t; j >= 0; j--) {\r\n\t\t\tsb.append(stack[j]);\r\n\t\t\tif (j > 0)\r\n\t\t\t\tsb.append(\", \");\r\n\t\t}\r\n\t\tsb.append(\")\");\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\n public String toString() {\n \tString retString = \"Stack[\";\n \tfor(int i = 0; i < stack.size() - 1; i++) // append elements up to the second to last onto the return string\n \t\tretString += stack.get(i) + \", \";\n \tif(stack.size() > 0)\n \t\tretString += stack.get(stack.size() - 1); // append final element with out a comma after it\n \tretString += \"]\";\n \treturn retString;\n }",
"public String toString(String x)\r\n\t{\n\t\tString details;\r\n\t\tdetails = (id+\":\"+ title +\":\"+genre+\":\"+description+\":\"+x);\r\n\t\t//PRINT HIRE HISTORY FROM OLDEST TO NEWEST\r\n\t\tfor(int i = hireHistory.length -1;i > -1; i--)\r\n\t\t{\r\n\t\t\tif(hireHistory[i] != null)\r\n\t\t\t{\r\n\t\t\t\tdetails += \"\\n\" + hireHistory[i].toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn details + \"\\n\";\r\n\t}",
"private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(\"result.txt\"));\n\t\t\tfos = new FileOutputStream(new File(\"history.txt\"), true);\n\t\t\t\n\t\t\tfos.write(\"\\n\\n\".getBytes(\"utf-8\"));\n\t\t\tfos.flush();\n\t\t\t\n\t\t\tresultChannel = fis.getChannel();\n\t\t\thistoryChannel = fos.getChannel();\n\n\t\t\tresultChannel.transferTo(0, resultChannel.size(), historyChannel);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tif (fos != null) {\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(resultChannel != null) {\n\t\t\t\t\tresultChannel.close();\n\t\t\t\t}\n\t\t\t\tif(historyChannel != null) {\n\t\t\t\t\thistoryChannel.close();\n\t\t\t\t}\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\t}",
"public void openHistory() {\n usingHistoryScreen = true;\n myActivity.setContentView(R.layout.history);\n Button historyButtonToGame = myActivity.findViewById(R.id.button8);\n TextView historyText = myActivity.findViewById(R.id.textView46);\n historyText.setText(state.getHistory());\n historyText.setMovementMethod(new ScrollingMovementMethod());\n gui.invalidate();\n historyButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingHistoryScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }",
"public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord.Builder> \n getExchangeHistoryListBuilderList() {\n return getExchangeHistoryListFieldBuilder().getBuilderList();\n }",
"private String indexHistoryElement(int index, String historyElement) {\n return Integer.toString(index) + \". \" + historyElement;\n }",
"public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> getExchangeHistoryListList() {\n if (exchangeHistoryListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(exchangeHistoryList_);\n } else {\n return exchangeHistoryListBuilder_.getMessageList();\n }\n }",
"public java.util.List<EncounterClassHistory> classHistory() {\n return getList(EncounterClassHistory.class, FhirPropertyNames.PROPERTY_CLASS_HISTORY);\n }",
"private History toHistory(Game game) {\n\n History history = new History();\n\n history.setDate(game.getDate());\n history.setPlayerNameUa(game.getUsers().get(0).getNameUa());//TODO improve\n history.setPlayerNameEn(game.getUsers().get(0).getNameEn());//TODO improve\n\n if (game.getUsers().size() > 1) { //TODO improve\n history.setOpponentNameUa(game.getUsers().get(1).getNameUa());\n history.setOpponentNameEn(game.getUsers().get(1).getNameEn());\n } else {\n //TODO correct for both languages\n history.setOpponentNameUa(ResourceBundleUtil.getBundleString(\"games.game.statistics.text.audience\"));\n history.setOpponentNameEn(ResourceBundleUtil.getBundleString(\"games.game.statistics.text.audience\"));\n }\n\n User firstPlayer = game.getUsers().get(0); //TODO correct\n long firstPlayerScores = game.getAnsweredQuestions()\n .stream()\n .filter(aq -> firstPlayer.equals(aq.getUserWhoGotPoint()))\n .count();\n\n long secondPlayerScores = (long) game.getAnsweredQuestions()\n .size() - firstPlayerScores;\n\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(firstPlayerScores);\n stringBuilder.append(DELIMITER);//TODO move \":\" to properties\n stringBuilder.append(secondPlayerScores);\n String scores = stringBuilder.toString();\n history.setScores(scores);\n //TODO correct for both languages\n game.getAppeals().stream()\n .forEach(appeal -> {\n if (appeal.getAppealStage().equals(AppealStage.CONSIDERED)) {\n history.setAppealStage(ResourceBundleUtil.getBundleStringForAppealStage(AppealStage.CONSIDERED.name()));\n } else {\n history.setAppealStage(ResourceBundleUtil.getBundleStringForAppealStage(AppealStage.NOT_FILED.name()));\n }\n\n });\n// }\n return history;\n\n }",
"protected abstract void createHistoryEvents();",
"public WorkflowsHistory workflowsHistory() {\n return this.workflowsHistory;\n }",
"INexusFilterDescriptor[] getFilterDescriptorHistory();",
"public String toString() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(this.name + \"\\n\");\n\t\tfor (int i = 0; i < menu.size(); ++i) {\n\t\t\tbuilder.append(menu.get(i).toString() + \"\\n\");\n\t\t}\n\t\tbuilder.append(\"**end**\");\n\t\treturn builder.toString();\n\t}",
"public String toString() {\n\treturn state.toString() + \" \" + context.toString();\n }",
"public SubscriberNumberMgmtHistory getHistory()\r\n {\r\n return history_;\r\n }",
"public String toString()\r\n\t{\r\n\t\tString UrlValues = \"\"+this.stringID+\";\"+this.baseUrl+\";\"+this.redirectedUrl+\";\"+this.responseCode+\";\"+this.exceptionOccurred+\";\"+this.configUrlPattern+\";\"+this.configRedirectedUrlPattern+\";\"+this.configEngUrl+\";\"+this.configEngRedirectedUrl+\";\"+this.isErrorPage+\";\"+this.isDeleted+\";\"+this.baseUrlPatternMatchResult+\";\"+this.redirectedUrlPatternMatchResult+\";\"+this.isBaseUrlLocalized+\";\"+this.isRedirectedUrlLocalized+\";\"+this.followsConfigUrlPattern+\";\"+this.followsConfigRedirectedUrlPattern+\";\";\r\n\t\treturn UrlValues;\r\n\t}",
"public String toString()\n {\n StringBuffer sb = new StringBuffer();\n\n sb.append(super.toString());\n sb.append(\"{m_priority=\");\n sb.append(m_priority);\n sb.append(\", m_category=\");\n sb.append(m_category);\n sb.append(\", m_status=\");\n sb.append(m_status);\n sb.append(\", m_logicalKey=\");\n sb.append(m_logicalKey);\n sb.append(\", m_levelObjectType=\");\n sb.append(getLevelTypeAsString(m_levelObjectType));\n sb.append(\", m_levelObjectId=\");\n sb.append(m_levelObjectId);\n sb.append(\", m_issueHistory={\");\n sb.append(m_issueHistory.toString());\n sb.append(\"}}\");\n\n return sb.toString();\n }"
]
| [
"0.79099613",
"0.7388078",
"0.7281695",
"0.7086282",
"0.6952652",
"0.6784429",
"0.6466935",
"0.6369719",
"0.62707883",
"0.6263477",
"0.61930907",
"0.6148144",
"0.6092443",
"0.608415",
"0.60426354",
"0.5882633",
"0.58724886",
"0.58475333",
"0.5791281",
"0.5788245",
"0.57789016",
"0.5770277",
"0.57506984",
"0.5742428",
"0.57405",
"0.57110053",
"0.5708172",
"0.5687488",
"0.56693536",
"0.5665926",
"0.5654618",
"0.5651012",
"0.5643313",
"0.563326",
"0.5608773",
"0.5586925",
"0.5583401",
"0.5573861",
"0.5572598",
"0.55593926",
"0.55583316",
"0.5527851",
"0.5521418",
"0.5518279",
"0.5517469",
"0.5510841",
"0.55002284",
"0.54980576",
"0.549593",
"0.5463522",
"0.5463457",
"0.54322237",
"0.5430568",
"0.5403048",
"0.53988844",
"0.5395465",
"0.53886414",
"0.5387744",
"0.5373387",
"0.536369",
"0.5338333",
"0.53367907",
"0.53286344",
"0.53049374",
"0.5296087",
"0.52841306",
"0.5267894",
"0.52621436",
"0.52493477",
"0.52462095",
"0.5240355",
"0.52208173",
"0.5220561",
"0.52184844",
"0.5214359",
"0.52027273",
"0.52015173",
"0.519907",
"0.51744044",
"0.5170936",
"0.51660746",
"0.51631385",
"0.51593024",
"0.5152086",
"0.51409996",
"0.51403946",
"0.5139881",
"0.51347446",
"0.5130549",
"0.5130508",
"0.51223814",
"0.51200926",
"0.5106343",
"0.5103068",
"0.5096488",
"0.50956094",
"0.5094523",
"0.5089716",
"0.5084377"
]
| 0.7443181 | 2 |
/ access modifiers changed from: protected | public float getProperty(View view) {
return view.getScaleX();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\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\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\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}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void setProperty(View view, float f2) {
view.setScaleX(f2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\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\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\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}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public int getCount() {
return arName.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Object getItem(int position) {
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 | public long getItemId(int position) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public View getView(int position, View convertView, ViewGroup parent)
{
ViewHolder holder;
LayoutInflater inflater = context.getLayoutInflater();
if (convertView == null)
{
convertView = inflater.inflate(R.layout.activity_table_list, null);
holder = new ViewHolder();
holder.tvName = (TextView) convertView.findViewById(R.id.subject1);
holder.tvTeacher = (TextView) convertView.findViewById(R.id.teacherSubject);
holder.tvStudent = (TextView) convertView.findViewById(R.id.name);
holder.tvSubject = (TextView) convertView.findViewById(R.id.subject);
holder.tvTopic = (TextView) convertView.findViewById(R.id.topicName);
holder.tvDate = (TextView) convertView.findViewById(R.id.date);
holder.tvTime = (TextView) convertView.findViewById(R.id.lectureTime);
convertView.setTag(holder);
}
else
{
holder = (ViewHolder) convertView.getTag();
}
holder.tvName.setText("Название: "+arName.get(position));
holder.tvTeacher.setText("Преподаватель: "+arTeacher.get(position));
holder.tvStudent.setText("Студент: "+arStudent.get(position));
holder.tvSubject.setText("Предмет: "+arSubject.get(position));
holder.tvTopic.setText("Тема: "+arTopic.get(position));
holder.tvDate.setText("Дата: "+arDate.get(position));
holder.tvTime.setText("Время: "+arTime.get(position));
return convertView;
} | {
"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 | public static void main(String[] args) {
Logo oo=new Logo();
oo.title();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
TODO return proper representation object | @GET
@Produces(MediaType.TEXT_PLAIN)
public String instructions() {
return "To register a [ USER ] the following "
+ "format is used:\n"
+ ".../USER/{name}/{pass}/{type}\n"
+ "Example: \n"
+ ".../USER/Lucas/Ld123/admin\n"
+ ".../USER/Pepe/Ld123/employee\n\n\n"
+
"To register a [ SAUCER ] the following "
+ "format is used:\n"
+ ".../SAUCER/{idSaurce}/{name}/{cost}\n"
+ "Example: \n"
+ ".../SAUCER/15/stuffed rice/3.50\n\n\n"
+
"To register a [ CLIENT ] the following "
+ "format is used:\n"
+ ".../CLIENT/{id}/{firsname}/{lastname}/{telephone}/{mail}\n"
+ "Example: \n"
+ ".../CLIENT/20/Luigi/Villarreal/0985246604/[email protected]\n\n\n"
+
"To register a [ MENU ] the following "
+ "format is used:\n"
+ ".../MENU/{idMenu}/{nameMenu}\n"
+ "Example: \n"
+ ".../MENU/B04/Oriental\n\n\n";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRepresentation();",
"public String represent();",
"@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}",
"public abstract String serialise();",
"public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }",
"String toJSON();",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"public String toClassicRepresentation(){\n try {\n return LegacyMarshaller.getInstance().marshal(getComponents()).toString();\n } catch (ServiceException exception) {\n throw new RuntimeServiceException(exception);\n }\n }",
"@Override\n String toString();",
"@Override\n String toString();",
"@Override\n String toString();",
"public String toJson() { return new Gson().toJson(this); }",
"@Override\n public String toString() {\n return gson.toJson(this);\n }",
"java.lang.String getSer();",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"String serialize();",
"@Override\r\n String toString();",
"public String toString() { return stringify(this, true); }",
"@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }",
"public String getRepresentation() {\n\t\treturn representation;\n\t}",
"@Override\n\tpublic String toString();",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"@Override\n public String toString();",
"@Override\n public String toString();",
"@Override\r\n public String toString();",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\n public String toString() {\n return value();\n }",
"public String getStringRepresentation() {\n return m_StringRepresentation;\n }",
"@Override\r\n\tpublic String toString();",
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}",
"@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }",
"@Override\n\tString toString();",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"@Override public String toString();",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(this.getName());\n sb.append(\"\\n name=\").append(this.getName());\n sb.append(\"\\n type=\").append(this.getType());\n sb.append(\"\\n parentType=\").append(this.getParentType());\n sb.append(\"\\n resourceUrl=\").append(this.getResourceUrl());\n sb.append(\"\\n restUrl=\").append(this.getRestUrl());\n sb.append(\"\\n soapUrl=\").append(this.getSoapUrl());\n sb.append(\"\\n thumbnailUrl=\").append(this.getThumbnailUrl());\n sb.append(\"\\n capabilities=\").append(this.getCapabilities());\n sb.append(\"\\n creator=\").append(this.getCreator());\n sb.append(\"\\n description=\").append(this.getDescription());\n sb.append(\"\\n keywords=\").append(this.getKeywords());\n if (this.getEnvelope() != null) {\n if (this.getEnvelope() instanceof EnvelopeN) {\n EnvelopeN envn = (EnvelopeN) this.getEnvelope();\n sb.append(\"\\n envelope=\");\n sb.append(envn.getXMin()).append(\", \").append(envn.getYMin()).append(\", \");\n sb.append(envn.getXMax()).append(\", \").append(envn.getYMax());\n if (envn.getSpatialReference() != null) {\n sb.append(\" wkid=\").append(envn.getSpatialReference().getWKID());\n }\n }\n }\n return sb.toString();\n }",
"public String toJSON() {\n return new Gson().toJson(this);\n }",
"public abstract String toJson();",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}",
"public abstract Object toJson();",
"protected String toStringInternal() {\n return \"{\"\n + \"name='\" + name + '\\''\n + \", valueClassName='\" + valueClassName + '\\''\n + \", isInterface='\" + isInterface + '\\''\n + \", description='\" + description() + '\\''\n + \", implementingInterface='\" + implementingInterface + '\\''\n + \", listFieldDefinitions=\" + listSchemaFieldDefinitions + '}';\n }",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }",
"@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override String toString();",
"@Override\n public String toString() {\n String representation;\n representation = \"Genus: \" + genus + \"\\n\";\n representation += \"Species: \" + species + \"\\n\";\n representation += \"Age in weeks: \" + ageInWeeks + \"\\n\";\n representation += \"Is female?\" + isFemale + \"\\n\";\n representation += \"Generation number: \" + generationNumber + \"\\n\";\n representation += \"IsAlive: \" + isAlive + \"\\n\";\n representation += \"Health coefficient: \" + healthCoefficient + \"\\n\";\n representation += \"Identification number: \" + identificationNumber + \"\\n\";\n\n return representation;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override \n\tpublic String toString() {\n\t\treturn stringForm;\n\t}",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override\n\tpublic String toString(){\n\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"@Override public String toString() {\n return this.ToMediaType().toString();\n }",
"@Override\n\tpublic Object retrieveSerializedObject() {\n\t\treturn explanation;\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }",
"public String toString() { return kind() + \":\"+ text() ; }",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"public String toString() {\n\t String resultJson=\"\";\t \n\t ObjectToJson jsonObj = new ObjectToJson(this.paperAuthorsList);\n\t try {\n\t\t resultJson = jsonObj.convertToJson(); \n\t }\n\t catch(Exception ex) {\n\t\t System.out.println(\"problem in conversion \"+ex.getMessage());\t\t \n\t }\n\t return resultJson;\n }",
"public String toString(){\n return XMLParser.parseObject(this);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n public String toString(\n ){\n return toXRI(); \n }",
"@Override\r\n public String toString() {\r\n return super.toString();\r\n }",
"@Override\r\n public String toString() {\r\n return super.toString();\r\n }",
"@Override\n public final String toString() {\n return asString(0, 4);\n }"
]
| [
"0.69268763",
"0.6905137",
"0.6856155",
"0.67587054",
"0.6706433",
"0.67056555",
"0.67020136",
"0.6592714",
"0.65798044",
"0.64739865",
"0.6443312",
"0.6443312",
"0.6436106",
"0.6424025",
"0.64216286",
"0.6420928",
"0.64159775",
"0.63972116",
"0.6379036",
"0.6329203",
"0.6316264",
"0.6309202",
"0.6301037",
"0.62864596",
"0.62864345",
"0.62864345",
"0.6282277",
"0.6282277",
"0.62769634",
"0.62750816",
"0.62663436",
"0.62663436",
"0.6258397",
"0.6258359",
"0.625249",
"0.62430644",
"0.6238034",
"0.6227878",
"0.62266684",
"0.62263775",
"0.62210935",
"0.62191767",
"0.62188286",
"0.6218691",
"0.6214632",
"0.6214202",
"0.62092495",
"0.6190062",
"0.61603063",
"0.61574894",
"0.6155397",
"0.61440307",
"0.6136885",
"0.61311775",
"0.6130057",
"0.61275977",
"0.6111722",
"0.6111722",
"0.6111722",
"0.6109042",
"0.6102754",
"0.6094113",
"0.60857064",
"0.60857064",
"0.60857064",
"0.60857064",
"0.60857064",
"0.60857064",
"0.6084252",
"0.6064514",
"0.60544455",
"0.60533345",
"0.60431397",
"0.60425925",
"0.60404015",
"0.60328496",
"0.6024547",
"0.60186243",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6017098",
"0.6016558",
"0.6006422",
"0.6006422",
"0.6004565"
]
| 0.0 | -1 |
PUT method for updating or creating an instance of register | @PUT
@Consumes(MediaType.APPLICATION_XML)
public void putXml(String content) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PUT\n @Path(\"/{register_id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n Response update(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @PathParam(\"register_id\") Long registerId);",
"User update(User userToUpdate, RegisterRequest registerRequest);",
"@PUT\n @Path(\"/register/{studentId}\")\n public void registerStudent() {\n }",
"@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }",
"int updateByPrimaryKey(Register record);",
"@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"users/{id}\")\n Call<Void> updateUser(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body UserResource userResource\n );",
"void registerUser(User newUser);",
"@PutMapping\n public void updateUser(@RequestBody User user) { userService.updateUser(user);}",
"public abstract User register(User data);",
"@GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"@Override\n public User register(UserRegisterModel model) {\n User newUser = User.builder()\n .password(model.getPassword())\n .username(model.getUsername())\n .dateOfBirth(model.getDateOfBirth())\n .build();\n return userRepository.save(newUser);\n }",
"public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }",
"@RequestMapping(value=\"/register\",method = RequestMethod.GET)\n\n public Student register(Student std) \n {\n return srt.saveAndFlush(std);\n }",
"@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"users\")\n Call<UserResource> registerUser(\n @retrofit2.http.Body UserResource userResource\n );",
"@PutMapping(\"/{id}\")\n public void update(@PathVariable Long id, @RequestBody SignUpPayload payload) {\n\n }",
"public String updatePerson(Register entity) {\n\t\tAccount acc = accServ.findByUser(entity.getDni());\n\t\tPerson per = findByPerson(acc);\n\t\tper.setEmail(entity.getEmail());\n\t\tper.setName(entity.getName());\n\t\tper.setPhone(entity.getPhone());\n\t\tper.setSurname(entity.getSurname());\n\t\treturn update(per);\n\t}",
"@Produces(MediaType.APPLICATION_JSON)\n@Path(\"/stores/{store_id}/register\")\npublic interface RegisterResource {\n\n /**\n * GET endpoint for <code>Register</code> entity with given id.\n * \n * @param registerId <code>Register</code> entity id\n * @return <code>Response</code> object which holds response status \n * code and representation of <code>Register</code> entity\n */\n @GET\n @Path(\"/{register_id}\")\n Response getRegisterById(@PathParam(\"register_id\") Long registerId);\n\n /**\n * Creates endpoint for <code>Register</code> entity.\n * \n * @param registerDto <code>Register</code> data transfer object to which request\n * payload will be mapped to\n * @param storeId <code>Store</code> id to which <code>Register</code> entity\n * relates to\n * @param uriInfo an object that provides access to application and request URI\n * information\n * @return <code>Response</code> object which holds representation of saved\n * <code>Register</code> entity, response status code and URI of\n * newly created entity\n */\n @POST\n @Consumes(MediaType.APPLICATION_JSON)\n Response create(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @Context UriInfo uriInfo);\n\n /**\n * Update endpoint for <code>Register</code> entity.\n * \n * @param registerDto <code>Register</code> data transfer object to which request\n * payload data will be mapped to\n * @param registerId id of <code>Register</code> entity to be updated\n * @return <code>Response</code> object containing representation of \n * updated <code>Store</code> entity and response status code\n */\n @PUT\n @Path(\"/{register_id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n Response update(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @PathParam(\"register_id\") Long registerId);\n\n /**\n * Delete endpoint for <code>Register</code> entity.\n * \n * @param registerId id of <code>Register</code> entity to be deleted\n * @return <code>Response</code> object containing response status code\n */\n @DELETE\n @Path(\"/{register_id}\")\n Response delete(@PathParam(\"register_id\") Long registerId);\n\n}",
"@PostMapping\n public @ResponseBody\n ResponseEntity<Object> register(@RequestParam(\"firstName\") final String firstName,\n @RequestParam(\"lastName\") final String lastName,\n @RequestParam(\"username\") final String username,\n @RequestParam(\"password\") final String password,\n @RequestParam(\"email\") final String email) {\n\n Person person = personService.getPersonByCredentials(username);\n\n final String securePassword = HashPasswordUtil.hashPassword(password);\n\n if (person == null) {\n\n person = new Person(username, securePassword, firstName, lastName, email, PersonType.USER);\n\n try {\n personService.add(person);\n } catch (IllegalArgumentException e) {\n logger.error(e.getMessage());\n }\n person = personService.getPersonByCredentials(username);\n\n ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();\n HttpSession session = attr.getRequest().getSession(true); // true == allow create\n session.setAttribute(\"user\", username);\n session.setAttribute(\"userId\", person.getIdPerson());\n\n return ResponseEntity.status(HttpStatus.OK).body(null);\n } else {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n }",
"@RequestMapping(method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)\n //Request Body is requesting the student parameter\n public void updateStudent(@RequestBody Student student){\n studentService.updateStudent(student);\n }",
"@RequestMapping(value=\"/update\", method = RequestMethod.PUT)\r\n\t @ResponseBody\r\n//\t public String updateUser(Long id, String userName, String phone, String email, String password, Date dateOfBirth, String userNotes) {\r\n\t public UserDto update(UserDto userDto) \r\n\t {\r\n\t\t return service.update(userDto);\r\n\t }",
"public User updateUser(User user);",
"void saveRegisterInformation(UserDTO userDTO);",
"public ResponseTranslator put() {\n setMethod(\"PUT\");\n return doRequest();\n }",
"public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }",
"@GetMapping(\"register\")\n public String registerForm(RegisterForm registerForm) {\n return \"register\";\n }",
"boolean registerUser(UserRegisterDTO userRegisterDTO);",
"@PostMapping(value = \"/registration\")\n public @ResponseBody\n ResponseEntity<Object> register(@RequestParam(\"firstName\") String firstName,\n @RequestParam(\"lastName\") String lastName,\n @RequestParam(\"username\") String username,\n @RequestParam(\"password\") String password) {\n\n Person person = personService.getPersonByCredentials(username);\n\n String securePassword = HashPasswordUtil.hashPassword(password);\n\n if (person == null) {\n\n person = new Person(username, securePassword, firstName, lastName, PersonType.USER);\n\n try {\n personService.add(person);\n } catch (IllegalArgumentException e) {\n logger.error(e.getMessage());\n }\n person = personService.getPersonByCredentials(username);\n\n ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();\n HttpSession session = attr.getRequest().getSession(true); // true == allow create\n session.setAttribute(\"user\", username);\n session.setAttribute(\"userId\", person.getId());\n\n return ResponseEntity.status(HttpStatus.OK).body(null);\n } else {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n }",
"@Transactional\n\t@Override\n\tpublic void updateRegistration(RegistrationEntity reg) {\n\t\tdao.updateRegistration(reg);\n\t}",
"@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"users/cuentas\")\n Call<UserResource> registerUserCuentas(\n @retrofit2.http.Body UserResource userResource\n );",
"void update(String userName, String password, String userFullname,\r\n\t\tString userSex, int userTel, String role);",
"@PutMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseBody\n public UserResult update(@RequestBody UserInput userInput) throws NotFoundException {\n return userService.update(userInput);\n }",
"private void register(String username,String password){\n\n }",
"User registration(User user);",
"@PutMapping(path = \"/v1/update\")\n public JsonData updateUser(@RequestBody User user) { int webId = user.getId();\n// User searchUser = userService.findById(Long.valueOf(webId));\n//\n userService.update(user);\n return new JsonData(\"200\", \"修改成功!\", \"\");\n }",
"@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"users/{id}/password\")\n Call<Void> setPassword(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Body PasswordChangeRequest passwordRequest\n );",
"User register(String firstName, String lastName, String username, String email) throws UserNotFoundException, EmailExistException, UsernameExistsException, MessagingException;",
"int updateByExample(@Param(\"record\") Register record, @Param(\"example\") RegisterExample example);",
"@PostMapping(\"register\")\n\tpublic UserInfo registerUser(@RequestBody Profile profile) {\n\t\treturn userService.registerUser(profile);\n\t}",
"@PutMapping(value = \"/{email}\")\n public User updateUser(@PathVariable String email, @RequestBody User user){\n\n return userServices.updateUser(email, user);\n }",
"void register(RegisterData data) throws Exception;",
"@Authorized(\"ADMIN\")\n @PutMapping(path = \"/{id}\")\n public Response<Object> update\n (\n @PathVariable(\"id\") Long id,\n @Valid @RequestBody StoreAndUpdateFacultyRequest putRequest,\n Errors errors\n )\n {\n FacultyDTO facultyDTO = new FacultyDTO()\n .setName(this.sanitize(putRequest.getName()))\n .setCampusId(putRequest.getCampusId());\n\n try {\n return Response.ok().setPayload(this.facultyService.update(id, facultyDTO));\n } catch (FacultyNotFoundException e) {\n return Response.exception().setErrors(e.getMessage());\n }\n }",
"@Transactional(rollbackFor = Exception.class)\n\t@Override\n\tpublic void update(UserRegisterForm userRegisterForm) throws Exception {\n\t\ttry {\n\t\t\tUserProfile userProfile = new UserProfile();\n\t\t\tuserProfile.setUsername(userRegisterForm.getUsername());\n\t\t\tuserProfile.setName(userRegisterForm.getName());\n\t\t\tuserProfile.setImage(userRegisterForm.getImage());\n\t\t\tuserProfileRepository.save(userProfile);\n\t\t\tList<Roles> rolesList = new ArrayList<Roles>();\t\n\t\t\tfor (String index : userRegisterForm.getRoles()) {\n\t\t\t\tRolesPk id = new RolesPk();\n\t\t\t\tid.setUsername(userRegisterForm.getUsername());\n\t\t\t\tid.setRole(index);\n\t\t\t\tRoles roles = new Roles();\n\t\t\t\troles.setId(id);\n\t\t\t\trolesList.add(roles);\n\t\t\t}\n\t\t\trolesRepository.deleteUsernameAndExcludeRole(userRegisterForm.getUsername(), userRegisterForm.getRoles());\n\t\t\trolesRepository.saveAll(rolesList);\t\n\t\t}catch(Exception ex) {\n\t\t\tthrow new Exception(\"更新失敗!\",ex);\n\t\t}\n\t}",
"@PutMapping\n @ApiOperation(\"修改\")\n public SysUserDTO update(@RequestBody @Validated SysUserVO param) {\n return sysUserService.update(param);\n }",
"public User update(User user)throws Exception;",
"public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }",
"@Test\n\tpublic void test_update_user_success(){\n\t\tUser user = new User(null, \"fengt\", \"[email protected]\", \"12345678\");\n\t\ttemplate.put(REST_SERVICE_URI + \"/20\" + ACCESS_TOKEN + token, user);\n\t}",
"public void register(){\n }",
"@RequestMapping(value = \"/update\", method = RequestMethod.POST)\n\tpublic void update(@RequestBody User entity) {\n entity.setSlug(slug.slugify(entity.getFirstName() + \" \" + entity.getLastName()));\n\t\tdao.saveOrUpdate(entity);\n\t}",
"@ApiOperation(\n value = \"${swagger.operations.set-new-password.description}\"\n )\n @ApiResponses({\n @ApiResponse(code = 503, message = \"Service Unavailable Error (AWS Cognito)\"),\n @ApiResponse(code = 500, message = \"Internal Server Error / No message available\"),\n @ApiResponse(code = 422, message = \"Password update failed.\"),\n @ApiResponse(code = 400, message = \"Invalid parameters or missing correlation ID\"),\n @ApiResponse(code = 204, message = \"Password successfully updated\")\n })\n @ApiImplicitParams({\n @ApiImplicitParam(name = X_CORRELATION_ID_HEADER,\n required = true,\n value = \"UUID formatted string to track the request through the enquiries stack\",\n paramType = \"header\"),\n })\n @PutMapping(PasswordController.SET_PATH)\n ResponseEntity<Void> setPassword(@RequestBody SetPasswordRequest setPasswordRequest);",
"@RolesAllowed(\"admin\")\n @PUT\n @Consumes({\"application/atom+xml\",\n \"application/atom+xml;type=entry\",\n \"application/xml\",\n \"text/xml\"})\n public Response put(Entry entry) {\n\n // Validate the incoming user information independent of the database\n User user = contentHelper.getContentEntity(entry, MediaType.APPLICATION_XML_TYPE, User.class);\n StringBuilder errors = new StringBuilder();\n if ((user.getPassword() == null) || (user.getPassword().length() < 1)) {\n errors.append(\"Missing 'password' property\\r\\n\");\n }\n\n if (errors.length() > 0) {\n return Response.status(400).\n type(\"text/plain\").\n entity(errors.toString()).build();\n }\n\n // Validate conditions that require locking the database\n synchronized (Database.users) {\n\n // Look up the original user information\n User original = Database.users.get(username);\n if (original == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' does not exist\\r\\n\").\n build();\n }\n\n // Update the original user information\n original.setPassword(user.getPassword());\n original.setUpdated(new Date());\n Database.usersUpdated = new Date();\n return Response.\n ok().\n build();\n\n }\n\n }",
"@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"administrators/{id}\")\n Call<Void> updateUser(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Body UserBody userBody\n );",
"public abstract void register();",
"Register.Req getRegisterReq();",
"@PostMapping(value = \"/register\") \n\t public RegisterResponseDto\t usersRegister(@RequestBody RegistrationDto registrationDto) {\n\t LOGGER.info(\"usersRegster method\");\n\t return\t userService.usersRegister(registrationDto); \n\t }",
"@PUT\n @Produces({ \"application/json\" })\n @Path(\"{id}\")\n @CommitAfter\n public abstract Response update(Person person);",
"@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }",
"public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }",
"public void Register() {\n Url url = new Url();\n User user = new User(fname.getText().toString(), lname.getText().toString(), username.getText().toString(), password.getText().toString());\n Call<Void> registerUser = url.createInstanceofRetrofit().addNewUser(user);\n registerUser.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n Toast.makeText(getActivity(), \"User Registered successfully\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getActivity(), \"Error\" + t, Toast.LENGTH_SHORT).show();\n }\n });\n }",
"Boolean registerNewUser(User user);",
"public Boolean register(HttpServletRequest request) throws Exception;",
"public void register(RegistrationDTO p) throws UserExistException {\n userLogic.register((Person) p);\n }",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n Response create(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @Context UriInfo uriInfo);",
"public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }",
"@Override\r\n\tpublic boolean register(String email, String id, String pw) {\n\t\treturn jdbcTemplate.update(\"insert into s_member values(?,?,?,\"\r\n\t\t\t\t+ \"'normal',sysdate)\",email,id,pw)>0;\r\n\t}",
"@Override\n\tpublic boolean registerEmployDetails(String firstName, String lastName, String userName, String password) {\n\t\tboolean flag = false;\n\t\tlog.info(\"Impl form values called\"+firstName+lastName+userName+password);\n\t\ttry {\n\t\t\tresourceResolver = resolverFactory.getServiceResourceResolver(getSubServiceMap());\n\t\t\tsession = resourceResolver.adaptTo(Session.class);\t\t//adapt method is used to convert any type of object, here we are converting resourceResolver object into session object. \n\t\t\tlog.info(\"register session ****\" + session);\n\t\t\tresource = resourceResolver.getResource(resourcePath);\n\t\t//create Random numbers\n\t\t\n\t\tjava.util.Random r = new java.util.Random();\n\t\t\n\t\tint low = 1;\n\t\tint high = 100;\n\t\tint result = r.nextInt(high-low)+low;\n\t\tlog.info(\"result==\"+result);\n\t\t\n\t\tString numberValues = \"employees\" + result;\n\t\t\n\t\tNode node = resource.adaptTo(Node.class);\t\t//converting resource object into node\n\t\t\n\t\t\n\t\tif (node != null) {\n\t\t\tNode empRoot = node.addNode(numberValues, \"nt:unstructured\");\t\t//addNode is a predefined method;\n\t\t\tempRoot.setProperty(\"FirstName\", firstName);\n\t\t\tempRoot.setProperty(\"LastName\", lastName);\n\t\t\tempRoot.setProperty(\"UserName\", userName);\n\t\t\tempRoot.setProperty(\"Password\", password);\n\t\t\tsession.save();\n\t\t\tflag = true;\n\t\t\t\n\t\t} \n\n} catch (Exception e) {\n\t// TODO: handle exception\n\te.printStackTrace();\n} finally {\n\tif (session != null) {\n\t\tsession.logout();\n\t}\n\n}\n\t\t\n\t\treturn flag;\n\t}",
"@Test\n public void putId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Change a field of the object that has to be updated\n role.setName(\"roleNameChanged\");\n RESTRole restRole = new RESTRole(role);\n\n //Perform the put request to update the object and check the fields of the returned object\n try {\n mvc.perform(MockMvcRequestBuilders.put(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n .content(TestUtil.convertObjectToJsonBytes(restRole))\n )\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.name\", equalTo(restRole.getName())));\n } catch (AssertionError e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Test if changes actually went in effect in the database\n try {\n role = get(role.getUuid());\n try {\n assertEquals(\"name field not updated correctly\", \"roleNameChanged\", role.getName());\n } finally {\n //Clean up database for other tests\n remove(role.getUuid());\n }\n } catch (ObjectNotFoundException e) {\n fail(\"Could not retrieve the put object from the actual database\");\n }\n }",
"@Override\n\tpublic ApplicationResponse updateUser(String id, UserRequest request) {\n\t\tUserEntity user = null;\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\tuser = userEntity.get();\n\t\t\tif (!StringUtils.isEmpty(request.getFirstName())) {\n\t\t\t\tuser.setFirstName(request.getFirstName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getSurName())) {\n\t\t\t\tuser.setSurName(request.getSurName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getDob())) {\n\t\t\t\tuser.setDob(request.getDob());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getTitle())) {\n\t\t\t\tuser.setTitle(request.getTitle());\n\t\t\t}\n\t\t\tuser = repository.save(user);\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(user));\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}",
"@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }",
"int updateUserById( User user);",
"void saveChangesTo(Registration registration) throws RegistrationException;",
"public void registerUser(Register reg)\r\n {\n\t Session session = HibernateUtils.getSession();\r\n\t Transaction tx = session.beginTransaction();\r\n\t session.save(reg);\r\n\t tx.commit();\r\n\t session.close();\r\n }",
"@PutMapping(\"/{id}\")\n public ResponseEntity<User> update(@PathVariable Long id, @Valid @RequestBody User user) {\n if (!userService.findById(id).isPresent()) {\n log.error(\"Id \" + id + \" is not existed\");\n ResponseEntity.badRequest().build();\n }\n return ResponseEntity.ok(userService.save(user));\n }",
"@PutMapping(\"/book\")\n public ResponseEntity<?> update(@RequestBody Book book) {\n bookService.update(book);\n\n return ResponseEntity.ok().body(\"Book has been updated successfully.\");\n }",
"@POST\n @Path(\"/users/register\")\n public Response register(\n @Context HttpServletRequest request \n ,@Context HttpServletResponse response\n ,@Context ServletContext servletContext\n ,String raw\n ){\n try{\n log.debug(\"/register called\");\n// String raw=IOUtils.toString(request.getInputStream());\n mjson.Json x=mjson.Json.read(raw);\n \n Database2 db=Database2.get();\n for (mjson.Json user:x.asJsonList()){\n String username=user.at(\"username\").asString();\n \n if (db.getUsers().containsKey(username))\n db.getUsers().remove(username); // remove so we can overwrite the user details\n \n Map<String, String> userInfo=new HashMap<String, String>();\n for(Entry<String, Object> e:user.asMap().entrySet())\n userInfo.put(e.getKey(), (String)e.getValue());\n \n userInfo.put(\"level\", LevelsUtil.get().getBaseLevel().getRight());\n userInfo.put(\"levelChanged\", new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date()));// nextLevel.getRight());\n \n db.getUsers().put(username, userInfo);\n log.debug(\"New User Registered (via API): \"+Json.newObjectMapper(true).writeValueAsString(userInfo));\n db.getScoreCards().put(username, new HashMap<String, Integer>());\n \n db.addEvent(\"New User Registered (via API)\", username, \"\");\n }\n \n db.save();\n return Response.status(200).entity(\"{\\\"status\\\":\\\"DONE\\\"}\").build();\n }catch(IOException e){\n e.printStackTrace();\n return Response.status(500).entity(\"{\\\"status\\\":\\\"ERROR\\\",\\\"message\\\":\\\"\"+e.getMessage()+\"\\\"}\").build(); \n }\n \n }",
"private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }",
"public User updateUser(long id, UserDto userDto);",
"int updateByPrimaryKey(PersonRegisterDo record);",
"void updateUser(UserDTO user);",
"void updateUser(int id, UpdateUserDto updateUserDto);",
"@RequestMapping(method = RequestMethod.POST,\n consumes = MediaType.APPLICATION_JSON_VALUE)\n public void registerNewUser(@RequestBody @Valid UserDetails user){\n userRepository.save(user);\n }",
"public void register(RegistrationData d) {}",
"Patient update(Patient patient);",
"@POST\n @Path(\"register\")\n @Produces(MediaType.APPLICATION_JSON)\n public JAXResult register(UserBE user){\n return null;\n }",
"void register();",
"@PutMapping(\"/products\") \nprivate Products update(@RequestBody Products products) \n{ \nproductsService.saveOrUpdate(products); \nreturn products; \n}",
"UserDto create(UserRegistrationDto user);",
"@PostMapping(\"/v1/register\")\n\t@Transactional\n\tpublic ResponseEntity<RegisteredUserResult> register(@RequestBody RegisterUserRequest registerUserRequest) {\n\n\t\tLOG.info(\"Register user!\");\n\n\t\tcheckHeader(registerUserRequest);\n\n\t\t// Create user in user service db\n\t\tUserEntity userEntity = new UserEntity();\n\t\tmapper.map(registerUserRequest, userEntity);\n\t\tuserEntity.setRoles(Arrays.asList(roleRepository.findByName(ROLE_USER)));\n\t\tuserEntity = userRepository.save(userEntity);\n\n\t\t// Create user in auth service db\n\t\tUserDto userDto = new UserDto();\n\t\tmapper.map(registerUserRequest, userDto);\n\t\tthis.authServiceClient.createUser(userDto);\n\n\t\tRegisteredUserResult result = new RegisteredUserResult(userEntity.getId());\n\t\tResponseEntity<RegisteredUserResult> response = new ResponseEntity<>(result, HttpStatus.OK);\n\n\t\treturn response;\n\t}",
"public String register(RegisterRequest registerRequest) throws EmailAlreadyUsedException,ResourceNotFoundException {\n if (this.userRepository.existsByEmail(registerRequest.getEmail())) {\n throw new EmailAlreadyUsedException(\"Error: Email is already in use!\");\n }\n // Create new user account\n User user = new User();\n user.setFirstName(registerRequest.getFirstName());\n user.setLastName(registerRequest.getLastName());\n user.setEmail(registerRequest.getEmail());\n user.setPassword(passwordEncoder.encode(registerRequest.getPassword()));\n // Traitement des Roles\n Set<String> registerRequestRoles = registerRequest.getRoles();\n Set<Role> roles = new HashSet<>();\n // find Roles\n if (registerRequestRoles == null) {\n Role guestRole = this.roleRepository.findByName(ERole.GUEST)\n .orElseThrow(() -> new ResourceNotFoundException(\"Error: Role is not found.\"));\n roles.add(guestRole);\n }else {\n registerRequestRoles.forEach(role -> {\n switch (role) {\n case \"super-admin\":\n Role superAdminRole = null;\n try {\n superAdminRole = this.roleRepository.findByName(ERole.SUPER_ADMIN)\n .orElseThrow(() -> new ResourceNotFoundException(\"Error: Role is not found.\"));\n } catch (ResourceNotFoundException e) {\n e.printStackTrace();\n }\n roles.add(superAdminRole);\n\n break;\n case \"admin\":\n Role adminRole = null;\n try {\n adminRole = this.roleRepository.findByName(ERole.ADMIN)\n .orElseThrow(() -> new ResourceNotFoundException(\"Error: Role is not found.\"));\n } catch (ResourceNotFoundException e) {\n e.printStackTrace();\n }\n roles.add(adminRole);\n break;\n case \"user\":\n Role userRole = null;\n try {\n userRole = this.roleRepository.findByName(ERole.USER)\n .orElseThrow(() -> new ResourceNotFoundException(\"Error: Role is not found.\"));\n } catch (ResourceNotFoundException e) {\n e.printStackTrace();\n }\n roles.add(userRole);\n break;\n default:\n Role guestRole = null;\n try {\n guestRole = this.roleRepository.findByName(ERole.GUEST).orElseThrow(() -> new ResourceNotFoundException(\"Error: Role is not found.\"));\n } catch (ResourceNotFoundException e) {\n e.printStackTrace();\n }\n roles.add(guestRole);\n }\n });\n }\n // Affect User Roles\n user.setRoles(roles);\n this.userRepository.save(user);\n return \"User registered successfully!\";\n }",
"@PostMapping(\"/register\")\n public String register(String uid, String[] key){\n return \"\";\n }",
"@RequestMapping(\"/register-user\")\n public ResponseEntity<UserProfileEntity> register(@RequestBody UserProfileEntity payload, HttpServletRequest request) throws ServletException{\n UserProfileEntity user = userProfileService.findByUser(payload.getUsername());\n\n //if null add new user and login\n if (user == null) {\n RoleEntity role = new RoleEntity();\n role.setRole(\"ROLE_USER\");\n\n Set<RoleEntity> roleSet = new HashSet<>();\n roleSet.add(role);\n\n UserProfileEntity userToAdd = new UserProfileEntity();\n userToAdd.setEnabled(true);\n userToAdd.setUsername(payload.getUsername());\n userToAdd.setPassword(payload.getPassword());\n userToAdd.setRoles(roleSet);\n\n userProfileService.save(userToAdd);\n\n request.login(userToAdd.getUsername(), userToAdd.getPassword());\n\n return new ResponseEntity<UserProfileEntity>(userToAdd, HttpStatus.CREATED);\n\n } else {\n return new ResponseEntity<UserProfileEntity>(HttpStatus.CONFLICT);\n }\n\n }",
"public void registerUser(RegisterForm form) throws DAOException;",
"public void register(String firstname, String lastname, String username, String email, String password) {\n BasicDBObject query = new BasicDBObject();\n query.put(\"firstname\", firstname);\n query.put(\"lastname\", lastname);\n query.put(\"username\", username);\n query.put(\"email\", email);\n query.put(\"password\", password);\n query.put(\"rights\", 0);\n users.save(query);\n System.out.println(\"### DATABASE: user \" + username + \" registered ... password hash: \" + password);\n }",
"public void setRegisterId(long registerId);",
"public void UserServiceTest_Edit()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCEdited\");\r\n user.setPassword(\"123edited\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"statio manager\"));\r\n user.setRoles(roles);\r\n \r\n UserService service = new UserService(); \r\n try {\r\n service.updateUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }catch (NotFoundException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n }",
"String registerUser(User user);",
"public void update() throws NotFoundException {\n\tUserDA.update(this);\n }",
"@Override\n @RequestMapping(\"/register\")\n public ConfirmationMessage register(@RequestParam(value = \"username\", defaultValue = \"\") String username,\n @RequestParam(value = \"password1\", defaultValue = \"\") String password1,\n @RequestParam(value = \"password2\", defaultValue = \"\") String password2,\n @RequestParam(value = \"email\", defaultValue = \"\") String email,\n @RequestParam(value = \"city\", defaultValue = \"\") String city) {\n return userLogic.register(username, password1, password2, email, city);\n }",
"public RegisterResult register(RegisterRequest r) throws DBException, IOException\n {\n try\n {\n idGenerator = UUID.randomUUID();\n String personID = idGenerator.toString();\n User newUser = new User(\n r.getUserName(),\n r.getPassword(),\n r.getEmail(),\n r.getFirstName(),\n r.getLastName(),\n r.getGender(),\n personID\n );\n userDao.postUser(newUser);\n commit(true);\n login = new LoginService();\n\n LoginRequest loginRequest = new LoginRequest(r.getUserName(), r.getPassword());\n LoginResult loginResult = login.loginService(loginRequest);\n login.commit(true);\n\n fill = new FillService();\n FillRequest fillRequest = new FillRequest(r.getUserName(), 4);\n FillResult fillResult = fill.fill(fillRequest);\n fill.commit(true);\n\n\n result.setAuthToken(loginResult.getAuthToken());\n result.setUserName(loginResult.getUserName());\n result.setPersonID(loginResult.getPersonID());\n result.setSuccess(loginResult.isSuccess());\n\n\n if( !loginResult.isSuccess() || !fillResult.isSuccess() )\n {\n throw new DBException(\"Login failed\");\n }\n\n }\n catch(DBException ex)\n {\n result.setSuccess(false);\n result.setMessage(\"Error: \" + ex.getMessage());\n commit(false);\n }\n return result;\n }",
"@Test\n public void testRegisterSuccessfully() {\n SignUpRequest request = new SignUpRequest(UNIQUE, \"Secret\");\n\n dao.register(request);\n\n verify(controller).registered();\n }",
"public Account update(Account user);"
]
| [
"0.74457955",
"0.7358418",
"0.70772713",
"0.60379577",
"0.59495836",
"0.5929845",
"0.5916215",
"0.5889955",
"0.5842785",
"0.5818545",
"0.5814269",
"0.58015865",
"0.5789242",
"0.57173306",
"0.57165545",
"0.5678713",
"0.5662185",
"0.56245303",
"0.55836517",
"0.5578874",
"0.5562586",
"0.5524021",
"0.55232143",
"0.5497042",
"0.5496863",
"0.5496089",
"0.5493769",
"0.54921937",
"0.5487342",
"0.54706085",
"0.545775",
"0.54492295",
"0.542844",
"0.541678",
"0.5407507",
"0.54043764",
"0.53976387",
"0.5391991",
"0.5387244",
"0.5387107",
"0.5386115",
"0.5359103",
"0.53553283",
"0.5350247",
"0.5348931",
"0.5346851",
"0.5338847",
"0.5334789",
"0.5333476",
"0.53330433",
"0.53183675",
"0.530881",
"0.53043294",
"0.53006446",
"0.52972883",
"0.52965766",
"0.5283922",
"0.527038",
"0.52629703",
"0.5257207",
"0.5256525",
"0.5255915",
"0.52545327",
"0.5253563",
"0.52484804",
"0.5243205",
"0.5242854",
"0.52426463",
"0.52415705",
"0.52410114",
"0.52289003",
"0.5227495",
"0.5224734",
"0.52205586",
"0.5217289",
"0.5215721",
"0.52130675",
"0.521294",
"0.52109027",
"0.52085084",
"0.52080387",
"0.5205635",
"0.5203749",
"0.5195457",
"0.5185716",
"0.5181788",
"0.5176692",
"0.51754606",
"0.51746583",
"0.51707417",
"0.51699203",
"0.51642483",
"0.5162909",
"0.51403314",
"0.51379085",
"0.5132055",
"0.5129417",
"0.5122198",
"0.51164705",
"0.51099175",
"0.51098424"
]
| 0.0 | -1 |
SubsamplingScaleImageView gets = ivContent.getSSIV(); ivContent.showImage(Uri.fromFile(new File(path))); | private void loadImage(final String path) {
ivContent.setImageURI(Uri.fromFile(new File(path)));
/*Glide.with(getActivity())
.load(path)
.apply(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.AUTOMATIC))
.into(ivContent);*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n\n\n float x = ivImage.getScaleX();\n float y = ivImage.getScaleY();\n\n ivImage.setScaleX((float) (x - 1));\n ivImage.setScaleY((float) (y - 1));\n }",
"private Bitmap getScaledBitmap(ImageView imageView) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n\n int scaleFactor = Math.min(\n options.outWidth / imageView.getWidth(),\n options.outHeight / imageView.getHeight()\n );\n options.inJustDecodeBounds = false;\n options.inSampleSize = scaleFactor;\n options.inPurgeable = true;\n return BitmapFactory.decodeFile(currentImagePath, options);\n }",
"@Override\n public void onClick(View v) {\n\n float x = ivImage.getScaleX();\n float y = ivImage.getScaleY();\n\n ivImage.setScaleX((float) (x + 1));\n ivImage.setScaleY((float) (y + 1));\n }",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void loadSamplesWithScale() {\n\t\tpixelsPerSample = (int)(guiScale * 2);\n\t\t//pixelsPerSample = 10;\n\t\tassert(pixelsPerSample != 0);\n\t\t// Get the amount of samples that can be rendered in the display\n\t\tGSamplesInDisplay = displayWidth / pixelsPerSample;\n\t\tSystem.out.println(\"GSamplesInDisplay: \" + GSamplesInDisplay + \" - of \" + pixelsPerSample + \" pixel each\");\n\t\t// How Many Music Samples from the audio file do we want to 'show' in the window\n\t\t// Default 'all'\n\t\tint AUSamplesInWindow = (int) (loader.getStreamSampleLength()*scale);\n\t\tAUSamplesInGSample = AUSamplesInWindow / GSamplesInDisplay;\n\t\t\n\t\tassert(AUSamplesInGSample != 0); \n\t\t// Get how many pixels are per second\n\t\tsecondsInDisplay = AUSamplesInWindow / sampleRate; // Normally 44100\n\t\tSystem.out.println(\"Seconds Calculalted After: \" + secondsInDisplay);\n\t\t\n\t\tpixelsPerSecond = (displayWidth / secondsInDisplay);\n\t\tSystem.out.println(\"Pixels Per Second: \" + pixelsPerSecond);\n\t\tassert(pixelsPerSecond != 0);\n\t\t// Now Get the XEnd of what is resting to show from the music\n\t\t\n\t\t\n\t}",
"private void showImageDetail() {\n }",
"private Bitmap loadImage(int id) {\n Bitmap bitmap = BitmapFactory.decodeResource(\n context.getResources(), id);\n Bitmap scaled = Bitmap.createScaledBitmap(bitmap, IMAGE_WIDTH,\n IMAGE_HEIGHT, true);\n bitmap.recycle();\n return scaled;\n }",
"void mo36480a(int i, int i2, ImageView imageView, Uri uri);",
"private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}",
"private static Bitmap readImageWithSampling(String imagePath, int targetWidth, int targetHeight,\n Bitmap.Config bmConfig) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imagePath, bmOptions);\n\n int photoWidth = bmOptions.outWidth;\n int photoHeight = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoWidth / targetWidth, photoHeight / targetHeight);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inPreferredConfig = bmConfig;\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bmOptions.inDither = false;\n\n Bitmap orgImage = BitmapFactory.decodeFile(imagePath, bmOptions);\n\n return orgImage;\n\n }",
"private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}",
"static Bitmap resamplePic(Context context, String imagePath) {\n\n // Get device screen size information\n DisplayMetrics metrics = new DisplayMetrics();\n WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n manager.getDefaultDisplay().getMetrics(metrics);\n\n int targetH = metrics.heightPixels;\n int targetW = metrics.widthPixels;\n\n // Get the dimensions of the original bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imagePath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n return BitmapFactory.decodeFile(imagePath);\n }",
"protected ImageView getImageView(){\n\t\treturn iv1;\n\t}",
"private void enhanceImage(){\n }",
"void mo36483b(int i, ImageView imageView, Uri uri);",
"void mo36481a(int i, ImageView imageView, Uri uri);",
"public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }",
"public void setSmallImg(String path){\n Picasso.with(context).load(SMALL+path).into(imageView);\n }",
"public View getView(int index, View view, ViewGroup viewGroup)\n {\n // TODO Auto-generated method stub\n ImageView i = new ImageView(mContext);\n\n// i.setImageResource(mImageIds.get(index));\n\n if(mImageIds.size() > 0 ){\n Picasso.with(mContext).load(mImageIds.get(index)).into(i);\n }\n\n\n i.setLayoutParams(new Gallery.LayoutParams(200, 200));\n\n i.setScaleType(ImageView.ScaleType.FIT_XY);\n\n\n return i;\n }",
"private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }",
"public void loadImagefromGallery(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 50);\n intent.putExtra(\"aspectY\", 50);\n intent.putExtra(\"outputX\", 100);\n intent.putExtra(\"outputY\", 100);\n\n try {\n // Start the Intent\n startActivityForResult(intent, PICK_FROM_GALLERY);\n } catch (ActivityNotFoundException ae) {\n\n } catch (Exception e) {\n\n }\n }",
"public View getView(int index, View view, ViewGroup viewGroup)\n {\n // TODO Auto-generated method stub\n ImageView img = new ImageView(context);\n\n //imageloader.DisplayImage(GlobalVariable.link+\"files/\"+array_image_id.get(index), R.drawable.ic_temp_logo, img);\n img.setLayoutParams(new Gallery.LayoutParams(200, 200));\n img.setScaleType(ImageView.ScaleType.FIT_XY);\n\n return img;\n }",
"private Bitmap decodeSampledBitmapFromFile(String absolutePath, int i, int i1) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(absolutePath, options);\n\n // Calculate inSampleSize, Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n Log.i(\"sqrl2\",\"\"+height+\" \"+width);\n options.inPreferredConfig = Bitmap.Config.RGB_565;\n int inSampleSize = 1;\n\n if (height > 800)\n {\n inSampleSize = Math.round((float)height / (float)800);\n }\n int expectedWidth = width / inSampleSize;\n\n if (expectedWidth > 800)\n {\n //if(Math.round((float)width / (float)reqWidth) > inSampleSize) // If bigger SampSize..\n inSampleSize = Math.round((float)width / (float)800);\n }\n\n options.inSampleSize = inSampleSize;\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n\n return BitmapFactory.decodeFile(absolutePath, options);\n }",
"public Image createScaledImage (double scale, int interpolType)\r\n {\r\n\tImageScaler scaler = new ImageScaler(scale, interpolType);\r\n\treturn (HSIImage)scaler.filter(this);\r\n }",
"public void createScaledImage(String location, int type, int orientation, int session, int database_id) {\n\n // find portrait or landscape image\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(location, options);\n final int imageHeight = options.outHeight; //find the width and height of the original image.\n final int imageWidth = options.outWidth;\n\n int outputHeight = 0;\n int outputWidth = 0;\n\n\n //set the output size depending on type of image\n switch (type) {\n case EdittingGridFragment.SIZE4R :\n if (orientation == EdittingGridFragment.LANDSCAPE) {\n outputWidth = 1800;\n outputHeight = 1200;\n } else if (orientation == EdittingGridFragment.PORTRAIT) {\n outputWidth = 1200;\n outputHeight = 1800;\n }\n break;\n case EdittingGridFragment.SIZEWALLET:\n if (orientation == EdittingGridFragment.LANDSCAPE) {\n outputWidth = 953;\n outputHeight = 578;\n } else if (orientation ==EdittingGridFragment.PORTRAIT ) {\n outputWidth = 578;\n outputHeight = 953;\n }\n\n break;\n case EdittingGridFragment.SIZESQUARE:\n outputWidth = 840;\n outputHeight = 840;\n break;\n }\n\n assert outputHeight != 0 && outputWidth != 0;\n\n\n //fit images\n //FitRectangles rectangles = new FitRectangles((int) outputWidth, (int) outputHeight, imageWidth, imageHeight);\n\n //scaled images\n ScaledRectangles rectangles = new ScaledRectangles((int) outputWidth, (int) outputHeight, imageWidth, imageHeight);\n\n Rect canvasSize = rectangles.getCanvasSize();\n Rect canvasImageCoords = rectangles.getCanvasImageCoords();\n Rect imageCoords = rectangles.getImageCoords();\n\n\n\n /*\n //set the canvas size based on the type of image\n Rect canvasSize = new Rect(0, 0, (int) outputWidth, (int) outputHeight);\n Rect canvasImageCoords = new Rect();\n //Rect canvasImageCoords = new Rect (0, 0, outputWidth, outputHeight); //set to use the entire canvas\n Rect imageCoords = new Rect(0, 0, imageWidth, imageHeight);\n //Rect imageCoords = new Rect();\n\n\n // 3 cases, exactfit, canvas width larger, canvas height larger\n if ((float) outputHeight/outputWidth == (float) imageHeight/imageWidth) {\n canvasImageCoords.set(canvasSize);\n //imageCoords.set(0, 0, imageWidth, imageHeight); //map the entire image to the entire canvas\n Log.d(\"Async\", \"Proportionas Equal\");\n\n }\n\n\n\n else if ( (float) outputHeight/outputWidth > (float) imageHeight/imageWidth) {\n //blank space above and below image\n //find vdiff\n\n\n //code that fits the image without whitespace\n Log.d(\"Async\", \"blank space above and below\");\n\n float scaleFactor = (float)imageHeight / (float) outputHeight; //amount to scale the canvas by to match the height of the image.\n int scaledCanvasWidth = (int) (outputWidth * scaleFactor);\n int hDiff = (imageWidth - scaledCanvasWidth)/2;\n imageCoords.set (hDiff, 0 , imageWidth - hDiff, imageHeight);\n\n\n\n //code fits image with whitespace\n float scaleFactor = (float) outputWidth / (float) imageWidth;\n int scaledImageHeight = (int) (imageHeight * scaleFactor);\n assert scaledImageHeight < outputHeight;\n\n int vDiff = (outputHeight - scaledImageHeight)/2;\n canvasImageCoords.set(0, vDiff, outputWidth, outputHeight - vDiff);\n\n\n\n } else if ((float) outputHeight/outputWidth < (float) imageHeight/imageWidth) {\n //blank space to left and right of image\n\n\n //fits the image without whitespace\n float scaleFactor = (float) imageWidth / (float) outputWidth;\n int scaledCanvasHeight = (int) (outputHeight * scaleFactor);\n int vDiff = (imageHeight - scaledCanvasHeight)/2;\n imageCoords.set(0, vDiff, imageWidth, imageHeight - vDiff);\n\n //fits image with whitespace\n\n Log.d(\"Async\", \"blank space left and right\");\n float scaleFactor = (float) outputHeight / (float) imageHeight;\n int scaledImageWidth = (int) (imageWidth * scaleFactor);\n assert scaledImageWidth < outputWidth;\n\n int hDiff = (outputWidth - scaledImageWidth)/2;\n\n canvasImageCoords.set(hDiff, 0, outputWidth - hDiff, outputHeight);\n }\n\n */\n\n Log.d(\"Async\", \"Canvas Image Coords:\" + canvasImageCoords.toShortString());\n\n SaveImage imageSaver = new SaveImage(getApplicationContext(), database);\n ImageObject imageObject = new ImageObject(location);\n Bitmap imageBitmap = imageObject.getImageBitmap();\n int sampleSize = imageObject.getSampleSize();\n\n Rect sampledImageCoords = imageSaver.getSampledCoordinates(imageCoords, sampleSize);\n\n System.gc();\n BackgroundObject backgroundObject = new BackgroundObject(outputWidth, outputHeight);\n Bitmap background = backgroundObject.getBackground();\n\n\n background = imageSaver.drawOnBackground(background, imageBitmap,\n sampledImageCoords, canvasImageCoords);\n\n imageSaver.storeImage(background, database_id, session);\n background.recycle();\n\n }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tswitch (v.getId())\n\t\t\t\t{\n\t\t\t\tcase R.id.hike_small_container:\n\t\t\t\t\tshowImageQualityOption(ImageQuality.QUALITY_SMALL, small, medium, original);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.hike_medium_container:\n\t\t\t\t\tshowImageQualityOption(ImageQuality.QUALITY_MEDIUM, small, medium, original);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.hike_original_container:\n\t\t\t\t\tshowImageQualityOption(ImageQuality.QUALITY_ORIGINAL, small, medium, original);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.btn_just_once:\n\t\t\t\t\tsaveImageQualitySettings(editor, small, medium, original);\n\t\t\t\t\tHikeSharedPreferenceUtil.getInstance(context).saveData(HikeConstants.REMEMBER_IMAGE_CHOICE, false);\n\t\t\t\t\tcallOnSucess(listener, dialog);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"private void init(){\n\t\tmIV = new ImageView(mContext);\r\n\t\tFrameLayout.LayoutParams param1 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n\t\tmIV.setLayoutParams(param1);\r\n\t\tmIV.setScaleType(ScaleType.FIT_XY);\r\n//\t\tmIVs[0] = iv1;\r\n\t\tthis.addView(mIV);\r\n//\t\tImageView iv2 = new ImageView(mContext);\r\n//\t\tFrameLayout.LayoutParams param2 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n//\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n//\t\tiv2.setLayoutParams(param2);\r\n//\t\tiv2.setScaleType(ScaleType.CENTER_CROP);\r\n//\t\tmIVs[1] = iv2;\r\n//\t\tthis.addView(iv2);\r\n\t\tthis.mHandler = new Handler();\r\n\t}",
"void mo36482a(ImageView imageView, Uri uri);",
"private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }",
"public taskimage(ImageView t134){\n t34=t134;\n\n\n }",
"public BufferedImage getScaledImage ( float scale ) {\n\n int oldW = param.Parameters.IMAGEW;\n int oldH = param.Parameters.IMAGEH;\n\n param.Parameters.SCALE = scale;\n param.Parameters.IMAGEW = (int)((float)param.Parameters.IMAGEW * param.Parameters.SCALE);\n param.Parameters.IMAGEH = (int)((float)param.Parameters.IMAGEH * param.Parameters.SCALE);\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n param.Parameters.SCALE = 1.0f;\n param.Parameters.IMAGEW = oldW;\n param.Parameters.IMAGEH = oldH;\n\n System.gc();\n\n return img;\n\n }",
"private void setPic() {\n int targetW = imageView.getMaxWidth();\n int targetH = imageView.getMaxHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n bitmap = Bitmap.createScaledBitmap(bitmap, 1280, 960,false);\n Log.d(\"demo\", \"setPic: \"+ bitmap.getWidth()+\" \"+bitmap.getHeight());\n Log.d(\"demo\", \"setPic: \"+ bitmap.getByteCount()/1000);\n imageView.setImageBitmap(bitmap);\n }",
"public void setMediumImg(String path){\n Picasso.with(context).load(MEIDUM+path).into(imageView);\n }",
"@Override\n public void configViews() {\n\n ImageView view = findViewById(R.id.iv);\n GlideUrl cookie = new GlideUrl(\"http://images.dmzj.com/tuijian/320_170/170623yinglingtj2.jpg\", new LazyHeaders.Builder()\n .addHeader(\"Referer\", Constant.IMG_BASE_URL)\n .addHeader(\"Accept-Encoding\",\"gzip\").build());\n// Glide.with(this).load(cookie)\n// .placeholder(R.mipmap.ic_launcher)\n// .error(R.drawable.a)\n// .transform(new GlideRoundTransform(this,6))\n// .into(view);\n\n// MultiTransformation multi = new MultiTransformation(\n// new RoundedCornersTransformation(20, 0));\n float density = getResources().getDisplayMetrics().density;\n Log.e(\"density\",\"density\"+density);\n RoundedCornersTransformation roundedCornersTransformation =\n new RoundedCornersTransformation((int) (density*20), 0);\n// Glide.with(this).loadOptions.bitmapTransform(roundedCornersTransformation))\n// .into(view);(cookie)\n// .apply(Request\n//\n DeviceUtils.printDisplayInfo(this);\n\n Glide.with(this).load(cookie)\n .apply((RequestOptions.bitmapTransform(roundedCornersTransformation)))\n .into(image01);\n Glide.with(this).load(cookie)\n .into(image02);\n }",
"public MainSlot_JPanel(){\n //load background image\n try {\n Image img = ImageIO.read(getClass()\n .getResource(\"./graphics/slot_BackGround.jpg\"));\n backgroundImg = img\n .getScaledInstance(800,580,java.awt.Image.SCALE_SMOOTH );\n } catch(IOException e) {\n e.printStackTrace();\n }\n }",
"private static native long createSuperpixelSLIC_0(long image_nativeObj, int algorithm, int region_size, float ruler);",
"private void updateImageSize(float scale) {\n int w = (int) (mImageWidth * scale);\n int h = (int) (mImageHeight * scale);\n mCanvas.setCoordinateSpaceWidth(w);\n mCanvas.setCoordinateSpaceHeight(h);\n mCanvas.getContext2d().drawImage(ImageElement.as(image.getElement()), 0, 0, w, h);\n }",
"public interface IMainScm {\n\n void getImage(String url,ImageView view);\n\n void getImagePath(HttpListener<String[]> httpListener);\n}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_deneme2);\n ImageView imageView = findViewById(R.id.imageView);\n\n\n path= getExternalFilesDir(null)+\"/aa/\"+\"/ScreenShot\"+(MainActivity.PHOTO_COUNT-1+\".jpg\");\n File imgFile= new File(path);\n if(imgFile.exists())\n {\n imageView.setImageURI(Uri.fromFile(imgFile));\n\n }\n }",
"private void resampleAbdomenVOI() {\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), 0 ) );\r\n }\r\n }",
"@Override\n protected Bitmap doInBackground(String... params) {\n pathName = params[0];\n return decodeSampledBitmapFromFile(pathName, 85, 85);\n\n\n }",
"public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}",
"private void changePicture(String s)\n {\n ImageView userPic = (ImageView)findViewById(R.id.imageViewOther);\n\n Glide.with(this)\n .asBitmap()\n .load(s)\n .into(userPic);\n }",
"@Override\n\tprotected Bitmap doInBackground(Integer... params) {\n\t\treturn decodeSampledBitmapFromResource(mCurrentPhotoPath, imageView);\n\t}",
"public interface IImaeView<T> extends IView<T> {\n\n void getImageRandom(ImageRes imageRes);\n}",
"public void updateView(int count, int cSize, int sSize){\n if(clickView != null) {\n ImageView imageView = (ImageView) clickView.findViewById(R.id.clean_result);\n\n if (count == 0) {\n imageView.setImageResource(R.mipmap.icon_clean_bad);\n } else if (count == cSize + sSize) {\n imageView.setImageResource(R.mipmap.icon_clean_very_good);\n } else if(count > 0 && count < cSize + sSize){\n imageView.setImageResource(R.mipmap.icon_clean_good);\n }\n imageView.setVisibility(View.VISIBLE);\n }\n }",
"public void onItemImageClick(View view) {\r\n RecommendListAdapter listAdapter = new RecommendListAdapter(this,\r\n R.layout.search_row, itemList);\r\n \tString mediumURL = this.itemInfo.getMediumImageUrl();\r\n final String largeURL = mediumURL.replace(\"ex=128x128\", \"ex=300x300\");\r\n listAdapter.wrapZoomimage(view, largeURL);\r\n // sub_item_info = item_info;\r\n // getItemDetail(item_info.getItemCode(),item_info.getShopId(),item_info.getShopName());\r\n }",
"@Override\n public void onSuccess(Uri uri) {\n ImageView imgProfile=(ImageView)findViewById(R.id.img_header_bg);\n Glide.with(MainActivity.this).load(uri)\n .crossFade()\n .thumbnail(0.5f)\n .bitmapTransform(new CircleTransform(MainActivity.this))\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(imgProfile);\n\n\n }",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"void seTubeDownImage(String image);",
"private void markHUSS(){\n String courseID = \"HUSS\";\n Pane paneSE = (Pane) scene.lookup(\"#SEpane\");\n done = new ImageView(new Image(\"file:resources/Images/check.png\"));\n done.setPreserveRatio(true); // ensure ratio preserved when scaling the image\n done.setFitWidth(50.0); // scale image to be a reasonable size\n Node rectangle = scene.lookup(\"#\" + courseID);\n done.setLayoutX(rectangle.getLayoutX() - 10);\n done.setLayoutY(rectangle.getLayoutY() - 35);\n paneSE.getChildren().add(done);\n\n }",
"public static void showImage(Stage primaryStage) {\n Pane pane = new HBox(10);\n pane.setPadding(new Insets(5, 5, 5, 5));\n Image image = new Image(\"image/us.gif\"); //load image from file\n pane.getChildren().add(new ImageView(image));\n\n ImageView imageView2 = new ImageView(image);\n imageView2.setFitHeight(100);\n imageView2.setFitWidth(100);\n pane.getChildren().add(imageView2);\n\n ImageView imageView3 = new ImageView(image);\n imageView3.setRotate(90);\n pane.getChildren().add(imageView3);\n\n // Create a scene and place it in the stage\n Scene scene = new Scene(pane);\n primaryStage.setTitle(\"ShowImage\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n }",
"public void updateViewCnt(Integer imgnum) throws Exception;",
"public ImageIcon returnImage(VideoFile file, double imageScale) {\n if (this.imageScale != imageScale) {\n //if (i == imageOrganizerList.size() - 1) {\n // this.imageScale = imageScale;\n //System.out.println(\"imageScales \"+this.imageScale+\" new \"+imageScale);\n //}\n\n BufferedImage img = file.getBufferedImage();\n Image resizedImage = img.getScaledInstance((int) (img.getWidth() * imageScale), (int) (img.getHeight() * imageScale), BufferedImage.SCALE_SMOOTH);\n ImageIcon resizedIcon = new ImageIcon(resizedImage);\n //imageIconList.remove(i);\n //imageIconList.add(i, resizedIcon);\n file.setImageIcon(resizedIcon);\n //System.out.println(\"icon list size: \"+imageIconList.size());\n return resizedIcon;\n }\n //System.out.println(\"i: \"+i+\" size: \"+imageIconList.size());\n return file.getImageIcon();\n }",
"ImageViewTouchBase getMainImage();",
"@Override\n public void onClick(View v) {\n Bitmap zoomedBitmap= Bitmap.createScaledBitmap(bmp, photoView.getWidth(), photoView.getHeight(), true);\n SaveImage(zoomedBitmap);\n }",
"public static Bitmap loadPicture(View v, String photoPath) {\n int targetW,targetH;\n if (v != null) {\n targetW = v.getWidth();\n targetH = v.getHeight();\n } else {\n WindowManager wm = (WindowManager) SketchesApp.globalContext.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n DisplayMetrics metrics=new DisplayMetrics();\n display.getMetrics(metrics);\n targetW = metrics.widthPixels;\n targetH = metrics.heightPixels;\n }\n if (targetH==0 || targetW==0)\n return null;\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n //bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(photoPath, bmOptions);\n if (v!=null) {\n if (v instanceof ImageView) {\n ImageView iv = (ImageView) v;\n iv.setImageBitmap(bitmap);\n } else {\n BitmapDrawable bd = new BitmapDrawable(v.getResources(), bitmap);\n v.setBackground(bd);\n }\n }\n return bitmap;\n }",
"@SuppressWarnings(\"unused\")\r\n private void snakeSubcutaneousVOI() {\r\n \r\n // set the subcutaneous VOI as active\r\n subcutaneousVOI.setActive(true);\r\n subcutaneousVOI.getCurves().elementAt(0).setActive(true);\r\n \r\n float[] sigmas = new float[2];\r\n sigmas[0] = 1.0f;\r\n sigmas[1] = 1.0f;\r\n \r\n AlgorithmSnake snake = new AlgorithmSnake(srcImage, sigmas, 50, 2, subcutaneousVOI, AlgorithmSnake.OUT_DIR);\r\n snake.run();\r\n\r\n subcutaneousVOI = snake.getResultVOI();\r\n subcutaneousVOI.setName(\"Subcutaneous area\");\r\n \r\n }",
"public ImageView getImage(String image) {\r\n\r\n Image shippPic = new Image(image);\r\n ImageView shipImage = new ImageView();\r\n shipImage.setImage(shippPic);\r\n shipImage.setFitWidth(blockSize);\r\n shipImage.setFitHeight(blockSize);\r\n return shipImage;\r\n }",
"private void loadProductImage(String imagePath, ImageView imageView) {\n Bitmap bitmap = BitmapUtil.fromFileScaled(imagePath, imageView.getWidth(), imageView.getHeight(),\n true);\n if (bitmap == null) {\n Log.d(getClass().getSimpleName(), \"Failed to load product image: image view dimensions not yet \" +\n \"\" + \"determined\");\n } else {\n Activity activity = getActivity();\n if (activity != null) {\n imageView.setImageDrawable(BitmapUtil.getRoundedBitmapDrawable(activity, bitmap));\n }\n }\n }",
"private static native long createSuperpixelLSC_0(long image_nativeObj, int region_size, float ratio);",
"private void resampleAbdomenVOI( int sliceIdx, VOIContour curve ) {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM(sliceIdx);\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), sliceIdx ) );\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(\n\t\t\t\t\t\tIntent.ACTION_PICK,\n\t\t\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t\t\tstartActivityForResult(i, RESULT_LOAD_IMAGE);\n\n\t\t\t refreshResult();\n\t\t\t LeftEdge.setImageResource(R.drawable.left_edgeicon);\n\t\t\t RightEdge.setImageResource(R.drawable.right_edgeicon);\n\t\t\t// ChannelCheck0.setImageResource(R.drawable.control);\n\t\t\t \n\t\t\t}",
"@Override\n protected Bitmap doInBackground(String... params) {\n imageUrl = params[0];\n ImageView thumbnail = imageViewReference.get();\n try {\n InputStream is = (InputStream) new URL(imageUrl).getContent();\n Bitmap bitmap = ImageCommons.decodeSampledBitmapFromInputStream(is, thumbnail.getWidth(), thumbnail.getHeight());\n addBitmapToMemoryCache(imageUrl, bitmap);\n return bitmap;\n } catch (IOException e) {\n e.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n Log.d(\"myLog\", getClass().getSimpleName() + \" Erro ao fazer download de imagem\");\n return ImageCommons.decodeSampledBitmapFromResource(context.getResources(), R.drawable.ic_launcher, 70, 70);\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\t\n\t\tif(savedInstanceState != null){\n\t\t\tmData = savedInstanceState.getInt(\"data\");\n\t\t}\n\t\t\n\t\tBundle args = getArguments();\n\t\t\n\t\tLog.e(\"TAG\",\"what's?? \" + args.getInt(\"index\"));\n\t\t\n\t\t\n\t\t\n\t\tBitmap bmp = null;\n\t\ttry {\n\t\t\tbmp = MediaStore.Images.Media\n\t\t\t .getBitmap(getActivity().getContentResolver(), ContentUris.withAppendedId(\n\t\t\t\t\t MediaStore.Images.Media.EXTERNAL_CONTENT_URI, args.getLong(\"imageId\")));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tLog.e(\"TAG\",\"bbbb\");\n\t\t\n\t\t//if(bmp != null && imageView != null)\n\t\t\n\t\tsurFaceView.setFixedSize(bmp.getWidth(),bmp.getHeight());\n\t\t//imageView.setImageBitmap(this.scale(bmp));\n\t\t\n\t\t\n\t\tBitmapDrawable ob = new BitmapDrawable(bmp);\n\t\tsurFaceView.setBackgroundDrawable(ob);\n\t\t\n\t\t\n\t\t\n\t\t//int index = args.getInt(\"index\");\n\t\t\n\t}",
"@Override\r\n\t protected Bitmap doInBackground(Integer... params) {\r\n\t \trowid = params[0];\r\n\t\t\tString imageInSD = Environment.getExternalStorageDirectory().getPath()\r\n\t\t\t\t\t+ \"/Pictures/MyCameraApp/\" + rowid + \".jpg\";\r\n\r\n\r\n\t\t\t// First decode with inJustDecodeBounds=true to check dimensions\r\n\t\t\tfinal BitmapFactory.Options options = new BitmapFactory.Options();\r\n\t\t\toptions.inJustDecodeBounds = true;\r\n\t\t\tBitmapFactory.decodeFile(imageInSD, options);\r\n\r\n\t\t\t// Calculate inSampleSize\r\n\t\t\toptions.inSampleSize = calculateInSampleSize(options, 200,\r\n\t\t\t\t\t200);\r\n\r\n\t\t\t// Decode bitmap with inSampleSize set\r\n\t\t\toptions.inJustDecodeBounds = false;\r\n\t\t\treturn BitmapFactory.decodeFile(imageInSD, options);\r\n\t }",
"private Image getScaledImage(Image srcImg, int w, int h){\n BufferedImage resizedImg = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2 = resizedImg.createGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n g2.drawImage(srcImg, 0, 0, w, h, null);\n g2.dispose();\n\n return resizedImg;\n }",
"public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tActivityDataRequest.getImage(MainActivity.this, img1);\n\t\t\t}",
"public void setLargeImg(String path){\n Picasso.with(context).load(LARGE+path).into(imageView);\n }",
"ImageView getRepresentationFromSpriteId(int spriteId);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n Bitmap bmp = (Bitmap) extras.get(\"data\");\n iv.setImageBitmap(bmp);\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n\tpublic List<ImageVo> s_counselSubImage(int index) throws SQLException {\n\t\treturn sqlSession.selectList(\"yes.s_counselSubImage\", index);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n ImageView image = (ImageView) findViewById(R.id.imageView1);\n \n image.setImageURI((Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM)); \n }",
"@Override\n\tpublic void run() {\n\t\tspacing = checkDimensions(spacingString, input.numDimensions(), \"Spacings\");\n\t\tscales = Arrays.stream(scaleString.split(regex)).mapToInt(Integer::parseInt)\n\t\t\t.toArray();\n\t\tDimensions resultDims = Views.addDimension(input, 0, scales.length - 1);\n\t\t// create output image, potentially-filtered input\n\t\tresult = opService.create().img(resultDims, new FloatType());\n\n\t\tfor (int s = 0; s < scales.length; s++) {\n\t\t\t// Determine whether or not the user would like to apply the gaussian\n\t\t\t// beforehand and do it.\n\t\t\tRandomAccessibleInterval<T> vesselnessInput = doGauss ? opService.filter()\n\t\t\t\t.gauss(input, scales[s]) : input;\n\t\t\tIntervalView<FloatType> scaleResult = Views.hyperSlice(result, result\n\t\t\t\t.numDimensions() - 1, s);\n\t\t\topService.filter().frangiVesselness(scaleResult, vesselnessInput, spacing,\n\t\t\t\tscales[s]);\n\t\t}\n\t}",
"public String getThumbnail();",
"public BufferedImage getImageView(int width, int height) {\n\n\t\tif (width < 0 || height < 0) {\n\t\t\tthrow new IllegalArgumentException(\"view width and view height should be greater than zero\");\n\t\t}\n\t\t\n\t\tif(view.getPlaceHolderAxisNorth() + view.getPlaceHolderAxisSouth() > height ){\n\t\t\tthrow new IllegalArgumentException(\"height is too small, holder north(\"+view.getPlaceHolderAxisNorth()+\") + south(\"+view.getPlaceHolderAxisSouth()+\") size are greater than height(\"+height+\")\");\n\t\t}\n\t\tif(view.getPlaceHolderAxisWest() + view.getPlaceHolderAxisEast() > width ){\n\t\t\tthrow new IllegalArgumentException(\"width is too small, holder west(\"+view.getPlaceHolderAxisWest()+\") + east(\"+view.getPlaceHolderAxisEast()+\") size are greater than width(\"+width+\")\");\n\t\t}\n\t\t\n\n\t\t// image view\n\t\tBufferedImage viewImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\tGraphics viewGraphics = viewImage.getGraphics();\n\n\t\tGraphics2D g2d = (Graphics2D) viewGraphics;\n\n\t\t\n\t\tDimension old = view.getSize();\n\t\t\n\t\tview.setSize(new Dimension(width, height));\n\n\t\t// component part\n\t\tViewPartComponent northPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.North);\n\t\tViewPartComponent southPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.South);\n\t\tViewPartComponent eastPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.East);\n\t\tViewPartComponent westPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.West);\n\t\tDevicePartComponent devicePart = (DevicePartComponent) view.getViewPartComponent(ViewPart.Device);\n\n\t\t// size component\n\t\tnorthPart.setSize(width, view.getPlaceHolderAxisNorth());\n\t\tsouthPart.setSize(width, view.getPlaceHolderAxisSouth());\n\t\teastPart.setSize(view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth());\n\t\twestPart.setSize(view.getPlaceHolderAxisWest(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth());\n\t\tdevicePart.setSize(view.getWidth() - view.getPlaceHolderAxisWest() - view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth());\n\n\t\t// buffered image\n\n\t\tBufferedImage northImage = null;\n\t\tif (view.getPlaceHolderAxisNorth() > 0) {\n\t\t\tnorthImage = new BufferedImage(view.getWidth(), view.getPlaceHolderAxisNorth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D ng2d = (Graphics2D) northImage.getGraphics();\n\t\t\tnorthPart.paintComponent(ng2d);\n\t\t\tng2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage southImage = null;\n\t\tif (view.getPlaceHolderAxisSouth() > 0) {\n\t\t\tsouthImage = new BufferedImage(view.getWidth(), view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D sg2d = (Graphics2D) southImage.getGraphics();\n\t\t\tsouthPart.paintComponent(sg2d);\n\t\t\tsg2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage eastImage = null;\n\t\tif (view.getPlaceHolderAxisEast() > 0) {\n\t\t\teastImage = new BufferedImage(view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D eg2d = (Graphics2D) eastImage.getGraphics();\n\t\t\teastPart.paintComponent(eg2d);\n\t\t\teg2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage westImage = null;\n\t\tif (view.getPlaceHolderAxisWest() > 0) {\n\t\t\twestImage = new BufferedImage(view.getPlaceHolderAxisWest(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D wg2d = (Graphics2D) westImage.getGraphics();\n\t\t\twestPart.paintComponent(wg2d);\n\t\t\twg2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage deviceImage = null;\n\t\tif (view.getWidth() - view.getPlaceHolderAxisWest() - view.getPlaceHolderAxisEast() > 0 && view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth() > 0) {\n\t\t\tdeviceImage = new BufferedImage(view.getWidth() - view.getPlaceHolderAxisWest() - view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D dg2d = (Graphics2D) deviceImage.getGraphics();\n\t\t\tdevicePart.paintComponent(dg2d);\n\t\t\tdg2d.dispose();\n\n\t\t}\n\n\t\t// paint in image view\n\n\t\tRenderingHints qualityHints = new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\tqualityHints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t qualityHints.put(RenderingHints.KEY_DITHERING,\n\t\t RenderingHints.VALUE_DITHER_ENABLE);\n\t\t// qualityHints.put(RenderingHints.KEY_ALPHA_INTERPOLATION,\n\t\t// RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n\t\t// qualityHints.put(RenderingHints.KEY_RENDERING,\n\t\t// RenderingHints.VALUE_RENDER_QUALITY);\n\t\t// qualityHints.put(RenderingHints.KEY_COLOR_RENDERING,\n\t\t// RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n\t\t// qualityHints.put(RenderingHints.KEY_INTERPOLATION,\n\t\t// RenderingHints.VALUE_INTERPOLATION_BICUBIC);\n\t\t// qualityHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t// RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\t\tg2d.setRenderingHints(qualityHints);\n\n\t\tif (view.getBackgroundPainter() != null) {\n\t\t\tview.getBackgroundPainter().paintViewBackground(view,width,height, g2d);\n\t\t}\n\n\t\tif (northImage != null) {\n\t\t\tg2d.drawImage(northImage, 0, 0, northImage.getWidth(), northImage.getHeight(), null);\n\t\t}\n\n\t\tif (southImage != null) {\n\t\t\tg2d.drawImage(southImage, 0, view.getHeight() - view.getPlaceHolderAxisSouth(), southImage.getWidth(), southImage.getHeight(), null);\n\t\t\tsouthImage.flush();\n\t\t}\n\n\t\tif (eastImage != null) {\n\t\t\tg2d.drawImage(eastImage, view.getWidth() - view.getPlaceHolderAxisEast(), view.getPlaceHolderAxisNorth(), eastImage.getWidth(), eastImage.getHeight(), null);\n\t\t\teastImage.flush();\n\t\t}\n\n\t\tif (westImage != null) {\n\t\t\tg2d.drawImage(westImage, 0, view.getPlaceHolderAxisNorth(), westImage.getWidth(), westImage.getHeight(), null);\n\t\t\twestImage.flush();\n\t\t}\n\n\t\tif (deviceImage != null) {\n\t\t\tg2d.drawImage(deviceImage, view.getPlaceHolderAxisWest(), view.getPlaceHolderAxisNorth(), deviceImage.getWidth(), deviceImage.getHeight(), null);\n\t\t\tdeviceImage.flush();\n\t\t}\n\n\t\tg2d.dispose();\n\t\tviewImage.flush();\n\n\t\t\n\t\tif(old != null)\n\t\t\tview.setSize(old);\n\t\treturn viewImage;\n\t}",
"public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }",
"private void scaleImagePanel(float scale){\n float oldZoom = imagePanel.getScale();\n float newZoom = oldZoom+scale;\n Rectangle oldView = scrollPane.getViewport().getViewRect();\n // resize the panel for the new zoom\n imagePanel.setScale(newZoom);\n // calculate the new view position\n Point newViewPos = new Point();\n newViewPos.x = (int)(Math.max(0, (oldView.x + oldView.width / 2) * newZoom / oldZoom - oldView.width / 2));\n newViewPos.y = (int)(Math.max(0, (oldView.y + oldView.height / 2) * newZoom / oldZoom - oldView.height / 2));\n scrollPane.getViewport().setViewPosition(newViewPos);\n }",
"void initScale(){\n samplingScale = getScaleAdaptive(x);\n }",
"public Image getSeven();",
"public static void printSHSV(FqImage imh){\n\t\tint\ti,j;\r\n\t\tfor( i = 0 ; i < imh.width ; i++ ){\r\n\t\t\tfor( j = 0 ; j < imh.height ; j++ ){\r\n\t\t\t\tSystem.out.print(\"s\"+imh.points[i][j].getSHSV() );\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t}",
"java.lang.String getImage();",
"@Override\n public void onClick(View view) {\n try {\n ScaleView oldView = layout.findViewById(R.id.scale_view_id);\n layout.removeView(oldView);\n } catch (Exception e) {\n Log.w(\"YOYOYO\", \"Exception: \" + e.getMessage());\n }\n\n scalePreview = new ScaleView(c, scales.get(magnificationValue.getSelectedItemPosition()));\n scalePreview.setId(R.id.scale_view_id);\n scalePreview.setZOrderOnTop(true);\n\n layout.addView(scalePreview);\n }",
"String getImage();",
"public void loadImage(final String path, final ImageView imageView){\r\n imageView.setTag(path);\r\n if (mUIHandler==null){\r\n mUIHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //Get the image and set its imageView.\r\n ImgBeanHolder holder= (ImgBeanHolder) msg.obj;\r\n Bitmap bitmap = holder.bitmap;\r\n ImageView imageview= holder.imageView;\r\n String path = holder.path;\r\n if (imageview.getTag().toString().equals( path)){\r\n imageview.setImageBitmap(bitmap);\r\n }\r\n }\r\n };\r\n }\r\n //Get the bitmap through the path in the cache.\r\n Bitmap bm=getBitmapFromLruCache(path);\r\n if (bm!=null){\r\n refreshBitmap(bm, path, imageView);\r\n }else{\r\n addTask(() -> {\r\n //Get the size of the image which wants to be displayed.\r\n ImageSize imageSize= getImageViewSize(imageView);\r\n //Compress the image.\r\n Bitmap bm1 =decodeSampledBitmapFromPath(imageSize.width,imageSize.height,path);\r\n //Put the image into the cache.\r\n addBitmapToLruCache(path, bm1);\r\n //Refresh the display of the image.\r\n refreshBitmap(bm1, path, imageView);\r\n mSemaphoreThreadPool.release();\r\n });\r\n }\r\n\r\n }",
"@Override\n public void onClick(View v) {\n showImageView.setVisibility(View.VISIBLE);\n String imgUrl = \"http://210.42.121.241/servlet/GenImg\";\n new DownImgAsyncTask().execute(imgUrl);\n }",
"public String setImageLoader(ArrayList<String> link, int rando) {\n\t\tArrayList<String> newLink = link;\n\t\timgs = newLink.get(rando);\n\t\timg = new Image(imgs);\n\t\timgView.setImage(img);\n\t\treturn imgs;\n\t\t//imgView.setPreserveRatio(true);\n\t\t//imgView.setFitHeight(100);\n\t\t//imgView.setFitWidth(100);\n\t\t//this.getChildren().addAll(picBox,imgView);\t\n\t}",
"public void onInsuranceFragmentInteraction(Uri uri, int selectedImageView, Bitmap croppedBitmapImage, String base64Path);",
"private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }",
"public static void loadFileIntoImageView(ImageView pictureImageView, String path){\n int targetW = pictureImageView.getWidth();\n int targetH = pictureImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(path, bmOptions);\n pictureImageView.setImageBitmap(bitmap);\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\timgfinalImage.setDrawingCacheEnabled(true);\r\n\t\t\t\tbmp_finalImage = Bitmap.createBitmap(imgfinalImage.getDrawingCache(true));\r\n\t\t\t\tIntent intent = new Intent(FilterScreen.this, ShareItScreen.class);\r\n\t\t\t\tintent.putExtra(\"image_video\", image_video);\r\n\t\t\t\tintent.putExtra(\"rate\", rate);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\toverridePendingTransition(0, 0);\r\n\t\t\t}",
"public Image getScaledCopy(float scale) {\r\n\t\treturn getScaledCopy(width * scale, height * scale);\r\n\t}",
"private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String currentID = listOverView.get(position).getIdSQLData(); // put image to static variable\n Intent intentToShowBigPicture = new Intent(ActivityScreans.this, ActivityShowImage.class);\n intentToShowBigPicture.putExtra(\"intentToShowBigPicture\", currentID);\n startActivity(intentToShowBigPicture);\n }",
"@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}",
"public int getImage();",
"public Label getPic(){\n //try {//getPic is only called if isPic is true, so side1 would contain picture path\n /*BufferedImage unsized = ImageIO.read(new File(side1));\n BufferedImage resized = resizeImage(unsized,275,250, unsized.getType());\n frontPic.setIcon(new ImageIcon(resized));*/\n\n\t\t\tImage image = new Image(new File(side1).toURI().toString());\n\t\t\tImageView iv = new ImageView(image);\n\t\t\tLabel imageLabel = new Label(\"Image\");\n\t\t\timageLabel.setGraphic(iv);\n\t\t\treturn imageLabel;\n /*} catch (IOException ex) {\n System.out.println(\"Trouble reading from the file: \" + ex.getMessage());\n }\n return frontPic;*/\n }",
"public void onClick(View v) {\n currentIndex++;\n // Check If index reaches maximum then reset it\n if (currentIndex == count)\n currentIndex = 0;\n simpleImageSwitcher.setImageResource(imageIds[currentIndex]); // set the image in ImageSwitcher\n }",
"void previewSized();"
]
| [
"0.5806355",
"0.57632655",
"0.57334685",
"0.57221395",
"0.55535316",
"0.54718256",
"0.54485375",
"0.5428127",
"0.54189074",
"0.5417179",
"0.5395472",
"0.53844744",
"0.53844553",
"0.5371565",
"0.5362432",
"0.53220266",
"0.5321921",
"0.53146476",
"0.5308242",
"0.53015894",
"0.5261938",
"0.52169055",
"0.5216644",
"0.52165234",
"0.5211931",
"0.5209865",
"0.5203839",
"0.51776755",
"0.5171713",
"0.5164562",
"0.51427853",
"0.51335144",
"0.51299316",
"0.51210326",
"0.51183766",
"0.51160866",
"0.5109217",
"0.5107434",
"0.51047623",
"0.5094013",
"0.50895566",
"0.5079074",
"0.5076349",
"0.5068898",
"0.5065379",
"0.50612736",
"0.5055028",
"0.50432545",
"0.50422066",
"0.50412285",
"0.5038403",
"0.50371134",
"0.50322014",
"0.50213283",
"0.50180465",
"0.5015247",
"0.5015235",
"0.5013025",
"0.5012298",
"0.5006919",
"0.49991325",
"0.49883834",
"0.49874213",
"0.4985761",
"0.49781993",
"0.4972782",
"0.49722582",
"0.49546677",
"0.4954169",
"0.49495232",
"0.49399012",
"0.49391648",
"0.4934347",
"0.4926619",
"0.49199978",
"0.4919116",
"0.4915848",
"0.4910308",
"0.49079755",
"0.49070325",
"0.49013644",
"0.4896479",
"0.48904482",
"0.48897988",
"0.48888582",
"0.48831245",
"0.48817515",
"0.4880125",
"0.48782262",
"0.48748544",
"0.4871016",
"0.48657674",
"0.48543638",
"0.48522013",
"0.48517865",
"0.4851289",
"0.48468295",
"0.48441407",
"0.48418045",
"0.48412028"
]
| 0.49602365 | 67 |
/ Given an instance of an object that has a particular property this method will set the object property with the provided value. It assumes that the object has the setter method for the specified interface | public void setObjectProperty(Object object, String property, Object propertyValue) throws WBSerializerException
{
try
{
PropertyDescriptor pd = new PropertyDescriptor(property, object.getClass());
pd.getWriteMethod().invoke(object, propertyValue);
} catch (Exception e)
{
throw new WBSerializerException("Cannot set property for object", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T set(T obj);",
"void setValue(Object object, Object value);",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"private void setValueObject(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tthis.methodSet.invoke(object, value);\n\t}",
"void setValue(Object value);",
"public void setProperty(Object object, String property, Object newValue) {\n if (object == null) {\n throw new GroovyRuntimeException(\"Cannot set property on null object\");\n }\n else if (object instanceof GroovyObject) {\n GroovyObject pogo = (GroovyObject) object;\n pogo.setProperty(property, newValue);\n }\n else if (object instanceof Map) {\n Map map = (Map) object;\n map.put(property, newValue);\n }\n else {\n metaRegistry.getMetaClass(object.getClass()).setProperty(object, property, newValue);\n }\n }",
"public void setProperty(String name,Object value);",
"public abstract void setPropertyValue(String propertyName, Object value)\n throws ModelException;",
"public void setValue(Object value);",
"void setObjectValue(Object dataObject);",
"public abstract void set(M newValue);",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public void beforeSet(Object object, String property, Object newValue, InvocationCallback callback) {\n }",
"@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}",
"public void setObject(Object object) {\n\t\tif(object==null)\n\t\t\treturn;\n\t\ttry {\n\t\t\t//BeanUtils.copyProperties(this,object);\n\t\t\tMap map=PropertyUtils.describe(object);\n\t\t\tSet set=map.keySet();\n\t\t\tIterator i=set.iterator();\n\t\t\twhile(i.hasNext())\n\t\t\t{\n\t\t\t\tStringBuffer method=new StringBuffer();\n\t\t\t\tmethod.append(\"get\");\n\t\t\t\tObject key=i.next();\n\t\t\t\t\n\t\t\t\tString s=(String)key;\n\t\t\t\tif(s.equals(\"class\"))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tString first=s.substring(0,1);\n\t\t\t\tmethod.append(first.toUpperCase());\n\t\t\t\tmethod.append(s.substring(1));\n\t\t\t\t//System.out.println(method);\n\t\t\t\t//Class clas=PropertyUtils.getPropertyType(dist,s);\n\t\t\t\tObject value=null;\n\t\t\t\tboolean po=false;\n\t\t\t\tClass clas=PropertyUtils.getPropertyType(object,s);\n\t\t\t\t\n\t\t\t\tif(clas==String.class)\n\t\t\t\t{\n\t\t\t\t\tvalue=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas==Long.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== Date.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tDate d=(Date)temp;\n\t\t\t\t\tvalue=TimeUtil.getTheTimeStr(d);\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== Double.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== BigDecimal.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas==Set.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas==List.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas==Map.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas.isAssignableFrom(Collection.class))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(!po)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tif(temp!=null)\n\t\t\t\t\tvalue=MethodUtils.invokeExactMethod(temp,\"getId\",null);\n\t\t\t\t}\n\t\t\t\tif(value!=null)\n\t\t\t\t{\n\t\t\t\t\tthis.set(s,value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchMethodException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public abstract void setValue(Context c, Object v) throws PropertyException;",
"public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}",
"@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}",
"public void setValue(Object val);",
"public static void setProperty( Object object, String name, String value )\r\n {\r\n Object[] arguments = new Object[]{ value };\r\n\r\n Class<?>[] parameterTypes = new Class<?>[]{ String.class };\r\n\r\n if ( name.length() > 0 )\r\n {\r\n name = \"set\" + name.substring( 0, 1 ).toUpperCase() + name.substring( 1, name.length() );\r\n\r\n try\r\n {\r\n Method concatMethod = object.getClass().getMethod( name, parameterTypes );\r\n\r\n concatMethod.invoke( object, arguments );\r\n }\r\n catch ( Exception ex )\r\n {\r\n throw new UnsupportedOperationException( \"Failed to set property\", ex );\r\n }\r\n }\r\n }",
"public void updateProperty(Inspectable object, InspectableProperty property) {\n\n InspectorInterface inspector = null;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (inspector.getInspectedObject()==object)\n inspector.updateProperty(property);\n }\n\n}",
"public void set(int propID, Object obj) throws SL_Exception\n {\n switch(propID)\n {\n case PRESQL_ID:\n setPreSQL((String)obj);\n return;\n case POSTSQL_ID:\n setPostSQL((String)obj);\n return;\n case ROWOFFSET_ID:\n setRowOffSet((java.lang.Integer)obj);\n return;\n case ROWLIMIT_ID:\n setRowLimit((java.lang.Integer)obj);\n return;\n default:\n super.set(propID, obj);\n return;\n }\n\n }",
"public void setObject(Object obj) {\n\tObject bean = ((AxBridgeObject)obj).getJavaObject();\n\ttry {\n\t Class cls = bInfo.getBeanDescriptor().getCustomizerClass();\n\t if(cls != null) {\n\t\tcustomizer = (Customizer)cls.newInstance();\n\t\tcomp = (Component)customizer;\n\t\tcustomizer.setObject(bean);\n\t }\n\t \n\t //If no customizer, try property editors\n\t if(comp == null) {\n\t\tPropertyDescriptor[] pds = bInfo.getPropertyDescriptors();\n\t\tfor(int i=0;i<pds.length;i++) {\n\t\t cls = pds[i].getPropertyEditorClass();\n\t\t if(cls != null) {\n\t\t\t//System.out.println(cls.toString() + i);\n\t\t\tpropEditor = (PropertyEditor)cls.newInstance();\n\t\t\tif(propEditor.supportsCustomEditor()) {\n\t\t\t comp = propEditor.getCustomEditor();\n\t\t\t propEditor.setValue(bean);\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t} catch(Throwable e) {\n\t e.printStackTrace();\n\t}\n }",
"public void setPropertyWithAutoTypeCast(Object obj, Object value) {\n if(value==null) {\n setProperty(obj, value);\n return;\n }\n Class<?> propType = getPropertyType();\n if(propType.isAssignableFrom(value.getClass())) {\n setProperty(obj, value);\n return;\n }\n if(value instanceof Long && propType.equals(Integer.class)) {\n setProperty(obj, Integer.valueOf(value.toString()));\n return;\n }\n if(value instanceof Double || value instanceof Float || value instanceof BigDecimal) {\n if(propType.isAssignableFrom(Double.class)) {\n setProperty(obj, Double.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(Float.class)) {\n setProperty(obj, Float.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(BigDecimal.class)) {\n setProperty(obj, BigDecimal.valueOf(Double.valueOf(value.toString())));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n if(value instanceof java.util.Date) {\n if(propType.isAssignableFrom(java.sql.Timestamp.class)) {\n setProperty(obj, new java.sql.Timestamp(((java.util.Date) value).getTime()));\n return;\n } else if(propType.isAssignableFrom(java.sql.Date.class)) {\n setProperty(obj, new java.sql.Date(((java.util.Date) value).getTime()));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }",
"public void setValue(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, SecurityException, InvocationTargetException, NoSuchMethodException, InstantiationException{\n\t\tif(this.fielAncestor != null){\n\t\t\tobject = this.fielAncestor.getValueForSetValue(object);\n\t\t}\n\t\tsetValueObject(object, value);\n\t\t\n\t}",
"public void setObject(T object)\n\t{\n\t\tthis.object = object;\n\t}",
"void setObject(String id, Object data);",
"public abstract void setProperty(String property, Object value)\n throws SOAPException;",
"public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"@Override\r\n public void setObject(String object) {\n }",
"public <T> void setProperty(String field, T value) {\n try {\n Field f = this.getClass().getDeclaredField(field); \n f.set(this, value);\n } catch (NoSuchFieldException ex) {\n System.out.println(\"Field no found...\");\n System.out.println(ex.getMessage());\n\n } catch (IllegalAccessException ex) {\n System.out.println(ex.getMessage());\n }\n }",
"void setProperty(String key, Object value);",
"public void setObject(int i, T obj);",
"public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}",
"public static void setProperty(Object beanObject, String propertyName, Object value) {\n getCachedSetter(beanObject.getClass(), propertyName).accept(beanObject, value);\n }",
"public void setValue(Object value) { this.value = value; }",
"Object setValue(Object value) throws NullPointerException;",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"public void update(InterfaceBean object) {\n\t\t\n\t}",
"public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }",
"public void set(T t, Object obj) {\n try {\n this.field.set(t, obj);\n } catch (IllegalAccessException e) {\n throw new AssertionError(e);\n }\n }",
"public void setProperty(String key, Object value);",
"public void setProperty( String key, Object value );",
"public T set(int i, T obj);",
"public abstract void setContentObject(Object object);",
"public void set(String name, Object value) {\n }",
"public void set( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"set(Object obj) Not implemented.\" );\n\t\t}",
"public static interface ISetter {\n\t\t\n\t\t/**\n\t\t * Sets the resource\n\t\t * @param resource the resource\n\t\t */\n\t\tpublic void set(AtmosphereResource resource);\n\t\t\n\t}",
"public void setObjectAtLocation(Point p, Object o);",
"@Test\n @Ignore\n public void testSetValue_Object() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\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 setInterface(Class aInterface) { theInterface = aInterface ; }",
"public void testBeforeSet() throws Exception {\r\n GroovyClassLoader gcl = new GroovyClassLoader();\r\n final Class<?> testClass = gcl.parseClass(\"class Test { def prop = 'hello' }\");\r\n GroovyObject go = (GroovyObject)testClass.newInstance();\r\n\r\n ProxyMetaClass pmc = ProxyMetaClass.getInstance(testClass);\r\n go.setMetaClass(pmc);\r\n\r\n pmc.setInterceptor( new PropertyAccessInterceptor(){\r\n\r\n public Object beforeGet(Object object, String property, InvocationCallback callback) {\r\n return null;\r\n }\r\n\r\n public void beforeSet(Object object, String property, Object newValue, InvocationCallback callback) {\r\n assertEquals(\"prop\", property);\r\n BeanWrapper bean = new BeanWrapperImpl(object);\r\n bean.setPropertyValue(\"prop\",\"success\");\r\n callback.markInvoked();\r\n }\r\n\r\n public Object beforeInvoke(Object object, String methodName, Object[] arguments, InvocationCallback callback) {\r\n return null;\r\n }\r\n\r\n public Object afterInvoke(Object object, String methodName, Object[] arguments, Object result) {\r\n return null;\r\n }\r\n });\r\n\r\n go.setProperty(\"prop\", \"newValue\");\r\n Object result = go.getProperty(\"prop\");\r\n assertNotNull(result);\r\n assertEquals(\"success\",result);\r\n }",
"public abstract void setValue(T value);",
"@Override\n public void xpathSet(String xpath, Object obj) {\n try {\n fetchJXPathContext().setValue(XPath.xpath(xpath), obj);\n } catch (JXPathException e) {\n throw new TypeXPathException(e);\n }\n }",
"public void setProperty(String aProperty, Object aObject)\n\t\t\t\t\t throws SAXNotSupportedException, SAXNotRecognizedException {\n\t\tparserImpl.setProperty(aProperty, aObject);\n\t}",
"public void setValue(final Object value) { _value = value; }",
"protected abstract void setValue(V value);",
"public void setObject(XSerial obj);",
"public V setValue(V value);",
"public void\t\tsetConfiguration(Object obj);",
"@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}",
"public boolean setProperty(String attName, Object value);",
"private static void setValue(Object object, String fieldName, Object fieldValue) \n throws NoSuchFieldException, IllegalAccessException {\n \n Class<?> studentClass = object.getClass();\n while(studentClass != null){\n Field field = studentClass.getDeclaredField(fieldName);\n field.setAccessible(true);\n field.set(object, fieldValue);\n //return true;\n } \n //return false;\n }",
"public void setObject(Object aObject) {\r\n\t\tthis.object = aObject;\r\n\t}",
"public void set(String propertyId, Object value)\n {\n properties.put(propertyId, value);\n }",
"public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }",
"public void setValue(String fieldName, Object value) {\n try {\n Field field = FieldUtils.getField(object.getClass(), fieldName, true);\n if (field != null) {\n FieldUtils.writeField(field, object, value, true);\n } else {\n logger.error(\"Unable to set value on field because the field does not exits on class: \" + object.getClass());\n }\n } catch (IllegalAccessException e) {\n logger.error(e);\n }\n }",
"public void setProperty(String property) {\n }",
"public void elSetValue(Object bean, Object value, boolean populate, boolean reference);",
"void setValue(T value);",
"void setValue(T value);",
"public void setPropertyValue(final JsiiObjectRef objRef, final String property, final JsonNode value) {\n ObjectNode req = makeRequest(\"set\", objRef);\n req.put(\"property\", property);\n req.set(\"value\", value);\n\n this.runtime.requestResponse(req);\n }",
"private <T> void setField(Field field, Object object, T fieldInstance) {\n try {\n field.setAccessible(true);\n field.set(object, fieldInstance);\n } catch (IllegalArgumentException ex) {\n Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Feld \" + field.getName() + \" ist kein Objekt!\", ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Feld \" + field.getName() + \" ist nicht zugreifbar!\", ex);\n } finally {\n field.setAccessible(false);\n }\n }",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"public void setValue(Object value) {\n this.value = value;\n }",
"public abstract void setValue(ELContext context,\n Object base,\n Object property,\n Object value);",
"protected abstract void setId(P object, Long id);",
"public void setUserObject(Object o);",
"@Override\n\tpublic void setInterface(Class<T> interfaceClass) {\n\t\t\n\t}",
"void set(ExecutionContext context, String propertyName, Value propertyValue);",
"public abstract void setContent(Object o);",
"public <E extends Retrievable> void setObject(String sql, E e);",
"@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}",
"public abstract void setId(T obj, long id);",
"void setProperty(String attribute, String value);",
"private void addSetter(JavaObject object, JavaModelBeanField field) {\n\t\tIJavaCodeLines arguments = getArguments(field, object.getImports());\n\t\tSetterMethod method = new SetterMethod(field.getName(), field.getType(), arguments, objectType);\n\t\tobject.addBlock(method);\n\t}",
"void setValue(V value);",
"public native void set(T value);",
"@Override\n public void setValue(ELContext context, Object base, Object property,\n Object value) throws NullPointerException, PropertyNotFoundException,\n PropertyNotWritableException, ELException {\n }",
"public void setElseValue(Object pValue);",
"public void setObject(String objId,String objValue) throws ExceptionAccessDeny, ExceptionObjectNotFound {\n\t\tConfVarEnum ParamNameAsEnum = ConfVarEnum.getByName(objId);\n\t\tif (! ParamNameAsEnum.getAccess().equalsIgnoreCase(\"rw\")) {\n\t\t\tthrow new ExceptionObjectNotFound(\"Config parameter \" + objId + \" is readonly.\");\n\t\t}\n\t\tconfigServ.setValue(ParamNameAsEnum, objValue);\t\n\t}",
"V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}",
"public void setValue(A value) {this.value = value; }",
"@Override\n public void set(Object bean, Object value) throws IOException {\n _propertyMutator.longSetter(bean, ((Number) value).longValue());\n }",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;",
"public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}",
"public static void setInternalState(Object object, String fieldName, Object value, Class<?> where) {\n if (object == null || fieldName == null || fieldName.equals(\"\") || fieldName.startsWith(\" \")) {\n throw new IllegalArgumentException(\"object, field name, and \\\"where\\\" must not be empty or null.\");\n }\n\n final Field field = getField(fieldName, where);\n try {\n field.set(object, value);\n } catch (Exception e) {\n throw new RuntimeException(\"Internal Error: Failed to set field in method setInternalState.\", e);\n }\n }",
"public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }"
]
| [
"0.70891815",
"0.7017199",
"0.67483586",
"0.67392075",
"0.6712117",
"0.65077364",
"0.6460384",
"0.64525133",
"0.6446329",
"0.6406688",
"0.63676757",
"0.63250065",
"0.62990606",
"0.62891716",
"0.6221818",
"0.6213506",
"0.621147",
"0.6205067",
"0.62005645",
"0.61958975",
"0.61945724",
"0.61786735",
"0.6174368",
"0.6159388",
"0.6143778",
"0.6120114",
"0.61160994",
"0.6111891",
"0.6097723",
"0.60951704",
"0.60610723",
"0.605899",
"0.60523885",
"0.6051168",
"0.6046286",
"0.6044599",
"0.60364044",
"0.60344607",
"0.60164315",
"0.6011185",
"0.60035396",
"0.5990998",
"0.5987091",
"0.5979929",
"0.5974857",
"0.5966347",
"0.5958088",
"0.59552246",
"0.5921743",
"0.5918476",
"0.5907133",
"0.5904195",
"0.5898148",
"0.58977497",
"0.5876402",
"0.5874465",
"0.5872055",
"0.5871486",
"0.58685887",
"0.58655995",
"0.58622617",
"0.58564234",
"0.5853307",
"0.5841264",
"0.5809932",
"0.5798976",
"0.5764011",
"0.5763491",
"0.5755537",
"0.57520545",
"0.571759",
"0.57093",
"0.57093",
"0.5703278",
"0.57021755",
"0.5699138",
"0.56729895",
"0.56553346",
"0.5655172",
"0.5651325",
"0.5644137",
"0.5641346",
"0.5640126",
"0.563143",
"0.56289876",
"0.5621865",
"0.56215376",
"0.5611297",
"0.56010383",
"0.5588072",
"0.55850315",
"0.55802786",
"0.5573414",
"0.55726147",
"0.5566852",
"0.5566755",
"0.55641496",
"0.55581886",
"0.5554086",
"0.5552409"
]
| 0.6199218 | 19 |
Test step visitor interface. | public interface TestStepVisitor {
/**
* Handles email test step entity.
*
* @param emailTestStepEntity - email test step entity
*/
default void visit(EmailTestStepEntity emailTestStepEntity) {
throw new UnsupportedOperationException(
String.format("Unsupported email step for request [%s]",
emailTestStepEntity.getEvaluationRequestEntity().getRequestId())
);
}
/**
* Handles experiment results test step entity.
*
* @param experimentResultsTestStepEntity - experiment results test step entity
*/
default void visit(ExperimentResultsTestStepEntity experimentResultsTestStepEntity) {
throw new UnsupportedOperationException(
String.format("Unsupported experiment results step for request [%s]",
experimentResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())
);
}
/**
* Handles evaluation results test step entity.
*
* @param evaluationResultsTestStepEntity - evaluation results test step entity
*/
default void visit(EvaluationResultsTestStepEntity evaluationResultsTestStepEntity) {
throw new UnsupportedOperationException(
String.format("Unsupported evaluation results step for request [%s]",
evaluationResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())
);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void step();",
"public void step();",
"@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n for (Step step : steps) {\n step.accept(visitor);\n }\n }",
"@Override\n\tpublic void step() {\n\t}",
"@Override\n\tpublic void step() {\n\t}",
"void Step(String step);",
"@Override\n\tpublic void step() {\n\t\t\n\t}",
"@Override\n\tpublic void step() {\n\t\t\n\t}",
"public int step() {\n // PUT YOUR CODE HERE\n }",
"abstract int steps();",
"public String nextStep();",
"protected abstract R runStep();",
"private interface AnyKindOfStep\n\t{\n\t\tpublic void step() throws PlayerDebugException;\n\t}",
"public abstract void performStep();",
"public void onStepStarted(int index, int total, String name);",
"@Override\n\tpublic void step2() {\n\t\t\n\t}",
"@Override\n public void onStepClick(int index) {\n }",
"TeststepBlock createTeststepBlock();",
"public TestCase pass();",
"protected TeststepRunner() {}",
"boolean nextStep();",
"@Override\n\tpublic void step(int actionType) {\n\n\t}",
"public void recordStep(final TestStep step) {\n Preconditions.checkNotNull(step.getDescription(),\n \"The test step description was not defined.\");\n Preconditions.checkNotNull(step.getResult(), \"The test step result was not defined\");\n\n testSteps.add(step);\n }",
"public interface StepListener {\n void onStepSelected(int id);\n}",
"int getStep();",
"int getStep();",
"int getStep();",
"@Override\r\n public void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext,\r\n SecurityTestStepResult result) {\n\r\n }",
"@Override public List<ExecutionStep> getSteps() {\n return Collections.singletonList(step);\n }",
"@Override\r\n\tpublic void addStepHandler(StepHandler handler) {\n\t\t\r\n\t}",
"@Override\n public void scenario(gherkin.formatter.model.Scenario scenario) {\n }",
"public void run(TestCase testCase) {\n }",
"public interface IAutomationStep {\n\n void executeStep();\n}",
"@Override\r\n\tpublic void step(SimState state) {\r\n\r\n\t}",
"public interface StepExecutor {\n ExecutionResult execute(StepExecutionContext context) throws Exception;\n}",
"public interface OnStepFinishListener {\n void onStepFinish(BindStep step, boolean finish);\n}",
"public interface StepListener {\n public void step(long timeNs);\n}",
"java.lang.String getNextStep();",
"@Override\r\n\tpublic void visit() {\n\r\n\t}",
"@Override\n\tpublic void terminalStep(StateView arg0, HistoryView arg1) {\n\n\t}",
"public interface StepExecutable<T> {\n\n void execute(T object, MigrationReport report) throws RuntimeException;\n\n}",
"protected abstract void stepImpl( long stepMicros );",
"public abstract void visit();",
"public void step()\n {\n status = stepInternal();\n }",
"interface StepListener {\n\n void step(long timeNs);\n\n}",
"@Test\n\tpublic void testStep() {\n\t\tsimulator.step();\n\t\tassertEquals(0, (int)simulator.averageWaitTime());\n\t\tassertEquals(0, (int)simulator.averageProcessTime());\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\n\t\tfor (int i = 0; i < 28; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(287, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1525, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\t\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(614, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1457, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(true, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(false, simulator.moreSteps());\t\n\t}",
"public boolean addStep(ITemplateStep step);",
"@Override\r\n\tpublic int getSteps() {\n\t\treturn 0;\r\n\t}",
"protected void runBeforeStep() {}",
"public ProofStep [ ] getSteps ( ) ;",
"public void setStep(int step) {\n this.step = step;\n }",
"public interface Step {\n\n /**\n * The set of fully-qualified annotation type names processed by this step.\n *\n * <p>Warning: If the returned names are not names of annotations, they'll be ignored.\n */\n Set<String> annotations();\n\n /**\n * The implementation of processing logic for the step. It is guaranteed that the keys in {@code\n * elementsByAnnotation} will be a subset of the set returned by {@link #annotations()}.\n *\n * @return the elements (a subset of the values of {@code elementsByAnnotation}) that this step\n * is unable to process, possibly until a later processing round. These elements will be\n * passed back to this step at the next round of processing.\n */\n Set<? extends Element> process(ImmutableSetMultimap<String, Element> elementsByAnnotation);\n }",
"public void setStep(int step)\n {\n this.step = step;\n this.stepSpecified = true;\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"public Step() {\n\n }",
"public boolean addStep(ITemplateStep stepToAdd, ITemplateStep stepBefore);",
"public interface NormalStep extends Step { // <-- [user code injected with eMoflon]\n\n\t// [user code injected with eMoflon] -->\n}",
"public static void beginStep() {\n\t\tTestNotify.log(STEP_SEPARATOR);\n\t TestNotify.log(GenLogTC() + \"is being tested ...\");\n\t}",
"public void setStep(Integer step) {\n this.step = step;\n }",
"@Given(\"prepare to Analysis\")\npublic void preanalysis(){\n}",
"@Given(\"^I am in Given$\")\n public void i_am_in_Given() throws Throwable {\n System.out.println(\"in given\");\n }",
"@Override\n public void test() {\n \n }",
"@Override\n public void runTest() {\n }",
"public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }",
"boolean hasStep();",
"boolean hasStep();",
"boolean hasStep();",
"@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}",
"@Test\n public void testLogicStep_1()\n throws Exception {\n LogicStep result = new LogicStep();\n assertNotNull(result);\n }",
"default void visit(ExperimentResultsTestStepEntity experimentResultsTestStepEntity) {\n throw new UnsupportedOperationException(\n String.format(\"Unsupported experiment results step for request [%s]\",\n experimentResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())\n );\n }",
"@Test\n public void testExecuteStep() {\n assertFalse(mgr.executeStep());\n\n // add a step to the queue\n mgr.getSteps().add(stepa);\n\n // step returns false\n when(stepa.start(anyLong())).thenReturn(false);\n assertFalse(mgr.executeStep());\n\n // step returns true\n when(stepa.start(anyLong())).thenReturn(true);\n assertTrue(mgr.executeStep());\n }",
"@Test\n void step() {\n Fb2ConverterStateMachine state = new Fb2ConverterStateMachine();\n StringBuilder sb = new StringBuilder();\n WordsTokenizer wt = new WordsTokenizer(getOriginalText());\n while (wt.hasMoreTokens()) {\n String word = wt.nextToken();\n if (state.step(word)) {\n sb.append(word).append(\" \");\n }\n }\n assertEquals(\"test 1 . text- 2 text 0 text 6111 222 \", sb.toString());\n }",
"@Test (priority = 4)\n\t@Then(\"^End of Scenario$\")\n\tpublic void end_of_Scenario() throws Throwable {\n\t \n\t}",
"default void visit(EvaluationResultsTestStepEntity evaluationResultsTestStepEntity) {\n throw new UnsupportedOperationException(\n String.format(\"Unsupported evaluation results step for request [%s]\",\n evaluationResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())\n );\n }",
"public interface MainFillingStep {\n CheeseStep meat(String meat);\n\n VegetableStep fish(String fish);\n }",
"public void setStep(int step) {\n\t\tthis.step = step;\n\t}",
"@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO step in using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step in button pressed\");\r\n\t\t\t\t}",
"@Override\r\n\tprotected void doExecute(StepExecution stepExecution) throws Exception {\n\t\t\r\n\t}",
"protected Step(Step next) {\n this.next = next;\n }",
"@Override\n public void onStepSelected(Step step) {\n\n mStep = step;\n mSelectedIndex = mRecipe.getStepIndex(mStep);\n if (mSelectedIndex != -1) {\n\n if (mTwoPane) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n StepDetailFragment stepDetailFragment =\n StepDetailFragment.newInstance(mRecipe.getSteps().get(mSelectedIndex));\n\n // replace detail fragment\n fragmentManager.beginTransaction()\n .replace(R.id.step_detail_container, stepDetailFragment)\n .commit();\n } else {\n\n // phone scenario\n // The StepDetailActivity takes the entire list of steps to enable navigation\n //between steps without popping back to this activity.\n Intent intent = StepDetailActivity.newIntent(this,\n mRecipe.getSteps(), mSelectedIndex);\n\n // The result is the list of steps with updated check box states corresponding to user\n // input when working with individual steps\n startActivityForResult(intent, STEP_UPDATED_CODE);\n }\n }\n }",
"public TestCase afterThis( Procedure callafter );",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}",
"void completed(TestResult tr);",
"public void finish(TestCase testCase) {\n }",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\n\t}",
"@AfterMethod\n\tpublic void getResult(ITestResult result) throws IOException {\n\t\tString cellContent = this.getClass().getSimpleName();\n\t\tSystem.out.println(cellContent);\n\t\t// Searches for the Class name in Excel and return step name\n\t\tString StepName = ts.GetStepName(fileName, cellContent, i, 7);\n\t\t// Searches for the Class name in Excel and returns description of step\n\t\tString StepDescrip = ts.GetStepName(fileName, cellContent, i, 8);\n\t\t// Here we merge the step and description to be put in word\n\t\tString merged = StepName + \": \" + StepDescrip;\n\t\tSystem.out.println(merged);\n\t\ti++;\n\n\t\tSystem.out.println(\"In After method\");\n\t\tSystem.out.println(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\n\t\t// First get the Step Name and Description name in here\n\n\t\t// System.out.println(this.getClass().getSimpleName());\n\t\t// test=\n\t\t// extent.createTest(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\n\t\t\tSystem.out.println(\"Test failed entering in Report\");\n\t\t\ttest.log(Status.FAIL, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test case FAILED due to below issues:\",\n\t\t\t\t\tExtentColor.RED));\n\t\t\tString issueDescription = result.getThrowable().getMessage();\n\t\t\tissueDescription.concat(ExceptionUtils.getFullStackTrace(result.getThrowable()));\n\t\t\ttest.fail(issueDescription);\n\t\t} else if (result.getStatus() == ITestResult.SUCCESS) {\n\t\t\tSystem.out.println(\"Test passed entering in report\");\n\t\t\ttest.log(Status.PASS, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case PASSED\", ExtentColor.GREEN));\n\t\t} else {\n\t\t\ttest.log(Status.SKIP,\n\t\t\t\t\tMarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case SKIPPED\", ExtentColor.ORANGE));\n\t\t\ttest.skip(result.getThrowable());\n\t\t}\n\t\tSystem.out.println(\"At end of after method\");\n\t}",
"public void updateTestStep(String teststep,ExtentReports r,ExtentTest l,WebDriver driver)\n\t{\n\t\tcurrentTestStep=teststep;\n\n\t}",
"protected void runAfterStep() {}",
"@Override\n public List<OExecutionStep> getSteps() {\n return (List) steps;\n }",
"public int getStep() {\n return step;\n }",
"public void testWizards() {\n // open new file wizard\n NewFileWizardOperator nfwo = NewFileWizardOperator.invoke();\n nfwo.selectProject(\"SampleProject\");\n nfwo.selectCategory(\"Java\");\n nfwo.selectFileType(\"Java Class\");\n // go to next page\n nfwo.next();\n // create operator for the next page\n NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();\n nfnlso.txtObjectName().typeText(\"MyNewClass\");\n // finish wizard\n //nfnlso.finish();\n // cancel wizard\n nfnlso.cancel();\n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public void passLog(String testStep,ExtentReports report,ExtentTest logger)\n\t{\n\t\tcurrentTestStep = testStep;\n\t\tlogger.log(Status.PASS, \"Step: \"+(++i)+\" \"+testStep );\n\t\treport.flush();\n\t}",
"protected int getStep() {\n\t\treturn step;\n\t}",
"public interface StepLis {\n\n public void step(long timeNs);\n}",
"@Override\n\t\tpublic void onTestSuccess(ITestResult result) {\n\t\t\tSystem.out.println((result.getMethod().getMethodName() + \" passed!\"));\n\t test.get().pass(\"Test passed\");\n\t\t\t\n\t\t}",
"public int getStep() {\n return step_;\n }"
]
| [
"0.69819283",
"0.69819283",
"0.6908452",
"0.68938607",
"0.68938607",
"0.68722343",
"0.6871309",
"0.6871309",
"0.66795117",
"0.66091555",
"0.6545729",
"0.65216976",
"0.6429993",
"0.6394805",
"0.6387144",
"0.6357183",
"0.6341387",
"0.6238448",
"0.6236647",
"0.62177175",
"0.62152106",
"0.6180966",
"0.61749184",
"0.6135578",
"0.6089486",
"0.6089486",
"0.6089486",
"0.606903",
"0.60431486",
"0.6020573",
"0.5964651",
"0.59471184",
"0.5946533",
"0.59003663",
"0.5880472",
"0.5874866",
"0.58591485",
"0.5834742",
"0.5827869",
"0.58178604",
"0.5809138",
"0.579391",
"0.5776064",
"0.57675123",
"0.57504684",
"0.5748807",
"0.5737328",
"0.5731034",
"0.5727792",
"0.57272375",
"0.5702195",
"0.5690608",
"0.5679736",
"0.56623393",
"0.5659199",
"0.56570184",
"0.5645997",
"0.5645375",
"0.5618531",
"0.56144106",
"0.5610863",
"0.5608937",
"0.5598608",
"0.5590012",
"0.5579073",
"0.5579073",
"0.5579073",
"0.557617",
"0.5559184",
"0.555142",
"0.5547094",
"0.5541967",
"0.5531109",
"0.55284894",
"0.5521867",
"0.551863",
"0.5505184",
"0.54859877",
"0.547427",
"0.54716647",
"0.5471305",
"0.5463482",
"0.54609275",
"0.54566246",
"0.54552895",
"0.54495925",
"0.54495925",
"0.5446029",
"0.54416776",
"0.5437039",
"0.5434871",
"0.5412892",
"0.54114723",
"0.5411078",
"0.53924334",
"0.53885514",
"0.53869927",
"0.537702",
"0.53726244",
"0.5361629"
]
| 0.785288 | 0 |
Handles email test step entity. | default void visit(EmailTestStepEntity emailTestStepEntity) {
throw new UnsupportedOperationException(
String.format("Unsupported email step for request [%s]",
emailTestStepEntity.getEvaluationRequestEntity().getRequestId())
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void emailTest() {\n // TODO: test email\n }",
"@Test\n public void emailTest() {\n // TODO: test email\n }",
"@Override\n\tpublic void handleEmail(OrderDTO orderDTO) {\n\t\t\n\t}",
"void sendEmail(Task task, String taskTypeName, String plantName);",
"@Override\n\tpublic void handleEmail(OrderDTO orderDTO) {\n\n\t}",
"@Transactional\n @Override\n public void decline(EmailDTO emailDTO) {\n Optional<Application> applicationOptional = applicationRepository.findById(emailDTO.getApplicationId());\n if (applicationOptional.isPresent()) {\n Application application = applicationOptional.get();\n String step = application.getStep();\n\n List<Step> stepList = stepRepository.findByJobId(application.getJob().getId());\n if (stepList == null || stepList.size() == 0)\n stepList = stepRepository.findByJobId(\"-1\");\n stepList.sort((a, b) -> Double.compare(a.getIndex(), b.getIndex()));\n if (step.charAt(0) == '-' && step.charAt(1) == '-') {\n throw new ValidationException(\"The rejection email has been sent.\");\n } else if (step.charAt(0) == '-') {\n application.setStep(\"-\" + step);\n applicationRepository.save(application);\n String content = emailDTO.getContent();\n String companyName = application.getJob().getCompany().getCompanyName();\n content = content.replaceAll(\"\\\\[position_name\\\\]\", application.getJob().getName());\n content = content.replaceAll(\"\\\\[company_name\\\\]\", companyName);\n content = content.replaceAll(\"\\\\[candidate_name\\\\]\", application.getResume().getName());\n mail.send(\"[email protected]\", emailDTO.getReceiver(), application.getResume().getName()+ \" -- \"+emailDTO.getSubject(), content);\n }\n //maybe the following two replace is unnecessary\n else if (Math.abs(Double.valueOf(step.replace(\"+\", \"\").replace(\"-\", \"\")) - stepList.get(0).getIndex()) < 0.01) {\n application.setStep(\"--\" + step);\n applicationRepository.save(application);\n String content = emailDTO.getContent();\n String companyName = application.getJob().getCompany().getCompanyName();\n content = content.replaceAll(\"\\\\[position_name\\\\]\", application.getJob().getName());\n content = content.replaceAll(\"\\\\[company_name\\\\]\", companyName);\n content = content.replaceAll(\"\\\\[candidate_name\\\\]\", application.getResume().getName());\n mail.send(\"[email protected]\", emailDTO.getReceiver(), application.getResume().getName()+ \" -- \"+emailDTO.getSubject(), content);\n } else {\n throw new ValidationException(\"The interviewer has not rejected the candidate.\");\n }\n\n } else {\n throw new NotFoundException(\"Application no found\");\n }\n\n }",
"@Override\n public void sendEmail() {\n return;\n }",
"public void testProcessReturnedMail() throws Exception {\n \n logln(\"\\n==== Process Returned Mail ====\\n\");\n \n //login\n loginAFSCME();\n \n //go to the 'Process Returned Mail' page.\n selectLink(\"Process Returned Mail\");\n \n //fill in the parameters\n setParameter(\"addressIds\", \"120\\n221\" );\n \n submit(\"submit\");\n //logout\n selectLink(\"LOGOUT\");\n }",
"public void emailFieldTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.emailFieldLocator, \"Email input field\", 5)) {\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.emailFieldLocator, \"Email input field\", \"[email protected]\");\r\n\t\t}\r\n\t}",
"SendEmail() {\t\n\t}",
"@Override\r\n\tpublic void sendInvoice(Invoice invoice, String email) {\n\t\tSystem.out.println(\"Invoice Sent email\");\r\n\t}",
"@Test (priority = 2, dependsOnMethods = {\"login\", \"composeMail\"})\r\n\tpublic void saveMail() {\n\t\tSystem.out.println(\"Save Mail\");\r\n\t}",
"void send(String emailName, Map model, EmailPreparator emailPreparator);",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"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 }",
"@Test\n public void sendMail() throws Exception {\n emailService.setApplicationContext(context);\n doReturn(aweElements).when(context).getBean(any(Class.class));\n given(mailSender.createMimeMessage()).willReturn(mimeMessage);\n given(aweElements.getLanguage()).willReturn(\"ES\");\n given(aweElements.getLocaleWithLanguage(anyString(), anyString())).willReturn(\"LOCALE\");\n ParsedEmail email = new ParsedEmail()\n .setFrom(new InternetAddress(\"[email protected]\"))\n .setTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setReplyTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setCc(singletonList(new InternetAddress(\"[email protected]\")))\n .setCco(singletonList(new InternetAddress(\"[email protected]\")))\n .setSubject(\"Test message\")\n .setBody(\"<div style='background-color:red;'>Test div message</div>\")\n .addAttachment(\"FileName.test\", new File(\"C:\\\\Users\\\\test\\\\Pictures\\\\Saved Pictures\\\\test.jpg\"));\n emailService.sendEmail(email);\n verify(mailSender).send(mimeMessage);\n }",
"void send(String emailName, Map model, Locale locale, EmailPreparator emailPreparator);",
"@When(\"Enter customer EMail\")\npublic void enter_customer_e_mail() {\n\tlogger.info(\"******Searching customer by email id********\");\n searchCust = new SearchCustomerPage(driver);\n searchCust.setEmail(\"[email protected]\");\n}",
"void sendTemplateMessage (EmailObject object) throws Exception;",
"@Step\r\n\tpublic void enterEmail(String email) {\r\n\t\tLOGGER.info(\"Entering email: \" + email);\r\n\t\temailInput.type(email);\r\n\t}",
"@Step\n public WrikeResendPage startFreeForTodayWithEmail(WrikeMainPage mainPage, String email) {\n mainPage.click(WrikeMainPage.getStartedForFreeBtn);\n // Fill email form\n mainPage.writeText(WrikeMainPage.newEmailModalText, email);\n // Click submit\n mainPage.click(WrikeMainPage.newEmailSubmitModalBtn);\n // Wait for resend page to load\n return new WrikeResendPage(webDriver);\n\n }",
"public final void testSendMail() throws EMagineException {\r\n\t\tCollection<Attachment> attachments = new ArrayList<Attachment>();\r\n\t\tAttachment attachment = new Attachment();\r\n\t\tattachment.setName(this.getClass().getSimpleName()+\".java\");\r\n\t\tattachment.setPath(\"TestSource/\"+this.getClass().getPackage().getName().replaceAll(\"\\\\.\", \"/\")+\"/\"+this.getClass().getSimpleName()+\".java\");\r\n\t\tattachments.add(attachment);\r\n\t\tMailManager.sendMail(\"[email protected]\", \"MailManagerTest\", \"Just a funny test\", attachments);\r\n\t}",
"@Override\n\tvoid email() {\n\t\tSystem.out.println(\"[email protected]\");\n\t\t\n\t}",
"@Override\n\tvoid email() {\n\t\tSystem.out.println(\"email id [email protected]\");\n\t\t\n\t}",
"void send(Email email);",
"@Test\n @DisplayName(\"Test: check if 'Mail' action works.\")\n public void testSetMailAction() throws InterruptedException, ClientException {\n FormContainerEditDialog dialog = formComponents.openEditDialog(containerPath);\n dialog.setMailActionFields(from,subject,new String[] {mailto1,mailto2}, new String[] {cc1, cc2});\n Commons.saveConfigureDialog();\n JsonNode formContentJson = authorClient.doGetJson(containerPath , 1, HttpStatus.SC_OK);\n assertTrue(formContentJson.get(\"from\").toString().equals(\"\\\"\"+from+\"\\\"\"));\n assertTrue(formContentJson.get(\"subject\").toString().equals(\"\\\"\"+subject+\"\\\"\"));\n assertTrue(formContentJson.get(\"mailto\").get(0).toString().equals(\"\\\"\"+mailto1+\"\\\"\"));\n assertTrue(formContentJson.get(\"mailto\").get(1).toString().equals(\"\\\"\"+mailto2+\"\\\"\"));\n assertTrue(formContentJson.get(\"cc\").get(0).toString().equals(\"\\\"\"+cc1+\"\\\"\"));\n assertTrue(formContentJson.get(\"cc\").get(1).toString().equals(\"\\\"\"+cc2+\"\\\"\"));\n }",
"void sendEmail(Job job, String email);",
"@Test\n\tpublic void EmailUtility() {\n\n\t\tlog.info(\"Testing Starts\");\n\t\tperformCommonMocking();\n\t\t\n\t\tEmail emailMessage = new Email();\n\t\temailMessage.setHostName(\"localhost\");\n\t\temailMessage.setPortName(\"25\");\n\t\tString[] recipients = new String [3];\n\t\trecipients[0] = \"[email protected]\";\n\t\trecipients[1] = \"[email protected]\";\n\t\trecipients[2] = \"[email protected]\";\n\t\temailMessage.setRecipient(recipients);\n\t\temailMessage.setFrom(\"[email protected]\");\n\t\temailMessage.setSubject(\"Test Email\");\n\t\temailMessage.setBody(\"Test Body\");\n\t\tString[] files = new String[1];\n\t\tfiles[0] = \"C:\\\\Users\\\\asara3\\\\Documents\\\\Architecture.jpg\";\n\t\temailMessage.setFile(files);\n\t\t\n\t\tlog.info(\"Email Model Set Successfully\");\n\t\t\n\t\ttry {\n\t\t\tWhitebox.invokeMethod(EmailUtility.class, \"processEmail\", emailMessage);\n\t\t\tlog.info(\"Model Processed Successfully\");\n\t\t} catch (Exception e) {\n\t\t\n\t\t\tlog.error(\"Error in Model processing\");\n\t\t}\n\t\t\n\t}",
"@Override\r\n\tpublic void onFinish(ITestContext iTestContext) {\r\n\t\tString testsRun = \"Total Tests run: \" + testRun;\r\n\t\tString testsPassed = \" Tests passed: \" + testPassed;\r\n\t\tString testsFailed = \" Tests failed: \" + testFailed;\r\n\t\tString testsSkipped = \" Tests skipped: \" + testSkipped;\r\n\t\tmailText = testsRun + \"\\n\" + testsPassed + \"\\n\" + testsFailed + \"\\n\"\r\n\t\t\t\t+ testsSkipped + \"\\n\\n\";\r\n\t\tappendHtlmFile(\"<tr><td align='center' colspan='5'; >\" + mailText\r\n\t\t\t\t+ \"</td></tr>\");\r\n\t\t}",
"@Override\n public void sendEmail(String emailBody) {\n }",
"@Override\n\tprotected String doIt() throws Exception {\n\t\tString returnMsg = Msg.getMsg(getCtx(), \"EGGO_SENDMAIL_EVENT\");\n\t\tMOrder mo = new MOrder(getCtx(), Order_ID, get_Trx());\n\t\tif(EventType.equals(\"05\") && (mo.get_ValueAsTimestamp(\"DatePose\") == null || mo.get_ValueAsTimestamp(\"Z_DATELIVRCLI\")==null))\n\t\t{\n\t\t\treturn Msg.getMsg(getCtx(), \"EGGO_SENDMAIL_ERR\");\n\t\t}\n\t\t//SI\n\t\t//XX_no_solde_inv_gest\n\t\t\n\t\t\n\t\tif(EventType.equals(\"05\")) {\n\t\t\tString role = \"\"+getCtx().getAD_Role_ID();\n\t\t\tString XX_Gest_roles = Msg.getMsg(getCtx(), \"XX_Gest_roles\");\n\t\t\tString XX_Gest_rolesXX = Msg.getMsg(getCtx(), \"XX_Gest_roles++\");\n\t\t\tString XX_no_solde_inv_gest = Msg.getMsg(getCtx(), \"XX_no_solde_inv_gest\");\n\t\t\tString XX_no_solde_inv_gestXX = Msg.getMsg(getCtx(), \"XX_no_solde_inv_gest++\");\n\t\t\tString XX_no_ech_05_gest = Msg.getMsg(getCtx(), \"XX_no_ech_05_gest\");\n\t\t\tString XX_no_ech_05_gestXX = Msg.getMsg(getCtx(), \"XX_no_ech_05_gest++\");\n\t\t\tif(XX_Gest_roles.contains(role))\n\t\t\t{\n\t\t\t\t//No 05 ?\n\t\t\t\tint nbECH05 = QueryUtil.getSQLValue(get_Trx(), \"Select count(1) from z_orderpaymschedule where C_order_ID = ? and exists (select 1 from z_typeecheance \"\n\t\t\t\t\t+ \"where z_typeecheance.z_typeecheance_ID = z_orderpaymschedule.z_typeecheance_ID and value = '05')\", Order_ID);\n\t\t\t\tif(nbECH05 <= 0)\n\t\t\t\t\treturnMsg = XX_no_ech_05_gest;\n\t\t\t\telse {\n\t\t\t\t\tint inv_id = QueryUtil.getSQLValue(get_Trx(), \"Select max(C_Invoice_ID) from z_orderpaymschedule where C_order_ID = ? and exists (select 1 from z_typeecheance \"\n\t\t\t\t\t\t+ \"where z_typeecheance.z_typeecheance_ID = z_orderpaymschedule.z_typeecheance_ID and value = '05')\", Order_ID);\n\t\t\t\t\tif(inv_id<=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new CompiereException(XX_no_solde_inv_gest);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif(XX_Gest_rolesXX.contains(role))\n\t\t\t{\n\t\t\t\tint nbECH05 = QueryUtil.getSQLValue(get_Trx(), \"Select count(1) from z_orderpaymschedule where C_order_ID = ? and exists (select 1 from z_typeecheance \"\n\t\t\t\t\t\t+ \"where z_typeecheance.z_typeecheance_ID = z_orderpaymschedule.z_typeecheance_ID and value = '05')\", Order_ID);\n\t\t\t\t\tif(nbECH05 <= 0)\n\t\t\t\t\t\treturnMsg = XX_no_ech_05_gestXX;\n\t\t\t\t\telse {\n\t\t\t\t\t\tint inv_id = QueryUtil.getSQLValue(get_Trx(), \"Select max(C_Invoice_ID) from z_orderpaymschedule where C_order_ID = ? and exists (select 1 from z_typeecheance \"\n\t\t\t\t\t\t\t+ \"where z_typeecheance.z_typeecheance_ID = z_orderpaymschedule.z_typeecheance_ID and value = '05')\", Order_ID);\n\t\t\t\t\t\tif(inv_id<=0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturnMsg = XX_no_solde_inv_gestXX;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString ret = WSUtil.SendEmailEvent(getCtx(), mo, EventType,getAD_PInstance_ID(), get_Trx());\n\t\tif(ret == null)\n\t\t{\n\t\t\treturn \"Event Type not supported\";\n\t\t}\n\t\treturn returnMsg;\n\t}",
"public void sendEmail(Author authorObject);",
"@Test\n @Ignore\n public void enviarEmail() {\n String caminho = \"C:\\\\Users\\\\Da Rocha\\\\OneDrive\\\\Projeto_DiskAgua\\\\xml\\\\20_Tardeli da Rocha.xml\";\n\n Email.sendEmail(caminho, \"[email protected]\");\n\n }",
"@Test\n\tpublic void testCase1() {\n\t\tSystem.out.println(\"Composemail\");\n\n\t}",
"@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}",
"@Test\n public void esmtpCheckTest(TestContext testContext) {\n this.testContext=testContext;\n smtpServer.setDialogue(\"220 example.com Esmtp\",\n \"EHLO\",\n \"250 example.com\",\n \"MAIL FROM\",\n \"250 2.1.0 Ok\",\n \"RCPT TO\",\n \"250 2.1.5 Ok\",\n \"DATA\",\n \"354 End data with <CR><LF>.<CR><LF>\",\n \"250 2.0.0 Ok: queued as ABCDDEF0123456789\",\n \"QUIT\",\n \"221 2.0.0 Bye\");\n smtpServer.setCloseImmediately(false);\n\n testSuccess();\n }",
"public void onFinish(ISuite arg0) {\n\t\tMonitoringMail mail=new MonitoringMail();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmessageBody = \"http://\"+InetAddress.getLocalHost().getHostAddress()+\":8080/job/git-DataDriven-Framework/Extent_20reports//\";\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n //System.out.println(hostname);\r\n \r\n try {\r\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody);\r\n\t} catch (AddressException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t} catch (MessagingException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\t\r\n\t}",
"public void execute(DelegateExecution execution) {\n System.out.println(\"Sending email now\");\n }",
"public static void main(String[] args) {\n /* Generate the email factory */\n EMailGenerationSystem generateEmail = new EmailFactory();\n \n /* Generate the email for business customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" Business Customer.---\"); \n generateEmail.generateEmail(\"Business\"); /* Generate email. */\n System.out.println(\"\\n\"); /* separate the test cases */\n \n /* Generate the email for frequent customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Frequent Customer.---\"); \n generateEmail.generateEmail(\"Frequent\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for new customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"New Customer.---\"); \n generateEmail.generateEmail(\"New\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for returning customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Returning Customer.---\"); \n generateEmail.generateEmail(\"returning\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for vip customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" VIP Customer.---\"); \n generateEmail.generateEmail(\"VIP\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for mispelling. The message will print out indicating error.*/\n System.out.println(\"---This is the start of the email for email \"\n + \" generation failure.---\"); \n generateEmail.generateEmail(\"custumer\"); /* Generate email. */\n }",
"public abstract void arhivare(Email email);",
"private DemoProcessStartEmailForWebservice() {\n\n }",
"void send(String emailName, Map model);",
"@Then(\"^Send a mail to email id \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void Send_a_mail_to_email_id(String arg1) throws Throwable {\n\t throw new PendingException();\r\n\t}",
"@RequestMapping(\"/test\")\n\tpublic String Mail()\n\t{\n\t\tif(useMock)//if useMock value is true then it calls mockEmaliSender else it calls SMTPEmailSender the is declare in app.properties\n\t\t{\n\t\treturn mockEmailSender.sendMail(); //call to mMockEmailSender Class\n\t\t}\n\t\telse\n\t\t{\n\t\treturn SMTPEmailSender.sendMail(); //call to SMTPEmailSender class\n\t\t}\n\t}",
"public void verifyEmailSended(PushRecord pushRecord) throws Exception {\n Plan plan = (Plan) pushRecord.getPayLoad().get(\"plan\");\n Person person = pushRecord.getPerson();\n person = personService.findById(person);\n String email = person.getEmail();\n PushRecordType pushType = pushRecord.getType();\n String templateId = null;\n if (pushType == PushRecordType.PLAN_THREE_DAYS) {\n templateId = SendGridEmailTemplate.INSPECTION_THREE_DAYS();\n } else {\n templateId = SendGridEmailTemplate.INSPECTION_TODAY();\n }\n Address address = addressDao.findById(plan.getAddress());\n Map<String, Object> data = new HashMap<>();\n data.put(\"inspectionLocation\", address.getContent());\n int day = plan.getDay();\n LocalDateTime now = LocalDateTime.now(ZoneId.of(\"UTC\"));\n int nowDay = now.getDayOfMonth();\n Month month = now.getMonth();\n int year = now.getYear();\n if (nowDay > day) {\n LocalDateTime nextMonth = now.plusMonths(1);\n month = nextMonth.getMonth();\n year = nextMonth.getYear();\n }\n String dateInfo = month.toString() + \" \" + day + \"st,\" + year;\n data.put(\"inspectionDate\", dateInfo);\n String subject = \"Scheduled inspection reminder\";\n Mockito.verify(mockSendEmailUitl).sendByTemplate(email, subject, templateId, data);\n }",
"public void tradeEmail(Trade model, Activity view) {\n String subject = \"SSCTE Trade Completed\" ;\n String body = model.getOwner().getName() + \" has accepted a trade with \" + model.getBorrower().getName() + \".\\n\" +\n \"+=================================+\\n\" +\n \" \" + model.getOwner().getName() + \"'s cards traded:\\n\";\n for (Card card : model.getOwnerList()) {\n body = body + \" [\" + card.getQuantity() + \"] \" + card.getName() + \"\\n\";\n }\n body = body +\n \"+=====================+\\n\" +\n \" \" + model.getBorrower().getName() + \"'s cards traded:\\n\";\n for (Card card : model.getBorrowList()) {\n body = body + \" [\" + card.getQuantity() + \"] \" + card.getName() + \"\\n\";\n }\n body = body +\n \"+=================================+\\n\\n\" +\n \" [Add some comments for continuing trade here]\";\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n \"mailto\",model.getOwner().getEmail() + \",\"+model.getBorrower().getEmail(), null));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n emailIntent.putExtra(Intent.EXTRA_TEXT, body);\n view.startActivity(Intent.createChooser(emailIntent, \"Send email...\"));\n }",
"public void testSendEmail2()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"[email protected]\");\n user.update();\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"[email protected]\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy()); \n }",
"void send(String emailName, Map model, Locale locale);",
"public void testDynamicMailto() {\r\n Map<String, String> parameters = new HashMap<String, String>();\r\n ConnectionParameters cp = new ConnectionParameters(new MockConnectionEl(parameters,\r\n \"mailto:$address?subject=$subject\"), MockDriverContext.INSTANCE);\r\n final Map<String,String> params = new HashMap<String, String>();\r\n MailConnection mc = new MailConnection(cp) {\r\n @Override\r\n protected void send(MimeMessage message) {\r\n try {\r\n assertEquals(params.get(\"address\"), message.getRecipients(Message.RecipientType.TO)[0].toString());\r\n assertEquals(\"Message. \"+params.get(\"example\"), message.getContent());\r\n assertEquals(params.get(\"subject\"), message.getSubject());\r\n } catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n }\r\n };\r\n params.put(\"address\", \"[email protected]\");\r\n params.put(\"example\", \"*example*\");\r\n params.put(\"subject\", \"Hello1\");\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n params.put(\"address\", \"[email protected]\");\r\n params.put(\"subject\", \"Hello2\");\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n params.put(\"address\", \"////@\");\r\n try {\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n } catch (MailProviderException e) {\r\n assertTrue(\"Invalid address must be reported\", e.getMessage().indexOf(\"////@\")>=0);\r\n }\r\n\r\n\r\n }",
"@Category({Major.class})\n @Test\n public void gmailSendAndReceive(){\n SignInPage signInPage = WebUtil.goToSignInPage(driver);\n\n //2.Enter Username\n signInPage.enterUsername(driver, \"[email protected]\");\n\n //3. Go to next page\n SignInPage2 signInPage2 = signInPage.clickNextButton(driver);\n\n //4. Enter Password\n signInPage2.enterPassword(driver, \"testingrocks\");\n\n //5. Uncheck \"Stay signed in\" -- dont save cookies\n signInPage2.uncheckRemeberMe(driver);\n\n //6. Click Sign In Button\n EmailHomePage emailHomePage = signInPage2.clickSignIn(driver);\n\n //7. Verify login was successful\n Assert.assertTrue(\"Inbox should be present!!\",emailHomePage.inboxIsPresent(driver));\n\n //Click Compose\n emailHomePage.clickOnCompose(driver);\n\n //Fill in Recipient\n emailHomePage.enterRecipient(driver, \"[email protected]\");\n\n //Fill in Subject\n final String subjectMatter = \"Test email to self\";\n emailHomePage.enterSubject(driver, subjectMatter);\n\n //Fill in email body\n final String emailMatter = \"Hello, \"+ \"\\n\" + \"This is a test email to self\";\n emailHomePage.enterEmailBody(driver, emailMatter);\n\n //Click send\n emailHomePage.clickOnSendButton(driver);\n\n //Click inbox again\n emailHomePage.clickOnInbox(driver);\n\n //Click email\n EmailViewPage emailViewPage = emailHomePage.goToEmailViewPage(driver);\n\n //Verify the email subject and email body is correct\n String actualSubject = emailViewPage.getEmailSubjectText(driver);\n Assert.assertEquals(\"Title should match\", subjectMatter, actualSubject);\n\n String actualEmailContent = emailViewPage.getEmailContent(driver);\n Assert.assertEquals(\"Email body content should match\", emailMatter, actualEmailContent);\n\n //Sign out\n signInPage = emailHomePage.signOut(driver);\n\n //Verify user signed out successfully\n Assert.assertTrue(\"Sign In button should exist\", signInPage.signInButtonIsPresent(driver));\n\n }",
"@Test\n public void mailNoEsmtpTest(TestContext testContext) {\n this.testContext=testContext;\n smtpServer.setDialogue(\"220 example.com\",\n \"EHLO \",\n \"502 EHLO command not understood\",\n \"HELO \",\n \"250 example.com\",\n \"MAIL FROM\",\n \"250 2.1.0 Ok\",\n \"RCPT TO\",\n \"250 2.1.5 Ok\",\n \"DATA\",\n \"354 End data with <CR><LF>.<CR><LF>\",\n \"250 2.0.0 Ok: queued as ABCDDEF0123456789\",\n \"QUIT\",\n \"221 2.0.0 Bye\");\n smtpServer.setCloseImmediately(false);\n\n testSuccess();\n }",
"public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }",
"@When(\"A user enters a valid email address$\")\n public void check_valid_email(DataTable email) throws Throwable {\n List<List<String>> email_addresses = email.raw();\n for (List<String> element : email_addresses) {\n for (String ea : element) {\n home.submit_email(ea);\n }\n }\n }",
"@Test\n\tpublic void verifySuccessMessageUponSubmittingValidEmailInForgetPasswordPage() throws Exception{\n\t\tLoginOtomotoProfiLMSPage loginPage = new LoginOtomotoProfiLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.languageDropdown);\n\t\tactionClick(driver,loginPage.languageDropdown);\n\t\twaitTill(1000);\n\t\tactionClick(driver,loginPage.englishOptioninLangDropdown);\n\t\tFogrotPasswordOTMPLMSPage forgotPasswordPageObj = new FogrotPasswordOTMPLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.forgotPasswordLink);\n\t\tjsClick(driver,loginPage.forgotPasswordLink);\n\t\texplicitWaitFortheElementTobeVisible(driver,forgotPasswordPageObj.forgotPasswordPageHeading);\n\t\tsendKeys(forgotPasswordPageObj.forgotPasswordEmailInputField, testUserPL);\n\t\tjsClick(driver,forgotPasswordPageObj.forgotPasswordRecoveryButton);\n\t\twaitTill(2000);\n\t Assert.assertEquals(getText(forgotPasswordPageObj.forgotPasswordSuccessMessage), \"We've sent you an email with a link to reset your password. You may close this tab and check your email.\", \"Success message is not displaying upon submitting the forget password page with valid ceredentials\");\n\t}",
"@Test\n\tpublic void testSaveDriverEmail() throws MalBusinessException{\n\t\tString email = \"[email protected]\";\n\t\tsetUpDriverForAdd();\n\t\tdriver.setEmail(email);\n\t\tdriver = driverService.saveOrUpdateDriver(externalAccount, driverGrade, driver, generateAddresses(driver, 1), generatePhoneNumbers(driver, 1), userName, null);\n\t\t\n\t\tassertEquals(\"Inserted Email does not match \" + email, driver.getEmail(), email);\n\t}",
"private boolean sendEmail(final Event event2send) {\n final Customer customer = event2send.getCustomer();\n final Unit unit = event2send.getCustomer().getUnit();\n final String text2send = format(event2send);\n\n if (null == customer.getEmail() || 0 == customer.getEmail().trim().length()) {\n LOG.warning(\"email cannot be sent, wrong customer email address, eventId=\" + event2send.getId());\n return false;\n }\n\n final SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(unit.getEmail());\n message.setTo(customer.getEmail());\n message.setSubject(unit.getName());\n message.setText(text2send);\n\n boolean rslt;\n try {\n // do NOT send the email physically if email address is \"-=NO_MAIL=-\"\n if (\"-=NO_MAIL=-\".equals(customer.getEmail())) {\n LOG.fine(\"fake mail (not sent), id=\" + event2send.getId() + \", customer=\" + customer.getAsciiFullname());\n } else {\n mailSender.send(message);\n LOG.info(\"event sent via email, id=\" + event2send.getId() + \", address=\" + customer.getEmail());\n }\n rslt = true;\n } catch (Throwable t) {\n LOG.log(Level.SEVERE, \"failed to send email, id=\" + event2send.getId(), t);\n rslt = false;\n }\n return rslt;\n }",
"public void sendToFlightAlternativeEmails(Email email, FlightQuotationHistory flightQuotationHistoryEmail,\n\t\t\tHttpServletRequest request, HttpServletResponse response, Locale locale, FlightTravelRequestDao flightTravelRequestDao, FlightInvoiceData flightInvoiceData, EmailDao emailDao, EmailService emailService, EmailNotificationDao emailNotificationDao, AllEmailDao allEmailDao, ApplicationContext applicationContext, ServletContext servletContext, EmailContentService emailContentService)\n\t\t\t\t\tthrows MessagingException, MailException, NullPointerException, UnsupportedEncodingException,\n\t\t\t\t\tDocumentException, IOException, Exception {\n\n\t\tif (flightQuotationHistoryEmail != null) {\n\t\t\tCompany company = null;\n\t\t\tUser user = null;\n\t\t\tString userId = TravelRequestHelper.getQuotationUserId(flightQuotationHistoryEmail.getFlightQuotationSchema());\n\t\t\tString requestId = TravelRequestHelper.getTravelRequestId(flightQuotationHistoryEmail.getFlightQuotationSchema());\n\t\t\tList<Long> quotationIdList = TravelRequestHelper.getQuotationIdList(flightQuotationHistoryEmail.getFlightQuotationSchema());\n\t\t\tif (userId != null && requestId != null && quotationIdList != null && quotationIdList.size() > 0) {\n\t\t\t\tcompany = allEmailDao.getCompanyByUserId(userId);\n\t\t\t\tuser = allEmailDao.getUserByUserId(userId);\n\t\t\t\tCommonConfig conf = CommonConfig.GetCommonConfig();\n\t\t\t\tif (user != null && company != null && conf != null) {\n\t\t\t\t\tuser.initLogoDisplayable();\n\t\t\t\t\tcompany.initLogoDisplayable();\n\t\t\t\t\tList<FlightTravelRequestQuotation> quotations = flightTravelRequestDao\n\t\t\t\t\t\t\t.getFlightRequestTravelQuotationList(quotationIdList);\t\t\n\t\t\t\t\tif (quotations.size() > 0) {\n\t\t\t\t\t\tFlightTravelRequest flightTravelRequest = flightTravelRequestDao\n\t\t\t\t\t\t\t\t.getFlightTravelRequest(Long.valueOf(requestId));\n\t\t\t\t\t\tif (flightTravelRequest != null) {\n\t\t\t\t\t\t\tuser.tranformDisplayable();\n\t\t\t\t\t\t\tcompany.tranformDisplayable();\n\t\t\t\t\t\t\temailService.sendFlightQuotationAlternativeEmail(user, company, flightTravelRequest,\n\t\t\t\t\t\t\t\t\tquotations, flightQuotationHistoryEmail, locale, request, response, servletContext,\n\t\t\t\t\t\t\t\t\tapplicationContext);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"######Quotations not found\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"######User or Company not found\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"######Invalid id pattern\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tthrow new Exception(\"Email not found\");\n\t\t}\n\t}",
"void send(String emailName);",
"public static void sendEmail(EmailSendable e, String message){\n\t\tSystem.out.println(\"Email-a bidali da: \"+message);\r\n\t}",
"private static void mailResults(String experimentID, String content) {\r\n }",
"@Test(groups = { \"survey-creation\", \"all-tests\", \"key-tests\" })\r\n public void unsuccessfullyCreatedSurveyWhenEmailIsNotMappedAndClickSaveButton() throws Exception {\r\n\r\n log.startTest( \"LeadEnable: Verify that survey can not be created when Email is not mapped and you click Save button\" );\r\n unsuccessfullyCreateSurveyWhenSaving( true );\r\n log.endTest();\r\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Test\n\tpublic void addProductToCartAndEmailIt() {\n\t}",
"@When(\"enter customer email\")\n\tpublic void enter_customer_email() {\n\t\tsearchCust = new searchCustomerPage(driver);\n\t\tsearchCust.setEmail(\"[email protected]\");\n\t\t\n\t}",
"@Override\n\tpublic void sendHtmlEmail(MimeMessage mm) {\n\t\t\n\t}",
"@Override\n\tpublic void sendOrderConfirmationHtmlEmail(Order order) {\n\t\t\n\t}",
"@Test\n @DisplayName(\"Test: check if invalid 'Mail' validation messages are displayed.\")\n public void testInvalidEmailValidationMessages() throws InterruptedException, ClientException {\n FormContainerEditDialog dialog = formComponents.openEditDialog(containerPath);\n dialog.setMailActionFields(from,subject,new String[] {invalidMailto}, new String[] {invalidCC});\n Commons.saveConfigureDialog();\n String mailToErrorMessage = \"coral-multifield-item-content input[name='./mailto'] + coral-tooltip[variant='error']\";\n String ccErrorMessage = \"coral-multifield-item-content input[name='./mailto'] + coral-tooltip[variant='error']\";\n assertTrue($(mailToErrorMessage).isDisplayed());\n assertEquals($(mailToErrorMessage).getText(), \"Error: Invalid Email Address.\");\n assertTrue($(ccErrorMessage).isDisplayed());\n assertEquals($(ccErrorMessage).getText(), \"Error: Invalid Email Address.\");\n }",
"@Override\n public void sendEmail(String newRecipient) {\n System.out.println(\"Email sent to _\" \n + newRecipient\n + \"_ Invalid RECIPIENTS\");\n }",
"private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }",
"public void setEmailAddress(String email) {\n this.email = email;\n }",
"@Test\r\n public void testSetEmail() {\r\n\r\n }",
"@When(\"I enter a valid email {string}\")\n public void i_enter_a_valid_email(String em) {\n BasePage.driverUtils.waitForPresenceOFElementLocatedBy(By.id(\"FriendEmail\"));\n BasePage.productEmailAfirendPage.getFriendEmailTextBox().sendKeys(em);\n }",
"@Category({ Major.class })\n\t@Test\n\tpublic void saveDraftEmailAutomatically() throws InterruptedException {\n\t\tSignInPage signInPage = WebUtils.gotoSignInPage(driver);\n\t\t// 2. Click to gmail\n\t\tsignInPage.accessGmailPage(driver);\n\t\t// 3. Input user name\n\t\tsignInPage.fillInUsername(driver, \"[email protected]\");\n\t\t// 4. Click next\n\t\tsignInPage.clickNextUser(driver);\n\t\t// 5. Input password\n\t\tSignInPage.fillInPassword(driver, \"nga123456789\");\n\t\t// 6. Click passwordNext\n\t\tEmailHomepage emailHomepage = signInPage.clickNextPass(driver);\n\t\t// 7. verify Inbox\n\t\tAssert.assertTrue(\"Sign in successfully\", driver.findElement(By.partialLinkText(\"Inbox\")).isDisplayed());\n\t\t// Click Compose\n\t\temailHomepage.createEmail(driver);\n\t\t// Fill in recipent\n\t\temailHomepage.inputReceiver(driver, \"[email protected]\");\n\t\t// Fill in subject\n\t\temailHomepage.inputSubject(driver, \"Demo Email\");\n\t\t// Fill in email body\n\t\temailHomepage.inputEmailBody(driver, \"Hello tester! good morning\");\n\t\t// Close email\n\t\temailHomepage.clickCloseEmail(driver);\n\t\t// Click Draft\n\t\temailHomepage.clickDraft(driver);\n\t\t// Click email\n\t\tEmailViewPage emailViewPage = emailHomepage.clickNewEmail(driver);\n\t\t// Verify\n\t\tString actualSubject = emailViewPage.getEmailText(driver);\n\t\tAssert.assertEquals(\"Succeed!\", \"Demo Email\", actualSubject);\n\t\t// 8. Sign Out\n\t\tsignInPage = emailHomepage.signOut(driver);\n\n\t}",
"public void userShouldGetMessage() {\n assertTextMessage(getTextFromElement(_emailResult), expected, \"Your message has been sent\");\n\n }",
"public void setupEmail(String sub, EventResult<SetupResponse> setupResponseResult) {\n SetupEntity setupEntity = new SetupEntity(sub, AuthenticationType.EMAIL);\n ConfigurationController.getShared(context).setup(setupEntity, setupResponseResult);\n }",
"public void setEmail(final String e)\n {\n this.email = e;\n }",
"private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}",
"@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}",
"@Test\n public void emailVerifiedTest() {\n // TODO: test emailVerified\n }",
"@Override\n\tpublic void setSendMailSuccess() {\n\t\t\n\t}",
"@Test\n\tpublic void testCase2() {\n\t\tSystem.out.println(\"savemail\");\n\n\t}",
"@Test(groups = { \"survey-creation\", \"all-tests\", \"key-tests\" })\r\n public void unsuccessfullyCreatedSurveyWhenEmailIsNotMappedAndClickSaveAndContinueButton()\r\n throws Exception {\r\n\r\n log.startTest( \"LeadEnable: Verify that survey can not be created when Email is not mapped and you click Save and Continue to Theme button\" );\r\n unsuccessfullyCreateSurveyWhenSaving( false );\r\n log.endStep();\r\n }",
"@Step\n public void assertContactUs(){\n contactusPages.assertContactUs();\n }",
"public void testSendEmail3()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"[email protected]\");\n user.update();\n\n // create a repository\n Repository repository = platform.createRepository();\n Branch branch = repository.readBranch(\"master\");\n\n // create a node with a text attachment that serves as the email body\n Node node = (Node) branch.createNode();\n byte[] bytes = ClasspathUtil.bytesFromClasspath(\"org/gitana/platform/client/email1.html\");\n node.uploadAttachment(bytes, MimeTypeMap.TEXT_HTML);\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"[email protected]\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy());\n }",
"public void setEmail(Email email) { this.email = email; }",
"private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}",
"public void testSingleEmailAddress() {\n rootBlog.setProperty(SimpleBlog.EMAIL_KEY, \"[email protected]\");\n assertEquals(\"[email protected]\", rootBlog.getEmail());\n assertEquals(1, rootBlog.getEmailAddresses().size());\n assertEquals(\"[email protected]\", rootBlog.getEmailAddresses().iterator().next());\n }",
"@Test\r\n\tpublic void TC_08_verify_Existing_Email_Address() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with valid email address already taken\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding already registered\r\n\t\t//email address is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Username already taken.\");\r\n\r\n\t}",
"@Category({ Minor.class })\n\t@Test\n\tpublic void deleteEmail() throws InterruptedException {\n\t\tSignInPage signInPage = WebUtils.gotoSignInPage(driver);\n\t\t// 2. Click to gmail\n\t\tsignInPage.accessGmailPage(driver);\n\t\t// 3. Input user name\n\t\tsignInPage.fillInUsername(driver, \"[email protected]\");\n\t\t// 4. Click next\n\t\tsignInPage.clickNextUser(driver);\n\t\t// 5. Input password\n\t\tSignInPage.fillInPassword(driver, \"nga123456789\");\n\t\t// 6. Click passwordNext\n\t\tEmailHomepage emailHomepage = signInPage.clickNextPass(driver);\n\t\t// 7. verify Inbox\n\t\tAssert.assertTrue(\"Sign in successfully\", driver.findElement(By.partialLinkText(\"Inbox\")).isDisplayed());\n\t\t// Click Email checkbox\n\t\temailHomepage.clickEmailCheckBox(driver);\n\t\t// delete email\n\t\temailHomepage.deleteEmail(driver);\n\t\tAssert.assertTrue(\"Delete successfully!\", driver.findElement(By.linkText(\"Learn more\")).isDisplayed());\n\t\tString actual = emailHomepage.getMessage(driver);\n\t\tAssert.assertEquals(\"success\", \"The conversation has been moved to the Trash.\", actual);\n\t\tsignInPage = emailHomepage.signOut(driver);\n\n\n\t}",
"@Test\n public void emailToCheckTest(){\n when(DatabaseInitializer.getEmail(appDatabase)).thenReturn(string);\n when(ContextCompat.getColor(view.getContext(), num)).thenReturn(num);\n\n reportSettingsPresenter.emailtoSet(button, editText);\n\n\n verify(editText, Mockito.times(1)).setClickable(true);\n verify(editText, Mockito.times(1)).setEnabled(true);\n verify(editText, Mockito.times(1)).setTextColor(num);\n\n verify(button, Mockito.times(1)).setOnClickListener(any(View.OnClickListener.class));\n\n\n verify(databaseInitializer,Mockito.times(1));\n DatabaseInitializer.setEmail(appDatabase, string);\n }",
"@Override\n\tpublic void createDigestEmail() {\n\n\t}",
"@When(\"^I fill in valid Email address and click on create an account$\")\n\tpublic void I_fill_in_valid_Email_address_and_click_on_create_an_account() throws Throwable {\n\n\t\trandomNumber r = new randomNumber();\n\t\tString emailString = \"Example\" + r.gen();\n\t\tString emailAddress = emailString + \"@gmail.com\";\n\t\tdriver.findElement(By.id(\"email_create\")).sendKeys(emailAddress);\n\t\tdriver.findElement(By.id(\"SubmitCreate\")).submit();\n\t}",
"public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }",
"@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}",
"public void sendMail(RegistrationData d) {}",
"@Test\n public void mailNoEhloTest(TestContext testContext) {\n this.testContext=testContext;\n smtpServer.setDialogue(\"220 example.com\",\n \"HELO\",\n \"250 example.com\",\n \"MAIL FROM\",\n \"250 2.1.0 Ok\",\n \"RCPT TO\",\n \"250 2.1.5 Ok\",\n \"DATA\",\n \"354 End data with <CR><LF>.<CR><LF>\",\n \"250 2.0.0 Ok: queued as ABCDDEF0123456789\",\n \"QUIT\",\n \"221 2.0.0 Bye\");\n smtpServer.setCloseImmediately(false);\n\n MailConfig mailConfig = defaultConfig();\n mailConfig.setDisableEsmtp(true);\n testSuccess(MailClient.create(vertx, mailConfig), exampleMessage());\n }",
"public void createUserEmail(UserBean useBean) throws Exception;",
"@Then(\"^verify mailSent on the SentMails Page$\")\n\n\tpublic void verify_mailSent_on_the_SentMails_Page() throws Throwable {\n\t\tLog.info(\"Verifying send mail details are visible successfully on the Sent mail page\");\n\t\tsentMailsPage.mailSentVisible();\n\t\t\n\t\tsentMailsPage.mailSentDetails();\n\t}",
"public static WebElement txtbx_PAEnhancedEntrance_EnterBusinessEmail() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.id(\"paLiteTxt\"));\r\n \t\tAdd_Log.info(\"User is enter text for Business Email field.\");\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"PA Enhanced Entrance Business Email field is NOT found on the page.\");\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }"
]
| [
"0.6178936",
"0.6178936",
"0.6173322",
"0.6170953",
"0.61015403",
"0.60487306",
"0.5944949",
"0.59228444",
"0.5884945",
"0.58842343",
"0.5883561",
"0.5844808",
"0.582991",
"0.5796565",
"0.5770173",
"0.573936",
"0.56891406",
"0.5683232",
"0.56269187",
"0.56186503",
"0.5588075",
"0.55863404",
"0.5583305",
"0.558017",
"0.5578328",
"0.5569705",
"0.55586106",
"0.5557873",
"0.555032",
"0.5546742",
"0.55288136",
"0.5509049",
"0.5450259",
"0.5447942",
"0.5445849",
"0.54453915",
"0.5407666",
"0.53808844",
"0.5366988",
"0.5351456",
"0.5339934",
"0.5338959",
"0.53297347",
"0.5325304",
"0.53130025",
"0.5312423",
"0.5297149",
"0.52866775",
"0.5280193",
"0.5279914",
"0.52778006",
"0.5269825",
"0.52578187",
"0.5256371",
"0.52404433",
"0.52385205",
"0.52249724",
"0.52218574",
"0.52217185",
"0.5202928",
"0.51951605",
"0.5193419",
"0.5192882",
"0.51904947",
"0.5189357",
"0.51691103",
"0.5167181",
"0.51580024",
"0.5157208",
"0.5150929",
"0.5143966",
"0.51417327",
"0.51346046",
"0.5130666",
"0.51216185",
"0.51215583",
"0.51201797",
"0.51182187",
"0.5116318",
"0.51146156",
"0.511452",
"0.51087976",
"0.50985855",
"0.50957155",
"0.5083189",
"0.5082961",
"0.5081101",
"0.50775474",
"0.50758654",
"0.50632316",
"0.50604916",
"0.5054308",
"0.5048508",
"0.5042776",
"0.5035901",
"0.5035801",
"0.502058",
"0.50193775",
"0.5018637",
"0.5013862"
]
| 0.6298778 | 0 |
Handles experiment results test step entity. | default void visit(ExperimentResultsTestStepEntity experimentResultsTestStepEntity) {
throw new UnsupportedOperationException(
String.format("Unsupported experiment results step for request [%s]",
experimentResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@AfterMethod\n\tpublic void getResult(ITestResult result) throws IOException {\n\t\tString cellContent = this.getClass().getSimpleName();\n\t\tSystem.out.println(cellContent);\n\t\t// Searches for the Class name in Excel and return step name\n\t\tString StepName = ts.GetStepName(fileName, cellContent, i, 7);\n\t\t// Searches for the Class name in Excel and returns description of step\n\t\tString StepDescrip = ts.GetStepName(fileName, cellContent, i, 8);\n\t\t// Here we merge the step and description to be put in word\n\t\tString merged = StepName + \": \" + StepDescrip;\n\t\tSystem.out.println(merged);\n\t\ti++;\n\n\t\tSystem.out.println(\"In After method\");\n\t\tSystem.out.println(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\n\t\t// First get the Step Name and Description name in here\n\n\t\t// System.out.println(this.getClass().getSimpleName());\n\t\t// test=\n\t\t// extent.createTest(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\n\t\t\tSystem.out.println(\"Test failed entering in Report\");\n\t\t\ttest.log(Status.FAIL, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test case FAILED due to below issues:\",\n\t\t\t\t\tExtentColor.RED));\n\t\t\tString issueDescription = result.getThrowable().getMessage();\n\t\t\tissueDescription.concat(ExceptionUtils.getFullStackTrace(result.getThrowable()));\n\t\t\ttest.fail(issueDescription);\n\t\t} else if (result.getStatus() == ITestResult.SUCCESS) {\n\t\t\tSystem.out.println(\"Test passed entering in report\");\n\t\t\ttest.log(Status.PASS, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case PASSED\", ExtentColor.GREEN));\n\t\t} else {\n\t\t\ttest.log(Status.SKIP,\n\t\t\t\t\tMarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case SKIPPED\", ExtentColor.ORANGE));\n\t\t\ttest.skip(result.getThrowable());\n\t\t}\n\t\tSystem.out.println(\"At end of after method\");\n\t}",
"@AfterMethod\n\tpublic void getResult(ITestResult result) {\n\t\tSystem.out.println(\"TestCaseStatus == \"+result.getStatus());\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\n\t\t\t//extent.log(LogStatus.FAIL, \"Failed Test Case \" + result.getThrowable());\n\t\t\textent.log(LogStatus.FAIL, result.getName() + \" Test case is filed\");\n\t\t} if (result.getStatus() == ITestResult.SUCCESS) {\n\t\t\textent.log(LogStatus.PASS, \"Test case is Pass \" + result.getName());\n\t\t} if (result.getStatus() == ITestResult.SKIP) {\n\t\t\textent.log(LogStatus.SKIP, \"Test case is Skipped \" + result.getName());\n\t\t}\n\t}",
"public abstract void performStep();",
"@Override\r\n public void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext,\r\n SecurityTestStepResult result) {\n\r\n }",
"public void ExperimentResults() {\n\t\t/*\n\t\t * Creating a ScreenPresenter. To create other ResultsPresenter, the\n\t\t * better idea is to create a Factory.\n\t\t */\n\t\tResultPresenter presenter = new ScreenPresenter();\n\t\tpresenter.setText(evaluator.evalResults.resultsInText());\n\n\t}",
"protected void runAfterStep() {}",
"protected abstract R runStep();",
"default void visit(EvaluationResultsTestStepEntity evaluationResultsTestStepEntity) {\n throw new UnsupportedOperationException(\n String.format(\"Unsupported evaluation results step for request [%s]\",\n evaluationResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())\n );\n }",
"@Override\n\tpublic void onFinish(ITestContext result) {\n\t\t\n\t}",
"@Override\r\n\tprotected void doExecute(StepExecution stepExecution) throws Exception {\n\t\t\r\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test sucess\"+\" \"+result.getName());\t\r\n\t}",
"@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}",
"public void onTestSuccess(ITestResult result) {\r\n\t\ttry {\r\n\t\t\t//used to write result details in html\r\n\t\t\tgenerateTestExecution(result);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t\tlogger.info(\"Test case Done\");\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t\t\n\t}",
"public static void enterFixtureOutcome()\n\t{\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult tr) {\n\t\tsuper.onTestSuccess(tr);\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }",
"@Override\n public void onTestSuccess(ITestResult result) {\n\n }",
"@Override\n public void result(Result result) {\n backgroundSteps = false;\n\n setResultAttributes(result, latestStepResult);\n }",
"public void onTestSuccess(ITestResult result) {\n \tSystem.out.println(\"The test case is passed :\"+result.getName());\n }",
"public void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"void onTestSuccess(ITestResult result);",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\n\t}",
"void completed(TestResult tr);",
"@Override\r\n\tpublic void onFinish(ITestContext Result) {\n\t\tSystem.out.println(\"onFinish :\"+ Result.getName());\r\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"*********Test onTestSuccess :\"+result.getName());\r\n\t\t\r\n\t}",
"@AfterTest\n\tpublic void reportTestResult() {\n\t\textent.endTest(test);\n\t\t\n\t\t/*LogStatus info =test.getRunStatus();\n\t\t\n\t\tif(info.toString().equalsIgnoreCase(\"PASS\"))\n\t\t\tstatus=1;\n\t\telse if(info.toString().equalsIgnoreCase(\"FAIL\"))\n\t\t\tstatus=2;\n\t\t\n\t\tif (status == 1)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"PASS\");\n\t\telse if (status == 2)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"FAIL\");\n\t\telse\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"SKIP\");*/\n\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\textentTest.get().pass(\"I successfully Pass: \" + result.getName());\n\t}",
"@Override\n public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException \n {\n AggregatedTestResultAction currentTestResults = run.getAction(AggregatedTestResultAction.class);\n\n //retrieve the test results \n List<AggregatedTestResultAction.ChildReport> currentResults = currentTestResults.getResult();\n\n listener.getLogger().println(\"Running Test Checker Plugin\");\n\n //listener.getLogger().println(\"Current Build :- \", currentTestResults.getDisplayName());\n //listener.getLogger().println(\"Previous Build :- \", currentTestResults.getDisplayName());\n\n\n //iterate through the result of each test\n for(int i = 0; i < currentResults.size(); i++)\n {\n\n\t //obtain the report of a test\t\n\t AggregatedTestResultAction.ChildReport child = currentResults.get(i);\n\n\t //retreive the test result\n\t TestResult currentTestResultChild = (TestResult)child.result;\n\n\t //get the passed tests \n\t ArrayList<TestResult> currRes = ((ArrayList<TestResult>)currentTestResultChild.getPassedTests());\n\n\t //iterate through each passed test\n\t for(int j = 0; j < currRes.size(); j++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currRes.get(j);\n\n\t //obtain the status of the test in previous build\n\t TestResult previousTestResChild = currRes.get(j).getPreviousResult();\n\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\t\n\t // Case 1: Both passed\n\t if (currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Passed) : \" + currentTestResChild.getDisplayName());\n\t }\n\t // Case 2: Previous failed, newly passed\n\t if (currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Passing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n\n\t //get the failed tests \n\t ArrayList<TestResult> currResF = ((ArrayList<TestResult>)currentTestResultChild.getFailedTests());\n\n\t //iterate through each failed test\n\t for(int k = 0; k < currResF.size(); k++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currResF.get(k);\n\n\t //obtain the status of the test in previous build\n\t\tTestResult previousTestResChild = currResF.get(k).getPreviousResult();\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\n\t // Case 3: Both failed\n\t if (!currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Failed) : \" + currentTestResChild.getDisplayName());\n\t } \n\t // Case 4: Previous passed, newly failed\n\t if (!currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Failing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n }\n }",
"public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}",
"public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}",
"public int step() {\n // PUT YOUR CODE HERE\n }",
"@AfterMethod\r\n\tpublic void getResult(ITestResult result) {\r\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\r\n\r\n\t\t\ttest.log(LogStatus.FAIL, test.addScreenCapture(errorpath));\r\n\t\t\ttest.log(LogStatus.FAIL, result.getThrowable());\r\n\t\t}\r\n\t\trep.endTest(test);\r\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult Result) {\n\t\tSystem.out.println(\"onTestSuccess :\"+ Result.getName());\r\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t\tSystem.out.println(\"All test casee passed and i m the listener class\");\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"********** \tTest Successfull : \"+result.getName());\n\t\t\n\t\t\n\t}",
"public void setStepResultForStepIdentifier(String identifier, StepResult stepResult) {\n results.put(identifier, stepResult);\n }",
"@Override\n\tpublic void step() {\n\t}",
"@Override\n\tpublic void step() {\n\t}",
"@Override\n\t\tpublic void onFinish(ITestContext context) {\n\t\t\tSystem.out.println((\"Extent Reports Version 3 Test Suite is ending!\"));\n\t extent.flush();\n\t\t\t\n\t\t}",
"@Override\n\tpublic void step() {\n\t\t\n\t}",
"@Override\n\tpublic void step() {\n\t\t\n\t}",
"@Override\n public void onFinish(ITestContext context) {\n\n }",
"@Override\n public void onFinish(ITestContext context) {\n\n }",
"@Test\n\tvoid testHandleStep() throws Exception {\n\n\t\tclass StubStep extends StepSupport {\n\n\t\t\tstatic final String value = \"message for next steps\";\n\n\t\t\tstatic final String key = \"StubStep\";\n\n\t\t\t{\n\t\t\t\tsetName(\"StubStep\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void execute(StepExecution stepExecution) throws JobInterruptedException {\n\t\t\t\tstepExecution.getJobExecution().getExecutionContext().put(key, value);\n\t\t\t}\n\n\t\t}\n\n\t\tjob.setJobRepository(this.jobRepository);\n\t\tjob.setRestartable(true);\n\n\t\tJobExecution execution = this.jobRepository.createJobExecution(\"testHandleStepJob\", new JobParameters());\n\t\tjob.handleStep(new StubStep(), execution);\n\n\t\tassertEquals(StubStep.value, execution.getExecutionContext().get(StubStep.key));\n\n\t\t// simulate restart and check the job execution context's content survives\n\t\texecution.setEndTime(LocalDateTime.now());\n\t\texecution.setStatus(BatchStatus.FAILED);\n\t\tthis.jobRepository.update(execution);\n\n\t\tJobExecution restarted = this.jobRepository.createJobExecution(\"testHandleStepJob\", new JobParameters());\n\t\tassertEquals(StubStep.value, restarted.getExecutionContext().get(StubStep.key));\n\t}",
"public static void endStep() {\n\t\tTestNotify.log(GenLogTC() + \"has been tested.\");\n\t}",
"public void step()\n {\n status = stepInternal();\n }",
"@Override\r\n\tpublic void onTestSuccess(ITestResult tr) {\n\t\tLog.info(tr.getName() + \"---Test method passed---\\n\");\r\n \ttry {\r\n\t\t\ttakeScreenShot(tr);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onFinish(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onFinish(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onFinish(ITestContext arg0) {\n\t\t\n\t}",
"@Override\npublic void onTestSuccess(ITestResult result) {\n\t\n}",
"@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}",
"public interface TestStepVisitor {\n\n /**\n * Handles email test step entity.\n *\n * @param emailTestStepEntity - email test step entity\n */\n default void visit(EmailTestStepEntity emailTestStepEntity) {\n throw new UnsupportedOperationException(\n String.format(\"Unsupported email step for request [%s]\",\n emailTestStepEntity.getEvaluationRequestEntity().getRequestId())\n );\n }\n\n /**\n * Handles experiment results test step entity.\n *\n * @param experimentResultsTestStepEntity - experiment results test step entity\n */\n default void visit(ExperimentResultsTestStepEntity experimentResultsTestStepEntity) {\n throw new UnsupportedOperationException(\n String.format(\"Unsupported experiment results step for request [%s]\",\n experimentResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())\n );\n }\n\n /**\n * Handles evaluation results test step entity.\n *\n * @param evaluationResultsTestStepEntity - evaluation results test step entity\n */\n default void visit(EvaluationResultsTestStepEntity evaluationResultsTestStepEntity) {\n throw new UnsupportedOperationException(\n String.format(\"Unsupported evaluation results step for request [%s]\",\n evaluationResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())\n );\n }\n}",
"boolean experimentCompleted();",
"public void onTestStart(ITestResult result) {\n\t test = extentReport.createTest(result.getName());\n\t }",
"public void run(TestResult result) {\n result.run(this);\n }",
"@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t\t\r\n\t}",
"public void onTestSuccess(ITestResult tr) {\n\t\ttest= extent.createTest(tr.getName());//create new entry in the report\n\t\ttest.log(Status.PASS, MarkupHelper.createLabel(tr.getName(), ExtentColor.GREEN));//send the passed info to the report with green color highlighted\n\t}",
"@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t}",
"@Override\npublic void onFinish(ITestContext context) {\n\t\n}",
"@SuppressWarnings(\"unused\")\n public void handleTestEvent(int result) {\n ApplicationManager.getApplication().invokeLater(() -> {\n checkInProgress = false;\n setStatusAndShowResults(result);\n com.intellij.openapi.progress.Task.Backgroundable task = getAfterCheckTask(result);\n ProgressManager.getInstance().run(task);\n });\n }",
"public void onFinish(ITestContext context) {\n\t\tSystem.out.println(context.getName()+\"********** All Tests Finish.............This is result.getName\");\r\n\t\t\r\n\t}",
"@Override\n public void onTestSuccess(ITestResult tr) {\n StatusPrinter.printTestSuccess(tr);\n }",
"@Override\n\tpublic void onFinish(ITestContext context) {\n\n\t}",
"public void onTestStart(ITestResult result) {\n\t\tlogger.info(\"Test Case Started\" + result.getName());\n\t}",
"public void onTestStart(ITestResult result) {\n\t\t\r\n\t}",
"public void onTestStart(ITestResult result) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"onTestSuccess -> Test Name: \"+result.getName());\r\n\t}",
"public void step();",
"public void step();",
"@Given(\"I am on the search results page\")\n\t\tpublic void i_am_on_the_search_results_page() {\n\t\t\t//I am on the results page\n\t\t\tdriver.get(ResultsUrl);\n\n\t\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tthread.get().log(Status.PASS, \"Pass\");\n\t}",
"public void timestepCompleted(Simulation simulation) {\n }",
"public void finish(TestCase testCase) {\n }",
"public void onFinish(ITestContext arg0) {\n\t\n}",
"@Override\n\tpublic void onTestStart(ITestResult result) {\n\t\ttest=extent.createTest(result.getMethod().getMethodName());\n\t}",
"public void recordStep(final TestStep step) {\n Preconditions.checkNotNull(step.getDescription(),\n \"The test step description was not defined.\");\n Preconditions.checkNotNull(step.getResult(), \"The test step result was not defined\");\n\n testSteps.add(step);\n }",
"@Override\n\tpublic void onFinish(ITestContext arg0) {\n\t\tSystem.out.println(\"when finished\");\n\t\t\n\t}",
"public void finish() { \n // Call finish(testCase) in user's driver\n finish(_testCase);\n \n // If result value has been computed then we're done\n if (_testCase.hasParam(Constants.RESULT_VALUE)) {\n return;\n }\n \n String resultUnit = getTestSuite().getParam(Constants.RESULT_UNIT);\n \n // Check to see if a different result unit was set\n if (resultUnit == null || resultUnit.equalsIgnoreCase(\"tps\")) {\n // Default - computed elsewhere\n }\n else if (resultUnit.equalsIgnoreCase(\"ms\")) {\n _testCase.setParam(Constants.RESULT_UNIT, \"ms\");\n \n _testCase.setDoubleParam(Constants.RESULT_VALUE, \n _testCase.getDoubleParam(Constants.ACTUAL_RUN_TIME) /\n _testCase.getDoubleParam(Constants.ACTUAL_RUN_ITERATIONS)); \n }\n else if (resultUnit.equalsIgnoreCase(\"mbps\")) {\n // Check if japex.inputFile was defined\n String inputFile = _testCase.getParam(Constants.INPUT_FILE); \n if (inputFile == null) {\n throw new RuntimeException(\"Unable to compute japex.resultValue \" + \n \" because japex.inputFile is not defined or refers to an illegal path.\");\n }\n \n // Length of input file\n long fileSize = new File(inputFile).length();\n \n // Calculate Mbps\n _testCase.setParam(Constants.RESULT_UNIT, \"Mbps\");\n _testCase.setDoubleParam(Constants.RESULT_VALUE,\n (fileSize * 0.000008d \n * _testCase.getLongParam(Constants.ACTUAL_RUN_ITERATIONS)) / // Mbits\n (_testCase.getLongParam(Constants.ACTUAL_RUN_TIME) / 1000.0)); // Seconds\n }\n else if (resultUnit.equalsIgnoreCase(\"mbs\")) {\n _testCase.setParam(Constants.RESULT_UNIT, \"MBs\");\n _testCase.setDoubleParam(Constants.RESULT_VALUE, \n (_memoryBean.getHeapMemoryUsage().getUsed() - _heapBytes) / \n (1024.0 * 1024.0)); // Megabytes used\n }\n else {\n throw new RuntimeException(\"Unknown value '\" + \n resultUnit + \"' for global param japex.resultUnit.\");\n }\n \n }",
"public void onTestFailure(ITestResult result) {\r\n\t\ttry {\r\n\t\t\t//used to write result details in html\r\n\t\t\tgenerateTestExecution(result);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t\t\r\n\t}",
"@LogMethod\r\n private void editResults()\r\n {\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n waitAndClickAndWait(Locator.linkWithText(\"view results\"));\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n assertEquals(\"No rows should be editable\", 0, DataRegionTable.updateLinkLocator().findElements(table.getComponentElement()).size());\r\n assertElementNotPresent(Locator.button(\"Delete\"));\r\n\r\n // Edit the design to make them editable\r\n ReactAssayDesignerPage assayDesignerPage = _assayHelper.clickEditAssayDesign(true);\r\n assayDesignerPage.setEditableResults(true);\r\n assayDesignerPage.clickFinish();\r\n\r\n // Try an edit\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n DataRegionTable dataTable = new DataRegionTable(\"Data\", getDriver());\r\n assertEquals(\"Incorrect number of results shown.\", 10, table.getDataRowCount());\r\n doAndWaitForPageToLoad(() -> dataTable.updateLink(dataTable.getRowIndex(\"Specimen ID\", \"AAA07XK5-05\")).click());\r\n setFormElement(Locator.name(\"quf_SpecimenID\"), \"EditedSpecimenID\");\r\n setFormElement(Locator.name(\"quf_VisitID\"), \"601.5\");\r\n setFormElement(Locator.name(\"quf_testAssayDataProp5\"), \"notAnumber\");\r\n clickButton(\"Submit\");\r\n assertTextPresent(\"Could not convert value: \" + \"notAnumber\");\r\n setFormElement(Locator.name(\"quf_testAssayDataProp5\"), \"514801\");\r\n setFormElement(Locator.name(\"quf_Flags\"), \"This Flag Has Been Edited\");\r\n clickButton(\"Submit\");\r\n assertTextPresent(\"EditedSpecimenID\", \"601.5\", \"514801\");\r\n assertElementPresent(Locator.xpath(\"//img[@src='/labkey/Experiment/flagDefault.gif'][@title='This Flag Has Been Edited']\"), 1);\r\n assertElementPresent(Locator.xpath(\"//img[@src='/labkey/Experiment/unflagDefault.gif'][@title='Flag for review']\"), 9);\r\n\r\n // Try a delete\r\n dataTable.checkCheckbox(table.getRowIndex(\"Specimen ID\", \"EditedSpecimenID\"));\r\n doAndWaitForPageToLoad(() ->\r\n {\r\n dataTable.clickHeaderButton(\"Delete\");\r\n assertAlert(\"Are you sure you want to delete the selected row?\");\r\n });\r\n\r\n // Verify that the edit was audited\r\n goToSchemaBrowser();\r\n viewQueryData(\"auditLog\", \"ExperimentAuditEvent\");\r\n assertTextPresent(\r\n \"Data row, id \",\r\n \", edited in \" + TEST_ASSAY + \".\",\r\n \"Specimen ID changed from 'AAA07XK5-05' to 'EditedSpecimenID'\",\r\n \"Visit ID changed from '601.0' to '601.5\",\r\n \"testAssayDataProp5 changed from blank to '514801'\",\r\n \"Deleted data row.\");\r\n }",
"public void onFinish(ITestContext arg0) {\n\n }",
"public void getResult(ITestResult result, String shotPath) throws IOException {\n if (result.getStatus() == ITestResult.FAILURE){\n test.log(Status.FAIL, result.getThrowable().getMessage());\n }\n\n }",
"public void run(TestResult result) {\n try {\n TestHarness testApp = setupHarness();\n if (printInfo)\n testApp.printInfo(System.out, testBranchs);\n else\n testApp.run(result);\n } catch (Exception e) {\n result.addError(this, e);\n }\n }",
"@Override\r\n\tpublic void onTestStart(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test start\"+\" \"+result.getName());\r\n\t}",
"void completedOutput(TestResult tr, Section section, String outputName);",
"public void run() {\n super.executeStep();\n }",
"public void setResults(Map<String, StepResult> newResults)\n {\n results = newResults;\n }",
"void onTestStart(ITestResult result);",
"@Test\n public void testGetExperiment() {\n ExperimentId experimentId = new ExperimentId();\n experimentId.setServerTimestamp(System.currentTimeMillis());\n experimentId.setId(1);\n\n // Create the entity\n ExperimentEntity entity = new ExperimentEntity();\n entity.setExperimentSpec(toJson(spec));\n entity.setId(experimentId.toString());\n entity.setUid(result.getUid());\n if (result.getCreatedTime() != null) {\n entity.setCreateTime(DateTime.parse(result.getCreatedTime()).toDate());\n } else {\n entity.setCreateTime(null);\n }\n if (result.getAcceptedTime() != null) {\n entity.setAcceptedTime(DateTime.parse(result.getAcceptedTime()).toDate());\n } else {\n entity.setAcceptedTime(null);\n }\n if (result.getRunningTime() != null) {\n entity.setRunningTime(DateTime.parse(result.getRunningTime()).toDate());\n } else {\n entity.setRunningTime(null);\n }\n if (result.getFinishedTime() != null) {\n entity.setFinishedTime(DateTime.parse(result.getFinishedTime()).toDate());\n } else {\n entity.setFinishedTime(null);\n }\n entity.setExperimentStatus(result.getStatus());\n\n // Construct expected result\n Experiment expectedExperiment = new Experiment();\n expectedExperiment.setSpec(spec);\n expectedExperiment.setExperimentId(experimentId);\n expectedExperiment.rebuild(result);\n\n\n // Stub service select\n // Pretend there is a entity in db\n when(mockService.select(any(String.class))).thenReturn(entity);\n\n // Stub mockSubmitter findExperiment\n when(mockSubmitter.findExperiment(any(ExperimentSpec.class))).thenReturn(result);\n\n // get experiment\n Experiment actualExperiment = experimentManager.getExperiment(experimentId.toString());\n\n verifyResult(expectedExperiment, actualExperiment);\n }",
"boolean stageAfterResultsImport(Object input) throws ValidationFailedException;"
]
| [
"0.6293114",
"0.60707295",
"0.59835273",
"0.59659374",
"0.5935806",
"0.5920818",
"0.5881578",
"0.5828004",
"0.5785156",
"0.5783868",
"0.5776184",
"0.57693905",
"0.5743804",
"0.5743524",
"0.5727093",
"0.57091933",
"0.56835103",
"0.5679928",
"0.56648374",
"0.56384605",
"0.56171894",
"0.56171894",
"0.5601675",
"0.5600659",
"0.5592231",
"0.55920434",
"0.5560043",
"0.55585223",
"0.5526018",
"0.5520759",
"0.5515516",
"0.551172",
"0.54939115",
"0.54892683",
"0.548847",
"0.54868436",
"0.54868436",
"0.54818094",
"0.5474416",
"0.5464462",
"0.5451468",
"0.5450633",
"0.5427476",
"0.54167205",
"0.5404399",
"0.5404399",
"0.53895146",
"0.53782237",
"0.53782237",
"0.5361353",
"0.5361353",
"0.53597754",
"0.53511554",
"0.53443795",
"0.53430915",
"0.5322548",
"0.5322548",
"0.53179526",
"0.53165627",
"0.531546",
"0.5313307",
"0.53007215",
"0.529232",
"0.52911884",
"0.5289713",
"0.5289713",
"0.52878183",
"0.5279957",
"0.5258716",
"0.52455163",
"0.52371556",
"0.5235876",
"0.5227717",
"0.5218889",
"0.52176654",
"0.52176654",
"0.5211853",
"0.5211076",
"0.5211076",
"0.52105933",
"0.5210182",
"0.52089614",
"0.519853",
"0.5184462",
"0.5184204",
"0.51839155",
"0.5182383",
"0.5180181",
"0.51641357",
"0.51634085",
"0.51578414",
"0.51567584",
"0.5152443",
"0.51435333",
"0.5127285",
"0.51248175",
"0.5120032",
"0.5113281",
"0.51131165",
"0.5110371"
]
| 0.6417266 | 0 |
Handles evaluation results test step entity. | default void visit(EvaluationResultsTestStepEntity evaluationResultsTestStepEntity) {
throw new UnsupportedOperationException(
String.format("Unsupported evaluation results step for request [%s]",
evaluationResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}",
"protected abstract Value evaluate();",
"Result evaluate();",
"float getEvaluationResult();",
"@Override\n void execute(RolapEvaluator evaluator) {\n }",
"@Override\n public void doEvaluation(Individual sample, boolean isTrain) {\n mainEvaluator.doEvaluation(sample, isTrain);\n }",
"public void evaluate() throws Throwable {\n }",
"public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }",
"public void evaluate(Handler<AsyncResult<Double>> resultHandler) { \n delegate.evaluate(resultHandler);\n }",
"public boolean evaluate() {\r\n\t\t\tif (this.isKnownValue()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// handle the case when this.getValue() is null\r\n\t\t\tif (this.getValue() == null) {\r\n\t\t\t\t// if the value is null, then we just need to see if expected evaluation is also null\r\n\t\t\t\treturn this.getCurrentEvaluation() == null;\r\n\t\t\t}\r\n\t\t\t// if entities have the same name, they are equals.\r\n\t\t\tif (this.getCurrentEvaluation().getName().equalsIgnoreCase(this.getValue().getName())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"abstract public Vertex getEvaluationResult();",
"protected SimulatorValue giveResult() {\n\tthis.evalExpression();\n\treturn value;\n }",
"@Override\r\n public Evaluation getEvaluation ()\r\n {\r\n return evaluation;\r\n }",
"@Override\n\tpublic void execute() {\n\t\tDMNModel model = getDmnRuntime().getModels().get(0); // assuming there is only one model in the KieBase\n\t\t\n\t\t// setting input data\n\t\tDMNContext dmnContext = createDmnContext(\n\t\t\t\tImmutablePair.of(\"customerData\", new CustomerData(\"Silver\", new BigDecimal(15)))\n\t\t);\n\t\t\n\t\t// executing decision logic\n\t\tDMNResult topLevelResult = getDmnRuntime().evaluateAll(model, dmnContext);\n\t\t\n\t\t// retrieving execution results\n\t\tSystem.out.println(\"--- results of evaluating all ---\");\n\t\ttopLevelResult.getDecisionResults().forEach(this::printAsJson);\n\t}",
"public void evaluate() {\r\n Statistics.evaluate(this);\r\n }",
"protected abstract R runStep();",
"@Override\n\tpublic final void execute (Map<Key, Object> context) {\n\t\tboolean outcome = makeDecision (context);\n\n\t\tif (outcome) {\n\t\t\tpositiveOutcomeStep.execute (context);\n\t\t} else {\n\t\t\tnegativeOutcomeStep.execute (context);\n\t\t}\n\t}",
"public void ExperimentResults() {\n\t\t/*\n\t\t * Creating a ScreenPresenter. To create other ResultsPresenter, the\n\t\t * better idea is to create a Factory.\n\t\t */\n\t\tResultPresenter presenter = new ScreenPresenter();\n\t\tpresenter.setText(evaluator.evalResults.resultsInText());\n\n\t}",
"public abstract double evaluer(SolutionPartielle s);",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"public EvaluationStep() {\n ApplicationSession.setEvaluationStepInstance(this);\n }",
"@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}",
"public abstract double evaluateSolution(Solution solution) throws JMException, SimulationException;",
"protected abstract void evaluate(Vector target, List<Vector> predictions);",
"public void executeevaluate() {\n \t\tString board = conf.getProperty(\"gamesman.board\");\n \t\tif (board == null)\n \t\t\tUtil.fatalError(\"Please specify a hash to evaluate\");\n \t\tBigInteger val = new BigInteger(board);\n \t\tSystem.out.println(gm.primitiveValue(gm.hashToState(val)));\n \t}",
"@Override\r\n\tprotected void doExecute(StepExecution stepExecution) throws Exception {\n\t\t\r\n\t}",
"@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}",
"public abstract void performStep();",
"void onResultCalculated(ResultCalculatedEvent event);",
"@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n final Evaluation eval = new Evaluation(2);\n eval.eval(0,1);\n eval.eval(1,1);\n\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(0,1);\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(1,1);\n eval.eval(1,1);\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to create instance!\", e);\n }\n\n\n }",
"@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}",
"private static double recordEvaluation(Board board, double evaluation) {\n\t\tTRANSPOSITION_TABLE.put(board.getHashCode(), evaluation);\n\t\treturn evaluation;\n\t}",
"public double evaluate(Context context);",
"public abstract double evaluateFitness();",
"public EvaluationResultIdentifier getEvaluationResultIdentifier() {\n return evaluationResultIdentifier;\n }",
"@Override\r\n\tpublic void execute() {\n\t\tif (this.content != null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.e2eValidationClient.execute(this.content);\r\n\t\t\t\tthis.result = this.e2eValidationClient.getResponse();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Nothing to execute!\");\r\n\t\t}\r\n\r\n\t}",
"public abstract void interpret(EvaluationContext context);",
"public void execute() {\n switch (this.opCode) {\n case 'a':\n this.result = this.leftVal + this.rightVal;\n break;\n case 's':\n this.result = this.leftVal - this.rightVal;\n break;\n case 'm':\n this.result = this.leftVal * this.rightVal;\n break;\n case 'd':\n this.result = this.rightVal != 0 ? this.leftVal / this.rightVal : 0.0d;\n break;\n default:\n System.out.println(\"Invalid opCode: \" + this.opCode);\n this.result = 0.0d;\n break;\n }\n numOfCalculations++;\n sumOfResults += result;\n }",
"public EvaluationResultsTestStepHandler(ErsService ersService,\n EvaluationResultsMatcherService evaluationResultsMatcherService,\n TestStepService testStepService) {\n this.ersService = ersService;\n this.evaluationResultsMatcherService = evaluationResultsMatcherService;\n this.testStepService = testStepService;\n }",
"public boolean evaluate();",
"@Override\r\n\tpublic void execute(DelegateExecution execution) throws Exception {\n\t\tLOGGER.info(\" ... EquifaxServiceTask invoked \");\r\n\t\texecution.setVariable(\"equifaxScore\", 640);\r\n\t\tLOGGER.info(\" ... EquifaxServiceTask Score Generated\");\r\n\r\n\t}",
"default void visit(ExperimentResultsTestStepEntity experimentResultsTestStepEntity) {\n throw new UnsupportedOperationException(\n String.format(\"Unsupported experiment results step for request [%s]\",\n experimentResultsTestStepEntity.getEvaluationRequestEntity().getRequestId())\n );\n }",
"public Integer getEvaluate() {\n return evaluate;\n }",
"public void finish() { \n // Call finish(testCase) in user's driver\n finish(_testCase);\n \n // If result value has been computed then we're done\n if (_testCase.hasParam(Constants.RESULT_VALUE)) {\n return;\n }\n \n String resultUnit = getTestSuite().getParam(Constants.RESULT_UNIT);\n \n // Check to see if a different result unit was set\n if (resultUnit == null || resultUnit.equalsIgnoreCase(\"tps\")) {\n // Default - computed elsewhere\n }\n else if (resultUnit.equalsIgnoreCase(\"ms\")) {\n _testCase.setParam(Constants.RESULT_UNIT, \"ms\");\n \n _testCase.setDoubleParam(Constants.RESULT_VALUE, \n _testCase.getDoubleParam(Constants.ACTUAL_RUN_TIME) /\n _testCase.getDoubleParam(Constants.ACTUAL_RUN_ITERATIONS)); \n }\n else if (resultUnit.equalsIgnoreCase(\"mbps\")) {\n // Check if japex.inputFile was defined\n String inputFile = _testCase.getParam(Constants.INPUT_FILE); \n if (inputFile == null) {\n throw new RuntimeException(\"Unable to compute japex.resultValue \" + \n \" because japex.inputFile is not defined or refers to an illegal path.\");\n }\n \n // Length of input file\n long fileSize = new File(inputFile).length();\n \n // Calculate Mbps\n _testCase.setParam(Constants.RESULT_UNIT, \"Mbps\");\n _testCase.setDoubleParam(Constants.RESULT_VALUE,\n (fileSize * 0.000008d \n * _testCase.getLongParam(Constants.ACTUAL_RUN_ITERATIONS)) / // Mbits\n (_testCase.getLongParam(Constants.ACTUAL_RUN_TIME) / 1000.0)); // Seconds\n }\n else if (resultUnit.equalsIgnoreCase(\"mbs\")) {\n _testCase.setParam(Constants.RESULT_UNIT, \"MBs\");\n _testCase.setDoubleParam(Constants.RESULT_VALUE, \n (_memoryBean.getHeapMemoryUsage().getUsed() - _heapBytes) / \n (1024.0 * 1024.0)); // Megabytes used\n }\n else {\n throw new RuntimeException(\"Unknown value '\" + \n resultUnit + \"' for global param japex.resultUnit.\");\n }\n \n }",
"void ComputeResult(Object result);",
"@Override\n public void step(final EvaluationContext theContext)\n {\n // pop the top 2 values and add them\n // and push the result onto the value stack\n //\n final Double theSecondOperand = theContext.popValue();\n final Double theFirstOperand = theContext.popValue();\n theContext.pushValue(theFirstOperand / theSecondOperand);\n }",
"public abstract double evaluate(double value);",
"@Override\n\tpublic double execute() {\n\t\tList<TurtleModel> prevousTurtlesTold = myContext.getCanvasModel().getTurtlesTold();\n\n\t\t// execute\n\t\tMap<Integer, TurtleModel> myTurtleMap = myContext.getCanvasModel().getTurtleMap();\n\t\tdouble valueToReturn = 0;\n\n\t\tfor (TurtleModel turtle : myTurtleMap.values()) {\n\t\t\tmyContext.getCanvasModel().tellTurtles(turtle);\n\t\t\tmyContext.getCanvasModel().setActiveTurtleID(turtle.getID());\n\t\t\tif (myCondition.toValue() == 1) {\n\t\t\t\tvalueToReturn = myListNode.toValue();\n\t\t\t}\n\t\t}\n\n\t\t// set turtlesTold back\n\t\tmyContext.getCanvasModel().tellTurtles(prevousTurtlesTold);\n\t\treturn valueToReturn;\n\t}",
"public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }",
"public void evaluate(ContainerValue cont, Value value, List<Value> result);",
"public void evaluate(String sampleFile, String validationFile, String featureDefFile, double percentTrain) {\n/* 761 */ List<RankList> trainingData = new ArrayList<>();\n/* 762 */ List<RankList> testData = new ArrayList<>();\n/* 763 */ int[] features = prepareSplit(sampleFile, featureDefFile, percentTrain, normalize, trainingData, testData);\n/* 764 */ List<RankList> validation = null;\n/* */ \n/* */ \n/* 767 */ if (!validationFile.isEmpty()) {\n/* */ \n/* 769 */ validation = readInput(validationFile);\n/* 770 */ if (normalize) {\n/* 771 */ normalize(validation, features);\n/* */ }\n/* */ } \n/* 774 */ RankerTrainer trainer = new RankerTrainer();\n/* 775 */ Ranker ranker = trainer.train(this.type, trainingData, validation, features, this.trainScorer);\n/* */ \n/* 777 */ double rankScore = evaluate(ranker, testData);\n/* */ \n/* 779 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* 780 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 782 */ System.out.println(\"\");\n/* 783 */ ranker.save(modelFile);\n/* 784 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }",
"public abstract Object evaluate( Feature feature ) throws FilterEvaluationException;",
"@Override\n\tpublic Integer evaluate() {\n\t\treturn Integer.parseInt(this.getValue());\n\t}",
"protected void storeAndWriteEvalResults(Evaluation aggregated,\n Instances headerNoSummary, int totalFolds, boolean testSetPresent,\n String seed, String outputPath) throws IOException {\n\n StringBuilder buff = new StringBuilder();\n String info = \"Summary - \";\n if (testSetPresent) {\n info += \"separate test set\";\n } else if (totalFolds == 1) {\n info += \"test on training\";\n } else {\n info +=\n totalFolds + \" fold cross-validation (seed=\" + seed + \"): \"\n + m_classifier.getClass().getCanonicalName() + \" \"\n + Utils.joinOptions(m_classifier.getOptions())\n + \"\\n(note: relative measures might be slightly \"\n + \"pessimistic due to the mean/mode of the target being computed on \"\n + \"all the data rather than on training folds)\";\n }\n info += \":\\n\";\n if (aggregated.predictions() != null) {\n info +=\n \"Number of predictions retained for computing AUC/AUPRC: \"\n + aggregated.predictions().size() + \"\\n\";\n }\n buff.append(info).append(\"\\n\\n\");\n buff.append(aggregated.toSummaryString()).append(\"\\n\");\n if (headerNoSummary.classAttribute().isNominal()) {\n try {\n buff.append(aggregated.toClassDetailsString()).append(\"\\n\");\n buff.append(aggregated.toMatrixString()).append(\"\\n\");\n } catch (Exception ex) {\n logMessage(ex);\n throw new IOException(ex);\n }\n }\n\n String evalOutputPath =\n outputPath\n + (outputPath.toLowerCase().contains(\"://\") ? \"/\" : File.separator)\n + \"evaluation.txt\";\n m_textEvalResults = buff.toString();\n PrintWriter writer = null;\n try {\n writer = openTextFileForWrite(evalOutputPath);\n writer.println(m_textEvalResults);\n } finally {\n if (writer != null) {\n writer.flush();\n writer.close();\n writer = null;\n }\n }\n\n OutputStream stream = null;\n try {\n Instances asInstances =\n WekaClassifierEvaluationReduceTask\n .evaluationResultsToInstances(aggregated);\n m_evalResults = asInstances;\n\n String arffOutputPath =\n outputPath\n + (outputPath.toLowerCase().contains(\"://\") ? \"/\" : File.separator)\n + \"evaluation.arff\";\n writer = openTextFileForWrite(arffOutputPath);\n writer.println(asInstances.toString());\n\n String csvOutputPath =\n outputPath\n + (outputPath.toLowerCase().contains(\"://\") ? \"/\" : File.separator)\n + \"evaluation.csv\";\n stream = openFileForWrite(csvOutputPath);\n CSVSaver saver = new CSVSaver();\n saver.setRetrieval(Saver.BATCH);\n saver.setInstances(asInstances);\n saver.setDestination(stream);\n saver.writeBatch();\n } catch (Exception ex) {\n logMessage(ex);\n throw new IOException(ex);\n } finally {\n if (writer != null) {\n writer.flush();\n writer.close();\n }\n if (stream != null) {\n stream.flush();\n stream.close();\n }\n }\n }",
"@Override\n public void setResult(Object result) throws EngineException {\n \n }",
"@Override\n public double evaluate() throws Exception {\n return Math.log(getEx2().evaluate()) / Math.log(getEx2().evaluate());\n }",
"protected abstract int evaluate(GameState state, String playername);",
"@Override\n public void verifyResult() {\n assertThat(calculator.getResult(), is(4));\n }",
"public abstract double evaluate(Point p);",
"public void run(TestResult result) {\n result.run(this);\n }",
"private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }",
"@Transactional\n public GetEvaluationResultsResponse getEvaluationResultsResponse(GetEvaluationResultsRequest request) {\n log.info(\"Starting to get evaluation results for request id [{}]\", request.getRequestId());\n ResponseStatus responseStatus;\n EvaluationResultsInfo evaluationResultsInfo =\n evaluationResultsInfoRepository.findByRequestId(request.getRequestId());\n if (evaluationResultsInfo == null) {\n log.info(\"Evaluation results not found for request id [{}]\", request.getRequestId());\n responseStatus = ResponseStatus.RESULTS_NOT_FOUND;\n } else {\n GetEvaluationResultsResponse response = evaluationResultsMapper.map(evaluationResultsInfo);\n response.setStatus(ResponseStatus.SUCCESS);\n log.info(\"Received evaluation results for request id [{}]\", request.getRequestId());\n return response;\n }\n return buildEvaluationResultsResponse(request.getRequestId(), responseStatus);\n }",
"private void getResults(GetResultRequestEvent e){\n\t\ttable.generateTable(tf.getItemIDList(),\n\t\t\t\te.getBuySystem(), e.getBuyType(),\n\t\t\t\te.getSellSystem(), e.getSellType(),\n\t\t\t\te.getMinimumMargin());\n\t}",
"public interface ResultProcessor {\n void handleResults(Run results);\n}",
"public interface Evaluator\n{\n /**\n * Return true if the given object is valid as an expression to\n * the evaluator. If an object is a valid expression, then the\n * evaluator is, in general, able to <code>eval()</code> it into\n * a result (or at least reasonably attempt to do so).\n *\n * @param value the value to check\n * @return true if it is valid as an expression, false if not\n */\n public boolean isExpression (Object value);\n\n /**\n * Return true if the given object is a possible result of evaluation.\n * If this returns true, then it is conceivable that the given object\n * was the result of a call to <code>eval()</code> on this evaluator.\n *\n * @param value the value to check\n * @return true if it is a possible result, false if not\n */\n public boolean isResult (Object value);\n\n /**\n * Evaluate the given value as an expression, yielding some result\n * value.\n *\n * @param expression the thing to evaluate\n * @return the result of evaluation\n */\n public Object eval (Object expression);\n}",
"private void testExpression(ASTExpression exp, ASTTerm expectedResult) {\n System.out.print(\"eval[\" + exp + \"] = \");\n ASTTerm result = null;\n try {\n result = interpreter.evaluate(exp);\n } catch (Exception e) {\n fail(e.getMessage());\n }\n System.out.println(result);\n\n assertEquals(expectedResult, result);\n }",
"EntryPointResult evaluate(Object data, String entryPointName, EvaluationConfig evaluationConfig);",
"public void evaluate()\r\n {\r\n\tdouble max = ff.evaluate(chromos.get(0),generation());\r\n\tdouble min = max;\r\n\tdouble sum = 0;\r\n\tint max_i = 0;\r\n\tint min_i = 0;\r\n\r\n\tdouble temp = 0;\r\n\r\n\tfor(int i = 0; i < chromos.size(); i++)\r\n\t {\r\n\t\ttemp = ff.evaluate(chromos.get(i),generation());\r\n\t\tif(temp > max)\r\n\t\t {\r\n\t\t\tmax = temp;\r\n\t\t\tmax_i = i;\r\n\t\t }\r\n\r\n\t\tif(temp < min)\r\n\t\t {\r\n\t\t\tmin = temp;\r\n\t\t\tmin_i = i;\r\n\t\t }\r\n\t\tsum += temp;\r\n\t }\r\n\r\n\tbestFitness = max;\r\n\taverageFitness = sum/chromos.size();\r\n\tworstFitness = min;\r\n\tbestChromoIndex = max_i;;\r\n\tworstChromoIndex = min_i;\r\n\tbestChromo = chromos.get(max_i);\r\n\tworstChromo = chromos.get(min_i);\r\n\t\r\n\tevaluated = true;\r\n }",
"public void setResult() {\n }",
"@Override\n public double evaluate() {\n setState(State.START);\n while (true) {\n switch(getState()) {\n case START:\n start();\n break;\n case NUMBER:\n number();\n break;\n case OPERATOR:\n operator();\n break;\n case LEFT_PAREN:\n leftParen();\n break;\n case RIGHT_PAREN:\n rightParen();\n break;\n case END:\n end();\n return (Double)getStack().pop();\n default:\n throw new Error(\"Something is wrong in ParenthesisCalculator.evaluate\");\n }\n }\n }",
"public interface EvalHandler {\n\tString getExpression();\n\tvoid handleResult(EvalResult er);\n}",
"@Override\r\n\tpublic boolean results()\r\n\t{\r\n\t\treturn this.results(this.getRobot());\r\n\t}",
"public void testGetResult() {\n\t\tassertNull(this.part.getResult());\n\t\tthis.part.run();\n\t\tObject result = this.part.getResult();\n\t\tassertNotNull(result);\n\t\tassertTrue(result instanceof ITypeTableNavigator);\n\t\tITypeTableNavigator navigator = (ITypeTableNavigator) result;\n\t\tassertEquals(10, navigator.getNumberOfAllMatches());\n\t\tMatch match = navigator.getNextMatch();\n\t\tassertEquals(3, match.getX());\n\t\tassertEquals(3, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(2, match.getX());\n\t\tassertEquals(2, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(1, match.getX());\n\t\tassertEquals(1, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(5, match.getX());\n\t\tassertEquals(1, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(1, match.getX());\n\t\tassertEquals(5, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(5, match.getX());\n\t\tassertEquals(5, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(0, match.getX());\n\t\tassertEquals(0, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(4, match.getX());\n\t\tassertEquals(0, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(0, match.getX());\n\t\tassertEquals(4, match.getY());\n\n\t\tmatch = navigator.getNextMatch();\n\t\tassertEquals(4, match.getX());\n\t\tassertEquals(4, match.getY());\n\n\t\tassertNull(navigator.getNextMatch());\n\t}",
"int getEvaluations();",
"public double evaluate() throws Exception {\r\n // this expression compare from variable\r\n throw new Exception(\"this expression contains a variable\");\r\n }",
"public void evaluate(String trainFile, double percentTrain, String testFile, String featureDefFile) {\n/* 799 */ List<RankList> train = new ArrayList<>();\n/* 800 */ List<RankList> validation = new ArrayList<>();\n/* 801 */ int[] features = prepareSplit(trainFile, featureDefFile, percentTrain, normalize, train, validation);\n/* 802 */ List<RankList> test = null;\n/* */ \n/* */ \n/* 805 */ if (!testFile.isEmpty()) {\n/* */ \n/* 807 */ test = readInput(testFile);\n/* 808 */ if (normalize) {\n/* 809 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 812 */ RankerTrainer trainer = new RankerTrainer();\n/* 813 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 815 */ if (test != null) {\n/* */ \n/* 817 */ double rankScore = evaluate(ranker, test);\n/* 818 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 820 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 822 */ System.out.println(\"\");\n/* 823 */ ranker.save(modelFile);\n/* 824 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }",
"public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }",
"boolean stageAfterResultsImport(Object input) throws ValidationFailedException;",
"void completed(TestResult tr);",
"public String getEvaluate() {\r\n return evaluate;\r\n }",
"public Object evaluate(IVariableValueProvider variableValueProvider, ExpressionRegistry registry)\r\n\t{\r\n\t\treturn expressionPart.evaluate(variableValueProvider, registry);\r\n\t}",
"@Override\n public double execute() throws IllegalStateException {\n checkError();\n return getValue(X);\n }",
"private void retrieveResult() {\n if (result == null) {\n this.setResult(((DocumentBuilder)this.getHandler()).getResult());\n }\n }",
"protected abstract SoyValue compute();",
"public void evaluate(String trainFile, String validationFile, String testFile, String featureDefFile) {\n/* 710 */ List<RankList> train = readInput(trainFile);\n/* */ \n/* 712 */ List<RankList> validation = null;\n/* */ \n/* 714 */ if (!validationFile.isEmpty()) {\n/* 715 */ validation = readInput(validationFile);\n/* */ }\n/* 717 */ List<RankList> test = null;\n/* */ \n/* 719 */ if (!testFile.isEmpty()) {\n/* 720 */ test = readInput(testFile);\n/* */ }\n/* 722 */ int[] features = readFeature(featureDefFile);\n/* 723 */ if (features == null) {\n/* 724 */ features = FeatureManager.getFeatureFromSampleVector(train);\n/* */ }\n/* 726 */ if (normalize) {\n/* */ \n/* 728 */ normalize(train, features);\n/* 729 */ if (validation != null)\n/* 730 */ normalize(validation, features); \n/* 731 */ if (test != null) {\n/* 732 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 735 */ RankerTrainer trainer = new RankerTrainer();\n/* 736 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 738 */ if (test != null) {\n/* */ \n/* 740 */ double rankScore = evaluate(ranker, test);\n/* 741 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 743 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 745 */ System.out.println(\"\");\n/* 746 */ ranker.save(modelFile);\n/* 747 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }",
"ResultSummary getActualResultSummary();",
"public interface Evaluation<T, V, R> {\n\t/**\n\t * Evaluates the state of object <b><code>T</code></b> against the value of <b><code>V</code></b>,\n\t * returning a result of type <b><code>E</code></b> \n\t * @param t The object whose state is being evaluated\n\t * @param v The value which the evaluation is being made against\n\t * @return the result of the evaluation\n\t */\n\tpublic R evaluate(T t, V v);\n}",
"public String getEvaluate() {\n return evaluate;\n }",
"@Override\n public void evaluate() throws Throwable {\n Throwable thrown = null;\n try {\n Runtime.getRuntime().addShutdownHook(hook);\n before();\n statement.evaluate();\n } catch (Throwable e) {\n thrown = e;\n if (onError != null) {\n try {\n onError.get().accept(e);\n } catch (Throwable t) {\n thrown.addSuppressed(t);\n }\n }\n } finally {\n try {\n Runtime.getRuntime().removeShutdownHook(hook);\n runAfter();\n } catch (Throwable e) {\n if (thrown != null) {\n thrown.addSuppressed(e);\n throw thrown;\n } else {\n thrown = e;\n }\n }\n if (thrown != null) {\n throw thrown;\n }\n }\n }",
"private String[] evaluate()\n {\n //there must be some recommender selected by the user on the UI\n if (selectedRecommenderPanel.getObject() == null\n || selectedRecommenderPanel.getObject().getTool() == null) {\n LOG.error(\"Please select a recommender from the list\");\n return null;\n }\n\n //get all the source documents related to the project\n Map<SourceDocument, AnnotationDocument> listAllDocuments = documentService\n .listAllDocuments(project, userDao.getCurrentUser());\n\n //create a list of CAS from the pre-annotated documents of the project\n List<CAS> casList = new ArrayList<>();\n listAllDocuments.forEach((source, annotation) -> {\n try {\n CAS cas = documentService.createOrReadInitialCas(source);\n casList.add(cas);\n }\n catch (IOException e1) {\n LOG.error(\"Unable to render chart\", e1);\n return;\n }\n });\n \n IncrementalSplitter splitStrategy = new IncrementalSplitter(TRAIN_PERCENTAGE,\n INCREMENT, LOW_SAMPLE_THRESHOLD);\n\n @SuppressWarnings(\"rawtypes\")\n RecommendationEngineFactory factory = recommenderRegistry\n .getFactory(selectedRecommenderPanel.getObject().getTool());\n RecommendationEngine recommender = factory.build(selectedRecommenderPanel.getObject());\n \n if (recommender == null) {\n LOG.warn(\"Unknown Recommender selected\");\n return null;\n }\n \n if (!evaluate) {\n return getEvaluationScore(evaluationResults);\n }\n\n evaluationResults = new ArrayList<EvaluationResult>();\n \n // create a list of comma separated string of scores from every iteration of\n // evaluation.\n while (splitStrategy.hasNext()) {\n splitStrategy.next();\n\n try {\n EvaluationResult evaluationResult = recommender.evaluate(casList, splitStrategy);\n \n if (evaluationResult.isEvaluationSkipped()) {\n LOG.warn(\"Evaluation skipped. Chart cannot to be shown\");\n continue;\n }\n\n evaluationResults.add(evaluationResult);\n }\n catch (RecommendationException e) {\n LOG.error(e.toString(),e);\n continue;\n }\n }\n\n return getEvaluationScore(evaluationResults);\n }",
"@Override\n public double evaluate() throws Exception {\n return getExpression1().evaluate() - getExpression2().evaluate();\n }",
"@AfterMethod\n\tpublic void getResult(ITestResult result) {\n\t\tSystem.out.println(\"TestCaseStatus == \"+result.getStatus());\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\n\t\t\t//extent.log(LogStatus.FAIL, \"Failed Test Case \" + result.getThrowable());\n\t\t\textent.log(LogStatus.FAIL, result.getName() + \" Test case is filed\");\n\t\t} if (result.getStatus() == ITestResult.SUCCESS) {\n\t\t\textent.log(LogStatus.PASS, \"Test case is Pass \" + result.getName());\n\t\t} if (result.getStatus() == ITestResult.SKIP) {\n\t\t\textent.log(LogStatus.SKIP, \"Test case is Skipped \" + result.getName());\n\t\t}\n\t}",
"public EvaluationResult<T> mergeEvaluations(Collection<EvaluationResult<T>> results);",
"public interface StepExecutor {\n ExecutionResult execute(StepExecutionContext context) throws Exception;\n}",
"@Override\n public void result(Result result) {\n backgroundSteps = false;\n\n setResultAttributes(result, latestStepResult);\n }",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"public void submit(final EvaluatorRequest req);",
"private void handleResult(boolean changed, EvaluationAccessor result, EvaluationAccessor value, int index) {\n if (changed) {\n if (index >= 0) {\n result.addBoundContainerElement(value, index);\n } else {\n result.addBoundContainerElement(value.getVariable());\n }\n }\n }",
"public abstract TimeStepDecisions getTimeStepDecisions(long evaluationTime);",
"public void onTestSuccess(ITestResult result) {\r\n\t\ttry {\r\n\t\t\t//used to write result details in html\r\n\t\t\tgenerateTestExecution(result);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t\t\r\n\t}"
]
| [
"0.6386045",
"0.6322867",
"0.6320774",
"0.6266674",
"0.62371343",
"0.62321687",
"0.6173243",
"0.61712646",
"0.611368",
"0.59741765",
"0.5968006",
"0.58623934",
"0.58311373",
"0.5773228",
"0.5733967",
"0.5712285",
"0.5698342",
"0.56956714",
"0.5655522",
"0.5648506",
"0.560857",
"0.5595776",
"0.55748564",
"0.554274",
"0.5536123",
"0.552419",
"0.5494427",
"0.5492688",
"0.5490004",
"0.54772675",
"0.54436386",
"0.5440758",
"0.5431424",
"0.54253113",
"0.54145336",
"0.5411883",
"0.5409309",
"0.54065454",
"0.5404889",
"0.53989345",
"0.5397879",
"0.5396723",
"0.5395164",
"0.5342573",
"0.5323726",
"0.53128797",
"0.5306128",
"0.5290655",
"0.5287061",
"0.5286347",
"0.528377",
"0.52782375",
"0.52520645",
"0.5246853",
"0.52418107",
"0.52307427",
"0.5222081",
"0.52170557",
"0.52071357",
"0.5204841",
"0.51978403",
"0.51970714",
"0.5185751",
"0.518395",
"0.51819927",
"0.51735646",
"0.5158789",
"0.51499134",
"0.5149823",
"0.51411736",
"0.5136618",
"0.5136174",
"0.51307625",
"0.5128345",
"0.5126917",
"0.5126047",
"0.5118811",
"0.5116493",
"0.51135314",
"0.5106072",
"0.50933224",
"0.50918853",
"0.5091127",
"0.50884414",
"0.50840616",
"0.50829947",
"0.5081675",
"0.5073218",
"0.5070711",
"0.5060471",
"0.5053674",
"0.5047657",
"0.5042576",
"0.5041744",
"0.5040372",
"0.5035909",
"0.50304455",
"0.5029034",
"0.5027264",
"0.50269103"
]
| 0.59882253 | 9 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.read_phone_state);
resource = new AndroidResource(this, (TelephonyManager) this.getSystemService(TELEPHONY_SERVICE));
this.mapViews = new HashMap<Integer, String>();
this.initializeViewMap();
this.displayViewMap();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"protected void onCreate() {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onCreate() {\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}",
"@Override\n public void onCreate() {\n\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}",
"public void onCreate() {\n }",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }",
"public void onCreate();",
"public void onCreate();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }",
"@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }"
]
| [
"0.79177165",
"0.77268666",
"0.7693204",
"0.7693204",
"0.7693204",
"0.7693204",
"0.7693204",
"0.7693204",
"0.7637164",
"0.7637164",
"0.76318395",
"0.7618896",
"0.7618896",
"0.75437796",
"0.7539822",
"0.7539822",
"0.7539348",
"0.75277805",
"0.751581",
"0.7510227",
"0.7501691",
"0.7482301",
"0.7476064",
"0.7470323",
"0.7470323",
"0.745643",
"0.7437511",
"0.7425495",
"0.74232626",
"0.73933935",
"0.73706084",
"0.7358124",
"0.7358124",
"0.7352261",
"0.7348374",
"0.7348374",
"0.7333149",
"0.7312197",
"0.7267594",
"0.7261821",
"0.7253435",
"0.7242377",
"0.7214264",
"0.71877277",
"0.7183542",
"0.7173681",
"0.7169982",
"0.7167938",
"0.7147568",
"0.714221",
"0.71337724",
"0.71175146",
"0.7099078",
"0.7098365",
"0.70938575",
"0.70938575",
"0.7086241",
"0.70763654",
"0.7074094",
"0.7071145",
"0.704998",
"0.7041525",
"0.7037855",
"0.7013",
"0.70057905",
"0.70054734",
"0.7003888",
"0.70005256",
"0.69954646",
"0.6991001",
"0.69884914",
"0.69839656",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.6982389",
"0.69801646",
"0.6977675",
"0.69677746",
"0.6966507",
"0.6965295",
"0.6963108",
"0.6962776",
"0.69622207",
"0.69613934",
"0.6948459",
"0.69406855",
"0.6936473",
"0.69351107",
"0.6928618",
"0.69271314",
"0.6925013"
]
| 0.0 | -1 |
TODO: find better place for method | public EmployeeResponse convertToDto(Employee employee) {
return new EmployeeResponse(employee.getId(), employee.getName(), employee.getSalary().getValue());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private stendhal() {\n\t}",
"protected abstract Set method_1559();",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public void smell() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"private void getStatus() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"protected OpinionFinding() {/* intentionally empty block */}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void entrenar() {\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}",
"public void method_191() {}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"private void m50366E() {\n }",
"public void method_201() {}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected Collection method_1554() {\n return this.method_1559();\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo70713b();",
"public void method_206() {}",
"public void mo38117a() {\n }",
"public void method_199() {}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"@Override\n protected void prot() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}",
"private void searchFunction() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void apply() {\n }",
"public void method_115() {}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public static void thisMethod() {\n }",
"public abstract void mo56925d();",
"public void mo21793R() {\n }",
"OptimizeResponse() {\n\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public int method_209() {\r\n return 0;\r\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"public void method_202() {}",
"public String method_211() {\r\n return null;\r\n }",
"protected void mo6255a() {\n }",
"@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"public void mo21877s() {\n }",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public int method_113() {\r\n return 0;\r\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\t\t\tpublic void buscar() {\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\tpublic void func02() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public abstract String mo41079d();",
"@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"public void method_192() {}",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}"
]
| [
"0.60197747",
"0.5971423",
"0.5817981",
"0.5793965",
"0.57938236",
"0.5777609",
"0.5765103",
"0.5754715",
"0.5742497",
"0.5716561",
"0.57128096",
"0.56868863",
"0.56616557",
"0.56455654",
"0.56455654",
"0.5625738",
"0.56136787",
"0.5612084",
"0.55663645",
"0.555174",
"0.5542158",
"0.5532728",
"0.5532728",
"0.55248386",
"0.55228174",
"0.55214006",
"0.55181545",
"0.5492253",
"0.54687726",
"0.54687726",
"0.54579127",
"0.5432577",
"0.5429063",
"0.54260075",
"0.5412359",
"0.5397967",
"0.5389019",
"0.5373067",
"0.53677803",
"0.5337469",
"0.53305405",
"0.5323969",
"0.5317316",
"0.5309742",
"0.5295841",
"0.52930003",
"0.52861655",
"0.5285784",
"0.52797425",
"0.5279396",
"0.52753764",
"0.5271992",
"0.5258745",
"0.525423",
"0.52441484",
"0.5237007",
"0.5232123",
"0.5229988",
"0.5226897",
"0.5226379",
"0.5209603",
"0.5209232",
"0.5203559",
"0.5183771",
"0.5181324",
"0.5180246",
"0.5172046",
"0.51672965",
"0.5165107",
"0.5156156",
"0.51450926",
"0.5141718",
"0.5137676",
"0.5132848",
"0.5131607",
"0.51303697",
"0.51245654",
"0.5124526",
"0.512362",
"0.51186055",
"0.51157004",
"0.5108088",
"0.5106512",
"0.51019055",
"0.5094571",
"0.5094355",
"0.508971",
"0.50875473",
"0.50864166",
"0.50860614",
"0.50860614",
"0.5084637",
"0.5084637",
"0.50832695",
"0.5075236",
"0.50715595",
"0.50712836",
"0.50697464",
"0.50550306",
"0.5053017",
"0.5052209"
]
| 0.0 | -1 |
This is the constructor of BooleanProperty. | public BooleanProperty(int index) {
super(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PropertyBoolean(String name) {\n super(name);\n }",
"public Boolean() {\n\t\tsuper(false);\n\t}",
"public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }",
"public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }",
"public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }",
"public static PropertyDescriptionBuilder<Boolean> booleanProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Boolean.class, Parsers::parseBoolean);\n }",
"public TrueValue (){\n }",
"public interface IBooleanProperty {\n /**\n * A simple implementation that holds its own state.\n */\n class WithState implements IBooleanProperty {\n private boolean value;\n\n public WithState(boolean value) {\n this.value = value;\n }\n\n @Override\n public boolean getBoolean() {\n return this.value;\n }\n\n @Override\n public void setBoolean(boolean value) {\n this.value = value;\n }\n\n @Override\n public boolean isValidBoolean(boolean value) {\n return true;\n }\n }\n\n /**\n * Get the boolean value.\n * @return the boolean value\n */\n boolean getBoolean();\n\n /**\n * Set the boolean value, regardless of it being a valid value or not.\n * The validity of the boolean value should be evaluated with isValidBoolean.\n * @param value the boolean value\n */\n void setBoolean(boolean value);\n\n /**\n * Returns true if the boolean value is valid.\n * @param value the boolean value\n * @return true if the boolean value is valid\n */\n boolean isValidBoolean(boolean value);\n\n /**\n * Try to set the boolean value. Returns true if it succeeded.\n * @param value the boolean value\n * @return true if it succeeded\n */\n default boolean trySetBoolean(boolean value) {\n if (this.isValidBoolean(value)) {\n this.setBoolean(value);\n return true;\n } else {\n return false;\n }\n }\n}",
"BooleanExpression createBooleanExpression();",
"BooleanExpression createBooleanExpression();",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}",
"public CheckBox() {\n\t\tthis(false);\n\n\t}",
"public DBBoolean(Boolean bool) {\n\t\tsuper(bool);\n\t}",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"public DBBoolean() {\n\t}",
"BooleanProperty getOn();",
"public PropertyBoolean(String uid, boolean lvl) {\n super(uid, lvl, Boolean.TRUE, Boolean.FALSE);\n }",
"protected BooleanValue(Boolean bv) {\n boolValue = bv;\n }",
"public final Bindings booleanProperty(String name, boolean array) {\n addProp(name, array, \"true\");\n return this;\n }",
"public BooleanMetadata(String key, Object value) {\n\n this(key, value, false);\n }",
"@JsSupport( {JsVersion.MOZILLA_ONE_DOT_ONE, \r\n\t\tJsVersion.JSCRIPT_TWO_DOT_ZERO})\r\npublic interface Boolean extends Object {\r\n\t\r\n\t@Constructor void Boolean();\r\n\t\r\n\t@Constructor void Boolean(boolean value);\r\n\t\r\n\t@Constructor void Boolean(Number value);\r\n\t\r\n\t@Constructor void Boolean(String value);\r\n\t\r\n\t@Function boolean valueOf();\r\n\t\r\n}",
"BoolConstant createBoolConstant();",
"public BooleanType(final boolean val) {\n\t\tthis.b = new Boolean(val);\n\t}",
"public BooleanStateValue( boolean value) {\n\t\tthis( value, false);\n\t}",
"BooleanLiteralExp createBooleanLiteralExp();",
"BoolOperation createBoolOperation();",
"public BooleanType(final Boolean val) {\n\t\tthis.b = val;\n\t}",
"public BooleanMetadata(String key) {\n\n this(key, null);\n }",
"public CheckBox() {\n \t\tthis(\"untitled\");\n \t}",
"protected GUIBooleanParameter(BooleanParameter parameter, SettingsPane sp) {\n\t\tsuper(parameter, sp);\n\t}",
"<C> BooleanLiteralExp<C> createBooleanLiteralExp();",
"public ToggleButton()\n {\n this(true);\n }",
"public BooleanPropertyDescriptor(Object id, String displayName, boolean readonly)\r\n\t{\r\n\t\tsuper(id, displayName);\r\n\t}",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}",
"static Nda<Boolean> of( boolean... value ) { return Tensor.of( Boolean.class, Shape.of( value.length ), value ); }",
"private JCheckBoxMenuItem _createBooleanPropertyMenuItem(final BasicPropertyList.BooleanProperty bp,\n final BasicPropertyList pl) {\n final JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem(bp.getName());\n menuItem.setSelected(bp.getValue());\n menuItem.addItemListener(e -> bp.setValue(menuItem.getState()));\n\n // keep view and popup menus in sync\n pl.addWatcher(propName -> {\n if (propName.equals(bp.getName())) {\n boolean b = bp.getValue();\n if (menuItem.isSelected() != b) {\n menuItem.setSelected(b);\n }\n }\n });\n\n return menuItem;\n }",
"private BooleanValueProvider() {\n this.state = true;\n }",
"public TruthExpression() {\r\n\t\tsuper(new Expression[]{});\r\n\t\tthis.truthValue = TruthValue.FALSE;\r\n\t}",
"public boolean getBoolean();",
"private CheckBoolean() {\n\t}",
"@Override\n public HangarMessages addConstraintsTypeBooleanMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_TypeBoolean_MESSAGE));\n return this;\n }",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"public Boolean getBooleanAttribute();",
"public Boolean asBoolean();",
"public Literal setLiteralBoolean(Boolean literalData);",
"BooleanProperty noValueWarningProperty();",
"public Builder setBoolValue(boolean value) {\n bitField0_ |= 0x00000040;\n boolValue_ = value;\n onChanged();\n return this;\n }",
"public interface UnaryBooleanExpressionProperty extends BooleanExpressionProperty<BooleanExpression>, UnaryProperty<BooleanExpressionProperty<BooleanExpression>, BooleanExpression> {\n}",
"BooleanType(String name, String value,boolean mutable) {\n\t\tsuper(name,Constants.BOOLEAN, mutable);\n\t\tif(value != null)\n\t\t\tthis.value = parseValue(value);\n\t\t\n\t}",
"public SPARQLBooleanXMLParser() {\n\t\tsuper();\n\t}",
"void setBoolean(boolean value);",
"@JsProperty void setChecked(boolean value);",
"public BooleanParameter(String name, String key, String desc, boolean visible, boolean enabled, boolean required, Object defaultValue) {\n super(name,key,desc,visible,enabled,required,defaultValue);\n \n if ( defaultValue instanceof String ) {\n defaultValue = new Boolean( \"TRUE\".equals(defaultValue));\n }\n }",
"boolean getBoolean();",
"boolean getBoolean();",
"private BooleanFunctions()\n {\n }",
"public Boolean getBooleanValue() {\n return this.booleanValue;\n }",
"@JsProperty boolean getChecked();",
"public static final BooleanConstantTrue getTrue()\n {\n return new BooleanConstant.BooleanConstantTrue();\n }",
"public CheckboxField addCheckboxField(final BooleanProperty property) {\n return addCheckboxField(property.getKey());\n }",
"public SimpleBooleanProperty checkedProperty()\n\t{\n\t\treturn this.checked;\n\t}",
"PrimitiveProperty createPrimitiveProperty();",
"public TupleDesc addBoolean(String name) {\n columns.add(new TupleDescItem(Type.BOOLEAN, name));\n return this;\n }",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public BooleanLit createTrue(Position pos) {\n return (BooleanLit) xnf.BooleanLit(pos, true).type(xts.Boolean());\n }",
"public Property() {\n this(0, 0, 0, 0);\n }",
"public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }",
"public final EObject ruleBoolLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token lv_value_1_0=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3752:28: ( ( () ( (lv_value_1_0= RULE_BOOL ) ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:1: ( () ( (lv_value_1_0= RULE_BOOL ) ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:1: ( () ( (lv_value_1_0= RULE_BOOL ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:2: () ( (lv_value_1_0= RULE_BOOL ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:2: ()\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3754:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getBoolLiteralAccess().getBoolLiteralAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3759:2: ( (lv_value_1_0= RULE_BOOL ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3760:1: (lv_value_1_0= RULE_BOOL )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3760:1: (lv_value_1_0= RULE_BOOL )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3761:3: lv_value_1_0= RULE_BOOL\r\n {\r\n lv_value_1_0=(Token)match(input,RULE_BOOL,FOLLOW_RULE_BOOL_in_ruleBoolLiteral8655); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getBoolLiteralAccess().getValueBOOLTerminalRuleCall_1_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getBoolLiteralRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_1_0, \r\n \t\t\"BOOL\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"DialogField createBooleanField( final Composite parent,\r\n final String text,\r\n final String name ) {\r\n BooleanDialogField result = new BooleanDialogField( parent, text );\r\n result.addDialogFieldListener( new IDialogFieldListener() {\r\n public void infoChanged( final Object newInfo ) {\r\n boolean selected = ( ( Boolean )newInfo ).booleanValue();\r\n getPreferenceStore().setValue( name, selected );\r\n }\r\n } );\r\n result.setInfo( getFromStore( name ) );\r\n return result;\r\n }",
"void setBooleanProperty(Object name, boolean b) throws JMSException;",
"abstract public boolean getAsBoolean();",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public SimpleButton()\n {\n this(true);\n }",
"public Property() {}",
"public static Value makeBool(boolean b) {\n if (b)\n return theBoolTrue;\n else\n return theBoolFalse;\n }",
"public Property<Boolean> independentProperty() {\n\t\tif (independentProperty == null) {\n\t\t\tindependentProperty = new SimpleObjectProperty<Boolean>(this, \"Independent\", false);\n\t\t}\n\t\treturn independentProperty;\n\t}",
"public Property<Boolean> activeProperty() {\n\t\tif (activeProperty == null) {\n\t\t\tactiveProperty = new SimpleObjectProperty<>(this, \"Active\", false);\n\t\t}\n\t\treturn activeProperty;\n\t}",
"public BooleanNodeButtonModel(BooleanNode booleanNode) {\n\t\tif (booleanNode == null) {\n\t\t\tthrow new IllegalArgumentException(\"booleanNode can't be null\" + middlegen.Middlegen.BUGREPORT);\n\t\t}\n\t\t_booleanNode = booleanNode;\n\t\t_booleanNode.addObserver(this);\n\t}",
"@Test\n public void testBooleanPropertyQuick() {\n Assertions.assertTrue(classObject.getBoolean(\"Started\"));\n }",
"public BooleanType(final String flatData) throws InvalidFlatDataException {\n\t\tTypeUtils.check(this, flatData);\n\t\tthis.b = new Boolean(flatData.substring(flatData.indexOf(':') + 1));\n\t}",
"@Test\n public void testBooleanProperty() {\n try (ReleasableVariant started = classObject.get(\"Started\")) {\n Assertions.assertTrue(started.booleanValue());\n }\n }",
"public String toString() { return this.booleanValue; }",
"public final void ruleBoolean() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:266:2: ( ( 'Boolean' ) )\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n {\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n // InternalMyDsl.g:268:3: 'Boolean'\n {\n before(grammarAccess.getBooleanAccess().getBooleanKeyword()); \n match(input,14,FOLLOW_2); \n after(grammarAccess.getBooleanAccess().getBooleanKeyword()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void testSetBoolean() {\n ValueString vs = new ValueString();\n\n vs.setBoolean(false);\n assertEquals(\"N\", vs.getString());\n vs.setBoolean(true);\n assertEquals(\"Y\", vs.getString());\n }",
"public static boolean getBoolProperty(String key) {\r\n\t\treturn getBoolProperty(key, false);\r\n\t}",
"public Builder setBoolValue(boolean value) {\n typeCase_ = 2;\n type_ = value;\n onChanged();\n return this;\n }",
"public LatchingBooleanValueNode(Network network, Logger logger, String label,\n\t\t\tValueNode<? extends Boolean> valueNode)\n\t\t\tthrows IllegalArgumentException, IllegalStateException {\n\t\tsuper(network, logger, label, valueNode);\n\n\t\tthis.valueNode = valueNode;\n\t}",
"public Boolean getABoolean()\n {\n return aBoolean;\n }",
"public void setBoolean(Boolean value) {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\tthis.booleanValue = value;\r\n\t}",
"public BooleanProperty isColorProperty() {\n return isColor;\n }",
"public BooleanStateValue( boolean value, long duration) {\n\t\tsuper( duration);\n\t\t_storage = value;\n\t}",
"Property createProperty();",
"public Boolean booleanValue() {\n\t\tif (this.getLiteralValue() instanceof Boolean) {\n\t\t\treturn (Boolean) this.getLiteralValue();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}"
]
| [
"0.798163",
"0.7686922",
"0.7368044",
"0.704086",
"0.70178294",
"0.7008803",
"0.6991352",
"0.6873205",
"0.6834422",
"0.6834422",
"0.68041116",
"0.68041116",
"0.6802909",
"0.6779066",
"0.6673318",
"0.6673318",
"0.6673318",
"0.6673318",
"0.66732407",
"0.6632283",
"0.66154915",
"0.6611299",
"0.64941365",
"0.6419359",
"0.63913536",
"0.63467634",
"0.6346247",
"0.63444",
"0.63379127",
"0.63036066",
"0.62919253",
"0.6283595",
"0.62492317",
"0.6240691",
"0.6130659",
"0.6124155",
"0.60832524",
"0.6056216",
"0.6056216",
"0.60428697",
"0.603317",
"0.60316825",
"0.6024588",
"0.602341",
"0.60101664",
"0.5981137",
"0.5963536",
"0.5960413",
"0.5959394",
"0.59498113",
"0.59392536",
"0.593413",
"0.5929098",
"0.592379",
"0.5918682",
"0.5895076",
"0.58932304",
"0.5883238",
"0.58661115",
"0.58661115",
"0.58431363",
"0.5836153",
"0.58050954",
"0.5791393",
"0.57904667",
"0.57879037",
"0.578296",
"0.5767879",
"0.5759542",
"0.5759542",
"0.5756332",
"0.5746222",
"0.572784",
"0.57255286",
"0.5717211",
"0.5708481",
"0.570734",
"0.5697906",
"0.56879604",
"0.566536",
"0.5664874",
"0.5655857",
"0.56374055",
"0.56368315",
"0.56335425",
"0.56311035",
"0.56188625",
"0.5612116",
"0.5600033",
"0.55958176",
"0.55957067",
"0.5567467",
"0.5564443",
"0.5561122",
"0.5561073",
"0.55609506",
"0.5555767",
"0.55533224",
"0.5524744",
"0.5516645"
]
| 0.76692015 | 2 |
Passing an argument to the constructor means | public Department(String name){
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Constructor(){\n\t\t\n\t}",
"MyArg(int value){\n this.value = value;\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}",
"public MockClass(String arg) {\n\t}",
"protected abstract void construct();",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"public Person(String inName)\n {\n name = inName;\n }",
"public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }",
"ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}",
"DefaultConstructor(int a){}",
"Reproducible newInstance();",
"public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}",
"public ahr(aqu paramaqu)\r\n/* 20: */ {\r\n/* 21: 34 */ super(paramaqu);\r\n/* 22: 35 */ a(0.25F, 0.25F);\r\n/* 23: */ }",
"private void prepareInstance(String arg) {\n pattern = arg;\n }",
"public Card() { this(12, 3); }",
"public LightParameter()\r\n\t{\r\n\t}",
"private Instantiation(){}",
"public bwq(String paramString1, String paramString2)\r\n/* 10: */ {\r\n/* 11: 9 */ this.a = paramString1;\r\n/* 12:10 */ this.f = paramString2;\r\n/* 13: */ }",
"public SuperClass(int x)\r\n {\r\n _x = x;\r\n }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }",
"Constructor(int i,String n ,int x){ //taking three parameters which shows that it is constructor overloaded\r\n\t\t id = i; \r\n\t\t name = n; \r\n\t\t marks =x; \r\n\t\t }",
"public Contructor(int year, String name) {\n // constructor name must match class name and cannot have return type\n // all classes have constructor by default\n // f you do not create a class constructor yourself, Java creates one for you.\n // However, then you are not able to set initial values for object attributes.\n // constructor can also take parameters\n batchYear = year;\n studentName = name;\n }",
"public Person(String vorname, String nachname) {\n\n\t}",
"public A(int x)\n {\n xValue = x;\n }",
"ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }",
"public Video( int arg1 ) { \n\t\tsuper( );\n\t}",
"private Point(int param, double value) {\r\n this(param, value, false);\r\n }",
"public Identity()\n {\n super( Fields.ARGS );\n }",
"defaultConstructor(){}",
"public Video( int arg1, int arg2 ) { \n\t\tsuper( );\n\t}",
"public Parameters() {\n\t}",
"public SeqArg(Argument a1, Argument a2){\n this.a1 = a1;\n this.a2 = a2;\n }",
"public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }",
"private Params()\n {\n }",
"public CyanSus() {\n\n }",
"public PotionEffect(int paramInt1, int paramInt2, int paramInt3)\r\n/* 21: */ {\r\n/* 22: 32 */ this(paramInt1, paramInt2, paramInt3, false, true);\r\n/* 23: */ }",
"Argument createArgument();",
"public c(Object obj) {\n super(1);\n this.a = obj;\n }",
"public static void main(String[] args) {\n My obj2=new My(9);//--->called overloaded Constructor\n }",
"public Shape(String color) { \n System.out.println(\"Shape constructor called\"); \n this.color = color; \n }",
"public UserParameter() {\n }",
"public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }",
"public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}",
"void DefaultConstructor(){}",
"public Gitlet(int a) {\n\n\t}",
"public ThisKeyword(){\n this(1.0);\n }",
"public Dice() { \n this(6); /* Invoke the above Dice constructor with value 6. */ \n }",
"public User(String n, int a) { // constructor\r\n name = n;\r\n age = a;\r\n }",
"public Person(String name)\n {\n this.name = name;\n }",
"public Student(Integer age) {\n\n this.age = age;\n }",
"public void Constructor(String name, Integer age) {\r\n this.name = name;\r\n this.age = age;\r\n }",
"private Font(long paramLong, Object paramObject) {\n/* 1031 */ this.a = paramLong;\n/* 1032 */ this.b = paramObject;\n/* */ }",
"protected ForConstructor(Constructor<?> constructor) {\n this.constructor = constructor;\n }",
"public PennyFarthing(int startCadence, int startSpeed) {\n // Call the parent constructor with super\n super(startCadence, startSpeed, 0, \"PennyFarthing\");\n System.out.println(\"PennyFarthing.PennyFarthing- constructor with arguments\");\n }",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"public AI(String n) {//constructor for super class\n super(n);\n }",
"public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }",
"public PotionEffect(int paramInt1, int paramInt2)\r\n/* 16: */ {\r\n/* 17: 28 */ this(paramInt1, paramInt2, 0);\r\n/* 18: */ }",
"public Chant(){}",
"public ParameterizedInstantiateFactory() {\r\n super();\r\n }",
"public static void main(String[] args) {\n\t\tthisconstructor rv = new thisconstructor();\n\t\n\t\n\t}",
"public Promo(String n){\nnom = n;\n}",
"public Funcionario(String nome, double salario){//construtor\nthis.nome=nome;\nthis.salario=salario;\n\n}",
"public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}",
"public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instance var lastname to what is called from constructor\n this.lastName = last;\n }",
"public Clade() {}",
"private void __sep__Constructors__() {}",
"private GrupoCuenta(String nombre, int operacion)\r\n/* 11: */ {\r\n/* 12:31 */ this.nombre = nombre;\r\n/* 13:32 */ this.operacion = operacion;\r\n/* 14: */ }",
"public ctq(File paramFile, String paramString, oa paramoa, ckh paramckh)\r\n/* 22: */ {\r\n/* 23: 33 */ super(paramoa);\r\n/* 24: 34 */ this.i = paramFile;\r\n/* 25: 35 */ this.j = paramString;\r\n/* 26: 36 */ this.k = paramckh;\r\n/* 27: */ }",
"@Test\n public void goalCustomConstructor_isCorrect() throws Exception {\n\n int goalId = 11;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n\n //Create goal\n Goal goal = new Goal(goalId, userId, name, timePeriod, unit, amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }",
"public Thaw_args(Thaw_args other) {\r\n }",
"public MyPoint1 (double x, double y) {}",
"public BaseParameters(){\r\n\t}",
"public MLetter(Parameters parametersObj) {\r\n\t\tsuper(parametersObj);\r\n\t}",
"public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }",
"public Pasien() {\r\n }",
"public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }",
"public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }",
"public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}",
"public Achterbahn() {\n }",
"public Car(){\n\t\t\n\t}",
"TypesOfConstructor(int value){\n num = value;\n }",
"public Chauffeur() {\r\n\t}",
"public Member() {}",
"public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }",
"public aed(World paramaqu, double paramDouble1, double paramDouble2, double paramDouble3)\r\n/* 14: */ {\r\n/* 15: 28 */ super(paramaqu, paramDouble1, paramDouble2, paramDouble3);\r\n/* 16: */ }",
"public BoardMember(int yearsWorked)\r\n\t{\r\n\t\tsuper(yearsWorked);\r\n\t}",
"public Node(){\n this(9);\n }",
"public LearnConstructor(int age,String name,String address){\n this.age=age;\n this.address=address;\n this.name=name;\n System.out.println(this.name+\" \"+this.address+\" \"+this.age);\n }",
"public bsm(PlayerStat paramtq)\r\n/* 7: */ {\r\n/* 8: 9 */ super(paramtq.e);\r\n/* 9:10 */ this.j = paramtq;\r\n/* 10: */ }",
"public CreateUser(int age, String name){ // constructor\n userAge = age;\n userName = name;\n }",
"public void jsConstructor(Scriptable source) {\n\t this.source = source;\n\t}",
"public Person(String name){\n\t\tthis.name = name ; \n\t}",
"Parameter createParameter();",
"private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }",
"public Java_Experiment_File(int F, String string) {\n\t// The `this' keyword references the field rather than the parameter! For example, the following assigns the argument provided to parameter `F' to the class's `F'.\n\t// Also, `this(...)' invokes the contructor for which the parameter requirements are fulfilled by the arguments provided.\n\t// More information: http://stackoverflow.com/questions/285177/how-do-i-call-one-constructor-from-another-in-java\n\tthis.F = F;\n\tQ = string;\n\tSystem.out.println(\"Instance variable `F' set to \" + F + \" and `Q' set to '\" + Q + \"'!\");\n }",
"public PotionEffect(PotionEffect paramwq)\r\n/* 35: */ {\r\n/* 36: 44 */ this.id = paramwq.id;\r\n/* 37: 45 */ this.duration = paramwq.duration;\r\n/* 38: 46 */ this.amplifier = paramwq.amplifier;\r\n/* 39: 47 */ this.ambient = paramwq.ambient;\r\n/* 40: 48 */ this.showParticles = paramwq.showParticles;\r\n/* 41: */ }",
"public Person (String name) {\n // if in the setName method i have a transformation (lowercase)\n // like this.name = name.toLowerCase();\n // id use this.setName(name);\n // or below if i dont have a transformation i need to make\n this.name = name;\n }",
"public Complex(){\r\n\t this(0,0);\r\n\t}"
]
| [
"0.6889701",
"0.6856903",
"0.670658",
"0.66657394",
"0.66039336",
"0.65523624",
"0.6522905",
"0.6496911",
"0.6483921",
"0.64570075",
"0.6443925",
"0.6393337",
"0.6392247",
"0.63876104",
"0.63709116",
"0.63471377",
"0.63402104",
"0.6325935",
"0.6294783",
"0.62664294",
"0.6258894",
"0.62578595",
"0.62548846",
"0.62476444",
"0.6236684",
"0.62359434",
"0.62111163",
"0.6189034",
"0.61704725",
"0.61642325",
"0.6157289",
"0.61401045",
"0.61361325",
"0.6131252",
"0.61261606",
"0.6112762",
"0.61105454",
"0.61097443",
"0.60979795",
"0.60975087",
"0.6086174",
"0.6083742",
"0.60759515",
"0.6068373",
"0.60656667",
"0.60622996",
"0.60560536",
"0.60535574",
"0.60492104",
"0.60434586",
"0.60433483",
"0.60330015",
"0.6027489",
"0.60265744",
"0.6024607",
"0.60166407",
"0.6014032",
"0.60125816",
"0.6003277",
"0.60006344",
"0.5987249",
"0.5985063",
"0.5983154",
"0.59813875",
"0.59788597",
"0.59734976",
"0.596629",
"0.5963977",
"0.5959695",
"0.59531796",
"0.5944996",
"0.5940612",
"0.5936537",
"0.5928169",
"0.5922726",
"0.5920704",
"0.59201014",
"0.59076923",
"0.5904819",
"0.5904273",
"0.59040385",
"0.5901118",
"0.58989507",
"0.5892882",
"0.58916754",
"0.5888941",
"0.5884521",
"0.58807445",
"0.58774006",
"0.5873051",
"0.5872455",
"0.58703524",
"0.5867939",
"0.5862129",
"0.58573776",
"0.5854335",
"0.5852182",
"0.5844965",
"0.5843435",
"0.5843305",
"0.584226"
]
| 0.0 | -1 |
Calculate the bonuses of all the individuals (Employees and Managers) for this department | public void calculateBonuses(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer costOfDepartment() {\n Integer total = 0;\n for (Manager manager :\n departmentHeads) {\n total += manager.costOfTeam();\n }\n return total;\n }",
"private void updateAllBonuses() {\n\t\tfor(int i = 0; i < bonuses.length; i++)\n\t\t\tbonuses[i] = 0;\n\t\tfor(Item item : getItems()) {\n\t\t\tupdateBonus(null, item);\n\t\t}\n\t}",
"private boolean checkBudgetAvailability(Company company, double bonusForDevelopers) {\n\n double requiredBudget = 0;\n\n for (Employee employee : company.getEmployees()) {\n\n double employeeSalary = 0;\n\n if (employee instanceof Developer) {\n employeeSalary = ((Developer) employee).getSalary(bonusForDevelopers);\n } else {\n employeeSalary = employee.getSalary();\n }\n requiredBudget += employeeSalary;\n }\n\n return requiredBudget >= company.getBudget();\n }",
"public double getCarbs() {\n\t\tdouble mealCarbs = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble carbs = foodDetail.get(foodName).getCarbs();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCarbs += carbs * portion;\n\t\t}\n\t\treturn mealCarbs;\n\t}",
"public void calculate()\n {\n \tVector<Instructor> instructors = instructorDB.getAllInstructors();\n \tSchedule schedule = AdminGenerating.getSchedule();\n \tsections = schedule.getAllSections();\n \n for (Instructor instructor : instructors) {\n calculateIndividual(instructor);\n }\n \n calculateOverall();\n }",
"public Iterable<Boat> boatsOwnedByMember(){ return this.boats; }",
"public void payAllEmployeers() {\n\t\t\n\t\tSystem.out.println(\"PAYING ALL THE EMPLOYEES:\\n\");\n\t\t\n\t\tfor(AbsStaffMember staffMember: repository.getAllMembers())\n\t\t{\n\t\t\tstaffMember.pay();\n\t\t\tSystem.out.println(\"\\t- \" + staffMember.getName() + \" has been paid a total of \" + staffMember.getTotalPaid());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\");\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}",
"public void initSalarys() {\n\t\tList ls = departmentServiceImpl.findAll(Employees.class);\n\t\temployeesList = ls;\n\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t.collect(Collectors.toList());\n\t\ttotalSalary = new BigDecimal(0);\n\t\ttotalSalaryAfter = new BigDecimal(0);\n\n\t\tif (conId != null) {\n\t\t\temployeesList = new ArrayList<Employees>();\n\t\t\tcon = new Contracts();\n\t\t\tcon = (Contracts) departmentServiceImpl.findEntityById(Contracts.class, conId);\n\t\t\tList<ContractsEmployees> empIds = departmentServiceImpl.loadEmpByContractId(conId);\n\t\t\tfor (ContractsEmployees id : empIds) {\n\t\t\t\tEmployees emp = (Employees) departmentServiceImpl.findEntityById(Employees.class, id.getEmpId());\n\t\t\t\temployeesList.add(emp);\n\t\t\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t}\n\n\t\t}\n\n\t\tif (enterpriseAdd != null && enterpriseAdd.size() > 0) {\n\t\t\tList<Employees> empAllList = new ArrayList<>();\n\t\t\tfor (String entId : enterpriseAdd) {\n\t\t\t\t// enterpriseId = Integer.parseInt(entId);\n\t\t\t\tList<Employees> empList = employeesList.stream()\n\t\t\t\t\t\t.filter(fdet -> fdet.getEnterpriseId().equals(Integer.parseInt(entId)))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tif (empList != null && empList.size() > 0) {\n\t\t\t\t\tempAllList.addAll(empList);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\temployeesList = empAllList;\n\t\t}\n\n//\t\tif (employeesList != null && employeesList.size() > 0) {\n//\t\t\tlistTotalSum = employeesList.stream().filter(fdet -> fdet.getSalary() != 0.0d)\n//\t\t\t\t\t.mapToDouble(fdet -> fdet.getSalary()).sum();\n//\t\t\ttotalSalary = new BigDecimal(listTotalSum).setScale(3, RoundingMode.HALF_UP);\n\t\t// totalSalaryAfter = totalSalary;\n//\t\t\tSystem.out.println(\"\" + totalSalary);\n//\n//\t\t}\n\t\tif (con != null) {\n\t\t\tloadSalaries();\n\t\t}\n\n//\t\tls = departmentServiceImpl.findAll(Enterprise.class);\n//\t\tenterpriseList = ls;\n\t}",
"public BigDecimal getBALLOON_AMOUNT() {\r\n return BALLOON_AMOUNT;\r\n }",
"public BigDecimal getBALLOON_AMOUNT() {\r\n return BALLOON_AMOUNT;\r\n }",
"private int findBidders() {\r\n try {\r\n agents = new ArrayList<AMSAgentDescription>();\r\n //definisce i vincoli di ricerca, in questo caso tutti i risultati\r\n SearchConstraints searchConstraints = new SearchConstraints();\r\n searchConstraints.setMaxResults(Long.MAX_VALUE);\r\n //tutti gli agenti dell'AMS vengono messi in un array\r\n AMSAgentDescription [] allAgents = AMSService.search(this, new AMSAgentDescription(), searchConstraints);\r\n //scorre la lista degli agenti trovati al fine di filtrare solo quelli di interesse\r\n for (AMSAgentDescription a: allAgents) {\r\n //aggiunge l'agente partecipante all'ArrayList se e' un partecipante\r\n if(a.getName().getLocalName().contains(\"Participant\")) {\r\n agents.add(a);\r\n } \r\n }\r\n } catch (Exception e) {\r\n System.out.println( \"Problema di ricerca dell'AMS: \" + e );\r\n e.printStackTrace();\r\n }\r\n return agents.size();\r\n }",
"public int getBalls() {\n return totalBalls;\n }",
"public double totalInsuranceCost(){\n double cost=0;\n for(InsuredPerson i: insuredPeople){\n cost+=i.getInsuranceCost();\n\n }\n return cost;\n\n }",
"double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }",
"int getIndividualDefense();",
"@Override\n\tpublic Double calculerFonds(Integer idBanque) {\n\t\treturn 1000.0;\n\t}",
"public double getBonificacao() {\n\t\tSystem.out.println(\"Chamando o metodo de bonificacao do gerente\");\n\t\treturn super.getBonificacao() + super.salario;\n\t}",
"private Object[][] getBonusAmt(String month, String year, String divId) {\r\n\t\tObject[][] bonusData = null;\r\n\t\ttry {\r\n\t\t\tString query = \" SELECT HRMS_BONUS_EMP.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' '), TO_CHAR(SUM(NVL(HRMS_BONUS_EMP.BONUS_TAX_AMT,0)),9999999990.99) BONUS_AMT, 0 \" \r\n\t\t\t+ \" FROM HRMS_BONUS_EMP \"\r\n\t\t\t+ \" INNER JOIN HRMS_BONUS_HDR ON (HRMS_BONUS_HDR.BONUS_CODE = HRMS_BONUS_EMP.BONUS_CODE)\"\r\n\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_BONUS_EMP.EMP_ID)\"\r\n\t\t\t+ \" WHERE HRMS_BONUS_HDR.DIV_CODE=\"+divId+\" AND HRMS_BONUS_HDR.PAY_MONTH=\"+month+\" AND HRMS_BONUS_HDR.PAY_YEAR = \"+year\r\n\t\t\t+ \" AND HRMS_BONUS_HDR.PAY_IN_SAL='N' AND HRMS_BONUS_HDR.DEDUCT_TAX='Y'\"\r\n\t\t\t+ \" GROUP BY HRMS_BONUS_EMP.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ')\";\r\n\t\t\t\r\n\t\t\tbonusData = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bonusData;\r\n\t}",
"public void calculateEarnings(){\n if (wages.size() > expenses.size()){\n //check size difference\n int sizeUp = wages.size() - expenses.size();\n for(int i = 0; i < sizeUp; i++){\n //add zero(s) to expenses to match up(this assumes no expenses for the week(s))\n expenses.add(BigDecimal.ZERO);\n }\n }\n\n if(expenses.size() > wages.size()){\n //check size difference\n int sizeUp = expenses.size() - wages.size();\n for(int i = 0; i < sizeUp; i++){\n //add zero(s) to expenses to match up(this assumes no income for the week(s))\n wages.add(BigDecimal.ZERO);\n }\n }\n for(int i=0; i < wages.size(); i++){\n BigDecimal profits;\n profits = wages.get(i).subtract(expenses.get(i));\n BigDecimal roundUp = profits.setScale(2, RoundingMode.HALF_UP);\n earningsList.add(roundUp);\n }\n }",
"public int getBalls(){\r\n return balls;\r\n }",
"public String getTotalDeposits(){\n double sum = 0;\n for(Customer record : bank.getName2CustomersMapping().values()){\n for(Account acc: record.getAccounts()){\n sum += acc.getOpeningBalance();\n }\n }\n return \"Total deposits: \"+sum;\n }",
"private double calcB1() {\n double[] dataX = dsX.getDataX();\n double[] dataY = dsY.getDataY();\n double sumX = 0;\n double sumY = 0;\n double sumXY = 0;\n double sumXsq = 0;\n\n for (int i = 0; i < dataX.length; i++) {\n sumX += dataX[i];\n sumY += dataY[i];\n sumXY += dataX[i] * dataY[i];\n sumXsq += Math.pow(dataX[i], 2);\n }\n return (((dataX.length * sumXY) - (sumX * sumY)) / ((dataX.length * sumXsq) - (Math.pow(sumX, 2))));\n }",
"public void GetBonusesInfo() {\n if (CMAppGlobals.DEBUG) Logger.i(TAG, \":: BonusManager.GetBonusesInfo \");\n\n if(CMAppGlobals.API_TOAST)\n Toast.makeText((Context) mContext, \"Request : getBonusesInfo : {\\n\"\n + \"\\n}\"\n , Toast.LENGTH_SHORT).show();\n\n ServiceLocator.getBonusModel().GetBonusesInfo(new WebRequest(\"getBonusesInfo\"),\n new RequestCallback<BonusInfo>(mContext, RequestTypes.REQUEST_GET_BONUS_INFO));\n\n }",
"public int totalCompanies(){\n\treturn companyEmpWageArray.size();\n }",
"public ArrayList<Manager> managersWithNoSubordinates() {\n ArrayList<Manager> managers = new ArrayList<>();\n for (Manager manager :\n departmentHeads) {\n managers.addAll(manager.managersWithNoSubordinates());\n }\n return managers;\n }",
"public float calculate_benefits() {\r\n\t\tfloat calculate = 0.0f;\r\n\t\tcalculate = this.getActivity() * this.getAntiquity() + 100;\r\n\t\treturn calculate;\r\n\t}",
"public void calculateMonthBills() {\r\n\t\tdouble sum = 0;\r\n\r\n\t\tfor (int i = 0; i <= (numberOfBills - counter); i++) {\r\n\r\n\t\t\tsum += invoiceInfo[i].getAmount();\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\\nTotal monthly bills: \" + sum);\r\n\t}",
"public interface IEmployeeBonus {\n double calculateBonus(double salary);\n}",
"private void checkPlan(TripResponse plan, Person[] people) {\n\n // count the debts and amounts\n ExpenseAnalytics analytics = new ExpenseAnalytics(people);\n List<Person> allDebtors = analytics.getDebtors();\n List<Person> allRecipients = analytics.getRecipients();\n\n // turn arrays into maps\n Map<String, Person> debtorsMap = allDebtors.stream()\n .collect(Collectors.toMap(Person::getName, p -> p));\n Map<String, Person> recipientsMap = allRecipients.stream()\n .collect(Collectors.toMap(Person::getName, p -> p));\n\n // run through all reimbursements\n for (Reimbursement reimbursement : plan.getReimbursements()) {\n assertThat(debtorsMap).containsKey(reimbursement.getName());\n\n Person debtor = debtorsMap.get(reimbursement.getName());\n double debt = debtor.getAmount();\n\n // perform all transactions\n for (Transaction transaction : reimbursement.getPayments()) {\n String recipientName = transaction.getRecipient();\n assertThat(recipientsMap).containsKey(recipientName);\n Person recipient = recipientsMap.get(recipientName);\n assertThat(debt).isGreaterThanOrEqualTo(transaction.getAmount());\n debt -= transaction.getAmount();\n recipient.setAmount(recipient.getAmount() - transaction.getAmount());\n\n // separately track how much they actually paid\n debtor.setTotal(debtor.getTotal() + transaction.getAmount());\n recipient.setTotal(recipient.getTotal() - transaction.getAmount());\n }\n\n debtor.setAmount(debt);\n }\n\n // check for all FRESHMAN debtors and recipients that the amounts have equalized\n Optional<Person> extremePerson;\n extremePerson = Stream.of(people).filter(p -> p.isFreshman())\n .max( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double maxFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n extremePerson = Stream.of(people).filter(p -> p.isFreshman())\n .min( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double minFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n logger.info(\"maximum FRESHMAN discrepancy = {}\", Math.abs(maxFreshmanTotal - minFreshmanTotal));\n\n // test maximum tolerance\n assertThat(Math.round(Math.abs(maxFreshmanTotal - minFreshmanTotal) * 100) / 100.0).isLessThanOrEqualTo(0.05);\n\n // check for all NON-freshman debtors and recipients that the amounts have equalized\n extremePerson = Stream.of(people).filter(p -> !p.isFreshman())\n .max( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double maxNonFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n extremePerson = Stream.of(people).filter(p -> !p.isFreshman())\n .min( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double minNonFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n logger.info(\"maximum non-FRESHMAN discrepancy = {}\", Math.abs(maxNonFreshmanTotal - minNonFreshmanTotal));\n\n // test maximum tolerance\n assertThat(Math.round(Math.abs(maxNonFreshmanTotal - minNonFreshmanTotal) * 100) / 100.0).isLessThanOrEqualTo(0.05);\n }",
"public void calculateWageForMonth() {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\temployeeAttendanceUsingCase();\n\t\t\ttotalSalary = totalSalary + salary;\n\t\t\t// return totalSalary;\n\t\t}\n\t}",
"private void calculateIncomings(List<ClientInstructions> instructions) {\r\n\t\tgetCalculationService().calculateTotalAmount(instructions, incomingPredicate).entrySet().stream()\r\n\t\t\t\t.forEach(p -> allIncomings.merge(p.getKey(), p.getValue(), ReportingSystemProcessor::addition));\r\n\t}",
"public static void main(String[] args) {\n\t\tSalariedEmployee salariedemployee = new SalariedEmployee(\"John\",\"Smith\",\"111-11-1111\",new Date(9,25,1993),800.0);\n\t\tHourlyEmployee hourlyemployee = new HourlyEmployee(\"Karen\",\"Price\",\"222-22-2222\",new Date(10,25,1993),900.0,40);\n\t\t\n\t\tCommissionEmployee commissionemployee = new CommissionEmployee(\"jahn\",\"L\",\"333-33-333\",new Date(11,25,1993),1000.0,.06);\n\t\t\n\t\tBasePlusCommissionEmployee basepluscommissionemployee = new BasePlusCommissionEmployee(\"bob\",\"L\",\"444-44-444\",new Date(12,25,1993),1800.0,.04,300);\n\t\t\n\t\tPieceWorker pieceworker = new PieceWorker(\"julee\",\"hong\", \"555-55-555\",new Date(12,25,1993) , 1200, 10);\n\t\tSystem.out.println(\"Employees processes individually\");\n\t\t//System.out.printf(\"%n%s%n%s: $%,.2f%n%n\", SalariedEmployee,\"earned\",SalariedEmployee.earnings());\n\n\t\t//creating employee array\n\t\t\n\t\tEmployee[] employees = new Employee[5];\n\t\t\n\t\t//intializing array with employees \n\t\temployees[0] = salariedemployee;\n\t\temployees[1] = hourlyemployee;\n\t employees[2] = commissionemployee;\n\t\temployees[3] = basepluscommissionemployee;\n\t\temployees[4]= pieceworker;\n\t\t\n\t\tSystem.out.println(\"employees processed polymorphically\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSystem.out.println(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\tint currentMonth = Integer.parseInt(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\t\n\t\t//processing each element into the array\n\t\tfor(Employee currentemployee:employees){\n\t\t\t\n\t\t\t/*if(currentemployee.getBirthDate().getMonth()==currentMonth)\n\t\tSystem.out.println(\"current earnings\"+(currentemployee.earnings()+100));\n\t\t\telse\n\t\t\t\tSystem.out.println(\"current earnings\"+currentemployee.earnings());\n\t\t\t\t*/\n\t\t\tSystem.out.println(currentemployee.toString());\n\t\t}\n\t}",
"public List<Result> calculateResult()\n\t{\n\t\tpersons=calculatePersonWiseContribution(transactions,persons);\t\t\t\n\t\t\n\t\t//calculate total amount spend.\n\t\tfloat totalAmt=calculateTotalAmt(persons);\n\t\t\n\t\t//calculate total persons.\n\t\tint noOfPersons =calculateNoOfPersons(persons);\n\t\t\n\t\t//calculate amount to be contributed by each person (avg amt).\n\t\tfloat avgAmt=totalAmt/noOfPersons;\n\t\t\n\t\t//remove person who calculated = avg amt , since it is idle person hence doesnt participated in transfer money operation\n\t\tList <Person> activePersons=removePerson(persons,avgAmt);\n\t\t\n\t\t//Seperate list of persons who contributed > avg amt (credit list) and <avg amt (debit list).\t\t\n\t\tMap <String, List<Person>> creditDebitList=seperateCreditDebitPersonList(activePersons,avgAmt);\n\t\tList<Person> creditList=creditDebitList.get(\"CREDIT\");\n\t\tList<Person> debitList=creditDebitList.get(\"DEBIT\");\n\t\t\t\t\n\t\t//transfer money from debit list to credit list of persons and store the result.\n\t\t//return the result.\n\t\treturn calculate(creditList,debitList);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\t\n\t\n\t}",
"private void calcBills() {\n\t\tint changeDueRemaining = (int) this.changeDue;\n\n\t\tif (changeDueRemaining >= 20) {\n\t\t\tthis.twenty += changeDueRemaining / 20;\n\t\t\tchangeDueRemaining = changeDueRemaining % 20;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.ten += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.five += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.one += changeDueRemaining;\n\t\t}\n\t}",
"private double calculateCommissionAmountHotels(PrintItinerary itinerary) {\n\t\tdouble commissionAmount = 0.0;\n\t\tif (itinerary.getHotels() != null && itinerary.getHotels().size() > 0) {\n\t\t\tfor (Hotel hotel : itinerary.getHotels()) {\n\t\t\t\tfor (RoomPrice roomPrice : hotel.getSelectedRooms()) {\n\t\t\t\t\tcommissionAmount = commissionAmount\n\t\t\t\t\t\t\t+ roomPrice.getCommissionAmount();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn commissionAmount;\n\t}",
"public BigDecimal getAdvisorFee() {\r\n return advisorFee;\r\n }",
"@Test\n public void getBonosPTest() {\n ProveedorEntity proveedor = pData.get(0);\n List<BonoEntity> lista = bonoLogic.getBonos(proveedor.getId());\n Assert.assertEquals(proveedor.getBonos().size(), lista.size());\n for (BonoEntity entity : lista) {\n if(!data.contains(entity))\n fail(\"Ambas listas deberían contener los mismos bonos\");\n }\n }",
"public Float getBonusBole() {\n return bonusBole;\n }",
"public void effacerBoules(Groupe bs) {\n\t\t\tfor(Boule b:bs) {\n\t\t\t\tcolonnes.get(b.posx).effacer(b.posy);\n\t\t\t}\n\t\t}",
"@Override\n\tpublic double getBonificacao() {\n\t\treturn 0;\n\t}",
"public float calculate_salary() {\r\n\t\tfloat calculate = 1000 + this.calculate_benefits();\r\n\t\treturn calculate;\r\n\t}",
"@Override\r\n\tdouble getBonificacao() {\n\t\treturn 0;\r\n\t}",
"private void preProcessData() {\n\n // Group employees by department\n if (employeesByDepartments == null) {\n\n employeesByDepartments = new HashMap<>();\n\n dataSet.stream().forEach(employee -> {\n\n if (!employeesByDepartments.containsKey(employee.getDepartment()))\n employeesByDepartments.put(employee.getDepartment(), new HashSet<>());\n Set<EmployeeAggregate> employees = employeesByDepartments.get(employee.getDepartment());\n employees.add(employee);\n });\n }\n\n // Find out minimum, and maximum age of the employees\n if (minAge == 0) minAge = dataSet.stream().map(EmployeeAggregate::getAge).min(Integer::compare).get();\n if (maxAge == 0) maxAge = dataSet.stream().map(EmployeeAggregate::getAge).max(Integer::compare).get();\n\n // Group employees by age\n if (employeesByAgeRange == null) {\n\n employeesByAgeRange = new HashMap<>();\n\n // Work out age ranges\n Set<Range> ranges = new HashSet<>();\n int currTopBoundary = (int) Math.ceil((double) maxAge / (double) AGE_RANGE_INCREMENT) * AGE_RANGE_INCREMENT;\n\n while (currTopBoundary >= minAge) {\n Range range = new Range(currTopBoundary - AGE_RANGE_INCREMENT, currTopBoundary);\n ranges.add(range);\n employeesByAgeRange.put(range, new HashSet<>());\n currTopBoundary -= AGE_RANGE_INCREMENT;\n }\n\n // Group employees\n dataSet.stream().forEach(employee -> {\n for (Range range : ranges) {\n if (range.inRange(employee.getAge())) {\n\n employeesByAgeRange.get(range).add(employee);\n\n break;\n }\n }\n });\n }\n }",
"private void calculerBordsDomaine() {\n\t\tfor (Contrainte c : contraintes) {\n\t\t\tbords.add(new Bord(this, c));\n\t\t}\n\t}",
"@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }",
"int getBonusMoney();",
"private double calcB0() {\n double[] dataX = dsX.getDataX();\n double[] dataY = dsY.getDataY();\n double sumX = 0;\n double sumY = 0;\n for (int i = 0; i < dataX.length; i++) {\n sumX += dataX[i];\n sumY += dataY[i];\n }\n return (sumY - (this.B1 * sumX)) / dataX.length;\n }",
"public BigDecimal getBalanceBonus() {\n return balanceBonus;\n }",
"@Override\r\n\tpublic void calculateFinalData() {\n\t\tfor(TeamPO oneTeam:teams.getAllTeams()){\r\n\t\t\toneTeam.calculateTeamDataInOneSeason();\r\n\t\t}\r\n\t}",
"public int calculateBill() {\n\t\treturn chargeVehicle(); \n\t}",
"@Override\n public long totalBalances() {\n long total = 0;\n for(Account account : accounts.values()){\n total += account.balance();\n }\n return total;\n }",
"public BigDecimal getIddepartements() {\n return (BigDecimal) getAttributeInternal(IDDEPARTEMENTS);\n }",
"public double bossHealth(ArrayList<Enemy> currentEnemies) {\n return -1;\n }",
"public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }",
"public static void calculateFitness(Individual[] individuals) {\n for (Individual individual : individuals) {\n individual.fitness = 0;\n for (int i = 0; i < dataSet.size(); i++) {\n for (Rule rule : individual.rulebase) {\n boolean match = true;\n int[] data = dataSet.get(i).getVariables();\n\n for (int j = 0; j < data.length; j++) {\n\n String variable = String.valueOf(data[j]);\n //String variable = \"\" + data[j];\n String[] rulebase = rule.cond;\n\n if ((rulebase[j].equals(variable) != true) && (rulebase[j].equals(\"#\") != true)) {\n match = false;\n }\n }\n\n if (match) {\n String output = String.valueOf(dataSet.get(i).getOutput());\n if (rule.output.equals(output)) {\n individual.fitness++;\n }\n break;\n }\n }\n }\n }\n }",
"@Override\n public double earnings() {\n return salary + commission + quantity;\n }",
"@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}",
"private double calculateCommissionAmountVehicles(PrintItinerary itinerary) {\n\t\tdouble commissionAmount = 0.0;\n\t\tif (itinerary.getVehicles() != null\n\t\t\t\t&& itinerary.getVehicles().size() > 0) {\n\t\t\tfor (Vehicle vehicle : itinerary.getVehicles()) {\n\t\t\t\tcommissionAmount = commissionAmount\n\t\t\t\t\t\t+ vehicle.getPrice().getCommissionAmount();\n\t\t\t}\n\t\t}\n\n\t\treturn commissionAmount;\n\t}",
"public static void main(String[] args) {\n\t\tScanner myScan = new Scanner(System.in);\r\n\t\tString strAns, empName;\r\n\t\tdouble sumSalaries=0;\r\n\t\tboolean found=false;\r\n\t\tDeptEmployee[ ] department = new DeptEmployee [6];\r\n\t\tGregorianCalendar hired;\r\n\t\t\r\n\t\t//Professors\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tProfessor prof1 = new Professor(\"Joseph\",200000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,5,1);\r\n\t\tProfessor prof2 = new Professor(\"Carlos\",150000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,6,1);\r\n\t\tProfessor prof3 = new Professor(\"Mauricio\",100000,hired.getTime(),10);\r\n\t\t\r\n\t\t//Secretaries\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tSecretary sec1 = new Secretary(\"Lina\",50000,hired.getTime(),200);\r\n\t\thired = new GregorianCalendar(1998,5,1);\r\n\t\tSecretary sec2 = new Secretary(\"Lucy\",55000,hired.getTime(),200);\r\n\t\t\r\n\t\t//Administrators\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tAdministrator admin1 = new Administrator(\"Monica\",180,hired.getTime(),160);\r\n\t\t\r\n\t\t//Populate array\r\n\t\tdepartment[0] = prof1;\r\n\t\tdepartment[1] = prof2;\r\n\t\tdepartment[2] = prof3;\r\n\t\tdepartment[3] = sec1;\r\n\t\tdepartment[4] = sec2;\r\n\t\tdepartment[5] = admin1;\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to see the sum of salaries in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tfor (DeptEmployee e : department) \r\n\t\t\t\tsumSalaries += e.computeSalary();\r\n\t\t\tSystem.out.println(\"Sum of department salaries is: \"+sumSalaries);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to locate an employee in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tSystem.out.println(\"Enter the employee name:\");\r\n\t\t\tstrAns = myScan.next();\r\n\t\t\t\r\n\t\t\tfor (DeptEmployee e : department) {\r\n\t\t\t\tempName=e.getName();\r\n\t\t\t\tif (strAns.equals(e.getName())) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tSystem.out.println(e);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tSystem.out.printf(\"The employee %s doesn't exists in department\",strAns);\r\n\t\t\t}\r\n\t }\r\n\t}",
"public static Department createScenarioDepartmentB() {\n\t\t\t//Establish all the employees\n\t\t\tManager managerC = new Manager(\"Manager C\");\n\t\t\tManager managerD = new Manager(\"Manager D\");\n\n\t\t\t//Set up reporting employee hierarchy\n\t\t\tmanagerC.addReportingEmployee(managerD);\n\t\t\t\n\t\t\t//Establish Departments, with head managers\n\t\t\tDepartment departmentB = new Department(managerC);\n\t\t\t\n\t\t\treturn departmentB;\n\t\t}",
"private Employee fillSubordinates(Employee manager, List<Employee> allEmployees, Set<Employee> seenEmployees) {\n\n // this employee is already covered\n seenEmployees.add(manager);\n\n Employee processedEmployee;\n\n //get all employees who have this manager\n List<Employee> subordinateList = allEmployees.stream()\n .filter(employee -> manager.getEmployeeId().equals(employee.getManagerId()))\n .collect(Collectors.toList());\n\n if (subordinateList.size() > 0 ) { // has subordinates\n // Must use final or effectively final in lambda expression\n Set<Employee> seenEmployeesToSend = seenEmployees;\n // recursive call to fill the subordinates of the current employee if any\n List<Employee> processedSubordinates = subordinateList.stream()\n .map(employee -> fillSubordinates(employee , allEmployees, seenEmployeesToSend))\n // Sort employees (under this manager) by Id\n .sorted()\n .collect(Collectors.toList());\n processedEmployee = new Manager(manager, processedSubordinates);\n } else { // if no subordinates exist, return the same object unchanged\n processedEmployee = manager;\n }\n\n return processedEmployee;\n }",
"private double computeForcesWithinCells() {\r\n double potentialEnergy = 0;\r\n \r\n for (int i = 0; i < nXCells; i++) {\r\n for (int j = 0; j < nYCells; j++) {\r\n for (Molecule m1 = cells[i][j].firstMolecule; m1 != null; m1 = m1.nextMoleculeInCell) {\r\n for (Molecule m2 = m1.nextMoleculeInCell; m2 != null; m2 = m2.nextMoleculeInCell) {\r\n double pe = computeForceBetweenMolecules(m1, m2);\r\n if (pe != 0) {\r\n potentialEnergy += pe;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return potentialEnergy;\r\n }",
"protected Double getCAProfessionnel() {\n List<Facture> facturesProfessionnel = this.factureProfessionnelList;\n Double ca = 0.0; \n for(Facture f : facturesProfessionnel )\n ca = ca + f.getTotalHT();\n \n return ca ; \n \n }",
"public double getCalories() {\n\t\tdouble mealCalories = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble calories = foodDetail.get(foodName).getCalories();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCalories += calories * portion;\n\t\t}\n\t\treturn mealCalories;\n\t}",
"public int getNbonds() {\n return nbonds;\n }",
"@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }",
"private double computeForcesWithNeighbourCells() {\r\n double potentialEnergy = 0;\r\n for (Cell[] cellPair: neighbourCells) { \r\n if (cellPair[1].firstMolecule == null) continue; // If cell2 is empty, skip\r\n \r\n for (Molecule m1 = cellPair[0].firstMolecule; m1 != null; m1 = m1.nextMoleculeInCell) {\r\n for (Molecule m2 = cellPair[1].firstMolecule; m2 != null; m2 = m2.nextMoleculeInCell) {\r\n double pe = computeForceBetweenMolecules(m1, m2);\r\n if (pe != 0) {\r\n potentialEnergy += pe;\r\n }\r\n }\r\n }\r\n }\r\n return potentialEnergy;\r\n }",
"BigDecimal calculateDailyIncome(List<Instruction> instructions);",
"public void calculate() {\r\n\t\tint bias = hasBias();\r\n\r\n\t\tfor(int i = bias; i < getNeurons().size(); i++) {\r\n\t\t\tgetNeurons().get(i).activate(); \r\n\t\t}\r\n\t}",
"private Object[][] getAllowanceAmt(String month, String year, String divId) {\r\n\t\tObject[][]data = null;\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT TO_CHAR(NVL(SUM(ALLW_TAX_AMT),0),9999999990.99),HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID \" \r\n\t\t\t+\" FROM HRMS_ALLOWANCE_HDR \"\r\n\t\t\t+\" INNER JOIN HRMS_ALLOWANCE_EMP_DTL ON (HRMS_ALLOWANCE_EMP_DTL.ALLW_ID = HRMS_ALLOWANCE_HDR.ALLW_ID) \"\r\n\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID) \"\r\n\t\t\t+\" INNER JOIN HRMS_CREDIT_HEAD ON (HRMS_CREDIT_HEAD.CREDIT_CODE = HRMS_ALLOWANCE_HDR.ALLW_CREDIT_HEAD) \" \r\n\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'MM')=\"+month+\" \"\r\n\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'YYYY')=\"+year+\" \" \r\n\t\t\t+\" AND EMP_DIV = \"+divId+\" \"\r\n\t\t\t+\" GROUP BY HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID\";\r\n\t\t\tdata = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in allowance query\",e);\r\n\t\t} //end of catch\t\r\n\t\treturn data;\r\n\t}",
"void updateCoefficientForBets(ArrayList<Bet> bets) throws DAOException;",
"abstract public double getBegBal(int yr);",
"@Override\n\tpublic void displayAvgSalariesCompanies() {\n\n\t}",
"public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }",
"@Override\n public List<Employee> getEmployeePositiveBalance() {\n return employeeRepository\n .readEmployee()\n .stream()\n .filter(employee -> employee.getBalance() > 0)\n .collect(Collectors.toList())\n ;\n }",
"@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }",
"public void determinarEstadoSalud(){\n \n for (int i = 0; i < listaEmpleados.size(); i++) {\n //Este for chequea si tiene alguna enfermedad preexistente -> asigna puntajes de acuerdo\n for (int j = 0; j < factoresRiesgo.length; j++) {\n \n if(listaEmpleados.get(i).getFactoresRiesgo().contains(factoresRiesgo[j])){ \n listaEmpleados.get(i).setEstadoSalud(30);\n }\n }\n //Verifica el rango de edad de la persona -> asigna puntajes de acuerdo\n if(listaEmpleados.get(i).getEdad() >= 70){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+50);\n }\n if(listaEmpleados.get(i).getEdad() >= 40 && listaEmpleados.get(i).getEdad() < 70 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+30);\n }\n if(listaEmpleados.get(i).getEdad() >= 20 && listaEmpleados.get(i).getEdad() < 40 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+10);\n }\n //Los hombre tienen mas probabilidades de morir por la mayoria de enfermedad, incluyendo el covid-19\n if(listaEmpleados.get(i).getSexo().equals(\"hombre\")){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+15);\n \n }\n //Verifica los diferentes puntajes y almacena los empleados en diferentes arraylist dependiendo su prioridad\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 80){\n EmpleadosPrioridadAlta.add(listaEmpleados.get(i)); \n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 60 && listaEmpleados.get(i).getEstadoSalud() < 80){\n EmpleadosPrioridadMediaAlta.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 35 && listaEmpleados.get(i).getEstadoSalud() < 60){\n EmpleadosPrioridadMedia.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 0 && listaEmpleados.get(i).getEstadoSalud() < 35){\n EmpleadosPrioridadBaja.add(listaEmpleados.get(i));\n }\n \n } \n \n }",
"private void addAllDepartments() {\n\t\tfinal BillingPeriod bp = (BillingPeriod) this.getBean().getContainer()\n\t\t\t\t.findBean(\"org.rapidbeans.clubadmin.domain.BillingPeriod\", this.getBillingPeriod().getIdString());\n\t\tfor (RapidBean bean : this.getBean().getContainer()\n\t\t\t\t.findBeansByType(\"org.rapidbeans.clubadmin.domain.Department\")) {\n\t\t\tfinal Department dep = (Department) bean;\n\t\t\tif (bp.getDepartments() == null || !bp.getDepartments().contains(dep)) {\n\t\t\t\tbp.addDepartment(dep);\n\t\t\t}\n\t\t}\n\t}",
"public List<TransactionOutput> calculateAllSpendCandidates() {\n return calculateAllSpendCandidates(true, true);\n }",
"@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}",
"public BigDecimal getTotalEarnings() {\n totalEarnings = new BigDecimal(0);\n for(BigDecimal earnings: earningsList){\n totalEarnings = totalEarnings.add(earnings);\n }\n return totalEarnings.setScale(2, RoundingMode.HALF_UP);\n }",
"private float[] calculateAllGrossPay()\n {\n int numberEmployees = employees.size();\n float[] allGrossPay = new float[numberEmployees];\n int position = 0;\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext())\n {\n myEmployee = emp.next();\n allGrossPay[position] = myEmployee.getHours() * myEmployee.getRate();\n position++;\n }\n return allGrossPay;\n }",
"public void createBalls() {\n // add the required amount of balls according to the levelinfo.\n for (int i = 0; i < this.levelInfo.numberOfBalls(); i++) {\n Ball ball = new Ball(new Point(400, 580), 5, java.awt.Color.WHITE);\n // let the ball know the frame limits.\n ball.updateFrame(this.upper, this.lower, this.right, this.left);\n // let the ball know the collidables.\n ball.setGameEnvironment(this.environment);\n // use the velocity from the velocity list of levelinfo.\n Velocity v = this.levelInfo.initialBallVelocities().get(i);\n ball.setVelocity(v);\n // add the ball to the game.\n ball.addToGame(this);\n // increase the ball counter by 1.\n this.ballCounter.increase(1);\n }\n }",
"public static void addBalls() {\n\t\tfor (int i = 0; i < numberOfBalls; i++) {\n\t\t\tPanel.balls.add(new Ball());\n\t\t}\n\t}",
"public static void main(String[] args) {\n ArrayList saleEmployees = new ArrayList<>();\n saleEmployees.add(\"Irene\");\n saleEmployees.add(\"Mihael\");\n\n // emplyees list for service\n ArrayList purchaseEmployees = new ArrayList<>();\n purchaseEmployees.add(\"Eric\");\n purchaseEmployees.add(\"Irene\");\n\n\n Department direction = new Department(\"Alfred Boss\", \"Vorstand\");\n Department sale = new Department(\"Mustermann Max\", \"Vertrieb\", direction, saleEmployees);\n Department salePrivat = new Department(\"Musterfrau Angela\", \"Vertrieb Privatkunden\", sale);\n Department saleB2B = new Department(\"Muste Alfons\", \"Vertrieb Firmenkunden\", sale);\n Department purchase = new Department(\"Kufmann Alois\", \"Einkauf\", direction);\n Department purchaseMechanic = new Department(\"Gunz Herlinde\", \"Einkauf Mechanik\", purchase, purchaseEmployees);\n Department purchaseMechanicSmall = new Department(\"Friedrich Hermann\", \"Einkauf Kleinteile\", purchaseMechanic);\n Department purchaseMechanicBig = new Department(\"Peter Hannelore\", \"Einkauf Großteile\", purchaseMechanic);\n Department purchaseMechanicBigEU = new Department(\"But Moritz\", \"Einkauf Europa\", purchaseMechanicBig);\n Department service = new Department(\"Gyula H\", \"Service\");\n\n service.switchDepartment(saleB2B);\n service.switchDepartment(purchase);\n\n service.removeDepartment();\n\n sale.switchEmployees(\"Mihael\", purchaseMechanicBigEU);\n\n purchaseMechanicBigEU.switchDepartment(direction);\n direction.printOrganisation(\" \", \"- \", 1);\n\n }",
"public int getBallsCount() {\n return balls.size();\n }",
"public String accountsOfferingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getAccount2MicroloansOffered().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of accounts providing micro loans: \" +total +\" worth a value of \"+sum;\n }",
"public int computeDamageTo(Combatant opponent) { return 0; }",
"int calculate() {\n return getSum() + b1;\n }",
"private void calculateDebitAgingDATE(List<EMCQuery> periodQueries, List<DebtorsAgingHelper> agingList, Date atDate, String customerId, EMCUserData userData) {\n for (int i = 0; i < periodQueries.size(); i++) {\n //Calculate sum of debits & credits for each period\n EMCQuery query = periodQueries.get(i);\n query.addFieldAggregateFunction(\"credit\", \"SUM\");\n query.addFieldAggregateFunction(\"creditAmountSettled\", \"SUM\");\n\n Object[] totals = (Object[]) util.executeSingleResultQuery(query, userData);\n if (totals != null) {\n BigDecimal debitTotal = (BigDecimal) totals[0] == null ? BigDecimal.ZERO : (BigDecimal) totals[0];\n BigDecimal debitSettledTotal = (BigDecimal) totals[1] == null ? BigDecimal.ZERO : (BigDecimal) totals[1];\n BigDecimal creditTotal = (BigDecimal) totals[2] == null ? BigDecimal.ZERO : (BigDecimal) totals[2];\n BigDecimal creditSettledTotal = (BigDecimal) totals[3] == null ? BigDecimal.ZERO : (BigDecimal) totals[3];\n\n //Subtract outstanding credits from outstanding debits\n BigDecimal binAmount = debitTotal.subtract(debitSettledTotal).subtract(creditTotal.subtract(creditSettledTotal));\n agingList.get(i).setBinAmount(binAmount);\n } else {\n agingList.get(i).setBinAmount(BigDecimal.ZERO);\n }\n }\n //If atDate less than today, ignore updates made to transactions between atDate and today.\n //Only check dates, not time\n Calendar atCalendar = Calendar.getInstance();\n atCalendar.setTime(atDate);\n atCalendar.set(Calendar.HOUR, 0);\n atCalendar.set(Calendar.MINUTE, 0);\n atCalendar.set(Calendar.SECOND, 0);\n atCalendar.set(Calendar.MILLISECOND, 0);\n\n Calendar nowCalendar = Calendar.getInstance();\n nowCalendar.setTime(Functions.nowDate());\n nowCalendar.set(Calendar.HOUR, 0);\n nowCalendar.set(Calendar.MINUTE, 0);\n nowCalendar.set(Calendar.SECOND, 0);\n nowCalendar.set(Calendar.MILLISECOND, 0);\n\n if (atCalendar.compareTo(nowCalendar) < 0) {\n int bin = 0;\n //For each bin, revert transaction history\n for (DebtorsAgingHelper binHelper : agingList) {\n //Revert debits and credits seperately.\n EMCQuery settledQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n settledQuery.addFieldAggregateFunction(\"debitSettled\", \"SUM\");\n //Check that transaction existed at atDate. Bev requested that we remove this check.\n //settledQuery.addAnd(\"transactionCreatedDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n\n settledQuery.openAndConditionBracket();\n settledQuery.addOr(\"debitTransactionDate\", binHelper.getBinEndDate(), EMCQueryConditions.LESS_THAN_EQ);\n settledQuery.closeConditionBracket();\n\n //Customer is optional\n if (customerId != null) {\n settledQuery.addAnd(\"customerId\", customerId);\n }\n\n //Only include transactions settled after atDate.\n settledQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n\n if (binHelper.getBinStartDate() != null) {\n settledQuery.openAndConditionBracket();\n settledQuery.addOr(\"debitTransactionDate\", binHelper.getBinStartDate(), EMCQueryConditions.GREATER_THAN_EQ);\n settledQuery.closeConditionBracket();\n }\n\n BigDecimal debitSettled = (BigDecimal) util.executeSingleResultQuery(settledQuery, userData);\n if (debitSettled == null) {\n debitSettled = BigDecimal.ZERO;\n }\n\n settledQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n settledQuery.addFieldAggregateFunction(\"creditSettled\", \"SUM\");\n //Check that transaction existed at atDate. Bev requested that we remove this check.\n //settledQuery.addAnd(\"transactionCreatedDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n\n settledQuery.openAndConditionBracket();\n settledQuery.addOr(\"creditTransactionDate\", binHelper.getBinEndDate(), EMCQueryConditions.LESS_THAN_EQ);\n settledQuery.closeConditionBracket();\n\n //Customer is optional\n if (customerId != null) {\n settledQuery.addAnd(\"customerId\", customerId);\n }\n\n //Only include transactions settled after atDate.\n settledQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n\n if (binHelper.getBinStartDate() != null) {\n settledQuery.openAndConditionBracket();\n settledQuery.addOr(\"creditTransactionDate\", binHelper.getBinStartDate(), EMCQueryConditions.GREATER_THAN_EQ);\n settledQuery.closeConditionBracket();\n }\n\n BigDecimal creditSettled = (BigDecimal) util.executeSingleResultQuery(settledQuery, userData);\n if (creditSettled == null) {\n creditSettled = BigDecimal.ZERO;\n }\n\n //System.out.println(\"Bin \" + (bin++ + 1) + \" Debit Added Back: \" + debitSettled + \" Credit Added Back: \" + creditSettled);\n\n //Add settled amount & discount back to bin and subtract credit total\n //binHelper.setBinAmount(binHelper.getBinAmount().add((debitSettled).add(totalDiscount)).subtract(creditSettled));\n binHelper.setBinAmount(binHelper.getBinAmount().add(debitSettled).subtract(creditSettled));\n }\n }\n }",
"int getBattlesLost();",
"@Override\n\tpublic void businessMoney() {\n\n\t}",
"public ArrayList<Adherant> getAd() {\n return adherants;\n }",
"public static void hardestBoss() {\r\n // Get array with names of bosses.\r\n BossNames[] names = BossNames.values();\r\n\r\n // Get array of damage/attack points of the bosses.\r\n Boss boss = new Boss();\r\n int bossDamage[] = boss.getBossDamage();\r\n\r\n // Calculate max damage/attack points using for-each loop.\r\n int maxDamage = bossDamage[0];\r\n for (int damage : bossDamage) {\r\n if (damage > maxDamage) {\r\n maxDamage = damage;\r\n }\r\n }\r\n\r\n // Search array for maxDamage to calculate index.\r\n int index = -1;\r\n for (int i = 0; i < bossDamage.length; i++) {\r\n if (bossDamage[i] == maxDamage) {\r\n index = i;\r\n }\r\n }\r\n\r\n if (index != -1) {\r\n console.println(\"The boss with the greatest attack points is \" + names[index] + \".\");\r\n }\r\n }",
"private static List<Department> compute(Collection<Employee> employees) {\n Map<String, Employee> employeeMap = employees.stream().collect(Collectors.toMap(e -> e.getDeptName(), Function.identity(), (old, newOne) -> newOne));\n\n\n// Map<string, dept>\n// getEmp\n// get account\n// check slap\n// construct department\n// put department in List\n\n\nreturn null;\n\n }",
"public static void main(String[] args) {\n Company myCompany = new Company();\n System.out.println(myCompany.getName());\n Worker oyelowo = new JuniorWorker(989.9);\n Worker Dan = new JuniorWorker(987.8);\n Worker Shane = new MidLevelWorker(34.5);\n Worker Dolan = new SeniorWorker(4567.8);\n Worker Maria = new SeniorWorker(84.3);\n SeniorWorker Sam = new SeniorWorker();\n JuniorWorker jim = new JuniorWorker(\"Jim\", \"HJK\", 1, 345.9);\n System.out.println(jim.getBalance());\n\n\n System.out.println(myCompany.getBalance() + \" \" +myCompany.getAuthorizationKey());\n\n\n\n myCompany.paySalary(1000.0, oyelowo);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n\n\n System.out.println();\n System.out.println(myCompany.getBalance());\n System.out.println(myCompany.getDebits());\n System.out.println(oyelowo.getBalance(myCompany));\n System.out.println(Dan.getBalance(myCompany));\n\n\n }",
"public void payday ()\n {\n double amount;\n\n for (int count=0; count < staffList.length; count++)\n {\n System.out.println (staffList[count]);\n\n amount = staffList[count].pay(); // polymorphic\n\n if(count == 0)\n {\n\t\t\t ChristmasBonus bonus;\n\t\t\t bonus = new Executive2(\"Sam\", \"123 Main Line\", \"555-0469\", \"123-45-6789\", 2423.07);\n\t\t\t bonus.BonusPay();\n\t\t }\n if(count == 1)\n {\n\t\t\t ChristmasBonus bonus;\n\t\t\t bonus = new Employee2(\"Carla\", \"456 Off Line\", \"555-0101\", \"987-65-4321\", 1246.15);\n\t\t\t bonus.BonusPay();\n\t\t }\n\t\t if(count == 2)\n\t\t {\n\t\t\t ChristmasBonus bonus;\n\t\t\t bonus = new Employee2(\"Woody\", \"789 Off Rocker\", \"555-0000\", \"010-20-3040\", 1169.23);\n\t\t\t bonus.BonusPay();\n\t\t }\n\t\t if(count == 3)\n\t\t {\n\t\t\t ChristmasBonus bonus;\n\t\t\t bonus = new Hourly2(\"Diane\", \"678 Fifth Ave.\", \"555-0690\", \"958-47-3625\", 10.55);\n\t\t\t bonus.BonusPay();\n\t\t }\n\t\t if(count == 4)\n\t\t {\n\t\t\tChristmasBonus bonus;\n\t\t\tbonus = new Volunteer2(\"Norm\", \"987 Suds Blvd.\", \"555-8374\");\n\t\t\tbonus.BonusPay();\n\t\t}\n\t\tif(count == 5)\n\t\t{\n\t\t\tChristmasBonus bonus;\n\t\t\tbonus = new Volunteer2(\"Cliff\", \"321 Duds Lane\", \"555-7282\");\n\t\t\tbonus.BonusPay();\n\t\t}\n\t\tif(count == 6)\n\t\t{\n\t\t\tChristmasBonus bonus;\n\t\t\tbonus = new Commission(\"Ron\", \"546 Mainland Dr.\", \"555-8141\", \"547-87-9845\", 11.75, .20);\n\t\t\tbonus.BonusPay();\n\t\t}\n\t\tif(count == 7)\n\t\t{\n\t\t\tChristmasBonus bonus;\n\t\t\tbonus = new Commission(\"Sammy\", \"180 Barkley Lane\", \"555-6256\", \"695-14-3824\", 14.50, .15);\n\t\t\tbonus.BonusPay();\n\t\t}\n\n if (amount == 0.0)\n System.out.println (\"Thanks!\");\n else\n System.out.println (\"Paid: \" + amount);\n\n System.out.println (\"-----------------------------------\");\n }\n }",
"boolean hasBonusMoney();",
"public List<Employee> listEmployees (int managerId){\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\ttry {\n\t\t\t// use prepared statements to prevent sql injection attacks\n\t\t\tPreparedStatement stmt = null;\n\t\t\t\n // the query to send to the database\n String query = \"SELECT e.EmployeeID, e.FirstName, e.LastName, e.ManagerID As ManagerID, (SELECT COUNT(*) FROM employees WHERE ManagerID = e.EmployeeID) AS DirectReports FROM employees e \"; \n \n if (managerId == 0) {\n // select where employees reportsto is null\n query += \"WHERE e.ManagerID = 0\";\n stmt = _conn.prepareStatement(query);\n }else{\n // select where the reportsto is equal to the employeeId parameter\n query += \"WHERE e.ManagerID = ?\" ;\n stmt = _conn.prepareStatement(query);\n stmt.setInt(1, managerId);\n }\n\t\t\t// execute the query into a result set\n\t\t\tResultSet rs = stmt.executeQuery();\n \n\t\t\t// iterate through the result set\n\t\t\twhile(rs.next()) {\t\n\t\t\t\t// create a new employee model object\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\t\n\t\t\t\t// select fields out of the database and set them on the class\n\t\t\t\t//employee.setEmployeeID(rs.getString(\"EmployeeID\"));\n\t\t\t\t//employee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\t//employee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\t//employee.setManagerID(rs.getString(\"ManagerID\"));\n employee.setHasChildren(rs.getInt(\"DirectReports\") > 0); \n\t\t\t\t//employee.setFullName();\n\t\t\t\t\n\t\t\t\t// add the class to the list\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// return the result list\n\t\treturn employees;\n\t\t\n\t}"
]
| [
"0.55781394",
"0.52641964",
"0.5117843",
"0.5015633",
"0.49773747",
"0.49663022",
"0.49472064",
"0.49429193",
"0.49368602",
"0.48369765",
"0.48369765",
"0.4816875",
"0.4816243",
"0.47472495",
"0.47251195",
"0.47220334",
"0.47164822",
"0.47053194",
"0.46761858",
"0.46680924",
"0.4665376",
"0.46490815",
"0.46220583",
"0.46172726",
"0.4610065",
"0.46084535",
"0.4586302",
"0.45826393",
"0.45810935",
"0.45808277",
"0.45693624",
"0.45688412",
"0.45551676",
"0.4554458",
"0.45536062",
"0.45392436",
"0.45206976",
"0.45174676",
"0.45089555",
"0.44996226",
"0.44826183",
"0.4475332",
"0.4470002",
"0.4462807",
"0.446056",
"0.44475",
"0.44449782",
"0.4431908",
"0.4430216",
"0.44253895",
"0.44224998",
"0.44190195",
"0.44169647",
"0.44122577",
"0.44112268",
"0.44027275",
"0.44004232",
"0.43907988",
"0.43902826",
"0.4380628",
"0.43802196",
"0.43773645",
"0.43709138",
"0.43698665",
"0.43690342",
"0.43614057",
"0.43546876",
"0.4350703",
"0.43363082",
"0.43343213",
"0.43314263",
"0.43270272",
"0.43264565",
"0.43242478",
"0.43228582",
"0.4318088",
"0.43159887",
"0.43155253",
"0.42993718",
"0.4299304",
"0.42842877",
"0.4283859",
"0.42779922",
"0.42727244",
"0.42715552",
"0.4264055",
"0.42624694",
"0.42608374",
"0.42600432",
"0.42594182",
"0.42579785",
"0.4253555",
"0.4251716",
"0.42481446",
"0.42463788",
"0.42447338",
"0.4244659",
"0.42413008",
"0.4241136",
"0.4238736"
]
| 0.5695143 | 0 |
Calculate the vacation days of all the people working for this department | public void calculateVacationDays(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getVacationDays() {\n\t\treturn super.getVacationDays()+ 3;\n\t}",
"public List<LocalDate> getWorkingDaysVacations(List<Vacation> vacationList) {\n\n List<LocalDate> listToReturn = new ArrayList<>();\n\n for (LocalDate date : getDaysBetweenDates(vacationList)) {\n\n if (dateDiffOfWeekend(date)) {\n\n listToReturn.add(date);\n }\n }\n return listToReturn;\n }",
"public int numberOfAvailableDays(List<Vacation> employeeList, Vacation formVacation) {\n\n int numberOfDays = 0;\n List<Vacation> formVacationDays = new ArrayList<>();\n formVacationDays.add(formVacation);\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeList);\n List<LocalDate> formVacations = getDaysBetweenDates(formVacationDays);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n numberOfDays = numberOfDays - getTotalNumberOfWorkingDays(formVacations);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }",
"private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}",
"public int numberOfAvailableDays(List<Vacation> employeeVacationList) {\n\n int numberOfDays = 0;\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeVacationList);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }",
"public List<LocalDate> getDaysBetweenDates(List<Vacation> vacationList) {\n\n List<LocalDate> dateList = new ArrayList<>();\n for (Vacation vacation : vacationList) {\n\n long days = dateDiffInNumberOfDays(vacation.getVacationStartDay(), vacation.getVacationEndDay());\n for (int i = 0; i <= days; i++) {\n\n LocalDate d = vacation.getVacationStartDay().plus(i, ChronoUnit.DAYS);\n dateList.add(d);\n }\n }\n\n return dateList;\n }",
"public int betweenDates() {\n return Period.between(arrivalDate, departureDate).getDays();\n }",
"public ArrayList<String> getVacationDay(GregorianCalendar date) throws IOException {\r\n\t\tArrayList<String> vacation = new ArrayList<String>();\r\n\t\tif (calendar.existsVacationDay(date)) {\r\n\t\t\t// getting shifts\r\n\t\t\tArrayList<Turno> shifts = calendar.getShiftsOfADay(date);\r\n\t\t\tfor (Turno t : shifts) {\r\n\t\t\t\t// adding number of doctors\r\n\t\t\t\tvacation.add(Integer.toString(t.getNumberOfDoctors()));\r\n\t\t\t}\r\n\t\t\t// adding special date\r\n\t\t\tvacation.add(shifts.get(0).getSpecialDate());\r\n\t\t\treturn vacation;\r\n\t\t}\r\n\t\telse throw new IOException(\"La fecha no corresponde a ningun dia vacacional \");\t\r\n\t}",
"Integer getDaysSpanned();",
"public int calcDays() {\n\t\tint days = day-1;\r\n\t\tdays += ((month-1)*30);\r\n\t\tdays += ((year -2000) * (12*30));\r\n\t\treturn days;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner myScan = new Scanner(System.in);\r\n\t\tString strAns, empName;\r\n\t\tdouble sumSalaries=0;\r\n\t\tboolean found=false;\r\n\t\tDeptEmployee[ ] department = new DeptEmployee [6];\r\n\t\tGregorianCalendar hired;\r\n\t\t\r\n\t\t//Professors\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tProfessor prof1 = new Professor(\"Joseph\",200000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,5,1);\r\n\t\tProfessor prof2 = new Professor(\"Carlos\",150000,hired.getTime(),10);\r\n\t\thired = new GregorianCalendar(2019,6,1);\r\n\t\tProfessor prof3 = new Professor(\"Mauricio\",100000,hired.getTime(),10);\r\n\t\t\r\n\t\t//Secretaries\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tSecretary sec1 = new Secretary(\"Lina\",50000,hired.getTime(),200);\r\n\t\thired = new GregorianCalendar(1998,5,1);\r\n\t\tSecretary sec2 = new Secretary(\"Lucy\",55000,hired.getTime(),200);\r\n\t\t\r\n\t\t//Administrators\r\n\t\thired = new GregorianCalendar(1973,1,1);\r\n\t\tAdministrator admin1 = new Administrator(\"Monica\",180,hired.getTime(),160);\r\n\t\t\r\n\t\t//Populate array\r\n\t\tdepartment[0] = prof1;\r\n\t\tdepartment[1] = prof2;\r\n\t\tdepartment[2] = prof3;\r\n\t\tdepartment[3] = sec1;\r\n\t\tdepartment[4] = sec2;\r\n\t\tdepartment[5] = admin1;\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to see the sum of salaries in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tfor (DeptEmployee e : department) \r\n\t\t\t\tsumSalaries += e.computeSalary();\r\n\t\t\tSystem.out.println(\"Sum of department salaries is: \"+sumSalaries);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Do you want to locate an employee in department? (Y/N)\");\r\n\t\tstrAns = myScan.next();\r\n\t\tif (strAns.equalsIgnoreCase(\"Y\")) {\r\n\t\t\tSystem.out.println(\"Enter the employee name:\");\r\n\t\t\tstrAns = myScan.next();\r\n\t\t\t\r\n\t\t\tfor (DeptEmployee e : department) {\r\n\t\t\t\tempName=e.getName();\r\n\t\t\t\tif (strAns.equals(e.getName())) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tSystem.out.println(e);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tSystem.out.printf(\"The employee %s doesn't exists in department\",strAns);\r\n\t\t\t}\r\n\t }\r\n\t}",
"public int getDiasVacaciones() {\r\n\t\treturn super.getDiasVacaciones()/2;\r\n\t}",
"public int daysOverdue(int today);",
"public static int numOfWorkingDays(PublicHolidayRepository phRep, LocalDate start, LocalDate end) {\r\n\t\t\r\n\t\tint count = 0;\r\n\t\tArrayList<Date> phDates1 = phRep.findAllPublicHolidayDates();\r\n\t\tArrayList<LocalDate> phDates=new ArrayList<LocalDate>();\r\n\t\tfor(Date d:phDates1)\r\n\t\t{\r\n\t\t\tphDates.add(d.toLocalDate());\r\n\t\t}\r\n\t\tfor(LocalDate date = start; date.isBefore(end.plusDays(1)); date = date.plusDays(1)) {\r\n\t\t\tSystem.out.println(date.getDayOfWeek());\r\n\t\t\tif(date.getDayOfWeek() == DayOfWeek.SATURDAY)\r\n\t\t\t\tcontinue;\r\n\t\t\tif(date.getDayOfWeek() == DayOfWeek.SUNDAY)\r\n\t\t\t\tcontinue;\r\n\t\t\tif(phDates.contains(date))\r\n\t\t\t\tcontinue;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"long getTermDays();",
"public static int getDaysForecasted(ScheduleGroupData scheduleGroupData)\n \tthrows RetailException\n {\n CorporateEntity corporateEntity = null;\n List profileList = null;\n int daysForecasted = 0;\n \n corporateEntity = new CorporateEntity(scheduleGroupData);\n \n //get profile list\n profileList = corporateEntity.getScheduleProfileList();\n \n //take first profile if exist(there should only be up to 1 for each department)\n if(profileList.size() > 0)\n {\n daysForecasted = ((ScheduleProfile)profileList.get(0)).getSkdprofLen().intValue();\n }\n else\n {\n daysForecasted = -1;\n }\n return daysForecasted;\n }",
"public float calculateTotalFee(){\n int endD = parseInt(endDay);\n int startD = parseInt(startDay);\n int endM = parseInt(convertMonthToDigit(endMonth));\n int startM = parseInt(convertMonthToDigit(startMonth));\n int monthDiff = 0;\n float totalFee = 0;\n //get the stay duration in months\n monthDiff = endM - startM;\n \n System.out.println(\"CALCULATING TOTAL FEE:\");\n \n stayDuration = 1;\n if(monthDiff == 0){ //on the same month\n if(startD == endD){\n stayDuration = 1;\n }else if(startD < endD){ //Same month, diff days\n stayDuration = 1 + (parseInt(endDay) - parseInt(startDay));\n }\n }else if(monthDiff > 0){ //1 month difference\n \n if(startD > endD){ // End day is next month\n switch(startMonth){\n case \"January\": case \"March\": case \"May\": case \"July\": case \"August\": \n case \"October\": case \"December\":\n stayDuration = 1 + ( (31+ parseInt(endDay)) - parseInt(startDay));\n break;\n\n case \"April\": case \"June\": case \"September\": case \"November\":\n stayDuration = 1 + ((30+ parseInt(endDay)) - parseInt(startDay));\n break; \n \n case \"February\": \n stayDuration = 1 + ((29+ parseInt(endDay)) - parseInt(startDay));\n break; \n default:\n break;\n }\n }else if(startD <= endD){ //if end day is greater than start day\n switch(startMonth){\n case \"January\": case \"March\": case \"May\": case \"July\": case \"August\": \n case \"October\": case \"December\":\n stayDuration = 1 + ((parseInt(endDay)) - parseInt(startDay));\n stayDuration += 31;\n break;\n\n case \"April\": case \"June\": case \"September\": case \"November\":\n stayDuration = 1 + ( (parseInt(endDay)) - parseInt(startDay));\n stayDuration += 30;\n break; \n \n case \"February\": \n stayDuration = 1 + ( (parseInt(endDay)) - parseInt(startDay));\n stayDuration += 29;\n break; \n \n default:\n break;\n }\n }\n }else if(monthDiff < 0){\n if(startMonth == \"December\" && endMonth == \"January\"){\n if(startD > endD){ // End day is next month\n switch(startMonth){\n case \"January\": case \"March\": case \"May\": case \"July\": case \"August\": \n case \"October\": case \"December\":\n stayDuration = 1 + ( (31+ parseInt(endDay)) - parseInt(startDay));\n break;\n\n case \"April\": case \"June\": case \"September\": case \"November\":\n stayDuration = 1 + ((30+ parseInt(endDay)) - parseInt(startDay));\n break; \n\n case \"February\": \n stayDuration = 1 + ((29+ parseInt(endDay)) - parseInt(startDay));\n break; \n default:\n break;\n }\n }else{\n stayDuration = 1 + ((parseInt(endDay)) - parseInt(startDay));\n stayDuration += 31;\n }\n }\n }\n \n totalFee = (int) (getSelectedRoomsCounter() * getSelectedRoomPrice());\n totalFee *= stayDuration;\n \n //console log\n System.out.println(\"stayDuration: \"+ stayDuration);\n System.out.println(\"Total Fee: \" + totalFee +\"php\");\n return totalFee;\n }",
"public static void main(String[] args) {\n\n LocalDate today = LocalDate.now();\n System.out.println(\"today = \" + today);\n\n LocalDate tomorrow = today.plus(1, ChronoUnit.DAYS);\n System.out.println(\"tomorrow = \" + tomorrow );\n\n LocalDate yesterday = tomorrow.minusDays(2);\n System.out.println(\"yesterday = \" + yesterday);\n\n LocalDate independenceDay = LocalDate.of(2019, Month.DECEMBER, 11);\n DayOfWeek dayOfWeek = independenceDay.getDayOfWeek();\n System.out.println(\"dayOfWeek = \" + dayOfWeek);\n\n\n\n\n }",
"int getNumberDays();",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Integer getDateDiffWorkingDays(Date dateFrom, Date dateTo) {\n\t\tString sql = dateFrom.after(dateTo)\n\t\t\t\t? \"select count(*) * -1 from calendar where id_date >= :dateTo and id_date < :dateFrom and holiday = 0\"\n\t\t\t\t\t\t: \"select count(*) from calendar where id_date > :dateFrom and id_date <= :dateTo and holiday = 0\";\n\t\tQuery query = entityManager.createNativeQuery(sql);\n\t\tquery.setParameter(\"dateFrom\", dateFrom);\n\t\tquery.setParameter(\"dateTo\", dateTo);\n\t\treturn Utils.isNull(Utils.first(query.getResultList()), (Integer) null);\n\t}",
"List<Day> getDays(String userName);",
"private long daysBetween() throws ParseException {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter the date of when you rented the game dd/MM/yyyy:\");\n String dateReturn = input.nextLine();\n Date date = new SimpleDateFormat(\"dd/MM/yyyy\").parse(dateReturn);\n long interval = new Date().getTime() - date.getTime();\n return TimeUnit.DAYS.convert(interval, TimeUnit.MILLISECONDS);\n }",
"public int getFulfillmentTimeInDays () {\n return 0;\n }",
"public int getLBR_ProtestDays();",
"public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }",
"public ArrayList<ArrayList<String>> getALLVacations() throws IOException {\r\n\t\tArrayList<GregorianCalendar> vacations = calendar.getALLVacations();\r\n\t\tArrayList<ArrayList<String>> listVacations = new ArrayList<ArrayList<String>>();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"d-MMM\", new Locale(\"es\",\"ES\"));\r\n\t\tfor (GregorianCalendar date : vacations) {\r\n\t\t\tArrayList<String> vacationDay = new ArrayList<String>();\r\n\t\t\t// adding date\r\n\t\t\tvacationDay.add(sdf.format(date.getTime()));\r\n\t\t\t// adding number of doctors and special date\r\n\t\t\tvacationDay.addAll(getVacationDay(date));\r\n\t\t\t// adding vacation day\r\n\t\t\tlistVacations.add(vacationDay);\r\n\t\t}\r\n\t\treturn listVacations;\r\n\t}",
"public static int getWorkPerDay(int employeeStatus) {\n\t\t\t\t\tint workDone = 0;\n\t\t\t\t\t\n\t\t\t\t\tswitch (employeeStatus) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tworkDone = PART_TIME_HOUR;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tworkDone = FULL_DAY_HOUR;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn workDone;\n\t}",
"double getAgeDays();",
"public long calculateNumberOfDaysAbsentInclusive(LocalDate startDate, LocalDate endDate) {\n\t\tlong businessDays = 0;\n\t\tlong numDaysBetween = ChronoUnit.DAYS.between(startDate, endDate);\n\t\t\t\t\n\t\tif(numDaysBetween > 0) {\n\t\t\tbusinessDays = IntStream.iterate(0, i -> i + 1).limit(numDaysBetween).mapToObj(startDate::plusDays)\n\t\t\t\t.filter(d -> Stream.of(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY)\n\t\t\t\t.anyMatch(d.getDayOfWeek()::equals)).count() + 1;\n\t\t}\n\t\treturn businessDays;\n\t}",
"private long getDaysBetween(LocalDateTime d1, LocalDateTime d2) {\n return d1.until(d2,DAYS);\n }",
"public int getNumDaysForComponent(Record record);",
"public static void main(String[] args) {\n DateMidnight start = new DateMidnight(\"2019-07-01\");\n DateMidnight end = new DateMidnight(\"2019-07-22\");\n\n // Get days between the start date and end date.\n int days = Days.daysBetween(start, end).getDays();\n\n // Print the result.\n System.out.println(\"Days between \" +\n start.toString(\"yyyy-MM-dd\") + \" and \" +\n end.toString(\"yyyy-MM-dd\") + \" = \" +\n days + \" day(s)\");\n\n // Using LocalDate object.\n LocalDate date1 = LocalDate.parse(\"2019-07-01\");\n LocalDate date2 = LocalDate.now();\n days = Days.daysBetween(date1, date2).getDays();\n\n // Print the result.\n System.out.println(\"Days between \" +\n date1.toString(\"yyyy-MM-dd\") + \" and \" +\n date2.toString(\"yyyy-MM-dd\") + \" = \" +\n days + \" day(s)\");\n }",
"public long daysToDeadline() {\n return DateWrapper.getTimeBetween(Clock.now().getDateWrapper(), getDate(), ChronoUnit.DAYS);\n }",
"private long dateDiffInNumberOfDays(LocalDate startDate, LocalDate endDate) {\n\n return ChronoUnit.DAYS.between(startDate, endDate);\n }",
"public int getTotalDays() {\r\n int totalDays = 0;\r\n for (int d = 0; d < 5; d++) {\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n totalDays += 1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalDays;\r\n }",
"public abstract int daysInMonth(DMYcount DMYcount);",
"void aDayPasses(){\n\t\t\n\t\t/**\n\t\t * Modify wait time if still exists\n\t\t */\n\t\tif(!daysUntilStarts.equals(0)){\n\t\t\tdaysUntilStarts--;\n\t\t\tif((!hasInstructor() || getSize() == 0) && daysUntilStarts.equals(0)){\n\t\t\t\tif(hasInstructor())\n\t\t\t\t\tinstructor.unassignCourse();\n\t\t\t\tfor(Student student : enrolled){\n\t\t\t\t\tstudent.dropCourse();\n\t\t\t\t}\n\t\t\t\tsubject.unassign();\n\t\t\t\tinstructor = null;\n\t\t\t\tenrolled = new ArrayList<Student>();\n\t\t\t\tcancelled = true;\n\t\t\t} else if (daysUntilStarts.equals(0)) {\n\t\t\t\tsubject.unassign();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * Modify run time if still exists\n\t\t */\n\t\tif(!daysToRun.equals(0)){\n\t\t\tdaysToRun--;\n\t\t}\n\t\t/**\n\t\t * If couse finished un-assigned people from it\n\t\t */\n\t\tif(daysToRun.equals(0) && !finished){\n\t\t\tfor(Student student : enrolled){\n\t\t\t\tstudent.graduate(subject);\n\n\t\t\t}\n\t\t\tinstructor.unassignCourse();\n\t\t\tinstructor = null;\n\t\t\tfinished = true;\n\t\t}\n\t}",
"public java.lang.Integer getDaysNonWorking() {\n return daysNonWorking;\n }",
"public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }",
"@Override\n public final long daysInEffect(final LocalDate comparison) {\n return ChronoUnit.DAYS.between(this.getStartDate(), comparison);\n }",
"public static void dateDifference(){\r\n\t\t\r\n\t\tLocalDate firstDate = LocalDate.of(2013, 3, 20);\r\n\t\tLocalDate secondDate = LocalDate.of(2015, 8, 12);\r\n\t\t\r\n\t\tPeriod diff = Period.between(firstDate, secondDate);\r\n\t\tSystem.out.println(\"The Difference is ::\"+diff.getDays());\r\n\t}",
"public int activeDays() {return activeDay;}",
"public int days() {\n if (isInfinite()) {\n return 0;\n }\n Period p = new Period(asInterval(), PeriodType.days());\n return p.getDays();\n }",
"@ApiOperation(\n value = \"Calculate the work days for a certain period and person\",\n notes = \"The calculation depends on the working time of the person.\"\n )\n @GetMapping(\"/workdays\")\n @PreAuthorize(SecurityRules.IS_OFFICE)\n public ResponseWrapper<WorkDayResponse> workDays(\n @ApiParam(value = \"Start date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-01\")\n @RequestParam(\"from\")\n String from,\n @ApiParam(value = \"End date with pattern yyyy-MM-dd\", defaultValue = RestApiDateFormat.EXAMPLE_YEAR + \"-01-08\")\n @RequestParam(\"to\")\n String to,\n @ApiParam(value = \"Day Length\", defaultValue = \"FULL\", allowableValues = \"FULL, MORNING, NOON\")\n @RequestParam(\"length\")\n String length,\n @ApiParam(value = \"ID of the person\")\n @RequestParam(\"person\")\n Integer personId) {\n\n final LocalDate startDate;\n final LocalDate endDate;\n try{\n DateTimeFormatter fmt = DateTimeFormatter.ofPattern(RestApiDateFormat.DATE_PATTERN);\n startDate = LocalDate.parse(from, fmt);\n endDate = LocalDate.parse(to, fmt);\n } catch (DateTimeParseException exception) {\n throw new IllegalArgumentException(exception.getMessage());\n }\n\n if (startDate.isAfter(endDate)) {\n throw new IllegalArgumentException(\"Parameter 'from' must be before or equals to 'to' parameter\");\n }\n\n final Optional<Person> person = personService.getPersonByID(personId);\n\n if (!person.isPresent()) {\n throw new IllegalArgumentException(\"No person found for ID=\" + personId);\n }\n\n final DayLength howLong = DayLength.valueOf(length);\n final BigDecimal days = workDaysService.getWorkDays(howLong, startDate, endDate, person.get());\n\n return new ResponseWrapper<>(new WorkDayResponse(days.toString()));\n }",
"public static void main(String[] args) {\n Scanner s=new Scanner(System.in);\r\n int amount;\r\n \r\n //Calendar calendar = Calendar.getInstance();\r\n System.out.println(\"Enter the name : \");\r\n String name=s.next();\r\n System.out.println(\"Enter the address : \");\r\n String address=s.next();\r\n System.out.println(\"Number of rooms : \");\r\n int number=s.nextInt();\r\n System.out.println(\"Number of persons : \");\r\n int person=s.nextInt();\r\n System.out.println(\"AC or Non-AC : \");\r\n String option=s.next();\r\n System.out.println(\"Booking Date : \");\r\n String start =s.next();\r\n LocalDate ds = LocalDate.parse(start);\r\n System.out.println(\"Checkout Date : \");\r\n String end = s.next();\r\n LocalDate de = LocalDate.parse(end);\r\n long totaldays = ChronoUnit.DAYS.between(ds,de);\r\n //calendar.add(calendar.DATE, 5);\r\n //Date check=calendar.getTime();\r\n \r\n \r\n System.out.println(\"--------Registration Details--------\");\r\n System.out.println(\"Name:\"+name); \r\n System.out.println(\"Address:\"+address); \r\n System.out.println(\"No of rooms:\"+number);\r\n System.out.println(\"No of guest:\"+person);\r\n System.out.println(\"AC:\"+option);\r\n System.out.println(\"No of days:\"+totaldays);\r\n //System.out.println(\"Amount:\"+amount); \r\n int rent=500,ac=150,person1=250;\r\n int acperson=person1/number;\r\n if(option.contentEquals(\"yes\"))\r\n { \r\n int amount1=(int)((person1*number)*totaldays+acperson*ac);\r\n System.out.println(\"Amount:\"+amount1);\r\n }\r\n else\r\n {\r\n \tint amount2=(int)((int)person*number*totaldays+ac+250);\r\n \tSystem.out.println(\"Amount:\"+amount2);\r\n \t\r\n }\r\n\t}",
"@DISPID(57)\r\n\t// = 0x39. The runtime will prefer the VTID if present\r\n\t@VTID(55)\r\n\tint actualRunTime_Days();",
"public List<LocalDate> getDaysOfVacationByMonth(List<Vacation> vacationList, int month) {\n\n List<LocalDate> listOfDaysToReturn = new ArrayList<>();\n\n for (LocalDate dayDate : getDaysBetweenDates(vacationList)) {\n\n if (dayDate.getMonth().getValue() == month) {\n\n listOfDaysToReturn.add(dayDate);\n }\n }\n\n return listOfDaysToReturn;\n }",
"public int getTotalNumberOfWorkingDays(List<LocalDate> dateList) {\n\n int cont = 0;\n for (LocalDate date : dateList) {\n\n if (dateDiffOfWeekend(date)) {\n\n cont++;\n }\n }\n\n return cont;\n }",
"Date computeDays(Date d, int days){\n d.setTime(d.getTime() + days*1000*60*60*24);\n return d;\n }",
"public static void main(String[] args){\n\n\n DateTimeFormatter formatter1 = DateTimeFormat.forPattern(\"yyyy-MM-dd\");\n DateTime d1 = DateTime.parse(\"2018-05-02\",formatter1);\n DateTime d2 = DateTime.parse(\"2018-05-01\",formatter1);\n System.out.println(Days.daysIn(new Interval(d2,d1)).getDays());\n }",
"public int getDays() {\n return this.days;\n }",
"private int[] setDaysOfWeek() {\n int[] daysOfWeek = new int[7];\n\n for (int i = 0; i < 6; i++) {\n daysOfWeek[i] = calculateNumberOfDaysOfWeek(DayOfWeek.of(i + 1));\n }\n\n return daysOfWeek;\n }",
"public int getLBR_CollectionReturnDays();",
"int getEmploymentDurationInMonths();",
"public int getValidityDays() {\r\n return validityDays;\r\n }",
"boolean hasRemainDays();",
"public long getDays() {\r\n \treturn days;\r\n }",
"public static String apply_for_leave(int empId,String start_date, String end_date, int no_ldays,String leave_type, String leave_reason)\r\n throws ParseException {\r\n String s=null;\r\n Employee e = Employee.listById(empId);\r\n if (e != null) {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n Date leave_from = sdf.parse(start_date);\r\n Date leave_to = sdf.parse(end_date);\r\n Calendar start = Calendar.getInstance();\r\n start.setTime(leave_from);\r\n Calendar end = Calendar.getInstance();\r\n end.setTime(leave_to);\r\n int count = 0;\r\n for (Date date = start.getTime(); start.before(end); start.add(Calendar.DATE, 1), date = start.getTime()) {\r\n Calendar c = Calendar.getInstance();\r\n c.setTime(date);\r\n int dayOfWeek = c.get(Calendar.DAY_OF_WEEK);\r\n if (dayOfWeek == 1 || dayOfWeek == 7) {\r\n count++;\r\n }\r\n }\r\n System.out.println(count);\r\n long diff = leave_to.getTime() - leave_from.getTime();\r\n System.out.println(diff);\r\n long days = diff / (1000 * 60 * 60 * 24);\r\n Date today = new Date();\r\n String appliedOn = sdf.format(today);\r\n days = days + 1;\r\n long availBal = 0;\r\n long dif = 0;\r\n long updLeave = 0;\r\n String leaveStatus = null;\r\n // int overl = Leave.countNo(empId, start_date, end_date);\r\n availBal = e.getavailleaves();\r\n dif = availBal - days;\r\n updLeave = days - count;\r\n int bal = (int) updLeave;\r\n if (days <= 0) {\r\n s=\"Start Date Must be Greater than EndDate...\";\r\n } else if (dif < 0) {\r\n s=\"insufficient leav balance\";\r\n } else if (no_ldays != days) {\r\n s=\"NO Of Days Should be right\";\r\n } else if (leave_from.compareTo(sdf.parse(appliedOn)) < 0) {\r\n s=\"Start should be greater or equal to current date\";\r\n // } else if (overl > 0) {\r\n // s=\"already applied on given date\";\r\n } else {\r\n if (e.getMgr_id() == 0) {\r\n leaveStatus = \"APPROVED\";\r\n dao().apply_for_leave(empId, start_date, end_date, bal, leave_type, leaveStatus, leave_reason, appliedOn);\r\n s=\"Leave Applied Successfully...\";\r\n } else {\r\n leaveStatus = \"PENDING\";\r\n dao().apply_for_leave(empId, start_date, end_date, bal,\r\n leave_type, leaveStatus, leave_reason, appliedOn);\r\n edao().decrement(empId, bal);\r\n s = \"Leave Applied Successfully For \" + (days - count) + \" Days.\";\r\n }\r\n }\r\n } else {\r\n s=\"invalid employee\";\r\n }\r\n return s;\r\n }",
"public int getNumberOfDays() {\n return numberOfDays;\n }",
"public Double getTotalOliDOdeEnvasadoresEntreDates(Long temporadaId, Date dataInici, Date dataFi, Integer idAutorizada) throws InfrastructureException {\r\n\t\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates ini\");\r\n//\t\tCollection listaTrasllat = getEntradaTrasladosEntreDiasoTemporadas(temporadaId, dataInici, dataFi);\r\n\t\tCollection listaTrasllat = null;\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tdouble litros = 0;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString q = \"from Trasllat tdi where tdi.retornatEstablimentOrigen = true \";\r\n\t\t\tif(dataInici != null){\r\n\t\t\t\tString fi = df.format(dataInici);\r\n\t\t\t\tq = q+ \" and tdi.data >= '\"+fi+\"' \";\r\n\t\t\t}\r\n\t\t\tif(dataFi != null){\r\n\t\t\t\tString ff = df.format(dataFi);\r\n\t\t\t\tq = q+ \" and tdi.data <= '\"+ff+\"' \";\r\n\t\t\t}\r\n\t\t\tlistaTrasllat = getHibernateTemplate().find(q);\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getTotalOliDOdeEnvasadoresEntreDates failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\t\r\n\t\t//Para cada uno de lor registro Trasllat separamos los depositos y devolvemos un objeto rasllatDipositCommand\r\n\t\tif (listaTrasllat != null){\r\n\t\t\tfor(Iterator it=listaTrasllat.iterator();it.hasNext();){\r\n\t\t\t\tTrasllat trasllat = (Trasllat)it.next();\r\n\t\t\t\tif(trasllat.getDiposits()!= null){\r\n\t\t\t\t\tfor(Iterator itDip=trasllat.getDiposits().iterator();itDip.hasNext();){\r\n\t\t\t\t\t\tDiposit diposit = (Diposit)itDip.next();\r\n\t\t\t\t\t\tif(idAutorizada!= null && diposit.getPartidaOli() != null && diposit.getPartidaOli().getCategoriaOli() !=null && diposit.getPartidaOli().getCategoriaOli()!= null){\r\n\t\t\t\t\t\t\tif(diposit.getPartidaOli().getCategoriaOli().getId().intValue() == idAutorizada.intValue() && diposit.getVolumActual()!= null){\r\n\t\t\t\t\t\t\t\tlitros+= diposit.getVolumActual().doubleValue();\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates fin\");\r\n\t\treturn Double.valueOf(String.valueOf(litros));\r\n\t}",
"private int calculateNumberOfDaysOfWeek (DayOfWeek dayOfWeek) {\n LocalDate dateIterator = startDate.with(nextOrSame(dayOfWeek));\n if (dateIterator.isAfter(endDate)) {\n return 0;\n }\n\n int numberOfDayOfWeek = 1;\n\n while (dateIterator.isBefore(endDate)) {\n dateIterator = dateIterator.with(next(dayOfWeek));\n if (dateIterator.isBefore(endDate) || dateIterator.isEqual(endDate)) {\n numberOfDayOfWeek++;\n }\n }\n\n return numberOfDayOfWeek;\n }",
"public static int getNumberOfDays() {\n\t\treturn numberOfDays;\n\t}",
"public int getDays(){\r\n\t\treturn days;\r\n\t}",
"private void meetDepartmentStaff() {\n if(metWithHr) {\n metDeptStaff = true;\n } else {\n System.out.println(\"Sorry, you cannot meet with \"\n + \"department staff until you have met with HR.\");\n }\n }",
"public long days(Date date2) {\n\t\tlong getDaysDiff =0;\n\t\t DateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t Date currentDate = new Date();\n\t\t Date date1 = null;\n\t\t Date date3 = null;\n\n\t\t\n\n\t\t try {\n\t\t String startDate = simpleDateFormat.format(date2);\n\t\t String endDate = simpleDateFormat.format(currentDate);\n\n\t\t date1 = simpleDateFormat.parse(startDate);\n\t\t date3 = simpleDateFormat.parse(endDate);\n\n\t\t long getDiff = date3.getTime() - date1.getTime();\n\n\t\t getDaysDiff = getDiff / (24 * 60 * 60 * 1000);\n\t\t \n\t\t \n\t\t \n\t\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t return getDaysDiff;\n\n}",
"public static String calculateFeedbackDays(String dataPublicare, String dataFeedback){\n DateTimeFormatter fmt = DateTimeFormatter.ofPattern(\"dd.MM.yyyy\");\n try {\n LocalDate startDate = LocalDate.parse(dataPublicare, fmt);\n LocalDate endDate = LocalDate.parse(dataFeedback, fmt);\n // Range = End date - Start date\n Long range = ChronoUnit.DAYS.between(startDate, endDate);\n\n return range.toString();\n }catch (Exception e){\n e.printStackTrace();\n }\n return \"0\";\n }",
"public void initSalarys() {\n\t\tList ls = departmentServiceImpl.findAll(Employees.class);\n\t\temployeesList = ls;\n\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t.collect(Collectors.toList());\n\t\ttotalSalary = new BigDecimal(0);\n\t\ttotalSalaryAfter = new BigDecimal(0);\n\n\t\tif (conId != null) {\n\t\t\temployeesList = new ArrayList<Employees>();\n\t\t\tcon = new Contracts();\n\t\t\tcon = (Contracts) departmentServiceImpl.findEntityById(Contracts.class, conId);\n\t\t\tList<ContractsEmployees> empIds = departmentServiceImpl.loadEmpByContractId(conId);\n\t\t\tfor (ContractsEmployees id : empIds) {\n\t\t\t\tEmployees emp = (Employees) departmentServiceImpl.findEntityById(Employees.class, id.getEmpId());\n\t\t\t\temployeesList.add(emp);\n\t\t\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t}\n\n\t\t}\n\n\t\tif (enterpriseAdd != null && enterpriseAdd.size() > 0) {\n\t\t\tList<Employees> empAllList = new ArrayList<>();\n\t\t\tfor (String entId : enterpriseAdd) {\n\t\t\t\t// enterpriseId = Integer.parseInt(entId);\n\t\t\t\tList<Employees> empList = employeesList.stream()\n\t\t\t\t\t\t.filter(fdet -> fdet.getEnterpriseId().equals(Integer.parseInt(entId)))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tif (empList != null && empList.size() > 0) {\n\t\t\t\t\tempAllList.addAll(empList);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\temployeesList = empAllList;\n\t\t}\n\n//\t\tif (employeesList != null && employeesList.size() > 0) {\n//\t\t\tlistTotalSum = employeesList.stream().filter(fdet -> fdet.getSalary() != 0.0d)\n//\t\t\t\t\t.mapToDouble(fdet -> fdet.getSalary()).sum();\n//\t\t\ttotalSalary = new BigDecimal(listTotalSum).setScale(3, RoundingMode.HALF_UP);\n\t\t// totalSalaryAfter = totalSalary;\n//\t\t\tSystem.out.println(\"\" + totalSalary);\n//\n//\t\t}\n\t\tif (con != null) {\n\t\t\tloadSalaries();\n\t\t}\n\n//\t\tls = departmentServiceImpl.findAll(Enterprise.class);\n//\t\tenterpriseList = ls;\n\t}",
"public Integer getPresentDays()\r\n/* 48: */ {\r\n/* 49:51 */ return this.presentDays;\r\n/* 50: */ }",
"private int jobLength(){\n LocalDate completedLocalDate = LocalDate.of(this.dateCompleted.getYear(), \n this.dateCompleted.getMonth(), this.dateCompleted.getDay());\n \n LocalDate startedLocalDate = LocalDate.of(this.dateStarted.getYear(), \n this.dateStarted.getMonth(), this.dateStarted.getDay());\n \n return startedLocalDate.until(completedLocalDate).getDays();\n }",
"@Override\r\n\tpublic int[] getDayPeople() {\n\t\tint[] result = new int[7];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tresult[0] = cinemaConditionDao.getDayCount(date);\r\n\t\tfor(int i=0;i<6;i++){\r\n\t\t\tdate = DateUtil.getDayBefore(date);\r\n\t\t\tresult[i+1] = cinemaConditionDao.getDayCount(date);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@DISPID(62)\r\n\t// = 0x3e. The runtime will prefer the VTID if present\r\n\t@VTID(60)\r\n\tint averageRunTime_Days();",
"private long getWorkingDayOfEmployeeByStartDateAndEndDate(final Date startDate, final Date endDate,\n final int emp_code) {\n Long result = this.dailyRepo.getWorkingDaysOfEmployeeByStartDateAndEndDate(emp_code, startDate, endDate)\n .getAnyResult();\n return (null != result) ? result : 0;\n }",
"@Test\n\tpublic void testNumberOfDays() {\n\t\tint thirtyExpected = 30;\n\t\tint thirtyResult = Main.numberOfDays(9, 2015);\n\t\tassertTrue(thirtyExpected == thirtyResult);\n\n\t\t// Test regular 31 day month\n\t\tint thirtyOneExpected = 31;\n\t\tint thirtyOneResult = Main.numberOfDays(1, 2016);\n\t\tassertTrue(thirtyOneExpected == thirtyOneResult);\n\n\t\t// Test 'Feb 2016' - regular leap year\n\t\tint regularLeapExpected = 29;\n\t\tint regularLeapResult = Main.numberOfDays(2, 2016);\n\t\tassertTrue(regularLeapExpected == regularLeapResult);\n\n\t\t// Test 'February 2300' - century but not a leap year\n\t\tint notCenturyLeapExpected = 28;\n\t\tint notCenturyLeapResult = Main.numberOfDays(2, 2300);\n\t\tassertTrue(notCenturyLeapExpected == notCenturyLeapResult);\n\n\t\t// Test 'February 2400' - century and a leap year\n\t\tint centuryLeapExpected = 29;\n\t\tint centuryLeapResult = Main.numberOfDays(2, 2400);\n\t\tassertTrue(centuryLeapExpected == centuryLeapResult);\n\n\t}",
"public int getNumberOfDays()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1 || mn == 3 || mn == 5 || mn == 7 || mn == 8 || mn == 10 || mn == 12)\r\n {return 31;}\r\n if (mn == 4 || mn == 6 || mn == 9 || mn == 11)\r\n {return 30;}\r\n else\r\n {return 28;}\r\n }",
"public int calcularEdad(GregorianCalendar gregorianCalendar);",
"@DISPID(52)\r\n\t// = 0x34. The runtime will prefer the VTID if present\r\n\t@VTID(50)\r\n\tint actualCPUTime_Days();",
"public Integer getGestationaldays() {\n return gestationaldays;\n }",
"public DayOfWeekType getDepartureDay() {\n return departureDay;\n }",
"public double getPer_day(){\n\t\tdouble amount=this.num_of_commits/365;\n\t\treturn amount;\n\t}",
"public int getEDays() {\n return eDays;\n }",
"private int getDifferenceDays(Date d1, Date d2) {\n int daysdiff = 0;\n long diff = d2.getTime() - d1.getTime();\n long diffDays = diff / (24 * 60 * 60 * 1000) + 1;\n daysdiff = (int) diffDays;\n return daysdiff;\n }",
"public void determinarEstadoSalud(){\n \n for (int i = 0; i < listaEmpleados.size(); i++) {\n //Este for chequea si tiene alguna enfermedad preexistente -> asigna puntajes de acuerdo\n for (int j = 0; j < factoresRiesgo.length; j++) {\n \n if(listaEmpleados.get(i).getFactoresRiesgo().contains(factoresRiesgo[j])){ \n listaEmpleados.get(i).setEstadoSalud(30);\n }\n }\n //Verifica el rango de edad de la persona -> asigna puntajes de acuerdo\n if(listaEmpleados.get(i).getEdad() >= 70){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+50);\n }\n if(listaEmpleados.get(i).getEdad() >= 40 && listaEmpleados.get(i).getEdad() < 70 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+30);\n }\n if(listaEmpleados.get(i).getEdad() >= 20 && listaEmpleados.get(i).getEdad() < 40 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+10);\n }\n //Los hombre tienen mas probabilidades de morir por la mayoria de enfermedad, incluyendo el covid-19\n if(listaEmpleados.get(i).getSexo().equals(\"hombre\")){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+15);\n \n }\n //Verifica los diferentes puntajes y almacena los empleados en diferentes arraylist dependiendo su prioridad\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 80){\n EmpleadosPrioridadAlta.add(listaEmpleados.get(i)); \n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 60 && listaEmpleados.get(i).getEstadoSalud() < 80){\n EmpleadosPrioridadMediaAlta.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 35 && listaEmpleados.get(i).getEstadoSalud() < 60){\n EmpleadosPrioridadMedia.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 0 && listaEmpleados.get(i).getEstadoSalud() < 35){\n EmpleadosPrioridadBaja.add(listaEmpleados.get(i));\n }\n \n } \n \n }",
"float getVacationAccrued();",
"public Day[] getDays() {\n\t\treturn days;\n\t}",
"public void printOccupancy(ArrayList<LocalDate> dates, ArrayList<Integer> days) {\n\t\t\tint i = 0;\r\n\t\t\tint nights;\r\n\t\t\tLocalDate buffer;\r\n\t\t\tString month;\r\n\t\t\t\r\n\t\t\tif(!dates.isEmpty()) { //If there are bookings for the room\r\n\t\t\t\twhile(i < dates.size()) {\r\n\t\t\t\t\tbuffer = dates.get(i);\r\n\t\t\t\t\tnights = days.get(i);\r\n\t\t\t\t\tmonth = monthConvert(buffer.getMonthValue());\r\n\t\t\t\t\tSystem.out.print(\" \" + month + \" \" + buffer.getDayOfMonth() + \" \" + nights);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}",
"private List<String> makeListOfDates(HashSet<Calendar> workDays) {\n //SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/YYYY\");\n SimpleDateFormat sdf = new SimpleDateFormat();\n List<String> days = new ArrayList<>();\n for (Calendar date : workDays) {\n //SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/YYYY\");\n days.add(sdf.format(date.getTime()));\n }\n\n return days;\n }",
"public void onClick(View v) {\n\t\t \tint days = 0;\n\t\t \ttry {\n\t\t \tdays = Integer.valueOf(WorkingDays.getText().toString());\n\t\t \tdays = days + 1;\n\t\t\t\tWorkingDays.setText(String.format(\"%d\", days));\n\t\t \t} catch (Throwable t) {\n//\t\t\t\t\tLog.e(TAG, t.getMessage());\n\t\t\t\t}\n\t\t \t\n\t\t \t\n\t\t\t\tcal.set(StartDate.getYear(), StartDate.getMonth(), StartDate.getDayOfMonth());\n\t\t\t\tcal= weekendOffset(cal);\n\t\t Calendar updatedc;\n\t\t\t\ttry {\n\t\t\t\t\tprojectdays = Integer.valueOf(WorkingDays.getText().toString());\n\t\t\t\t\tif(projectdays!=0)\n\t\t\t\t\t {\n\t\t\t\t\t updatedc = compute_day_date(cal,projectdays); \n\t\t\t\t\t Result.setText(String.format(\"%1$tA, %1$td %1$tB %1$ty\", updatedc));\n\t\t\t\t\t }\n\t\t\t\t\telse // 0 days is not a valid entry\n\t\t\t\t\t {\n\t\t\t\t\t\tWorkingDays.setText(\"1\");\n\t\t\t\t\t }\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tLog.e(TAG, t.getMessage());\n\t\t\t\t}\n\t\t }",
"private int[] obtainDaysSafely(String name, String subClass) {\n System.out.println(\"At what days does \" + name + \" \" + subClass + \" take place?\");\n ArrayList<Integer> preDays = new ArrayList();\n int[] days;\n String[] daysArray = new String[]{\"Monday?\", \"Tuesday?\", \"Wednesday?\", \"Thursday?\", \"Friday?\"};\n for (int i = 0; i < 5; i++) {\n System.out.println(\"Does \" + name + \" \" + subClass + \" take place on \" + daysArray[i] + \" y/n\");\n String answer = scanner.nextLine();\n while (!(answer.equals(\"y\") || (answer.equals(\"n\")))) {\n System.out.println(\"Type 'y' or 'n'\");\n answer = scanner.nextLine();\n }\n if (answer.equals(\"y\")) {\n preDays.add(i + 1);\n }\n }\n days = new int[preDays.size()];\n for (int i = 0; i < preDays.size(); i++) {\n days[i] = preDays.get(i);\n }\n return days;\n }",
"@Override\n\tpublic List<PatientSeanceDays> findAll() {\n\t\treturn repository.findAll();\n\t}",
"ArrayList<Day> getDays() {\n return days;\n }",
"public Integer getOverdueDays() {\n return overdueDays;\n }",
"DayOfWeek getUserVoteSalaryWeeklyDayOfWeek();",
"@Override\n public Long getRunningTimeInDays() {\n return null;\n }",
"public double getDayAbsent() {\n return dayAbsent;\n }",
"public void incrementDay(){\n //Step 1\n this.currentDate.incrementDay();\n //step2\n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementDay();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementDay();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementDay();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementDay();\n //step 3\n if (this.getDate().getDay() == 1) {\n \n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementMonth();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementMonth();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementMonth();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementMonth();\n }\n \n }",
"public static void calculateDailyEmpWage()\n {\n\t\tint salary = 0;\n\t\tif(isPresent()){\n\t\t\tint empRatePerHr = 20;\n int PartTimeHrs = 4;\n salary = PartTimeHrs * empRatePerHr;\n\t\t\tSystem.out.println(\"Daily Part time Wage:\" +salary);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Daily Wage:\" +salary);\n\t\t}\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tDate date = new Date();\r\n\t\t\r\n\t\tLocalDate diaHoy = LocalDate.now();\r\n\t\tLocalDate diaFin = diaHoy.plusDays(15);\r\n\t\t\r\n\t\tCursoVacacional curso1 = new CursoVacacional();\r\n\t\tcurso1.setNombre(\"Volley Principiantes\");\r\n\t\tcurso1.setFechaInicio(diaHoy);\r\n\t\tcurso1.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso1.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso1.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso1.getFechaFin());\r\n\t\t\r\n\t\tLocalDate diaHoy2 = LocalDate.now();\r\n\t\tLocalDate diaQueInicio = diaHoy2.minusDays(2);\r\n\t\tLocalDate diaQueFinaliza = diaQueInicio.plusDays(20);\r\n\t\t\r\n\t\tCursoVacacional curso2 = new CursoVacacional();\r\n\t\tcurso2.setNombre(\"Volley Principiantes\");\r\n\t\tcurso2.setFechaInicio(diaHoy);\r\n\t\tcurso2.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso2.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso2.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso2.getFechaFin());\r\n\t\t\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic Double getTotalOliDOaEnvasadoresEntreDates(Date dataInici, Date dataFi, Integer idAutorizada) throws InfrastructureException {\r\n\t\tlogger.debug(\"getTotalOliDOaEnvasadoresEntreDates ini\");\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tdouble litros = 0;\r\n\t\ttry {\r\n\t\t\tString fi = null;\r\n\t\t\tString ff = null;\r\n\t\t\tif (dataInici != null) fi = df.format(dataInici);\r\n\t\t\tif (dataFi != null) ff = df.format(dataFi);\r\n\t\t\tString q =\" from Trasllat tdi where \" +\r\n\t\t\t\t\t\"\t (tdi.dataAcceptarEnviament is not null \" +\r\n\t\t\t\t\t\"\t\tand tdi.quantitatEnviament is not null \";\r\n\t\t\tif (fi != null) \r\n\t\t\t\tq +=\"\t\tand tdi.dataAcceptarEnviament >= '\"+fi+\"' \";\r\n\t\t\tif (ff != null)\r\n\t\t\t\tq +=\"\t\tand tdi.dataAcceptarEnviament <= '\"+ff+\"' \";\r\n\t\t\tq +=\t\"\t\tand tdi.quantitatEnviament > 0 ) or \" +\r\n\t\t\t\t\t\"\t (tdi.dataAcceptarRetorn is not null \" +\r\n\t\t\t\t\t\"\t\tand tdi.quantitatRetorn is not null \";\r\n\t\t\tif (fi != null)\r\n\t\t\t\tq +=\"\t\tand tdi.dataAcceptarRetorn >= '\"+fi+\"' \";\r\n\t\t\tif (ff != null)\r\n\t\t\t\tq +=\"\t\tand tdi.dataAcceptarRetorn <= '\"+ff+\"' \";\r\n\t\t\tq +=\t\"\t\tand tdi.quantitatRetorn > 0) \" +\r\n\t\t\t\t\t\"and tdi.valid = true \" +\r\n\t\t\t\t\t\"order by tdi.data desc\";\r\n\t\t\t\r\n\t\t\tCollection listaTrasllat = getHibernateTemplate().find(q);\r\n\t\t\t//Para cada uno de lor registro Trasllat separamos los depositos y devolvemos un objeto trasllatDipositCommand\r\n\t\t\t\r\n\t\t\tfor(Iterator it=listaTrasllat.iterator();it.hasNext();){\r\n\t\t\t\tTrasllat trasllat = (Trasllat)it.next();\r\n\t\t\t\tfor(Iterator itTra=trasllat.getTraza().getTrazasForTtrCodtrafill().iterator();itTra.hasNext();){\r\n\t\t\t\t\t\tTraza traza = (Traza)itTra.next();\r\n\t\t\t\t\t\tif (traza.getTipus().intValue() == Constants.CODI_TRAZA_TIPUS_ENTRADA_DIPOSIT){\r\n\t\t\t\t\t\t\tString query = \"select distinct edi from EntradaDiposit as edi where edi.traza.id=\" + traza.getId() + \" and edi.valid = true \";\r\n\t\t\t\t\t\t\tList entDip = getHibernateTemplate().find(query);\r\n\t\t\t\t\t\t\tif(entDip.size()>0){\r\n\t\t\t\t\t\t\t\tEntradaDiposit edi = (EntradaDiposit)entDip.get(0);\r\n\t\t\t\t\t\t\t\t//EntradaDiposit edi = this.entradaDipositAmbTraza(traza.getId());\r\n\t\t\t\t\t\t\t\tif(idAutorizada!= null && edi.getCategoriaOli()!= null && edi.getCategoriaOli().getId().intValue() == idAutorizada.intValue()){\r\n\t\t\t\t\t\t\t\t\tlitros += edi.getLitres();\r\n\t\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getTotalOliDOaEnvasadoresEntreDates failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\t\r\n\t\tlogger.debug(\"getTotalOliDOaEnvasadoresEntreDates fin\");\r\n\t\treturn Double.valueOf(String.valueOf(litros)); \r\n\t}",
"public static void main(String[] args) {\n Calendar dataVencimento = Calendar.getInstance();\n System.out.printf(\"A data de vencimento do boleto é: %tF\\n\", dataVencimento);\n\n // Pegando a data do vencimento do boleto e adicionando 10 dias para que seja a data limite de pagamento sem juros.\n dataVencimento.add(Calendar.DATE, 10);\n System.out.printf(\"A data limite para fazer o pagamento sem juros é: %tF\\n\", dataVencimento);\n\n /*\n Fazendo a verificação de quando ocorrerá o vencimento\n Caso seja em um sábado, a data de vencimento terá um acréscimo de 2 dias, para que seja no próximo dia útil (segunda-feira).\n Caso seja em um domingo, a data de vencimento terá um acréscimo de 1 dia, para que seja no próximo dia últil (segunda-feira).\n Caso seja em qualquer outro dia, continua valendo a data inicial.\n */\n if (dataVencimento.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY) {\n dataVencimento.add(Calendar.DATE, 2);\n System.out.printf(\"O vencimento seria em um sábado. Data alterada para a próxima segunda-feira, dia %tF\\n\", dataVencimento.getTime());\n } else if (dataVencimento.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\n dataVencimento.add(Calendar.DATE, 1);\n System.out.printf(\"O vencimento seria em um domingo. Data alterada para a próxima segunda-feira, dia %tF\\n\", dataVencimento.getTime());\n }\n }",
"@Test\n public void shouldDisplayDaysExcludingWeekEndsSubday() {\n LocalDate date = LocalDate.of(2018,11,25);\n LocalDate newDate = LocalDate.of(2018,11,21);\n int offset = 2;\n int direction = -1;\n System.out.println(calcDate(date,offset,direction));\n\n assertEquals(newDate,calcDate(date,offset,direction),\"Should be equal\");\n\n }"
]
| [
"0.6590203",
"0.6441208",
"0.64144623",
"0.6335659",
"0.61981",
"0.61287284",
"0.60029036",
"0.5945206",
"0.59258884",
"0.5799677",
"0.57993656",
"0.5777278",
"0.57256794",
"0.57114375",
"0.56835306",
"0.5648655",
"0.56424916",
"0.56255573",
"0.5606082",
"0.5591096",
"0.55585206",
"0.5515719",
"0.55113095",
"0.5499573",
"0.5496538",
"0.54899687",
"0.5478458",
"0.54763675",
"0.54728186",
"0.54278666",
"0.5424867",
"0.5411805",
"0.5403087",
"0.53960055",
"0.5388459",
"0.5378935",
"0.537843",
"0.53770506",
"0.53724074",
"0.5371661",
"0.53627807",
"0.53605485",
"0.5356581",
"0.5356382",
"0.53435326",
"0.5333425",
"0.5321208",
"0.5317651",
"0.530859",
"0.52970505",
"0.5289352",
"0.5287728",
"0.5287179",
"0.5282248",
"0.526953",
"0.52642155",
"0.52421296",
"0.52375257",
"0.5225867",
"0.5221549",
"0.52134144",
"0.51897115",
"0.5161109",
"0.5156348",
"0.5148503",
"0.5145391",
"0.5137997",
"0.5137183",
"0.51331",
"0.51240814",
"0.51200134",
"0.51172924",
"0.511534",
"0.5103195",
"0.50845975",
"0.5079086",
"0.5075136",
"0.5055897",
"0.5053193",
"0.5051977",
"0.5039016",
"0.5037913",
"0.50342107",
"0.5033826",
"0.502474",
"0.50214356",
"0.50174385",
"0.50131917",
"0.5011164",
"0.49976832",
"0.4979931",
"0.49799138",
"0.4977576",
"0.4976381",
"0.49710834",
"0.496818",
"0.49659726",
"0.49649984",
"0.4962865",
"0.4960447"
]
| 0.7687346 | 0 |
This getter uses a string as input, creates a working variable object from it so the method can then use the generic get method from the super class to find the matching object in the dictionary. If that get request succeeds, this method then returns the value attribute (double) from that objects, otherwise, an exception is thrown. | public double getValue(String s) throws DictionaryException{
Variable v = get(new Variable(s,0)); // Try to get the dictionary entry with this identifier
if (v != null) return v.getValue(); // if it comes back not null, use it to access the value
throw new DictionaryException("Variable <" + s + "> not defined."); // Else throw and exception
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void getDoubleImpl(String str, double d, Resolver<Double> resolver);",
"double getDouble(String key, double defaultValue);",
"double getBasedOnValue();",
"public double getVariableValue(){\n\t\tObject valueKey = getEntries().keySet().stream().findFirst().orElseGet(()->{return 0d;});\n\t\tif (valueKey instanceof Double){\n\t\t\treturn (Double) valueKey;\n\t\t}\n\t\ttry {\n\t\t\tdouble value = Double.parseDouble(valueKey+\"\");\n\t\t\treturn value;\n\t\t}\n\t\tcatch (NumberFormatException ex){\n\t\t\treturn 0d;\n\t\t}\n\t}",
"public\n double getProperty_double(String key)\n {\n if (key == null)\n return 0.0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0.0;\n\n double ret_double = 0.0;\n try\n {\n Double workdouble = new Double(val);\n ret_double = workdouble.doubleValue();\n }\n catch(NumberFormatException e)\n {\n ret_double = 0.0;\n }\n\n return ret_double;\n }",
"public abstract double get(int number);",
"public double get (String name) {\n return this.lookup(name);\n }",
"double get();",
"public final double getDouble(final String tagToGet) {\n try {\n return Double.parseDouble(getStr(tagToGet));\n } catch (final Exception e) {\n return 0.0;\n }\n }",
"public Double getDouble(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.DOUBLE)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Double.class);\n\t\treturn (Double)value.value;\n\t}",
"public abstract Double get(T first, T second);",
"public Double getDouble(String key, Double defaultValue);",
"public double getDouble(String key) {\n\t\treturn Double.parseDouble(get(key));\n\t}",
"private static Double getDoubleProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0.0;\n }\n return Double.parseDouble(value);\n }",
"double getDoubleValue1();",
"public double getDouble(String key)\n {\n return getDouble(key, 0);\n }",
"public double getSpecialDoubleProperty(String key,\n Hashtable valueSet,\n String defaultValue) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n String val = this.attributes.getProperty(key);\n Double result;\n\n if (val == null) {\n val = defaultValue;\n }\n\n try {\n result = (Double) (valueSet.get(val));\n } catch (ClassCastException e) {\n throw this.invalidValueSet(key);\n }\n\n if (result == null) {\n try {\n result = Double.valueOf(val);\n } catch (NumberFormatException e) {\n throw this.invalidValue(key, val, this.lineNr);\n }\n }\n\n return result.doubleValue();\n }",
"public abstract double getValue();",
"public double getDouble(String key, double fallback)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? fallback : section.getDouble(pieces[1], fallback);\n }\n\n if (!data.containsKey(key)) return fallback;\n Object obj = data.get(key);\n try\n {\n return Double.parseDouble(obj.toString());\n }\n catch (Exception ex)\n {\n return fallback;\n }\n }",
"protected final Double getDouble(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getDouble(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"public double evaluate(Map<String, Double> assignment) throws Exception {\r\n // variable is in the assignment\r\n if (assignment.containsKey(this.variable)) {\r\n return assignment.get(this.variable);\r\n }\r\n throw new Exception(\"this variable is not in the assignment\");\r\n }",
"double getDoubleValue2();",
"Double getDoubleValue();",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"public double getDouble (String variable){\r\n if (matlabEng==null) return 0.0;\r\n return matlabEng.engGetScalar(id,variable);\r\n }",
"public static double getDouble(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Double.parseDouble(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as a double.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public Double getDouble(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tDouble result = PrimitiveDataTypeConvertor.toDouble(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Double\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Double getDouble(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Double) extGet(key);\n\t}",
"Double getValue();",
"double getDouble(String key) throws KeyValueStoreException;",
"public double getDoubleValueOf(String string) {\n\t\tif (this.numeric) {\n\t\t\ttry {\n\t\t\t\tdouble value = NumberParser.parseNumber(string);\n\t\t\t\treturn value;\n\t\t\t} catch (ParseException e1) {\n\t\t\t\tthis.numeric = false;\n\t\t\t}\n\t\t}\n\n\t\tint index = 0;\n\t\tIterator<String> it = discreteLevels.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tif (string.equalsIgnoreCase(it.next())) {\n\t\t\t\treturn (double) index;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\n\t\t// String not found, add it to discrete levels\n\t\tthis.discreteLevels.add(string);\n\t\tindex = 0;\n\t\tit = discreteLevels.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tString next = it.next();\n\t\t\tif (string.equalsIgnoreCase(next)) {\n\t\t\t\treturn (double) index;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\tthrow new CorruptDataException(this);\n\t}",
"Object getValueFrom();",
"public double getDouble(String key, double defaultValue) {\n String lowerCaseKey = validateAndGetLowerCaseKey(key);\n\n if(map.containsKey(lowerCaseKey)) {\n String value = map.get(lowerCaseKey);\n\n try {\n return Double.parseDouble(value);\n } catch (NumberFormatException exception) {\n System.err.println(\"Unable to parse double: \" + exception.getMessage());\n }\n\n }\n return defaultValue;\n }",
"public Double visitVariable(simpleCalcParser.VariableContext ctx){\n\t\tString varname = ctx.x.getText();\n\t\tDouble d = env.get(varname);\n\t\tif (d==null){\n\t\t\tSystem.err.println(\"Variable \" + varname + \" is not defined. \\n\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t \treturn d;\n \t}",
"double getDouble(String key) {\n double value = 0.0;\n try {\n value = mConfigurations.getDouble(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving double from JSONObject. @ \" + key);\n }\n return value;\n }",
"public Double getDouble(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).doubleValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Double.parseDouble(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }",
"public final /* synthetic */ Object retrieve(String str) {\n AppMethodBeat.m2504i(89541);\n Long l = GservicesValue.zzmu.getLong(this.mKey, (Long) this.mDefaultValue);\n AppMethodBeat.m2505o(89541);\n return l;\n }",
"double getValue();",
"double getValue();",
"double getValue();",
"public abstract void getIntImpl(String str, double d, Resolver<Double> resolver);",
"double getDoubleValue3();",
"public static double getDoubleProperty(String key) {\r\n\t\treturn getDoubleProperty(key, 0);\r\n\t}",
"public double getDouble();",
"public double getVarValue(String variableName){\n\t\treturn var_map.get(variableName);\n\t}",
"public double getDouble(String name)\n/* */ {\n/* 1015 */ return getDouble(name, 0.0D);\n/* */ }",
"public double getDouble(String name, double defaultValue)\n/* */ {\n/* 1028 */ String value = getString(name);\n/* 1029 */ return value == null ? defaultValue : Double.parseDouble(value);\n/* */ }",
"public Double D(String key) throws AgentBuilderRuntimeException {\n\t\treturn getDouble(key);\n\t}",
"public Double getDouble(JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null )\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isNull() !=null)\r\n\t\t\treturn null ; \r\n\t\tif ( actualVal.isNumber() !=null)\r\n\t\t\treturn actualVal.isNumber().doubleValue();\r\n\t\treturn null ; \r\n\t}",
"public double getValue();",
"public Double getDouble(String propertyName) {\n if (this.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n return new Double(this.propertyBag.getDouble(propertyName));\n } else {\n return null;\n }\n }",
"double getValue(int id);",
"Object getProperty(String key);",
"public static double getDouble (String ask)\r\n {\r\n boolean badInput = false;\r\n String input = new String(\"\");\r\n double value = 0.0;\r\n do {\r\n badInput = false;\r\n input = getString(ask);\r\n try {\r\n value = Double.parseDouble(input);\r\n }\r\n catch (NumberFormatException e) {\r\n badInput = true;\r\n }\r\n }while(badInput);\r\n return value;\r\n }",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"public Double get(String word) {\r\n\t\ttry {\r\n\t\t\treturn (Double) this.wordlist.get(word);\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"abstract public String getValue(String fieldname);",
"protected abstract Object _get(String key);",
"public abstract void getFloatImpl(String str, double d, Resolver<Double> resolver);",
"public double calculateValue(Map<String, Double> variables) throws InvalidVariableNameException;",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public abstract Double getDataValue();",
"public abstract double read_double();",
"public DataValue lookup(String key) {\n if (validateKey(key)) {\n return getValueForKey(key);\n } else {\n return DataValue.NO_VALUE;\n }\n }",
"String getValue(String type, String key);",
"public static double getDouble(String prop, double def)\n {\n return Double.parseDouble(props.getProperty(prop, \"\" + def));\n }",
"static Value<Double> parseDouble(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Double.parseDouble(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }",
"public abstract T get(String key);",
"public double fieldValuetoDouble() {\n return Double.parseDouble(this.TF_Field_Value); // This just might throw and Exception. \n }",
"abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;",
"Object get(String key);",
"Object get(String key);",
"private double getDoubleProperty(ParameterList key, double defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Double.parseDouble(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to double.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }",
"public double getDouble(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n double f = Double.parseDouble(item);\n return f;\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }",
"public double getDouble(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n double f = Double.parseDouble(item);\n return f;\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }",
"public Double getDouble(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).doubleValue();\n }",
"@Override\n public double get()\n {\n return unbounded.get();\n }",
"public double getDoubleParam(String theAlias) {\n String name = getAlias(theAlias);\n\n if (!allParams.containsKey(name)) {\n System.out.println(\"Careful, you are getting the value of parameter: \" + name + \" but the parameter hasn't been added...\");\n System.exit(1);\n }\n if (!doubleParams.containsKey(name)) {\n System.out.println(\"Careful, you are getting the value of parameter: \" + name + \" but the parameter isn't a double parameter...\");\n System.exit(1);\n }\n\n return doubleParams.get(name);\n }",
"private double getValue() {\n return value;\n }",
"public abstract String getValue();",
"public abstract String getValue();",
"public abstract String getValue();",
"protected <T> T getValue(String key, T defaultVal, Bound<? extends Number> bound) {\r\n return getValue(key, null, defaultVal, bound);\r\n }",
"public abstract String get();",
"public double getDouble(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Double.parseDouble(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();"
]
| [
"0.66929483",
"0.6445099",
"0.6441789",
"0.64339095",
"0.64180046",
"0.63841647",
"0.6382182",
"0.62604403",
"0.6213485",
"0.6201644",
"0.6147053",
"0.6119464",
"0.6089187",
"0.607961",
"0.60343736",
"0.6031358",
"0.6030957",
"0.6000832",
"0.5995678",
"0.5980709",
"0.59770805",
"0.59620357",
"0.5950106",
"0.5944233",
"0.59332734",
"0.5921202",
"0.5886889",
"0.58735955",
"0.58709204",
"0.5847714",
"0.58293605",
"0.5794117",
"0.57919365",
"0.57812786",
"0.5765945",
"0.57604045",
"0.5732246",
"0.57035726",
"0.57035726",
"0.57035726",
"0.5685286",
"0.5647676",
"0.5636697",
"0.56314343",
"0.5621856",
"0.5610981",
"0.5597925",
"0.5595562",
"0.5595536",
"0.55897665",
"0.55858946",
"0.5576979",
"0.55743504",
"0.55632204",
"0.556085",
"0.556085",
"0.556085",
"0.556085",
"0.556085",
"0.556085",
"0.556085",
"0.55590457",
"0.5551737",
"0.55352724",
"0.55338275",
"0.55153924",
"0.5510192",
"0.55067635",
"0.55039173",
"0.5482455",
"0.54757184",
"0.5450075",
"0.5439983",
"0.5435347",
"0.54271615",
"0.54176915",
"0.5412231",
"0.54039484",
"0.54039484",
"0.53945184",
"0.5390405",
"0.5390405",
"0.5383733",
"0.5367929",
"0.53619206",
"0.53599936",
"0.5358644",
"0.5358644",
"0.5358644",
"0.5355235",
"0.53551304",
"0.535389",
"0.53479046",
"0.53471464",
"0.53471464",
"0.53471464",
"0.53471464",
"0.53471464",
"0.53471464",
"0.53471464"
]
| 0.6766648 | 0 |
This setter creates a variable object from the specified parameters and then uses that object to replace the most previous value in the dictionary, if it is already there, or to add it | public void setValue(String s, double d){
set(new Variable(s,d)); // Create a new variable and then use it to set the value in the dictionary
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DynamicVariable createDynamicVariable();",
"VarAssignment createVarAssignment();",
"Variable createVariable();",
"Variable createVariable();",
"public Object call(Context cx, Scriptable xxx, Scriptable thisObj, Object[] args) {\n\t\t\t Object newValue = args[0];\n\t\t\t valueStorage = newValue;\n\t\t\t finalTarget.put(finalTargetProp, scope, newValue);\n\t\t\t return null;\n\t\t\t}",
"public void assign (String name, Value value){\n Closure exist = find_var(name);\n exist.getValues().put(name, value);\n }",
"void setTemp(String name, Object value);",
"@Override\n\t\tpublic void setParameter(VariableValue variableValue) throws ModelInterpreterException\n\t\t{\n\n\t\t}",
"public void updateToCurValue(Integer variable) {\n Integer curValue = variables.get(variable).getValue();\n variables.put(variable, new ImmutablePair<>(curValue, curValue));\n }",
"public static void set(Class clazz, Object instance, String variableName, Object value) throws ReflectionException {\n\t\ttry {\n\n\t\t\tif(variableName.contains(\".\")) {\n\t\t\t\tString split[] = variableName.split(\"\\\\.\");\n\t\t\t\tObject myInstance = instance;\n\t\t\t\tClass myClazz = clazz;\n\t\t\t\tint count = 0;\n\t\t\t\tfor(String var : split) {\n\t\t\t\t\tif(count == split.length - 1) {\n\t\t\t\t\t\t//Only the last one needs to be set\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tmyInstance = get(myClazz, myInstance, var);\n\t\t\t\t\tmyClazz = myInstance.getClass();\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tset(myClazz, myInstance, split[split.length - 1], value);\n\t\t\t} else {\n\n\t\t\t\tField f = clazz.getDeclaredField(variableName);\n\t\t\t\tf.setAccessible(true);\n\n\t\t\t\t//This is the really evil stuff here, this is what removes the final modifier.\n\t\t\t\tField modifiersField = Field.class.getDeclaredField(\"modifiers\");\n\t\t\t\tmodifiersField.setAccessible(true);\n\t\t\t\tmodifiersField.setInt(f, f.getModifiers() & ~Modifier.FINAL);\n\n\t\t\t\tf.set(instance, value);\n\n\t\t\t}\n\t\t} catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException ex) {\n\t\t\tthrow new ReflectionException(ex);\n\t\t}\n\t}",
"Variables createVariables();",
"public Variable(){\n name = \"\";\n initialValue = 0;\n }",
"<T> void put(String variable, T newValue, int... indexes) throws ClassCastException, ArrayIndexOutOfBoundsException;",
"public void setVar(String name,Object val) throws FSException {\n\n Object obj;\n\n if (val==null) parseError(\"set variable \"+name+\" with null value\");\n\n if (subParser!=null) {\n subParser.setVar(name,val);\n return;\n }\n\n if ( (obj=vars.get(name)) != null ) {\n if (val.getClass() != obj.getClass()) {\n //special case for FSObject allow asignment of either same\n //class or _any_ class if FSObject is already null\n //also allow assignment of null to any FSObject\n if (obj instanceof FSObject) {\n if (((FSObject)obj).getObject()==null){\n val=new FSObject(val);\n }\n else if(((FSObject)obj).getObject().getClass()==val.getClass()){\n val=new FSObject(val);\n }\n else {\n parseError(\"Incompatible types\");\n }\n }\n else{\n parseError(\"Incompatible types\");\n }\n }\n vars.remove(name);\n vars.put(name,val);\n } else if ( (obj=gVars.get(name)) != null ) {\n if (val.getClass() != obj.getClass()) {\n parseError(\"Incompatible types\");\n }\n gVars.remove(name);\n gVars.put(name,val);\n }\n\n }",
"protected void SetVariable(SB_ExecutionFrame contextFrame, SB_Variable var)\r\n\t throws SB_Exception\r\n\t{\r\n\t\tSB_Variable classVar = contextFrame.GetVariable(_varName);\r\n\t\t\t\t\r\n\t\tif( classVar != null)\r\n\t\t{\r\n\t\t Object obj = classVar.getValue();\r\n\t\t\tClass cls = obj.getClass();\r\n\t\t\t\r\n\t\t\tif( !SetClassMemberField(cls, obj, _varMember, SB_SimInterface.ConvertObject(var)))\r\n\t\t\t{\r\n\t\t\t throw new SB_Exception(\"Can't find \" + _varName +\".\" + _varMember);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setTransientVariable(String name, Object value) {\n transientVariables.put(name, value);\n }",
"private void storeValue(Object value)\n {\n if (getParent() instanceof ValueSupport)\n {\n ((ValueSupport) getParent()).setValue(value);\n }\n\n if (getVar() != null)\n {\n getContext().setVariable(getVar(), value);\n }\n }",
"@Override\n\tpublic Expression replacedVar(Map<Variable, Variable> replacement) {\n\t\tList<Tuple<String, Variable>> newVars = new ArrayList<Tuple<String, Variable>>(this.variables);\n\t\tnewVars.replaceAll(itm -> {\n\t\t\tif (itm.second() != null && replacement.containsKey(itm.second())) {\n\t\t\t\treturn new Tuple<String, Variable>(itm.first(), replacement.get(itm.second()));\n\t\t\t}\n\t\t\treturn itm;\n\t\t});\n\t\treturn new Expression(this.desc, newVars);\n\t}",
"private void updateVars()\n {\n\n }",
"private void assignWithReference(String valueName, Variable lastAppearanceOfVar) throws\r\n\t\t\tIllegalOperationException,IncompatibleTypeException,TypeNotSupportedException {\r\n\t\t//we'll check if the assignment is made with a reference to another variable:\r\n\t\tVariable reference = findVariable(valueName);\r\n\t\tif(reference==null){//if not, valueName variable was ever declared and it's type isn't legal.\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}else if(reference.isGlobal()&&!reference.isInitialized()){//reference's an uninitialised global var\r\n\t\t\treference = uninitialisedGlobalVariables.get(valueName);//see if it was assigned in this scope\r\n\t\t\tif(reference==null){//if not:\r\n\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!reference.isInitialized()) {//if the referenced variable was never initialised:\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}\r\n\t\tlastAppearanceOfVar.compatibleWith(reference);//val's type's illegal-> exception\r\n\t\tif(lastAppearanceOfVar.isGlobal()&&!lastAppearanceOfVar.isInitialized()&&!scopeType.equals//\r\n\t\t\t\t(\"global\")){//we're trying, in a scope other than globalScope, to assign a value to an\r\n\t\t\t // uninitialised global variable\r\n\t\t\tassignUninitialisedGlobalVar(lastAppearanceOfVar,valueName);//see methods's documentation.\r\n\t\t}else{\r\n\t\t\tlastAppearanceOfVar.initialize();\r\n\t\t}\r\n\t}",
"private void declareWithReference(Variable newVar,String variableName, boolean isFinal,boolean\r\n\t\t\tisArgument, String value)throws IllegalDeclarationException,\r\n\t\t\tIncompatibleTypeException, TypeNotSupportedException{\r\n\t\tVariable reference = findVariable(value);\r\n\t\tif (reference != null) {//if it is indeed a reference to a previously declared variable:\r\n\t\t\t// we'll check if the referenced var is initialised + if it's type's compatible with newVar's\r\n\t\t\tif (newVar.compatibleWith(reference)&&reference.isInitialized()){\r\n\t\t\t\tVariable varToDeclare = vFactory.createVariable(true,isFinal,isArgument,reference.getType(),\r\n\t\t\t\t\t\tparent==null);\r\n\t\t\t\tscopeVariables.put(variableName, varToDeclare);//if it is, we'll declare a new variable\r\n\t\t\t\treturn;\r\n\t\t\t}else{\r\n\t\t\t\t//check if value's an uninitialised global var that we've already initialised in this scope\r\n\t\t\t\treference = uninitialisedGlobalVariables.get(value);\r\n\t\t\t\tif(reference!=null&&newVar.compatibleWith(reference)){\r\n\t\t\t\t\tVariable varToDeclare = vFactory.createVariable(true,isFinal,isArgument,reference.getType(),\r\n\t\t\t\t\t\t\tparent==null);\r\n\t\t\t\t\tscopeVariables.put(variableName, varToDeclare);//if it is, declare a new variable\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}//if value's type isn't compatible with type ,value isn't a reference or isn't a good one:\r\n\t\tthrow new IllegalDeclarationException();\r\n\r\n\t}",
"private void assignUninitialisedGlobalVar(Variable lastAppearanceOfVar,String valueName)throws\r\n\t\t\tTypeNotSupportedException{\r\n\t\t\tVariable variablesCopy = vFactory.createVariable(true, false, lastAppearanceOfVar.isArgument(),\r\n\t\t\t\t\tlastAppearanceOfVar.getType(), true);\r\n\t\t\tuninitialisedGlobalVariables.put(valueName, variablesCopy);\r\n\t}",
"void setValue(Object object, Object value);",
"public void updateToCommittedValue(Integer variable) {\n Integer committedValue = variables.get(variable).getKey();\n variables.put(variable, new ImmutablePair<>(committedValue, committedValue));\n }",
"@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}",
"void setupVariables(IVariableFactory factory);",
"public IRubyObject setClassVar(String name, IRubyObject value) {\n RubyModule module = this;\n do {\n if (module.hasClassVariable(name)) {\n return module.storeClassVariable(name, value);\n }\n } while ((module = module.getSuperClass()) != null);\n \n return storeClassVariable(name, value);\n }",
"VarReference createVarReference();",
"public void assign (String name, int value){\n Closure exist = find_var(name);\n exist.getValues().put(name, new IntegerValue(value));\n }",
"public void setVariable(Variable variable) {\n this.variable = variable;\n }",
"public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}",
"VariableRef createVariableRef();",
"void setValue(Object value);",
"public MathEval setVariable(String nam, Double val) {\r\n if(!Character.isLetter(nam.charAt(0))) { throw new IllegalArgumentException(\"Variable must start with a letter\" ); }\r\n if(nam.indexOf('(')!=-1 ) { throw new IllegalArgumentException(\"Variable names may not contain a parenthesis\"); }\r\n if(nam.indexOf(')')!=-1 ) { throw new IllegalArgumentException(\"Variable names may not contain a parenthesis\"); }\r\n if(val==null) { variables.remove(nam); }\r\n else { variables.put(nam,val); }\r\n return this;\r\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 }",
"private void smem_variable_set(smem_variable_key variable_id, long variable_value) throws SQLException\n {\n final PreparedStatement var_set = db.var_set;\n \n var_set.setLong(1, variable_value);\n var_set.setInt(2, variable_id.ordinal());\n \n var_set.execute();\n }",
"public void removeVars(){\n this.values = new HashMap<>();\n }",
"@Override\n public QuadHolder setValues(final Map<Var, Node> values) {\n this.values = values;\n return this;\n }",
"public lexeme update(lexeme variable, lexeme value, lexeme env){\n\t\tlexeme oldE = env;\n\t\twhile (env != null){\n\t\t\tlexeme vars = car(env);\n\t\t\tlexeme vals = cadr(env);\n\t\t\t\n\t\t\twhile(vars != null && vars.type != \"EMPTY\"){\n\t\t\t\t//System.out.println(\"variable is \" + variable.type + \" vars \" + car(vars).type);\n\t\t\t\tif (sameVariable(variable, car(vars))){\n\t\t\t\t\treturn setCar(vals, value);\n\t\t\t\t}\n\t\t\t\tvars = cdr(vars);\n\t\t\t\tvals = cdr(vals);\n\t\t\t}\n\t\t\tenv = cdr(cdr(env));\n\t\t}\n\t\t\n\t\t//System.out.printf(\"Variable %s is undefined\\n\", variable.stringToken);\n\t\treturn insert(variable, value, oldE);\n\t}",
"public Variable(String name, int initialValue){\n this.name = name;\n this.initialValue = initialValue;\n }",
"public abstract void setVarCount(int varCount);",
"public void setOriginalVariable(GlobalVariable var) {\n originalVariable = var;\n }",
"public void reAssign(Object o) {\n\t}",
"public void updateValue(Integer variable, Integer updateValue) {\n Integer committedValue = variables.get(variable).getKey();\n variables.put(variable, new ImmutablePair<>(committedValue, updateValue));\n }",
"public abstract void assign(ParameterVector pv) throws SolverException;",
"public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}",
"private void smem_variable_create(smem_variable_key variable_id, long variable_value) throws SQLException\n {\n final PreparedStatement var_create = db.var_create;\n \n var_create.setInt(1, variable_id.ordinal());\n var_create.setLong(2, variable_value);\n \n var_create.execute();\n }",
"public void insertValue(Integer variable, Integer currentValue) {\n variables.put(variable, new ImmutablePair<>(currentValue, currentValue));\n }",
"public Variable(String name){\n this.name = name;\n }",
"final void set(int param1, Scriptable param2, Object param3) {\n }",
"public Variable(String name,List<String> Values,List<Variable> Parents) {\r\n\t\tthis(name,Values,Parents,new TreeMap<>());\r\n\t}",
"public static void set(Class clazz, String variableName, Object value) throws ReflectionException {\n\t\tset(clazz, null, variableName, value);\n\t}",
"public IAspectVariable<V> createNewVariable(PartTarget target);",
"private static void createVars(JsProgram program, JsBlock block,\n Collection<JsStringLiteral> toCreate, Map<JsStringLiteral, JsName> names) {\n if (toCreate.size() > 0) {\n // Create the pool of variable names.\n JsVars vars = new JsVars(program.createSourceInfoSynthetic(\n JsStringInterner.class, \"Interned string pool\"));\n SourceInfo sourceInfo = program.createSourceInfoSynthetic(\n JsStringInterner.class, \"Interned string assignment\");\n for (JsStringLiteral literal : toCreate) {\n JsVar var = new JsVar(sourceInfo, names.get(literal));\n var.setInitExpr(literal);\n vars.add(var);\n }\n block.getStatements().add(0, vars);\n }\n }",
"public static void setObj(Object holder, Object index, IRubyObject value) {\n\n\t\t// rubyobject and string name?\n\t\tif (holder instanceof RubyObject && index instanceof String) {\n\t\t\t// get vars\n\t\t\tRubyObject rb = (RubyObject) holder;\n\t\t\tString var = (String) index;\n\n\t\t\t// set it\n\t\t\trb.setInstanceVariable(var, value);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// arraylisr and index id?\n\t\tif (holder instanceof ArrayList && index instanceof Integer) {\n\t\t\t// get vars\n\t\t\tArrayList<IRubyObject> ary = (ArrayList<IRubyObject>) holder;\n\t\t\tint id = (Integer) index;\n\n\t\t\t// remove\n\t\t\tary.remove(id);\n\n\t\t\t// set\n\t\t\tary.add(id, value);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// RubyArray and index id?\n\t\tif (holder instanceof RubyArray && index instanceof Integer) {\n\t\t\t// get vars\n\t\t\tRubyArray ary = (RubyArray) holder;\n\t\t\tint id = (Integer) index;\n\n\t\t\t// remove\n\t\t\tary.remove(id);\n\n\t\t\t// set\n\t\t\tary.add(id, value);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// nothing?\n\t\tYEx.info(\"Can not set Ruby obj for holder \" + holder.getClass() + \" and index \" + index.getClass(), new IllegalArgumentException(\n\t\t\t\t\"holder \" + holder.getClass() + \" and index \" + index.getClass()));\n\t}",
"public void setVariable(Name variable) {\n this.variable = variable;\n }",
"Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }",
"public V setValue(V value);",
"@Override\r\n\tpublic void visitVariable(ExpVariable exp) {\r\n\t\tif (replaceVariables.containsKey(exp.getVarname())) {\r\n\t\t\tobject = replaceVariables.get(exp.getVarname());\r\n\t\t\tgetAttributeClass(replaceVariables.get(exp.getVarname()).name());\r\n\r\n\t\t} else if (variables.containsKey(exp.getVarname())) {\r\n\t\t\tobject = variables.get(exp.getVarname());\r\n\t\t\tif (collectionVariables.contains(exp.getVarname())) {\r\n\t\t\t\tset = true;\r\n\t\t\t}\r\n\t\t\tgetAttributeClass(exp.getVarname());\r\n\t\t} else if (exp.type().isTypeOfClass()) {\r\n\t\t\tIClass clazz = model.getClass(exp.type().shortName());\r\n\t\t\tTypeLiterals type = clazz.objectType();\r\n\t\t\ttype.addTypeLiteral(exp.getVarname());\r\n\t\t\tobject = type.getTypeLiteral(exp.getVarname());\r\n\t\t\tattributeClass = clazz;\r\n\t\t} else {\r\n\t\t\tthrow new TransformationException(\"No variable \" + exp.getVarname() + \".\");\r\n\t\t}\r\n\t}",
"public void testBoundToVariable()\n throws Exception\n {\n String varname =\"ITEM\";\n String id = \"occ_hermes1\";\n Occurrence occ = (Occurrence) tm.getObjectByID(id);\n // resolver shall resolve by id\n tag.setOccurrence(occ);\n\n // resolved topic shall be stored in\n // the variable named TOPIC\n tag.setVar(varname);\n \n // resolve\n setScriptForTagBody(tag);\n tag.doTag(null);\n \n // the item should be stored in the variable\n assertEquals(occ, ctx.getVariable(varname));\n \n // make a new tag, bound to the same variable \n // set resolvement to non existant topic\n tag = new UseOccurrenceTag();\n tag.setContext(ctx);\n tag.setVar(varname);\n tag.setId(\"nonexistantntifd\");\n\n // resolve\n tag.doTag(null);\n\n // the variable should be resetted\n assertNull(ctx.getVariable(varname));\n \n }",
"public Variable(String name) {\r\n\tthis.name = name;\r\n }",
"@Override\n public void store(String username, Parameter obj) throws RegistryHandlerException {\n final String parameterName = obj.getName();\n try {\n super.store(username, obj);\n\n statusHandler.info(String.format(SUCCESSFULLY_STORED_PARAMETER,\n parameterName));\n } catch (RegistryHandlerException e) {\n boolean tryAgain = handleUnresolvedReferences(username, obj, e);\n\n if (tryAgain) {\n try {\n super.store(username, obj);\n\n statusHandler.info(String.format(\n SUCCESSFULLY_STORED_PARAMETER, parameterName));\n } catch (RegistryHandlerException e1) {\n statusHandler.error(String.format(FAILED_STORING_PARAMETER,\n parameterName), e1);\n throw e1;\n }\n } else {\n statusHandler.error(\n String.format(FAILED_STORING_PARAMETER, parameterName),\n e);\n }\n }\n }",
"public GenericData set(String var1, Object var2) {\n return this.set(var1, var2);\n }",
"public Object registerVariable(WorkflowContext context, ProcessInstance entry, Map<String,String> args, PersistentVars persistentVars) throws WorkflowException;",
"void setValue(V value);",
"public Variable(String name) {\n this.name = name;\n checkRep();\n }",
"void setParameter(String name, Object value);",
"public void declare (String name, Value value){\n if (contains(name)){\n throw new VariableAlreadyDefined();\n }\n this.values.put(name, value);\n }",
"VariableExp createVariableExp();",
"public T set(int i, T obj);",
"public static void store(DataIdentifier id, Parameter parameter, Object value){\n\t\tString key = null;\n\t\tif(parameter.getName()!=null){\n\t\t\tkey = parameter.getName();\n\t\t}else if(parameter.getRef()!=null && parameter.getRef().toString()!=null){\n\t\t\tkey = parameter.getRef().toString();\n\t\t}\n\t\tDataStore.store(id, key, value);\n\t}",
"void setValue(String name,BudaBubble bbl)\n{\n if (name != null) value_map.put(name,bbl);\n}",
"public void setValue(Object val);",
"public void superAddValues(RecordingObject recordingObject) throws Exception\n\t{\n\t\t// Get group root of file, this should contain all groups\n\t\tGroup root = getRoot();\n\t\t// Create path by replacing . in desired variable name by /\n\t\tString path = \"/\" + recordingObject.getVariable().replace(\".\", \"/\");\n\t\t// Try to find variable in file\n\t\tHObject v = FileFormat.findObject(recordingsH5File, path);\n\t\t// Variable not found, let's create it\n\t\tif(v == null)\n\t\t{\n\n\t\t\t_logger.warn(\"Creating variable \" + recordingObject.getVariable() + \" \" + i++);\n\n\t\t\tString[] splitByPeriod = recordingObject.getVariable().split(\"\\\\.\");\n\n\t\t\t/**\n\t\t\t * Split variable name by the . and use each string to create a group from it and attach it to parent group, which at start is the root. If group is found, retrieves it and keeps checking\n\t\t\t * the rest of the path. Once all groups have been created for the path, create the dataset and attach it to last group created.\n\t\t\t */\n\t\t\tGroup current = root;\n\t\t\tString currentTag = recordingObject.getVariable();\n\t\t\tString currentPath = \"\";\n\t\t\tfor(int s = 0; s < splitByPeriod.length - 1; s++)\n\t\t\t{\n\t\t\t\tcurrentTag = splitByPeriod[s];\n\t\t\t\tcurrentPath = currentPath.concat(\"/\" + currentTag);\n\t\t\t\tcurrent = createGroup(current, currentTag, currentPath, root);\n\t\t\t}\n\t\t\t// last part of path will be dataset\n\t\t\t// e.g. If variable given was P.J then P is group object, while\n\t\t\t// J is a dataset\n\t\t\tcurrentTag = splitByPeriod[splitByPeriod.length - 1];\n\n\t\t\tthis.createDataSet(recordingObject, current, currentTag);\n\t\t}\n\t\t// NOTE: There was some commented code to update a variable in case it alrady existed, you can find it here\n\t\t// https://github.com/openworm/org.geppetto.core/blob/6c0a2fa2e584fc8a9984ec7b5c62ecb425d3f52c/src/main/java/org/geppetto/core/recordings/GeppettoRecordingCreator.java\n\t}",
"private boolean bindNewVariable(String name, Obj value) {\n if (name.equals(\"_\")) return true;\n \n // Bind the variable.\n return mScope.define(mIsMutable, name, value);\n }",
"public void SetAllVariables(double NewValue) {\n DstQueue.SetAllVariables(NewValue);\n }",
"void setObjectValue(Object dataObject);",
"Object setValue(Object value) throws NullPointerException;",
"public void set(String name, PyObject value) {\n }",
"public static Variable in(Object byValue) {\n\t\treturn new Variable(byValue);\n\t}",
"public VariableIF createVariable(VariableDecl decl);",
"public void setHighestVariable(int v) {\n\t\tHighestVariable = (HighestVariable + v);\n\t}",
"public void setValue(Object param1, Object param2) {\n }",
"public T set(T obj);",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar42(java.lang.Integer value) {\n validate(fields()[43], value);\n this.var42 = value;\n fieldSetFlags()[43] = true;\n return this;\n }",
"protected void set(String name, String value) {\n\t\tParameter param = new Parameter(name, value);\n\t\t_parameters.set(param);\n\t}",
"public void setObject(int i, T obj);",
"protected void replaceVariable(SqlCall sqlCall, ScriptVariable variable) throws ParamReplaceException {\n if (sqlCall.getOperator() instanceof SqlFunction) {\n new SqlFunctionRegisterVisitor().visit(sqlCall);\n }\n for (int i = 0; i < sqlCall.operandCount(); i++) {\n SqlNode sqlNode = sqlCall.getOperandList().get(i);\n if (sqlNode == null) {\n continue;\n }\n if (sqlNode instanceof SqlCall) {\n replaceVariable((SqlCall) sqlNode, variable);\n } else if (sqlNode instanceof SqlIdentifier) {\n if (sqlNode.toString().equalsIgnoreCase(variable.getNameWithQuote())) {\n sqlCall.setOperand(i, SqlNodeUtils.toSingleSqlLiteral(variable, sqlNode.getParserPosition()));\n }\n } else if (sqlNode instanceof SqlNodeList) {\n SqlNodeList nodeList = (SqlNodeList) sqlNode;\n\n List<SqlNode> toRemove = new LinkedList<>();\n List<SqlNode> toAdd = new LinkedList<>();\n\n for (SqlNode node : nodeList.getList()) {\n if (node instanceof SqlCall) {\n replaceVariable((SqlCall) node, variable);\n } else {\n if (node.toString().equalsIgnoreCase(variable.getNameWithQuote())) {\n List<SqlNode> variableNodes = SqlNodeUtils.createSqlNodes(variable, sqlCall.getParserPosition());\n if (CollectionUtils.isNotEmpty(variableNodes)) {\n toAdd.addAll(variableNodes);\n }\n toRemove.add(node);\n }\n }\n }\n nodeList.getList().removeAll(toRemove);\n nodeList.getList().addAll(toAdd);\n } else {\n Pattern variablePattern = Pattern.compile(String.format(Const.VARIABLE_PATTERN_TEMPLATE, variable.getName()), Pattern.CASE_INSENSITIVE);\n Matcher matcher = variablePattern.matcher(sqlNode.toSqlString(sqlDialect).getSql());\n if (matcher.find()) {\n log.warn(\"variable replace failed due to unknown sql type :\" + sqlNode.getKind() + \">\" + sqlNode.toSqlString(sqlDialect).getSql());\n throw new ParamReplaceException();\n }\n }\n }\n }",
"static public <T1> Set<Variable> newVariables(\n String name1, T1 value1, Class<? extends T1> type1\n ) {\n return newVariables(\n newVariable(name1, value1, type1)\n );\n }",
"public void setValue(Object value);",
"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}",
"public void setVariableValues(Map<String, Object> variables) {\n for (Map.Entry<String, Object> entry : variables.entrySet()) {\n setVariableValue(entry.getKey(), entry.getValue());\n }\n }",
"public void setVariable(String strVariable)\n {\n this.strVariable = strVariable;\n }",
"private SWRLVariable initalizeVariable(String name, SWRLVariable var1) {\n\n if (literalVocabulary.containsKey(name)) {\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(name)));\n } else {\n char variable = this.generateVariable();\n literalVocabulary.put(name, String.valueOf(variable));\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + variable));\n }\n\n return var1;\n }",
"public void setValue(Object value) { this.value = value; }",
"public Function setParameter(int index, Function var) throws IndexOutOfBoundsException;",
"private boolean putTemporaryVar(String name){\n if(get(name) != null) return false;\n if(temporaryVariables.size() == 0) return false;\n\n boolean b;\n\n for (int i = 0; i < Integer.MAX_VALUE - 1; i++) {\n Map<String, Integer> tmp;\n b = !currentVariables.containsValue(i);\n if(b == false) continue;\n for (Map<String, Integer> x : temporaryVariables) {\n b &= !x.containsValue(i);\n if(b == false) break;\n }\n if(b == true){\n tmp = temporaryVariables.get(temporaryVariables.size() - 1);\n tmp.put(name, i);\n return true;\n }\n }\n return false;\n }",
"public int createParameter(String name, String value){\n Parameter newParameter = new Parameter(nextParamKey, name, value);\n nextParamKey++;\n\n parameters.add(newParameter);\n\n return newParameter.getKey();\n }",
"public void setStateValue(final String variableName, final Object value) {\n //Preconditions\n assert variableName != null : \"variableName must not be null\";\n assert !variableName.isEmpty() : \"variableName must not be empty\";\n\n synchronized (stateVariableDictionary) {\n if (stateVariableDictionary.isEmpty() && !stateValueBindings.isEmpty()) {\n // lazy population of the state value dictionary from the persistent state value bindings\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateVariableDictionary.put(stateValueBinding.getVariableName(), stateValueBinding);\n });\n }\n StateValueBinding stateValueBinding = stateVariableDictionary.get(variableName);\n if (stateValueBinding == null) {\n stateValueBinding = new StateValueBinding(variableName, value);\n stateVariableDictionary.put(variableName, stateValueBinding);\n stateValueBindings.add(stateValueBinding);\n } else {\n stateValueBinding.setValue(value);\n }\n }\n }",
"void set(String key, Object value);"
]
| [
"0.58142555",
"0.5734778",
"0.5557868",
"0.5557868",
"0.5470631",
"0.54650384",
"0.5444085",
"0.5393691",
"0.5309033",
"0.5253878",
"0.52406275",
"0.52115214",
"0.5197963",
"0.5184018",
"0.5181238",
"0.5171313",
"0.51707035",
"0.5160458",
"0.5147336",
"0.5146553",
"0.51190484",
"0.5117272",
"0.5113082",
"0.5099983",
"0.5090524",
"0.5081482",
"0.507501",
"0.50725204",
"0.5072122",
"0.5061337",
"0.50572294",
"0.502132",
"0.50086963",
"0.50063825",
"0.49977785",
"0.49969184",
"0.4996689",
"0.49764076",
"0.49712452",
"0.49645758",
"0.49482733",
"0.4943841",
"0.49429834",
"0.49324107",
"0.49214536",
"0.49206382",
"0.49182752",
"0.4915215",
"0.49119592",
"0.49093086",
"0.49063542",
"0.49032712",
"0.4900761",
"0.48945218",
"0.4894508",
"0.48916438",
"0.48803544",
"0.4877012",
"0.48738244",
"0.48733214",
"0.4864308",
"0.48459876",
"0.4845167",
"0.48446473",
"0.48354113",
"0.48345968",
"0.48330787",
"0.4827564",
"0.48224714",
"0.48207596",
"0.4819644",
"0.48075598",
"0.48067087",
"0.48022497",
"0.48001668",
"0.47980952",
"0.4797921",
"0.47922873",
"0.47823897",
"0.47805274",
"0.47794622",
"0.47741744",
"0.4773384",
"0.47724655",
"0.4770319",
"0.47674164",
"0.47648674",
"0.47644046",
"0.47546744",
"0.47523093",
"0.47484946",
"0.47474742",
"0.47412106",
"0.47393546",
"0.47373122",
"0.47284776",
"0.47271976",
"0.47189802",
"0.47144789",
"0.47073567"
]
| 0.47567627 | 88 |
TODO Autogenerated method stub | @Override
public FlatJdbcDO mapRow(ResultSet rs, int rowNum) throws SQLException {
System.out.println("studentDOJdbcDoWrapper.mapRow() rownum"+rowNum);
FlatJdbcDO studentdo=new FlatJdbcDO();
studentdo.setFlatId(rs.getString("flatid"));
studentdo.setFlatOwner(rs.getString("flatowner"));
studentdo.setSocietyId(rs.getString("societyid"));
System.out.println("FlatJdbcWrapper.mapRow() flatdo="+studentdo);
System.out.println("studentDOJdbcDoWrapper.mapRow() studentdo="+studentdo);
return studentdo;
} | {
"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 |
getting for one message messages | @GET
@Path("/{messageId}")// so for seperate methods also we have
//@path .. so outside class its /messages..
//for this method we need /messages/test.. so just "/test"
//inside{} there is variable any variable passed and again the
//configuration is done in such a way that the varaible will be used to
//access data
@Produces(MediaType.APPLICATION_JSON) //@Produces(MediaType.APPLICATION_XML)
public Message getMessage(@PathParam("messageId")long messageId , @Context UriInfo uriInfo)
{
Message message = serv.getMessage(messageId);
String uri =uriInfo.getBaseUriBuilder() //http://localhost:8080/messenger/webapi
.path(MessageResource.class) // /messages
.path(Long.toString(message.getId())) // /{messageId}
.build()
.toString();
message.addLink(uri, "self");
message.addLink(getUriForProfile(uriInfo,message),"profile");
message.addLink(getUriForComment(uriInfo,message),"comments");
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Message getNextMessage();",
"@Override\n public final void removeNextMessage() {\n }",
"Message getCurrentMessage();",
"private void viewMessage()\n {\n System.out.println( inbox );\n inbox = \"\";\n }",
"Message getPreviousMessage();",
"public String getNextMessage(){\r\n String msg = this.receivedMessages.get(0);\r\n this.receivedMessages.remove(0);\r\n return msg;\r\n }",
"Message pull();",
"protected byte[] getNextMessage(){\n if (messages.size() > 0) {\n byte message[] = messages.get(0).clone();\n messages.remove(0);\n return message;\n } else {\n return null;\n }\n \n }",
"@Override\r\n\tpublic void onMessage(BmobMsg message) {\n\t\trefreshNewMsg(message);\r\n\t}",
"private void postMessages() {\n List<models.MessageProbe> probes = new Model.Finder(String.class, models.MessageProbe.class).where().ne(\"curr_status\", 1).findList();\n for (models.MessageProbe currProbe : probes) {\n if ((currProbe.curr_status == models.MessageProbe.STATUS.WITH_ERROR) || (currProbe.curr_status == models.MessageProbe.STATUS.NEW)) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToPost());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.POSTED;\n currProbe.curr_error = null;\n postCounter++;\n }\n currProbe.update();\n }\n }\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.DELETED) {\n currProbe.delete();\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.EDITED) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToModify());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.WAIT_CONFIRM;\n currProbe.curr_error = null;\n editCounter++;\n }\n currProbe.update();\n }\n }\n }\n }\n }",
"@Override\n\t\t\tpublic void onOne(String message) {\n\t\t\t\tSystem.out.println(\"One: \"+message);\n\t\t\t}",
"public abstract void stickerMessage(Message m);",
"public void switchToNextMessage() {\n if (this.popupMessages.size() > 1) {\n if (this.currentMessageNum < this.popupMessages.size() - 1) {\n this.currentMessageNum++;\n } else {\n this.currentMessageNum = 0;\n }\n this.currentMessageObject = this.popupMessages.get(this.currentMessageNum);\n updateInterfaceForCurrentMessage(2);\n this.countText.setText(String.format(\"%d/%d\", new Object[]{Integer.valueOf(this.currentMessageNum + 1), Integer.valueOf(this.popupMessages.size())}));\n }\n }",
"@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}",
"void messageSent();",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisTaken = true;\n\t\t}",
"void addOneToOneSpamMessage(ChatMessage msg);",
"@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}",
"void addOneToOneFailedDeliveryMessage(ChatMessage msg);",
"@Override\r\n public void handleMessage(Message msg) {\n }",
"Cursor getUndeliveredOneToOneChatMessages();",
"public void reOpe1FromOther(OpeMsg msg) {\n\t\t\n\t}",
"@Override\n public void handleMessage(Message message) {}",
"private void clearMsg() {\n msg_ = emptyProtobufList();\n }",
"private void clearMsg() {\n msg_ = emptyProtobufList();\n }",
"protected void clearMessages(){\n\t\twMessages.clear();\n\t}",
"@Override\n\tpublic void reSendMessage(TransactionMessage transactionMessage) {\n\t\t\n\t}",
"@Override\n\tpublic String sendMsg1() {\n\t\treturn null;\n\t}",
"public void onMessage(Message message) {\n lastMessage = message;\n\n }",
"@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}",
"void resetMessageCounter();",
"@Override\n\tpublic MessagePojo updatemessage(MessagePojo message) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void getMessage(TranObject msg) {\n\n\t}",
"private void removeMsg(int index) {\n ensureMsgIsMutable();\n msg_.remove(index);\n }",
"private void removeMsg(int index) {\n ensureMsgIsMutable();\n msg_.remove(index);\n }",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"void mo80456b(Message message);",
"public void msg1()\r\n\t{\n\t\t\r\n\t}",
"private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }",
"public void actionPerformed(ActionEvent arg0) {\r\n\t\tsynchronized (this.messages) {\r\n\t\t\tif (this.messages.size() == 0) {\r\n\t\t\t\tif (!this.sendMessages) {\r\n\t\t\t\t\tthis.messageTimer.stop();\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tMessage msg = this.messages.remove();\r\n\t\t\tthis.println(\"Our Message: \" + msg.getMessage());\r\n\r\n\t\t\t// Messages are either to the entire server or to individual clients\r\n\t\t\tif (msg.getPlayerNo() == Message.ALL_CLIENTS) {\r\n\t\t\t\t// Send the message to every client at the same time\r\n\t\t\t\tsynchronized (this.allClients) {\r\n\t\t\t\t\tfor (Client client : this.allClients) {\r\n\t\t\t\t\t\t// Send the message only to clients who are not ignored\r\n\t\t\t\t\t\tif (client.getPlayerNo() != msg.getIgnoredPlayer()) {\r\n\t\t\t\t\t\t\tclient.sendMessage(msg.getMessage());\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} else {\r\n\t\t\t\t// Send the message to a specific client\r\n\t\t\t\tClient temp = this.players.get(msg.getPlayerNo());\r\n\t\t\t\tif (temp != null) {\r\n\t\t\t\t\ttemp.sendMessage(msg.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void reSendMessageByMessageId(String messageId) {\n\t\t\n\t}",
"public void afficherMessage();",
"protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }",
"public void getNewMessage() {\n boolean z;\n if (this.popupMessages.isEmpty()) {\n onFinish();\n finish();\n return;\n }\n if ((this.currentMessageNum != 0 || this.chatActivityEnterView.hasText() || this.startedMoving) && this.currentMessageObject != null) {\n int size = this.popupMessages.size();\n int i = 0;\n while (true) {\n if (i >= size) {\n break;\n }\n MessageObject messageObject = this.popupMessages.get(i);\n if (messageObject.currentAccount == this.currentMessageObject.currentAccount && messageObject.getDialogId() == this.currentMessageObject.getDialogId() && messageObject.getId() == this.currentMessageObject.getId()) {\n this.currentMessageNum = i;\n z = true;\n break;\n }\n i++;\n }\n }\n z = false;\n if (!z) {\n this.currentMessageNum = 0;\n this.currentMessageObject = this.popupMessages.get(0);\n updateInterfaceForCurrentMessage(0);\n } else if (this.startedMoving) {\n if (this.currentMessageNum == this.popupMessages.size() - 1) {\n prepareLayouts(3);\n } else if (this.currentMessageNum == 1) {\n prepareLayouts(4);\n }\n }\n this.countText.setText(String.format(\"%d/%d\", new Object[]{Integer.valueOf(this.currentMessageNum + 1), Integer.valueOf(this.popupMessages.size())}));\n }",
"@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }",
"private void sendPreviousMessagesToClient() throws IOException {\n String previousMessages = messagesManager.toString(); // Gets the contents of the queue containing the last 15 messages\n outputFromServer.println(previousMessages); // Sends a message to client\n }",
"void mo80453a(Message message);",
"@Override\n\tpublic void confirmAndSendMessage(String messageId) {\n\t\t\n\t}",
"public void onRecieve(RoundTimeMessage message) {\n\n\n }",
"@Override\n public void onClick(View view) {\n String msg = mSendView.getText().toString();\n currMessage = msg;\n mSendView.setText(\"\");\n sendMessage(msg);\n refresh();\n\n }",
"protected void handleMessage(Message msg) {}",
"private void writeNextMessageInQueue() {\n // This should not happen in practice since this method is private and should only be called\n // for a non-empty queue.\n if (mMessageQueue.isEmpty()) {\n Log.e(TAG, \"Call to write next message in queue, but the message queue is empty.\");\n return;\n }\n\n if (mMessageQueue.size() == 1) {\n writeValueAndNotify(mMessageQueue.remove().toByteArray());\n return;\n }\n\n mHandler.post(mSendMessageWithTimeoutRunnable);\n }",
"@Override\n\tpublic void msgGotHungry() {\n\t\t\n\t}",
"@Override\n public Message getNextMessage() {\n return commReceiver.getNextMessage();\n }",
"public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }",
"private void clearMessageId() {\n \n messageId_ = 0L;\n }",
"public void messageResp(int respId) {\n\r\n\t}",
"private void back(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n if (iIndex==0) return;//if at start of message\r\n --iIndex;//move back one character\r\n \r\n }",
"void mo23214a(Message message);",
"@Override\n\t \t\tpublic void handleMessage(Message msg) {\n\t \t\treceive();\n\t \t\t\t// myTextView.setText(String.valueOf(cnt));\n\t \t\t}",
"@Override\n\tpublic int numberOfMessages() {\n\t\treturn 0;\n\t}",
"public final void manageMessage(Message message)\n\t{\n\t\tif(message.getText() != null)\n\t\t{\n\t\t\ttextMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getAudio() != null)\n\t\t{\n\t\t\taudioMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getDocument() != null)\n\t\t{\n\t\t\tdocumentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPhoto() != null)\n\t\t{\n\t\t\tphotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSticker() != null)\n\t\t{\n\t\t\tstickerMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVideo() != null)\n\t\t{\n\t\t\tvideoMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif(message.getVideoNote() != null)\n\t\t{\n\t\t\tvideoNoteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVoice() != null)\n\t\t{\n\t\t\tvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\tif(message.getContact() != null)\n\t\t{\n\t\t\tcontactMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLocation() != null)\n\t\t{\n\t\t\tlocationMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVenue() != null)\n\t\t{\n\t\t\tvenueMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif (message.getDice() != null)\n\t\t{\n\t\t\tdiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMember() != null)\n\t\t{\n\t\t\tnewChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMembers() != null)\n\t\t{\n\t\t\tnewChatMembersMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLeftChatMember() != null)\n\t\t{\n\t\t\tleftChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPinned_message() != null)\n\t\t{\n\t\t\tpinnedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatTitle() != null)\n\t\t{\n\t\t\tnewChatTitleMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatPhoto() != null)\n\t\t{\n\t\t\tnewChatPhotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetDeleteChatPhoto())\n\t\t{\n\t\t\tgroupChatPhotoDeleteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetGroupChatCreated())\n\t\t{\n\t\t\tgroupChatCreatedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getGame() != null)\n\t\t{\n\t\t\tgameMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSuccessfulPayment() != null)\n\t\t{\n\t\t\tsuccessfulPaymentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getInvoice() != null)\n\t\t{\n\t\t\tinvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t}",
"Res.Msg getMsg(int index);",
"@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}",
"@Override\n public void onTextMessage(ReceivedTextMessage message) {\n //ignore the message\n }",
"void onNewMessage(String message);",
"@Override\n public void onChatMessageFragmentInteraction(MessageEnum message, Object result) {\n ((MyMessage)result).setSenderId(this.user.getUserId());\n ((MyMessage)result).setReceiverId(this.receiverId);\n ((MyMessage)result).setBookId(this.selectedBook.getBookId());\n //send message to message list\n databaseHandler.sendMessageToDatabase((MyMessage)result);\n //message should come back with reference change?\n }",
"@Override\n\t\tpublic void onDirectMessage(DirectMessage arg0) {\n\t\t\t\n\t\t}",
"private boolean noMessage() {\n\t\treturn nbmsg==0;\n\t}",
"@Override\n public Message converseMessage(final Message message) {\n //Preconditions\n assert message != null : \"message must not be null\";\n\n // handle operations\n return Message.notUnderstoodMessage(\n message, // receivedMessage\n this); // skill\n }",
"void removeAll(){\n\t\tmessages.clear();\n\t}",
"public byte[] nextMsg() {\n return null;\r\n }",
"@Override\n\tpublic void onMessage(Message message) {\n\t\tTextMessage textMessage = (TextMessage) message;\n\t\ttry {\n\t\t\tString id = textMessage.getText();\n\t\t\tint i = Integer.parseInt(id);\n\t\t\tgoodsService.out(i);\n\t\t\tList<Goods> list = goodsService.findByZt();\n\t\t\tsolrTemplate.saveBeans(list);\n\t\t\tsolrTemplate.commit();\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void clearMessageId() {\n messageId_ = emptyLongList();\n }",
"@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}",
"public void refreshSmssent() {\n //this is a cursor to go through and get all of your recieved messages\n ContentResolver contentResolver = getContentResolver();\n Cursor smssentCursor = contentResolver.query(Uri.parse(\"content://sms/sent\"),\n null, null, null, null);\n //this gets the message itsself\n int indexBody = smssentCursor.getColumnIndex(\"body\");\n //this gets the address the message came from\n int indexAddress = smssentCursor.getColumnIndex(\"address\");\n int indexDate = smssentCursor.getColumnIndex(\"date\");\n //get messages the user sent\n if (indexBody < 0 || !smssentCursor.moveToFirst())\n return;\n do {\n if (smssentCursor.getString(indexAddress).equals(number)|| smssentCursor.getString(indexAddress).equals(\"+1\"+number)){\n ConversationObject c = new ConversationObject(smssentCursor.getString(indexBody), \"\",smssentCursor.getString(indexAddress), smssentCursor.getLong(indexDate));\n sent.add(c);\n }\n } while (smssentCursor.moveToNext());\n }",
"@Override\r\n public void onReceiveResult(Message message) {\r\n switch (message.what) {\r\n //TODO\r\n }\r\n }",
"public void tellEveryone(String message) \r\n\t{\r\n\t\tIterator it = Output_Streams_Client.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tPrintWriter writer = (PrintWriter) it.next();\r\n\t\t\t\twriter.println(message);\r\n\t\t\t\tChat.append(\"Sending : \" + message + \"\\n\");\r\n\t\t\t\twriter.flush();\r\n\t\t\t\tChat.setCaretPosition(Chat.getDocument().getLength());\r\n\r\n\t\t\t} \r\n\t\t\tcatch (Exception ex) \r\n\t\t\t{\r\n\t\t\t\tChat.append(\"Mistake to tell everyone \\n\");\r\n\t\t\t}\r\n\t\t} \r\n\t}",
"private void sendMessage()\n\t{\n\t\tfinal String message = messageTextArea.getText(); \n\t\tif(message.length() == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tmessageTextArea.setText(\"\");\n\t\ttry\n\t\t{\n\t\t\teventsBlockingQueue.put(new MessageEvent(message));\n\t\t}\n\t\tcatch (final InterruptedException e1)\n\t\t{\n\t\t}\n\t}",
"void onSendMessageComplete(String message);",
"@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}",
"@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }",
"private void receiveMessage() {\n ParseQuery<ParseObject> refreshQuery = ParseQuery.getQuery(\"Group\");\n\n refreshQuery.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject parseObject, ParseException e) {\n if (e == null) {\n chatMessageArray = parseObject.getList(\"groupMessageArray\");\n\n messageArrayList.clear();\n messageArrayList.addAll(chatMessageArray);\n chatListAdapter.notifyDataSetChanged();\n chatLV.invalidate();\n } else {\n System.out.println(e.getMessage());\n }\n }\n });\n }",
"@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}",
"public void addMessage() {\n }",
"@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}",
"Message sendAndWait();",
"@Override\n\t\t\tpublic void action() {\n\t\t\t\tACLMessage message =receive(messageTemplate);\n\t\t\t\tif(message!=null) {\n\t\t\t\t\tSystem.out.println(\"Sender => \" + message.getSender().getName());\n\t\t\t\t\tSystem.out.println(\"Content => \" + message.getContent());\n\t\t\t\t\tSystem.out.println(\"SpeechAct => \" + ACLMessage.getPerformative(message.getPerformative()));\n\t\t\t\t\t//reply with a message\n//\t\t\t\t\tACLMessage reply = new ACLMessage(ACLMessage.CONFIRM);\n//\t\t\t\t\treply.addReceiver(message.getSender());\n//\t\t\t\t\treply.setContent(\"Price = 1000\");\n//\t\t\t\t\tsend(reply);\n\t\t\t\t\t\n\t\t\t\t\tconsumerContainer.logMessage(message);\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"block() ...............\");\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}",
"public abstract void message();",
"public void updateMessage(Message newMessage, IGateway g) {\n for (Message m : allMessage) {\n if (m.getId() == newMessage.getId()) {\n return;\n }\n }\n allMessage.add(newMessage);\n g.write(allMessage);\n }",
"@Override\n \tpublic void updateProgress(int messageId) {\n \t}",
"public void incMessagesSent() {\n this.messagesSent++;\n }",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"void sendMessage() {\n\n\t}",
"@Override\n\t\t\t\t\tpublic void clearChatMessage() {\n\t\t\t\t\t\tchat.clearChatMsg();\n\t\t\t\t\t}",
"public void handleMessageAction(ActionEvent event) {\n if (action.getSelectedToggle() == sendMessage){\n sendPane.setVisible(true);\n reviewPane.setVisible(false);\n }\n else{ //action.getSelectedToggle() == reviewMessage\n sendPane.setVisible(false);\n reviewPane.setVisible(true);\n\n StringBuilder builder = new StringBuilder();\n\n for ( String i : messageController.getMessageForMe(this.sender)){\n builder.append(i).append(\"\\n\");\n }\n this.inbox.setText(String.valueOf(builder));\n\n }\n }",
"public void addMessage(Response response)\n {\n if (response == null)\n {\n //leave a mark to skip a message\n messageSequence.add(false);\n }\n else\n messageSequence.add(response);\n }"
]
| [
"0.67716414",
"0.6582528",
"0.6567104",
"0.6528206",
"0.6476622",
"0.6466856",
"0.64637196",
"0.63321024",
"0.6305858",
"0.6305621",
"0.6300816",
"0.62817746",
"0.6269361",
"0.6243361",
"0.62292033",
"0.62253195",
"0.62186915",
"0.6211788",
"0.6208119",
"0.6186191",
"0.61661553",
"0.61658365",
"0.61631536",
"0.61571604",
"0.61571604",
"0.6123407",
"0.6120642",
"0.6118567",
"0.61177444",
"0.6107332",
"0.6100899",
"0.60904425",
"0.60793996",
"0.6066408",
"0.6066408",
"0.6062719",
"0.6059946",
"0.60513234",
"0.60391206",
"0.60316914",
"0.60300726",
"0.6022948",
"0.59804624",
"0.5969918",
"0.5962531",
"0.59455067",
"0.59381473",
"0.5935856",
"0.59276336",
"0.5920277",
"0.5908589",
"0.59050184",
"0.59036386",
"0.58955395",
"0.5891865",
"0.5883927",
"0.5882807",
"0.5882729",
"0.58785033",
"0.5874299",
"0.58685124",
"0.58678746",
"0.585949",
"0.5849938",
"0.5840433",
"0.5833517",
"0.5832896",
"0.582806",
"0.5821172",
"0.58162445",
"0.5814453",
"0.5808517",
"0.58079875",
"0.57993674",
"0.5793404",
"0.57864875",
"0.5786204",
"0.5778467",
"0.57776076",
"0.57770467",
"0.5776257",
"0.57753813",
"0.57736564",
"0.57711095",
"0.57676077",
"0.5766513",
"0.57627785",
"0.5748686",
"0.57466245",
"0.57448614",
"0.57420003",
"0.5728812",
"0.57263845",
"0.57263845",
"0.57263845",
"0.57263845",
"0.57263845",
"0.5723926",
"0.57198155",
"0.57195514",
"0.5715356"
]
| 0.0 | -1 |
TODO: change this to a better approach. | private boolean matchUrl(String url) {
return url.contains("v1/gifs/");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"private void strin() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"public void method_4270() {}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private void m50366E() {\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 }",
"public final void mo51373a() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"private void init() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void jugar() {}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private Util() { }",
"@Override\n public void init() {\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"private Unescaper() {\n\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n void init() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private void level7() {\n }",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"Consumable() {\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void init() {}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"public void gored() {\n\t\t\n\t}",
"protected abstract Set method_1559();",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void test() {\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\n public void preprocess() {\n }",
"private void test() {\n\n\t}",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Override\n public Object preProcess() {\n return null;\n }",
"public abstract void mo70713b();",
"@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\tprotected void initialize() {\n\r\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n public void preprocess() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}"
]
| [
"0.56146336",
"0.55485463",
"0.5490097",
"0.54275995",
"0.5377817",
"0.53766435",
"0.5338971",
"0.52949584",
"0.5293679",
"0.52065873",
"0.5202418",
"0.51804006",
"0.5173672",
"0.5165669",
"0.51488334",
"0.5130106",
"0.5123918",
"0.5105582",
"0.5093689",
"0.5058704",
"0.5053995",
"0.5040803",
"0.5039468",
"0.50314516",
"0.5026223",
"0.5026223",
"0.5026223",
"0.5026223",
"0.5026223",
"0.5026223",
"0.50141275",
"0.5003932",
"0.50032806",
"0.4998448",
"0.4998448",
"0.4993298",
"0.49895784",
"0.4981311",
"0.49791208",
"0.49680093",
"0.49657866",
"0.4959358",
"0.4959358",
"0.49472597",
"0.49337867",
"0.49298286",
"0.49233007",
"0.4910042",
"0.4907714",
"0.49058753",
"0.49047542",
"0.49031025",
"0.49017453",
"0.488771",
"0.4885092",
"0.48775315",
"0.48775315",
"0.48775315",
"0.48775315",
"0.48775315",
"0.48772338",
"0.48759222",
"0.4872596",
"0.48723096",
"0.48666683",
"0.4865361",
"0.48628452",
"0.4860015",
"0.48564547",
"0.4852958",
"0.4849703",
"0.48343837",
"0.48315632",
"0.48311847",
"0.48284376",
"0.48224494",
"0.48181465",
"0.48180297",
"0.48177037",
"0.4815507",
"0.48148406",
"0.48142838",
"0.48142838",
"0.4811135",
"0.47923687",
"0.47874305",
"0.47815612",
"0.4781444",
"0.4781444",
"0.47771004",
"0.47723478",
"0.47710848",
"0.47699994",
"0.47677684",
"0.47677684",
"0.47677684",
"0.47675583",
"0.47663572",
"0.47588277",
"0.47551638",
"0.47551638"
]
| 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.