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 |
---|---|---|---|---|---|---|
/ Print the label of the edge from v to current vertex, if such edge exists, and otherwise print "none" | public void findEdgeFrom(char v) {
for (int i = 0; i < currentVertex.inList.size(); i++) {
Neighbor neighbor = currentVertex.inList.get(i);
if (neighbor.vertex.label == v) {
System.out.println(neighbor.edge);
return;
}
}
System.out.println("none");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void findEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tSystem.out.println(neighbor.edge);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"none\");\r\n\t}",
"public boolean hasEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean foiChecado(Vertice v){\n int i = v.label;\n return vertices[i];\n }",
"public boolean hasEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void gotoVertex(char v) {\r\n\t\tfor (int i = 0; i < vertices.size(); i++) {\r\n\t\t\tif (vertices.get(i).label == v) {\r\n\t\t\t\tcurrentVertex = vertices.get(i);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"The vertex \" + v + \" does not exist.\");\r\n\t}",
"public void inIncidentEdges() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).edge + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"void setEdgeLabel(int edge, String label);",
"public void printPath(Vertex v) {\n if ( v.dist == 0 )\n return;\n printPath(v.path);\n System.out.print(\"-> \" + v.graphLoc+\" \");\n }",
"public void inAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"public abstract String edgeToStringWithNoProb(int nodeSrc, int nodeDst, Set<String> relations);",
"private static void outputVertex(RootedTree tree, StringBuffer sb, Object v) {\r\n\t\tif (!tree.isLeaf(v)) {\r\n\t\t\tsb.append('(');\r\n\t\t\tList l = tree.getChildrenOf(v);\r\n\t\t\tfor (int i = 0; i < l.size(); i++) {\r\n\t\t\t\toutputVertex(tree, sb, l.get(i));\r\n\t\t\t\tif (i != l.size() - 1) sb.append(',');\r\n\t\t\t}\r\n\t\t\tsb.append(')');\r\n\t\t}\r\n\t\t// Call this to make the vertex's label nicely formatted for Nexus\r\n\t\t// output.\r\n\t\tString s = getNexusCompliantLabel(tree, v);\r\n\t\tif (s.length() != 0) sb.append(s);\r\n\t\tObject p = tree.getParentOf(v);\r\n\t\tif (p != null) {\r\n\t\t\tdouble ew = tree.getEdgeWeight(tree.getEdge(p, v));\r\n\t\t\tif (ew != 1.0) sb.append(\":\" + Double.toString(ew));\r\n\t\t}\r\n\t}",
"public void removeEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\t// remove from neighbor's outList\r\n\t\t\t\tneighbor.vertex.outList.remove(findNeighbor(neighbor.vertex.outList, currentVertex.label)); \t\t\r\n\t\t\t\tcurrentVertex.inList.remove(neighbor); // remove from current's inList\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Edge from \" + v + \" does not exist.\");\r\n\t}",
"private void printPath( Vertex dest )\n {\n if( dest.prev != null )\n {\n printPath( dest.prev );\n // System.out.print( \" to \" );\n }\n System.out.print( dest.name +\" \" );\n }",
"public void findPath(Vertex v, Graph g)\n {\n \tQueue<Vertex> q = new LinkedList<Vertex>();\n \tSet<String> visited= new HashSet<String>();\n \tSet<String> edges= new TreeSet<String>();\n \t\n \t \tq.add(v);\n \t \tvisited.add(v.name);\n \t \t\n \t \twhile(!q.isEmpty()){\n \t \t\tVertex vertex = q.poll();\n \t \t\t \n \t for(Edge adjEdge: vertex.adjEdge.values()){\n \t\t if(!visited.contains(adjEdge.adjVertex.name) && !adjEdge.adjVertex.isDown && !adjEdge.isDown){\n \t\t\t q.offer(adjEdge.adjVertex);\n \t\t\t visited.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t\t edges.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t }\n \t }\n \t \n \t }\n \t \tfor(String str: edges){\n \t\t System.out.print('\\t');\n \t\t System.out.println(str);\n \t }\n \t \t\n }",
"public void outAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.outList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"private static String getEdgeLabel(FunctionDeclarationKind kind, int operandId) {\n switch (kind) {\n case AND:\n case OR:\n case NOT:\n case IFF:\n case XOR:\n return \"\";\n default:\n return Integer.toString(operandId);\n }\n }",
"private String edgesLeavingVertexToString() {\n \n //make empty string\n String s = \"\";\n \n //for loop to go through all vertices; \n for (int j = 0; j < arrayOfVertices.length; j++) {\n \n //if it has any edges...\n if (arrayOfVertices[j].getDegree() > 0) {\n \n //go through its edges\n for (int k = 0; k < arrayOfVertices[j].getDegree(); k++) {\n \n //declare an array list\n ArrayList<Vertex> newArrayList = \n arrayOfVertices[j].getAdjacent();\n \n //add to string: the vertex itself + space + edge + line break\n s += j + \" \" + newArrayList.get(k).getID() + \"\\n\"; \n \n } \n } \n }\n \n //add -1, -1 after all the edges\n s += \"-1 -1\";\n \n return s; \n }",
"public void outIncidentEdges() {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.outList.get(i).edge + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"public void removeEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\t// remove from neighbor's inList\r\n\t\t\t\tneighbor.vertex.inList.remove(findNeighbor(neighbor.vertex.inList, currentVertex.label)); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tcurrentVertex.outList.remove(neighbor); // remove from current's outList\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge to \" + v + \" does not exist.\");\r\n\t}",
"public void display() {\r\n int v;\r\n Node n;\r\n \r\n for(v=1; v<=V; ++v){\r\n System.out.print(\"\\nadj[\" + toChar(v) + \"] ->\" );\r\n for(n = adj[v]; n != z; n = n.next) \r\n System.out.print(\" |\" + toChar(n.vert) + \" | \" + n.wgt + \"| ->\"); \r\n }\r\n System.out.println(\"\");\r\n }",
"private String edgeString()\n {\n Iterator<DSAGraphEdge<E>> iter = edgeList.iterator();\n String outputString = \"\";\n DSAGraphEdge<E> edge = null;\n while (iter.hasNext())\n {\n edge = iter.next();\n outputString = (outputString + edge.getLabel() + \", \");\n }\n return outputString;\n }",
"@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();",
"public void drawUndirectedEdge(String label1, String label2) {\n }",
"public String toString() \n {\n String NEWLINE = System.getProperty(\"line.separator\");\n StringBuilder s = new StringBuilder();\n for (int v = 0; v < V; v++) \n {\n s.append(v + \": \");\n for (DirectedEdge e : adj[v]) \n {\n \tif(e.online)\n \t{\n \t\ts.append(e + \" \");\n \t}\n }\n s.append(NEWLINE);\n }\n return s.toString();\n }",
"public abstract String getEdgeSymbol(int vertexIndex, int otherVertexIndex);",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\n\\n \\tVertice [label=\" + label + \"] \";\n\t}",
"public abstract String edgeToStringWithProb(int nodeSrc, int nodeDst, double prob, Set<String> relations);",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();",
"public boolean findInEdge(String label){\n\t\tfor(Entry<String, LinkedList<Edge>> s: vertices.entrySet()){\n\t\t\tfor(int i=0; i < vertices.get(s.getKey()).size();i++){\n\t\t\t\tif(vertices.get(s.getKey()).get(i).getDLabel().equals(label)){\n\t\t\t\t\tdelEdge(s.getKey(),label);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"String getLabel();",
"String getLabel();",
"java.lang.String getLabel();",
"private void addEdgeWithLabel(NasmInst source, NasmLabel destination) {\n if (source == null || destination == null)\n throw new FgException(\"ERROR: Can't create an edge without a source and a destination\");\n\n if (systemCalls.contains(destination.toString()))\n return; // System call: iprintLF, readline or atoi. No edge needed\n\n NasmInst destinationInst = label2Inst.get(destination.toString());\n if (destinationInst == null)\n throw new FgException(\"ERROR: No instruction matching with the given label\");\n addEdgeWithInst(source, destinationInst);\n }",
"public E getParentEdge(V vertex);",
"public void display() {\n\t\t\n\t\tint u,v;\n\t\t\n\t\tfor(v=1; v<=V; ++v) {\n\t\t\t\n\t\t\tSystem.out.print(\"\\nadj[\" + v + \"] = \");\n\t\t\t\n\t\t\tfor(u = 1 ; u <= V; ++u) {\n\t\t\t\t \n\t\t\t\tSystem.out.print(\" \" + adj[u][v]);\n\t\t\t}\n\t\t} \n\t\tSystem.out.println(\"\");\n\t}",
"protected void visit(Graph<VLabel, ELabel>.Vertex v) {\n }",
"public String toString(){\n\t\treturn vertex.toString();\n\t}",
"String getIdEdge();",
"void printPath(Coordinate endName) {\n if (!graph.containsKey(endName)) {\n // test use, display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", endName);\n return;\n }\n graph.get(endName).printPath();\n }",
"public void neighhbors(Village vertex) {\n\t\tIterable<Edge> neighbors = g.getNeighbors(vertex);\n\t\tSystem.out.println(\"------------\");\n\t\tSystem.out.println(\"vertex: \" + vertex.getName());\n\t\tfor(Edge e : neighbors) {\n\t\t\tSystem.out.println(\"edge: \" + e.getName());\n\t\t\tSystem.out.println(\"transit: \" + e.getTransit() + \" color: \" + e.getColor());\n\t\t}\n\t}",
"public String vertexToName(int v){\n if (v < 0){ return \"Error, invalid vertex, bellow bounds \" + v;}\n if (v < this.sororityLen){ return this.soroityNames[v];}\n if (v < this.fraternityLen+this.sororityLen){ return this.fraternityNames[v-this.sororityLen];}\n return \"Error, invalid vertex, beyond bounds \" + v; \n }",
"public int getNodeLabel ();",
"@Override\n\tpublic String toString() {\n\t\treturn (\"\"+label);\n\t}",
"Vertex getOtherVertex(Vertex v) {\n\t\t\tif(v.equals(_one)) return _two;\n\t\t\telse if(v.equals(_two)) return _one;\n\t\t\telse return null;\n\t\t}",
"@Override\n public String toString()\n {\n StringBuilder sb = new StringBuilder();\n\n for(Vertex vertex: vertices)\n {\n sb.append(\"V: \" + vertex.toString() + '\\n');\n\n for(Edge edge: connections.get(vertex))\n {\n sb.append(\" -> \" + edge.other(vertex).toString() + \" (\" + edge.getWeight() + \")\\n\");\n }\n }\n\n return sb.toString();\n }",
"public String vertexName();",
"private String getLabelNodeAvl(){\n return concatLabel(this.root);\n }",
"public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}",
"public void followEdge(int e) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.edge == e) {\r\n\t\t\t\tcurrentVertex = neighbor.vertex;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge to \" + e + \" not exist.\");\r\n\t}",
"boolean containsEdge(V v, V w);",
"public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}",
"@Test\n public void getlabelTest() {\n \tVertex<String> v=new Vertex<String>(\"v\");\n \tassertEquals(\"v\", v.getlabel());\n }",
"public void out_vertex(Site v) {\r\n\t\tif (triangulate == 0 & plot == 0 & debug == 0) {\r\n\t\t\tSystem.err.printf(\"v %f %f\\n\", v.coord.x, v.coord.y);\r\n\t\t}\r\n\r\n\t\tif (debug == 1) {\r\n\t\t\tSystem.err.printf(\"vertex(%d) at %f %f\\n\", v.sitenbr, v.coord.x,\r\n\t\t\t\t\tv.coord.y);\r\n\t\t}\r\n\t}",
"public void printVertices() {\r\n\t\tfor (int i = 0; i < vertices.size(); i++)\r\n\t\t\tSystem.out.print(vertices.get(i).label);\r\n\t}",
"public void setLabel(Object v) \n {\n this.label = v;\n }",
"Vertex findVertex(char v) {\r\n\t\tfor (int i = 0; i < vertices.size(); i++) {\r\n\t\t\tif (vertices.get(i).label == v)\r\n\t\t\t\treturn vertices.get(i);\r\n\t\t}\r\n\t\treturn null; // return null if not found.\r\n\t}",
"String getEdges();",
"VertexType getOtherVertexFromEdge( EdgeType r, VertexType oneVertex );",
"public abstract String edgeToStringWithDaikonInvs(int nodeSrc, int nodeDst, DaikonInvariants daikonInvs,\n Set<String> relations);",
"public boolean hasEdge(K u, K v)\n {\n return adjMaps.get(u).containsKey(v);\n }",
"public String toString() {\n \tStringBuilder s = new StringBuilder();\n \ts.append(V + \" vertices, \" + E + \" edges \" + NEWLINE);\n \tfor(int v = 0; v < V; v++) {\n \t\ts.append(v + \": \");\n \t\tfor(int w : adj[v]) {\n \t\t\ts.append(w + \" \");\n \t\t}\n \t\ts.append(NEWLINE);\n \t}\n \t\n \treturn s.toString();\n }",
"@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}",
"public java.lang.String getLabel();",
"boolean hasLabel();",
"boolean hasLabel();",
"boolean hasLabel();",
"public void printEdge(){\n\t\tint count = 0;\n\t\tSystem.out.print(\"\\t\");\n\t\tfor(Edge e: edgeArray){\n\t\t\tif(count > 5){\n\t\t\t\tSystem.out.println();\n\t\t\t\tcount = 0;\n\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t}\n\t\t\tcount ++;\n\t\t\tSystem.out.printf(\"%s (%d) \", e.getVertex().getRecord(), e.getCost());\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"private int findVertIndex(T vertLabel) {\n ArrayList<T> labelRow = matrix.get(0);\n int vertIndex;\n if ((vertIndex = labelRow.indexOf(vertLabel)) == -1) {\n // System.out.println(\"Error: Vertex '\" + vertLabel + \"' does not exist in the matrix\");\n return -1;\n }\n vertIndex += 1; //Add 1 to account for the label cell\n return vertIndex;\n }",
"protected String printablePath(IVertex<String> target){\n\n String lineout = \"\";\n\n LinkedList<IVertex<String>> path = this.getPath(target);\n\n IVertex<String> previous = null;\n\n IVertex<String> next = null;\n\n if(path!=null) {\n Iterator<IVertex<String>> it = path.iterator();\n\n while (it.hasNext()) {\n\n previous = next;\n\n next = it.next();\n\n IWeightedEdge<String> prevedge = null;\n\n if(previous!=null && next!=null){\n prevedge = this.weightedGraph.getEdge(previous,next);\n }\n\n if(prevedge!=null)\n lineout+= \" \" +prevedge.getWeight() + \" \";\n\n lineout += \" \" + next.getValue() + \" \";\n }\n }\n return lineout;\n }",
"void DFSUtil(int v, boolean visited[]) {\n \t// Mark the current node as visited and print it \n visited[v] = true; \n System.out.print(v + \" \"); \n \n for(int w: adj[v]) \n \tif (!visited[w]) { \n \t\tDFSUtil(w, visited);\n \t}\n }",
"public boolean hasVertex(String label)\n\t{\n\t\tboolean sucess = false;\n\t\ttry {\n\t\t\tgetVertex(label);\n\t\t\tsucess = true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\tsucess = false;\n\t\t}\n\t\treturn sucess;\n\t}",
"private NodoGrafo Vert2Nodo(int v) {\n\t\tNodoGrafo aux = origen;\n\t\twhile (aux != null && aux.nodo != v)\n\t\t\taux = aux.sigNodo;\t\t\n\t\treturn aux;\n\t}",
"@Override\n public String toString() {\n return \"V\"+this.VS_ID+\"\\tNodes: \"+getNodes()[0]+\" & \"+getNodes()[1]+\"\\t\"+\"DC\\t\"+getValue()+\" V\";\n }",
"LabeledEdge getLabeledEdge();",
"public String toString()\n {\n return \"Label: \" + label + \", Value: \" + value + \", List: \"+linkString()\n + \", Edges: \" + edgeString() + \", Visited: \" + visited + \", Previous: \"\n + previous.getLabel() + \", Distance From Source: \" + distanceFromSource;\n }",
"private String getName()\r\n\t{\r\n\t return edgeType.getName();\r\n\t}",
"boolean hasPathTo(int v)\n\t{\n\t\treturn edgeTo[v].weight()!=Double.POSITIVE_INFINITY;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}",
"public Vertex(int label) {\r\n isVisited = false;\r\n this.label = label;\r\n }",
"public String toString()\n\t{\n\t \n\t\tString str = vertexName + \": \" ;\n\t\tfor(int i = 0 ; i < adjacencyList.size(); i++)\n\t\t\tstr = str + adjacencyList.get(i).vertexName + \" \";\n\t\treturn str ;\n\t\t\n\t}",
"private void attachLabel(Vertex v, String string) throws IOException\n {\n if (string == null || string.length() == 0)\n return;\n String label = string.trim();\n// String label = trimQuotes(string).trim();\n// if (label.length() == 0)\n// return;\n if (unique_labels)\n {\n try\n {\n StringLabeller sl = StringLabeller.getLabeller((Graph)v.getGraph(), LABEL);\n sl.setLabel(v, label);\n }\n catch (StringLabeller.UniqueLabelException slule)\n {\n throw new FatalException(\"Non-unique label found: \" + slule);\n }\n }\n else\n {\n v.addUserDatum(LABEL, label, UserData.SHARED);\n }\n }",
"public abstract String edgeToStringWithTraceId(int nodeSrc, int nodeDst, int traceId, Set<String> relations);",
"public abstract String edgeToStringWithCnt(int nodeSrc, int nodeDst, int cnt, Set<String> relations);",
"public DSAGraphVertex getVertex(String label)\n\t{\n\t\tDSAGraphVertex temp, target = null;\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\tif(vertices.isEmpty()) // case: list is empty\n\t\t{\n\t\t\tthrow new NoSuchElementException(\"Vertices list is empty.\");\n\t\t}\n\t\telse //searches for target\n\t\t{\n\t\t\twhile(itr.hasNext()) //iterates until target is found\n\t\t\t{\n\t\t\t\ttemp = itr.next();\n\t\t\t\tif(temp.getLabel().equals(label))\n\t\t\t\t{\n\t\t\t\t\ttarget = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(target == null) // case: not found\n\t\t{\n\t\t\tthrow new NoSuchElementException(\"Label |\" + label + \"| not found\");\n\t\t}\n\n\t\treturn target;\n\t}",
"private void traverseHelper(Graph<VLabel, ELabel>.Vertex v) {\n PriorityQueue<Graph<VLabel, ELabel>.Vertex> fringe =\n new PriorityQueue<Graph<VLabel,\n ELabel>.Vertex>(_graph.vertexSize(), _comparator);\n fringe.add(v);\n while (fringe.size() > 0) {\n Graph<VLabel, ELabel>.Vertex curV = fringe.poll();\n try {\n if (!_marked.contains(curV)) {\n _marked.add(curV);\n visit(curV);\n for (Graph<VLabel, ELabel>.Edge e: _graph.outEdges(curV)) {\n if (!_marked.contains(e.getV(curV))) {\n preVisit(e, curV);\n fringe.add(e.getV(curV));\n }\n }\n }\n } catch (StopException e) {\n _finalVertex = curV;\n return;\n }\n }\n }",
"public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }",
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"@Override\r\n\tpublic String getPrintLabel() {\n\t\treturn null;\r\n\t}",
"@Override\n public String toString(){\n return \"Edge {\" + this.xyz.getX() + \",\" + this.xyz.getY() + \",\" + this.xyz.getZ() + \"} with facing \" + this.face;\n }",
"public String toString() {\n return label;\n }",
"public void followEdgeInReverse(int e) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.edge == e) {\r\n\t\t\t\tcurrentVertex = neighbor.vertex;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge from \" + e + \" does not exist.\");\r\n\t}",
"void DFSUtil(int v, boolean visited[]) {\n // Mark the current node as visited and print it\n visited [v] = true;\n System.out.print(v + \" \");\n\n // Recur for all the vertices adjacent to this vertex\n Iterator<Integer> i = adj [v].listIterator();\n while (i.hasNext()) {\n int n = i.next();\n if (!visited [n])\n DFSUtil(n, visited);\n }\n }",
"public void removeVertex(String vertLabel) {\n\n // Implement me!\n if (indexOf(vertLabel, vertices) <0) {\n return;\n }\n vertices.remove(vertLabel);\n Iterator<String> iterator = edges.keySet().iterator();\n while (iterator.hasNext()) {\n String k = iterator.next();\n if (k.contains(vertLabel)) {\n iterator.remove();\n edges.remove(k);\n }\n }\n }",
"public static void main(String[] args) {\n graph.addEdge(\"Mumbai\",\"Warangal\");\n graph.addEdge(\"Warangal\",\"Pennsylvania\");\n graph.addEdge(\"Pennsylvania\",\"California\");\n //graph.addEdge(\"Montevideo\",\"Jameka\");\n\n\n String sourceNode = \"Pennsylvania\";\n\n if(graph.isGraphConnected(sourceNode)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"public void printEdges()\n\t{\n\t\tSystem.out.println(\"Printing all Edges:\");\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\titr.next().printAdjacent();\n\t\t}\n\t}",
"java.lang.String getViewsLabel();"
] | [
"0.7552106",
"0.64225286",
"0.62152064",
"0.6185935",
"0.6166862",
"0.61641824",
"0.60865134",
"0.6021484",
"0.59946483",
"0.5988974",
"0.59816635",
"0.5958499",
"0.5926321",
"0.58406687",
"0.58368456",
"0.58162683",
"0.57979804",
"0.57664037",
"0.5761939",
"0.57552123",
"0.5670503",
"0.5646929",
"0.5642896",
"0.5635633",
"0.56343096",
"0.5578708",
"0.55773604",
"0.5556223",
"0.55442595",
"0.5528707",
"0.5526705",
"0.5526705",
"0.55172825",
"0.5514078",
"0.5511421",
"0.550697",
"0.55060846",
"0.5501863",
"0.549783",
"0.54922104",
"0.5487561",
"0.54759955",
"0.5466331",
"0.5460215",
"0.54577726",
"0.5455245",
"0.54360443",
"0.5402186",
"0.5398116",
"0.53971636",
"0.53913426",
"0.5389863",
"0.5373595",
"0.5367262",
"0.53672236",
"0.5362435",
"0.5361509",
"0.5357834",
"0.5356426",
"0.5355735",
"0.5354164",
"0.53370273",
"0.53344417",
"0.532423",
"0.532011",
"0.532011",
"0.532011",
"0.5317255",
"0.53157324",
"0.53157324",
"0.53157324",
"0.53153455",
"0.53125966",
"0.5309151",
"0.53082204",
"0.53079593",
"0.52992004",
"0.52966976",
"0.5292151",
"0.5288021",
"0.52868885",
"0.5269627",
"0.52666867",
"0.52646774",
"0.5248778",
"0.5246231",
"0.5245441",
"0.5241701",
"0.524061",
"0.5229657",
"0.5216799",
"0.52128977",
"0.5202498",
"0.52002466",
"0.5198755",
"0.5196284",
"0.51894534",
"0.5184673",
"0.5176949",
"0.51757306"
] | 0.74834555 | 1 |
/ Print the label of the edge from current vertex to v, if such edge exists, and otherwise print "none" | public void findEdgeTo(char v) {
for (int i = 0; i < currentVertex.outList.size(); i++) {
Neighbor neighbor = currentVertex.outList.get(i);
if (neighbor.vertex.label == v) {
System.out.println(neighbor.edge);
return;
}
}
System.out.println("none");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void findEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tSystem.out.println(neighbor.edge);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"none\");\r\n\t}",
"public boolean hasEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean hasEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean foiChecado(Vertice v){\n int i = v.label;\n return vertices[i];\n }",
"void setEdgeLabel(int edge, String label);",
"public void inIncidentEdges() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).edge + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"public abstract String edgeToStringWithNoProb(int nodeSrc, int nodeDst, Set<String> relations);",
"public void gotoVertex(char v) {\r\n\t\tfor (int i = 0; i < vertices.size(); i++) {\r\n\t\t\tif (vertices.get(i).label == v) {\r\n\t\t\t\tcurrentVertex = vertices.get(i);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"The vertex \" + v + \" does not exist.\");\r\n\t}",
"public void printPath(Vertex v) {\n if ( v.dist == 0 )\n return;\n printPath(v.path);\n System.out.print(\"-> \" + v.graphLoc+\" \");\n }",
"public void removeEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\t// remove from neighbor's outList\r\n\t\t\t\tneighbor.vertex.outList.remove(findNeighbor(neighbor.vertex.outList, currentVertex.label)); \t\t\r\n\t\t\t\tcurrentVertex.inList.remove(neighbor); // remove from current's inList\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Edge from \" + v + \" does not exist.\");\r\n\t}",
"private static String getEdgeLabel(FunctionDeclarationKind kind, int operandId) {\n switch (kind) {\n case AND:\n case OR:\n case NOT:\n case IFF:\n case XOR:\n return \"\";\n default:\n return Integer.toString(operandId);\n }\n }",
"private static void outputVertex(RootedTree tree, StringBuffer sb, Object v) {\r\n\t\tif (!tree.isLeaf(v)) {\r\n\t\t\tsb.append('(');\r\n\t\t\tList l = tree.getChildrenOf(v);\r\n\t\t\tfor (int i = 0; i < l.size(); i++) {\r\n\t\t\t\toutputVertex(tree, sb, l.get(i));\r\n\t\t\t\tif (i != l.size() - 1) sb.append(',');\r\n\t\t\t}\r\n\t\t\tsb.append(')');\r\n\t\t}\r\n\t\t// Call this to make the vertex's label nicely formatted for Nexus\r\n\t\t// output.\r\n\t\tString s = getNexusCompliantLabel(tree, v);\r\n\t\tif (s.length() != 0) sb.append(s);\r\n\t\tObject p = tree.getParentOf(v);\r\n\t\tif (p != null) {\r\n\t\t\tdouble ew = tree.getEdgeWeight(tree.getEdge(p, v));\r\n\t\t\tif (ew != 1.0) sb.append(\":\" + Double.toString(ew));\r\n\t\t}\r\n\t}",
"public void inAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"private void printPath( Vertex dest )\n {\n if( dest.prev != null )\n {\n printPath( dest.prev );\n // System.out.print( \" to \" );\n }\n System.out.print( dest.name +\" \" );\n }",
"public void removeEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\t// remove from neighbor's inList\r\n\t\t\t\tneighbor.vertex.inList.remove(findNeighbor(neighbor.vertex.inList, currentVertex.label)); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tcurrentVertex.outList.remove(neighbor); // remove from current's outList\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge to \" + v + \" does not exist.\");\r\n\t}",
"public void findPath(Vertex v, Graph g)\n {\n \tQueue<Vertex> q = new LinkedList<Vertex>();\n \tSet<String> visited= new HashSet<String>();\n \tSet<String> edges= new TreeSet<String>();\n \t\n \t \tq.add(v);\n \t \tvisited.add(v.name);\n \t \t\n \t \twhile(!q.isEmpty()){\n \t \t\tVertex vertex = q.poll();\n \t \t\t \n \t for(Edge adjEdge: vertex.adjEdge.values()){\n \t\t if(!visited.contains(adjEdge.adjVertex.name) && !adjEdge.adjVertex.isDown && !adjEdge.isDown){\n \t\t\t q.offer(adjEdge.adjVertex);\n \t\t\t visited.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t\t edges.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t }\n \t }\n \t \n \t }\n \t \tfor(String str: edges){\n \t\t System.out.print('\\t');\n \t\t System.out.println(str);\n \t }\n \t \t\n }",
"private String edgesLeavingVertexToString() {\n \n //make empty string\n String s = \"\";\n \n //for loop to go through all vertices; \n for (int j = 0; j < arrayOfVertices.length; j++) {\n \n //if it has any edges...\n if (arrayOfVertices[j].getDegree() > 0) {\n \n //go through its edges\n for (int k = 0; k < arrayOfVertices[j].getDegree(); k++) {\n \n //declare an array list\n ArrayList<Vertex> newArrayList = \n arrayOfVertices[j].getAdjacent();\n \n //add to string: the vertex itself + space + edge + line break\n s += j + \" \" + newArrayList.get(k).getID() + \"\\n\"; \n \n } \n } \n }\n \n //add -1, -1 after all the edges\n s += \"-1 -1\";\n \n return s; \n }",
"public void outAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.outList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"public void display() {\r\n int v;\r\n Node n;\r\n \r\n for(v=1; v<=V; ++v){\r\n System.out.print(\"\\nadj[\" + toChar(v) + \"] ->\" );\r\n for(n = adj[v]; n != z; n = n.next) \r\n System.out.print(\" |\" + toChar(n.vert) + \" | \" + n.wgt + \"| ->\"); \r\n }\r\n System.out.println(\"\");\r\n }",
"public void outIncidentEdges() {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.outList.get(i).edge + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"public void drawUndirectedEdge(String label1, String label2) {\n }",
"private String edgeString()\n {\n Iterator<DSAGraphEdge<E>> iter = edgeList.iterator();\n String outputString = \"\";\n DSAGraphEdge<E> edge = null;\n while (iter.hasNext())\n {\n edge = iter.next();\n outputString = (outputString + edge.getLabel() + \", \");\n }\n return outputString;\n }",
"public abstract String getEdgeSymbol(int vertexIndex, int otherVertexIndex);",
"public abstract String edgeToStringWithProb(int nodeSrc, int nodeDst, double prob, Set<String> relations);",
"@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();",
"public String toString() \n {\n String NEWLINE = System.getProperty(\"line.separator\");\n StringBuilder s = new StringBuilder();\n for (int v = 0; v < V; v++) \n {\n s.append(v + \": \");\n for (DirectedEdge e : adj[v]) \n {\n \tif(e.online)\n \t{\n \t\ts.append(e + \" \");\n \t}\n }\n s.append(NEWLINE);\n }\n return s.toString();\n }",
"private void addEdgeWithLabel(NasmInst source, NasmLabel destination) {\n if (source == null || destination == null)\n throw new FgException(\"ERROR: Can't create an edge without a source and a destination\");\n\n if (systemCalls.contains(destination.toString()))\n return; // System call: iprintLF, readline or atoi. No edge needed\n\n NasmInst destinationInst = label2Inst.get(destination.toString());\n if (destinationInst == null)\n throw new FgException(\"ERROR: No instruction matching with the given label\");\n addEdgeWithInst(source, destinationInst);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\n\\n \\tVertice [label=\" + label + \"] \";\n\t}",
"String getLabel();",
"String getLabel();",
"java.lang.String getLabel();",
"public boolean findInEdge(String label){\n\t\tfor(Entry<String, LinkedList<Edge>> s: vertices.entrySet()){\n\t\t\tfor(int i=0; i < vertices.get(s.getKey()).size();i++){\n\t\t\t\tif(vertices.get(s.getKey()).get(i).getDLabel().equals(label)){\n\t\t\t\t\tdelEdge(s.getKey(),label);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"String getIdEdge();",
"public void display() {\n\t\t\n\t\tint u,v;\n\t\t\n\t\tfor(v=1; v<=V; ++v) {\n\t\t\t\n\t\t\tSystem.out.print(\"\\nadj[\" + v + \"] = \");\n\t\t\t\n\t\t\tfor(u = 1 ; u <= V; ++u) {\n\t\t\t\t \n\t\t\t\tSystem.out.print(\" \" + adj[u][v]);\n\t\t\t}\n\t\t} \n\t\tSystem.out.println(\"\");\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn (\"\"+label);\n\t}",
"void printPath(Coordinate endName) {\n if (!graph.containsKey(endName)) {\n // test use, display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", endName);\n return;\n }\n graph.get(endName).printPath();\n }",
"boolean containsEdge(V v, V w);",
"public int getNodeLabel ();",
"public String vertexToName(int v){\n if (v < 0){ return \"Error, invalid vertex, bellow bounds \" + v;}\n if (v < this.sororityLen){ return this.soroityNames[v];}\n if (v < this.fraternityLen+this.sororityLen){ return this.fraternityNames[v-this.sororityLen];}\n return \"Error, invalid vertex, beyond bounds \" + v; \n }",
"protected void visit(Graph<VLabel, ELabel>.Vertex v) {\n }",
"public void neighhbors(Village vertex) {\n\t\tIterable<Edge> neighbors = g.getNeighbors(vertex);\n\t\tSystem.out.println(\"------------\");\n\t\tSystem.out.println(\"vertex: \" + vertex.getName());\n\t\tfor(Edge e : neighbors) {\n\t\t\tSystem.out.println(\"edge: \" + e.getName());\n\t\t\tSystem.out.println(\"transit: \" + e.getTransit() + \" color: \" + e.getColor());\n\t\t}\n\t}",
"public abstract String edgeToStringWithDaikonInvs(int nodeSrc, int nodeDst, DaikonInvariants daikonInvs,\n Set<String> relations);",
"Vertex getOtherVertex(Vertex v) {\n\t\t\tif(v.equals(_one)) return _two;\n\t\t\telse if(v.equals(_two)) return _one;\n\t\t\telse return null;\n\t\t}",
"public String toString(){\n\t\treturn vertex.toString();\n\t}",
"public boolean hasEdge(K u, K v)\n {\n return adjMaps.get(u).containsKey(v);\n }",
"private String getLabelNodeAvl(){\n return concatLabel(this.root);\n }",
"String getEdges();",
"@Override\n public String toString()\n {\n StringBuilder sb = new StringBuilder();\n\n for(Vertex vertex: vertices)\n {\n sb.append(\"V: \" + vertex.toString() + '\\n');\n\n for(Edge edge: connections.get(vertex))\n {\n sb.append(\" -> \" + edge.other(vertex).toString() + \" (\" + edge.getWeight() + \")\\n\");\n }\n }\n\n return sb.toString();\n }",
"public E getParentEdge(V vertex);",
"public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}",
"public void printEdge(){\n\t\tint count = 0;\n\t\tSystem.out.print(\"\\t\");\n\t\tfor(Edge e: edgeArray){\n\t\t\tif(count > 5){\n\t\t\t\tSystem.out.println();\n\t\t\t\tcount = 0;\n\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t}\n\t\t\tcount ++;\n\t\t\tSystem.out.printf(\"%s (%d) \", e.getVertex().getRecord(), e.getCost());\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void followEdge(int e) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.edge == e) {\r\n\t\t\t\tcurrentVertex = neighbor.vertex;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge to \" + e + \" not exist.\");\r\n\t}",
"public java.lang.String getLabel();",
"boolean hasLabel();",
"boolean hasLabel();",
"boolean hasLabel();",
"public abstract String edgeToStringWithTraceId(int nodeSrc, int nodeDst, int traceId, Set<String> relations);",
"public String vertexName();",
"public void setLabel(Object v) \n {\n this.label = v;\n }",
"@Test\n public void getlabelTest() {\n \tVertex<String> v=new Vertex<String>(\"v\");\n \tassertEquals(\"v\", v.getlabel());\n }",
"LabeledEdge getLabeledEdge();",
"VertexType getOtherVertexFromEdge( EdgeType r, VertexType oneVertex );",
"public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"public String toString() {\n \tStringBuilder s = new StringBuilder();\n \ts.append(V + \" vertices, \" + E + \" edges \" + NEWLINE);\n \tfor(int v = 0; v < V; v++) {\n \t\ts.append(v + \": \");\n \t\tfor(int w : adj[v]) {\n \t\t\ts.append(w + \" \");\n \t\t}\n \t\ts.append(NEWLINE);\n \t}\n \t\n \treturn s.toString();\n }",
"private String getName()\r\n\t{\r\n\t return edgeType.getName();\r\n\t}",
"@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}",
"public void out_vertex(Site v) {\r\n\t\tif (triangulate == 0 & plot == 0 & debug == 0) {\r\n\t\t\tSystem.err.printf(\"v %f %f\\n\", v.coord.x, v.coord.y);\r\n\t\t}\r\n\r\n\t\tif (debug == 1) {\r\n\t\t\tSystem.err.printf(\"vertex(%d) at %f %f\\n\", v.sitenbr, v.coord.x,\r\n\t\t\t\t\tv.coord.y);\r\n\t\t}\r\n\t}",
"public abstract String edgeToStringWithCnt(int nodeSrc, int nodeDst, int cnt, Set<String> relations);",
"public void printVertices() {\r\n\t\tfor (int i = 0; i < vertices.size(); i++)\r\n\t\t\tSystem.out.print(vertices.get(i).label);\r\n\t}",
"Vertex findVertex(char v) {\r\n\t\tfor (int i = 0; i < vertices.size(); i++) {\r\n\t\t\tif (vertices.get(i).label == v)\r\n\t\t\t\treturn vertices.get(i);\r\n\t\t}\r\n\t\treturn null; // return null if not found.\r\n\t}",
"public String toString()\n {\n return \"Label: \" + label + \", Value: \" + value + \", List: \"+linkString()\n + \", Edges: \" + edgeString() + \", Visited: \" + visited + \", Previous: \"\n + previous.getLabel() + \", Distance From Source: \" + distanceFromSource;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}",
"private NodoGrafo Vert2Nodo(int v) {\n\t\tNodoGrafo aux = origen;\n\t\twhile (aux != null && aux.nodo != v)\n\t\t\taux = aux.sigNodo;\t\t\n\t\treturn aux;\n\t}",
"boolean hasPathTo(int v)\n\t{\n\t\treturn edgeTo[v].weight()!=Double.POSITIVE_INFINITY;\n\t}",
"public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }",
"protected String printablePath(IVertex<String> target){\n\n String lineout = \"\";\n\n LinkedList<IVertex<String>> path = this.getPath(target);\n\n IVertex<String> previous = null;\n\n IVertex<String> next = null;\n\n if(path!=null) {\n Iterator<IVertex<String>> it = path.iterator();\n\n while (it.hasNext()) {\n\n previous = next;\n\n next = it.next();\n\n IWeightedEdge<String> prevedge = null;\n\n if(previous!=null && next!=null){\n prevedge = this.weightedGraph.getEdge(previous,next);\n }\n\n if(prevedge!=null)\n lineout+= \" \" +prevedge.getWeight() + \" \";\n\n lineout += \" \" + next.getValue() + \" \";\n }\n }\n return lineout;\n }",
"@Override\n public String toString() {\n return \"V\"+this.VS_ID+\"\\tNodes: \"+getNodes()[0]+\" & \"+getNodes()[1]+\"\\t\"+\"DC\\t\"+getValue()+\" V\";\n }",
"void DFSUtil(int v, boolean visited[]) {\n \t// Mark the current node as visited and print it \n visited[v] = true; \n System.out.print(v + \" \"); \n \n for(int w: adj[v]) \n \tif (!visited[w]) { \n \t\tDFSUtil(w, visited);\n \t}\n }",
"private int findVertIndex(T vertLabel) {\n ArrayList<T> labelRow = matrix.get(0);\n int vertIndex;\n if ((vertIndex = labelRow.indexOf(vertLabel)) == -1) {\n // System.out.println(\"Error: Vertex '\" + vertLabel + \"' does not exist in the matrix\");\n return -1;\n }\n vertIndex += 1; //Add 1 to account for the label cell\n return vertIndex;\n }",
"public boolean hasVertex(String label)\n\t{\n\t\tboolean sucess = false;\n\t\ttry {\n\t\t\tgetVertex(label);\n\t\t\tsucess = true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\tsucess = false;\n\t\t}\n\t\treturn sucess;\n\t}",
"@Override\n public String toString(){\n return \"Edge {\" + this.xyz.getX() + \",\" + this.xyz.getY() + \",\" + this.xyz.getZ() + \"} with facing \" + this.face;\n }",
"public String toString() {\n return label;\n }",
"public static void main(String[] args) {\n graph.addEdge(\"Mumbai\",\"Warangal\");\n graph.addEdge(\"Warangal\",\"Pennsylvania\");\n graph.addEdge(\"Pennsylvania\",\"California\");\n //graph.addEdge(\"Montevideo\",\"Jameka\");\n\n\n String sourceNode = \"Pennsylvania\";\n\n if(graph.isGraphConnected(sourceNode)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"public void printEdges()\n\t{\n\t\tSystem.out.println(\"Printing all Edges:\");\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\titr.next().printAdjacent();\n\t\t}\n\t}",
"public void followEdgeInReverse(int e) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.edge == e) {\r\n\t\t\t\tcurrentVertex = neighbor.vertex;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge from \" + e + \" does not exist.\");\r\n\t}",
"private void attachLabel(Vertex v, String string) throws IOException\n {\n if (string == null || string.length() == 0)\n return;\n String label = string.trim();\n// String label = trimQuotes(string).trim();\n// if (label.length() == 0)\n// return;\n if (unique_labels)\n {\n try\n {\n StringLabeller sl = StringLabeller.getLabeller((Graph)v.getGraph(), LABEL);\n sl.setLabel(v, label);\n }\n catch (StringLabeller.UniqueLabelException slule)\n {\n throw new FatalException(\"Non-unique label found: \" + slule);\n }\n }\n else\n {\n v.addUserDatum(LABEL, label, UserData.SHARED);\n }\n }",
"public String toString()\n\t{\n\t \n\t\tString str = vertexName + \": \" ;\n\t\tfor(int i = 0 ; i < adjacencyList.size(); i++)\n\t\t\tstr = str + adjacencyList.get(i).vertexName + \" \";\n\t\treturn str ;\n\t\t\n\t}",
"@Override\r\n\tpublic String getPrintLabel() {\n\t\treturn null;\r\n\t}",
"public void printEdges(){\n System.out.print(\" |\");\n for(int i=0;i<size;i++)\n System.out.print(\" \"+i+\" \");\n System.out.print(\"\\n\");\n for(int i=0;i<size+1;i++)\n System.out.print(\"-------\");\n System.out.print(\"\\n\");\n for(int i=0;i<size;i++){\n System.out.print(\" \"+i+\" |\");\n for(int j=0;j<size;j++){\n System.out.print(\" \"+Matrix[i][j]+\" \");\n }\n System.out.print(\"\\n\");\n }\n }",
"default String getLabel() { return ((TensorImpl<?>) this).find(NDFrame.class).map(NDFrame::getLabel).orElse(\"\"); }",
"boolean addEdge(V v, V w);",
"public Vertex(int label) {\r\n isVisited = false;\r\n this.label = label;\r\n }",
"java.lang.String getViewsLabel();",
"public DSAGraphVertex getVertex(String label)\n\t{\n\t\tDSAGraphVertex temp, target = null;\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\tif(vertices.isEmpty()) // case: list is empty\n\t\t{\n\t\t\tthrow new NoSuchElementException(\"Vertices list is empty.\");\n\t\t}\n\t\telse //searches for target\n\t\t{\n\t\t\twhile(itr.hasNext()) //iterates until target is found\n\t\t\t{\n\t\t\t\ttemp = itr.next();\n\t\t\t\tif(temp.getLabel().equals(label))\n\t\t\t\t{\n\t\t\t\t\ttarget = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(target == null) // case: not found\n\t\t{\n\t\t\tthrow new NoSuchElementException(\"Label |\" + label + \"| not found\");\n\t\t}\n\n\t\treturn target;\n\t}",
"public String getLabel();"
] | [
"0.74778634",
"0.6452622",
"0.6173284",
"0.61411303",
"0.6113108",
"0.6111138",
"0.6075236",
"0.60566765",
"0.5941831",
"0.5937459",
"0.5916061",
"0.58888197",
"0.58840984",
"0.58610266",
"0.57734597",
"0.5767087",
"0.5754059",
"0.57532835",
"0.57442147",
"0.5742746",
"0.5735434",
"0.5678906",
"0.56514204",
"0.56382525",
"0.5617112",
"0.5609837",
"0.5568186",
"0.5562466",
"0.55408484",
"0.55408484",
"0.5532083",
"0.55302304",
"0.5522788",
"0.55104566",
"0.5509281",
"0.5488378",
"0.5465805",
"0.5449749",
"0.54491615",
"0.5442957",
"0.5439754",
"0.5436311",
"0.54276973",
"0.54179496",
"0.5416217",
"0.5415778",
"0.54097784",
"0.5408992",
"0.54073095",
"0.53858066",
"0.53705764",
"0.5368003",
"0.53531474",
"0.5352177",
"0.5342179",
"0.5338684",
"0.5338684",
"0.5338684",
"0.5331702",
"0.5331162",
"0.5327523",
"0.5325409",
"0.5314528",
"0.5313267",
"0.5310222",
"0.53086156",
"0.53086156",
"0.53086156",
"0.53046244",
"0.5299178",
"0.52922046",
"0.528945",
"0.52827346",
"0.52734685",
"0.527159",
"0.52685356",
"0.52627176",
"0.5256665",
"0.52559215",
"0.52551395",
"0.52535117",
"0.5238639",
"0.5234943",
"0.52327573",
"0.5208314",
"0.5198416",
"0.5193608",
"0.5190742",
"0.5186484",
"0.5182522",
"0.51759654",
"0.517372",
"0.51727617",
"0.51637346",
"0.5161958",
"0.5160917",
"0.51581717",
"0.51565295",
"0.51538455",
"0.5147657"
] | 0.7576503 | 0 |
/ Remove the edge from v to current vertex, if such edge exists. | public void removeEdgeTo(char v) {
for (int i = 0; i < currentVertex.outList.size(); i++) {
Neighbor neighbor = currentVertex.outList.get(i);
if (neighbor.vertex.label == v) {
// remove from neighbor's inList
neighbor.vertex.inList.remove(findNeighbor(neighbor.vertex.inList, currentVertex.label));
currentVertex.outList.remove(neighbor); // remove from current's outList
return;
}
}
System.out.println("Edge to " + v + " does not exist.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V removeVertex(V v);",
"public void removeEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\t// remove from neighbor's outList\r\n\t\t\t\tneighbor.vertex.outList.remove(findNeighbor(neighbor.vertex.outList, currentVertex.label)); \t\t\r\n\t\t\t\tcurrentVertex.inList.remove(neighbor); // remove from current's inList\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Edge from \" + v + \" does not exist.\");\r\n\t}",
"public boolean removeEdge(V source, V target);",
"void removeVertex(Vertex v) throws GraphException;",
"public boolean removeVertex(V vertex);",
"public boolean removeVertex(V vertex);",
"@Override public boolean remove(L vertex) {\r\n if(!vertices.contains(vertex)) return false;\r\n vertices.remove(vertex);\r\n Iterator<Edge<L>> iter=edges.iterator();\r\n while(iter.hasNext()) {\r\n \t Edge<L> tmp=iter.next();\r\n \t //改了\r\n \t if(tmp.getSource().equals(vertex) || tmp.getTarget().equals(vertex))\r\n \t // if(tmp.getSource()==vertex|| tmp.getTarget()==vertex) \r\n \t\t iter.remove();\r\n \t}\r\n checkRep();\r\n return true;\r\n \r\n \r\n }",
"public void removeEdge(K u, K v)\n {\n\tList<HashMap<K, Integer>> adj = adjLists.get(u);\n\n\t// check for edge already being there\n\tfor (int i=0;i<adj.size();i++){\n\t\tfor (K vertex:adj.get(i).keySet()){\n\t\t\tif (vertex.equals(v))\n\t\t {\n\t\t\t\tadj.remove(adj.get(i));\n\t\t\t\t\n\n\t\t }\n\t\t}\n\t\t\n\t\t\n\t}\n\t\n\tList<HashMap<K, Integer>> adj2 = adjLists.get(v);\n\n\t// check for edge already being there\n\tfor (int i=0;i<adj2.size();i++){\n\t\tfor (K vertex:adj2.get(i).keySet()){\n\t\t\tif (vertex.equals(u))\n\t\t {\n\t\t\t\tadj2.remove(adj2.get(i));\n\n\t\t }\n\t\t}\n\t\t\n\t\t\n\t}\n\t\n }",
"void removeEdge(Vertex v1, Vertex v2) throws GraphException;",
"public boolean removeEdge(E edge);",
"public void removeVertex (E vertex)\n {\n int indexOfVertex = this.indexOf (vertex);\n if (indexOfVertex != -1)\n {\n this.removeEdges (vertex);\n\t for (int index = indexOfVertex + 1; index <= lastIndex; index++)\n {\n vertices[index - 1] = vertices[index];\n adjacencySequences[index - 1] = adjacencySequences[index];\n }\n \n vertices[lastIndex] = null;\n adjacencySequences[lastIndex] = null;\n lastIndex--;\n \n for (int index = 0; index <= lastIndex; index++)\n {\n Node node = adjacencySequences[index];\n while (node != null)\n {\n if (node.neighbourIndex > indexOfVertex)\n node.neighbourIndex--;\n node = node.nextNode;\n }\n }\n\t}\n }",
"boolean removeEdge(E edge);",
"public void removeVertex();",
"void remove(Vertex vertex);",
"private void removeFromEdgeMat(Vertex v) {\n int ind = _vertices.indexOf(v);\n for (int i = 0; i < _edges.size(); i++) {\n remove(_edges.get(i).get(ind));\n remove(_edges.get(ind).get(i));\n }\n _edges.remove(ind);\n for (int j = 0; j < _edges.size(); j++) {\n _edges.get(j).remove(ind);\n }\n _edgeMap.clear();\n for (int x = 0; x < _edges.size(); x++) {\n for (int y = 0; y < _edges.size(); y++) {\n if (!_edges.get(x).get(y).isNull()) {\n _edgeMap.put(_edges.get(x).get(y), new int[] {x, y});\n }\n }\n }\n }",
"public boolean removeEdge(V tail);",
"void remove(Edge edge);",
"void removeEdge(int x, int y);",
"public void removeEdge(Vertex other) {\n edges.remove(other);\n other.edges.remove(this);\n }",
"public void EliminarVertice(int v) {\n\t\tNodoGrafo aux = origen;\n\t\tif (origen.nodo == v) \n\t\t\torigen = origen.sigNodo;\t\t\t\n\t\twhile (aux != null){\n\t\t\t// remueve de aux todas las aristas hacia v\n\t\t\tthis.EliminarAristaNodo(aux, v);\n\t\t\tif (aux.sigNodo!= null && aux.sigNodo.nodo == v) {\n\t\t\t\t// Si el siguiente nodo de aux es v , lo elimina\n\t\t\t\taux.sigNodo = aux.sigNodo.sigNodo;\n\t\t\t}\n\t\t\taux = aux.sigNodo;\n\t\t}\t\t\n\t}",
"public void removeVertex(V toRemove){\n if (toRemove.equals(null)){\n throw new IllegalArgumentException();\n }\n if(contains(toRemove)){\n graph.remove(toRemove);\n }\n for (V vertex : graph.keySet()){\n if (graph.get(vertex).contains(toRemove)){\n ArrayList<V> edges = graph.get(vertex);\n edges.remove(toRemove);\n graph.put(vertex, edges);\n }\n }\n }",
"public void removeEdges (E vertex) throws IllegalArgumentException\n {\n int index = this.indexOf (vertex);\n if (index < 0)\n throw new IllegalArgumentException (vertex + \" was not found!\");\n\n Node currentNode = adjacencySequences[index];\n while (currentNode != null)\n {\n this.removeNode (currentNode.neighbourIndex, index);\n currentNode = currentNode.nextNode;\n }\n\n adjacencySequences[index] = null;\n }",
"@Override\n public E removeVertex(E vertex) {\n if (vertex == null || !dictionary.containsKey(vertex)) {\n return null;\n } else {\n for (E opposite : getNeighbors(vertex)) {\n dictionary.get(opposite).remove(vertex);\n }\n dictionary.remove(vertex);\n return vertex;\n }\n }",
"public void removeVertex(String vertLabel) {\n\n // Implement me!\n if (indexOf(vertLabel, vertices) <0) {\n return;\n }\n vertices.remove(vertLabel);\n Iterator<String> iterator = edges.keySet().iterator();\n while (iterator.hasNext()) {\n String k = iterator.next();\n if (k.contains(vertLabel)) {\n iterator.remove();\n edges.remove(k);\n }\n }\n }",
"public void removeEdge(Edge e){\n edgeList.remove(e);\n }",
"private void removeFromVertexList(Vertex v) {\n int ind = _vertices.indexOf(v);\n for (int i = ind + 1; i < _vertices.size(); i++) {\n _vertMap.put(_vertices.get(i), i - 1);\n }\n _vertices.remove(v);\n }",
"public void removeVertex (T vertex){\n int index = vertexIndex(vertex);\n \n if (index < 0) return; // vertex does not exist\n \n n--;\n // IF THIS DOESN'T WORK make separate loop for column moving\n for (int i = index; i < n; i++){\n vertices[i] = vertices[i + 1];\n for (int j = 0; j < n; j++){\n edges[j][i] = edges[j][i + 1]; // moving row up\n edges[i] = edges[i + 1]; // moving column over\n }\n }\n }",
"@Override\n\tpublic boolean removeEdge(E vertexX, E vertexY) {\n\t\tUnorderedPair<E> edge = new UnorderedPair<>(vertexX, vertexY);\n\t\treturn edges.remove(edge);\n\t}",
"public abstract void removeEdge(Point p, Direction dir);",
"private void deleteEdge(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest)) {\r\n\t\t\t\tv.adjacent.remove(edge);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean removeEdge(V tail, V head);",
"public void removeEdge(Position ep) throws InvalidPositionException;",
"public void removeVertex(Position vp) throws InvalidPositionException;",
"@Override\n public boolean deleteEdge(Edge edge) {\n return false;\n }",
"public abstract void removeEdge(int from, int to);",
"public void removeEdge(int start, int end);",
"public void removeEdge(V from, V to){\n if (from.equals(null) || to.equals(null)){\n throw new IllegalArgumentException();\n }\n if (hasEdge(from, to)){\n ArrayList<V> edges = (ArrayList<V>)getEdges(from);\n int i = 1;\n V vertex = edges.get(0);\n while (i < edges.size() && !vertex.equals(to)){\n i++;\n vertex = edges.get(i);\n }\n edges.remove(vertex);\n graph.put(from, edges);\n }\n\n }",
"public void removeEdge(int i, int j)\n {\n \tint v = i;\n \tint w = j;\n \t//Create an iterator on the adjacency list of i \n \tIterator<DirectedEdge> it = adj[v].iterator();\n \t//Loop through adj and look for any edge between i and j\n \twhile(it.hasNext())\n \t{\n \t\tDirectedEdge ed = it.next();\n \t\t//If an edge is found, remove it and its reciprocal\n \t\tif(ed.from() == v && ed.to() == w)\n \t\t{\n \t\t\tit.remove();\n \t\t\tit = adj[w].iterator();\n \t\t\twhile(it.hasNext())\n \t\t\t{\n \t\t\t\ted = it.next();\n \t\t\t\tif(ed.from() == w && ed.to() == v)\n \t\t\t\t{\n \t\t\t\t\tit.remove();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t} \t\n \tE-=2;\n }",
"public boolean removeEdge(Edge edge) {\r\n\t\treturn false;\r\n\t}",
"public native VertexList remove(VertexNode vertex);",
"@Override\r\n\tpublic boolean deleteVertex(E sk) {\r\n\t\tif(containsVertex(sk)) {\r\n\t\t\tvertices.remove(sk); //remove the vertex itself\r\n\t\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\t\tArrayList<Edge<E>> toremove = new ArrayList<>();\r\n\t\t\t\tfor(Edge<E> ale : adjacencyLists.get(t)) {\r\n\t\t\t\t\tif(ale.getDst().equals(sk)) {\r\n\t\t\t\t\t\ttoremove.add(ale);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tadjacencyLists.get(t).removeAll(toremove);\r\n\t\t\t});\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean unlink(E src, E dst) {\r\n\t\tVertex<E> s = vertices.get(src);\r\n\t\tVertex<E> d = vertices.get(dst);\r\n\t\tif(s != null && d != null) {\r\n\t\t\tadjacencyLists.get(src).remove(new Edge<E>(s.getElement(), d.getElement(), 1)); //remove edge (s,d)\r\n\t\t\tif(!isDirected) { //Remove the other edge if this graph is undirected\r\n\t\t\t\tadjacencyLists.get(dst).remove(new Edge<E>(d.getElement(), s.getElement(), 1));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean removeEdge(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)\n && dictionary.get(vertex1).contains(vertex2)\n && dictionary.get(vertex2).contains(vertex1)) {\n dictionary.get(vertex1).remove(vertex2);\n dictionary.get(vertex2).remove(vertex1);\n return true;\n } else {\n return false;\n }\n\n }",
"public boolean removeEdge(final LazyRelationship2 edge) {\n Relationship rel = neo.getRelationshipById(edge.getId());\n if (rel != null){\n removeEdge(rel);\n }\n else\n return false;\n return true;\n }",
"@Override\n public void removeVertex(V pVertex) {\n for (TimeFrame tf : darrGlobalAdjList.get(pVertex.getId()).keySet()) {\n hmpGraphsAtTimeframes.get(tf).removeVertex(pVertex);\n }\n darrGlobalAdjList.remove(pVertex.getId());\n mapAllVertices.remove(pVertex.getId());\n }",
"public void removeEdge (E vertex1, E vertex2) throws IllegalArgumentException\n {\n int index1 = this.indexOf (vertex1);\n if (index1 < 0)\n throw new IllegalArgumentException (vertex1 + \" was not found!\");\n \n int index2 = this.indexOf (vertex2);\n if (index2 < 0)\n throw new IllegalArgumentException (vertex2 + \" was not found!\");\n\n\tthis.removeNode (index1, index2);\n this.removeNode (index2, index1);\n }",
"private Edge removeEdge(Node source, Node dest)\r\n\t{\r\n\t final Edge e = source.removeEdge(edgeType.getName(), dest);\r\n\t if (!eSet.remove(e))\r\n\t\tthrow new RuntimeException(\"No Edge from Node <\"+source.getName()\r\n\t\t\t\t\t +\"> to Node <\"+dest.getName()+\">\");\r\n\t return e;\r\n\t}",
"@Override\n public void deleteVertex(int vertex) {\n\n }",
"@Override\r\n public void remove(V vertexName) {\r\n try {\r\n Vertex a = null;\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n while(vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if(vertexName.compareTo(v.vertexName) == 0)\r\n a = v;\r\n }\r\n if(a == null)\r\n vertexIterator.next();\r\n for(Vertex v : map.values()) {\r\n if(v.destinations.contains(a.vertexName))\r\n disconnect(v.vertexName, vertexName);\r\n }\r\n map.remove(a.vertexName, a);\r\n }\r\n catch(NoSuchElementException e) {\r\n throw e;\r\n }\r\n }",
"@Override\r\n public edge_data removeEdge(int src, int dest) {\r\n \t\r\n if(src != dest && this.neighbors.get(src).containsKey(dest)){\r\n \t\r\n this.neighbors.get(src).remove(dest);\r\n \r\n this.connected_to.get(dest).remove(src);\r\n \r\n mc++;\r\n edgeCounter--;\r\n }\r\n \r\n return null;\r\n }",
"@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }",
"public void removeEdge(Edge p_edge) {\n\t\tedges.remove(p_edge);\n\t}",
"public void removeEdge( Edge edge ) {\r\n edges.removeElement(edge);\r\n }",
"public void removeNeighbour(final Vertex neighbour){\n\t\tif(getNeighbours().contains(neighbour))\n\t\t\tgetNeighbours().remove(neighbour);\n\t}",
"public void remove(int v) {\n Lista iter = new Lista(this);\n if (iter.x != v) {\n while (iter.next.x != v) {\n if (iter.next != null) {\n iter = iter.next;\n }\n }\n }\n if (iter.next.x == v) {\n iter.next = iter.next.next;\n }\n }",
"@Override\n\tpublic boolean removeEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> adjacentNodes = edge.getAdjacentNodes();\n\t\tfor (N node : adjacentNodes)\n\t\t{\n\t\t\tSet<ET> adjacentEdges = nodeEdgeMap.get(node);\n\t\t\t/*\n\t\t\t * null Protection required in case edge wasn't actually in the\n\t\t\t * graph\n\t\t\t */\n\t\t\tif (adjacentEdges != null)\n\t\t\t{\n\t\t\t\tadjacentEdges.remove(edge);\n\t\t\t}\n\t\t}\n\t\tif (edgeList.remove(edge))\n\t\t{\n\t\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_REMOVED);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic edge_data removeEdge(int src, int dest) {\n\t\tif(getEdge(src,dest) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tedge_data e = this.Edges.get(src).get(dest);\n\t\tthis.Edges.get(src).remove(dest);\n\t\tnumOfEdges--;\n\t\tMC++;\n\t\treturn e;\n\t}",
"boolean addEdge(V v, V w);",
"boolean containsEdge(V v, V w);",
"private void removeEdge(Edge edge) {\n\t\tshapes.remove(edge);\n\t\tshapes.remove(edge.getEdgeLabel());\n\t\tremove(edge.getEdgeLabel());\n\t}",
"@Test\n\tpublic void removeEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tList<Vertex> vertices1 = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_1.addVertices(vertices1);\n\t\tgraph.addEdge(edge_0);\n\t\tgraph.addEdge(edge_1);\n\t\tassertTrue(graph.removeEdge(edge_0));\n\t\tassertFalse(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.edges().size() == 1);\n\t}",
"private static void RemoveEdge(Point a, Point b)\n {\n //Here we use a lambda expression/predicate to express that we're looking for a match in list\n //Either if (n.A == a && n.B == b) or if (n.A == b && n.B == a)\n edges.removeIf(n -> n.A == a && n.B == b || n.B == a && n.A == b);\n }",
"public boolean removeVertex(String label)\n\t{\n\t\tif(hasVertex(label)) //if vertex in in list\n\t\t{\n\t\t\tvertices.removeAt(getVertex(label));\n\t\t\t//System.out.println(\"Deleted: \" + label); //debug\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean removeEdge(Object src, Object dest, boolean direction) \n\t{\n\t\tif(this.map.containsKey(src) && this.map.containsKey(dest))\n\t\t{\n\t\t\tif(direction)\n\t\t\t\tthis.map.get(src).removeNode(dest);\n\t\t\telse \n\t\t\t{\n\t\t\t\tthis.map.get(src).removeNode(dest);\t\n\t\t\t\tthis.map.get(dest).removeNode(src);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public edge_data removeEdge(int src, int dest) {\n NodeData nodeToRemoveEdgeFrom = (NodeData) this.nodes.get(src);\n if (!nodeToRemoveEdgeFrom.hasNi(dest)) return null; //return null if there is no edge from src to dest\n EdgeData edgeToRemove = (EdgeData) nodeToRemoveEdgeFrom.getEdge(dest);\n NodeData nodeConnectedFromThisNode = (NodeData) nodes.get(edgeToRemove.getDest()); //get the node that the edge is directed at (the destination node)\n nodeConnectedFromThisNode.getEdgesConnectedToThisNode().remove(nodeToRemoveEdgeFrom.getKey()); //remove the edge from the destination node\n nodeToRemoveEdgeFrom.getNeighborEdges().remove(edgeToRemove.getDest()); //remove the edge from the source node\n this.modeCount++;\n this.numOfEdges--;\n return edgeToRemove;\n }",
"public E getParentEdge(V vertex);",
"void contractEdges(DynamicGraph G, Integer u, Integer v ){\n G.removeEdges(u, v);\n // for all vertices w adj to v\n for (Integer w: G.adjacent(v)){\n // addEdge(u, w);\n G.addEdge(u, w);\n }\n // removeVertex(v); decrement V.\n G.removeVertex(v);\n /*System.out.println(\"After contracting edge u: \"+ u +\" v: \"+ v);\n System.out.println(G);*/\n }",
"public void testRemoveEdgeEdge( ) {\n init( );\n\n assertEquals( m_g4.edgeSet( ).size( ), 4 );\n m_g4.removeEdge( m_v1, m_v2 );\n assertEquals( m_g4.edgeSet( ).size( ), 3 );\n assertFalse( m_g4.removeEdge( m_eLoop ) );\n assertTrue( m_g4.removeEdge( m_g4.getEdge( m_v2, m_v3 ) ) );\n assertEquals( m_g4.edgeSet( ).size( ), 2 );\n }",
"Edge inverse() {\n return bond.inverse().edge(u, v);\n }",
"@Test\r\n public void testRemoveEdge() {\r\n System.out.println(\"removeEdge\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n int expectedResult = 0;\r\n int result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e = instance.insertEdge(v1Element, v2Element, edgeElement);\r\n\r\n expectedResult = 1;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n instance.removeEdge(e);\r\n\r\n expectedResult = 0;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n }",
"void removeVert(Pixel toRemove) {\n\n // is the given below this\n if (this.down == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n }\n }\n\n // is the given downright to this\n else if (this.downRight() == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n toRemove.left.up = toRemove.up;\n }\n if (toRemove.up != null) {\n toRemove.up.down = toRemove.left;\n }\n }\n\n //is the given downleft to this\n else if (this.downLeft() == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n }\n if (toRemove.right != null) {\n toRemove.right.up = toRemove.up;\n }\n if (toRemove.up != null) {\n toRemove.up.down = toRemove.right;\n }\n }\n // if the connections were incorrect\n else {\n throw new RuntimeException(\"Illegal vertical seam\");\n }\n }",
"public void removeEdge() {\n Graph GO = new Graph(nbOfVertex + 1);\n Value.clear();\n for (int i = 0; i < x.length; i++) {\n for (int j : x[i].getDomain()) {\n Value.add(j);\n if (MaxMatch[i] == Map.get(j)) {\n GO.addEdge(Map.get(j), i);\n } else {\n GO.addEdge(i, Map.get(j));\n }\n }\n }\n\n for (int i : V2) {\n for (int j : Value) {\n if (!V2.contains(j)) {\n GO.addEdge(i, j);\n }\n }\n }\n //System.out.println(\"GO : \");\n //System.out.println(GO);\n int[] map2Node = GO.findStrongConnectedComponent();\n //GO.printSCC();\n\n ArrayList<Integer>[] toRemove = new ArrayList[n];\n for (int i = 0; i < n; i++) {\n toRemove[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n for (int j : x[i].getDomain()) {\n ////System.out.println(i + \" \" + j);\n if (map2Node[i] != map2Node[Map.get(j)] && MaxMatch[i] != Map.get(j)) {\n toRemove[i].add(j);\n if (debug == 1) System.out.println(\"Remove arc : \" + i + \" => \" + j);\n }\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j : toRemove[i]) {\n x[i].removeValue(j);\n }\n }\n }",
"private void vertexDown(String vertex) {\r\n\t\tIterator it = vertexMap.entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\r\n\t\t\tif (pair.getKey().equals(vertex)) {\r\n\t\t\t\tVertex v = (Vertex) pair.getValue();\r\n\t\t\t\tv.setStatus(false);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void removeEdge(T source, T destination) {\n\t\tif (source == null || destination == null) {\n\t\t\tthrow new NullPointerException(\n\t\t\t\t\t\"Source and Destination, both should be non-null.\");\n\t\t}\n\t\tif (!graph.containsKey(source) || !graph.containsKey(destination)) {\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Source and Destination, both should be part of graph\");\n\t\t}\n\t\tgraph.get(source).remove(destination);\n\t}",
"@Test \n\tpublic void removeVertexTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tgraph.addVertex(D);\n\t\tassertFalse(graph.removeVertex(C));\n\t\tgraph.addVertex(C);\n\t\tgraph.addEdge(edge_0);\n\t\tassertTrue(graph.removeVertex(D));\n\t\tassertFalse(graph.vertices().contains(D));\n\t\tassertFalse(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.addVertex(D));\n\t}",
"@Test\r\n void remove_nonexistent_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(\"D\");\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }",
"public Boolean removeEdge( AnyType vertex_value_A, AnyType vertex_value_B ) throws VertexException {\n \n // ------------------------------------\n // Basic steps:\n // ------------------------------------\n // 1) For each vertex, check to see if the vertex exists in \n // the vertex_adjacency_list. If not, return false indicated \n // the edge does not exist. Otherwise goto step 2.\n // 2) In Vertex class, check to see if Vertex B is in Vertex A's\n // adjacent_vertex_list and vice versa (i.e. an edge exists). \n // If the edge does not exist return false, otherwise goto \n // step 3.\n // 3) In the Vertex class, remove Vertex B from Vertex A's \n // adjacent_vertex_list and vice versa, and then goto step 4. \n // Does not exist and return false, otherwise proceed to step 4.\n // 4) If number of adjacent vertices for Vertex A is zero, then \n // remove from the vertex_adjacency_list. Likewise, if the \n // number of adjacent vertices for Vertex B is zero, then \n // remove from _adjacency_list. Lastly, return true indicating \n // the edge was successfully removed.\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean a_in_list = false;\n boolean b_in_list = false;\n boolean edge = false;\n int size = vertex_adjacency_list.size();\n int a = -1;\n int b = -1;\n //Make new vertices with values passed in the parameters\n Vertex<AnyType> A = new Vertex<AnyType>(vertex_value_A);\n Vertex<AnyType> B = new Vertex<AnyType>(vertex_value_B);\n //go through to each vertex and find if the vertices exist\n for(int i = 0; i< size-1; i++){\n if( vertex_adjacency_list.get(i).compareTo(A) == 0){\n a_in_list = true;\n a = i;\n }\n if( vertex_adjacency_list.get(i).compareTo(B) == 0){\n b_in_list = true;\n b = i;\n }\n }\n //if doesn't exist, return false\n if( a_in_list == false || b_in_list == false){\n return false;\n }\n //checks if they're is an edge between vertices\n edge = vertex_adjacency_list.get(a).hasAdjacentVertex(vertex_adjacency_list.get(b));\n if(edge == false){\n return false;\n }\n //if edge exists then remove it from both a's and b's adjacency list\n if(edge){\n vertex_adjacency_list.get(a).removeAdjacentVertex(vertex_adjacency_list.get(b));\n vertex_adjacency_list.get(b).removeAdjacentVertex(vertex_adjacency_list.get(a));\n }\n //checking if no adjacecnt vertices then remove the node\n //bc there is no edge pointing to it\n if(vertex_adjacency_list.get(a).numberOfAdjacentVertices() == 0){\n vertex_adjacency_list.remove(a);\n }\n if(vertex_adjacency_list.get(b).numberOfAdjacentVertices() == 0){\n vertex_adjacency_list.remove(b);\n }\n \n \n return true;\n \n }",
"public void testRemoveEdge_edge() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(\n graph.removeEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }",
"public void removeEdge(int indexOne, int indexTwo)\n\t{\n\t\tadjacencyMatrix[indexOne][indexTwo] = false;\n\t\tadjacencyMatrix[indexTwo][indexOne] = false;\n\t}",
"public void testRemoveEdge_betweenVertices() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(graph.removeEdge(new Integer(i), new Integer(j)));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }",
"public void deleteEdge( String sourceName, String destName)\n {\n \tVertex v = vertexMap.get( sourceName );\n Vertex w = vertexMap.get( destName );\n if(v!=null && w!=null)\n \tv.adjEdge.remove(w.name);\n \n // v.weightnext.put(w.name,(Double) distance);\n }",
"public boolean hasEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void removeEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tedges.remove(edge);\n\t}",
"@Override\n\tpublic boolean removeVertex(Object value)\n\t{\n\t\tif(this.map.containsKey(value))\n\t\t{\n\t\t\t// remove the value from the map\n\t\t\tthis.map.remove(value);\n\t\t\t// iterate over the map and remove any edges of the value\n\t\t\tfor(Map.Entry<Object, SinglyLinkedList> vertex : map.entrySet())\n\t\t\t\tvertex.getValue().removeNode(value);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private int removeAgentFromVertex(Vertex vertex, Agent ag){\n synchronized (vertexAgentsNumber) {\n vertexAgentsNumber.get(vertex).remove(ag);\n if( vertexAgentsNumber.get(vertex).isEmpty() ) {\n vertexAgentsNumber.remove(vertex);\n return 0;\n }\n else\n return vertexAgentsNumber.get(vertex).size();\n }\n }",
"public boolean removeEdge(String label1, String label2)\n\t{\n\t\tif(isAdjacent(label1, label2)) //if edge exists remove it\n\t\t{\n\t\t\tDSAGraphVertex vx1 = getVertex(label1), vx2 = getVertex(label2);\n\t\t\tvx1.removeEdge(vx2);\n\t\t\tvx2.removeEdge(vx1);\n\t\t\tedgeCount--;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void edgeDown(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest))\r\n\t\t\t\tedge.setStatus(false);\r\n\t\t}\r\n\t}",
"public void removeEdge(int node1, int node2)\n{\n\tif(getNodes().containsKey(node1) && getNodes().containsKey(node2))\n\t{\n\t\tNode n1 = (Node) getNodes().get(node1);\n\t\tNode n2 = (Node) getNodes().get(node2);\n\n\t\tif(n1.getEdgesOf().containsKey(node2))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn1.getEdgesOf().remove(node2);\n\n\t\t}\n\t\tif(n2.getEdgesOf().containsKey(node1))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn2.getEdgesOf().remove(node1);\n\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n\t\t\t//System.out.println(\"Edge doesnt exist\");\n\t\t}\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"src or dest doesnt exist\");\n\t}\n}",
"protected void deleteEdge(IEdge edge) {\n\n if (edge != null) {\n\n this.ids.remove(edge.getID());\n this.edgeMap.remove(edge.getID());\n }\n }",
"protected void removeEdgeAndVertices(TestbedEdge edge) {\n java.util.Collection<Agent> agents = getIncidentVertices(edge);\n removeEdge(edge);\n for (Agent v : agents) {\n if (getIncidentEdges(v).isEmpty()) {\n removeVertex(v);\n }\n }\n }",
"public boolean removeEdge(jq_Field m, Node n) {\n if (addedEdges == null) return false;\n n.removePredecessor(m, this);\n return _removeEdge(m, n);\n }",
"final public edge rev_edge(final edge e) {\r\n return rev_edge_v3(e);\r\n }",
"public void deleteVertex(int id) throws SQLException {\n\t\tVertex vert = rDb.findVertById(id);\n\t\trDb.deleteVert(vert);\n\t}",
"public void findEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tSystem.out.println(neighbor.edge);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"none\");\r\n\t}",
"public void reset(V v) {\n\t\tmDistanceMap.remove(v);\n\t\tmIncomingEdgeMap.remove(v);\n\t}",
"@Override\n public void removeVertex(V pVertex, List<TimeFrame> plstTimeFrame) {\n for (TimeFrame tf : plstTimeFrame) {\n hmpGraphsAtTimeframes.get(tf).removeVertex(pVertex);\n darrGlobalAdjList.get(pVertex.getId()).remove(tf);\n }\n if (darrGlobalAdjList.get(pVertex.getId()).isEmpty()) {\n mapAllVertices.remove(pVertex.getId());\n }\n }",
"public void removeEdgeWeight(Edge p_edge) {\n\t\tweights.remove(p_edge);\n\t}",
"public void removeWall(Vertex current, Vertex next) {\r\n\r\n\t\tif (current.label + mazeSize == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasDownWall = false;\r\n\t\t\tnext.hasUpWall = false;\r\n\t\t} else if (current.label + 1 == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasRightWall = false;\r\n\t\t\tnext.hasLeftWall = false;\r\n\t\t} else if (current.label - 1 == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasLeftWall = false;\r\n\t\t\tnext.hasRightWall = false;\r\n\t\t} else if (current.label - mazeSize == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasUpWall = false;\r\n\t\t\tnext.hasDownWall = false;\r\n\t\t}\r\n\r\n\t\tcurrent.neighbors.remove(next);\r\n\t\tnext.neighbors.remove(current);\r\n\t}",
"public void findEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tSystem.out.println(neighbor.edge);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"none\");\r\n\t}"
] | [
"0.7930135",
"0.7806706",
"0.75670767",
"0.74673903",
"0.7336576",
"0.7336576",
"0.7187639",
"0.7144618",
"0.7048036",
"0.7027341",
"0.7018195",
"0.6985385",
"0.6931877",
"0.6924503",
"0.6911748",
"0.6834851",
"0.6834727",
"0.6789924",
"0.6786488",
"0.6772871",
"0.6703659",
"0.66892207",
"0.6689154",
"0.6687799",
"0.6634539",
"0.6589577",
"0.6580504",
"0.65708464",
"0.65618706",
"0.65271175",
"0.6497922",
"0.6458073",
"0.64240324",
"0.6298267",
"0.6284206",
"0.62765235",
"0.62673175",
"0.6246897",
"0.61970407",
"0.61139995",
"0.60514253",
"0.60483503",
"0.60438216",
"0.6041448",
"0.6023305",
"0.60232794",
"0.60168374",
"0.59967047",
"0.5989717",
"0.59805685",
"0.5966682",
"0.5964691",
"0.59550714",
"0.5919418",
"0.5907409",
"0.58814335",
"0.5852683",
"0.5848229",
"0.5840063",
"0.583975",
"0.5832284",
"0.5825236",
"0.5806013",
"0.57958037",
"0.57867223",
"0.5725273",
"0.5702596",
"0.5696989",
"0.5694855",
"0.5653406",
"0.5649761",
"0.5626049",
"0.5613348",
"0.5589293",
"0.5564168",
"0.5561389",
"0.555808",
"0.55307806",
"0.55149376",
"0.5505099",
"0.55018526",
"0.54903567",
"0.5487554",
"0.54853797",
"0.5481559",
"0.5459951",
"0.54582655",
"0.5456762",
"0.5456329",
"0.5455872",
"0.5414427",
"0.54117835",
"0.54019827",
"0.54018945",
"0.54009485",
"0.53957427",
"0.53797823",
"0.5379624",
"0.5360719",
"0.53598464"
] | 0.78192484 | 1 |
/ remove the edge from v to current vertex, if such edge exists. | public void removeEdgeFrom(char v) {
for (int i = 0; i < currentVertex.inList.size(); i++) {
Neighbor neighbor = currentVertex.inList.get(i);
if (neighbor.vertex.label == v) {
// remove from neighbor's outList
neighbor.vertex.outList.remove(findNeighbor(neighbor.vertex.outList, currentVertex.label));
currentVertex.inList.remove(neighbor); // remove from current's inList
return;
}
}
System.out.println("Edge from " + v + " does not exist.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V removeVertex(V v);",
"public void removeEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\t// remove from neighbor's inList\r\n\t\t\t\tneighbor.vertex.inList.remove(findNeighbor(neighbor.vertex.inList, currentVertex.label)); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tcurrentVertex.outList.remove(neighbor); // remove from current's outList\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge to \" + v + \" does not exist.\");\r\n\t}",
"public boolean removeEdge(V source, V target);",
"void removeVertex(Vertex v) throws GraphException;",
"public boolean removeVertex(V vertex);",
"public boolean removeVertex(V vertex);",
"@Override public boolean remove(L vertex) {\r\n if(!vertices.contains(vertex)) return false;\r\n vertices.remove(vertex);\r\n Iterator<Edge<L>> iter=edges.iterator();\r\n while(iter.hasNext()) {\r\n \t Edge<L> tmp=iter.next();\r\n \t //改了\r\n \t if(tmp.getSource().equals(vertex) || tmp.getTarget().equals(vertex))\r\n \t // if(tmp.getSource()==vertex|| tmp.getTarget()==vertex) \r\n \t\t iter.remove();\r\n \t}\r\n checkRep();\r\n return true;\r\n \r\n \r\n }",
"public void removeEdge(K u, K v)\n {\n\tList<HashMap<K, Integer>> adj = adjLists.get(u);\n\n\t// check for edge already being there\n\tfor (int i=0;i<adj.size();i++){\n\t\tfor (K vertex:adj.get(i).keySet()){\n\t\t\tif (vertex.equals(v))\n\t\t {\n\t\t\t\tadj.remove(adj.get(i));\n\t\t\t\t\n\n\t\t }\n\t\t}\n\t\t\n\t\t\n\t}\n\t\n\tList<HashMap<K, Integer>> adj2 = adjLists.get(v);\n\n\t// check for edge already being there\n\tfor (int i=0;i<adj2.size();i++){\n\t\tfor (K vertex:adj2.get(i).keySet()){\n\t\t\tif (vertex.equals(u))\n\t\t {\n\t\t\t\tadj2.remove(adj2.get(i));\n\n\t\t }\n\t\t}\n\t\t\n\t\t\n\t}\n\t\n }",
"public void removeVertex (E vertex)\n {\n int indexOfVertex = this.indexOf (vertex);\n if (indexOfVertex != -1)\n {\n this.removeEdges (vertex);\n\t for (int index = indexOfVertex + 1; index <= lastIndex; index++)\n {\n vertices[index - 1] = vertices[index];\n adjacencySequences[index - 1] = adjacencySequences[index];\n }\n \n vertices[lastIndex] = null;\n adjacencySequences[lastIndex] = null;\n lastIndex--;\n \n for (int index = 0; index <= lastIndex; index++)\n {\n Node node = adjacencySequences[index];\n while (node != null)\n {\n if (node.neighbourIndex > indexOfVertex)\n node.neighbourIndex--;\n node = node.nextNode;\n }\n }\n\t}\n }",
"public boolean removeEdge(E edge);",
"void removeEdge(Vertex v1, Vertex v2) throws GraphException;",
"boolean removeEdge(E edge);",
"void remove(Vertex vertex);",
"public void removeVertex();",
"private void removeFromEdgeMat(Vertex v) {\n int ind = _vertices.indexOf(v);\n for (int i = 0; i < _edges.size(); i++) {\n remove(_edges.get(i).get(ind));\n remove(_edges.get(ind).get(i));\n }\n _edges.remove(ind);\n for (int j = 0; j < _edges.size(); j++) {\n _edges.get(j).remove(ind);\n }\n _edgeMap.clear();\n for (int x = 0; x < _edges.size(); x++) {\n for (int y = 0; y < _edges.size(); y++) {\n if (!_edges.get(x).get(y).isNull()) {\n _edgeMap.put(_edges.get(x).get(y), new int[] {x, y});\n }\n }\n }\n }",
"public boolean removeEdge(V tail);",
"void remove(Edge edge);",
"public void EliminarVertice(int v) {\n\t\tNodoGrafo aux = origen;\n\t\tif (origen.nodo == v) \n\t\t\torigen = origen.sigNodo;\t\t\t\n\t\twhile (aux != null){\n\t\t\t// remueve de aux todas las aristas hacia v\n\t\t\tthis.EliminarAristaNodo(aux, v);\n\t\t\tif (aux.sigNodo!= null && aux.sigNodo.nodo == v) {\n\t\t\t\t// Si el siguiente nodo de aux es v , lo elimina\n\t\t\t\taux.sigNodo = aux.sigNodo.sigNodo;\n\t\t\t}\n\t\t\taux = aux.sigNodo;\n\t\t}\t\t\n\t}",
"public void removeEdge(Vertex other) {\n edges.remove(other);\n other.edges.remove(this);\n }",
"void removeEdge(int x, int y);",
"@Override\n public E removeVertex(E vertex) {\n if (vertex == null || !dictionary.containsKey(vertex)) {\n return null;\n } else {\n for (E opposite : getNeighbors(vertex)) {\n dictionary.get(opposite).remove(vertex);\n }\n dictionary.remove(vertex);\n return vertex;\n }\n }",
"public void removeVertex(V toRemove){\n if (toRemove.equals(null)){\n throw new IllegalArgumentException();\n }\n if(contains(toRemove)){\n graph.remove(toRemove);\n }\n for (V vertex : graph.keySet()){\n if (graph.get(vertex).contains(toRemove)){\n ArrayList<V> edges = graph.get(vertex);\n edges.remove(toRemove);\n graph.put(vertex, edges);\n }\n }\n }",
"public void removeEdges (E vertex) throws IllegalArgumentException\n {\n int index = this.indexOf (vertex);\n if (index < 0)\n throw new IllegalArgumentException (vertex + \" was not found!\");\n\n Node currentNode = adjacencySequences[index];\n while (currentNode != null)\n {\n this.removeNode (currentNode.neighbourIndex, index);\n currentNode = currentNode.nextNode;\n }\n\n adjacencySequences[index] = null;\n }",
"public void removeVertex(String vertLabel) {\n\n // Implement me!\n if (indexOf(vertLabel, vertices) <0) {\n return;\n }\n vertices.remove(vertLabel);\n Iterator<String> iterator = edges.keySet().iterator();\n while (iterator.hasNext()) {\n String k = iterator.next();\n if (k.contains(vertLabel)) {\n iterator.remove();\n edges.remove(k);\n }\n }\n }",
"private void removeFromVertexList(Vertex v) {\n int ind = _vertices.indexOf(v);\n for (int i = ind + 1; i < _vertices.size(); i++) {\n _vertMap.put(_vertices.get(i), i - 1);\n }\n _vertices.remove(v);\n }",
"public void removeEdge(Edge e){\n edgeList.remove(e);\n }",
"public void removeVertex (T vertex){\n int index = vertexIndex(vertex);\n \n if (index < 0) return; // vertex does not exist\n \n n--;\n // IF THIS DOESN'T WORK make separate loop for column moving\n for (int i = index; i < n; i++){\n vertices[i] = vertices[i + 1];\n for (int j = 0; j < n; j++){\n edges[j][i] = edges[j][i + 1]; // moving row up\n edges[i] = edges[i + 1]; // moving column over\n }\n }\n }",
"private void deleteEdge(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest)) {\r\n\t\t\t\tv.adjacent.remove(edge);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract void removeEdge(Point p, Direction dir);",
"@Override\n\tpublic boolean removeEdge(E vertexX, E vertexY) {\n\t\tUnorderedPair<E> edge = new UnorderedPair<>(vertexX, vertexY);\n\t\treturn edges.remove(edge);\n\t}",
"public boolean removeEdge(V tail, V head);",
"public void removeVertex(Position vp) throws InvalidPositionException;",
"public void removeEdge(Position ep) throws InvalidPositionException;",
"@Override\n public boolean deleteEdge(Edge edge) {\n return false;\n }",
"public void removeEdge(V from, V to){\n if (from.equals(null) || to.equals(null)){\n throw new IllegalArgumentException();\n }\n if (hasEdge(from, to)){\n ArrayList<V> edges = (ArrayList<V>)getEdges(from);\n int i = 1;\n V vertex = edges.get(0);\n while (i < edges.size() && !vertex.equals(to)){\n i++;\n vertex = edges.get(i);\n }\n edges.remove(vertex);\n graph.put(from, edges);\n }\n\n }",
"public void removeEdge(int start, int end);",
"public abstract void removeEdge(int from, int to);",
"public void removeEdge(int i, int j)\n {\n \tint v = i;\n \tint w = j;\n \t//Create an iterator on the adjacency list of i \n \tIterator<DirectedEdge> it = adj[v].iterator();\n \t//Loop through adj and look for any edge between i and j\n \twhile(it.hasNext())\n \t{\n \t\tDirectedEdge ed = it.next();\n \t\t//If an edge is found, remove it and its reciprocal\n \t\tif(ed.from() == v && ed.to() == w)\n \t\t{\n \t\t\tit.remove();\n \t\t\tit = adj[w].iterator();\n \t\t\twhile(it.hasNext())\n \t\t\t{\n \t\t\t\ted = it.next();\n \t\t\t\tif(ed.from() == w && ed.to() == v)\n \t\t\t\t{\n \t\t\t\t\tit.remove();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t} \t\n \tE-=2;\n }",
"public boolean removeEdge(Edge edge) {\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean deleteVertex(E sk) {\r\n\t\tif(containsVertex(sk)) {\r\n\t\t\tvertices.remove(sk); //remove the vertex itself\r\n\t\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\t\tArrayList<Edge<E>> toremove = new ArrayList<>();\r\n\t\t\t\tfor(Edge<E> ale : adjacencyLists.get(t)) {\r\n\t\t\t\t\tif(ale.getDst().equals(sk)) {\r\n\t\t\t\t\t\ttoremove.add(ale);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tadjacencyLists.get(t).removeAll(toremove);\r\n\t\t\t});\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public native VertexList remove(VertexNode vertex);",
"private Edge removeEdge(Node source, Node dest)\r\n\t{\r\n\t final Edge e = source.removeEdge(edgeType.getName(), dest);\r\n\t if (!eSet.remove(e))\r\n\t\tthrow new RuntimeException(\"No Edge from Node <\"+source.getName()\r\n\t\t\t\t\t +\"> to Node <\"+dest.getName()+\">\");\r\n\t return e;\r\n\t}",
"public boolean removeEdge(final LazyRelationship2 edge) {\n Relationship rel = neo.getRelationshipById(edge.getId());\n if (rel != null){\n removeEdge(rel);\n }\n else\n return false;\n return true;\n }",
"@Override\n public boolean removeEdge(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)\n && dictionary.get(vertex1).contains(vertex2)\n && dictionary.get(vertex2).contains(vertex1)) {\n dictionary.get(vertex1).remove(vertex2);\n dictionary.get(vertex2).remove(vertex1);\n return true;\n } else {\n return false;\n }\n\n }",
"@Override\r\n public edge_data removeEdge(int src, int dest) {\r\n \t\r\n if(src != dest && this.neighbors.get(src).containsKey(dest)){\r\n \t\r\n this.neighbors.get(src).remove(dest);\r\n \r\n this.connected_to.get(dest).remove(src);\r\n \r\n mc++;\r\n edgeCounter--;\r\n }\r\n \r\n return null;\r\n }",
"@Override\r\n\tpublic boolean unlink(E src, E dst) {\r\n\t\tVertex<E> s = vertices.get(src);\r\n\t\tVertex<E> d = vertices.get(dst);\r\n\t\tif(s != null && d != null) {\r\n\t\t\tadjacencyLists.get(src).remove(new Edge<E>(s.getElement(), d.getElement(), 1)); //remove edge (s,d)\r\n\t\t\tif(!isDirected) { //Remove the other edge if this graph is undirected\r\n\t\t\t\tadjacencyLists.get(dst).remove(new Edge<E>(d.getElement(), s.getElement(), 1));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void removeEdge (E vertex1, E vertex2) throws IllegalArgumentException\n {\n int index1 = this.indexOf (vertex1);\n if (index1 < 0)\n throw new IllegalArgumentException (vertex1 + \" was not found!\");\n \n int index2 = this.indexOf (vertex2);\n if (index2 < 0)\n throw new IllegalArgumentException (vertex2 + \" was not found!\");\n\n\tthis.removeNode (index1, index2);\n this.removeNode (index2, index1);\n }",
"@Override\r\n public void remove(V vertexName) {\r\n try {\r\n Vertex a = null;\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n while(vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if(vertexName.compareTo(v.vertexName) == 0)\r\n a = v;\r\n }\r\n if(a == null)\r\n vertexIterator.next();\r\n for(Vertex v : map.values()) {\r\n if(v.destinations.contains(a.vertexName))\r\n disconnect(v.vertexName, vertexName);\r\n }\r\n map.remove(a.vertexName, a);\r\n }\r\n catch(NoSuchElementException e) {\r\n throw e;\r\n }\r\n }",
"@Override\n public void deleteVertex(int vertex) {\n\n }",
"@Override\n public void removeVertex(V pVertex) {\n for (TimeFrame tf : darrGlobalAdjList.get(pVertex.getId()).keySet()) {\n hmpGraphsAtTimeframes.get(tf).removeVertex(pVertex);\n }\n darrGlobalAdjList.remove(pVertex.getId());\n mapAllVertices.remove(pVertex.getId());\n }",
"public void removeEdge(Edge p_edge) {\n\t\tedges.remove(p_edge);\n\t}",
"public void removeEdge( Edge edge ) {\r\n edges.removeElement(edge);\r\n }",
"public void removeNeighbour(final Vertex neighbour){\n\t\tif(getNeighbours().contains(neighbour))\n\t\t\tgetNeighbours().remove(neighbour);\n\t}",
"public void remove(int v) {\n Lista iter = new Lista(this);\n if (iter.x != v) {\n while (iter.next.x != v) {\n if (iter.next != null) {\n iter = iter.next;\n }\n }\n }\n if (iter.next.x == v) {\n iter.next = iter.next.next;\n }\n }",
"public boolean removeVertex(String label)\n\t{\n\t\tif(hasVertex(label)) //if vertex in in list\n\t\t{\n\t\t\tvertices.removeAt(getVertex(label));\n\t\t\t//System.out.println(\"Deleted: \" + label); //debug\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic boolean removeEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> adjacentNodes = edge.getAdjacentNodes();\n\t\tfor (N node : adjacentNodes)\n\t\t{\n\t\t\tSet<ET> adjacentEdges = nodeEdgeMap.get(node);\n\t\t\t/*\n\t\t\t * null Protection required in case edge wasn't actually in the\n\t\t\t * graph\n\t\t\t */\n\t\t\tif (adjacentEdges != null)\n\t\t\t{\n\t\t\t\tadjacentEdges.remove(edge);\n\t\t\t}\n\t\t}\n\t\tif (edgeList.remove(edge))\n\t\t{\n\t\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_REMOVED);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }",
"@Override\n\tpublic edge_data removeEdge(int src, int dest) {\n\t\tif(getEdge(src,dest) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tedge_data e = this.Edges.get(src).get(dest);\n\t\tthis.Edges.get(src).remove(dest);\n\t\tnumOfEdges--;\n\t\tMC++;\n\t\treturn e;\n\t}",
"boolean containsEdge(V v, V w);",
"public boolean removeEdge(Object src, Object dest, boolean direction) \n\t{\n\t\tif(this.map.containsKey(src) && this.map.containsKey(dest))\n\t\t{\n\t\t\tif(direction)\n\t\t\t\tthis.map.get(src).removeNode(dest);\n\t\t\telse \n\t\t\t{\n\t\t\t\tthis.map.get(src).removeNode(dest);\t\n\t\t\t\tthis.map.get(dest).removeNode(src);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private static void RemoveEdge(Point a, Point b)\n {\n //Here we use a lambda expression/predicate to express that we're looking for a match in list\n //Either if (n.A == a && n.B == b) or if (n.A == b && n.B == a)\n edges.removeIf(n -> n.A == a && n.B == b || n.B == a && n.A == b);\n }",
"boolean addEdge(V v, V w);",
"private void removeEdge(Edge edge) {\n\t\tshapes.remove(edge);\n\t\tshapes.remove(edge.getEdgeLabel());\n\t\tremove(edge.getEdgeLabel());\n\t}",
"public E getParentEdge(V vertex);",
"@Override\n public edge_data removeEdge(int src, int dest) {\n NodeData nodeToRemoveEdgeFrom = (NodeData) this.nodes.get(src);\n if (!nodeToRemoveEdgeFrom.hasNi(dest)) return null; //return null if there is no edge from src to dest\n EdgeData edgeToRemove = (EdgeData) nodeToRemoveEdgeFrom.getEdge(dest);\n NodeData nodeConnectedFromThisNode = (NodeData) nodes.get(edgeToRemove.getDest()); //get the node that the edge is directed at (the destination node)\n nodeConnectedFromThisNode.getEdgesConnectedToThisNode().remove(nodeToRemoveEdgeFrom.getKey()); //remove the edge from the destination node\n nodeToRemoveEdgeFrom.getNeighborEdges().remove(edgeToRemove.getDest()); //remove the edge from the source node\n this.modeCount++;\n this.numOfEdges--;\n return edgeToRemove;\n }",
"@Test\n\tpublic void removeEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tList<Vertex> vertices1 = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_1.addVertices(vertices1);\n\t\tgraph.addEdge(edge_0);\n\t\tgraph.addEdge(edge_1);\n\t\tassertTrue(graph.removeEdge(edge_0));\n\t\tassertFalse(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.edges().size() == 1);\n\t}",
"void removeVert(Pixel toRemove) {\n\n // is the given below this\n if (this.down == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n }\n }\n\n // is the given downright to this\n else if (this.downRight() == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n toRemove.left.up = toRemove.up;\n }\n if (toRemove.up != null) {\n toRemove.up.down = toRemove.left;\n }\n }\n\n //is the given downleft to this\n else if (this.downLeft() == toRemove) {\n if (toRemove.right != null) {\n toRemove.right.left = toRemove.left;\n }\n if (toRemove.left != null) {\n toRemove.left.right = toRemove.right;\n }\n if (toRemove.right != null) {\n toRemove.right.up = toRemove.up;\n }\n if (toRemove.up != null) {\n toRemove.up.down = toRemove.right;\n }\n }\n // if the connections were incorrect\n else {\n throw new RuntimeException(\"Illegal vertical seam\");\n }\n }",
"void contractEdges(DynamicGraph G, Integer u, Integer v ){\n G.removeEdges(u, v);\n // for all vertices w adj to v\n for (Integer w: G.adjacent(v)){\n // addEdge(u, w);\n G.addEdge(u, w);\n }\n // removeVertex(v); decrement V.\n G.removeVertex(v);\n /*System.out.println(\"After contracting edge u: \"+ u +\" v: \"+ v);\n System.out.println(G);*/\n }",
"@Test\r\n void remove_nonexistent_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(\"D\");\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }",
"public void removeEdge(T source, T destination) {\n\t\tif (source == null || destination == null) {\n\t\t\tthrow new NullPointerException(\n\t\t\t\t\t\"Source and Destination, both should be non-null.\");\n\t\t}\n\t\tif (!graph.containsKey(source) || !graph.containsKey(destination)) {\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Source and Destination, both should be part of graph\");\n\t\t}\n\t\tgraph.get(source).remove(destination);\n\t}",
"private void vertexDown(String vertex) {\r\n\t\tIterator it = vertexMap.entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\r\n\t\t\tif (pair.getKey().equals(vertex)) {\r\n\t\t\t\tVertex v = (Vertex) pair.getValue();\r\n\t\t\t\tv.setStatus(false);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Edge inverse() {\n return bond.inverse().edge(u, v);\n }",
"@Test \n\tpublic void removeVertexTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tgraph.addVertex(D);\n\t\tassertFalse(graph.removeVertex(C));\n\t\tgraph.addVertex(C);\n\t\tgraph.addEdge(edge_0);\n\t\tassertTrue(graph.removeVertex(D));\n\t\tassertFalse(graph.vertices().contains(D));\n\t\tassertFalse(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.addVertex(D));\n\t}",
"public void testRemoveEdgeEdge( ) {\n init( );\n\n assertEquals( m_g4.edgeSet( ).size( ), 4 );\n m_g4.removeEdge( m_v1, m_v2 );\n assertEquals( m_g4.edgeSet( ).size( ), 3 );\n assertFalse( m_g4.removeEdge( m_eLoop ) );\n assertTrue( m_g4.removeEdge( m_g4.getEdge( m_v2, m_v3 ) ) );\n assertEquals( m_g4.edgeSet( ).size( ), 2 );\n }",
"public void removeEdge() {\n Graph GO = new Graph(nbOfVertex + 1);\n Value.clear();\n for (int i = 0; i < x.length; i++) {\n for (int j : x[i].getDomain()) {\n Value.add(j);\n if (MaxMatch[i] == Map.get(j)) {\n GO.addEdge(Map.get(j), i);\n } else {\n GO.addEdge(i, Map.get(j));\n }\n }\n }\n\n for (int i : V2) {\n for (int j : Value) {\n if (!V2.contains(j)) {\n GO.addEdge(i, j);\n }\n }\n }\n //System.out.println(\"GO : \");\n //System.out.println(GO);\n int[] map2Node = GO.findStrongConnectedComponent();\n //GO.printSCC();\n\n ArrayList<Integer>[] toRemove = new ArrayList[n];\n for (int i = 0; i < n; i++) {\n toRemove[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n for (int j : x[i].getDomain()) {\n ////System.out.println(i + \" \" + j);\n if (map2Node[i] != map2Node[Map.get(j)] && MaxMatch[i] != Map.get(j)) {\n toRemove[i].add(j);\n if (debug == 1) System.out.println(\"Remove arc : \" + i + \" => \" + j);\n }\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j : toRemove[i]) {\n x[i].removeValue(j);\n }\n }\n }",
"public boolean hasEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test\r\n public void testRemoveEdge() {\r\n System.out.println(\"removeEdge\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n int expectedResult = 0;\r\n int result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e = instance.insertEdge(v1Element, v2Element, edgeElement);\r\n\r\n expectedResult = 1;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n instance.removeEdge(e);\r\n\r\n expectedResult = 0;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n }",
"@Override\n\tpublic boolean removeVertex(Object value)\n\t{\n\t\tif(this.map.containsKey(value))\n\t\t{\n\t\t\t// remove the value from the map\n\t\t\tthis.map.remove(value);\n\t\t\t// iterate over the map and remove any edges of the value\n\t\t\tfor(Map.Entry<Object, SinglyLinkedList> vertex : map.entrySet())\n\t\t\t\tvertex.getValue().removeNode(value);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public Boolean removeEdge( AnyType vertex_value_A, AnyType vertex_value_B ) throws VertexException {\n \n // ------------------------------------\n // Basic steps:\n // ------------------------------------\n // 1) For each vertex, check to see if the vertex exists in \n // the vertex_adjacency_list. If not, return false indicated \n // the edge does not exist. Otherwise goto step 2.\n // 2) In Vertex class, check to see if Vertex B is in Vertex A's\n // adjacent_vertex_list and vice versa (i.e. an edge exists). \n // If the edge does not exist return false, otherwise goto \n // step 3.\n // 3) In the Vertex class, remove Vertex B from Vertex A's \n // adjacent_vertex_list and vice versa, and then goto step 4. \n // Does not exist and return false, otherwise proceed to step 4.\n // 4) If number of adjacent vertices for Vertex A is zero, then \n // remove from the vertex_adjacency_list. Likewise, if the \n // number of adjacent vertices for Vertex B is zero, then \n // remove from _adjacency_list. Lastly, return true indicating \n // the edge was successfully removed.\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean a_in_list = false;\n boolean b_in_list = false;\n boolean edge = false;\n int size = vertex_adjacency_list.size();\n int a = -1;\n int b = -1;\n //Make new vertices with values passed in the parameters\n Vertex<AnyType> A = new Vertex<AnyType>(vertex_value_A);\n Vertex<AnyType> B = new Vertex<AnyType>(vertex_value_B);\n //go through to each vertex and find if the vertices exist\n for(int i = 0; i< size-1; i++){\n if( vertex_adjacency_list.get(i).compareTo(A) == 0){\n a_in_list = true;\n a = i;\n }\n if( vertex_adjacency_list.get(i).compareTo(B) == 0){\n b_in_list = true;\n b = i;\n }\n }\n //if doesn't exist, return false\n if( a_in_list == false || b_in_list == false){\n return false;\n }\n //checks if they're is an edge between vertices\n edge = vertex_adjacency_list.get(a).hasAdjacentVertex(vertex_adjacency_list.get(b));\n if(edge == false){\n return false;\n }\n //if edge exists then remove it from both a's and b's adjacency list\n if(edge){\n vertex_adjacency_list.get(a).removeAdjacentVertex(vertex_adjacency_list.get(b));\n vertex_adjacency_list.get(b).removeAdjacentVertex(vertex_adjacency_list.get(a));\n }\n //checking if no adjacecnt vertices then remove the node\n //bc there is no edge pointing to it\n if(vertex_adjacency_list.get(a).numberOfAdjacentVertices() == 0){\n vertex_adjacency_list.remove(a);\n }\n if(vertex_adjacency_list.get(b).numberOfAdjacentVertices() == 0){\n vertex_adjacency_list.remove(b);\n }\n \n \n return true;\n \n }",
"private int removeAgentFromVertex(Vertex vertex, Agent ag){\n synchronized (vertexAgentsNumber) {\n vertexAgentsNumber.get(vertex).remove(ag);\n if( vertexAgentsNumber.get(vertex).isEmpty() ) {\n vertexAgentsNumber.remove(vertex);\n return 0;\n }\n else\n return vertexAgentsNumber.get(vertex).size();\n }\n }",
"public void testRemoveEdge_betweenVertices() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(graph.removeEdge(new Integer(i), new Integer(j)));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }",
"public void testRemoveEdge_edge() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(\n graph.removeEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }",
"public boolean removeEdge(String label1, String label2)\n\t{\n\t\tif(isAdjacent(label1, label2)) //if edge exists remove it\n\t\t{\n\t\t\tDSAGraphVertex vx1 = getVertex(label1), vx2 = getVertex(label2);\n\t\t\tvx1.removeEdge(vx2);\n\t\t\tvx2.removeEdge(vx1);\n\t\t\tedgeCount--;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void deleteEdge( String sourceName, String destName)\n {\n \tVertex v = vertexMap.get( sourceName );\n Vertex w = vertexMap.get( destName );\n if(v!=null && w!=null)\n \tv.adjEdge.remove(w.name);\n \n // v.weightnext.put(w.name,(Double) distance);\n }",
"private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void findEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tSystem.out.println(neighbor.edge);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"none\");\r\n\t}",
"public void removeEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tedges.remove(edge);\n\t}",
"public void removeEdge(int indexOne, int indexTwo)\n\t{\n\t\tadjacencyMatrix[indexOne][indexTwo] = false;\n\t\tadjacencyMatrix[indexTwo][indexOne] = false;\n\t}",
"public void removeEdge(int node1, int node2)\n{\n\tif(getNodes().containsKey(node1) && getNodes().containsKey(node2))\n\t{\n\t\tNode n1 = (Node) getNodes().get(node1);\n\t\tNode n2 = (Node) getNodes().get(node2);\n\n\t\tif(n1.getEdgesOf().containsKey(node2))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn1.getEdgesOf().remove(node2);\n\n\t\t}\n\t\tif(n2.getEdgesOf().containsKey(node1))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn2.getEdgesOf().remove(node1);\n\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n\t\t\t//System.out.println(\"Edge doesnt exist\");\n\t\t}\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"src or dest doesnt exist\");\n\t}\n}",
"public void findEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tSystem.out.println(neighbor.edge);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"none\");\r\n\t}",
"private void edgeDown(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest))\r\n\t\t\t\tedge.setStatus(false);\r\n\t\t}\r\n\t}",
"public void deleteVertex(int id) throws SQLException {\n\t\tVertex vert = rDb.findVertById(id);\n\t\trDb.deleteVert(vert);\n\t}",
"public boolean hasEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void removeWall(Vertex current, Vertex next) {\r\n\r\n\t\tif (current.label + mazeSize == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasDownWall = false;\r\n\t\t\tnext.hasUpWall = false;\r\n\t\t} else if (current.label + 1 == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasRightWall = false;\r\n\t\t\tnext.hasLeftWall = false;\r\n\t\t} else if (current.label - 1 == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasLeftWall = false;\r\n\t\t\tnext.hasRightWall = false;\r\n\t\t} else if (current.label - mazeSize == next.label) {\r\n\t\t\t\r\n\t\t\tcurrent.hasUpWall = false;\r\n\t\t\tnext.hasDownWall = false;\r\n\t\t}\r\n\r\n\t\tcurrent.neighbors.remove(next);\r\n\t\tnext.neighbors.remove(current);\r\n\t}",
"protected void removeEdgeAndVertices(TestbedEdge edge) {\n java.util.Collection<Agent> agents = getIncidentVertices(edge);\n removeEdge(edge);\n for (Agent v : agents) {\n if (getIncidentEdges(v).isEmpty()) {\n removeVertex(v);\n }\n }\n }",
"public boolean removeEdge(jq_Field m, Node n) {\n if (addedEdges == null) return false;\n n.removePredecessor(m, this);\n return _removeEdge(m, n);\n }",
"protected void deleteEdge(IEdge edge) {\n\n if (edge != null) {\n\n this.ids.remove(edge.getID());\n this.edgeMap.remove(edge.getID());\n }\n }",
"@Override\n public void removeVertex(V pVertex, List<TimeFrame> plstTimeFrame) {\n for (TimeFrame tf : plstTimeFrame) {\n hmpGraphsAtTimeframes.get(tf).removeVertex(pVertex);\n darrGlobalAdjList.get(pVertex.getId()).remove(tf);\n }\n if (darrGlobalAdjList.get(pVertex.getId()).isEmpty()) {\n mapAllVertices.remove(pVertex.getId());\n }\n }",
"Vertex getOtherVertex(Vertex v) {\n\t\t\tif(v.equals(_one)) return _two;\n\t\t\telse if(v.equals(_two)) return _one;\n\t\t\telse return null;\n\t\t}",
"public void removeEdgeWeight(Edge p_edge) {\n\t\tweights.remove(p_edge);\n\t}"
] | [
"0.7957036",
"0.78916115",
"0.7573218",
"0.7489526",
"0.7409696",
"0.7409696",
"0.72898686",
"0.7168632",
"0.70816165",
"0.7052654",
"0.7025484",
"0.70187825",
"0.6970762",
"0.6954472",
"0.69049925",
"0.6857406",
"0.68379045",
"0.6820578",
"0.6816021",
"0.67834705",
"0.67549074",
"0.6731501",
"0.67092407",
"0.6695242",
"0.66562825",
"0.66247696",
"0.66127676",
"0.65859985",
"0.65675855",
"0.65473735",
"0.65054214",
"0.6440159",
"0.6419445",
"0.6339374",
"0.6330984",
"0.629338",
"0.6286724",
"0.62855077",
"0.62834156",
"0.6162889",
"0.615802",
"0.6081942",
"0.60772",
"0.6065824",
"0.60401064",
"0.60280937",
"0.60267246",
"0.60132504",
"0.60117686",
"0.60074145",
"0.5979399",
"0.59694034",
"0.5959718",
"0.59586346",
"0.59508795",
"0.59502095",
"0.5928592",
"0.5881823",
"0.5878695",
"0.58694875",
"0.5844714",
"0.58419734",
"0.5836382",
"0.5831905",
"0.58235973",
"0.5819471",
"0.5677643",
"0.56581247",
"0.56577927",
"0.56557506",
"0.5644331",
"0.5639124",
"0.56228215",
"0.56213397",
"0.56165546",
"0.55996084",
"0.55987066",
"0.5548138",
"0.5544405",
"0.5531354",
"0.5512784",
"0.55109483",
"0.55057746",
"0.5500609",
"0.5499806",
"0.5498802",
"0.54958904",
"0.54900473",
"0.5484047",
"0.5481565",
"0.5475434",
"0.546436",
"0.5462267",
"0.54555994",
"0.5444019",
"0.5441058",
"0.54348606",
"0.54169637",
"0.53894544",
"0.53882426"
] | 0.7901112 | 1 |
/ Print the labels of vertices in the order encountered during a breadthfirst search starting at current node. | public void BFS() {
Queue queue = new Queue();
queue.enqueue(this.currentVertex);
currentVertex.printVertex();
currentVertex.visited = true;
while (!queue.isEmpty()) {
Vertex vertex = (Vertex) queue.dequeue();
Vertex child = null;
while ((child = getUnvisitedChildVertex(vertex)) != null) {
child.visited = true;
child.printVertex();
queue.enqueue(child);
}
}
clearVertexNodes();
printLine();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printVertices() {\r\n\t\tfor (int i = 0; i < vertices.size(); i++)\r\n\t\t\tSystem.out.print(vertices.get(i).label);\r\n\t}",
"public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}",
"public void print_root(){\r\n\t\tfor(int id = 0; id < label.length; id++){\r\n\t\t\tSystem.out.printf(\"\"%d \"\", find(id));\r\n\t\t}\r\n\t\tSystem.out.printf(\"\"\\n\"\");\r\n\t}",
"public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}",
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"public void printNodes(){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println(isLeaf);\n if (!isLeaf){\n for(int i =0; i<=n;i++){\n c[i].printNodes();\n }\n }\n }",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"public void inAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"private static void printBFS(int[][] adjacencyMatrix, int sv, boolean[] visited) {\n\t\tint n= adjacencyMatrix.length;\n\t\tvisited[sv]= true;\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\t\tqueue.add(sv);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint frontnode = queue.poll();\n\t\t\tSystem.out.print(frontnode+\" \");\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tif(adjacencyMatrix[frontnode][i] == 1 && !visited[i]) {\n\t\t\t\t\tvisited[i]= true;\n\t\t\t\t\tqueue.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}",
"public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];\n\t\tqueue.add(current);\n\n\t\twhile (queue.peek() != null) {\n\n\t\t\tcurrent = queue.remove();\n\t\t\tSystem.out.println(\"current: \" + current);\n\t\t\tvisited.put(current, true);\n\n\t\t\tfor (Integer neighbor: edges.get(current)) {\n\t\t\t\tif (!visited.get(neighbor)) {\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void printGraphStructure() {\n\t\tSystem.out.println(\"Vector size \" + nodes.size());\n\t\tSystem.out.println(\"Nodes: \"+ this.getSize());\n\t\tfor (int i=0; i<nodes.size(); i++) {\n\t\t\tSystem.out.print(\"pos \"+i+\": \");\n\t\t\tNode<T> node = nodes.get(i);\n\t\t\tSystem.out.print(node.data+\" -- \");\n\t\t\tIterator<EDEdge<W>> it = node.lEdges.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEDEdge<W> e = it.next();\n\t\t\t\tSystem.out.print(\"(\"+e.getSource()+\",\"+e.getTarget()+\", \"+e.getWeight()+\")->\" );\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"void printLevelOrder() {\n\t\tint h = height(root);\n\t\tint i;\n\t\tfor (i = h; i >= 1; i--)\n\t\t\tprintGivenLevel(root, i);\n\t}",
"static void bfs(int[][] G){\n\t\tQueue<Integer> q = new LinkedList<Integer>();\t\t\n\t\tfor (int ver_start = 0; ver_start < N; ver_start ++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\tq.add(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!q.isEmpty()){\n\t\t\t\tint vertex = q.remove();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the queue\n\t\t\t\t\t\tq.add(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"--\");\t\t\t\n\t\t}\n\t}",
"public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}",
"void printNodesWithEdges()\n {\n for ( int i = 0; i < this.numNodes; i++ )\n {\n Node currNode = this.nodeList.get(i);\n System.out.println(\"Node id: \" + currNode.id );\n \n int numEdges = currNode.connectedNodes.size();\n for ( int j = 0; j < numEdges; j++ )\n {\n Node currEdge = currNode.connectedNodes.get(j);\n System.out.print(currEdge.id + \",\");\n }\n\n System.out.println();\n } \n\n \n }",
"public void BFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\tBFS(this.vertices[3], visited, queue); // BFS starting with 40\r\n\r\n\t\t// Call the helper function to print BFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tBFS(this.vertices[i], visited, queue);\r\n\t}",
"public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }",
"void printLevelOrder() \n { \n int h = height(this); \n int i; \n for (i=1; i<=h; i++) \n printGivenLevel(this, i); \n }",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"public void printLevelOrder() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tSystem.out.println(\"Empty Tree\");\r\n\t\t} else {\r\n\t\t\tQueueLi<BinaryNode<AnyType>> q = new QueueLi<>();\r\n\t\t\tBinaryNode<AnyType> currentNode;\r\n\t\t\tq.enqueue(root);\r\n\t\t\twhile (!q.isEmpty()) {\r\n\t\t\t\tcurrentNode = q.dequeue();\r\n\t\t\t\tif (currentNode.left != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.left);\r\n\t\t\t\t} // if\r\n\t\t\t\tif (currentNode.right != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.right);\r\n\t\t\t\t} // if\r\n\t\t\t\tSystem.out.print(currentNode.element + \" \");\r\n\t\t\t} // while\r\n\t\t} // else\r\n\t}",
"public static void printPreOrderDFT(Node node){\n if (node!=null){ // node มีตัวตน\n\n System.out.print(node.key+\" \"); //เจอ node ไหน print ค่า และ recursive ซ้ายตามด้วยขวา\n printPreOrderDFT(node.left);\n printPreOrderDFT(node.right);\n }\n else {return;}\n\n }",
"void printLevelOrder() {\n TreeNode2 nextLevelRoot = this;\n while (nextLevelRoot != null) {\n TreeNode2 current = nextLevelRoot;\n nextLevelRoot = null;\n while (current != null) {\n System.out.print(current.val + \" \");\n if (nextLevelRoot == null) {\n if (current.left != null)\n nextLevelRoot = current.left;\n else if (current.right != null)\n nextLevelRoot = current.right;\n }\n current = current.next;\n }\n System.out.println();\n }\n }",
"public void display() {\r\n int v;\r\n Node n;\r\n \r\n for(v=1; v<=V; ++v){\r\n System.out.print(\"\\nadj[\" + toChar(v) + \"] ->\" );\r\n for(n = adj[v]; n != z; n = n.next) \r\n System.out.print(\" |\" + toChar(n.vert) + \" | \" + n.wgt + \"| ->\"); \r\n }\r\n System.out.println(\"\");\r\n }",
"public void breadthFirst(Vertex[] vertices ){\n\t\t\n\t\tVertex temp = vertices[0];\n\t\ttemp.state=1; //for tracking the visited nodes, visited/discovered A\n\t\tboolean[] seen = new boolean[vertices.length];\n\t\tQueue<Vertex> q = new LinkedList<Vertex>(); //queue for breadth first traversal\n\t\t\n\t\tq.add(temp); //root node added to queue\n\t\tseen[0] = true;\n\t\tSystem.out.println(\"Begin breadth first traversal: \\n\" + \n\t\t\t\tq.toString());\n\t\t\t\t\n\t\tfor (int i = 0; i < vertices.length; i++){\n\t\t\ttemp = vertices[i];\n\t\t\twhile (!q.isEmpty() ) {\n\t Vertex v = q.remove();\n\t for (int j : v.neighbors) {\n\t if (!seen[j]) {\n\t q.add(vertices[j]);\n\t seen[j] = true;\n\t vertices[j].state=1;\n\t }\n\t }\n\t System.out.println(q.toString());\n \t}\n\t\t}\n\t}",
"@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}",
"@Override\n public String print() {\n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n \n System.out.print(\"In ascending order: \");\n for (int i=0; i<inorderTraverse.size(); i++) {\n System.out.print(inorderTraverse.get(i)+\" \");\n }\n System.out.println(\"\");\n return \"\";\n }",
"public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void bfs(int s) {\n boolean[] visited = new boolean[v];\n int level = 0;\n parent[s] = 0;\n levels[s] = level;\n Queue<Integer> queue = new LinkedList<>();\n queue.add(s);\n visited[s] = true;\n while (!queue.isEmpty()){\n Integer next = queue.poll();\n System.out.print(next+\", \");\n Iterator<Integer> it = adj[next].listIterator();\n\n while (it.hasNext()){\n Integer i = it.next();\n if(!visited[i]){\n visited[i] = true;\n levels[i] = level;\n parent[i] = next;\n queue.add(i);\n }\n }\n\n level++;\n }\n }",
"public void BFS(int startingVertex) {\n boolean[] visited = new boolean[numberVertices];\n Queue<Integer> q = new LinkedList<>();\n\n //Add starting vertex\n q.add(startingVertex);\n visited[startingVertex] = true;\n\n //Go through queue adding vertex edges until everything is visited and print out order visited\n while (!q.isEmpty()) {\n int current = q.poll();\n System.out.println(current + \" \");\n for (int e : adj[current]) {\n if (!visited[e]) {\n q.add(e);\n visited[e] = true;\n }\n\n }\n }\n }",
"public void print (){\r\n for (int i = 0; i < graph.size(); ++i){\r\n graph.get(i).print();\r\n }\r\n }",
"void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}",
"private String printTopKLabels() {\n for (int i = 0; i < labelList.size(); ++i) {\n sortedLabels.add(\n new AbstractMap.SimpleEntry<>(labelList.get(i), labelProbArray[0][i]));\n if (sortedLabels.size() > RESULTS_TO_SHOW) {\n sortedLabels.poll();\n }\n }\n String textToShow = \"\";\n final int size = sortedLabels.size();\n for (int i = 0; i < size; ++i) {\n Map.Entry<String, Float> label = sortedLabels.poll();\n textToShow = String.format(\"\\n%s: %4.2f\",label.getKey(),label.getValue()) + textToShow;\n }\n return textToShow;\n }",
"public void PrintKNeighbours() {\n\t\t\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tSystem.out.print(ptr.dim_weight+\" \");\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t}",
"public void outAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.outList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"void printSCCs() {\n \tStack stack = new Stack(); \n \t\n \t// Mark all the vertices as not visited (For first DFS) \n boolean visited[] = new boolean[V]; \n for(int i = 0; i < V; i++) \n visited[i] = false; \n \n // Fill vertices in stack according to their finishing times\n // (topological order (reverse post order))\n for (int i = 0; i < V; i++) \n if (visited[i] == false) \n fillOrder(i, visited, stack); \n \n // Create a reversed graph \n GraphKosarajuSharirSCC gr = reverseGraph();\n \n // Mark all the vertices as not visited (For second DFS) \n for (int i = 0; i < V; i++) \n visited[i] = false; \n \n // Now process all vertices in order defined by Stack \n while (stack.empty() == false) { \n // Pop a vertex from stack \n int v = (int)stack.pop(); \n \n // Print Strongly connected component of the popped vertex \n if (visited[v] == false) { \n gr.DFSUtil(v, visited); \n System.out.println(); \n } \n } \n }",
"void printLevelOrder(Node root)\n {\n int h = height(root);\n int i;\n for (i=1; i<=h; i++)\n printGivenLevel(root, i);\n }",
"public void printInorder() {\r\n System.out.print(\"inorder:\");\r\n printInorder(overallRoot);\r\n System.out.println();\r\n }",
"void Print() {\r\n\r\n AVLTreeNode node = root;\r\n\r\n printInorder(node);\r\n\r\n }",
"public void printAdjacencyList() {\n \n for ( int i=0; i<vertex_adjacency_list.size(); i++ ) {\n \n vertex_adjacency_list.get( i ).printVertex();\n \n }\n \n }",
"public void printRoutine()\n\t{\n\t\tfor (String name: vertices.keySet())\n\t\t{\n\t\t\tString value = vertices.get(name).toString();\n\t\t\tSystem.out.println(value);\n\t\t}\n\t}",
"public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }",
"public String breadthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 1;\n //make new vertex to check if its in list\n //make queue to hold vertices\n SemiConstantTimeQueue<Vertex<AnyType>> queue = new SemiConstantTimeQueue<Vertex<AnyType>>();\n //loop through and set not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if it's in list then set exists to true\n //and set visited \n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n } \n //if doesn't exist then throw the exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //make new queue\n queue.add(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n counter = 1;\n int k=0;\n Vertex<AnyType>e;\n //while the queue isn't empty\n while(queue.peek() !=null){\n //make e the top of the queue \n e = queue.peek(); \n //go through the list and if you reach the begining it exits loop\n for( k = 0; k < vertex_adjacency_list.size()-1; k++){\n if(vertex_adjacency_list.get(k).compareTo(e)==0){\n break;\n }\n } \n //go through loop and check if visited, if not then add it to queue, set visited\n for( int j = 0; j< vertex_adjacency_list.get(k).numberOfAdjacentVertices(); j++){\n if(vertex_adjacency_list.get(k).getAdjacentVertex(j).hasBeenVisited()==false){\n counter++;\n queue.add(vertex_adjacency_list.get(k).getAdjacentVertex(j));\n vertex_adjacency_list.get(k).getAdjacentVertex(j).setVisited(counter);\n }\n }\n //remove from queue when through loop once\n k++;\n queue.remove();\n }\n //loop through list and print vertex and when it was visited\n for(int o = 0; o< vertex_adjacency_list.size(); o++){\n buffer.append(vertex_adjacency_list.get(o) + \":\" + vertex_adjacency_list.get(o).getVisited()+ \"\\n\");\n }\n return buffer.toString();\n }",
"public void print(){\n if (isLeaf){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println();\n }\n else{\n for(int i =0; i<n;i++){\n c[i].print();\n System.out.print(key[i]+\" \");\n }\n c[n].print();\n }\n }",
"public void printInOrder() { // not to be changed\n\t\tprintInOrder(root);\n\t}",
"static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next());\n }\n }",
"public void printInorder() {\n System.out.print(\"inorder:\");\n printInorder(overallRoot);\n System.out.println();\n }",
"private static void print(ArrayList<Node<BinaryTreeNode<Integer>>> n) {\n\t\tfor(int i=0; i<n.size(); i++) {\n\t\t\tNode<BinaryTreeNode<Integer>> head = n.get(i);\n\t\t\twhile(head != null) {\n\t\t\t\tSystem.out.print(head.data.data+\" \");\n\t\t\t\thead = head.next;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void print(){\n inorderTraversal(this.root);\n }",
"public static void breadthFirstSearch(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"BFS:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tQueue<Node> queue = new LinkedList<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tqueue.add(node);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()) {\n\t\t\t\tnode = queue.remove();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the queue for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}",
"void BFS(int s) {\n // Mark all the vertices as not visited(By default\n // set as false)\n boolean visited[] = new boolean[V];\n\n // Create a queue for BFS\n LinkedList<Integer> queue = new LinkedList<Integer>();\n\n // Mark the current node as visited and enqueue it\n visited [s] = true;\n queue.add(s);\n\n while (queue.size() != 0) {\n // Dequeue a vertex from queue and print it\n s = queue.poll();\n System.out.print(s + \" \");\n\n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it\n // visited and enqueue it\n Iterator<Integer> i = adj [s].listIterator();\n while (i.hasNext()) {\n int n = i.next();\n if (!visited [n]) {\n visited [n] = true;\n queue.add(n);\n }\n }\n }\n }",
"private void printInfo(BinaryTree bt) {\n // traverse preorder\n System.out.printf(\"%-23s\", \"Pre-Order:\");\n bt.traversePreorder(bt.getRoot());\n System.out.println();\n // evaluate preorder\n System.out.printf(\"%-23s\", \"Pre-Order Evaluation:\");\n System.out.println(evaluatePreorder(bt.getPreOrder().getArray()));\n // traverse postorder\n System.out.printf(\"%-23s\", \"Post-Order:\");\n bt.traversePostorder(bt.getRoot());\n System.out.println();\n //evaluate postorder\n System.out.printf(\"%-23s\", \"Post-Order Evaluation:\");\n System.out.println(evaluatePostorder(bt.getPostOrder().getArray()));\n }",
"int main()\n{\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n \n cout << \"Following is Breadth First Traversal \"\n << \"(starting from vertex 2) n\";\n g.BFS(2);\n \n return 0;\n}",
"private void printPath(int currentVertex, int[] parents) {\n // Base case : Source node has been processed \n if (currentVertex == NO_PARENT) {\n return;\n }\n printPath(parents[currentVertex], parents);\n System.out.print(currentVertex + \" \");\n }",
"public void printPreOrder() {\n if (root == null) {\n System.out.println(\"\");\n } else {\n Node x = root;\n System.out.print(x.key);\n if (x.left != null) x.left.preOrderPrint();\n if (x.right != null) x.right.preOrderPrint();\n System.out.println();\n }\n }",
"public void printTree(){ \n System.out.format(\"The suffix tree for S = %s is: %n\",this.text); \n this.print(0, this.root); \n }",
"public void inOrderPrint()\r\n\t{\r\n\t\tif(root != null)\r\n\t\t\troot.inOrderPrint();\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Empty\");\r\n\t}",
"void printGraph();",
"private void preOrderPrint() {\n System.out.print(\" \" + key);\n if (left != null) left.preOrderPrint();\n if (right != null) right.preOrderPrint();\n }",
"public void printPreOrder(Node currNode){\n if (currNode != null){\n System.out.print(currNode.val+ \", \");\n printInOrder(currNode.left);\n printInOrder(currNode.right);\n }\n }",
"public String outputBreadthFirstSearch() {\n\n String output = \"\";\n\n // create a queue for BFS \n LinkedList<TrieNode> queue = new LinkedList<>();\n\n queue.add(root);\n\n while (queue.size() != 0) {\n // dequeue a node from queue and append to the output\n TrieNode s = queue.poll();\n\n // append to the output\n output += s;\n\n // get all children nodes of the dequeued node s\n TrieNode[] children = s.offsprings;\n for (int i = 0; i < 26; i++) {\n TrieNode next = children[i];\n if (next != null) {\n queue.add(next);\n }\n\n }\n }\n return output;\n }",
"private void reachable() {\r\n\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\t\tbfs(v);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void printGraph() {\n System.out.println(\n \"All vertices in the graph are presented below.\\n\" +\n \"Their individual edges presented after a tab. \\n\" +\n \"-------\");\n\n for (Map.Entry<Vertex, LinkedList<Vertex>> entry : verticesAndTheirEdges.entrySet()) {\n LinkedList<Vertex> adj = entry.getValue();\n System.out.println(\"Vertex: \" + entry.getKey().getName());\n for (Vertex v : adj) {\n System.out.println(\" \" + v.getName());\n }\n }\n }",
"public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"private ArrayList<T> printBSTree(Node<T> u) {\n\n\t\tArrayList<T> breadth = constructTree(u); // very wasteful\n\t\tconstructBSTree(u); // very wasteful\n\t\tSystem.out.println(breadth);\n\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"CAUTION: horizontal positions are correct only relative to each other\");\n\n\t\tfor (int i = 1; i < pT.size(); i++) {\n\t\t\tSystem.out.printf(\"d = %3d: \", i - 1);\n\t\t\tint theSize = pT.get(i).size();\n\t\t\tint baseWidth = 90;\n\t\t\tString thePadding = CommonSuite.stringRepeat(\" \",\n\t\t\t\t\t(int) ((baseWidth - 3 * theSize) / (theSize + 1)));\n\t\t\tfor (int j = 0; j < theSize; j++)\n\t\t\t\tSystem.out.printf(\"%s%3s\", thePadding, pT.get(i).get(j));\n\t\t\tSystem.out.println();\n\t\t}\n\t\treturn breadth;\n\t}",
"void printNodes(){\n\t\tfor(int i=0;i<Table.length;i++){\r\n\t\t\tfor(StockNode t=Table[i];t!=null;t=t.next){\r\n\t\t\t\tSystem.out.println(t.stockName+\":\"+t.stockValue+\" \"+t.transactions);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void print() {\r\n\t\tif(isEmpty()) {\r\n\t\t\tSystem.out.printf(\"%s is Empty%n\", name);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: %n\", name);\r\n\t\tNode<E> current = first;//node to traverse the list\r\n\t\t\r\n\t\twhile(current != null) {\r\n\t\t\tSystem.out.printf(\"%d \", current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"private void print(StringBuffer buffer, DAG.Node node,\n \t DAG.Node parent, List<DAG.Arc> arcs) {\n \n \t // Add the vertexIndex to the labels if it hasn't already been added.\n \t if (!(this.currentCanonicalLabelMapping.contains(node.vertexIndex))) {\n \t this.currentCanonicalLabelMapping.add(node.vertexIndex);\n \t }\n \n \t // print out any symbol for the edge in the input graph\n \t if (parent != null) {\n \t buffer.append(getEdgeSymbol(node.vertexIndex, parent.vertexIndex));\n \t }\n \n \t // print out the text that represents the node itself\n \t buffer.append(this.startNodeSymbol);\n \t buffer.append(getVertexSymbol(node.vertexIndex));\n \n \t int color = dag.colorFor(node.vertexIndex);\n \t if (color != 0) {\n \t buffer.append(',').append(color);\n \t }\n \t buffer.append(this.endNodeSymbol);\n \n \t // Need to sort the children here, so that they are printed in an order \n \t // according to their invariants.\n \t Collections.sort(node.children);\n \n \t // now print the sorted children, surrounded by branch symbols\n \t boolean addedBranchSymbol = false;\n \t for (DAG.Node child : node.children) {\n \t DAG.Arc arc = dag.new Arc(node.vertexIndex, child.vertexIndex);\n \t if (arcs.contains(arc)) {\n \t continue;\n \t } else {\n \t if (!addedBranchSymbol) {\n \t buffer.append(AbstractSignature.START_BRANCH_SYMBOL);\n \t addedBranchSymbol = true;\n \t }\n \t arcs.add(arc);\n \t print(buffer, child, node, arcs);\n \t }\n \t }\n \t if (addedBranchSymbol) {\n \t buffer.append(AbstractSignature.END_BRANCH_SYMBOL);\n \t }\n \t}",
"static void bfs(String label) {\n\n /* Add a graph node to the queue. */\n queue.addLast(label);\n graphVisited.put(label, true);\n\n while (!queue.isEmpty()) {\n\n /* Take a node out of the queue and add it to the list of visited nodes. */\n if (!graphVisited.containsKey(queue.getFirst()))\n graphVisited.put(queue.getFirst(), true);\n\n String str = queue.removeFirst();\n\n /*\n For each unvisited vertex from the list of the adjacent vertices,\n add the vertex to the queue.\n */\n for (String lab : silhouette.get(str)) {\n if (!graphVisited.containsKey(lab) && lab != null && !queue.contains(lab))\n queue.addLast(lab);\n }\n }\n }",
"public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }",
"public void breadthFirstTraversal(final int startPoint) {\n\t\tfinal boolean[] isVerticesVisited = new boolean[adjacencyList.length];\n\t\tfinal Queue<Integer> queue = new LinkedList<>();\n\n\t\tisVerticesVisited[startPoint] = true;\n\t\tqueue.add(startPoint);\n\n\t\tint selectedVertice;\n\t\tint vertice;\n\t\twhile (!queue.isEmpty()) {\n\t\t\tselectedVertice = queue.poll();\n\n\t\t\tSystem.out.print(selectedVertice + \" \");\n\n\t\t\tIterator<Integer> edgeIterator = adjacencyList[selectedVertice].listIterator();\n\n\t\t\twhile (edgeIterator.hasNext()) {\n\t\t\t\tvertice = edgeIterator.next();\n\t\t\t\tif (!isVerticesVisited[vertice]) {\n\t\t\t\t\tqueue.add(vertice);\n\t\t\t\t\tisVerticesVisited[vertice] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void printTree(Node head) {\r\n System.out.println(\"Binary Tree:\");\r\n printInOrder(head, 0, \"H\", 17);\r\n System.out.println();\r\n }",
"public void printForward(){\n\t\t\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\t\n\t\tNode theNode = head;\n\n\t\twhile(theNode != null){\n\t\t\tSystem.out.print(theNode.data + \" \");\n\t\t\ttheNode = theNode.next;\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"public void printTree() {\n Object[] nodeArray = this.toArray();\n for (int i = 0; i < nodeArray.length; i++) {\n System.out.println(nodeArray[i]);\n }\n }",
"public void displayNodes() {\n Node node = this.head;\n StringBuilder sb = new StringBuilder();\n while (node != null) {\n sb.append(node.data).append(\" \");\n node = node.next;\n };\n\n System.out.println(sb.toString());\n }",
"public static void main(String[] args) {\n\n /*\n * Given below directed graph, show the DFS and BFS traversal and print the paths\n * it took throughout the traversal of the graph\n *\n * (D)--(F)\n * /\n * (B)--(E)\n * /\n * (A)\n * \\\n * (C)--(G)\n *\n * Do Breadth First Search and Depth First Search, conclude on the trade offs\n * between the two traversal\n */\n\n // Initialize the graph here and its edges\n Graphs graph = new Graphs();\n graph.addNode('A', new Node('A'));\n graph.addNode('B', new Node('B'));\n graph.addNode('C', new Node('C'));\n graph.addNode('D', new Node('D'));\n graph.addNode('E', new Node('E'));\n graph.addNode('F', new Node('F'));\n graph.addNode('G', new Node('G'));\n\n graph.addEdge('A','B');\n graph.addEdge('B','D');\n graph.addEdge('D','F');\n graph.addEdge('B','E');\n graph.addEdge('A','C');\n graph.addEdge('C','G');\n\n // Initialize the list of paths\n ArrayList<String> traversedNodes;\n // Do a DFS on the graph\n traversedNodes = graph.depthFirstSearch('A','G');\n System.out.println(\"Traversal in DFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n // Do a BFS on the graph\n traversedNodes = graph.breadthFirstSearch('A','G');\n System.out.println(\"\\nTraversal in BFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n }",
"void Graph::BFS(int s)\n{\n bool *visited = new bool[V];\n for(int i = 0; i < V; i++)\n visited[i] = false;\n \n // Create a queue for BFS\n list<int> queue;\n \n // Mark the current node as visited and enqueue it\n visited[s] = true;\n queue.push_back(s);\n \n // 'i' will be used to get all adjacent vertices of a vertex\n list<int>::iterator i;\n \n while(!queue.empty())\n {\n // Dequeue a vertex from queue and print it\n s = queue.front();\n cout << s << \" \";\n queue.pop_front();\n \n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it visited\n // and enqueue it\n for(i = adj[s].begin(); i != adj[s].end(); ++i)\n {\n if(!visited[*i])\n {\n visited[*i] = true;\n queue.push_back(*i);\n }\n }\n }",
"public void printBFS() {\n Cell[][] grid = maze.getGrid();\n\n for (int i = 0; i <= r; i++) {\n // Rows: This loop needs to iterate r times since there are r rows\n for (int j = 0; j < r; j++) {\n Cell currentCell;\n if (i == r) { // If it is on the last row, print the bottom row of the cells\n currentCell = grid[i - 1][j];\n System.out.print(currentCell.bottomRow());\n } else { // If it's not on the last row, print the top row of the cells\n currentCell = grid[i][j];\n System.out.print(currentCell.topRow());\n }\n }\n System.out.print(\"+\");\n System.out.println();\n\n // This loop only needs to iterate r-1 times since there is only r-1 \"|\" rows\n if (i != r) {\n for (int k = 0; k < r; k++) {\n Cell currentCell = grid[i][k];\n if ((i == 0 && k == 0))\n System.out.print(currentCell.zeroDistanceColumn());\n else\n System.out.print(currentCell.distanceColumn());\n }\n System.out.print(\"|\");\n System.out.println();\n }\n }\n }",
"public void printGraph(){\n\t\tSystem.out.println(\"[INFO] Graph: \" + builder.nrNodes + \" nodes, \" + builder.nrEdges + \" edges\");\r\n\t}",
"public void printGraph() {\n\t\tStringJoiner j = new StringJoiner(\", \");\n\t\tfor(Edge e : edgeList) {\n\t\t\tj.add(e.toString());\n\t\t}\n\t\t\n\t\tSystem.out.println(j.toString());\n\t}",
"private void inOrderTraversal(int index) {\n // go through the graph as long as has values\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n inOrderTraversal(2 * index + 1);\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on right child\n inOrderTraversal(2 * index + 2);\n }",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(20, null, null);\n TreeNode lvl2Node1 = insertTreeNode(true, 10, root);\n TreeNode lvl2Node2 = insertTreeNode(false, 1, root);\n TreeNode lvl3Node1 = insertTreeNode(true, 25, lvl2Node1);\n TreeNode lvl3Node2 = insertTreeNode(false, 26, lvl2Node1);\n TreeNode lvl3Node3 = insertTreeNode(true, 32, lvl2Node2);\n TreeNode lvl3Node4 = insertTreeNode(false, 37, lvl2Node2);\n insertTreeNode(true, 5, lvl3Node1);\n insertTreeNode(false, 6, lvl3Node2);\n insertTreeNode(false, 8, lvl3Node3);\n insertTreeNode(true, 10, lvl3Node4);\n\n\n breadthFirstSearchPrintTree(root);\n\n }",
"public void mst() {\n int currentVertexIndex = 0;\r\n dfsStack.push(0);\r\n vertexList[0].wasVisited = true;\r\n// System.out.println(vertexList[dfsStack.peek()]);\r\n while (dfsStack.top != -1) {\r\n\r\n\r\n currentVertexIndex = this.getAdjUnvisitedVert(dfsStack.peek());\r\n if (currentVertexIndex != -1) {\r\n System.out.print(vertexList[dfsStack.peek()]);\r\n dfsStack.push(currentVertexIndex);\r\n vertexList[currentVertexIndex].wasVisited = true;\r\n System.out.print(vertexList[dfsStack.peek()]);\r\n System.out.print(\", \");\r\n\r\n\r\n } else {\r\n currentVertexIndex = dfsStack.pop();\r\n\r\n }\r\n }\r\n for (Vertex x : vertexList) {\r\n x.wasVisited = false;\r\n }\r\n }",
"public void print()\n {\n for (Node curr = first; curr != null; curr = curr.next)\n System.out.print(curr.val + \" \");\n System.out.println();\n }",
"public void display() {\n\t\t\n\t\tint u,v;\n\t\t\n\t\tfor(v=1; v<=V; ++v) {\n\t\t\t\n\t\t\tSystem.out.print(\"\\nadj[\" + v + \"] = \");\n\t\t\t\n\t\t\tfor(u = 1 ; u <= V; ++u) {\n\t\t\t\t \n\t\t\t\tSystem.out.print(\" \" + adj[u][v]);\n\t\t\t}\n\t\t} \n\t\tSystem.out.println(\"\");\n\t}",
"public void print() {\n\t\ttraversePreOrder(root, 0);\n\t}",
"public void print(){\r\n\t\t\tNode temp = this.head;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.print(\"| prev=\"+temp.prev+\", val=\"+temp.val+\", next=\"+temp.next+\" |\");\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}",
"public void printLevelOrder(Node tree){\n\t\tint h = height(tree);\n\t\tSystem.out.println(\"The height is \"+ h);\n\t\tfor(int i=1;i<=h;i++){\n\t\t\tprintGivenLevel(tree, i);\n\t\t}\n\t}",
"void BFS(int s, int d) \r\n { \r\n int source = s;\r\n int destination = d;\r\n boolean visited[] = new boolean[V];\r\n int parent[] = new int[V];\r\n \r\n // Create a queue for BFS \r\n LinkedList<Integer> queue = new LinkedList<Integer>(); \r\n \r\n // Mark the current node as visited and enqueue it \r\n \r\n visited[s]=true; \r\n queue.add(s); \r\n System.out.println(\"Search Nodes: \");\r\n while (queue.size() != 0) \r\n { \r\n int index = 0;\r\n \r\n // Dequeue a vertex from queue and print it \r\n \r\n s = queue.poll();\r\n \r\n System.out.print(convert2(s)); \r\n \r\n if(s == destination)\r\n {\r\n break;\r\n }\r\n \r\n System.out.print(\" -> \");\r\n while(index < adj[s].size()) \r\n { \r\n \r\n \r\n int n = adj[s].get(index); \r\n if (!visited[n]) \r\n { \r\n visited[n] = true;\r\n parent[n] = s;\r\n queue.add(n); \r\n }\r\n index = index+ 2;\r\n \r\n \r\n }\r\n \r\n \r\n \r\n }\r\n int check = destination;\r\n int cost = 0, first, second = 0;\r\n String string = \"\" + convert2(check);\r\n while(check!=source)\r\n {\r\n \r\n first = parent[check];\r\n string = convert2(first) + \" -> \" + string;\r\n while(adj[first].get(second) != check)\r\n {\r\n second++;\r\n }\r\n cost = cost + adj[first].get(second +1);\r\n check = first;\r\n second = 0;\r\n \r\n }\r\n \r\n System.out.println(\"\\n\\nPathway: \");\r\n \r\n System.out.println(string);\r\n \r\n \r\n System.out.println(\"\\nTotal cost: \" + cost);\r\n }",
"private static void BFS(int[][] adjacencyMatrix) {\n\t\tint n = adjacencyMatrix.length;\n\t\tboolean visited[] = new boolean[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(!visited[i]) {\n\t\t\tprintBFS(adjacencyMatrix,i,visited);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\n\t}",
"void inOrderTraversal(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tinOrderTraversal( node.left );\r\n\t\tSystem.out.print( node.value + \" \");\r\n\t\tinOrderTraversal( node.right );\r\n\t}",
"static void dfs(int[][] G){\n\t\tStack<Integer> s = new Stack<Integer>();\n\t\tfor (int ver_start=0; ver_start<N; ver_start++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\ts.push(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!s.isEmpty()){\n\t\t\t\tint vertex = s.pop();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the stack\n\t\t\t\t\t\ts.push(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void printLaptops(){\n\t\tSystem.out.println(\"Root is: \"+vertices.get(root));\n\t\tSystem.out.println(\"Edges: \");\n\t\tfor(int i=0;i<parent.length;i++){\n\t\t\tif(parent[i] != -1){\n\t\t\t\tSystem.out.print(\"(\"+vertices.get(parent[i])+\", \"+\n\t\t\tvertices.get(i)+\") \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t}",
"void bfs(SimpleVertex simpleVertex) {\n\t\twhile (true) {\n\t\t\tif (simpleVertex.isVisited == false) {\n\n\t\t\t\tif (simpleVertex.isAdded == false) {\n\t\t\t\t\tqueue.add(simpleVertex);\n\t\t\t\t\tsimpleVertex.isAdded = true;\n\t\t\t\t}\n\t\t\t\tsimpleVertex.isVisited = true;\n\t\t\t\tSystem.out.print(simpleVertex.Vertexname + \" \");\n\n\t\t\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\n\t\t\t\t\tif (node.two.isAdded == false)\n\t\t\t\t\t\tqueue.add(node.two);\n\t\t\t\t\tnode.two.isAdded = true;\n\n\t\t\t\t}\n\t\t\t\tqueue.poll();\n\t\t\t\tif (!queue.isEmpty())\n\t\t\t\t\tbfs(queue.peek());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public void bft() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void showBFS(TreeNode root) {\r\n\t\tQueue<TreeNode> queue = new LinkedList<TreeNode>();\r\n\t\tqueue.add(root);\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tTreeNode node = queue.remove();\r\n\t\t\tSystem.out.print(node + \" \");\r\n\t\t\tif (node.left != null) queue.add(node.left);\r\n\t\t\tif (node.right != null) queue.add(node.right);\r\n\t\t}\r\n\t}",
"public void levelOrderPrint() {\n\t\tlevelOrderPrint(root);\n\t}",
"private static void printGraph(ArrayList<Vertex> graph) {\n\t\tSystem.out.print(\"---GRAPH PRINT START---\");\n\t\tfor (Vertex vertex: graph) {\n\t\t\tSystem.out.println(\"\\n\\n\" + vertex.getValue());\n\t\t\tSystem.out.print(\"Adjacent nodes: \");\n\t\t\tfor (Vertex v: vertex.getAdjacencyList()) {\n\t\t\t\tSystem.out.print(v.getValue() + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\n\\n---GRAPH PRINT END---\\n\\n\");\n\t}",
"public void bfs(Vertex<T> start) {\n\t\t\t// BFS uses Queue data structure\n\t\t\tQueue<Vertex<T>> que = new LinkedList<Vertex<T>>();\n\t\t\tstart.visited = true;\n\t\t\tque.add(start);\n\t\t\tprintNode(start);\n\n\t\t\twhile (!que.isEmpty()) {\n\t\t\t\tVertex<T> n = (Vertex<T>) que.remove();\n\t\t\t\tVertex<T> child = null;\n\t\t\t\twhile ((child = getUnvisitedChildren(n)) != null) {\n\t\t\t\t\tchild.visited = true;\n\t\t\t\t\tque.add(child);\n\t\t\t\t\tprintNode(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void printNodes() {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode==null) {\n\t\t\tSystem.out.println(\" The Node is Null\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.print(\" \"+ currentNode.getData());\n\t\t\twhile(currentNode.getNextNode()!=null) {\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tSystem.out.print(\"=> \"+ currentNode.getData());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.6854401",
"0.6469416",
"0.6406026",
"0.6344724",
"0.63196594",
"0.6277933",
"0.625574",
"0.6249553",
"0.623148",
"0.6226546",
"0.6197621",
"0.6149119",
"0.61010236",
"0.60930175",
"0.60602736",
"0.6047826",
"0.5995006",
"0.5980683",
"0.5972462",
"0.5961993",
"0.5940126",
"0.5934175",
"0.5920517",
"0.59173894",
"0.59129083",
"0.5910816",
"0.59002846",
"0.5897666",
"0.5891563",
"0.5883206",
"0.5878521",
"0.5870902",
"0.586937",
"0.5851714",
"0.585148",
"0.58468574",
"0.5841976",
"0.5840015",
"0.5832429",
"0.5826278",
"0.5823898",
"0.581276",
"0.5812338",
"0.5806467",
"0.579701",
"0.57923204",
"0.57899666",
"0.5779733",
"0.57785344",
"0.5773743",
"0.5770387",
"0.5768092",
"0.5750856",
"0.5748514",
"0.5745397",
"0.574302",
"0.57383716",
"0.5731287",
"0.57307225",
"0.5727543",
"0.5725018",
"0.572403",
"0.5723712",
"0.5722708",
"0.5719663",
"0.5714059",
"0.5702987",
"0.5699297",
"0.56969106",
"0.5696619",
"0.56897676",
"0.56897175",
"0.56859034",
"0.5680199",
"0.5679718",
"0.5679018",
"0.5676315",
"0.56752837",
"0.56721133",
"0.5669193",
"0.56650007",
"0.56576043",
"0.56546056",
"0.5646233",
"0.5644425",
"0.5642016",
"0.5635701",
"0.56289625",
"0.56274277",
"0.56264305",
"0.5623432",
"0.56151724",
"0.5614428",
"0.5610885",
"0.56044245",
"0.5601156",
"0.55987704",
"0.55948573",
"0.55916226",
"0.55840176"
] | 0.6145964 | 12 |
/ Pass start vertex and an array that tells us if we've seen a vertex. | private void DFS(Vertex x) {
seen[vertices.indexOf(x)] = true;
System.out.print(x.label + " ");
for (int i = 0; i < x.outList.size(); i++) {
if (!seen[vertices.indexOf(x.outList.get(i).vertex)]) {
DFS(x);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasIsVertexOf();",
"boolean contains(int vertex);",
"public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }",
"boolean ignoreExistingVertices();",
"public boolean hasVertex(T vert);",
"public boolean isVertex( VKeyT key );",
"boolean contains(Vertex vertex);",
"public boolean isVertex(T vertex) {\n return vertexIndex(vertex) != -1;\n }",
"public void testContainsVertex() {\n System.out.println(\"containsVertex\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n Assert.assertTrue(graph.containsVertex(new Integer(i)));\n }\n }",
"public boolean containsVertex (E vertex)\n {\n return this.indexOf(vertex) != -1;\n }",
"@Override\n\tpublic boolean contains(Object vertex) {\n\t\treturn vertices.contains(vertex);\n\t}",
"boolean containsVertex(V v);",
"public boolean containsVertex(V vertex);",
"public boolean containsVertex(V vertex);",
"public boolean reachable(Vertex start, Vertex end){\n\t\tSet<Vertex> reach = this.post(start); \n\t\treturn reach.contains(end);\n\t}",
"public void finish(){\n //check start vertex is valid for given algorithm\n }",
"private void breadthFirstSearch (int start, int[] visited, int[] parent){\r\n Queue< Integer > theQueue = new LinkedList< Integer >();\r\n boolean[] identified = new boolean[getNumV()];\r\n identified[start] = true;\r\n theQueue.offer(start);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = 1; //ziyaret edilmis vertexler queuedan cikarilan vertexlerdir\r\n Iterator < Edge > itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n if (!identified[neighbor]) {\r\n identified[neighbor] = true;\r\n theQueue.offer(neighbor);\r\n parent[neighbor] = current;\r\n }\r\n }\r\n }\r\n }",
"boolean seen(Graph.Vertex u) {\n\t\treturn getVertex(u).seen;\n\t}",
"@Test\n\tpublic void verticesTest() {\n\t\tgraph.addVertex(A);\n\t\tgraph.addVertex(B);\n\t\tgraph.addVertex(C);\n\t\tgraph.addVertex(D);\n\t\tassertEquals(4, graph.vertices().size());\n\t\tassertTrue(graph.vertices().contains(A));\n\t\tassertTrue(graph.vertices().contains(D));\n\t}",
"public boolean connectsVertex(V v);",
"@Test\n public void getVertexes() {\n\n for (int i = 0; i < 6; i++) {\n\n Vertex temp = new Vertex(i + \"\", \"Location number \" + i);\n assertTrue(temp.equals(testGraph.getVertices ().get(i)));\n\n }\n }",
"@Test\n void test01_addVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two vertices\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates a check list to compare with\n\n if (!graph.getAllVertices().equals(vertices)) {\n fail(\"Graph didn't add the vertices correctly\");\n }\n }",
"public boolean connectsVertices(Collection<V> vs);",
"@Test\r\n public void testVertices() {\r\n System.out.println(\"vertices\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 1;\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n\r\n Collection colection = instance.vertices();\r\n boolean result = colection.contains(v1);\r\n boolean expectedResult = true;\r\n assertEquals(expectedResult, result);\r\n\r\n instance.removeVertex(v1);\r\n result = colection.contains(v1);\r\n expectedResult = false;\r\n assertEquals(expectedResult, result);\r\n }",
"public boolean pathExists(int startVertex, int stopVertex) {\r\n if (startVertex == stopVertex) {\r\n \treturn true;\r\n } else {\r\n \tif (visitAll(startVertex).contains(stopVertex)) {\r\n \t\treturn true;\r\n \t}\r\n }\r\n return false;\r\n }",
"@Override\r\n\tpublic boolean containsVertex(E key) {\r\n\t\treturn vertices.containsKey(key);\r\n\t}",
"@Test\r\n void test_insert_1_vertex_check() {\r\n graph.addVertex(\"1\");\r\n vertices = graph.getAllVertices();\r\n if (!vertices.contains(\"1\"))\r\n fail(\"Insert not working!!\");\r\n }",
"public abstract int[] getConnected(int vertexIndex);",
"public abstract boolean putVertex(Vertex incomingVertex);",
"@Override\n\tpublic boolean containsVertex(Object value) \n\t{\n\t\treturn (this.map.containsKey(value));\n\t}",
"public String depthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n ConstantTimeStack<Vertex<AnyType>> stack = new ConstantTimeStack<Vertex<AnyType>>();\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 0;\n //loop through to set each vertex to not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if find the start vertex then set index position to counter\n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n }\n //if doesn't exist then through exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //if it does exist then push start node onto stack, set visited \n else if(exists){\n stack.push(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n Vertex <AnyType> e = vertex_adjacency_list.get(counter);\n counter = 2;\n int n = e.numberOfAdjacentVertices();\n try{\n \n while(true){\n //loop through e's adjacent vertices \n for (n = e.numberOfAdjacentVertices()-1; n >=0 ; n--){\n //if the adacent vertex has not been visited\n if(e.getAdjacentVertex(n).hasBeenVisited()==false){\n //change e to adjacent vertex and push onto stack\n e = e.getAdjacentVertex(n);\n stack.push(e);\n //set e as visited at counter\n e.setVisited(counter);\n counter++;\n //reset n to e's num of vertices\n n = e.numberOfAdjacentVertices();\n }\n //if it has been visited and it's the first node in list\n //then pop it off the stack and then set e to new top\n //set n to new num of vertices\n else if(e.getAdjacentVertex(n).hasBeenVisited() && n == 0){\n stack.pop();\n e = stack.peek();\n n = e.numberOfAdjacentVertices();\n }\n }\n }\n }catch(EmptyStackException m){\n }\n }\n //loop through the list and print each with when it was visited\n for(int k = 0; k< vertex_adjacency_list.size(); k++){\n buffer.append(vertex_adjacency_list.get(k) + \":\" + vertex_adjacency_list.get(k).getVisited()+ \"\\n\");\n }\n \n return buffer.toString();\n \n }",
"public boolean hasVertex(String label)\n\t{\n\t\tboolean sucess = false;\n\t\ttry {\n\t\t\tgetVertex(label);\n\t\t\tsucess = true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\tsucess = false;\n\t\t}\n\t\treturn sucess;\n\t}",
"public boolean hasVertex(String name) {\n return mVertices.containsKey(name);\n }",
"public String breadthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 1;\n //make new vertex to check if its in list\n //make queue to hold vertices\n SemiConstantTimeQueue<Vertex<AnyType>> queue = new SemiConstantTimeQueue<Vertex<AnyType>>();\n //loop through and set not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if it's in list then set exists to true\n //and set visited \n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n } \n //if doesn't exist then throw the exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //make new queue\n queue.add(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n counter = 1;\n int k=0;\n Vertex<AnyType>e;\n //while the queue isn't empty\n while(queue.peek() !=null){\n //make e the top of the queue \n e = queue.peek(); \n //go through the list and if you reach the begining it exits loop\n for( k = 0; k < vertex_adjacency_list.size()-1; k++){\n if(vertex_adjacency_list.get(k).compareTo(e)==0){\n break;\n }\n } \n //go through loop and check if visited, if not then add it to queue, set visited\n for( int j = 0; j< vertex_adjacency_list.get(k).numberOfAdjacentVertices(); j++){\n if(vertex_adjacency_list.get(k).getAdjacentVertex(j).hasBeenVisited()==false){\n counter++;\n queue.add(vertex_adjacency_list.get(k).getAdjacentVertex(j));\n vertex_adjacency_list.get(k).getAdjacentVertex(j).setVisited(counter);\n }\n }\n //remove from queue when through loop once\n k++;\n queue.remove();\n }\n //loop through list and print vertex and when it was visited\n for(int o = 0; o< vertex_adjacency_list.size(); o++){\n buffer.append(vertex_adjacency_list.get(o) + \":\" + vertex_adjacency_list.get(o).getVisited()+ \"\\n\");\n }\n return buffer.toString();\n }",
"private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }",
"public boolean containsVertex(String id) {\n\t\treturn hitVertices.containsKey(id);\n\t}",
"public void testVerticesSet() {\n System.out.println(\"verticesSet\");\n\n Assert.assertTrue(generateGraph().verticesSet().size() == 25);\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn vertices.isEmpty();\r\n\t}",
"@Override\n public boolean isVertex()\n {\n return getAngle() > Math.PI && getAngle() < 2 * Math.PI;\n }",
"public boolean pathExists(int startVertex, int stopVertex) {\n // your code here\n \tIterator iter = new DFSIterator(startVertex);\n \tInteger i = stopVertex;\n \twhile (iter.hasNext()) {\n \t\tif (iter.next().equals(i)) {\n \t\t\treturn true;\n \t\t}\n \t}\n return false;\n }",
"@Test\n\tvoid testVerticesExist() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Boston\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Newark\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Trenton\"));\n\t}",
"@Override\r\n public boolean breadthFirstSearch(T start, T end) {\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n Queue<Vertex<T>> queue = new LinkedList<Vertex<T>>();\r\n Set<Vertex<T>> visited = new HashSet<>();\r\n\r\n queue.add(startV);\r\n visited.add(startV);\r\n\r\n while(queue.size() > 0){\r\n Vertex<T> next = queue.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if(next == endV){\r\n return true;\r\n }\r\n\r\n for (Vertex<T> neighbor: next.getNeighbors()){\r\n if(!visited.contains(neighbor)){\r\n visited.add(neighbor);\r\n queue.add(neighbor);\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }",
"public boolean isConnected() {\r\n\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tArrayList<String> list = new ArrayList<>(vtces.keySet());\r\n\t\tint count = 0;\r\n\t\tfor (String key : list) {\r\n\t\t\tif (processed.containsKey(key))\r\n\t\t\t\tcontinue;\r\n\t\t\tcount++;\r\n\t\t\t// Create a new pair\r\n\t\t\tPair npr = new Pair();\r\n\t\t\tnpr.vname = key;\r\n\t\t\tnpr.psf = key;\r\n\r\n\t\t\t// put pair queue\r\n\t\t\tqueue.addLast(npr);\r\n\r\n\t\t\t// Work while queue is not empty\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\r\n\t\t\t\t// Remove a pair from queue\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\tif (processed.containsKey(rp.vname))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// Put in processed hashmap\r\n\t\t\t\tprocessed.put(rp.vname, True);\r\n\r\n\t\t\t\t// nbrs\r\n\t\t\t\tVertex rpvertex = vtces.get(rp.vname);\r\n\t\t\t\tArrayList<String> nbrs = new ArrayList<>(rpvertex.nbrs.keySet());\r\n\r\n\t\t\t\tfor (String nbr : nbrs) {\r\n\t\t\t\t\t// Process only unprocessed vertex\r\n\t\t\t\t\tif (!processed.containsKey(nbr)) {\r\n\t\t\t\t\t\t// Create a new pair and put in queue\r\n\t\t\t\t\t\tPair np = new Pair();\r\n\t\t\t\t\t\tnp.vname = nbr;\r\n\t\t\t\t\t\tnp.psf = rp.psf + nbr;\r\n\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (count > 1)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Test\r\n void test_insert_50_vertex_check() {\r\n String str;\r\n for(int i = 0; i < 50; i++) {\r\n str = \"\" + i;\r\n graph.addVertex(str);\r\n }\r\n vertices = graph.getAllVertices();\r\n for(int j = 0; j < 50; j++) {\r\n str = \"\" + j;\r\n if (!vertices.contains(str))\r\n fail(\"Insert not working!!\");\r\n }\r\n }",
"public boolean foiChecado(Vertice v){\n int i = v.label;\n return vertices[i];\n }",
"void addIsVertexOf(Subdomain_group newIsVertexOf);",
"public static boolean connected(Graph grafo) {\r\n\t\tint numVertices = grafo.getVertexNumber();\r\n\t\tSet<Vertice> verticesVisitados = new HashSet<Vertice>(); // sem repeticoes\r\n\t\tfor (Aresta aresta : grafo.getArestas()) {\r\n\t\t\tverticesVisitados.add(aresta.getV1());\r\n\t\t\tverticesVisitados.add(aresta.getV2());\r\n\t\t}\r\n\r\n\t\treturn numVertices == verticesVisitados.size();\r\n\t}",
"public boolean addVertex(T vert);",
"public void setStartVertex(int s) {\n\t\tstartVertex = s;\n\t}",
"@Override\n public boolean contains(V vertex)\n {\n if (vertex.equals(null)){\n throw new IllegalArgumentException();\n }\n return graph.containsKey(vertex);\n }",
"public boolean DFS_Vist(int vertex ,LinkedList <Integer>adjacencyListArray [],int numofCourses){\n color[vertex] =1;\n start[vertex] = ++time;\n // find all the adjacent vertices in the prerequestie array\n LinkedList<Integer> adjacentVertices = adjacencyListArray[vertex];\n for(Integer v : adjacentVertices){\n // if the color of the adjacent vertex is gray that means it is back edge\n // also it means that cycle exists thus no courses can be completed\n if(color[v] == 1){\n return false;\n }\n if(color[v] == 0 && !DFS_Vist(v,adjacencyListArray,numofCourses) ){\n // if the vertex is unexplored explore the vertex\n pred[v] =vertex;\n return false;\n }\n }\n finish[vertex] =++time;\n topologicalSortOrder.add(vertex);\n // since vertex is completely explored and all the adjacent vertices are explored change the color to black\n color[vertex] =2;\n return true;\n }",
"public boolean addVertex(V vertex);",
"public boolean addVertex(V vertex);",
"static boolean isBipartite(int graph[][], int num_vertices)\n {\n int color[] = new int[num_vertices];\n //-1 means uncolored, 0 is red, 1 is black\n for (int i=0; i < num_vertices; i++)\n color[i] = -1;\n color[0] = 1;\n\n //queue of vertex numbers\n LinkedList<Integer> queue = new LinkedList<>();\n //start at vertex 0 because our graph is connected we can always start at\n //vertex 0\n queue.add(0);\n\n //while vertices in queue\n while (queue.size() != 0)\n {\n //deque color of first vertex in queue;\n int u = queue.poll();\n for (int i = 0; i < num_vertices; i++)\n {\n //if edge exists and vertex is uncolored\n if ( (graph[u][i] == 1) && (color[i] == -1) )\n {\n //color red if uncolored\n color[i] = 1 - color[u];\n queue.add(i);\n }\n //if edge exists an the color is same as the color of the polled vertex\n else if ( (graph[u][i] == 1) && (color[i] == color[u]) )\n return false;\n }\n }\n return true;\n }",
"public boolean hasVertices() {\n if (vertices != null) {\n return vertices.length > 0;\n }\n return false;\n }",
"public boolean isSetVertexOrigin() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __VERTEXORIGIN_ISSET_ID);\n }",
"private boolean checkSharedVertex(Segment s1, Segment s2){\n\t\tdouble wp1x = s1.w1.getX();\n\t\tdouble wp1y = s1.w1.getY();\n\t\tdouble wp2x = s1.w2.getX();\n\t\tdouble wp2y = s1.w2.getY();\n\t\tdouble wp3x = s2.w1.getX();\n\t\tdouble wp3y = s2.w1.getY();\n\t\tdouble wp4x = s2.w2.getX();\n\t\tdouble wp4y = s2.w2.getY();\n\n\t\tif (((wp1x == wp3x && wp1y == wp3y) || (wp1x == wp4x && wp1y == wp4y)) \n\t\t|| ((wp2x == wp3x && wp2y == wp3y) || (wp2x == wp4x && wp2y == wp4y)))\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"public boolean isConnected() {\n\t\tif (vertices.size() == 0)\n\t\t\treturn false;\n\n\t\tif (vertices.size() == 1)\n\t\t\treturn true;\n\n\t\t// determine if it is connected by using a wave\n\t\tHashSet<E> waveFront = new HashSet<>();\n\t\tHashSet<E> waveVisited = new HashSet<>();\n\n\t\t// grab the first element for the start of the wave\n\t\tE first = vertices.iterator().next();\n\t\t\n\n\t\twaveFront.add(first);\n\n\t\t// continue until there are no more elements in the wave front\n\t\twhile (waveFront.size() > 0) {\n\t\t\t// add all of the wave front elements to the visited elements\n\t\t\twaveVisited.addAll(waveFront);\n\t\t\t\n\t\t\t// if done break out of the while\n\t\t\tif (waveVisited.size() == vertices.size())\n\t\t\t\tbreak;\n\n\t\t\t// grab the iterator from the wave front\n\t\t\tIterator<E> front = waveFront.iterator();\n\n\t\t\t// reset the wave front to a new array list\n\t\t\twaveFront = new HashSet<>();\n\n\t\t\t// loop through all of the elements from the front\n\t\t\twhile (front.hasNext()) {\n\t\t\t\tE next = front.next();\n\n\t\t\t\t// grab all of the neighbors to next\n\t\t\t\tList<E> neighbors = neighbors(next);\n\n\t\t\t\t// add them to the wave front if they haven't been visited yet\n\t\t\t\tfor (E neighbor : neighbors) {\n\t\t\t\t\tif (!waveVisited.contains(neighbor))\n\t\t\t\t\t\twaveFront.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// return whether all of the nodes have been visited or not\n\t\treturn waveVisited.size() == vertices.size();\n\t}",
"private void depthFirstTraversalWithRecursion(final int startPoint, final boolean[] isVerticesVisited) {\n\t\tisVerticesVisited[startPoint] = true;\n\t\tSystem.out.print(startPoint + \" \");\n\t\tIterator<Integer> edgeIterator = adjacencyList[startPoint].listIterator();\n\n\t\tint vertice;\n\t\twhile (edgeIterator.hasNext()) {\n\t\t\tvertice = edgeIterator.next();\n\t\t\tif (!isVerticesVisited[vertice]) {\n\t\t\t\tdepthFirstTraversalWithRecursion(vertice, isVerticesVisited);\n\t\t\t}\n\t\t}\n\t}",
"protected int indexOf (E vertex)\n {\n int indexOfVertex = -1;\n for (int index = 0; index <= lastIndex; index++)\n {\n if (vertex.equals(vertices[index]))\n {\n indexOfVertex = index;\n break;\n }\n }\n\n return indexOfVertex;\n }",
"boolean newVertex() {\n if (next == null) {\n return false;\n }\n System.arraycopy(next, 0, simp[worst], 0, numVertices);\n return true;\n }",
"public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }",
"public boolean isGoal(Vertex v, ArrayList<Vertex> vertices) {\n for (int i = 0; i < vertices.size(); i++) {\n for (int k = 0; k < vertices.get(i).neighbors.size(); k++) {\n if (vertices.get(i).neighbors.get(k).color == vertices.get(i).color) {\n return false;\n }\n }\n }\n return true;\n }",
"public TransactionBuilder checkInternalVertexExistence();",
"int getVertices();",
"boolean addVertex(V v);",
"@Test\n\tpublic void addVertexTest() {\n\t\tgraph.addVertex(A);\n\t\tgraph.addVertex(B);\n\t\tgraph.addVertex(C);\n\t\tgraph.addVertex(D);\n\t\tassertEquals(4, graph.vertices().size());\n\t\tassertTrue(graph.vertices().contains(A));\n\t\tassertTrue(graph.vertices().contains(B));\n\t\tassertTrue(graph.vertices().contains(D));\n\t\tassertFalse(graph.addVertex(B)); // the graph has already have the vertex B, so assert false here.\n\t}",
"@Test\n void test08_getAllAdjacentVertices() {\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"a\", \"c\"); // add two edges\n\n List<String> check = new ArrayList<>();\n check.add(\"b\");\n check.add(\"c\"); // create mock up adjacent list\n\n if (!check.equals(graph.getAdjacentVerticesOf(\"a\"))) { // checks if both are same\n fail(\"graph didn't record adjacent vertices correctly\");\n }\n }",
"public static boolean isAllVertexConnected(ArrayList<Edge>[] graph)\n {\n int count = 0;\n int n = graph.length;\n boolean[] vis = new boolean[n];\n\n for(int v = 0; v < n; v++) {\n if(vis[v] == false) {\n count++;\n\n //if number of connected components is greater than 1 then graph is not connected\n if(count > 1) {\n return false;\n }\n gcc(graph, v, vis);\n }\n }\n return true;\n\n }",
"public int getVertexCount();",
"@Test\r\n void remove_nonexistent_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(\"D\");\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }",
"public boolean addVertex(Vertex vertex)\n\t{\n\t\tVertex current = this.vertices.get(vertex.getLabel());\n\t\tif (current != null)\n\t\t{\n\t\t\tcurrent.visit();//if vertex exists, increment visits\n\t\t\t\n\t\t\t//add edge between vertices\n\t\t\taddEdge(last,current);\n\t\t\t//overwrite last vertex\n\t\t\tlast = current;\n\t\t\t\n\t\t\treturn false;//vertex not added\n\t\t\t\n\t\t}\n\t\tvertices.put(vertex.getLabel(), vertex);\n\t\t//track last vertex to add edge\n\t\tif(last == null)//first vertex?\n\t\t{\n\t\t\tlast = vertex;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//add edge between vertices\n\t\t\taddEdge(last,vertex);\n\t\t\t//overwrite last vertex\n\t\t\tlast = vertex;\n\t\t}\n\t\treturn true;//vertex was added\n\t\t\n\t}",
"public void testCreateAndSetOnSameVertexShouldCreateOnlyVertexOnly() {\n }",
"public boolean containsVertex(Vertex vertex)\n\t{\n\t\treturn this.vertices.get(vertex.getLabel()) != null;\n\t}",
"public abstract int getVertexCount();",
"public int inDegree(int vertex) {\n int count = 0;\n//your code here\n for(int i=0; i<adjLists.length; i++){\n if(i==vertex){ continue;}\n if(isAdjacent(i,vertex)){\n count++;\n continue;\n }\n }\n return count;\n }",
"public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }",
"void Explore(int vertex){\n // first mark it as true as it has been visited\n visited[vertex]=true;\n\n //now make the pre at the counterPre index this vertex\n pre[counterPre] = vertex;\n // also increase the counterPre for next iteration\n counterPre+=1;\n\n // do exploration\n // using Iterator to iterate the adjList\n Iterator<Integer> i = adjList[vertex].listIterator();\n while(i.hasNext()){\n int ver = i.next();\n\n // check is it visited or not if not then again explore that ver\n if (visited[ver]==false){\n Explore(ver);\n }\n }\n }",
"public boolean containsVertex(String node) {\n\t\treturn adj_list.containsKey(node);\n\t}",
"public void breadthFirstTraversal(final int startPoint) {\n\t\tfinal boolean[] isVerticesVisited = new boolean[adjacencyList.length];\n\t\tfinal Queue<Integer> queue = new LinkedList<>();\n\n\t\tisVerticesVisited[startPoint] = true;\n\t\tqueue.add(startPoint);\n\n\t\tint selectedVertice;\n\t\tint vertice;\n\t\twhile (!queue.isEmpty()) {\n\t\t\tselectedVertice = queue.poll();\n\n\t\t\tSystem.out.print(selectedVertice + \" \");\n\n\t\t\tIterator<Integer> edgeIterator = adjacencyList[selectedVertice].listIterator();\n\n\t\t\twhile (edgeIterator.hasNext()) {\n\t\t\t\tvertice = edgeIterator.next();\n\t\t\t\tif (!isVerticesVisited[vertice]) {\n\t\t\t\t\tqueue.add(vertice);\n\t\t\t\t\tisVerticesVisited[vertice] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setStartVertex(int v){\n if (v < vertexCount && v >= 0){\n startVertex = v;\n } else {\n throw new IllegalArgumentException(\"Cannot set iteration start vertex to \" + v + \".\");\n }\n }",
"public static boolean verifyGraph(Graph<V, DefaultEdge> g)\n {\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n if (v.color == -1)\n {\n System.out.println(\"Did not color vertex \" + v.getID());\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n for (V neighbor : neighbors)\n {\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n return false;\n }\n if (!verifyColor(g, v))\n {\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n for (V neighbor : neighbors)\n {\n if (v.color == neighbor.color)\n {\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n }\n return false;\n }\n }\n return true;\n }",
"public void testEdgesSet_ofVertices() {\n System.out.println(\"edgesSet\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Set<Edge<Integer>> set = graph.edgesSet(new Integer(i), new Integer(j));\n\n if ((i + j) % 2 == 0) {\n Assert.assertEquals(set.size(), 1);\n } else {\n Assert.assertEquals(set.size(), 0);\n }\n }\n }\n }",
"public static boolean hasPath(int[][] array, int vertices, int src, int dest) {\n var graph = new Graph(array, vertices);\n var visited = new boolean[vertices];\n return hasPath(graph, src, dest, visited);\n }",
"Collection<? extends Subdomain_group> getIsVertexOf();",
"@Test\n void test03_addEdgeBetweenVerticesWhichDontExist() {\n graph.addEdge(\"a\", \"b\");\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates mock up vertex list\n if (!graph.getAllVertices().equals(vertices)) { // compares vertices list\n fail(\"Graph didn't add the vertices correctly\");\n }\n List<String> adjOfA = new ArrayList<>();\n adjOfA.add(\"b\"); // creates mock up adjacent list\n if (!graph.getAdjacentVerticesOf(\"a\").equals(adjOfA)) { // compares adjacent lists\n fail(\"Graph didn't correctly place adjacent vertices\");\n }\n }",
"boolean canPlaceCity(VertexLocation vertLoc);",
"@Test\n void testAddVertexGraph() {\n Assertions.assertTrue(graph.addVertex(v1));\n Assertions.assertTrue(graph.containsVertex(v1));\n Assertions.assertTrue(checkInv());\n }",
"public void setStartVertex(int v){\r\n if (v < myVertexCount && v >= 0){\r\n myStartVertex = v;\r\n } else {\r\n throw new IllegalArgumentException(\"Cannot set iteration start vertex to \" + v + \".\");\r\n }\r\n }",
"public int getStartVertex() {\n\t\treturn startVertex;\n\t}",
"public void setStartVertex(int v){\n if (v < myVertexCount && v >= 0){\n myStartVertex = v;\n } else {\n throw new IllegalArgumentException(\"Cannot set iteration start vertex to \" + v + \".\");\n }\n }",
"public boolean isStartingVertexCity() {\r\n\t\t\treturn (getDegrees() == ZERO_DEGREE);\r\n\t\t}",
"@Test \r\n void insert_two_vertexs_then_create_edge(){\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }",
"public boolean IsConnected() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tint counter = 0;\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcounter++;\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn counter == 1;\r\n\t}",
"public boolean isEmpty()\n\t{\n\t\treturn vertices.isEmpty();\n\t}",
"@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public int getNumVertices();",
"public abstract boolean hasEdge(int from, int to);",
"@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }",
"public Object getVertex(){\r\n return this.vertex;\r\n }",
"@Test\n public void testVertices() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v4id = new Vertex (4, \"E\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 5);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 7);\n Edge<Vertex> e3 = new Edge<>(v1, v4, 9);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n assertFalse(g.addVertex(v4id));\n\n Set<Vertex> expectedVertices = new HashSet<>();\n expectedVertices.add(v1);\n expectedVertices.add(v2);\n expectedVertices.add(v3);\n expectedVertices.add(v4);\n\n assertEquals(expectedVertices, g.allVertices());\n\n Assert.assertTrue(g.remove(v1));\n\n }"
] | [
"0.7381834",
"0.6840287",
"0.6754384",
"0.65610445",
"0.6509061",
"0.644279",
"0.62971264",
"0.6294056",
"0.6244583",
"0.62431043",
"0.62122846",
"0.6185793",
"0.5978293",
"0.5978293",
"0.59199685",
"0.5914645",
"0.5897775",
"0.5876532",
"0.5875912",
"0.5869836",
"0.5851418",
"0.5834242",
"0.58327204",
"0.5809589",
"0.5789482",
"0.57863235",
"0.57727444",
"0.57695955",
"0.57543576",
"0.5739323",
"0.57204545",
"0.5689749",
"0.56835717",
"0.56686074",
"0.5665601",
"0.5662737",
"0.56571615",
"0.5650398",
"0.5641234",
"0.5631664",
"0.561629",
"0.5611446",
"0.56074893",
"0.56003255",
"0.55878663",
"0.55832523",
"0.55763394",
"0.55622417",
"0.5561182",
"0.55560935",
"0.55511576",
"0.5550077",
"0.5550077",
"0.5547737",
"0.5540184",
"0.55397797",
"0.5538144",
"0.5537092",
"0.5534984",
"0.55344105",
"0.553105",
"0.5524974",
"0.55228823",
"0.55228436",
"0.5506858",
"0.5473275",
"0.54669464",
"0.54624754",
"0.5462133",
"0.5448765",
"0.5442676",
"0.5434404",
"0.54212976",
"0.5415027",
"0.5409612",
"0.5397229",
"0.53958404",
"0.53815675",
"0.5381517",
"0.53658444",
"0.5352502",
"0.53500754",
"0.5344386",
"0.534",
"0.5337943",
"0.53330284",
"0.5331487",
"0.53298634",
"0.5327002",
"0.5319589",
"0.53066707",
"0.5301802",
"0.52794325",
"0.52750313",
"0.52733827",
"0.5257405",
"0.5256712",
"0.5248558",
"0.52392906",
"0.5234843",
"0.522398"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
final String toEmail=email.getText().toString();
final String toDescr=description.getText().toString();
final String[] args={toDescr,toEmail};
new EndpointsTask().execute(args);
} | {
"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 |
Spring Data dao for the Visiteur entity. | @SuppressWarnings("unused")
@Repository
public interface VisiteurRepository extends JpaRepository<Visiteur, Long> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface VisitRepository extends CrudRepository<Visit, Long> {\n}",
"public interface VedioDao {\n void addVedio(Vedio vedio);\n\n void deleteVedio(Vedio news);\n\n int findCountVedioByCondition(int typeId, String vedioKey);\n\n List<Vedio> findVedioByCondition(int begin, int pageCount, int typeId, String vedioKey);\n\n void deleteMoreVedio(String[] checkVedioIDs);\n \n Vedio find(int vedio_id);\n}",
"@Repository\npublic interface MenuDao {\n\n List<Menu> selectMenu();\n}",
"public interface VillageDao extends CrudDao<Village> {\n Village getById(String id);\n Village getByCoordinates(short xCoort, short yCoord);\n Village getByName(String name);\n}",
"@Repository\npublic interface SupergruppoDAO extends CrudRepository<Supergruppo, Integer> {\n List<Supergruppo> findAllByPersone_id(Integer idPersona);\n}",
"@Repository\r\npublic interface TrafficDao {\r\n\r\n List<TrafficMenu> getMenuByPIdIsNull();\r\n\r\n List<TrafficMenu> getMenuByPId(Long pid);\r\n\r\n int addTrafficMenu(TrafficMenu trafficMenu);\r\n\r\n int updateTrafficMenu(TrafficMenu trafficMenu);\r\n\r\n int deleteTrafficMenu(Long id);\r\n\r\n TrafficContent findContentByTId(Long tid);\r\n\r\n int saveTrafficContent(TrafficContent trafficContent);\r\n\r\n int updateTrafficContent(TrafficContent trafficContent);\r\n}",
"public interface SideEntityDao extends CrudRepository<SideEntity, Long> {\n\n\tSet<SideEntity> findAll();\n\n}",
"public interface GuruDao {\n public int findTotal();\n public int insertGuru(@Param(\"guru\") Guru guru);\n public int updateGuru(@Param(\"guru\") Guru guru);\n public Guru findGuru(@Param(\"context\") String context);\n public List<Guru> findByPage(@Param(\"start\") int start,@Param(\"rows\")int rows);\n}",
"public interface SfopEquiAlarEnviDAO extends CrudRepositoryEnvi<EnviSfopEquiAlar, EnviSfopEquiAlarPK> {\n\n\t\n}",
"@Repository\n@Transactional\npublic interface MenuDao extends CrudRepository<Menu, Integer> {\n\n}",
"public interface VisitLineDao extends BaseDao<VisitLine, Long> {\n\n List<VisitLineListModel> getAllVisitLineListModel();\n\n List<VisitLineListModel> getAllVisitLineListModel(Date from, Date to);\n\n List<LabelValue> getAllVisitLineLabelValue();\n\n VisitLineListModel getVisitLineListModelByBackendId(long visitlineBackendId);\n\n VisitLine getVisitLineByBackendId(Long backendId);\n\n}",
"@Override\r\n\tpublic void addDao(Visite visite) {\r\n\t\t// Creation de la session\r\n\t\tSession s = sf.getCurrentSession();\r\n\r\n\t\ts.save(visite);\r\n\t\t\r\n\t}",
"@Repository\n@Transactional\npublic interface PointOfInterestDao extends CrudRepository<PointOfInterest, Integer> {\n}",
"@Repository\npublic interface ImaginationDao {\n void saveIma(Imagination imagination);\n List<Imagination> findAll();\n Imagination findOne();\n\n\n}",
"public interface DistrictSanteDao extends ImogBeanDao<DistrictSante> {\n\n\t/* relation dependencies */\n\n}",
"@Repository\npublic interface SuratDisposisiDao extends JpaRepository<SuratDisposisi, String> {\n void deleteByNoSurat(String noSurat);\n List<SuratDisposisi> findByKdSuratPenugasanAndJenisSuratPenugasan(String kdSuratPenugasan, Integer jenisSuratPenugasan);\n}",
"public CiviliteDao() {\r\n\t\tsuper();\r\n\t}",
"public interface MaintenanceDao extends JpaRepository<Maintenance, Long> {\n}",
"@Dao\npublic interface IngredienteDao extends BaseDao<Ingrediente> {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(Ingrediente entity);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long[] insertAll(List<Ingrediente> entities);\n\n @Update(onConflict = OnConflictStrategy.REPLACE)\n void update(Ingrediente entity);\n\n @Delete\n void delete(Ingrediente entity);\n\n @Query(\"SELECT * FROM Ingrediente\")\n List<Ingrediente> getAll();\n\n @Query(\"SELECT * FROM Ingrediente WHERE deletedAt IS NULL AND localChange = 1\")\n List<Ingrediente> getLocallyChanged();\n\n @Query(\"SELECT Count(*) FROM Ingrediente WHERE deletedAt IS NULL\")\n int getCountAll();\n\n @Query(\"SELECT Count(*) FROM Ingrediente WHERE deletedAt IS NULL AND localChange = 1\")\n int getCountChanged();\n\n @Query(\"SELECT * FROM Ingrediente WHERE id = :id AND deletedAt IS NULL\")\n Ingrediente getById(int id);\n\n @Query(\"DELETE FROM Ingrediente WHERE id = :id\")\n void deleteById(int id);\n}",
"@Repository\npublic interface AdhesionDao extends JpaRepository<Adhesion, Integer> {\n\n\t/**\n\t * Methode de selection de {@link Adhesion} avec l'id de {@link Utilisateur} et\n\t * l'archivage\n\t * \n\t * @param idUtilisateur\n\t * @param archive\n\t * @return {@link Adhesion}\n\t */\n\t@Query(\"Select a from Adhesion a where a.utilisateur.idUtilisateur = :idUtilisateur AND a.archive = :archive\")\n\tpublic Adhesion findByIdUtilisateurAndArchive(@Param(\"idUtilisateur\") Integer idUtilisateur,\n\t\t\t@Param(\"archive\") boolean archive);\n\n\t/**\n\t * Methode de selection de {@link Adhesion} avec le nom de {@link Utilisateur}\n\t * \n\t * @param nomUtilisateur\n\t * @return {@link Adhesion}\n\t */\n\t@Query(\"Select a from Adhesion a where a.utilisateur.nom = :nomUtilisateur \")\n\tpublic Adhesion findByNomUser(@Param(\"nomUtilisateur\") String nomUtilisateur);\n\n\t/**\n\t * Methode de selection de {@link Adhesion} avec l'archivage\n\t * \n\t * @param archive\n\t * @return liste de {@link Adhesion}\n\t */\n\tpublic List<Adhesion> findByArchive(boolean archive);\n\n\t/**\n\t * Methode de selection de {@link Adhesion} avec l'id de {@link Parcelle} et\n\t * l'archivage\n\t * \n\t * @param idParcelle\n\t * @param archive\n\t * @return {@link Adhesion}\n\t */\n\tpublic Optional<Adhesion> findByParcelleIdParcelleAndArchive(Integer idParcelle, boolean archive);\n\n}",
"@SuppressWarnings(\"unused\")\npublic interface SuperficieRepository extends JpaRepository<Superficie,Long>, QueryDslPredicateExecutor<Superficie> {\n\n\tList<Superficie> findByDomandaId(Long id);\n\tPage<Superficie> findByDomandaId(Long id,Pageable pageable);\n}",
"@Repository\npublic interface MenuDao {\n\n public int insertMenu(Menu menu);\n\n public int deleteMenu(Integer menuId);\n\n public int updateMenu(Menu menu);\n\n public List<Menu> selectAllMenuOne();\n\n public List<Menu> selectAllMenuByOne(Integer menuId);\n}",
"@Repository\n\npublic interface ProcesoDAO extends JpaRepository<Proceso, Long> {\n\n}",
"public interface FakturaTekstVDAO extends DAO<FakturaTekstV> {\r\n\t/**\r\n\t * Finner tekster tilhørende faktura\r\n\t * \r\n\t * @param fakturaId\r\n\t * @return tekster\r\n\t */\r\n\tList<FakturaTekstV> findByFakturaId(Integer fakturaId);\r\n}",
"@Override\n\tpublic CrudRepository<Sede, Integer> getDao() {\n\t\treturn sedeDaoAPI;\n\t}",
"@Dao\npublic interface ScenicPicDao {\n @Insert\n void insertScenicPic(ScenicPic scenicPic);\n\n @Query(\"DELETE from ScenicPic where scenic_id=:scenicId\")\n void deleteAllScenicPic(int scenicId);\n\n //return live data when data be changed, list update automatically\n @Query(\"select * from ScenicPic where scenic_id=:scenicId\")\n List<ScenicPic> getScenicPicById(int scenicId);\n}",
"public interface PriceDao extends JpaRepository<Price, Integer> {\n}",
"@Repository (\"administradorDao\")\n\npublic interface AdministradorDAO extends CrudRepository<Administrador, Long>{\n\n}",
"public ISegAuditoriaDAO getSegAuditoriaDAO() {\r\n return new SegAuditoriaDAO();\r\n }",
"@Repository\npublic interface LandUriRepository extends CrudRepository<LandUri, Long>{\n}",
"public interface ILivroDAO {\n\n int save(Livro livro);\n\n int update(Livro livro);\n\n int remove(Long id);\n\n List<Livro> findAll();\n}",
"@Dao\npublic interface FSalesmanDao {\n /**\n * @param fSalesman\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FSalesman fSalesman);\n @Update\n void update(FSalesman fSalesman);\n @Delete\n void delete(FSalesman fSalesman);\n\n\n @Query(\"DELETE FROM fSalesman\")\n void deleteAllFSalesman();\n\n @Query(\"SELECT * FROM fSalesman \")\n LiveData<List<FSalesman>> getAllFSalesmanLive();\n\n @Query(\"SELECT * FROM fSalesman \")\n List<FSalesman> getAllFSalesman();\n\n\n @Query(\"SELECT * FROM fSalesman WHERE id = :id \")\n List<FSalesman> getAllById(int id);\n\n @Query(\"SELECT * FROM fSalesman WHERE fdivisionBean = :id \")\n List<FSalesman> getAllByDivision(int id);\n\n}",
"@Repository\npublic interface TarjetaDeCreditoDao extends JpaRepository<TarjetaDeCredito, Integer> {\n\n}",
"public interface PurchPaymentDao extends JpaRepository<PurchPayment, Serializable> {\n}",
"@Repository\n\npublic interface Z3950Dao extends JpaRepository<Z3950, Long>{\n\n\t/**\n\t * 通过学校查找z3950\n\t * @param schoolId\n\t * @return\n\t */\n\t@Query(\"select t from Z3950 t where t.schoolId=?1 or t.schoolId is null\")\n\tpublic List<Z3950> findBySchool(Long schoolId);\n\t\n\t/**\n\t * 通过学校Id查找\n\t * @param schoolId\n\t * @param pageable\n\t * @return\n\t */\n\t@Query(\"select t from Z3950 t where t.schoolId=?1\")\n\tpublic Page<Z3950> findBySchoolId(Long schoolId,Pageable pageable);\n\t\n\t/**\n\t * 查找公司下的Z3950\n\t * @return\n\t */\n\t@Query(\"select t from Z3950 t where t.schoolId is null\")\n\tpublic Page<Z3950> findNoSchool(Pageable pageable);\n\t\n\t/**\n\t * 通过学校id和用户id查找\n\t * @param schoolId\n\t * @param sysUserId\n\t * @return\n\t */\n\t@Query(\"select t from Z3950 t where t.schoolId=?1 and t.sysUser.id=?2\")\n\tpublic Z3950 findBySchoolIdAndUserId(Long schoolId,Long sysUserId);\n}",
"@Repository\npublic interface PaymentTypeDAO extends BaseDAO<PaymentTypeVo>{\n}",
"StockDao getStockDao();",
"public interface PxshenbaoDao extends JpaRepository<Pxshenbao,Integer> {\n}",
"@Repository\npublic interface AtletaRepository extends JpaRepository<Atleta, Long> {\n\n}",
"public interface IAdresseDao {\n public List<Adresse> findAllAdresses();\n\n public Adresse findAdresseById(int idAdresse);\n\n public List<Adresse> findAdresseByRue(String rue);\n \n public List<Adresse> findAdresseByIdUtilisateur(int idUtilisateur);\n \n public Adresse findAdresseFacturationByIdUtilisateur(int idUtilisateur);\n\n public Adresse createAdresse(Adresse adresse);\n\n public Adresse updateAdresse(Adresse adresse);\n\n public boolean deleteAdresse(Adresse adresse);\n}",
"public interface RegionDao {\n Long create(Region reg);\n Region read(Long id);\n void update(Region reg);\n void delete(Region reg);\n List<Region> findAll();\n List<Region> findForName(String name);\n List<Region> findForIndeces(int start,int end);\n List<Region> getPorcies(int count_el);\n}",
"public interface DeliveryDAO extends CrudRepository<Delivery, Long> {\n}",
"public interface GenereicDaoAPI extends CrudRepository<Producto, Long> {\n\n}",
"@Repository\npublic interface CarDao extends JpaRepository<Car, Integer> {\n}",
"@Repository\npublic interface InformDao {\n void add(Inform inform);\n List<Inform> queryAll();\n void update();\n List<Inform> queryByUsername(String username);\n}",
"public interface MemberDao extends JpaRepository<Member, Long>{\n}",
"@Dao\npublic interface GardensDao {\n @Query(\"SELECT * FROM gardens\")\n List<Garden> getAll();\n\n @Query(\"UPDATE gardens SET status = 'saved' WHERE propid = :id\")\n void saveGarden(String id);\n\n @Insert(onConflict = REPLACE)\n void insertGarden(Garden garden);\n\n @Insert(onConflict = REPLACE)\n void insertAllGardens(List<Garden> garden);\n\n @Query(\"SELECT * FROM gardens where propid LIKE :id\")\n Garden findGardenByID(String id);\n\n @Query(\"SELECT * FROM gardens where status LIKE 'saved'\")\n List<Garden> getSaved();\n\n @Delete\n void deleteGarden(Garden garden);\n\n @Delete\n void deleteGardenList(List<Garden> gardenList);\n\n @Query(\"SELECT COUNT(*) from gardens\")\n int countGardens();\n}",
"public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}",
"public interface DaoRegion {\n Long create(Region region);\n Region read(Long id);\n void update(Region region);\n void delete (Region region);\n List<Region> findAll();\n List<Region> findRegionByName(Region region);\n List<Region> findRegionById(Long id1, Long id2);\n List<Region> RegionPortion(int id, int size);\n}",
"public interface WayBillDao extends JpaRepository<WayBill, Integer>{\n}",
"@Dao\npublic interface FParamDiskonItemVendorDao {\n /**\n * @param fParamDiskonItemVendor\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Update\n void update(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Delete\n void delete(FParamDiskonItemVendor fParamDiskonItemVendor);\n\n\n @Query(\"DELETE FROM fParamDiskonItemVendor\")\n void deleteAllFParamDiskonItemVendor();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n LiveData<List<FParamDiskonItemVendor>> getAllFParamDiskonItemVendorLive();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n List<FParamDiskonItemVendor> getAllFParamDiskonItemVendor();\n\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE id = :id \")\n List<FParamDiskonItemVendor> getAllById(int id);\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE fdivisionBean = :id \")\n List<FParamDiskonItemVendor> getAllByDivision(int id);\n\n}",
"public interface GvEstadoDocumentoDAO extends GenericOracleAsignacionesDAO<GvEstadoDocumento, Long>{\n public GvEstadoDocumento buscarPorCodigo(long idEstadoDocumento);\n public GvEstadoDocumento buscarPorNombre(String descripcion);\n\tpublic List<GvEstadoDocumento> buscarGvEstadoDocumentos();\n\tpublic void guardarGvEstadoDocumento(GvEstadoDocumento gvEstadoDocumento) throws EducacionDAOException;\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DetalleOrdenRepository extends CrudRepository<DetalleOrden, Long> {\n\n\tList<DetalleOrden> findByIdOrdenIdOrden(Integer idOrden);\n}",
"public interface VisitedService {\n\n /**\n * Save a visited.\n *\n * @param visited the entity to save\n * @return the persisted entity\n */\n Visited save(Visited visited);\n\n /**\n * Get all the visiteds.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<Visited> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" visited.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<Visited> findOne(Long id);\n\n /**\n * Delete the \"id\" visited.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}",
"public interface ImagensEventoOnlineDestaqueRepository extends CrudRepository<ImagensEventoOnlineDestaque, Long> {\n\t\n\t@Query(\"select i from ImagensEventoOnlineDestaque i where i.id = :pid\")\n\tImagensEventoOnlineDestaque buscarPor(@Param(\"pid\") Long id);\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DemandeadhesionRepository extends JpaRepository<Demandeadhesion,Long> {\n\n Page<Demandeadhesion> findByStatut(Pageable pageable, Statut statut);\n\n List<Demandeadhesion> findByStatut(Statut statut);\n\n Page<Demandeadhesion> findByFamilleId(Pageable pageable, Long familleId);\n}",
"public interface IVendedor extends JpaRepository<Vendedor, Integer> {\n}",
"public interface GroupDao extends JpaRepository<Group,Long> {\n\n\n}",
"public interface MetricDayDao extends BaseDao<MetricDay> {\n List<MetricDay> queryByProjectIdList(Map<String, Object> params);\n\n List<MetricDay> findByProjectIds(List<String> idList);\n\n void insertDataByParentId(Map<String, Object> params);\n\n int deleteByProjectId(Map<String, Object> params);\n\n void batchUpdateByProjectNumAndDate(List<MetricDay> list);\n \n void batchUpdateShopSales(List<BsShopSales> list);\n\n int insertOrUpdateUserMetrics(MetricDay metricDay);\n \n int batchUpdateByMemberAndPotential(String runDate);\n \n List<MetricDay> queryMetricMonthByDate(Map<String, Object> params);\n \n List<MetricDay> queryMetricWeekByDate(Map<String, Object> params);\n \n List<BsShopSales> listShopSalesByDateList(List<String> dates);\n \n}",
"public interface BusinessDao extends JpaRepository<Business, Long> {\r\n}",
"public interface ServicoDao extends EntidadeDao<Servico> {\n Long contarTotalServicos();\n Long contarServicosStatus(StatusServico statusServico);\n @Override\n List<Servico> listar();\n\n List<Servico> listarServicos();\n public List<Servico> listarMeusServicos(Long id);\n public List<Servico> listarServicosEmAberto();\n Long servicoPorSetor(Long id);\n Servico BuscarPorId(Long id);\n void salvarLogServico(LogServico logServico);\n\n public void verificarConlusaoEAtualizar(Long id);\n\n Long meusServicos();\n Long contarPorSetor(Long id);\n List<Object[]> contarDeAteDataPorSetorDESC(LocalDate dtDe, LocalDate dtAte);\n List<Object[]> contarAPartirDePorSetorDESC(LocalDate dtDe);\n List<Object[]> contarAteDataPorSetorDESC(LocalDate dtAte);\n List<Object[]> contarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarDeAteDataPorSetorDESC(Long id, LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarAPartirDePorSetorDESC(Long id, LocalDate dtDe);\n List<Servico> filtrarAteDataPorSetorDESC(Long id, LocalDate dtAte);\n List<Servico> filtrarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n\n List<Servico> filtrarMaisRecentesPorSetor(Long id);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProfissionalSaudeRepository extends JpaRepository<ProfissionalSaude, Long> {\n}",
"public interface AdDao extends GenericDao<Ad, Long> {\n\n\t/**\n\t * Retourne toutes les publicité éligible\n\t * @param date\n\t * @return\n\t * @throws Exception\n\t */\n\tList<Ad> getAll(Date date)throws Exception;\n\n \n}",
"@Repository\npublic interface CountryDAO extends JpaRepository<Country, Integer> {\n\n /**\n * This method is used to get all countries.\n *\n * @return List\n * @see Country\n */\n @Query(\"select c from Country c order by c.name\")\n List<Country> getAllCountries();\n\n}",
"@Repository\npublic interface TbContentDao extends BaseDao<TbContent> {\n\n}",
"public interface StudentScoreDao extends JpaRepository<StudentScoreEntity, Long> {\n}",
"@Repository\npublic interface LoanCorporateForeignInvestment_DAO{\n @Insert(\"insert into LoanCorporateForeignInvestment(custCode,CreditCardNumber,InvesteeCompanyName,InvestmentAmount,InvestmentCurrency,OrganizationCode) \" +\n \"values (\" +\n \"#{custCode,jdbcType=VARCHAR},\" +\n \"#{CreditCardNumber,jdbcType=VARCHAR},\" +\n \"#{InvesteeCompanyName,jdbcType=VARCHAR},\" +\n \"#{InvestmentAmount,jdbcType=VARCHAR},\" +\n \"#{InvestmentCurrency,jdbcType=VARCHAR},\" +\n \"#{OrganizationCode,jdbcType=VARCHAR}\" +\n \")\")\n @ResultType(Boolean.class)\n public boolean save(LoanCorporateForeignInvestment_Entity entity);\n\n @Select(\"SELECT COUNT(*) FROM LoanCorporateForeignInvestment Where CustCode=\"+\"#{custCode,jdbcType=VARCHAR}\")\n @ResultType(Integer.class)\n Integer countAll(String custCode);\n\n @Select(\"SELECT * FROM LoanCorporateForeignInvestment Where CustCode=\"+\"#{custCode,jdbcType=VARCHAR}\"+\" Order By Id Asc\")\n @ResultType(LoanCorporateForeignInvestment_Entity.class)\n List<LoanCorporateForeignInvestment_Entity> findAll(String custCode);\n\n @Update(\"Update LoanCorporateForeignInvestment \" +\n \"SET \" +\n \"custCode=\" + \"#{custCode,jdbcType=VARCHAR},\"+\n \"CreditCardNumber=\" + \"#{CreditCardNumber,jdbcType=VARCHAR},\" +\n \"InvesteeCompanyName=\" + \"#{InvesteeCompanyName,jdbcType=VARCHAR},\" +\n \"InvestmentAmount=\" + \"#{InvestmentAmount,jdbcType=VARCHAR},\" +\n \"InvestmentCurrency= \" + \"#{InvestmentCurrency,jdbcType=VARCHAR},\" +\n \"OrganizationCode= \" + \"#{OrganizationCode,jdbcType=VARCHAR}\" +\n \"Where Id=\" + \"#{Id,jdbcType=VARCHAR}\"\n )\n @ResultType(Boolean.class)\n boolean update(LoanCorporateForeignInvestment_Entity entity);\n\n @Delete(\"DELETE FROM LoanCorporateForeignInvestment Where Id=\"+\"#{Id,jdbcType=VARCHAR}\")\n boolean delete(String Id);\n}",
"@Dao\r\npublic interface IPointBusDAO {\r\n @Insert\r\n void save(PointBus pointBus);\r\n\r\n @Delete\r\n void delete(PointBus pointBus);\r\n\r\n @Query(\"SELECT * FROM pointBus\")\r\n List<PointBus> findAll();\r\n\r\n @Query(\"SELECT * FROM pointBus WHERE `key` like :key\")\r\n PointBus get(String key);\r\n}",
"@Transactional\npublic interface MenusDao extends CrudRepository<Menus, Long> {\n\n public Menus findBymenuId(Long menuId);\n\n}",
"@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}",
"@Repository\npublic interface AdviceDao extends BaseRepository<AdviceType, Integer> {\n}",
"public ProductosPuntoVentaDaoImpl() {\r\n }",
"public interface TScientificEntityDao {\n\n public Page<TScientificEntity> listRecordsByCondition(Page page);\n public List<TScientificEntity> getLists(Page.FilterModel condition);\n\n public String getNumber(int uer_id);\n\n}",
"@Dao\npublic interface ExpenseDao {\n\n @Query(\"SELECT * FROM expenses\")\n List<Expense> getExpenses();\n\n @Query(\"SELECT * FROM expenses WHERE id = :expenseId\")\n Expense getExpense(long expenseId);\n\n\n @Insert()\n long addExpense(Expense expense);\n\n @Update()\n void updateExpense(Expense expense);\n\n @Delete()\n void deleteExpense(Expense expense);\n\n @Insert()\n void addTwoExpenses(List<Expense> expenses);\n\n\n}",
"@Repository\npublic interface BrandDao extends BaseRepository<TBrand, Long> {\n}",
"@Repository\npublic interface WeatherAqiDao {\n /**\n * 根据参数查询AQI\n * @param selParams\n * @return\n */\n List<WeatherAQI> selectAqis(HashMap<String, Object> selParams);\n\n /**\n * 入库AQI\n * @param weatherAQI\n */\n void insert(WeatherAQI weatherAQI);\n\n /**\n * 更新AQI\n * @param weatherAQI\n */\n void update(WeatherAQI weatherAQI);\n\n /**\n * 根据id查询空气质量\n * @param params\n * @return\n */\n WeatherAQI selectById(Map<String, Object> params);\n}",
"@Repository\n@Transactional\npublic interface ScratcherGameSnapshotDao extends CrudRepository<ScratcherGameSnapshot, Integer> {\n}",
"@Repository\npublic interface UserStoryDao {\n\n boolean saveUserStory(UserStory userStory);\n\n boolean updateUserStory(UserStory userStory);\n\n boolean deleteUserStory(int id);\n \n boolean roseUserStoryTellCount(int id);\n\n UserStory getUserStoryById(int id);\n\n List<UserStory> getAllUserStoryByUserIdByPage(int userId, int visibility, int offset, int limit);\n\n int getUserStoryCountByUserId(int userId, int visibility);\n}",
"@Repository\npublic interface IGuestDao extends IBaseDao<Guest, Integer> {\n\n /**\n * 根据ip地址查找用户\n *\n * @param ip\n * @return\n */\n Guest findOneByIP(String ip);\n}",
"public static boolean testDaoLireVisiteur() {\n boolean ok = true;\n ArrayList<Visiteur> lesVisiteurs = new ArrayList<Visiteur>();\n try {\n lesVisiteurs = daoVisiteur.getAll();\n } catch (Exception ex) {\n ok = false;\n }\n System.out.println(\"liste des visiteurs\");\n for (Visiteur unVisiteur: lesVisiteurs){\n System.out.println(unVisiteur);\n }\n return ok;\n }",
"@Repository\npublic interface SimulationRepository extends CrudRepository<Simulation, Serializable> {\n\n}",
"@Repository\r\npublic interface TbContentCategoryDao extends BaseTreeDao<TbContentCategory> {\r\n\r\n}",
"@Repository\npublic interface LongueurRepository extends CrudRepository<Longueur, Long>, QuerydslPredicateExecutor<Longueur> {\n @Query(value = \"SELECT id FROM longueur WHERE voie_id = ?1\", nativeQuery = true)\n List<Long> findAllByVoieId(Long voieId);\n}",
"public interface EvenementRepository extends CrudRepository<Evenement, Integer> {\n\n}",
"public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}",
"@Dao\npublic interface sekolahDAO {\n\n @Query(\"SELECT * FROM Sekolah\")\n List<Sekolah>getAll();\n\n// @Query(\"SELECT * FROM Sekolah WHERE NPSN LIKE :NPSN AND nama_sekolah LIKE :nama_dusun AND bentuk_pendidikan LIKE :bentuk_pendidikan AND status_lembaga LIKE :status_lembaga AND sk_izin_operasional LIKE :sk_izin_operasional AND tanggal_sk_izin_operasional LIKE :tanggal_sk_izin_operasional\")\n// Sekolah findByName(Integer NPSN, String nama_sekolah, String bentuk_pendidikan, String status_lembaga, String sk_izin_operasional, Date tanggal_sk_izin_operasional);\n\n @Query(\"SELECT COUNT (NPSN) FROM Sekolah\")\n int getAllCount();\n\n @Query(\"UPDATE Sekolah SET alamat = :alamat, nama_dusun = :nama_dusun, provinsi = :provinsi, kecamatan = :kecamatan, kabupaten = :kabupaten, nomor_telpon = :nomor_telpon, email = :email\")\n void update(String alamat,String nama_dusun, String provinsi, String kecamatan, String kabupaten, Integer nomor_telpon, String email);\n\n @Insert\n void insertAll(Sekolah sekolah);\n\n @Delete\n public void deleteSekolah(Sekolah NPSN);\n\n @Update\n public void update(Sekolah sekolah);\n\n @Delete\n public void deleteAll(Sekolah user1, Sekolah user2);\n\n\n}",
"@Repository\npublic interface FoodClassifyDao {\n\n void insert(FoodClassify foodClassify);\n\n int delete(FoodClassify foodClassify);\n\n List<FoodClassify> queryAll(String openid);\n\n int queryExistName(FoodClassify foodClassify);\n\n int queryExistId(FoodClassify foodClassify);\n\n int updatePosition(FoodClassify foodClassify);\n\n int queryMaxSort(String openid);\n\n int updateName(FoodClassify foodClassify);\n}",
"@Dao\npublic interface PersistableItemDao {\n\n\n @Insert( onConflict = OnConflictStrategy.FAIL)\n Long insertEntity(PersistableItem entity);\n\n @Update\n void updateEntity(PersistableItem entity);\n\n @Delete\n void deleteEntity(PersistableItem entity);\n\n @Query(\"delete from persistableItem\")\n void deleteAllItems();\n\n @Query(\"Select * from persistableItem\")\n List<PersistableItem> getAllItems();\n\n @Query(\"Select * from persistableItem WHERE itemId = :itemId \"+\n \"AND itemColor = :itemColor \" +\"AND itemSize = :itemSize\")\n PersistableItem getItemByItemIdColorAndSize(String itemId,String itemColor,String itemSize);\n\n }",
"@Repository(\"userDao\")\npublic interface IUserDao extends IGenericDao<User, Long> {\n List<User> findByKullaniciAdi(String kullaniciAdi);\n}",
"public interface SliderDao {\n void addSlider(Slider slider);\n\n void editSlider(Slider slider);\n\n List<Slider> getAllSlider();\n\n Slider getSliderById(int sliderId);\n}",
"public interface GirosLinRepository extends JpaRepository<GirosLin,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelDressageHisRepository extends JpaRepository<LevelDressageHis, Long> {\n\n}",
"public interface DVDCategorieDAO {\n /**\n * This is the method to be used to initialize\n * database resources ie. connection.\n */\n public void setDataSource(DataSource ds);\n\n /**\n * This is the method to be used to create\n * a record in the Graduate table.\n */\n public void create(int id, DVD dvd, Categorie categorie);\n\n /**\n * This is the method to be used to list down\n * a record from the Graduate table corresponding\n * to a passed graduate id.\n */\n public DVDCategorie getDVDCategorie(int id);\n\n /**\n * This is the method to be used to list down\n * all the records from the Graduate table.\n */\n public List<DVDCategorie> listDVDCategorie();\n\n /**\n * This is the method to be used to delete\n * a record from the Graduate table corresponding\n * to a passed graduate id.\n */\n public void delete(Integer id);\n\n /**\n * This is the method to be used to update\n * a record into the Graduate table.\n */\n public void update(Integer id, DVD dvd, Categorie categorie);\n}",
"public ISegSucursalDAO getSegSucursalDAO() {\r\n return new SegSucursalDAO();\r\n }",
"public interface asalariadoRepository\r\nextends Repository<Asalariado,Integer> {\r\n void save(Asalariado asalariado);\r\n List<Asalariado> findAll();\r\n}",
"GenreDao getGenreDao();",
"public interface SupervisorDao {\n public Collection<Project> getProjectListBySupervisorId(int supervisorId);\n}",
"public interface ExpositionRepository extends JpaRepository<Exposition,Long> {\n\n}",
"@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto, Integer>{\n \t\n}",
"public interface EstadisticaSexoDao extends CrudRepository <EstadisticaSexo,Float> {\n}"
] | [
"0.64149433",
"0.6348477",
"0.62317723",
"0.6208416",
"0.6205174",
"0.61990166",
"0.6187787",
"0.6148388",
"0.60963017",
"0.60958034",
"0.6089602",
"0.608381",
"0.6059266",
"0.6057379",
"0.6012776",
"0.60087657",
"0.60036045",
"0.5996662",
"0.59536123",
"0.590783",
"0.59020543",
"0.58953637",
"0.5894486",
"0.5882928",
"0.5865735",
"0.58533025",
"0.5832923",
"0.58130276",
"0.5803803",
"0.5790183",
"0.5782589",
"0.5780208",
"0.5775582",
"0.57651484",
"0.57628435",
"0.57439005",
"0.57423383",
"0.57272625",
"0.5718768",
"0.57179034",
"0.5715787",
"0.5712488",
"0.57074136",
"0.5691081",
"0.5682705",
"0.5673977",
"0.566488",
"0.56611234",
"0.5660066",
"0.5653706",
"0.56525046",
"0.5635063",
"0.5632896",
"0.5627697",
"0.562565",
"0.5624254",
"0.5621793",
"0.5618193",
"0.561242",
"0.56107515",
"0.5609898",
"0.5607313",
"0.5607035",
"0.5603413",
"0.5602079",
"0.5600963",
"0.55927545",
"0.5584447",
"0.5583933",
"0.5583261",
"0.5580269",
"0.5575171",
"0.5574186",
"0.55691695",
"0.5569066",
"0.55651754",
"0.55647224",
"0.5560359",
"0.5555598",
"0.55553085",
"0.5552264",
"0.5549677",
"0.55489755",
"0.5541479",
"0.55380553",
"0.55342937",
"0.5533423",
"0.55308825",
"0.5521368",
"0.55195224",
"0.55187577",
"0.5515812",
"0.55141",
"0.5514001",
"0.5509636",
"0.5508839",
"0.5506549",
"0.55051124",
"0.5505094",
"0.55028474"
] | 0.6609944 | 0 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
TODO Autogenerated method stub | public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.itemAdd:
Intent intent = new Intent (this, Balances.class);
intent.putExtra("brain", this.brain);
startActivity(intent);
default:
return true;}
} | {
"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 |
Type your code here. | int main()
{
int a,t,sum1=0,sum2=0;
cin>>a;
while(a>0)
{
t=a%10;
if(t%2!=0)
{
sum1=sum1+t;
}
else
{
sum2=sum2+t;
}
a=a/10;
}
(sum1==sum2)?cout<<"Yes":cout<<"No";
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void generateCode()\n {\n \n }",
"@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}",
"CD withCode();",
"@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}",
"public void genCode(CodeFile code) {\n\t\t\n\t}",
"private void searchCode() {\n }",
"Code getCode();",
"public void generateCode() {\n new CodeGenerator(data).generateCode();\n }",
"public void code (String code) throws LuchthavenException\r\n\t{\r\n\t\tluchthaven.setCode(code);\r\n\t}",
"public abstract int code();",
"public void mo38117a() {\n }",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override public boolean isCodeTask() { return true; }",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"public Code() {\n\t}",
"public void mo5382o() {\n }",
"public interface Code {\n //运行结果编号\n Integer getCode();\n //运行结果描述\n String getDescription();\n String toString();\n\n}",
"public abstract String getFullCode();",
"void setCode(String code);",
"abstract protected void pre(int code);",
"public void mo9848a() {\n }",
"public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}",
"public static void main(String[] args) {\n\t// write your code here\n }",
"public void mo9241ay() {\n }",
"public static void main(String[] args) {\n\t\tBlockCode blockcode = new BlockCode();\n\t\t//blockcode.printName();\n\t\t\n\t\t}",
"public void exec(PyObject code) {\n }",
"java.lang.String getCode();",
"java.lang.String getCode();",
"public void generateCodeItemCode() {\n\t\tcodeItem.generateCodeItemCode();\n\t}",
"private void yy() {\n\n\t}",
"public void ganar() {\n // TODO implement here\n }",
"public void mo5248a() {\n }",
"public void mo3749d() {\n }",
"public void mo115188a() {\n }",
"public void mo21785J() {\n }",
"public static void main(String[] args) {\n\t\tSystem.out.print(\"This is added code\");\n\t\tSystem.out.print(\"This is added code from GitHub\");\n\n\t}",
"public interface CodeFormatter\n{\n}",
"@Override\n\tpublic void Coding() {\n\t\tBefore();\n\t\tcoder.Coding();\n\t\tEnd();\n\t}",
"public void mo97908d() {\n }",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"public void mo12930a() {\n }",
"public String getCode();",
"public String getCode();",
"public void mo9233aH() {\n }",
"Programming(){\n\t}",
"public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}",
"public void mo21795T() {\n }",
"@Override\n\tpublic void orgasm() {\n\t\t\n\t}",
"public void createCode(){\n\t\tsc = animationScript.newSourceCode(new Coordinates(10, 60), \"sourceCode\",\r\n\t\t\t\t\t\t null, AnimProps.SC_PROPS);\r\n\t\t \r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"1. Berechne für jede (aktive) Zeile und Spalte der Kostenmatrix\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" die Differenz aus dem kleinsten (blau) und zweit-kleinsten (lila)\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Element der entsprechenden Zeile/ Spalte.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"2. Wähle die Zeile oder Spalte (grün) aus bei der sich die größte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" Differenz (blau) ergab.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"3. Das kleinste Element der entsprechenden Spalte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" (bzw. Zeile) gibt nun die Stelle an, welche im\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Transporttableau berechnet wird (blau).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"4. Nun wird der kleinere Wert von Angebots- und\", null, 0, null); // 4\r\n\t\tsc.addCodeLine(\" Nachfragevektor im Tableau eingetragen.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"5. Anschließend wird der eingetragene Wert von den Rändern\", null, 0, null); // 5\r\n\t\tsc.addCodeLine(\" abgezogen (mindestens einer muss 0 werden). \", null, 0, null);\r\n\t\tsc.addCodeLine(\"6. Ist nun der Wert im Nachfragevektor Null so markiere\", null, 0, null); // 6\r\n\t\tsc.addCodeLine(\" die entsprechende Spalte in der Kostenmatrix. Diese\", null, 0, null);\r\n\t\tsc.addCodeLine(\" wird nun nicht mehr beachtet (rot). Ist der Wert des\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Angebotsvektors Null markiere die Zeile der Kostenmatrix.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"7. Der Algorithmus wird beendet, falls lediglich eine Zeile oder\", null, 0, null); // 8\r\n\t\tsc.addCodeLine(\" Spalte der Kostenmatrix unmarkiert ist (eines reicht aus).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"8 . Der entsprechenden Zeile bzw. Spalte im Transporttableau werden\", null, 0, null); // 9\t\t \r\n\t\tsc.addCodeLine(\" die restlichen Angebots- und Nachfragemengen zugeordnet.\", null, 0, null);\r\n\t\t\r\n\t}",
"public void mo21782G() {\n }",
"private List<String> runCode(JasminBytecode code) throws AssembleException {\n // Turn the Jasmin code into a (hopefully) working class file\n if (code == null) {\n throw new AssembleException(\"No valid Jasmin code to assemble\");\n }\n AssembledClass aClass = AssembledClass.assemble(code);\n // Run the class and return the output\n SandBox s = new SandBox();\n s.runClass(aClass);\n return s.getOutput();\n }",
"public void setCode(String code){\n\t\tthis.code = code;\n\t}",
"public void mo8738a() {\n }",
"public void mo44053a() {\n }",
"public void mo21791P() {\n }",
"public void mo6944a() {\n }",
"public void mo3376r() {\n }",
"public void generateCode() {\n\t\tthis.setCharacter();\n\t}",
"public void setCode(String code)\n {\n this.code = code;\n }",
"public void mo21789N() {\n }",
"int getCode();",
"int getCode();",
"int getCode();",
"public void mo5099c() {\n }",
"public void mo56167c() {\n }",
"public String CodeInterpreter() {\n\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\treturn \"DA\" + \"_\" + timeStamp;\n\t}",
"CodeType createCodeType();",
"public void mo55254a() {\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 }",
"boolean hasCode();",
"boolean hasCode();",
"boolean hasCode();",
"@Deprecated\n\tprivate void oldCode()\n\t{\n\t}",
"public static void main() {\n \n }",
"CodeBlock createCodeBlock();",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\r\n\t\tSystem.out.println(\" code\");\r\n\t\tSystem.out.println(\" added one more line of code\");\r\n\t\t;\r\n\r\n\t}",
"public void mo5097b() {\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 setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void mo21794S() {\n }",
"public void mo2740a() {\n }",
"public void mo21779D() {\n }",
"@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }",
"public Classification codeOf(Object code) {\n throw new IllegalStateException(\"Unknown definition: \" + this); // basically unreachable\n }"
] | [
"0.6981029",
"0.66548663",
"0.6500108",
"0.6461564",
"0.63854045",
"0.62753505",
"0.6135049",
"0.6008531",
"0.598046",
"0.59758013",
"0.5974257",
"0.59685767",
"0.5952863",
"0.59404635",
"0.59404635",
"0.59404635",
"0.59404635",
"0.59404635",
"0.58050275",
"0.579843",
"0.5775078",
"0.5742243",
"0.5735827",
"0.57126683",
"0.5685051",
"0.56792",
"0.5657874",
"0.5652997",
"0.5636558",
"0.5636155",
"0.56305885",
"0.56305885",
"0.5625965",
"0.56195205",
"0.561848",
"0.5617056",
"0.56150585",
"0.56137395",
"0.5609534",
"0.55930793",
"0.5590736",
"0.55845994",
"0.55797863",
"0.5570086",
"0.5566212",
"0.55616575",
"0.5561123",
"0.5561123",
"0.5559352",
"0.5558968",
"0.5557889",
"0.5551467",
"0.5549125",
"0.55429447",
"0.55395037",
"0.55346847",
"0.5532334",
"0.55307287",
"0.5529726",
"0.55271125",
"0.5523936",
"0.5521781",
"0.55201536",
"0.5517694",
"0.5511297",
"0.5507231",
"0.5507231",
"0.5507231",
"0.5506934",
"0.54972434",
"0.54931706",
"0.5486678",
"0.5485994",
"0.54811066",
"0.5474495",
"0.5474495",
"0.5474495",
"0.5473168",
"0.54710287",
"0.54681826",
"0.54644495",
"0.5460229",
"0.54504156",
"0.5448914",
"0.5448914",
"0.5448914",
"0.5448914",
"0.5448914",
"0.5448914",
"0.5448914",
"0.5443708",
"0.5443708",
"0.5443708",
"0.5443708",
"0.5443708",
"0.5443708",
"0.543339",
"0.54332703",
"0.5426297",
"0.5423439",
"0.5422312"
] | 0.0 | -1 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.homepage);
// else {
// ShowConnectionDialog showConnectionDialog = new
// ShowConnectionDialog(this);
// showConnectionDialog.showConnectionDialog(this);
// }
// 初始化imageview
imageview = (ImageView) this.findViewById(R.id.cp1);
iAnimateView = new MyAnimateView(this);
// 设置imageview的alpha通道
imageview.setAlpha(alpha);
// imageview淡出线程
new Thread(new Runnable() {
public void run() {
// initApp();
while (iShowStatus < 2) {
try {
if (iShowStatus == 0) {
Thread.sleep(2700);
iShowStatus = 1;
} else {
Thread.sleep(20);
}
if (updateApp()) {
return;
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}).start();
checkWireless = new CheckWireless(this);
// 初始化handler
mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
// TODO Auto-generated method stub
super.handleMessage(msg);
switch (msg.what) {
case 0: {
// 实现渐变
imageview.setAlpha(alpha);
imageview.invalidate();
break;
}
case 1: {
PublicMethod.myOutput("-----new image");
/*
* imageview.setImageResource(R.drawable.cp1); alpha = 255;
* imageview.setAlpha(alpha); imageview.invalidate();
*/
// setContentView(new MyAnimateView(HomePage.this));
setContentView(iAnimateView);
iAnimateView.invalidate();
iShowStatus = 3;
checkWirelessNetwork();
break;
}
case 2: {
try{
showalert();
}catch(Exception e){
e.printStackTrace();// 显示提示框(没有网络,用户是否继续 ) 2010/7/2 陈晨
}
// Intent in = new Intent(HomePage.this,
// RuyicaiAndroid.class);
// startActivity(in);
// HomePage.this.finish();
break;
}
case 3: {
PublicMethod.myOutput("----comeback");
// setContentView(iAnimateView);
iAnimateView.invalidate();
Message mg = Message.obtain();
mg.what = 5;
mHandler.sendMessage(mg);
// saveInformation();
break;
}
case 4: {
Intent in = new Intent(HomePage.this, RuyicaiAndroid.class);
startActivity(in);
HomePage.this.finish();
break;
}
case 5: {
saveInformation();
break;
}
}
}
};
} | {
"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 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 }",
"@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}",
"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.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",
"0.74805456",
"0.7475343",
"0.7469598",
"0.7469598",
"0.7455178",
"0.743656",
"0.74256307",
"0.7422192",
"0.73934627",
"0.7370002",
"0.73569906",
"0.73569906",
"0.7353011",
"0.7347353",
"0.7347353",
"0.7333878",
"0.7311508",
"0.72663945",
"0.72612154",
"0.7252271",
"0.72419256",
"0.72131634",
"0.71865886",
"0.718271",
"0.71728176",
"0.7168954",
"0.7166841",
"0.71481615",
"0.7141478",
"0.7132933",
"0.71174103",
"0.7097966",
"0.70979583",
"0.7093163",
"0.7093163",
"0.7085773",
"0.7075851",
"0.7073558",
"0.70698684",
"0.7049258",
"0.704046",
"0.70370424",
"0.7013127",
"0.7005552",
"0.7004414",
"0.7004136",
"0.69996923",
"0.6995201",
"0.69904065",
"0.6988358",
"0.69834954",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69783133",
"0.6977392",
"0.69668365",
"0.69660246",
"0.69651115",
"0.6962911",
"0.696241",
"0.6961096",
"0.69608897",
"0.6947069",
"0.6940148",
"0.69358927",
"0.6933102",
"0.6927288",
"0.69265485",
"0.69247025"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
switch (msg.what) {
case 0: {
// 实现渐变
imageview.setAlpha(alpha);
imageview.invalidate();
break;
}
case 1: {
PublicMethod.myOutput("-----new image");
/*
* imageview.setImageResource(R.drawable.cp1); alpha = 255;
* imageview.setAlpha(alpha); imageview.invalidate();
*/
// setContentView(new MyAnimateView(HomePage.this));
setContentView(iAnimateView);
iAnimateView.invalidate();
iShowStatus = 3;
checkWirelessNetwork();
break;
}
case 2: {
try{
showalert();
}catch(Exception e){
e.printStackTrace();// 显示提示框(没有网络,用户是否继续 ) 2010/7/2 陈晨
}
// Intent in = new Intent(HomePage.this,
// RuyicaiAndroid.class);
// startActivity(in);
// HomePage.this.finish();
break;
}
case 3: {
PublicMethod.myOutput("----comeback");
// setContentView(iAnimateView);
iAnimateView.invalidate();
Message mg = Message.obtain();
mg.what = 5;
mHandler.sendMessage(mg);
// saveInformation();
break;
}
case 4: {
Intent in = new Intent(HomePage.this, RuyicaiAndroid.class);
startActivity(in);
HomePage.this.finish();
break;
}
case 5: {
saveInformation();
break;
}
}
} | {
"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 onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
} | {
"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 |
C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged: | public static void pipei(String c, String a)
{
char * p;
//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:
char * q;
for (p = c,q = a; * p != '\0';p++,q++)
{
if (*p != '(' && *p != ')')
{
*q = ' ';
}
if (*p == ')')
{
*q = '?';
}
if (*p == '(')
{
*q = '$';
}
}
*q = p;
System.out.printf("%s\n",a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void Main()\n\t{\n\t\tvoid shuru(int * p,int len);\n\t\tvoid paixu(int * p,int len);\n\t\tvoid hebing(int * p1,int * p2);\n\t\tvoid shuchu(int * p,int,int);\n\t\tint m;\n\t\tint n;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\tif (tempVar2 != null)\n\t\t{\n\t\t\tn = Integer.parseInt(tempVar2);\n\t\t}\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p1,*p2;\n\t\tint p1;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p2;\n\t\tint p2;\n\t\tint[] a = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tint[] b = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tp1 = a;\n\t\tp2 = b;\n\ttangible.RefObject<Integer> tempRef_p1 = new tangible.RefObject<Integer>(p1);\n\t\tshuru(tempRef_p1, m);\n\t\tp1 = tempRef_p1.argValue;\n\ttangible.RefObject<Integer> tempRef_p2 = new tangible.RefObject<Integer>(p2);\n\t\tshuru(tempRef_p2, n);\n\t\tp2 = tempRef_p2.argValue;\n\ttangible.RefObject<Integer> tempRef_p12 = new tangible.RefObject<Integer>(p1);\n\t\tpaixu(tempRef_p12, m);\n\t\tp1 = tempRef_p12.argValue;\n\ttangible.RefObject<Integer> tempRef_p22 = new tangible.RefObject<Integer>(p2);\n\t\tpaixu(tempRef_p22, n);\n\t\tp2 = tempRef_p22.argValue;\n\ttangible.RefObject<Integer> tempRef_p13 = new tangible.RefObject<Integer>(p1);\n\ttangible.RefObject<Integer> tempRef_p23 = new tangible.RefObject<Integer>(p2);\n\t\thebing(tempRef_p13, tempRef_p23);\n\t\tp2 = tempRef_p23.argValue;\n\t\tp1 = tempRef_p13.argValue;\n\ttangible.RefObject<Integer> tempRef_p14 = new tangible.RefObject<Integer>(p1);\n\t\tshuchu(tempRef_p14, m, n);\n\t\tp1 = tempRef_p14.argValue;\n\t}",
"private native int nativeAdd(int x, int y);",
"Exp getPointerExp();",
"static native int jniFromDiff(AtomicLong out, long diff, int idx);",
"@Override\r\n\tpublic void visit(PointerExpression pointerExpression) {\n\r\n\t}",
"static native int jniFromBuffers(\n AtomicLong out,\n byte[] oldBuffer,\n int oldLen,\n String oldAsPath,\n byte[] newBuffer,\n int newLen,\n String newAsPath,\n long opts);",
"public void prepareJavaRepresentation() {\n if (!this.javaIsValid) {\n synchronized (this) {\n if (!this.javaIsValid) {\n int sign2 = this.bigInt.sign();\n int[] littleEndianIntsMagnitude = sign2 != 0 ? this.bigInt.littleEndianIntsMagnitude() : new int[]{0};\n setJavaRepresentation(sign2, littleEndianIntsMagnitude.length, littleEndianIntsMagnitude);\n }\n }\n }\n }",
"static native int jniToBuf(Buf out, long patch);",
"public native void pythonDecRef();",
"static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }",
"public void offsetToPointer(ByteCode bc) {\n }",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"private void m24354e() {\n String[] strArr = this.f19529f;\n this.f19529f = (String[]) Arrays.copyOf(strArr, strArr.length);\n C4216a[] aVarArr = this.f19530g;\n this.f19530g = (C4216a[]) Arrays.copyOf(aVarArr, aVarArr.length);\n }",
"private static void testPassByReference(int[] input) {\n if (input.length > 0) {\n input[0] = 5;\n }\n }",
"public static int Main()\n\t{\n\t\tString s = new String(new char[256]);\n\t\tString z = new String(new char[256]);\n\t\tString r = new String(new char[256]);\n\t\tint i;\n\t\ts = new Scanner(System.in).nextLine();\n\t\tz = new Scanner(System.in).nextLine();\n\t\tr = new Scanner(System.in).nextLine();\n//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:\n\t\tchar * p = tangible.StringFunctions.strStr(s, z);\n\t\tif (p == null)\n\t\t{\n\t\t\tSystem.out.print(s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString q = s;\n\t\t\tfor (i = 0; i < (p - q); i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.print(r);\n\t\t\tp = p + (z.length());\n\t\t\twhile (*p != '\\0')\n\t\t\t{\n\t\t\t\tSystem.out.print(p);\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"static native int jniFromBlobs(\n AtomicLong out,\n long oldBlob,\n String oldAsPath,\n long newBlob,\n String newAsPath,\n long opts);",
"@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}",
"static native int jniFromBlobAndBuffer(\n AtomicLong out,\n long oldBlob,\n String oldAsPath,\n byte[] buffer,\n int bufferLen,\n String bufferAsPath,\n long opts);",
"private static native void PeiLinNormalization_0(long I_nativeObj, long T_nativeObj);",
"@Override\r\n\tpublic void prePointersUp(float arg0, float arg1, float arg2, float arg3,\r\n\t\t\tdouble arg4) {\n\t}",
"public long getWritePointer();",
"private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);",
"public final void a(int r12, int r13) {\n /*\n r11 = this;\n r0 = 2\n java.lang.Object[] r1 = new java.lang.Object[r0]\n java.lang.Integer r2 = java.lang.Integer.valueOf(r12)\n r8 = 0\n r1[r8] = r2\n java.lang.Integer r2 = java.lang.Integer.valueOf(r13)\n r9 = 1\n r1[r9] = r2\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r2 = java.lang.Integer.TYPE\n r6[r8] = r2\n java.lang.Class r2 = java.lang.Integer.TYPE\n r6[r9] = r2\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55518(0xd8de, float:7.7797E-41)\n r2 = r11\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x004f\n java.lang.Object[] r1 = new java.lang.Object[r0]\n java.lang.Integer r2 = java.lang.Integer.valueOf(r12)\n r1[r8] = r2\n java.lang.Integer r2 = java.lang.Integer.valueOf(r13)\n r1[r9] = r2\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a\n r4 = 0\n r5 = 55518(0xd8de, float:7.7797E-41)\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r0 = java.lang.Integer.TYPE\n r6[r8] = r0\n java.lang.Class r0 = java.lang.Integer.TYPE\n r6[r9] = r0\n java.lang.Class r7 = java.lang.Void.TYPE\n r2 = r11\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7)\n return\n L_0x004f:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r10 = com.ss.android.ugc.aweme.live.alphaplayer.e.g\n monitor-enter(r10)\n r11.m = r12 // Catch:{ all -> 0x00bb }\n r11.n = r13 // Catch:{ all -> 0x00bb }\n r11.r = r9 // Catch:{ all -> 0x00bb }\n r11.g = r9 // Catch:{ all -> 0x00bb }\n r11.p = r8 // Catch:{ all -> 0x00bb }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ all -> 0x00bb }\n r0.notifyAll() // Catch:{ all -> 0x00bb }\n L_0x0061:\n boolean r0 = r11.f53269b // Catch:{ all -> 0x00bb }\n if (r0 != 0) goto L_0x00b9\n boolean r0 = r11.f53271d // Catch:{ all -> 0x00bb }\n if (r0 != 0) goto L_0x00b9\n boolean r0 = r11.p // Catch:{ all -> 0x00bb }\n if (r0 != 0) goto L_0x00b9\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x00bb }\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a // Catch:{ all -> 0x00bb }\n r4 = 0\n r5 = 55511(0xd8d7, float:7.7787E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x00bb }\n java.lang.Class r7 = java.lang.Boolean.TYPE // Catch:{ all -> 0x00bb }\n r2 = r11\n boolean r0 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x0098\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x00bb }\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a // Catch:{ all -> 0x00bb }\n r4 = 0\n r5 = 55511(0xd8d7, float:7.7787E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x00bb }\n java.lang.Class r7 = java.lang.Boolean.TYPE // Catch:{ all -> 0x00bb }\n r2 = r11\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x00bb }\n java.lang.Boolean r0 = (java.lang.Boolean) r0 // Catch:{ all -> 0x00bb }\n boolean r0 = r0.booleanValue() // Catch:{ all -> 0x00bb }\n goto L_0x00a9\n L_0x0098:\n boolean r0 = r11.j // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x00a8\n boolean r0 = r11.k // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x00a8\n boolean r0 = r11.f() // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x00a8\n r0 = 1\n goto L_0x00a9\n L_0x00a8:\n r0 = 0\n L_0x00a9:\n if (r0 == 0) goto L_0x00b9\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ InterruptedException -> 0x00b1 }\n r0.wait() // Catch:{ InterruptedException -> 0x00b1 }\n goto L_0x0061\n L_0x00b1:\n java.lang.Thread r0 = java.lang.Thread.currentThread() // Catch:{ all -> 0x00bb }\n r0.interrupt() // Catch:{ all -> 0x00bb }\n goto L_0x0061\n L_0x00b9:\n monitor-exit(r10) // Catch:{ all -> 0x00bb }\n return\n L_0x00bb:\n r0 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x00bb }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.i.a(int, int):void\");\n }",
"public interface IUnsafe {\n\n byte getByte(long address);\n\n void putByte(long address, byte x);\n\n short getShort(long address);\n\n void putShort(long address, short x);\n\n char getChar(long address);\n\n void putChar(long address, char x);\n\n int getInt(long address);\n\n void putInt(long address, int x);\n\n long getLong(long address);\n\n void putLong(long address, long x);\n\n float getFloat(long address);\n\n void putFloat(long address, float x);\n\n double getDouble(long address);\n\n void putDouble(long address, double x);\n\n int getInt(Object o, long address);\n\n void putInt(Object o, long address, int x);\n\n Object getObject(Object o, long address);\n\n void putObject(Object o, long address, Object x);\n\n boolean getBoolean(Object o, long address);\n\n void putBoolean(Object o, long address, boolean x);\n\n byte getByte(Object o, long address);\n\n void putByte(Object o, long address, byte x);\n\n short getShort(Object o, long address);\n\n void putShort(Object o, long address, short x);\n\n char getChar(Object o, long address);\n\n void putChar(Object o, long address, char x);\n\n long getLong(Object o, long address);\n\n void putLong(Object o, long address, long x);\n\n float getFloat(Object o, long address);\n\n void putFloat(Object o, long address, float x);\n\n double getDouble(Object o, long address);\n\n void putDouble(Object o, long address, double x);\n\n\n\n long getAddress(long address);\n\n void putAddress(long address, long x);\n\n long allocateMemory(long bytes);\n\n long reallocateMemory(long address, long bytes);\n\n void setMemory(Object o, long offset, long bytes, byte value);\n\n default void setMemory(long address, long bytes, byte value) {\n setMemory(null, address, bytes, value);\n }\n\n void copyMemory(Object srcBase, long srcOffset, Object destBase, long destOffset, long bytes);\n\n default void copyMemory(long srcAddress, long destAddress, long bytes) {\n copyMemory(null, srcAddress, null, destAddress, bytes);\n }\n\n void freeMemory(long address);\n \n}",
"public abstract C7035a mo24417b(long j);",
"public native int add(int a,int b);",
"@Test(timeout = 4000)\n public void test002() throws Throwable {\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n intArray0[1] = 1025;\n intArray0[2] = 0;\n int int0 = MethodWriter.getNewOffset(intArray0, intArray0, 187, 1139);\n assertEquals(1977, int0);\n }",
"private void encodePointerRelative(Encoder encoder, TypeDef type, long offset,\n\t\t\tAddressSpace space) throws IOException {\n\t\tPointer pointer = (Pointer) type.getBaseDataType();\n\t\tencoder.openElement(ELEM_TYPE);\n\t\tencoder.writeString(ATTRIB_METATYPE, \"ptrrel\");\n\t\tencodeNameIdAttributes(encoder, type);\n\t\tencoder.writeSignedInteger(ATTRIB_SIZE, pointer.getLength());\n\t\tif (pointerWordSize != 1) {\n\t\t\tencoder.writeUnsignedInteger(ATTRIB_WORDSIZE, pointerWordSize);\n\t\t}\n\t\tif (space != null) {\n\t\t\tencoder.writeSpace(ATTRIB_SPACE, space);\n\t\t}\n\t\tDataType parent = pointer.getDataType();\n\t\tDataType ptrto = findPointerRelativeInner(parent, (int) offset);\n\t\tencodeTypeRef(encoder, ptrto, 1);\n\t\tencodeTypeRef(encoder, parent, 1);\n\t\tencoder.openElement(ELEM_OFF);\n\t\tencoder.writeSignedInteger(ATTRIB_CONTENT, offset);\n\t\tencoder.closeElement(ELEM_OFF);\n\t\tencoder.closeElement(ELEM_TYPE);\n\t}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public void l()\r\n/* 190: */ {\r\n/* 191:221 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 192:222 */ this.a[i] = null;\r\n/* 193: */ }\r\n/* 194: */ }",
"@Test\n\tpublic void copy_test2() {\n\t\tSystem.out.println(\"copy前:\" + Arrays.toString(intArr));\t\n\t\tintArr = Arrays.copyOf(intArr, 20);\n//\t\tSystem.arraycopy(intArr, 0, intArr, 0, 20);\n\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\t\n\t}",
"public int normalise (int pointer) {\n\t\treturn buffer.normalise((long) pointer);\n\t}",
"private byte[] increment(byte[] array) {\n for (int i = array.length - 1; i >= 0; --i) {\n byte elem = array[i];\n ++elem;\n array[i] = elem;\n if (elem != 0) { // Did not overflow: 0xFF -> 0x00\n return array;\n }\n }\n return null;\n }",
"Buffer copy();",
"@Override\n public Pointer addressPointer() {\n val tempPtr = new PagedPointer(ptrDataBuffer.primaryBuffer());\n\n switch (this.type) {\n case DOUBLE: return tempPtr.asDoublePointer();\n case FLOAT: return tempPtr.asFloatPointer();\n case UINT16:\n case SHORT:\n case BFLOAT16:\n case HALF: return tempPtr.asShortPointer();\n case UINT32:\n case INT: return tempPtr.asIntPointer();\n case UBYTE:\n case BYTE: return tempPtr.asBytePointer();\n case UINT64:\n case LONG: return tempPtr.asLongPointer();\n case BOOL: return tempPtr.asBoolPointer();\n default: return tempPtr.asBytePointer();\n }\n }",
"@Override\n public void function() {\n App.memory.setMemory(op2, Memory.convertBSToBoolArr(Memory.length32(Integer.toBinaryString(\n op1 * Integer.parseInt(App.memory.getMemory(op2, 1 << 2 + 2 + 1), 2)))));\n }",
"private void indirectArrayCopy(int[] src, int[] ptr, int[] dst) {\n\t\tfor (int i = 0, len = ptr.length; i < len; i++) {\n\t\t\tdst[i] = src[ptr[i]];\n\t\t}\n\t}",
"public static native void update(int a, int b);",
"public abstract long getNativePtr();",
"void mo18324a(C7260j jVar);",
"@Test\n\tpublic void copy_test() {\n\t\tSystem.out.println(\"copy前:\" + Arrays.toString(intArr));\t\n\t\tint index = 1;\n\t\tint length = (intArr.length - 1) - index;\n//\t\tSystem.arraycopy(intArr, index, intArr, index+1, length);\n//\t\t//[2, 4, 4, 8, 3, 6, 0, 0]\n//\t\tSystem.out.println(\"copy后(后移):\" + Arrays.toString(intArr));\n\t\tSystem.arraycopy(intArr, index+1, intArr, index, length);\n\t\t//[2, 8, 3, 6, 0, 0, 0, 0]\n\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\t\n\t}",
"public abstract void mo4383c(long j);",
"public boolean isPointer() {return true;}",
"@Override\n public DataBuffer reallocate(long length) {\n val oldPointer = ptrDataBuffer.primaryBuffer();\n\n if (isAttached()) {\n val capacity = length * getElementSize();\n val nPtr = getParentWorkspace().alloc(capacity, dataType(), false);\n this.ptrDataBuffer.setPrimaryBuffer(new PagedPointer(nPtr, 0), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n\n nativeOps.memcpySync(pointer, oldPointer, this.length() * getElementSize(), 3, null);\n workspaceGenerationId = getParentWorkspace().getGenerationId();\n } else {\n this.ptrDataBuffer.expand(length);\n val nPtr = new PagedPointer(this.ptrDataBuffer.primaryBuffer(), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n }\n\n this.underlyingLength = length;\n this.length = length;\n return this;\n }",
"public Pointer<?> toPointer() {\r\n\t\treturn LLVMGenericValueToPointer(ref);\r\n\t}",
"@Test\n\tpublic void forwardCopy_test2() {\n\t\tSystem.out.println(\"copy前:\" + Arrays.toString(intArr));\t\n\t\tint index = 1;\n//\t\tArrayUtil.forwardCopy(intArr, index, 2);\n//\t\t//[2, 8, 3, 6, 0, 0, 0, 0]\n//\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\n//\t\tint len = intArr.length;\n//\t\tfor(int i = index; i< intArr.length - 1; i++){\n//\t\t\tintArr[i] = intArr[i+1];\n//\t\t}\n//\t\t//[2, 4, 3, 6, 0, 0, 0, 0]\n\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\t\n\t}",
"public abstract void mo9243b(long j);",
"private static native void thinning_0(long src_nativeObj, long dst_nativeObj, int thinningType);",
"@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }",
"private static void mo115234c(int i) {\n if (f119282b == null) {\n f119282b = new PointerProperties[f119281a];\n f119283p = new PointerCoords[f119281a];\n }\n while (i > 0) {\n int i2 = i - 1;\n if (f119282b[i2] == null) {\n f119282b[i2] = new PointerProperties();\n f119283p[i2] = new PointerCoords();\n i--;\n } else {\n return;\n }\n }\n }",
"@Test\n\tpublic void test2() {\n\t\tSystem.out.println(\"--------------\");\n\t\t//Arrays.copyOf(T[] original, int newLength) 的底层实现与ArrayUtil.copyArr(T[] original, int newLength)实现是一样的\n\t\tInteger[] newIntArr2 = Arrays.copyOf(intArr, 3);\n\t\tInteger[] newIntArr3 = Arrays.copyOf(intArr, 8);\n\t\tSystem.out.println(Arrays.toString(intArr));\n\t\tSystem.out.println(Arrays.toString(newIntArr2));\n\t\tSystem.out.println(Arrays.toString(newIntArr3));\n\t}",
"@Test\n public void testBytes() {\n byte[] bytes = new byte[]{ 4, 8, 16, 32, -128, 0, 0, 0 };\n ParseEncoder encoder = PointerEncoder.get();\n JSONObject json = ((JSONObject) (encoder.encode(bytes)));\n ParseDecoder decoder = ParseDecoder.get();\n byte[] bytesAgain = ((byte[]) (decoder.decode(json)));\n Assert.assertEquals(8, bytesAgain.length);\n Assert.assertEquals(4, bytesAgain[0]);\n Assert.assertEquals(8, bytesAgain[1]);\n Assert.assertEquals(16, bytesAgain[2]);\n Assert.assertEquals(32, bytesAgain[3]);\n Assert.assertEquals((-128), bytesAgain[4]);\n Assert.assertEquals(0, bytesAgain[5]);\n Assert.assertEquals(0, bytesAgain[6]);\n Assert.assertEquals(0, bytesAgain[7]);\n }",
"protected void updateObsoletePointers() {\n super.updateObsoletePointers();\n }",
"public void puzzle4(){\n\t\tshort x = 0;\n\t\tint i = 123456;\n\t\tx += i; // narrowing primitive conversion [JLS 5.1.3]\n\t\t//x = x + i; // wont compile:possible loss of precision\n\t\tSystem.out.println(\"Value of x \"+x);\n\t}",
"void mo30275a(long j);",
"public static void main (String[] args){\n int myValue = 2_000;\n\n //Byte = 2^8 (8 bits - 1 byte)\n byte myByteValue = 10;\n\n //Java promotes variables to int to perform any binary operation.\n //Thus, results of expressions are integers. In order to store the result\n //in a variables of different type, explicit cast is needed.\n //The parenthesis are needed to cast the whole expression.\n byte myNewByteValue = (byte)(myByteValue/2);\n\n\n //Short = 2^16 (16 bits - 2 bytes)\n short myShort = 1_000;\n short myNewShortValue = (short)(myShort/2);\n /*\n Long = 2^64 (64 bits - 8 bytes)\n Without L suffix, Java considers the literal as an integer.\n Since int is a smaller type than long, int is auto casted and stored as a long\n without information loss (underflow or overflow)\n */\n long myLongValue = 100_000L;\n\n //Exercise:\n //Converts the expression automatically to long, since sizeof(long) > sizeof(int)\n //This rule applies for any two types that one is lager than the order, since the smaller is stored into the larger.\n //Otherwise, a explicit cast is need, like the short type below\n long myNewLongValue = 50_000L + 10L *(myByteValue+myShort+myValue);\n short myShortCastedValue = (short) (100 + 2*(myByteValue+myNewShortValue+myValue));\n System.out.println(myNewLongValue);\n System.out.println(myShortCastedValue);\n }",
"private static native double get_0(long nativeObj, int propId);",
"protected Point getNewPointRelatively(Point p){\n\t\treturn new Point((int) (p.getX()-CELL_SIZE),(int) (p.getY()-CELL_SIZE));\n\t}",
"short getDP1( byte[] buffer, short offset );",
"public void mo5345a(C0261jp jpVar, C0261jp jpVar2) {\n }",
"public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.location.GpsClock.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.newArray(int):java.lang.Object[]\");\n }",
"public static native PointerByReference OpenMM_AmoebaMultipoleForce_create();",
"public abstract void mo9807a(long j);",
"@Override\n public void func_104112_b() {\n \n }",
"short getDQ1( byte[] buffer, short offset );",
"public abstract void increaseThis();",
"void mo25957a(long j, long j2);",
"C3197iu mo30281b(long j);",
"public static void main(String[] args) {\n\t\tString number = \"100\";\n\t\tint e = Integer.parseInt(number); // Convenience Method\n\t\tLong t = 1000l;\n\t\tbyte rr = t.byteValue(); // Convenience Method\n\t\tint bb = t.intValue();\n\t\tfloat cc = t.floatValue(); // xxxValue method\n\t\tlong r = 1000L;\n\t\tint r1 = (int)r;\n\t\t\n\t\t//********************************\n\t\tint r3 = 1000;\n\t\tInteger r4 = new Integer(r3); // Old Way Boxing\n\t\tint r6 = r4.intValue(); // Old Way UnBoxing\n\t\tr6++; // Increment\n\t\tr4 = new Integer(r6); // Old Way boxing\n\t\t\n\t\tInteger r5 = r3; // New Way Boxing\n\t\tr5++; // Unboxing , Increment , Boxing\n\t\tLinkedList l = new LinkedList();\n\t\tl.add(1000);\n\t\tint p1 = 1000; \n\t\tInteger p2 = 128; //-128 to 127\n\t\tInteger p3 = 128;\n\t\tif(p2==p3){\n\t\t\tSystem.out.println(\"Same Ref\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Not Same Ref\");\n\t\t}\n\n\t}",
"void alloc() {\n\t\tother = new int[symbol.length + 2];\n\t}",
"public void test() {\n String b = new String(\"111\");\n b = null;\n String c = b;\n }",
"private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }",
"public PointerAccess(Expression _pointer) {\n\t\tsuper(_pointer);\n\t}",
"public abstract void mo20156a(long j);",
"@Override\n int convertBackward(int unused) {\n throw new UnsupportedOperationException();\n }",
"static native ByteBuffer createJni(long[] nativeData, int width, int height);",
"public abstract void mo13593a(byte[] bArr, int i, int i2);",
"public BinaryRefAddr(String paramString, byte[] paramArrayOfbyte, int paramInt1, int paramInt2) {\n/* 97 */ super(paramString);\n/* 98 */ this.buf = new byte[paramInt2];\n/* 99 */ System.arraycopy(paramArrayOfbyte, paramInt1, this.buf, 0, paramInt2);\n/* */ }",
"protected void deepCloneReferences(uka.transport.DeepClone _helper)\n throws CloneNotSupportedException\n {\n //Cloning the byte array\n\t this.value = _helper.doDeepClone(this.value);\n //byte[] value_clone = new byte[this.value.length]; \n //System.arraycopy(this.value, 0, value_clone, 0, this.value.length);\n //this.value = value_clone;\n }",
"public void test(String c){\n\t\tc = (Integer.parseInt(c) + 1) + \"\";//按理说修改了c的引用了啊\n\t}",
"short getP( byte[] buffer, short offset );",
"int copyCE32(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.CopyHelper.copyCE32(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.CopyHelper.copyCE32(int):int\");\n }",
"int ibrsp (int ud, ByteByReference spr);",
"static native ByteBuffer loadJni(long[] nativeData, byte[] buffer, int offset, int len);",
"@Test\n public void complexPointerTypeParameters() {\n demangle(null, \"_Z14pointerAliasesPPvS_PS0_PPi\", null, ident(\"pointerAliases\"), null, Pointer.class, Pointer.class, Pointer.class, Pointer.class);\n demangle(null, \"_Z14pointerAliasesPPvS_PS0_PPi\", null, ident(\"pointerAliases\"), null, \"**Void\", \"*Void\", \"***Void\", \"**Integer\");\n }",
"private void expand() {\n\n intElements = copyIntArray(intElements, intElements.length * 2);\n doubleElements = copyDoubleArray(doubleElements, doubleElements.length * 2);\n stringElements = copyStringArray(stringElements, stringElements.length * 2);\n typeOfElements = copyIntArray(typeOfElements, typeOfElements.length * 2);\n }",
"public void endVisit(JBinaryOperation x, Context ctx) {\n if (x.getOp() == JBinaryOperator.ASG && x.getLhs() instanceof JArrayRef) {\n \n // first, calculate the transitive closure of all possible runtime types\n // the lhs could be\n JExpression instance = ((JArrayRef) x.getLhs()).getInstance();\n if (instance.getType() instanceof JNullType) {\n // will generate a null pointer exception instead\n return;\n }\n JArrayType lhsArrayType = (JArrayType) instance.getType();\n JType elementType = lhsArrayType.getElementType();\n \n // primitives are statically correct\n if (!(elementType instanceof JReferenceType)) {\n return;\n }\n \n // element type being final means the assignment is statically correct\n if (((JReferenceType) elementType).isFinal()) {\n return;\n }\n \n /*\n * For every instantiated array type that could -in theory- be the\n * runtime type of the lhs, we must record a cast from the rhs to the\n * prospective element type of the lhs.\n */\n JTypeOracle typeOracle = program.typeOracle;\n JType rhsType = x.getRhs().getType();\n assert (rhsType instanceof JReferenceType);\n JReferenceType refRhsType = (JReferenceType) rhsType;\n for (Iterator it = instantiatedArrayTypes.iterator(); it.hasNext();) {\n JArrayType arrayType = (JArrayType) it.next();\n if (typeOracle.canTheoreticallyCast(arrayType, lhsArrayType)) {\n JType itElementType = arrayType.getElementType();\n if (itElementType instanceof JReferenceType) {\n recordCastInternal((JReferenceType) itElementType, refRhsType);\n }\n }\n }\n }\n }",
"@Override\n public byte[] recDirect() {\n return null;\n }",
"abstract void mo4384c(byte[] bArr, int i, int i2);",
"Elem getPointedElem();",
"public static int cmp(Object a, Object b)\n\t{\n\t\tint c = (int)a;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *d = (int *)b;\n\t\tint d = (int)b;\n\t\treturn c - d;\n\t}",
"private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}",
"public void pasteData(PrimitiveDeepCopy pasteBuffer) {\n List<PrimitiveData> bufferCopy = new ArrayList<PrimitiveData>();\n Map<Long, Long> newNodeIds = new HashMap<Long, Long>();\n Map<Long, Long> newWayIds = new HashMap<Long, Long>();\n Map<Long, Long> newRelationIds = new HashMap<Long, Long>();\n for (PrimitiveData data: pasteBuffer.getAll()) {\n if (data.isIncomplete()) {\n continue;\n }\n PrimitiveData copy = data.makeCopy();\n copy.clearOsmMetadata();\n if (data instanceof NodeData) {\n newNodeIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof WayData) {\n newWayIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof RelationData) {\n newRelationIds.put(data.getUniqueId(), copy.getUniqueId());\n }\n bufferCopy.add(copy);\n }\n\n // Update references in copied buffer\n for (PrimitiveData data:bufferCopy) {\n if (data instanceof NodeData) {\n NodeData nodeData = (NodeData)data;\n\t\t\t\tnodeData.setEastNorth(nodeData.getEastNorth());\n } else if (data instanceof WayData) {\n List<Long> newNodes = new ArrayList<Long>();\n for (Long oldNodeId: ((WayData)data).getNodes()) {\n Long newNodeId = newNodeIds.get(oldNodeId);\n if (newNodeId != null) {\n newNodes.add(newNodeId);\n }\n }\n ((WayData)data).setNodes(newNodes);\n } else if (data instanceof RelationData) {\n List<RelationMemberData> newMembers = new ArrayList<RelationMemberData>();\n for (RelationMemberData member: ((RelationData)data).getMembers()) {\n OsmPrimitiveType memberType = member.getMemberType();\n Long newId = null;\n switch (memberType) {\n case NODE:\n newId = newNodeIds.get(member.getMemberId());\n break;\n case WAY:\n newId = newWayIds.get(member.getMemberId());\n break;\n case RELATION:\n newId = newRelationIds.get(member.getMemberId());\n break;\n }\n if (newId != null) {\n newMembers.add(new RelationMemberData(member.getRole(), memberType, newId));\n }\n }\n ((RelationData)data).setMembers(newMembers);\n }\n }\n\n /* Now execute the commands to add the duplicated contents of the paste buffer to the map */\n\n Main.main.undoRedo.add(new AddPrimitivesCommand(bufferCopy));\n Main.map.mapView.repaint();\n }",
"public abstract void mo4380b(byte[] bArr, int i, int i2);",
"static native long jniGetDelta(long patch);",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"public static void main(String[] args) {\nString a = \"abc 123\";\n//String b = \"123\";\n//String e = \"123\";\nString c = \"c\";\n//String d = b + e;\n\nint b = 123;\nint e = 123;\nint d = b +e;\n//System.out.println(d);\n\n\nObject m = \"abc123\";\nObject n = 123;\nObject n1 = 123;\nObject j = 'a';\nObject s = true;\n//Object n3 = n + n1;\n//System.out.println(n3);\n\nObject[] p= new Object[5];\np[0] = \"abc123\";\np[1] = 123;\np[2] = 124;\np[3] = 'a';\np[4] = true;\n//System.out.println(p[1]-p[2]);\n\n\t}",
"public native void get(byte[] bytes);",
"@Override\r\n\tpublic void prePointersDown(float arg0, float arg1, float arg2, float arg3,\r\n\t\t\tdouble arg4) {\n\r\n\t}",
"protected void forwardNumCodePoints(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void\");\n }",
"public abstract void mo4369a(long j);"
] | [
"0.59953505",
"0.57136226",
"0.55553854",
"0.549963",
"0.5476983",
"0.5271668",
"0.5259408",
"0.5203646",
"0.5137008",
"0.5104665",
"0.5099774",
"0.5073989",
"0.5070835",
"0.50629264",
"0.50420916",
"0.5003583",
"0.499558",
"0.49896634",
"0.4955053",
"0.49341625",
"0.4933343",
"0.4915745",
"0.49094003",
"0.49068987",
"0.4890056",
"0.48780572",
"0.48764932",
"0.48728758",
"0.4857137",
"0.48406312",
"0.48381627",
"0.4823817",
"0.48229533",
"0.48087707",
"0.47917527",
"0.47875437",
"0.47815114",
"0.47789243",
"0.47768638",
"0.47704685",
"0.475302",
"0.47317237",
"0.47258797",
"0.4723684",
"0.47230753",
"0.4720342",
"0.47201994",
"0.47192937",
"0.47169033",
"0.47132725",
"0.4709183",
"0.46912655",
"0.46879888",
"0.46816832",
"0.4679242",
"0.46763447",
"0.4673723",
"0.46684286",
"0.46679246",
"0.46481985",
"0.46477765",
"0.46405235",
"0.46400437",
"0.46351692",
"0.46321043",
"0.4631322",
"0.4617879",
"0.4615459",
"0.46147817",
"0.4611615",
"0.46113092",
"0.4599558",
"0.45974317",
"0.4592736",
"0.45819944",
"0.45791373",
"0.45790523",
"0.45788547",
"0.45783603",
"0.4577911",
"0.45706055",
"0.45669246",
"0.45603564",
"0.45553407",
"0.45547578",
"0.4549666",
"0.45491922",
"0.4548303",
"0.4544512",
"0.45433962",
"0.45404705",
"0.45351645",
"0.45349726",
"0.45262656",
"0.45261317",
"0.45208058",
"0.45205882",
"0.45180804",
"0.45176637",
"0.45130378",
"0.4510831"
] | 0.0 | -1 |
C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged: | public static void kuo(String c)
{
char * p;
//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:
char * q;
//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:
char * i;
//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:
char * t;
int s;
for (;;)
{
s = 0;
for (i = c; * i != '\0';i++)
{
for (p = i; * p != '\0';p++)
{
if (*p == '(')
{
for (q = p + 1; * q != '\0';q++)
{
if (*q == '(')
{
break;
}
else
{
if (*q == ')')
{
*p = 'a';
*q = 'a';
break;
}
}
}
}
}
}
for (q = c; * q != '\0';q++)
{
for (t = q; * t != '\0';t++)
{
if (*q == '(' && *t == ')')
{
s = 1;
}
}
}
if (s == 0)
{
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void Main()\n\t{\n\t\tvoid shuru(int * p,int len);\n\t\tvoid paixu(int * p,int len);\n\t\tvoid hebing(int * p1,int * p2);\n\t\tvoid shuchu(int * p,int,int);\n\t\tint m;\n\t\tint n;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\tif (tempVar2 != null)\n\t\t{\n\t\t\tn = Integer.parseInt(tempVar2);\n\t\t}\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p1,*p2;\n\t\tint p1;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p2;\n\t\tint p2;\n\t\tint[] a = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tint[] b = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tp1 = a;\n\t\tp2 = b;\n\ttangible.RefObject<Integer> tempRef_p1 = new tangible.RefObject<Integer>(p1);\n\t\tshuru(tempRef_p1, m);\n\t\tp1 = tempRef_p1.argValue;\n\ttangible.RefObject<Integer> tempRef_p2 = new tangible.RefObject<Integer>(p2);\n\t\tshuru(tempRef_p2, n);\n\t\tp2 = tempRef_p2.argValue;\n\ttangible.RefObject<Integer> tempRef_p12 = new tangible.RefObject<Integer>(p1);\n\t\tpaixu(tempRef_p12, m);\n\t\tp1 = tempRef_p12.argValue;\n\ttangible.RefObject<Integer> tempRef_p22 = new tangible.RefObject<Integer>(p2);\n\t\tpaixu(tempRef_p22, n);\n\t\tp2 = tempRef_p22.argValue;\n\ttangible.RefObject<Integer> tempRef_p13 = new tangible.RefObject<Integer>(p1);\n\ttangible.RefObject<Integer> tempRef_p23 = new tangible.RefObject<Integer>(p2);\n\t\thebing(tempRef_p13, tempRef_p23);\n\t\tp2 = tempRef_p23.argValue;\n\t\tp1 = tempRef_p13.argValue;\n\ttangible.RefObject<Integer> tempRef_p14 = new tangible.RefObject<Integer>(p1);\n\t\tshuchu(tempRef_p14, m, n);\n\t\tp1 = tempRef_p14.argValue;\n\t}",
"private native int nativeAdd(int x, int y);",
"Exp getPointerExp();",
"static native int jniFromDiff(AtomicLong out, long diff, int idx);",
"@Override\r\n\tpublic void visit(PointerExpression pointerExpression) {\n\r\n\t}",
"static native int jniFromBuffers(\n AtomicLong out,\n byte[] oldBuffer,\n int oldLen,\n String oldAsPath,\n byte[] newBuffer,\n int newLen,\n String newAsPath,\n long opts);",
"public void prepareJavaRepresentation() {\n if (!this.javaIsValid) {\n synchronized (this) {\n if (!this.javaIsValid) {\n int sign2 = this.bigInt.sign();\n int[] littleEndianIntsMagnitude = sign2 != 0 ? this.bigInt.littleEndianIntsMagnitude() : new int[]{0};\n setJavaRepresentation(sign2, littleEndianIntsMagnitude.length, littleEndianIntsMagnitude);\n }\n }\n }\n }",
"static native int jniToBuf(Buf out, long patch);",
"public native void pythonDecRef();",
"static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }",
"public void offsetToPointer(ByteCode bc) {\n }",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"private void m24354e() {\n String[] strArr = this.f19529f;\n this.f19529f = (String[]) Arrays.copyOf(strArr, strArr.length);\n C4216a[] aVarArr = this.f19530g;\n this.f19530g = (C4216a[]) Arrays.copyOf(aVarArr, aVarArr.length);\n }",
"private static void testPassByReference(int[] input) {\n if (input.length > 0) {\n input[0] = 5;\n }\n }",
"public static int Main()\n\t{\n\t\tString s = new String(new char[256]);\n\t\tString z = new String(new char[256]);\n\t\tString r = new String(new char[256]);\n\t\tint i;\n\t\ts = new Scanner(System.in).nextLine();\n\t\tz = new Scanner(System.in).nextLine();\n\t\tr = new Scanner(System.in).nextLine();\n//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:\n\t\tchar * p = tangible.StringFunctions.strStr(s, z);\n\t\tif (p == null)\n\t\t{\n\t\t\tSystem.out.print(s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString q = s;\n\t\t\tfor (i = 0; i < (p - q); i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.print(r);\n\t\t\tp = p + (z.length());\n\t\t\twhile (*p != '\\0')\n\t\t\t{\n\t\t\t\tSystem.out.print(p);\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"static native int jniFromBlobs(\n AtomicLong out,\n long oldBlob,\n String oldAsPath,\n long newBlob,\n String newAsPath,\n long opts);",
"@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}",
"static native int jniFromBlobAndBuffer(\n AtomicLong out,\n long oldBlob,\n String oldAsPath,\n byte[] buffer,\n int bufferLen,\n String bufferAsPath,\n long opts);",
"private static native void PeiLinNormalization_0(long I_nativeObj, long T_nativeObj);",
"@Override\r\n\tpublic void prePointersUp(float arg0, float arg1, float arg2, float arg3,\r\n\t\t\tdouble arg4) {\n\t}",
"public long getWritePointer();",
"private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);",
"public final void a(int r12, int r13) {\n /*\n r11 = this;\n r0 = 2\n java.lang.Object[] r1 = new java.lang.Object[r0]\n java.lang.Integer r2 = java.lang.Integer.valueOf(r12)\n r8 = 0\n r1[r8] = r2\n java.lang.Integer r2 = java.lang.Integer.valueOf(r13)\n r9 = 1\n r1[r9] = r2\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r2 = java.lang.Integer.TYPE\n r6[r8] = r2\n java.lang.Class r2 = java.lang.Integer.TYPE\n r6[r9] = r2\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55518(0xd8de, float:7.7797E-41)\n r2 = r11\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x004f\n java.lang.Object[] r1 = new java.lang.Object[r0]\n java.lang.Integer r2 = java.lang.Integer.valueOf(r12)\n r1[r8] = r2\n java.lang.Integer r2 = java.lang.Integer.valueOf(r13)\n r1[r9] = r2\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a\n r4 = 0\n r5 = 55518(0xd8de, float:7.7797E-41)\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r0 = java.lang.Integer.TYPE\n r6[r8] = r0\n java.lang.Class r0 = java.lang.Integer.TYPE\n r6[r9] = r0\n java.lang.Class r7 = java.lang.Void.TYPE\n r2 = r11\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7)\n return\n L_0x004f:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r10 = com.ss.android.ugc.aweme.live.alphaplayer.e.g\n monitor-enter(r10)\n r11.m = r12 // Catch:{ all -> 0x00bb }\n r11.n = r13 // Catch:{ all -> 0x00bb }\n r11.r = r9 // Catch:{ all -> 0x00bb }\n r11.g = r9 // Catch:{ all -> 0x00bb }\n r11.p = r8 // Catch:{ all -> 0x00bb }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ all -> 0x00bb }\n r0.notifyAll() // Catch:{ all -> 0x00bb }\n L_0x0061:\n boolean r0 = r11.f53269b // Catch:{ all -> 0x00bb }\n if (r0 != 0) goto L_0x00b9\n boolean r0 = r11.f53271d // Catch:{ all -> 0x00bb }\n if (r0 != 0) goto L_0x00b9\n boolean r0 = r11.p // Catch:{ all -> 0x00bb }\n if (r0 != 0) goto L_0x00b9\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x00bb }\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a // Catch:{ all -> 0x00bb }\n r4 = 0\n r5 = 55511(0xd8d7, float:7.7787E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x00bb }\n java.lang.Class r7 = java.lang.Boolean.TYPE // Catch:{ all -> 0x00bb }\n r2 = r11\n boolean r0 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x0098\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x00bb }\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a // Catch:{ all -> 0x00bb }\n r4 = 0\n r5 = 55511(0xd8d7, float:7.7787E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x00bb }\n java.lang.Class r7 = java.lang.Boolean.TYPE // Catch:{ all -> 0x00bb }\n r2 = r11\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x00bb }\n java.lang.Boolean r0 = (java.lang.Boolean) r0 // Catch:{ all -> 0x00bb }\n boolean r0 = r0.booleanValue() // Catch:{ all -> 0x00bb }\n goto L_0x00a9\n L_0x0098:\n boolean r0 = r11.j // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x00a8\n boolean r0 = r11.k // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x00a8\n boolean r0 = r11.f() // Catch:{ all -> 0x00bb }\n if (r0 == 0) goto L_0x00a8\n r0 = 1\n goto L_0x00a9\n L_0x00a8:\n r0 = 0\n L_0x00a9:\n if (r0 == 0) goto L_0x00b9\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ InterruptedException -> 0x00b1 }\n r0.wait() // Catch:{ InterruptedException -> 0x00b1 }\n goto L_0x0061\n L_0x00b1:\n java.lang.Thread r0 = java.lang.Thread.currentThread() // Catch:{ all -> 0x00bb }\n r0.interrupt() // Catch:{ all -> 0x00bb }\n goto L_0x0061\n L_0x00b9:\n monitor-exit(r10) // Catch:{ all -> 0x00bb }\n return\n L_0x00bb:\n r0 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x00bb }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.i.a(int, int):void\");\n }",
"public interface IUnsafe {\n\n byte getByte(long address);\n\n void putByte(long address, byte x);\n\n short getShort(long address);\n\n void putShort(long address, short x);\n\n char getChar(long address);\n\n void putChar(long address, char x);\n\n int getInt(long address);\n\n void putInt(long address, int x);\n\n long getLong(long address);\n\n void putLong(long address, long x);\n\n float getFloat(long address);\n\n void putFloat(long address, float x);\n\n double getDouble(long address);\n\n void putDouble(long address, double x);\n\n int getInt(Object o, long address);\n\n void putInt(Object o, long address, int x);\n\n Object getObject(Object o, long address);\n\n void putObject(Object o, long address, Object x);\n\n boolean getBoolean(Object o, long address);\n\n void putBoolean(Object o, long address, boolean x);\n\n byte getByte(Object o, long address);\n\n void putByte(Object o, long address, byte x);\n\n short getShort(Object o, long address);\n\n void putShort(Object o, long address, short x);\n\n char getChar(Object o, long address);\n\n void putChar(Object o, long address, char x);\n\n long getLong(Object o, long address);\n\n void putLong(Object o, long address, long x);\n\n float getFloat(Object o, long address);\n\n void putFloat(Object o, long address, float x);\n\n double getDouble(Object o, long address);\n\n void putDouble(Object o, long address, double x);\n\n\n\n long getAddress(long address);\n\n void putAddress(long address, long x);\n\n long allocateMemory(long bytes);\n\n long reallocateMemory(long address, long bytes);\n\n void setMemory(Object o, long offset, long bytes, byte value);\n\n default void setMemory(long address, long bytes, byte value) {\n setMemory(null, address, bytes, value);\n }\n\n void copyMemory(Object srcBase, long srcOffset, Object destBase, long destOffset, long bytes);\n\n default void copyMemory(long srcAddress, long destAddress, long bytes) {\n copyMemory(null, srcAddress, null, destAddress, bytes);\n }\n\n void freeMemory(long address);\n \n}",
"public abstract C7035a mo24417b(long j);",
"@Test(timeout = 4000)\n public void test002() throws Throwable {\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n intArray0[1] = 1025;\n intArray0[2] = 0;\n int int0 = MethodWriter.getNewOffset(intArray0, intArray0, 187, 1139);\n assertEquals(1977, int0);\n }",
"public native int add(int a,int b);",
"private void encodePointerRelative(Encoder encoder, TypeDef type, long offset,\n\t\t\tAddressSpace space) throws IOException {\n\t\tPointer pointer = (Pointer) type.getBaseDataType();\n\t\tencoder.openElement(ELEM_TYPE);\n\t\tencoder.writeString(ATTRIB_METATYPE, \"ptrrel\");\n\t\tencodeNameIdAttributes(encoder, type);\n\t\tencoder.writeSignedInteger(ATTRIB_SIZE, pointer.getLength());\n\t\tif (pointerWordSize != 1) {\n\t\t\tencoder.writeUnsignedInteger(ATTRIB_WORDSIZE, pointerWordSize);\n\t\t}\n\t\tif (space != null) {\n\t\t\tencoder.writeSpace(ATTRIB_SPACE, space);\n\t\t}\n\t\tDataType parent = pointer.getDataType();\n\t\tDataType ptrto = findPointerRelativeInner(parent, (int) offset);\n\t\tencodeTypeRef(encoder, ptrto, 1);\n\t\tencodeTypeRef(encoder, parent, 1);\n\t\tencoder.openElement(ELEM_OFF);\n\t\tencoder.writeSignedInteger(ATTRIB_CONTENT, offset);\n\t\tencoder.closeElement(ELEM_OFF);\n\t\tencoder.closeElement(ELEM_TYPE);\n\t}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public void l()\r\n/* 190: */ {\r\n/* 191:221 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 192:222 */ this.a[i] = null;\r\n/* 193: */ }\r\n/* 194: */ }",
"@Test\n\tpublic void copy_test2() {\n\t\tSystem.out.println(\"copy前:\" + Arrays.toString(intArr));\t\n\t\tintArr = Arrays.copyOf(intArr, 20);\n//\t\tSystem.arraycopy(intArr, 0, intArr, 0, 20);\n\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\t\n\t}",
"public int normalise (int pointer) {\n\t\treturn buffer.normalise((long) pointer);\n\t}",
"private byte[] increment(byte[] array) {\n for (int i = array.length - 1; i >= 0; --i) {\n byte elem = array[i];\n ++elem;\n array[i] = elem;\n if (elem != 0) { // Did not overflow: 0xFF -> 0x00\n return array;\n }\n }\n return null;\n }",
"Buffer copy();",
"@Override\n public Pointer addressPointer() {\n val tempPtr = new PagedPointer(ptrDataBuffer.primaryBuffer());\n\n switch (this.type) {\n case DOUBLE: return tempPtr.asDoublePointer();\n case FLOAT: return tempPtr.asFloatPointer();\n case UINT16:\n case SHORT:\n case BFLOAT16:\n case HALF: return tempPtr.asShortPointer();\n case UINT32:\n case INT: return tempPtr.asIntPointer();\n case UBYTE:\n case BYTE: return tempPtr.asBytePointer();\n case UINT64:\n case LONG: return tempPtr.asLongPointer();\n case BOOL: return tempPtr.asBoolPointer();\n default: return tempPtr.asBytePointer();\n }\n }",
"@Override\n public void function() {\n App.memory.setMemory(op2, Memory.convertBSToBoolArr(Memory.length32(Integer.toBinaryString(\n op1 * Integer.parseInt(App.memory.getMemory(op2, 1 << 2 + 2 + 1), 2)))));\n }",
"private void indirectArrayCopy(int[] src, int[] ptr, int[] dst) {\n\t\tfor (int i = 0, len = ptr.length; i < len; i++) {\n\t\t\tdst[i] = src[ptr[i]];\n\t\t}\n\t}",
"public static native void update(int a, int b);",
"public abstract long getNativePtr();",
"void mo18324a(C7260j jVar);",
"@Test\n\tpublic void copy_test() {\n\t\tSystem.out.println(\"copy前:\" + Arrays.toString(intArr));\t\n\t\tint index = 1;\n\t\tint length = (intArr.length - 1) - index;\n//\t\tSystem.arraycopy(intArr, index, intArr, index+1, length);\n//\t\t//[2, 4, 4, 8, 3, 6, 0, 0]\n//\t\tSystem.out.println(\"copy后(后移):\" + Arrays.toString(intArr));\n\t\tSystem.arraycopy(intArr, index+1, intArr, index, length);\n\t\t//[2, 8, 3, 6, 0, 0, 0, 0]\n\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\t\n\t}",
"public abstract void mo4383c(long j);",
"public boolean isPointer() {return true;}",
"@Override\n public DataBuffer reallocate(long length) {\n val oldPointer = ptrDataBuffer.primaryBuffer();\n\n if (isAttached()) {\n val capacity = length * getElementSize();\n val nPtr = getParentWorkspace().alloc(capacity, dataType(), false);\n this.ptrDataBuffer.setPrimaryBuffer(new PagedPointer(nPtr, 0), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n\n nativeOps.memcpySync(pointer, oldPointer, this.length() * getElementSize(), 3, null);\n workspaceGenerationId = getParentWorkspace().getGenerationId();\n } else {\n this.ptrDataBuffer.expand(length);\n val nPtr = new PagedPointer(this.ptrDataBuffer.primaryBuffer(), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n }\n\n this.underlyingLength = length;\n this.length = length;\n return this;\n }",
"public Pointer<?> toPointer() {\r\n\t\treturn LLVMGenericValueToPointer(ref);\r\n\t}",
"@Test\n\tpublic void forwardCopy_test2() {\n\t\tSystem.out.println(\"copy前:\" + Arrays.toString(intArr));\t\n\t\tint index = 1;\n//\t\tArrayUtil.forwardCopy(intArr, index, 2);\n//\t\t//[2, 8, 3, 6, 0, 0, 0, 0]\n//\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\n//\t\tint len = intArr.length;\n//\t\tfor(int i = index; i< intArr.length - 1; i++){\n//\t\t\tintArr[i] = intArr[i+1];\n//\t\t}\n//\t\t//[2, 4, 3, 6, 0, 0, 0, 0]\n\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\t\n\t}",
"public abstract void mo9243b(long j);",
"private static native void thinning_0(long src_nativeObj, long dst_nativeObj, int thinningType);",
"@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }",
"private static void mo115234c(int i) {\n if (f119282b == null) {\n f119282b = new PointerProperties[f119281a];\n f119283p = new PointerCoords[f119281a];\n }\n while (i > 0) {\n int i2 = i - 1;\n if (f119282b[i2] == null) {\n f119282b[i2] = new PointerProperties();\n f119283p[i2] = new PointerCoords();\n i--;\n } else {\n return;\n }\n }\n }",
"@Test\n\tpublic void test2() {\n\t\tSystem.out.println(\"--------------\");\n\t\t//Arrays.copyOf(T[] original, int newLength) 的底层实现与ArrayUtil.copyArr(T[] original, int newLength)实现是一样的\n\t\tInteger[] newIntArr2 = Arrays.copyOf(intArr, 3);\n\t\tInteger[] newIntArr3 = Arrays.copyOf(intArr, 8);\n\t\tSystem.out.println(Arrays.toString(intArr));\n\t\tSystem.out.println(Arrays.toString(newIntArr2));\n\t\tSystem.out.println(Arrays.toString(newIntArr3));\n\t}",
"@Test\n public void testBytes() {\n byte[] bytes = new byte[]{ 4, 8, 16, 32, -128, 0, 0, 0 };\n ParseEncoder encoder = PointerEncoder.get();\n JSONObject json = ((JSONObject) (encoder.encode(bytes)));\n ParseDecoder decoder = ParseDecoder.get();\n byte[] bytesAgain = ((byte[]) (decoder.decode(json)));\n Assert.assertEquals(8, bytesAgain.length);\n Assert.assertEquals(4, bytesAgain[0]);\n Assert.assertEquals(8, bytesAgain[1]);\n Assert.assertEquals(16, bytesAgain[2]);\n Assert.assertEquals(32, bytesAgain[3]);\n Assert.assertEquals((-128), bytesAgain[4]);\n Assert.assertEquals(0, bytesAgain[5]);\n Assert.assertEquals(0, bytesAgain[6]);\n Assert.assertEquals(0, bytesAgain[7]);\n }",
"protected void updateObsoletePointers() {\n super.updateObsoletePointers();\n }",
"public void puzzle4(){\n\t\tshort x = 0;\n\t\tint i = 123456;\n\t\tx += i; // narrowing primitive conversion [JLS 5.1.3]\n\t\t//x = x + i; // wont compile:possible loss of precision\n\t\tSystem.out.println(\"Value of x \"+x);\n\t}",
"void mo30275a(long j);",
"public static void main (String[] args){\n int myValue = 2_000;\n\n //Byte = 2^8 (8 bits - 1 byte)\n byte myByteValue = 10;\n\n //Java promotes variables to int to perform any binary operation.\n //Thus, results of expressions are integers. In order to store the result\n //in a variables of different type, explicit cast is needed.\n //The parenthesis are needed to cast the whole expression.\n byte myNewByteValue = (byte)(myByteValue/2);\n\n\n //Short = 2^16 (16 bits - 2 bytes)\n short myShort = 1_000;\n short myNewShortValue = (short)(myShort/2);\n /*\n Long = 2^64 (64 bits - 8 bytes)\n Without L suffix, Java considers the literal as an integer.\n Since int is a smaller type than long, int is auto casted and stored as a long\n without information loss (underflow or overflow)\n */\n long myLongValue = 100_000L;\n\n //Exercise:\n //Converts the expression automatically to long, since sizeof(long) > sizeof(int)\n //This rule applies for any two types that one is lager than the order, since the smaller is stored into the larger.\n //Otherwise, a explicit cast is need, like the short type below\n long myNewLongValue = 50_000L + 10L *(myByteValue+myShort+myValue);\n short myShortCastedValue = (short) (100 + 2*(myByteValue+myNewShortValue+myValue));\n System.out.println(myNewLongValue);\n System.out.println(myShortCastedValue);\n }",
"private static native double get_0(long nativeObj, int propId);",
"protected Point getNewPointRelatively(Point p){\n\t\treturn new Point((int) (p.getX()-CELL_SIZE),(int) (p.getY()-CELL_SIZE));\n\t}",
"short getDP1( byte[] buffer, short offset );",
"public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.location.GpsClock.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.newArray(int):java.lang.Object[]\");\n }",
"public void mo5345a(C0261jp jpVar, C0261jp jpVar2) {\n }",
"public static native PointerByReference OpenMM_AmoebaMultipoleForce_create();",
"public abstract void mo9807a(long j);",
"@Override\n public void func_104112_b() {\n \n }",
"public abstract void increaseThis();",
"short getDQ1( byte[] buffer, short offset );",
"void mo25957a(long j, long j2);",
"public static void main(String[] args) {\n\t\tString number = \"100\";\n\t\tint e = Integer.parseInt(number); // Convenience Method\n\t\tLong t = 1000l;\n\t\tbyte rr = t.byteValue(); // Convenience Method\n\t\tint bb = t.intValue();\n\t\tfloat cc = t.floatValue(); // xxxValue method\n\t\tlong r = 1000L;\n\t\tint r1 = (int)r;\n\t\t\n\t\t//********************************\n\t\tint r3 = 1000;\n\t\tInteger r4 = new Integer(r3); // Old Way Boxing\n\t\tint r6 = r4.intValue(); // Old Way UnBoxing\n\t\tr6++; // Increment\n\t\tr4 = new Integer(r6); // Old Way boxing\n\t\t\n\t\tInteger r5 = r3; // New Way Boxing\n\t\tr5++; // Unboxing , Increment , Boxing\n\t\tLinkedList l = new LinkedList();\n\t\tl.add(1000);\n\t\tint p1 = 1000; \n\t\tInteger p2 = 128; //-128 to 127\n\t\tInteger p3 = 128;\n\t\tif(p2==p3){\n\t\t\tSystem.out.println(\"Same Ref\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Not Same Ref\");\n\t\t}\n\n\t}",
"C3197iu mo30281b(long j);",
"public void test() {\n String b = new String(\"111\");\n b = null;\n String c = b;\n }",
"void alloc() {\n\t\tother = new int[symbol.length + 2];\n\t}",
"private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }",
"public PointerAccess(Expression _pointer) {\n\t\tsuper(_pointer);\n\t}",
"public abstract void mo20156a(long j);",
"@Override\n int convertBackward(int unused) {\n throw new UnsupportedOperationException();\n }",
"public void test(String c){\n\t\tc = (Integer.parseInt(c) + 1) + \"\";//按理说修改了c的引用了啊\n\t}",
"public BinaryRefAddr(String paramString, byte[] paramArrayOfbyte, int paramInt1, int paramInt2) {\n/* 97 */ super(paramString);\n/* 98 */ this.buf = new byte[paramInt2];\n/* 99 */ System.arraycopy(paramArrayOfbyte, paramInt1, this.buf, 0, paramInt2);\n/* */ }",
"protected void deepCloneReferences(uka.transport.DeepClone _helper)\n throws CloneNotSupportedException\n {\n //Cloning the byte array\n\t this.value = _helper.doDeepClone(this.value);\n //byte[] value_clone = new byte[this.value.length]; \n //System.arraycopy(this.value, 0, value_clone, 0, this.value.length);\n //this.value = value_clone;\n }",
"static native ByteBuffer createJni(long[] nativeData, int width, int height);",
"public abstract void mo13593a(byte[] bArr, int i, int i2);",
"short getP( byte[] buffer, short offset );",
"int copyCE32(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.CopyHelper.copyCE32(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.CopyHelper.copyCE32(int):int\");\n }",
"int ibrsp (int ud, ByteByReference spr);",
"@Test\n public void complexPointerTypeParameters() {\n demangle(null, \"_Z14pointerAliasesPPvS_PS0_PPi\", null, ident(\"pointerAliases\"), null, Pointer.class, Pointer.class, Pointer.class, Pointer.class);\n demangle(null, \"_Z14pointerAliasesPPvS_PS0_PPi\", null, ident(\"pointerAliases\"), null, \"**Void\", \"*Void\", \"***Void\", \"**Integer\");\n }",
"static native ByteBuffer loadJni(long[] nativeData, byte[] buffer, int offset, int len);",
"private void expand() {\n\n intElements = copyIntArray(intElements, intElements.length * 2);\n doubleElements = copyDoubleArray(doubleElements, doubleElements.length * 2);\n stringElements = copyStringArray(stringElements, stringElements.length * 2);\n typeOfElements = copyIntArray(typeOfElements, typeOfElements.length * 2);\n }",
"@Override\n public byte[] recDirect() {\n return null;\n }",
"public void endVisit(JBinaryOperation x, Context ctx) {\n if (x.getOp() == JBinaryOperator.ASG && x.getLhs() instanceof JArrayRef) {\n \n // first, calculate the transitive closure of all possible runtime types\n // the lhs could be\n JExpression instance = ((JArrayRef) x.getLhs()).getInstance();\n if (instance.getType() instanceof JNullType) {\n // will generate a null pointer exception instead\n return;\n }\n JArrayType lhsArrayType = (JArrayType) instance.getType();\n JType elementType = lhsArrayType.getElementType();\n \n // primitives are statically correct\n if (!(elementType instanceof JReferenceType)) {\n return;\n }\n \n // element type being final means the assignment is statically correct\n if (((JReferenceType) elementType).isFinal()) {\n return;\n }\n \n /*\n * For every instantiated array type that could -in theory- be the\n * runtime type of the lhs, we must record a cast from the rhs to the\n * prospective element type of the lhs.\n */\n JTypeOracle typeOracle = program.typeOracle;\n JType rhsType = x.getRhs().getType();\n assert (rhsType instanceof JReferenceType);\n JReferenceType refRhsType = (JReferenceType) rhsType;\n for (Iterator it = instantiatedArrayTypes.iterator(); it.hasNext();) {\n JArrayType arrayType = (JArrayType) it.next();\n if (typeOracle.canTheoreticallyCast(arrayType, lhsArrayType)) {\n JType itElementType = arrayType.getElementType();\n if (itElementType instanceof JReferenceType) {\n recordCastInternal((JReferenceType) itElementType, refRhsType);\n }\n }\n }\n }\n }",
"Elem getPointedElem();",
"abstract void mo4384c(byte[] bArr, int i, int i2);",
"public static int cmp(Object a, Object b)\n\t{\n\t\tint c = (int)a;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *d = (int *)b;\n\t\tint d = (int)b;\n\t\treturn c - d;\n\t}",
"private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}",
"public void pasteData(PrimitiveDeepCopy pasteBuffer) {\n List<PrimitiveData> bufferCopy = new ArrayList<PrimitiveData>();\n Map<Long, Long> newNodeIds = new HashMap<Long, Long>();\n Map<Long, Long> newWayIds = new HashMap<Long, Long>();\n Map<Long, Long> newRelationIds = new HashMap<Long, Long>();\n for (PrimitiveData data: pasteBuffer.getAll()) {\n if (data.isIncomplete()) {\n continue;\n }\n PrimitiveData copy = data.makeCopy();\n copy.clearOsmMetadata();\n if (data instanceof NodeData) {\n newNodeIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof WayData) {\n newWayIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof RelationData) {\n newRelationIds.put(data.getUniqueId(), copy.getUniqueId());\n }\n bufferCopy.add(copy);\n }\n\n // Update references in copied buffer\n for (PrimitiveData data:bufferCopy) {\n if (data instanceof NodeData) {\n NodeData nodeData = (NodeData)data;\n\t\t\t\tnodeData.setEastNorth(nodeData.getEastNorth());\n } else if (data instanceof WayData) {\n List<Long> newNodes = new ArrayList<Long>();\n for (Long oldNodeId: ((WayData)data).getNodes()) {\n Long newNodeId = newNodeIds.get(oldNodeId);\n if (newNodeId != null) {\n newNodes.add(newNodeId);\n }\n }\n ((WayData)data).setNodes(newNodes);\n } else if (data instanceof RelationData) {\n List<RelationMemberData> newMembers = new ArrayList<RelationMemberData>();\n for (RelationMemberData member: ((RelationData)data).getMembers()) {\n OsmPrimitiveType memberType = member.getMemberType();\n Long newId = null;\n switch (memberType) {\n case NODE:\n newId = newNodeIds.get(member.getMemberId());\n break;\n case WAY:\n newId = newWayIds.get(member.getMemberId());\n break;\n case RELATION:\n newId = newRelationIds.get(member.getMemberId());\n break;\n }\n if (newId != null) {\n newMembers.add(new RelationMemberData(member.getRole(), memberType, newId));\n }\n }\n ((RelationData)data).setMembers(newMembers);\n }\n }\n\n /* Now execute the commands to add the duplicated contents of the paste buffer to the map */\n\n Main.main.undoRedo.add(new AddPrimitivesCommand(bufferCopy));\n Main.map.mapView.repaint();\n }",
"static native long jniGetDelta(long patch);",
"public abstract void mo4380b(byte[] bArr, int i, int i2);",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"public static void main(String[] args) {\nString a = \"abc 123\";\n//String b = \"123\";\n//String e = \"123\";\nString c = \"c\";\n//String d = b + e;\n\nint b = 123;\nint e = 123;\nint d = b +e;\n//System.out.println(d);\n\n\nObject m = \"abc123\";\nObject n = 123;\nObject n1 = 123;\nObject j = 'a';\nObject s = true;\n//Object n3 = n + n1;\n//System.out.println(n3);\n\nObject[] p= new Object[5];\np[0] = \"abc123\";\np[1] = 123;\np[2] = 124;\np[3] = 'a';\np[4] = true;\n//System.out.println(p[1]-p[2]);\n\n\t}",
"@Override\r\n\tpublic void prePointersDown(float arg0, float arg1, float arg2, float arg3,\r\n\t\t\tdouble arg4) {\n\r\n\t}",
"public native void get(byte[] bytes);",
"protected void forwardNumCodePoints(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void\");\n }",
"public abstract void mo4369a(long j);"
] | [
"0.59945726",
"0.57117295",
"0.55559045",
"0.5498441",
"0.54765284",
"0.5270398",
"0.52597755",
"0.5201995",
"0.5137928",
"0.5104745",
"0.5099223",
"0.50743604",
"0.5070889",
"0.5063853",
"0.5041836",
"0.50024223",
"0.49965525",
"0.49884766",
"0.49541357",
"0.49345082",
"0.493357",
"0.4914481",
"0.4909494",
"0.490643",
"0.4889401",
"0.48768687",
"0.4876129",
"0.48743036",
"0.48572543",
"0.48412398",
"0.4837631",
"0.4823864",
"0.4823573",
"0.48083803",
"0.47928756",
"0.47876057",
"0.47807303",
"0.47782746",
"0.47768173",
"0.47691774",
"0.4752827",
"0.4731387",
"0.47256228",
"0.47245714",
"0.47227356",
"0.4720122",
"0.47201198",
"0.47180188",
"0.47177488",
"0.47148558",
"0.4708672",
"0.46919337",
"0.4689772",
"0.46816123",
"0.46786967",
"0.46754336",
"0.46740928",
"0.46698552",
"0.46680215",
"0.46467006",
"0.46466637",
"0.46400702",
"0.46396858",
"0.46350977",
"0.4632576",
"0.46321824",
"0.46168628",
"0.46162692",
"0.46142843",
"0.46131447",
"0.46131223",
"0.4598559",
"0.45973352",
"0.459271",
"0.4581552",
"0.45798633",
"0.45794296",
"0.45787472",
"0.45777884",
"0.4577675",
"0.45700002",
"0.45653835",
"0.4560478",
"0.4554343",
"0.45535454",
"0.45503506",
"0.4549202",
"0.45486736",
"0.4543696",
"0.4542905",
"0.45396194",
"0.45364228",
"0.45356235",
"0.45259523",
"0.4524919",
"0.45206735",
"0.4520344",
"0.4518007",
"0.4516635",
"0.4512424",
"0.45108765"
] | 0.0 | -1 |
seleciona o contato na listview | @Override
public void onItemClick(AdapterView<?> adapter, View view, int i, long l) {
Contato contatoEscolhido = (Contato) adapter.getItemAtPosition(i);
Intent intent = new Intent(ListaContato.this, CadastrarContato.class);
intent.putExtra("contato-escolhido", contatoEscolhido);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlist = mdb.getselect_all_data(ed.getText().toString());\n\t\t\t\tMy_list_adapter adapter = new My_list_adapter(getApplicationContext(),\n\t\t\t\t\t\tlist);\n\t\t\t\tlv.setAdapter(adapter);\n\t\t\t}",
"private void initListView()\n {\n\n listViewHospital.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>()\n {\n public void changed(ObservableValue<? extends String> ov, String old_val, String new_val)\n {\n if (new_val != null)\n {\n //when a row in the listview is clicked, the listViewSelectedGeneral will be set as the content of that row\n listViewSelectedHospital = new_val;\n\n\n }\n }\n });\n\n listViewDoctor.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>()\n {\n public void changed(ObservableValue<? extends String> ov, String old_val, String new_val)\n {\n if (new_val != null)\n {\n listViewSelectedDoctor = new_val;\n\n }\n }\n });\n\n }",
"private void showList() {\n select();\n //create adapter\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, studentInfo);\n //show data list\n listView.setAdapter(adapter);\n }",
"public void populateListView() {\n\n\n }",
"@Override\r\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tSearch_contact_listview_View search_contact_listview_view;\r\n\t\t\tif(convertView == null){\r\n\t\t\t\tconvertView = getLayoutInflater().inflate(R.layout.search_contact_item, null);\r\n\t\t\t\tsearch_contact_listview_view = new Search_contact_listview_View();\r\n\t\t\t\tsearch_contact_listview_view.suoyin = (TextView) convertView.findViewById(R.id.search_contact_item_suoyin);\r\n\t\t\t\tsearch_contact_listview_view.photo = (ImageView) convertView.findViewById(R.id.search_contact_item_photo);\r\n\t\t\t\tsearch_contact_listview_view.name = (TextView) convertView.findViewById(R.id.search_contact_item_name);\r\n\t\t\t\tsearch_contact_listview_view.phone = (TextView) convertView.findViewById(R.id.search_contact_item_phone);\r\n\t\t\t\tconvertView.setTag(search_contact_listview_view);\r\n\t\t\t}else{\r\n\t\t\t\tsearch_contact_listview_view = (Search_contact_listview_View) convertView.getTag();\r\n\t\t\t}\r\n\t\t\tSearch_contact_listview_item item = listItems.get(position);\r\n\t\t\tif(position > 0 && item.getSuoyin().equals(listItems.get(position -1).getSuoyin())){\r\n\t\t\t\tsearch_contact_listview_view.suoyin.setVisibility(View.GONE);\r\n\t\t\t\tsearch_contact_listview_view.photo.setImageBitmap(item.getPhoto());\r\n\t\t\t\tsearch_contact_listview_view.name.setText(item.getName());\r\n\t\t\t\tsearch_contact_listview_view.phone.setText(item.getPhone());\r\n\t\t\t}else{\r\n\t\t\t\tsearch_contact_listview_view.suoyin.setVisibility(View.VISIBLE);\r\n\t\t\t\tsearch_contact_listview_view.suoyin.setText(item.getSuoyin());\r\n\t\t\t\tsearch_contact_listview_view.photo.setImageBitmap(item.getPhoto());\r\n\t\t\t\tsearch_contact_listview_view.name.setText(item.getName());\r\n\t\t\t\tsearch_contact_listview_view.phone.setText(item.getPhone());\r\n\t\t\t}\r\n\t\t\treturn convertView;\r\n\t\t}",
"@Override\r\n\tpublic View getView(int arg0, View view, ViewGroup arg2) {\n\t\tview=LayoutInflater.from(context).inflate(com.qufei.androidapp.R.layout.item_searchfenleihao, null);\r\n\t\t\r\n\t\tTextView text=(TextView) view.findViewById(R.id.fenleihao);\r\n\t\t\r\n\t\ttext.setText(data.get(arg0).get名称());\r\n\t\t\r\n\t\t\r\n\t\treturn view;\r\n\t}",
"private void showCursorAdaptView() {\n\t\tCursor cursor = personService.getCursor(0, personService.getCnt());\n\t\tSimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.listview_item, cursor,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(adapter);\n\t}",
"private void showListView()\n {\n SimpleCursorAdapter adapter = new SimpleCursorAdapter(\n this,\n R.layout.dataview,\n soldierDataSource.getCursorALL(), //\n _allColumns,\n new int[]{ R.id.soldierid, R.id.username, R.id.insertedphone, R.id.password},\n 0);\n\n table.setAdapter(adapter);\n }",
"private void showListView() {\n Cursor data = mVehicleTypeDao.getData();\n // ArrayList<String> listData = new ArrayList<>();\n ArrayList<String> alVT_ID = new ArrayList<>();\n ArrayList<String> alVT_TYPE = new ArrayList<>();\n\n while (data.moveToNext()) {\n //get the value from the database in column 1\n //then add it to the ArrayList\n // listData.add(data.getString(6) + \" - \" + data.getString(1));\n alVT_ID.add(data.getString(0));\n alVT_TYPE.add(data.getString(1));\n\n\n }\n\n mListView = findViewById(R.id.listView);\n mListView.setAdapter(new ListVehicleTypeAdapter(this, alVT_ID, alVT_TYPE));\n\n //set an onItemClickListener to the ListView\n\n }",
"public View getView(int postion, View convertView, ViewGroup parent){\n\n //View custom=contextA.getLayoutInflater().inflate(resource, null);\n View custom = LayoutInflater.from(context).inflate(R.layout.item, parent, false );\n TextView txtIdLop=custom.findViewById(R.id.txtID);\n TextView txtTenLop=custom.findViewById(R.id.txtTenLop);\n TextView txtNganh=custom.findViewById(R.id.txtTenNganh);\n\n Lop lop=lopList.get(postion);\n txtIdLop.setText(String.valueOf(lop.getIdlop()));\n txtTenLop.setText(lop.getTenLop());\n txtNganh.setText(lop.getNganh());\n\n return custom;\n }",
"public void listado()\n {\n BuscarL.setText(\"Listado Libros\");\n listViewLibros.setVisibility(View.VISIBLE);\n editTextBuscar.setVisibility(View.INVISIBLE);\n btnBuscarL.setVisibility(View.INVISIBLE);\n textView2.setVisibility(View.INVISIBLE);\n texto.setVisibility(View.INVISIBLE);\n radioButtonTitulo.setVisibility(View.INVISIBLE);\n radioButtonAutor.setVisibility(View.INVISIBLE);\n radioButtonEditorial.setVisibility(View.INVISIBLE);\n\n\n\n\n\n Libro[] arr=new Libro[arrLibros.size()];\n for(int i=0;i<arrLibros.size();i++)\n {\n arr[i]=arrLibros.get(i);\n }\n AdaptadorLibros adaptador = new AdaptadorLibros(BuscarLibro.this, arr);\n listViewLibros.setAdapter(adaptador);\n\n\n\n }",
"@Override\r\n\t\tpublic void onIndexSelect(String str) {\n\t\t\tsearch_contact_suoyin.setVisibility(View.VISIBLE);\r\n\t\t\tsearch_contact_suoyin.setText(str);\r\n\t\t\tfor(int i = 0; i < listItems.size(); i++){\r\n\t\t\t\tif(listItems.get(i).getSuoyin().equals(str)){\r\n\t\t\t\t\tsearch_contact_listview.setSelection(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public abstract void executeListView(int pos);",
"public void onClick(View v) {\n\t\t\t\t\n\t\t\t\tlistview_search_list.setVisibility(View.VISIBLE);\n\t\t\t\tsearched_list.clear();\n\t\t\t\tsearch = search_datasource.getAllSearch(edit_search_text.getText().toString());\n\t\t\t\tBoolean bool = search.getSearch_subject_list().size()>0 || \n\t\t\t\t\t\tsearch.getSearch_chapter_list().size()>0 ||\n\t\t\t\t\t\tsearch.getSearch_topic_list().size()>0;\n\t\t\t\tif(bool)\n\t\t\t\t{\n\t\t\t\t\tif(search.getSearch_subject_list().size()>0)\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_subject_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(search.getSearch_chapter_list().size()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_chapter_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_chapter_list().get(i).getChapter_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(search.getSearch_topic_list().size()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_topic_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_topic_list().get(i).getTopic_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\tadapter_temp.add(\"Search Not Found!! Search is Case Sensitive\");\n\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"private void inicializaListView(){\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n if (list != null) {\n return list.get(position);\n }\n return null;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n if (convertView == null) {\n convertView = inflater.inflate(R.layout.list_search_item, null);\n mainActivity = inflater.inflate(R.layout.activity_search, null); //for showing result not found\n }\n TextView name = (TextView) convertView.findViewById(R.id.flower_name);\n ImageView img = (ImageView) convertView.findViewById(R.id.flower_pic);\n TextView price = (TextView) convertView.findViewById(R.id.price);\n name.setText(rowItems.get(position).getAdi());\n //load pic cover using picasso\n Picasso.with(context)\n .load(rowItems.get(position).getResimKucuk())\n .into(img);\n price.setText(String.valueOf((int) rowItems.get(position).getSatisFiyat()));\n return convertView;\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_jobinfo_srch);\r\n\r\n\t\tDBAdapter m_DBAdapter = new DBAdapter(this);\r\n\r\n\t\tmText = (EditText) findViewById(R.id.srch_title);\r\n\t\ttxRslt = (TextView) findViewById(R.id.tv_rslt);\r\n\t\tListView listview = (ListView) findViewById(R.id.ls_01);\r\n\t\tmText.setText(\"건물\");\r\n\r\n\r\n\t\t// 찾기 button select\r\n\t\tbutton1 = (Button) findViewById(R.id.bt_01);\r\n\t\tbutton1.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t// mText.setText(\"test click ~~~\");\r\n\t\t\t\tString searchValue = \"\";\r\n\t\t\t\tsearchValue = mText.getText().toString();\r\n\r\n\t\t\t\tdb = SQLiteDatabase.openDatabase(DB_PATH + DB_NAME, null,\r\n\t\t\t\t\t\tSQLiteDatabase.NO_LOCALIZED_COLLATORS);\r\n\r\n\t\t\t\tCursor cursor;\r\n\t\t\t\tcursor = db.rawQuery(\" SELECT job_cd, job_nm \"\r\n\t\t\t\t\t\t+ \" FROM jobvision\" + \" WHERE job_nm LIKE '%\"\r\n\t\t\t\t\t\t+ searchValue + \"%'\", null);\r\n\r\n\t\t\t\tString Result = \"\";\r\n\r\n\t\t\t\t// ArrayList<Myinfo> listView = new ArrayList<Myinfo>();\r\n\t\t\t\tjobItems = new ArrayList<String>();\r\n\r\n\t\t\t\twhile (cursor.moveToNext()) {\r\n\t\t\t\t\tString joc_cd = cursor.getString(0);\r\n\t\t\t\t\tString job_nm = cursor.getString(1);\r\n\t\t\t\t\tResult += (joc_cd + \" = \" + job_nm + \"\\n\");\r\n\t\t\t\t\tjobItems.add(job_nm);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// mText.setText(\"test result\");\r\n\t\t\t\tif (Result.length() == 0) {\r\n\t\t\t\t\t// mText.setText(\"Empyt Set\");\r\n\t\t\t\t\ttxRslt.setText(\"Empyt Set\");\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mText.setText(Result);\r\n\t\t\t\t\ttxRslt.setText(Result);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcursor.close();\r\n\t\t\t\t// m_DBAdapter.close();\r\n\t\t\t\tinvalidate();\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tlistview.setOnItemClickListener(mainSelect);\r\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n if (convertView == null) {\n\n convertView = inflater.inflate(R.layout.list_detail_cek_saldo, null);\n viewHolder = new ViewHolder();\n\n viewHolder.txt_sld = (TextView) convertView\n .findViewById(R.id.tv_list_detail_saldo);\n\n convertView.setTag(viewHolder);\n\n } else {\n viewHolder = (ViewHolder) convertView.getTag();\n }\n\n viewHolder.txt_norek.setText(bmsTabList.get(position)\n .getNorek().trim());\n viewHolder.txt_sld.setText(String.valueOf(bmsTabList.get(position).getSldbi()));\n\n return convertView;\n\n }",
"private void populateListView() {\n ArrayAdapter<Representative> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.repListView);\n list.setAdapter(adapter);\n }",
"private void initView() {\n listView = (ListView)findViewById(R.id.phonesListView);\n listView.setEmptyView(findViewById(R.id.emptyElement));\n adapter = new PhonesCursorAdapter(this,cursor,false);\n listView.setAdapter(adapter);\n listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);\n listView.setMultiChoiceModeListener(new AbsListView.MultiChoiceModeListener() {\n @Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\n }\n\n @Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n MenuInflater menuInflater = mode.getMenuInflater();\n menuInflater.inflate(R.menu.list_menu,menu);\n return true;\n }\n\n @Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }\n\n @Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n switch (item.getItemId()){\n case R.id.deletePhones:\n deletePhones();\n return true;\n }\n return false;\n }\n\n @Override\n public void onDestroyActionMode(ActionMode mode) {\n\n }\n });\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Pobierz dane z bazy na temat wybranego obiektu i przekazuje do\n //kolejnej aktywnosci\n\n //pobieramy dane wybranego telefonu\n Cursor cursor = ResolverHelper.getData((int) id, MainListaActivity.this.getContentResolver());\n Bundle bundle = new Bundle();\n while(cursor.moveToNext()){\n bundle.putString(Constants._ID,cursor.getString(0));\n bundle.putString(Constants.PRODUCENT,cursor.getString(1));\n bundle.putString(Constants.MODEL_NAME,cursor.getString(2));\n bundle.putString(Constants.ANDR_VER,cursor.getString(3));\n bundle.putString(Constants.WWW,cursor.getString(4));\n }\n cursor.close();\n Intent intent = new Intent(MainListaActivity.this,PhoneActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }\n });\n }",
"@Override\n public View getView(final int position, final View convertView, ViewGroup parent) {\n Holder holder = new Holder();\n\n final View rowView;\n rowView = inflater.inflate(R.layout.client_search_item, parent , false);\n\n holder.name = (TextView) rowView.findViewById(R.id.name);\n holder.branch = (TextView) rowView.findViewById(R.id.branch);\n holder.contact = (TextView) rowView.findViewById(R.id.contact);\n\n\n //global.getAl_src_client_details().get(position).get(GlobalConstants.SRC_CLIENT_NAME)\n holder.name.setText(name.get(position));\n\n //global.getAl_src_client_details().get(position).get(GlobalConstants.SRC_CLIENT_AREA)\n holder.branch.setText(branch.get(position));\n\n //global.getAl_src_client_details().get(position).get(GlobalConstants.SRC_CLIENT_CONTACT)\n holder.contact.setText(contact.get(position));\n\n return rowView;\n }",
"public void getInfo(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\t\n\t\tArrayList<String> cityName = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT cityName FROM City\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"cityName\");\n\t\t\tcityName.add(next);\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"cityName\"));\n\t\t}\n\t\t\n\t\tCollections.sort(cityName);\n\t\tcountriesListView.getItems().addAll(cityName);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\t\n\t\n\t\n}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View row = convertView;\n RecordHolder holder = null;\n // Check if an existing view is being reused, otherwise inflate the view\n if (row == null) {\n LayoutInflater inflater = ((Activity) context).getLayoutInflater();\n row = inflater.inflate(id,parent,false);\n holder = new RecordHolder();\n holder.tvName = (TextView) row.findViewById(R.id.tvName);\n row.setTag(holder);\n }\n Cursos c = data.get(position);\n holder.tvName.setText(c.getNombre_curso());\n\n return row;\n }",
"private void displayListView() {\n ArrayList<UserData> countryList = new ArrayList<UserData>();\n UserData country = new UserData(\"User1\",false);\n countryList.add(country);\n country = new UserData(\"User2\",false);\n countryList.add(country);\n country = new UserData(\"User3\",false);\n countryList.add(country);\n country = new UserData(\"User5\",false);\n countryList.add(country);\n country = new UserData(\"User6\",false);\n countryList.add(country);\n country = new UserData(\"User7\",false);\n countryList.add(country);\n country = new UserData(\"User8\",false);\n countryList.add(country);\n\n //create an ArrayAdaptar from the String Array\n dataAdapter = new MyCustomAdapter(getActivity(),\n R.layout.user_list_item, countryList);\n\n // Assign adapter to ListView\n listView.setAdapter(dataAdapter);\n\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // When clicked, show a toast with the TextView text\n UserData country = (UserData) parent.getItemAtPosition(position);\n // Toast.makeText(getActivity(),\n // \"Clicked on Row: \" + country.getName(),\n // Toast.LENGTH_LONG).show();\n }\n });\n\n }",
"@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }",
"public void rellenarListview(ArrayList<Cliente> listausar) {\n // edito el listview\n AdaptadorPersonalizado adaptador = new AdaptadorPersonalizado(getApplicationContext(), listausar);\n lista.setAdapter(adaptador);\n }",
"@Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n if (convertView == null) {\n convertView = this.inflater.inflate(android.R.layout.simple_list_item_1, parent, false);\n }\n TextView whereTextMustBeSet = (TextView) convertView;\n\n // obtengo el objeto que tengo que mostrar\n CountryData item = this.getItem(position);\n\n // hago el \"binding a pedal\"\n whereTextMustBeSet.setText(item.getSpanishName());\n\n // OJO!! hay que devolver el view\n return convertView;\n }",
"@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n viewHolder1 holder;\n if (convertView == null) {\n convertView = View.inflate(context, R.layout.home_serrce, null);\n holder = new viewHolder1();\n holder.headline = (TextView) convertView.findViewById(R.id.home_bt);\n convertView.setTag(holder);\n }else{\n holder = (viewHolder1) convertView.getTag();\n }\n\n holder.headline.setText(region.get(position+3).getNAME());\n holder.headline.setTextSize(14);\n holder.headline.setBackground(Homeserch.this.getResources().getDrawable(R.drawable.btn_selector));\n\n holder.headline.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (tag != null && \"bespeak\".equals(tag)) {//预约调用选择地区\n Intent intent = new Intent();\n intent.putExtra(\"region\", region.get(position+3));\n setResult(RESULT_OK, intent);\n }\n\n SharedPreferences sh=getSharedPreferences(\"chongqing\", Activity.MODE_WORLD_READABLE);\n SharedPreferences.Editor editor=sh.edit();//会创建一个editor对象,要注意。\n editor.putString(\"s\", region.get(position+3).getNAME());\n editor.commit();\n animFinish();\n\n }\n });\n\n\n return convertView;\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tLayoutInflater mInflater = LayoutInflater.from(context);\n\t\t\tView view = null;\n\t\t\tview = mInflater.inflate(R.layout.listview_mylipin, null);\n\t\t\tTextView mylipin = (TextView) view.findViewById(R.id.tv_lipin);\n\t\t\tString content=list.get(position).get(\"data\");\n\t\t\tString []items=content.split(\",\");\n\t\t\tmylipin.setText(items[0]);\n\t\treturn view;\n\t}",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n View view = convertView;\n\n if(view == null)\n {\n view = LayoutInflater.from(this.context).inflate(R.layout.item_servicio , null);\n }\n\n Vehiculo vehiculo = vehiculosList.get(position);\n\n TextView texto = view.findViewById(R.id.nombreServicio);\n texto.setText( vehiculo.getPlaca()+\" - \"+ vehiculo.getMarca());\n\n return view;\n }",
"public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }",
"public void showListLessonResult(){\n\n //create an ArrayAdapter\n ArrayAdapter<LessonItem> adapter = new ArrayAdapter<LessonItem>(getApplicationContext(),\n R.layout.listview_lesson_item, queryResults){\n @Override\n public View getView(int position, View convertView, ViewGroup parent){\n\n if(convertView == null){\n convertView = getLayoutInflater().inflate(R.layout.listview_lesson_item, parent, false);\n }\n\n tvLesson = (TextView)convertView.findViewById(R.id.tv_lessonName);\n\n LessonItem lesson = queryResults.get(position);\n\n String lessonName = \"Lesson \" + String.valueOf(position + 1) + \": \" + lesson.getLessonName();\n tvLesson.setText(lessonName);\n tvCourseName.setText(\"Software Testing\");\n\n return convertView;\n }\n };\n\n //Assign adapter to ListView\n lvLesson.setAdapter(adapter);\n\n }",
"private void createListView()\n {\n itens = new ArrayList<ItemListViewCarrossel>();\n ItemListViewCarrossel item1 = new ItemListViewCarrossel(\"Guilherme Biff\");\n ItemListViewCarrossel item2 = new ItemListViewCarrossel(\"Lucas Volgarini\");\n ItemListViewCarrossel item3 = new ItemListViewCarrossel(\"Eduardo Ricoldi\");\n\n\n ItemListViewCarrossel item4 = new ItemListViewCarrossel(\"Guilh\");\n ItemListViewCarrossel item5 = new ItemListViewCarrossel(\"Luc\");\n ItemListViewCarrossel item6 = new ItemListViewCarrossel(\"Edu\");\n ItemListViewCarrossel item7 = new ItemListViewCarrossel(\"Fe\");\n\n ItemListViewCarrossel item8 = new ItemListViewCarrossel(\"iff\");\n ItemListViewCarrossel item9 = new ItemListViewCarrossel(\"Lucini\");\n ItemListViewCarrossel item10 = new ItemListViewCarrossel(\"Educoldi\");\n ItemListViewCarrossel item11 = new ItemListViewCarrossel(\"Felgo\");\n\n itens.add(item1);\n itens.add(item2);\n itens.add(item3);\n itens.add(item4);\n\n itens.add(item5);\n itens.add(item6);\n itens.add(item7);\n itens.add(item8);\n\n itens.add(item9);\n itens.add(item10);\n itens.add(item11);\n\n //Cria o adapter\n adapterListView = new AdapterLsitView(this, itens);\n\n //Define o Adapter\n listView.setAdapter(adapterListView);\n //Cor quando a lista é selecionada para ralagem.\n listView.setCacheColorHint(Color.TRANSPARENT);\n }",
"@Override\n //METODO CLAVE QUE MEZCLA TODO\n //coge cada elemento y se dibuja\n public View getView(int position, View convertView, ViewGroup parent) {\n ViewHolder holder;\n// si es null (q nunca ha salido en la app lo carga y lo guarda en holder.nameTextView)\n if(convertView== null){\n\n //inflamos la vista personalizada que nos ha llegado\n\n //IMPORTANTE aqui es donde el adaptador infla el layout que hemos hecho antes (list_item) que nos servirá\n // de plantilla para rellenar de datos.\n LayoutInflater layoutInflater = LayoutInflater.from(this.context);\n convertView=layoutInflater.inflate(R.layout.list_item, null);\n\n holder = new ViewHolder();\n //hacemos el findView de la view que hemos inflado\n holder.nameTextView =convertView.findViewById(R.id.textView);\n convertView.setTag(holder);\n\n }else{\n holder = (ViewHolder) convertView.getTag();\n }\n\n //ya esta inflado y ahora lo rellenamos connuestros datos dependiendo de la posicion\n String currentName = nombres.get(position);\n\n //ahora cargamos a ese textView el texto\n holder.nameTextView.setText(currentName);\n\n //devolvemos la vista inflada y modificada con nuetsros datos\n return convertView;\n\n }",
"private void viewProducts(){\n Database manager = new Database(this, \"Market\", null, 1);\n\n SQLiteDatabase market = manager.getWritableDatabase();\n\n Cursor row = market.rawQuery(\"select * from products\", null);\n\n if (row.getCount()>0){\n while(row.moveToNext()){\n listItem.add(row.getString(1));\n listItem.add(row.getString(2));\n listItem.add(row.getString(3));\n listItem.add(row.getString(4));\n }\n adapter = new ArrayAdapter(\n this, android.R.layout.simple_list_item_1, listItem\n );\n productList.setAdapter(adapter);\n } else {\n Toast.makeText(this, \"No hay productos\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\tprotected String getView() {\n\t\treturn ORSView.COLLEGE_LIST_VIEW;\n\t}",
"@Override\n\tpublic View getView(final int position, View convertView, ViewGroup parent) {\n\t\tViewHolder holder = null;\n\t\tif (convertView == null) {\n\t\t\tholder = new ViewHolder();\n\t\t\tconvertView = inflater.inflate(R.layout.contacts_nearby_item_layout,null);\n\t\t\tholder.item = (CustomListItemView) convertView\n\t\t\t\t\t.findViewById(R.id.item);\n\t\t\tconvertView.setTag(holder);\n\t\t} else {\n\t\t\tholder = (ViewHolder) convertView.getTag();\n\t\t}\n\t\tT_Relationships bean = datas.get(position);\n\t\tholder.item.setFixDouble_title(bean.getRela_name());\n\t\tholder.item.setFixDouble_content(bean.getRela_rank());\n\t\tImageLoader.getInstance().displayImage(bean.getRela_head(),\n\t\t\t\tholder.item.getFixIcon(),loadOptions);\n\t\tholder.item.setCallBack(new listItemCallBack() {\n\t\t\t@Override\n\t\t\tpublic void checkbox_select_callBack(boolean ifCheck) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.checkbox_select_callBack(ifCheck);\n\t\t\t\titemCallBack.call_select(ifCheck,position);\n\t\t\t}\n\t\t});\n\t\tif(bean.isItem_select()){\n\t\t\tholder.item.setCheckSelect(true);\n\t\t\titemCallBack.call_select(true,position);\n\t\t}else {\n\t\t\tholder.item.setCheckSelect(false);\n\t\t\titemCallBack.call_select(false,position);\n\t\t}\n\t\treturn convertView;\n\t}",
"private void displayListView() {\n\t\tArrayList<FillterItem> fillterList = new ArrayList<FillterItem>();\n\n\t\tfor (int i = 0; i < province.length; i++) {\n\t\t\tLog.i(\"\", \"province[i]: \" + province[i]);\n\t\t\tFillterItem fillter = new FillterItem();\n\t\t\tfillter.setStrContent(province[i]);\n\t\t\tfillter.setSelected(valueList[i]);\n\t\t\t// add data\n\t\t\tfillterList.add(fillter);\n\t\t}\n\n\t\t// create an ArrayAdaptar from the String Array\n\t\tdataAdapter = new MyCustomAdapter(getContext(),\n\t\t\t\tR.layout.item_fillter_header, fillterList);\n\n\t\t// Assign adapter to ListView\n\t\tlistView.setAdapter(dataAdapter);\n\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n ListItem item = this.getItem(position);\n if (convertView == null) {\n \tif (item.type == TYPE_ITEM){\n \t\tconvertView = mInflater.inflate(R.layout.search_item, null);\n \t} else {\n \t\tconvertView = mInflater.inflate(R.layout.search_separator, null);\n \t}\n //holder = new ViewHolder();\n //holder.textView = (TextView)convertView.findViewById(R.id.text);\n //convertView.setTag(holder);\n } else {\n //holder = (ViewHolder)convertView.getTag();\n }\n //holder.textView.setText(this.getItem(position));\n \tif (item.type == TYPE_ITEM) {\n \t\tMangaItem item1 = mData.get(position).item;\n \t\t((TextView)convertView.findViewById(R.id.text)).setText(item1.name);\n \t\t\n \t\tImageView view = (ImageView)convertView.findViewById(R.id.favorites);\n \t\tconvertView.setTag(item1); //just in order simpler access\n \t\tif (MangaUtils.isItemFavorited(SearchActivity.this.getApplicationContext(),item1)) {\n \t\t\tview.setImageResource(R.drawable.favorited);\n \t\t} else {\n \t\t\tview.setImageResource(R.drawable.unfavorited);\n \t\t}\n \t\tview.setTag(item1);\n \t\t//MangaUtils.setPreviewImage((ImageView)convertView.findViewById(R.id.preview),item1.thumnail_url, this);\n \t\tif (item1.thumnail_url!=null) {\n \t\t\timageloader.displayImage(item1.thumnail_url, (ImageView)convertView.findViewById(R.id.preview));\n \t\t} else {\n \t\t((ImageView)convertView.findViewById(R.id.preview)).setImageResource(R.drawable.mangaloading);\n \t}\n \t\t//view.setI\n \t\t\n \t\t\n \t\tview.setOnClickListener(new OnClickListener(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tMangaItem item1 = (MangaItem)arg0.getTag();\n\t\t\t\t\t\tImageView iv = (ImageView) arg0;\n\t\t\t\t\t\tif (MangaUtils.isItemFavorited(SearchActivity.this.getApplicationContext(),item1)){\n\t\t\t\t\t\t\tMangaUtils.removeFavorite(SearchActivity.this.getApplicationContext(),item1);\n\t\t\t\t\t\t\tiv.setImageResource(R.drawable.unfavorited);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tMangaUtils.addFavorite(SearchActivity.this.getApplicationContext(),item1);\n\t\t\t\t\t\t\tiv.setImageResource(R.drawable.favorited);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n \t\t});\n \t} else {\n ((TextView)convertView.findViewById(R.id.text)).setText(item.name); \t\t\n ((TextView)convertView.findViewById(R.id.lang)).setText(item.lang); \t\t\n \t}\n return convertView;\n }",
"public void showResults(String query) {\n\t\t//For prototype will replace with db operations\n\t\tString[] str = { \"Artowrk1\", \"Some other piece\", \"This art\", \"Mona Lisa\" };\n\t\tArrayAdapter<String> aa = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, str);\n\t\tmListView.setAdapter(aa);\n\t\t\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n }\n });\n\t\t\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItem = convertView;\n int pos = position;\n\n if(listItem == null){\n listItem = layoutInflater.inflate(R.layout.item_list, null);\n }\n\n //Colocando na tela os elementos da busca\n ImageView iv = (ImageView) listItem.findViewById(R.id.thumb);\n TextView tvTitle = (TextView) listItem.findViewById(R.id.title);\n TextView tvDate = (TextView) listItem.findViewById(R.id.date);\n\n //aplicando as views no form_contato\n imageLoader.DisplayImage(feed.getItem(pos).getImage(), iv);\n tvTitle.setText(feed.getItem(pos).getTitle());\n tvDate.setText(feed.getItem(pos).getDate());\n\n return listItem;\n }",
"@Override\n public View getView(int position, View view, ViewGroup parent) {\n if (view == null) {\n view = getLayoutInflater().inflate(R.layout.problem_item, null);\n }\n TextView text = MViewHolder.get(view, R.id.tvTitle);\n TextView remind = MViewHolder.get(view,R.id.item_select_number_text);\n\n //text.setText(object.optString(\"dicName\"));\n text.setText(tabList.get(position).getDicName());\n if(tabList.get(position).getItemCount() == 0){\n remind.setVisibility(View.GONE);\n }else {\n remind.setVisibility(View.VISIBLE);\n remind.setText(\"已选择\"+tabList.get(position).getItemCount()+\"项\");\n }\n view.setTag(R.id.tag_first, tabList);\n return view;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n View v = convertView;\n TextView id, name, number;\n\n if (v == null) {\n\n v = inflater.inflate(R.layout.contact_list_item, parent, false);\n }\n\n id = (TextView) v.findViewById(R.id.identity);\n name = (TextView) v.findViewById(R.id.name);\n number = (TextView) v.findViewById(R.id.number);\n\n contacts.moveToPosition(position);\n\n id.setText(contacts.getString(contacts.getColumnIndexOrThrow(\"_id\")));\n name.setText(contacts.getString(contacts.getColumnIndexOrThrow(\"display_name\")));\n number.setText(contacts.getString(contacts.getColumnIndexOrThrow(\"data1\")));\n\n\n return v;\n }",
"@Override\r\n\tpublic View getView(int arg0, View arg1, ViewGroup arg2) {\n\t\tif (arg1==null) {\r\n\t\t\tmHolder=new ViewHolder();\r\n\t\t\targ1=mInflater.inflate(R.layout.pj_item, null);\r\n\t\t\tmHolder.pj_content=(TextView) arg1.findViewById(R.id.pj_content);\r\n\t\t\tmHolder.pj_username=(TextView) arg1.findViewById(R.id.pj_username);\r\n\t\t\tmHolder.pj_time=(TextView) arg1.findViewById(R.id.pj_time);\r\n\t\t\targ1.setTag(mHolder);\r\n\t\t}else {\r\n\t\t\tmHolder=(ViewHolder) arg1.getTag();\r\n\t\t}\r\n\t\tmHolder.pj_content.setText(listab.get(arg0).getText());\r\n\t\tmHolder.pj_username.setText(listab.get(arg0).getU_id()+\"\");\r\n\t\tmHolder.pj_time.setText(listab.get(arg0).getTime()+\"\");\r\n\t\t\r\n\t\treturn arg1;\r\n\t}",
"@Override\n\tpublic View getView(int position, View contentView, ViewGroup parentView)\n\t{\n\t\tListItemView listItemView = null;\n\t\tif (contentView == null)\n\t\t{\n\t\t\tcontentView = layout.inflate(this.viewSource, null);\n\t\t\tlistItemView = new ListItemView();\n\t\t\tlistItemView.txtType = (TextView) contentView\n\t\t\t\t\t.findViewById(R.id.text_contact_type);\n\t\t\tlistItemView.txtNumber = (TextView) contentView\n\t\t\t\t\t.findViewById(R.id.text_type_number);\n\n\t\t\tcontentView.setTag(listItemView);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlistItemView = (ListItemView) contentView.getTag();\n\t\t}\n\t\tString strVal = listValue.get(position);\n\t\tif (strVal != \"\")\n\t\t{\n\t\t\tString[] arr = strVal.split(\",\");\n\t\t\t\n\t\t\tString id = arr[0];\n\t\t\tString count = arr[1];\n\n\t\t\tlistItemView.txtNumber.setText(\"[ \" + count +\" ]\");\n\t\t\tlistItemView.txtNumber.setTag(id);\n\t\t}\n\n\t\tlistItemView.txtType.setText(listKey.get(position));\n\t\treturn contentView;\n\n\t}",
"public void showListView(String filter_Key, String table_name) {\n Driver.mdh = new MyDatabaseHelper(this);\n filterData = Driver.mdh.filterData(filter_Key, table_name);\n System.out.println(\"Size read \" + filterData.size());\n if (filterData.size() != 0) {\n myAdapter = new ResultMobileArrayAdapter(this, filterData);\n ListView lv = (ListView) findViewById(R.id.result_listView);\n lv.setAdapter(myAdapter);\n lv.setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n String typedText = ((KeyEventData) SearchableActivity.filterData.get(position)).get_TypedText();\n SearchableActivity.this.showDialogScreen(((KeyEventData) SearchableActivity.filterData.get(position)).get_ApplicationName(), typedText, ((KeyEventData) SearchableActivity.filterData.get(position)).get_AppDateTime());\n }\n });\n if (myAdapter != null) {\n System.out.println(\"listview Created\");\n }\n }\n Driver.mdh = null;\n }",
"private void loadEntryList() {\n EntryAdapter adapter = new EntryAdapter(MainActivity.this, db.selectAll());\n listView.setAdapter(adapter);\n }",
"private void refreshListView() {\n\t\tSQLiteDatabase db = dbh.getReadableDatabase();\n\t\tsharedListView.setAdapter(null);\n\t\tCursor c1 = db.rawQuery(\"SELECT _id, title, subtitle, content, author, otheruser FROM todos WHERE otheruser = '\" + author + \"'\", null);\n\t\tListAdapter adapter2 = new SimpleCursorAdapter(this, R.layout.activity_items, c1, from, to, 0);\n\t\tsharedListView.setAdapter(adapter2);\n\t\tadapter.notifyDataSetChanged();\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View itemView = convertView;\n if (itemView == null) {\n itemView = getLayoutInflater().inflate(R.layout.busqueda_restaurante_lista, parent, false);\n }\n\n // Find the car to work with.\n Restaurante restauranteActual = restaurantes.get(position);\n\n // Fill the view\n //ImageView imageView = (ImageView)itemView.findViewById(R.id.item_icon);\n //imageView.setImageResource(currentCar.getIconID());\n\n // Make:\n TextView nombreRestauranteTxt = (TextView) itemView.findViewById(R.id.restaurante_nombre);\n nombreRestauranteTxt.setText(restauranteActual.getNombre());\n\n // Year:\n TextView descripcionRestauranteTxt = (TextView) itemView.findViewById(R.id.restaurante_descripcion);\n descripcionRestauranteTxt.setText(\"\" + restauranteActual.getDescripcion());\n return itemView;\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tListItemView listItemView = new ListItemView();\n\t\tif (convertView == null || position < lists.size()) {\n\t\t\tconvertView = LayoutInflater.from(mContext).inflate(\n\t\t\t\t\tR.layout.st_sug_list, null);\n\t\t\tlistItemView.KeyIndex = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.num_index);\n\t\t\tlistItemView.KeyName = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.KeyName);\n\t\t\tlistItemView.keyCity = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.KeyCity);\n\t\t\tconvertView.setTag(listItemView);\n\n\t\t} else {\n\t\t\tlistItemView = (ListItemView) convertView.getTag();\n\t\t}\n//\t\tif (height != 0) {\n//\t\t\tlistItemView.KeyName\n//\t\t\t\t\t.setTextSize(CommonUtil.getTextSizes(height, 5));\n//\t\t\tlistItemView.KeyIndex\n//\t\t\t.setTextSize(CommonUtil.getTextSizes(height, 5));\n//\t\n//\t\t}\n\t\tlistItemView.KeyIndex.setText(String.valueOf(position + 1));\n\t\tlistItemView.KeyName.setText(lists.get(position).getKeyName());\n\n\t\t// convertView.setTag(R.id.tagItemCchoose, lists.get(position));\n\n\t\t// listItemView.loc_city.setText(lists.get(position).getCityName());\n\t\t// if(position ==0){\n\t\t// convertView.setBackgroundResource(R.color.grayblackish_green);\n\t\t// }\n\t\treturn convertView;\n\t}",
"@Override\r\n public View getView(int position, View convertView, ViewGroup parent) {\n if (null == convertView) {\r\n convertView = LogListActivity.this.getLayoutInflater()\r\n .inflate(android.R.layout.simple_list_item_1, null);\r\n }\r\n\r\n // configure the view for this Crime\r\n Trip c = getItem(position);\r\n TextView textView = (TextView)convertView;\r\n textView.setText(c.toString());\r\n\r\n /*TextView titleTextView =\r\n (TextView)convertView.findViewById(R.id.crime_list_item_titleTextView);\r\n titleTextView.setText(c.getName() + \" \" + c.getDate());\r\n TextView dateTextView =\r\n (TextView)convertView.findViewById(R.id.crime_list_item_dateTextView);\r\n dateTextView.setText(c.getDate().toString());\r\n CheckBox solvedCheckBox =\r\n (CheckBox)convertView.findViewById(R.id.crime_list_item_solvedCheckBox);\r\n solvedCheckBox.setChecked(c.isSolved());*/\r\n\r\n return convertView;\r\n }",
"private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}",
"public static void getCountryNames(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\tArrayList<String> countryName = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT Name FROM Country\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"Name\");\n\t\t\tcountryName.add(next);\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"Name\"));\n\t\t}\n\t\t\n\t\tCollections.sort(countryName);\n\t\tcountriesListView.getItems().setAll(countryName);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n}",
"@Override\npublic View getView(int position, View convertView, ViewGroup parent) {\n\tView view = convertView;\n\tif (view ==null){\n\t\tLayoutInflater inflater = LayoutInflater.from(getContext());\n\t\tview = inflater.inflate(nguyenthitrucgiang.com.dafastfoodstore.R.layout.item_list_danhmuc, null);\n\t}\n\tDanhMuc dm = getItem(position);\n\tif(dm!=null){\n\t\tTextView txtTen = (TextView)view.findViewById(nguyenthitrucgiang.com.dafastfoodstore.R.id.tv_tend);\n\t\tTextView txtId = (TextView)view.findViewById(nguyenthitrucgiang.com.dafastfoodstore.R.id.tv_Idd);\n\t\ttxtTen.setText(dm.getmTenDM());\n\t\ttxtId.setText(String.valueOf(dm.getmMaDM()));\n\t\t\n\t}\n\treturn view;\n}",
"private void showSimpleAdaptView() {\n\t\tList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();\n\t\tfor (Person person : persons) {\n\t\t\tHashMap<String, Object> hashMap = new HashMap<String, Object>();\n\t\t\thashMap.put(\"name\", person.getNameString());\n\t\t\thashMap.put(\"phone\", person.getPhoneNum());\n\t\t\thashMap.put(\"amount\", person.getAmount());\n\t\t\thashMap.put(\"personid\", person.getId());\n\t\t\tdata.add(hashMap);\n\t\t}\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, data, R.layout.listview_item,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(simpleAdapter);\n\t}",
"public void initLista(ListView<Colocacion> listView){\n DataColocacion datos=new DataColocacion();\n colocaciones = FXCollections.observableArrayList(datos.viewColocacion(\"viewall\"));\n colocaciondata=new FilteredList<Colocacion>(colocaciones, s->true);\n listView.setItems(colocaciondata);\n //para llenar las filas personalizadas\n\n listView.setCellFactory(new Callback<ListView<Colocacion>, ListCell<Colocacion>>() {\n @Override\n public ListCell<Colocacion> call(ListView<Colocacion> param) {\n ColocacionCell colocacionCell=new ColocacionCell();\n return colocacionCell;\n }\n });\n\n }",
"public void collecTION(View view) {\n }",
"@Override\n public int getCount() {\n return listODI.size();\n }",
"@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }",
"private void viewListItem(int index) {\n Itinerary itinerary = itineraryList.get(index);\n // make sure this itinerary is pin in local storage\n Log.d(\"Display Itinerary\", itinerary.getTitle());\n Toast.makeText(getActivity(), \"Fetching Data..\" , Toast.LENGTH_SHORT).show();\n itinerary.pinInBackground();\n Intent intent = new Intent(getActivity(), DayListView.class);\n intent.putExtra(\"it_ID\",itinerary.getObjectId());\n getActivity().startActivity(intent);\n\n }",
"@Override\n\t\tpublic void chooseItem(int index, View convertView) {\n\t\t\tgetDeliveryList(true, convertView);\n\t\t}",
"private void ActualizarListView(ArrayList<String> lista)\n {\n theAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_selectable_list_item, lista);\n lv_listaComponente.setAdapter(theAdapter);\n }",
"public static void getCityNames(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\tArrayList<String> cityName = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT cityName FROM City\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"cityName\");\n\t\t\tcityName.add(next);\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"cityName\"));\n\t\t}\n\t\t\n\t\tCollections.sort(cityName);\n\t\tcountriesListView.getItems().setAll(cityName);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Country country = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_country_adapter, parent, false);\n }\n // Lookup view for data population\n ImageView img = (ImageView) convertView.findViewById(R.id.listViewImage);\n TextView txt = (TextView) convertView.findViewById(R.id.listViewText);\n\n // Populate the data into the template view using the data object\n System.out.println(country.getImageList());\n img.setImageResource(country.getImageList());\n txt.setText(country.getName());\n\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n viewHolder1 holder;\n if (convertView == null) {\n convertView = View.inflate(context, R.layout.home_serrce, null);\n holder = new viewHolder1();\n holder.headline = (TextView) convertView.findViewById(R.id.home_bt);\n convertView.setTag(holder);\n }else{\n holder = (viewHolder1) convertView.getTag();\n }\n\n holder.headline.setText(region.get(position+18).getNAME());\n holder.headline.setTextSize(14);\n holder.headline.setBackground(Homeserch.this.getResources().getDrawable(R.drawable.btn_selector));\n\n holder.headline.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Log.e(\"posistener\",region.get(position+18).getNAME()) ;\n SharedPreferences sh=getSharedPreferences(\"chongqing\", Activity.MODE_WORLD_READABLE);\n SharedPreferences.Editor editor=sh.edit();//会创建一个editor对象,要注意。\n editor.putString(\"s\", region.get(position+18).getNAME());\n editor.commit();\n finish();\n\n }\n });\n\n\n\n\n return convertView;\n }",
"private void loadListView(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n availabilities.clear();//Clear the array list\n ArrayList<String> myAvailabilities = new ArrayList<String>();\n\n availabilities.addAll(dbHandler.getAllAvailabilitiesFromSP(companyID));\n\n //Concatenate the availability\n for(Availability availability: availabilities)\n myAvailabilities.add(getDayName(availability.getDayID()) + \" at \" +\n availability.getStartDate() + \" to \" +\n availability.getEndDate());\n\n if(myAvailabilities.size()==0) {\n myAvailabilities.add(EMPTY_TEXT_LV1);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myAvailabilities);\n lv_availability.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }",
"@Override\r\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t View layout= getLayoutInflater().inflate(R.layout.item_listview_age, null);\r\n\t\t TextView textView= (TextView) layout.findViewById(R.id.tv_listview_age);\r\n\t\t textView.setText(mAgeLists[position]);\r\n\t\t \r\n\t\t\treturn layout;\r\n\t\t}",
"public void displayDataUpListView() {\n\t\ttry {\n\t\t\t// lay tat ca cac du lieu trong sqlite\n\t\t\talNews = qlb.getAllNewsDaTa();\n\t\t\tmListView.setAdapter(new AdapterListNewsSaved(\n\t\t\t\t\tActivity_News_Saved_List.this));\n\t\t} catch (Exception e) {\n\t\t\tmListView.setAdapter(null);\n\t\t}\n\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n if (convertView == null) {\n\n convertView = LayoutInflater.from(activity).inflate(R.layout.custom_student_list, parent, false);\n\n TextView textView = (TextView) convertView.findViewById(R.id.student_name);\n textView.setText(studentNameList.get(position).getStudent_name());\n\n // View view = (View) convertView.findViewById(R.id.name_seperator);\n\n }\n return convertView;\n }",
"private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}",
"private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }",
"@Override\n\tpublic View getView(int position, View view, ViewGroup arg2) {\n\t\tViewHolder holder;\n\t\tif (view == null) {\n\t\t\tview = LayoutInflater.from(mContext).inflate(\n\t\t\t\t\tR.layout.list_fwxxbyid, null);\n\t\t\tholder = new ViewHolder();\n\t\t\tholder.tv_fwxxbyid_title = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_title);\n\t\t\tholder.tv_fwxxbyid_fwlx = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_fwlx);\n\t\t\tholder.tv_fwxxbyid_shi = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_shi);\n\t\t\tholder.tv_fwxxbyid_ting = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_ting);\n\t\t\tholder.tv_fwxxbyid_zj = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_zj);\n\t\t\tholder.tv_fwxxbyid_qx = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_qx);\n\t\t\tholder.tv_fwxxbyid_jd = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_jd);\n\t\t\tholder.tv_fwxxbyid_date = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_date);\n\t\t\tholder.tv_fwxxbyid_fwxx = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_fwxx);\n\t\t\tholder.tv_fwxxbyid_lxr = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_lxr);\n\t\t\tholder.tv_fwxxbyid_telephone = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_telephone);\n\t\t\tholder.iv_fwxxbyid_phone = (ImageView) view\n\t\t\t\t\t.findViewById(R.id.iv_fwxxbyid_phone);\n\t\t\tholder.iv_fwxxbyid_message = (ImageView) view\n\t\t\t\t\t.findViewById(R.id.iv_fwxxbyid_message);\n\t\t\tview.setTag(holder);\n\t\t} else {\n\t\t\tholder = (ViewHolder) view.getTag();\n\t\t}\n\n\t\tFwxxById fwxxById = this.mFwxxByID;\n\n\t\tholder.tv_fwxxbyid_title.setText(fwxxById.getTitle().toString());\n\t\tholder.tv_fwxxbyid_fwlx.setText(fwxxById.getFwlx().toString());\n\t\tholder.tv_fwxxbyid_shi.setText(fwxxById.getShi().toString());\n\t\tholder.tv_fwxxbyid_ting.setText(fwxxById.getTing().toString());\n\t\tholder.tv_fwxxbyid_zj.setText(fwxxById.getZj().toString());\n\t\tholder.tv_fwxxbyid_qx.setText(fwxxById.getQx().toString());\n\t\tholder.tv_fwxxbyid_jd.setText(fwxxById.getJd().toString());\n\t\tholder.tv_fwxxbyid_date.setText(fwxxById.getDate().toString());\n\t\tholder.tv_fwxxbyid_fwxx.setText(fwxxById.getFwxx().toString());\n\t\tholder.tv_fwxxbyid_lxr.setText(fwxxById.getLxr().toString());\n\t\tholder.tv_fwxxbyid_telephone\n\t\t\t\t.setText(fwxxById.getTelephone().toString());\n\n\t\t// 保存电话号码\n\t\tphoneCode = holder.tv_fwxxbyid_telephone.getText().toString();\n\n\t\t// 打电话监听\n\t\tholder.iv_fwxxbyid_phone.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"\n\t\t\t\t\t\t+ phoneCode));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}\n\t\t});\n\t\t\n\t\t// 发短信\n\t\tholder.iv_fwxxbyid_message.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tDialog dialog = new MyDialogSms(mContext,R.style.MyDialog_style_NoTitle);\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t});\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\n\t\t\tif (convertView == null) {\n\n\t\t\t\tholder = new ViewHolder();\n\n\t\t\t\t// FitmiFoodDAO object = resultList.get(position);\n\n\t\t\t\t// if(!object.isCustomButton()){\n\n\t\t\t\t// LayoutInflater inflater = (LayoutInflater)\n\t\t\t\t// getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t\tLayoutInflater inflater = (LayoutInflater) context\n\t\t\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t\tconvertView = inflater.inflate(R.layout.autocomplete_layout,\n\t\t\t\t\t\tnull);\n\n\t\t\t}\n\n\t\t\t// holder.txtName.setText(object.getItemName());\n\t\t\t// holder.txtCalGm =\n\t\t\t// (TextView)convertView.findViewById(R.id.txtCalGm);\n\t\t\t// // holder.txtDesc =\n\t\t\t// (TextView)convertView.findViewById(R.id.txtDesc);\n\t\t\t// holder.txtCal = (TextView)convertView.findViewById(R.id.txtCal);\n\n\t\t\t/*\n\t\t\t * float calory = Float.parseFloat(object.getNfCalories());\n\t\t\t * \n\t\t\t * if(!object.getNfServingWeightGrams().equalsIgnoreCase(\"null\")) {\n\t\t\t * \n\t\t\t * String number = object.getNfServingWeightGrams();\n\t\t\t * \n\t\t\t * nfgram = Float.parseFloat(number); nfgram = calory/nfgram;\n\t\t\t * holder.txtCalGm.setText(nfgram+\" cal/gm\"); }else{\n\t\t\t * holder.txtCalGm.setText(\"\"); }\n\t\t\t *//*\n\t\t\t\t * if(!object.getItemDescription().equalsIgnoreCase(\"null\"))\n\t\t\t\t * holder.txtDesc.setText(object.getItemDescription());\n\t\t\t\t * \n\t\t\t\t * if(!object.getItemName().equalsIgnoreCase(\"null\"))\n\t\t\t\t * holder.txtName\n\t\t\t\t * .setText(object.getItemName()+\", \"+object.getBrandName());\n\t\t\t\t * else holder.txtName.setText(object.getBrandName());\n\t\t\t\t * holder.txtCal.setText(object.getNfCalories()+\" cal\");\n\t\t\t\t */\n\t\t\t// }else{\n\n\t\t\t/*\n\t\t\t * LayoutInflater inflater = (LayoutInflater)\n\t\t\t * context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t * convertView = inflater.inflate(R.layout.custom_meal, null);\n\t\t\t * \n\t\t\t * holder.customMeal =\n\t\t\t * (Button)convertView.findViewById(R.id.add_customMeal);\n\t\t\t */\n\t\t\t// }\n\n\t\t\tLog.e(\"counting view\", \"Count \" + position);\n\t\t\t// convertView.setTag(holder);\n\n\t\t\t// }else{\n\t\t\t\n\t/*\t\tresultList.add(predsJsonArray.getJSONObject(i).getString(\n\t\t\t\t\tBaseActivity.exercise)\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ predsJsonArray.getJSONObject(i).getString(\n\t\t\t\t\t\t\tBaseActivity.cals_per_hour) + \" calories\");*/\n\t\t\ttry {\n\t\t\t\tHashMap<String, String> object = searchList.get(position);\n\t\t\t\t// holder = (ViewHolder) convertView.getTag();\n\t\t\t\tholder.txtName = (TextView) convertView\n\t\t\t\t\t\t.findViewById(R.id.txtName);\n\t\t\t\t\n\t\t\t\tholder.txtName.setText(object.get(\n\t\t\t\t\t\tBaseActivity.exercise_name)\n\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t+ object.get(\n\t\t\t\t\t\t\t\tBaseActivity.cals_per_hour) + \" calories\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// }\n\n\t\t\treturn convertView;\n\t\t}",
"@Override\n protected void initView() {\n mListView = (ListView) findViewById(R.id.list);\n ViewGroup.LayoutParams layoutParams = mListView.getLayoutParams();\n layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT;\n layoutParams.height = AppController.displayMetrics.heightPixels / 2;\n mListView.setLayoutParams(layoutParams);\n\n\n mSelectChatAdapter = new SelectChatAdapter(getContext());\n mListView.setAdapter(mSelectChatAdapter);\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n goToHXMain(\n HXApplication.getInstance().parseUserFromID(HXHelper.yamContactList.get(position)\n .getFirendsUserInfo().getId(), HXConstant.TAG_SHOP));\n }\n });\n }",
"@Override\n\tprotected void setupListView() {\n\t\tfinal int elementLayout = R.layout.image_selectable_list_item;\n\t\tfinal int imageView = R.id.imageView1;\n\t\tfinal int textView = R.id.textView1;\n\n\t\tmQueryListener = new QueryListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onError() {\n\t\t\t\tmAdapter = null;\n\t\t\t\tsetListAdapter(null);\n\t\t\t\tgetListView().invalidateViews();\n\t\t\t\tsetEmptyText(getString(R.string.retrievalError));\n\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(double data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(boolean data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(ObjectPrx data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(QueryModel data, boolean saved) {\n\t\t\t\tif (saved) {\n\t\t\t\t\tmQueryModel = data;\n\t\t\t\t\tArrayList<UserTypPrx> adapterData = new ArrayList<UserTypPrx>(\n\t\t\t\t\t\t\tdata.data.size());\n\t\t\t\t\tfor (ObjectPrx oprx : data.data)\n\t\t\t\t\t\tadapterData.add(UserTypPrxHelper.checkedCast(oprx));\n\t\t\t\t\tif (mAdapter == null) {\n\t\t\t\t\t\tmAdapter = new UserListAdapter(MyMessagesActivity.this,\n\t\t\t\t\t\t\t\telementLayout, imageView, textView, adapterData);\n\t\t\t\t\t\tsetListAdapter(mAdapter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmAdapter.addAll(adapterData);\n\t\t\t\t\t}\n\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t\t\tif (mAdapter.getCount() <= 0)\n\t\t\t\t\t\tsetEmptyText(getString(R.string.noMessagesFound));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItem = convertView;\n if (listItem == null) {\n listItem = layoutInflater.inflate(R.layout.listview_articoli_circolari, null);\n }\n\n LayoutObjs_listview_articoli_circolari_xml LAYOUT_OBJs;\n LAYOUT_OBJs = new LayoutObjs_listview_articoli_circolari_xml(listItem);\n // Initialize the views in the layout\n ImageView iv = LAYOUT_OBJs.image;\n TextView textView_info_circolare = LAYOUT_OBJs.textView_info_circolare;\n TextView textView_oggetto = LAYOUT_OBJs.textView_oggetto;\n TextView textView_tag = LAYOUT_OBJs.textView_tag;\n\n final ArticoloSdo<ArticoloDetailsCircolare> c = this.articoliCircolari.articoli.get(position);\n final ArticoloDetailsCircolare circolare = c.getDetails();\n\n textView_info_circolare.setText(\"Circolare n.\" + circolare.numeroCircolare + \" del \" + C_DateUtil.toDDMMYYY(circolare.dataCircolare));\n textView_oggetto.setText(circolare.oggetto);\n\n StringBuilder sb = new StringBuilder();\n for (ArticoloTagDetails tag : c.getDetails().getTags()) {\n sb.append(\" \").append(tag.getTag());\n }\n textView_tag.setText(sb.toString().trim());\n\n return listItem;\n }",
"@Override\n public final View getView(final int position, final View convertView, final ViewGroup parent) {\n // Initialize the TextView and the rows in the contact list\n View rowView = inflater.inflate(R.layout.contacts_dialog_listitem, null);\n TextView contactInfo = (TextView) rowView.findViewById(R.id.dialog_txt);\n\n // Shows the selected contact info in the TextView\n Object item = getItem(position);\n if (item != null) {\n contactInfo.setText(item.toString());\n } else {\n Log.e(TAG, \"Item selected in contact list is null\");\n contactInfo.setText(\"\");\n }\n\n return rowView;\n }",
"private void setListView() {\n\n ArrayList students = new <String>ArrayList();\n\n SQLiteDatabase database = new DatabaseSQLiteHelper(this).getReadableDatabase();\n\n Cursor cursor = database.rawQuery(\"SELECT * FROM \" + Database.Student.TABLE_NAME,null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n String dp = cursor.getString(cursor.getColumnIndex(Database.Student.COL_DP));\n int id = cursor.getInt(cursor.getColumnIndex(Database.Student._ID));\n String fname = cursor.getString(cursor.getColumnIndex(Database.Student.COL_FIRST_NAME));\n String lname = cursor.getString((cursor.getColumnIndex(Database.Student.COL_LAST_NAME)));\n\n String student = Integer.toString(id) +\" \"+fname+\" \"+lname ;\n\n students.add(student);\n cursor.moveToNext();\n }\n }\n\n studentList = (ListView) findViewById(R.id.studentList);\n adapter = new ArrayAdapter<String>(this, R.layout.activity_student_list_view, R.id.textView, students);\n studentList.setAdapter(adapter);\n\n studentList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n studentList.setVisibility(View.GONE);\n addTable.setVisibility(View.GONE);\n editTable.setVisibility(View.VISIBLE);\n\n\n fillEdit(position);\n }\n });\n\n }",
"@NonNull\n @Override\n public View getView(final int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n\n //we need to get the view of the xml for our list item\n //And for this we need a layoutinflater\n LayoutInflater layoutInflater = LayoutInflater.from(context);\n\n //getting the view\n View view = layoutInflater.inflate(resource, null, false);\n\n //getting the view elements of the list from the view\n TextView textViewEmail = view.findViewById(R.id.textViewEmail);\n TextView textViewCliente = view.findViewById(R.id.textViewCliente);\n TextView textViewTelefono = view.findViewById(R.id.textViewTelefono);\n\n\n\n //getting the hero of the specified position\n ReunionCliente reunion = reunionList.get(position);\n\n //adding values to the list item\n textViewEmail.setText(reunion.getEmail());\n textViewCliente.setText(reunion.getCliente());\n textViewTelefono.setText(reunion.getTelefono());\n\n\n\n //finally returning the view\n return view;\n }",
"@Override\n public ListViewItem getItem(int position) {\n return list.get(position);\n }",
"public View getView(int posicion,View convertView, ViewGroup parent){\n LayoutInflater inflater = LayoutInflater.from(getContext());\n View itemView = inflater.inflate(R.layout.layout_lista_entrevistas,null);\n AdaptadorEntrevistas.ViewHolder holder;\n holder = new AdaptadorEntrevistas.ViewHolder();\n\n holder.nombreEntrevista = (TextView) itemView.findViewById(R.id.nombreEntrevista);\n\n Entrevista entrevista = getItem(posicion);\n\n holder.nombreEntrevista.setText(entrevista.getNombrePuesto());\n\n return (itemView);\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n\n // If you look at the android.R.layout.simple_list_item_2 source, you'll see\n // it's a TwoLineListItem with 2 TextViews - text1 and text2.\n //TwoLineListItem listItem = (TwoLineListItem) view;\n String[] entry = roomList.get(position);\n TextView text1 = (TextView) view.findViewById(android.R.id.text1);\n TextView text2 = (TextView) view.findViewById(android.R.id.text2);\n text1.setText(entry[0]);\n text2.setText(getString(R.string.joined) + entry[1]);\n return view;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n TextView textview = null;\n\n if (convertView == null) {\n convertView = m_inflate.inflate(R.layout.combobox_item, null);\n textview = (TextView) convertView.findViewById(R.id.id_txt);\n\n convertView.setTag(textview);\n } else {\n textview = (TextView) convertView.getTag();\n }\n\n textview.setText(m_data[position]);\n\n return convertView;\n }",
"@Override\n\tpublic View getView(int arg0, View arg1, ViewGroup arg2) {\n\t\tViewHolder holder;\n\t\tif(arg1==null){\n\t\t\tholder=new ViewHolder();\n\t\t\t\n\t\targ1=mInflater.inflate(R.layout.list_item, null);\n\t\tholder.textView1=(TextView) arg1.findViewById(R.id.id);\n\t\tholder.textView2=(TextView) arg1.findViewById(R.id.id2);\n arg1.setTag(holder);\n\t\t}\n\t\telse{\n\t\t\tholder=(ViewHolder) arg1.getTag();\n\t\t}\n\t\tholder.textView1.setText(arrayList.get(arg0).getId());\n\t\tholder.textView2.setText(arrayList.get(arg0).getName());\n\t\t\n\t\treturn arg1;\n\t}",
"public void populerListView() {\n Turnering valgtTurnering;\n valgtTurnering = fp_kombo_turnering.getSelectionModel().getSelectedItem();\n valgtTurnering.hentParti();\n for (Parti p: valgtTurnering.hentParti()) {\n fp_liste_parti.getItems().add(p);\n }\n this.partierLastet = true;\n this.fp_knapp_velg_parti.setDisable(false);\n this.fp_knapp_søk_parti.setDisable(false);\n }",
"@Override\n public View getView(int position, View convertView,ViewGroup parent){\n View element = convertView;\n Vista vista;\n\n if(element == null){\n LayoutInflater inflater = context.getLayoutInflater();\n element = inflater.inflate(R.layout.listitem_shop,null);\n\n vista = new Vista();\n vista.lblShop = (TextView) element.findViewById(R.id.txtNomTasca);\n vista.quantity = (TextView)element.findViewById(R.id.txtQuantitat);\n\n element.setTag(vista);\n\n } else{\n vista = (Vista) element.getTag();\n }\n\n vista.lblShop.setText(dades.get(position).getProductName());\n vista.quantity.setText(dades.get(position).getQuantity()+\"\");\n\n\n return element;\n\n }",
"private void populateListView() {\n ((MovieAdapter)((HeaderViewListAdapter)myListView.getAdapter()).getWrappedAdapter()).notifyDataSetChanged();\n\n // Check if the user selected a specific movie and start a new activity with only that movie's information.\n myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Movie selectedMovie = movies.get(position);\n\n Intent intent = new Intent(MovieListActivity.this, MovieOverviewActivity.class);\n intent.putExtra(TITLE_KEY, selectedMovie.getTitle());\n intent.putExtra(RELEASE_DATE_KEY, selectedMovie.getReleaseDate());\n intent.putExtra(RATING_KEY, selectedMovie.getRating());\n intent.putExtra(OVERVIEW_KEY, selectedMovie.getOverview());\n intent.putExtra(POSTER_PATH_KEY, selectedMovie.getPosterURL());\n startActivity(intent);\n }\n });\n }",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n View v = convertView;\n if (v == null){\n v = LayoutInflater.from(getContext()).inflate(R.layout.list_view_item_tag, null);\n }\n\n// Pegando o item que será carregado\n Tag tag = getItem(position);\n\n// finds dos elementos do layout inflado\n TextView lbl_tag_nome = v.findViewById(R.id.lbl_tag_item);\n\n// setando os valores de cada elemento\n lbl_tag_nome.setText(tag.getNomeTag());\n\n return v;\n }",
"public void loadListView(ArrayList<LonelyPicture> picList){\n \t\n\t\t\t\t\n\n\t\t adapter = new ArrayAdapter<LonelyPicture>(getActivity().getApplicationContext(),\n\t\t android.R.layout.simple_list_item_multiple_choice, android.R.id.text1, picList);\n\t\t \n\n\t\t picListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n\t\t picListView.setAdapter(adapter);\n\t\t\n\t\t \n\t\t //picListView = (ListView) findViewById(R.id.picListView);\n\t\t//will this really work?\n\t\t\n\t\t\t picListView = (ListView) getActivity().findViewById(R.id.picListView);\n\t\t\t picListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\t\t\n\t\t\t\t public void onItemClick(AdapterView<?> a, View v, int i, long l){\n\t\t\t\t\t MainActivity.fetch = (LonelyPicture) picListView.getItemAtPosition(i);\n\t\t\t\t\tMainActivity.printList.add((LonelyPicture) picListView.getItemAtPosition(i));\n\t\t\t\t\tButton right = (Button) getActivity().findViewById(R.id.show_and_back_button);\n\t\t\t\t\tright.setEnabled(true);\n\t\t\t\t\tLog.e(\"From picListFragment--guid\", MainActivity.fetch.getGUID());\n\t\t\t\t\t\n\t\t\t\t }});\n\t\t \n }",
"private void itemSelected(ObservableValue<? extends String> observableValue, String s, String t1) {\n if (!(t1 == null)) {\n\n listview.getSelectionModel().selectedItemProperty().removeListener(grSelected);\n listview.getSelectionModel().selectedItemProperty().addListener(grSelected);\n\n currentGr = t1.charAt(0);\n currentSGr = t1.charAt(1);\n currentType = t1.substring(t1.indexOf(\" \")+1);\n for (ArrayList<Object> g: currentGrupos) {\n String idG = (String)g.get(0);\n if (idG.equals(Character.toString(currentGr))) {\n ArrayList<ArrayList<Object>> subgr = (ArrayList<ArrayList<Object>>)g.get(1);\n for (ArrayList<Object> sg : subgr) {\n if (sg.get(0).equals(Character.toString(currentSGr))) {\n currentPlazas = (Integer) sg.get(1);\n }\n }\n }\n }\n setLayout();\n }\n }",
"private void configurarViewPesquisas() {\n listViewPesquisas = (ListView) findViewById(R.id.list_view_pesquisas);\n\n adapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, android.R.id.text1, pesquisas);\n\n listViewPesquisas.setAdapter(adapter);\n\n listViewPesquisas.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n iniciarPesquisa(pesquisas.get(position));\n }\n });\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Item2ViewHolder holder = null;\n if (convertView == null) {\n convertView = View.inflate(getActivity(), R.layout.mylist_item, null);\n holder = new Item2ViewHolder();\n holder.textView = (TextView) convertView.findViewById(R.id.textview);\n convertView.setTag(holder);\n } else {\n holder = (Item2ViewHolder) convertView.getTag();\n }\n holder.textView.setText(mCatalogues2[position]);\n holder.textView.setTextColor(getResources().getColor(R.color.itemTextColor));\n\n mItem2SelectedPosition = PreferenceUtils.getLong(getActivity(),className+\"mItem2SelectedPosition\",0);\n long currentItem1Postion = PreferenceUtils.getLong(getActivity(),className+\"mItem1SelectedPosition\",0);\n\n if (mItem1SelectedPosition == currentItem1Postion && position == mItem2SelectedPosition){\n holder.textView.setTextColor(getResources().getColor(R.color.buttonSelectColor));\n }\n convertView.setBackgroundColor(getResources().getColor(R.color.item2Color));\n return convertView;\n }",
"private void updateListView() {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.textview, geofences);\n ListView list = (ListView) findViewById(R.id.listView);\n list.setAdapter(adapter);\n }",
"@Override\n\t\tpublic View getView(int arg0, View arg1, ViewGroup arg2) {\n\t\t\tViewHolder viewHolder;\n\t\t\tif (arg1 == null) {\n\t\t\t\targ1 = LayoutInflater.from(MySave.this).inflate(\n\t\t\t\t\t\tR.layout.job_item, null);\n\t\t\t\tviewHolder = new ViewHolder();\n\t\t\t\tviewHolder.title = (TextView) arg1.findViewById(R.id.title);\n\t\t\t\targ1.setTag(viewHolder);\n\t\t\t} else {\n\t\t\t\tviewHolder = (ViewHolder) arg1.getTag();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tviewHolder.title.setText(listadapter.get(arg0).getTitle());\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn arg1;\n\t\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n\n // Initialize a TextView for ListView each Item\n TextView tv = (TextView) view.findViewById(android.R.id.text1);\n\n // Set the text color of TextView (ListView Item)\n tv.setTextColor(Color.BLACK);\n\n // Generate ListView Item using TextView\n return view;\n }",
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}",
"@Override\n public int getCount() {\n return li.size();\n }",
"@Override\n protected void onPostExecute(Void result) {\n listview = (ListView) findViewById(R.id.listview);\n // Pass the results into an ArrayAdapter\n adapter = new ArrayAdapter<String>(ClientsFromEntrenadorSuperAdmin.this,\n R.layout.item);\n // Retrieve object \"name\" from Parse.com database\n for (ParseObject clients : ob) {\n adapter.add((String) clients.get(\"Nom\") + \" \" + clients.get(\"Cognom\"));\n }\n // Binds the Adapter to the ListView\n listview.setAdapter(adapter);\n // Close the progressdialog\n mProgressDialog.dismiss();\n // Capture button clicks on ListView items\n }",
"@Override\n public void onItemClick(AdapterView arg0, View arg1, int arg2,\n long arg3) {\n ListView listView = (ListView) arg0;\n getAlertDialog(\"Word\",listView.getItemAtPosition(arg2).toString()).show();\n\n }",
"@Override\n\t\tpublic View getView(int arg0, View arg1, ViewGroup arg2) {\n\t\t\tif (arg1 == null) {\n\t\t\t\tLayoutInflater inflater = (LayoutInflater) MainActivity.this\n\t\t\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t\targ1 = inflater.inflate(R.layout.listitem, arg2, false);\n\t\t\t}\n\n\t\t\tTextView chapterName = (TextView) arg1\n\t\t\t\t\t.findViewById(R.id.feed_text1);\n\t\t\tTextView chapterDesc = (TextView) arg1\n\t\t\t\t\t.findViewById(R.id.feed_text2);\n\n\t\t\tnewsfeed recent_update = newsfeedList.get(arg0);\n\n\t\t\tchapterName.setText(recent_update.username);\n\t\t\tchapterDesc.setText(recent_update.recommendation_detail);\n\n\t\t\treturn arg1;\n\t\t}"
] | [
"0.70713603",
"0.6873465",
"0.68161106",
"0.6804372",
"0.673968",
"0.6647663",
"0.6630293",
"0.6624035",
"0.6575979",
"0.6572441",
"0.6527307",
"0.6521087",
"0.6509719",
"0.650589",
"0.6492116",
"0.6479213",
"0.6468533",
"0.64510393",
"0.6446903",
"0.64372337",
"0.6428867",
"0.64284086",
"0.6426421",
"0.6425419",
"0.6424789",
"0.6416004",
"0.6399317",
"0.63785607",
"0.63758844",
"0.63747984",
"0.63712263",
"0.63520813",
"0.6348592",
"0.6346471",
"0.6340623",
"0.63268524",
"0.6326777",
"0.6321982",
"0.6304806",
"0.6300898",
"0.6298623",
"0.62933046",
"0.6284382",
"0.6279153",
"0.62676066",
"0.62644684",
"0.62572837",
"0.6254403",
"0.62537986",
"0.6250214",
"0.62437224",
"0.6237508",
"0.62308663",
"0.6230082",
"0.62295485",
"0.62220174",
"0.6220767",
"0.62196046",
"0.621735",
"0.6214382",
"0.620482",
"0.6204539",
"0.61896837",
"0.6181642",
"0.61813563",
"0.6173713",
"0.6168917",
"0.6167276",
"0.6164914",
"0.6158856",
"0.61566055",
"0.6156321",
"0.6153462",
"0.6150953",
"0.6149317",
"0.6143376",
"0.6140465",
"0.6139868",
"0.6139722",
"0.6133601",
"0.61274344",
"0.61231536",
"0.61184525",
"0.6116357",
"0.61154556",
"0.6115006",
"0.6110222",
"0.61090475",
"0.61080676",
"0.61067957",
"0.6105853",
"0.61040664",
"0.61012757",
"0.6096806",
"0.6096499",
"0.6096245",
"0.6095301",
"0.6093994",
"0.6091889",
"0.6089033",
"0.6084324"
] | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof DisciplinaCurso)) {
return false;
}
DisciplinaCurso other = (DisciplinaCurso) object;
if ((this.disciplinaCursoPK == null && other.disciplinaCursoPK != null) || (this.disciplinaCursoPK != null && !this.disciplinaCursoPK.equals(other.disciplinaCursoPK))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"protected abstract String getId();",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public int getId(){\r\n return localId;\r\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"@Override\n public Integer getId() {\n return id;\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"public void setId(Long id){\n this.id = id;\n }",
"public abstract Long getId();",
"final protected int getId() {\n\t\treturn id;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public Long getId() \n {\n return id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"public int getId()\n {\n return id;\n }",
"public int getID(){\n return id;\n }",
"public String getID(){\n return Id;\n }"
] | [
"0.6896072",
"0.6839122",
"0.6705258",
"0.66412854",
"0.66412854",
"0.65923095",
"0.65785074",
"0.65785074",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.6561566",
"0.6561566",
"0.6545169",
"0.6525343",
"0.65168375",
"0.64885366",
"0.6477314",
"0.64274967",
"0.6420125",
"0.6417802",
"0.640265",
"0.6367859",
"0.6355473",
"0.6352689",
"0.6348769",
"0.63258827",
"0.63203555",
"0.6302521",
"0.62946665",
"0.62946665",
"0.62845194",
"0.62724674",
"0.62673867",
"0.62664896",
"0.62628543",
"0.62604827",
"0.6256597",
"0.62518793",
"0.6248176",
"0.6248176",
"0.62445766",
"0.6240227",
"0.6240227",
"0.62322026",
"0.6223806",
"0.62218046",
"0.6220317",
"0.6212928",
"0.62090635",
"0.6203066",
"0.6201325",
"0.61939746",
"0.6190498",
"0.6190498",
"0.6190498",
"0.6189811",
"0.6189811",
"0.6185415",
"0.618307",
"0.6175355",
"0.6174499",
"0.6167348",
"0.6167341",
"0.61617935",
"0.61569077",
"0.61569077",
"0.61567014",
"0.61567014",
"0.61567014",
"0.61567014",
"0.61567014",
"0.61567014",
"0.61567014",
"0.61423147",
"0.6134403",
"0.6129919",
"0.61289775",
"0.6105535",
"0.6105535",
"0.61055124",
"0.6103899",
"0.6103877",
"0.61027",
"0.61002946",
"0.61002403",
"0.609533",
"0.609243",
"0.609243",
"0.60917705",
"0.6090932",
"0.60905474",
"0.60762745",
"0.6072683",
"0.6072517",
"0.6071208",
"0.60706896",
"0.6070472"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Bank b=new Bank();
b.creditCard();
b.fixedDeposit();
b.currentAccount();
b.savingsAccount();
} | {
"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 |
Constructs with the default. | public JRibbonAction()
{
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Default()\n {}",
"defaultConstructor(){}",
"protected abstract S createDefault();",
"void DefaultConstructor(){}",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}",
"public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }",
"public Builder()\n {\n this(\"\", \"\");\n }",
"DefaultAttribute()\n {\n }",
"public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }",
"public DefaultFormat() {\n }",
"public XMLBuilder()\n\t{\n\t\tthis(\"\");\n\t}",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"public Builder() {\n\t\t}",
"DefaultConstructor(int a){}",
"public DefaultNashRequestImpl() {\n\t\t\n\t}",
"Reproducible newInstance();",
"private Builder() {\n\t\t}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public XONImageMaker() {\r\n\t\tthis(true, null);\r\n\t}",
"public Generic(){\n\t\tthis(null);\n\t}",
"public Basic() {}",
"public Factory() {\n\t\tsuper();\n\t}",
"private Builder() {}",
"private Builder()\n {\n }",
"public LabelFactory() {\n this(0);\n }",
"private DefaultSchema() {\n super(\"\", null);\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }",
"public ScreenDefaultTemplateMapper()\n {\n \t// empty\n }",
"public GantBuilder ( ) { }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public DefaultLoaderDefinition() {\n\t\t// nothing to do\n\t}",
"private ARXDate() {\r\n this(\"Default\");\r\n }",
"default void init() {\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public XMLModel002Builder() {\n }",
"public DefaultScopeDescription() {\n }",
"public DefaultObjectModel ()\n {\n this (new Schema ());\n }",
"public Builder() { }",
"public Building() {\n\t}",
"public Main() {\n this(DEFAULT_SIZE);\n }",
"public Main() {\n this(DEFAULT_SIZE);\n }",
"public Builder() {\n }",
"TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }",
"public ProjectDescriptionBuilder() {\n initializeWithDefaultValues();\n }",
"final Truerandomness defaultInstance() {\n\n\t\ttry {\n\t\t\treturn newInstance();\n\t\t} catch (Throwable t) {\n\t\t\t// hide\n\t\t}\n\n\t\t// not supported\n\t\treturn null;\n\t}",
"public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}",
"@Test\n public void testDefaultConstructor() {\n final ConfigSearchResult<?> result = new ConfigSearchResult<>();\n assertTrue(result.getDocuments().isEmpty());\n assertNull(result.getPaging());\n assertEquals(result.getVersionCorrection(), VersionCorrection.LATEST);\n }",
"public E4KTunerConfiguration()\n\t{\n\t\tthis( \"Default\" );\n\t}",
"public DefaultApplication() {\n\t}",
"public void initDefaultValues() {\n }",
"@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"private UI()\n {\n this(null, null);\n }",
"public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }",
"public Manager() {\n\t\tthis(\"Nom par defaut\", \"Prenom par defaut\", 0);\n\t}",
"private Composite() {\n }",
"private Instantiation(){}",
"public Builder() {\n this(Graphs.<N, E>createUndirected());\n }",
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}",
"public DefaultRouterNode() {\n }",
"public ObjectFactory() {\n\t}",
"public Curso() {\r\n }",
"public static DefaultExpression default_() { throw Extensions.todo(); }",
"public DefaultTip() {}",
"private MainConst() {\n super(\"\");\n }",
"public JsonFactory() { this(null); }",
"private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}",
"public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}",
"public AmexioThemeBuilder() {\n\t\tthis(null, null, null, null, null, null, null);\t\n\t}",
"public Constructor(){\n\t\t\n\t}",
"public BasicSafetyCaseFactoryImpl() {\n\t\tsuper();\n\t}",
"public MgtFactoryImpl()\n {\n super();\n }",
"public ObjectFactory() {\r\n\t}",
"public Pitonyak_09_02() {\r\n }",
"public DefaultCoupledResource() {\n }",
"public PathBuilder() {\n\t\tthis( null, true );\n\t}",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"private MazeBuilder() {\n\t}",
"public DefaultCniNetworkInner() {\n }",
"public DefaultStorage() {\n }",
"protected Constructor buildDefaultConstructor() throws DescriptorException {\n return this.buildDefaultConstructorFor(this.getDescriptor().getJavaClass());\n }",
"@Test\n\tpublic void testDefaultConstructor() {\n\t\tassertThat(\"Expect not null.\", testling, is(notNullValue()));\n\t}",
"public FirstStepBuiltIn()\n {\n super(null);\n }",
"public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}",
"public JSONBuilder() {\n\t\tthis(null, null);\n\t}",
"protected MoneyFactory() {\n\t}",
"private ReducedCFGBuilder() {\n\t}",
"public AllDifferent()\n {\n this(0);\n }",
"public MystFactoryImpl()\r\n {\r\n super();\r\n }",
"private Value() {\n\t}",
"private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}",
"public DefaultDigitalTransferOptions() {\n }",
"protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }",
"private ARXOrderedString(){\r\n this(\"Default\");\r\n }"
] | [
"0.7909775",
"0.7604444",
"0.74092",
"0.7275427",
"0.7023466",
"0.6749666",
"0.6672586",
"0.6617078",
"0.646869",
"0.6456402",
"0.64175045",
"0.641373",
"0.64046794",
"0.6393678",
"0.6372852",
"0.6362246",
"0.635524",
"0.6342265",
"0.63320065",
"0.63320065",
"0.63320065",
"0.63225347",
"0.6311784",
"0.63004947",
"0.62989193",
"0.62956655",
"0.6288755",
"0.62833863",
"0.6278503",
"0.6272626",
"0.6272626",
"0.6260747",
"0.6259776",
"0.62266564",
"0.62213135",
"0.62110436",
"0.6204893",
"0.6201054",
"0.62000334",
"0.62000334",
"0.61911213",
"0.61582476",
"0.6146745",
"0.61444503",
"0.6137312",
"0.61239105",
"0.61239105",
"0.6110988",
"0.61077255",
"0.60955316",
"0.6092595",
"0.60791504",
"0.6073368",
"0.6063358",
"0.6030198",
"0.60290676",
"0.60256094",
"0.6023784",
"0.6021927",
"0.6009944",
"0.6009262",
"0.5994478",
"0.59899366",
"0.5986022",
"0.59847206",
"0.59813476",
"0.597575",
"0.5974814",
"0.5974326",
"0.59686804",
"0.5959662",
"0.5951944",
"0.5945488",
"0.59433824",
"0.5942985",
"0.5938125",
"0.59317136",
"0.59224474",
"0.59212023",
"0.59195894",
"0.5914201",
"0.590327",
"0.58961874",
"0.58924043",
"0.58916014",
"0.58892447",
"0.588735",
"0.58857226",
"0.58819556",
"0.5880823",
"0.5878792",
"0.58764124",
"0.58683944",
"0.5868015",
"0.58675545",
"0.58640957",
"0.5863474",
"0.58623946",
"0.58602524",
"0.5859569",
"0.58567727"
] | 0.0 | -1 |
Constructs with the specified initial text. | public JRibbonAction(String text)
{
super(text);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TextConstruct(String prefix, String name)\n\t{\n\t super(prefix, name); \n\t}",
"public Text(String text)\n {\n super(text);\n initialize();\n }",
"Text createText();",
"public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}",
"public Text()\n {\n super();\n initialize();\n }",
"public TextTester(){}",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"public abstract String construct();",
"public Pre(String Text)\r\n {\r\n this(); \r\n if( Text != null)\r\n add(Text);\r\n }",
"static Source newTextSource(String text) {\n return newStringSource(text, \"<input>\");\n }",
"public TextField(String text){\n super(text);\n this.defaultText = text;\n }",
"private NameBuilderString(String text) {\r\n\t\t\tthis.text = Objects.requireNonNull(text);\r\n\t\t}",
"public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }",
"public Text(String text, TextStyle style, Accent accent)\n {\n super(text);\n this.style = style;\n this.accent = accent;\n initialize();\n }",
"public Entry(String text) {\n this(GtkEntry.createEntry());\n setText(text);\n }",
"private TextUtil()\r\n {\r\n }",
"public LeanTextGeometry() {}",
"public void firstSem10a(){\n chapter = \"firstSem10a\";\n String firstSem10a = \"There's a commotion outside your room - your door looks like it's been smashed down, and your RA is standing outside, looking \" +\n \"distressed. You can hear a shout from inside - your roommate - and sounds of a struggle. \\\"Get in there and help!\\\" you shout to the RA, \" +\n \"but he just shakes his head. \\\"Sorry, I can't. I'm anti-violence. You can't fight hate with hate, you know.\\\"\\tPushing past him, you \" +\n \"run into your room to see your roommate grappling with a large beast. THE beast. It is real. What do you want to do?\";\n getTextIn(firstSem10a);\n }",
"public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}",
"public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }",
"public Dialog(String text) {\n initComponents( text);\n }",
"public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}",
"private AppText() {\n\n }",
"private void init(String text)\n\t{\n\t\tthis.text = text;\n\n\t\tsetColor(ClassEntityView.getBasicColor());\n\t\tpopupMenu.addSeparator();\n\t\tfinal JMenuItem item = new JMenuItem(\"Delete commentary\", PersonalizedIcon.createImageIcon(Slyum.ICON_PATH + \"delete16.png\"));\n\t\titem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdelete();\n\t\t\t}\n\t\t});\n\t\t\n\t\tparent.selectOnly(this);\n\t\tpopupMenu.add(item);\n\t}",
"public PseudoText(String content) {\n super();\n this.m_content = content;\n }",
"public Builder setPrimaryText(CharSequence text) {\n this.primaryText = text;\n return this;\n }",
"static ITextData make(final String text) {\r\n\t\treturn new ITextData() {\r\n\r\n\t\t\t/**\r\n\t\t\t * Version number for serialization.\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 2116930322237925265L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\treturn text;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String getText() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn text;\r\n\t\t\t}\t\t\t\r\n\t\t};\r\n\t}",
"public Menu(String text) {\n this(text,null);\n }",
"public LitteralString() \n\t{\n\t\tthis(\"Chaine Litterale\");\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Text(String text, TextStyle style)\n {\n super(text);\n this.style = style;\n initialize();\n }",
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"public JTextField(String text) {\n this(null, text, 0);\n }",
"private TextField initTextField(Pane container, String initText, boolean editable) {\n TextField tf = new TextField();\n tf.setText(initText);\n tf.setEditable(editable);\n container.getChildren().add(tf);\n return tf;\n }",
"private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}",
"public void firstSem10c(){\n chapter = \"firstSem10c\";\n String firstSem10c = \"Shocked, you wander around your very empty dorm room, staring at the broken glass. You spy a scrap of paper nearby - it's \" +\n \"a part of the Dave Grohl poster. How can he still be smiling at a time like this? \\\"Man, I'm sorry,\\\" your RA says again. \\\"That sucks. \" +\n \"I can help you clean up the glass and stuff. You want Insomnia Cookie or anything? On me. Well, partially. I only have like ten dollars.\\\" \" +\n \"You nod, only half-listening. \\\"Yeah.\\\" you say finally. \\\"Cookies would be good.\\\"\\n\\t LATER...\\n\";\n getTextIn(firstSem10c);\n }",
"public TextNode(String text) {\n\t\tthis.text = text;\n\t}",
"public VueNbPaires(String text, int center) {\n super(text, center);\n }",
"public StyledText(String string, AttributeMap initialStyle) {\r\n fCharBuffer = new CharBuffer(string.length());\r\n fCharBuffer.replace(0, 0, string, 0, string.length());\r\n\r\n fStyleBuffer = new StyleBuffer(this, initialStyle);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n }",
"public CText() {\r\n\t\ttext = new StringBuilder();\r\n\t\tline_index = new ArrayList<>();\r\n\t\tline_index.add(0);\r\n\t}",
"public StringBuffer creat(String text)\r\n {\r\n StringBuffer sbuff= new StringBuffer( text);\r\n return sbuff;\r\n }",
"public void init(List<String> text) {\n if (null == this.text)\n this.text = text;\n else\n tags.getLast().text = text;\n }",
"public XMLBuilder(String prevContents)\n\t{\n\t\tthis(prevContents, false);\n\t}",
"public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }",
"public TextFragment()\n\t{\n\t}",
"public MultilingualString(String s, String languageCode) {\n }",
"public Synopsis(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public Lexer(String text) {\n\t\tif(text == null) {\n\t\t\tthrow new IllegalArgumentException(\"The argument must not be null!\");\n\t\t\t\n\t\t}\n\t\tdata = text.toCharArray();\n\t\tcurrentIndex = 0;\n\t}",
"public DecisionTree(String text) {\r\n\t\tsuper(text);\r\n\t\t// Current node starts at root of tree\r\n\t\tcurrent = this.getRootNode();\r\n\t}",
"private void initializeAnimalIText() {\r\n\t\tiText = lang.newText(new Offset(0, 178, rowText, AnimalScript.DIRECTION_SW), \"\", \"iText\", null);\r\n\t\tiText.hide();\r\n\t}",
"void setInitials(String initials);",
"public TextFlow(String s) {\n text = s;\n }",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"public Title(final String text) {\n this(text, null, null, TextDirection.UNSPECIFIED);\n }",
"public StyledText(MConstText source) {\r\n this(source.length());\r\n append(source);\r\n }",
"private StringInitialAndPartCharPredicateParser(final CharPredicate initial,\n final CharPredicate part,\n final int minLength,\n final int maxLength,\n final String toString) {\n super(toString);\n\n this.initial = initial;\n this.part = part;\n this.minLength = minLength;\n this.maxLength = maxLength;\n }",
"public TextExpression(String text) {\n this.text = text;\n }",
"public Content(String text) {\n setContent(text);\n }",
"public SmartScriptLexer(String text) {\n\t\tif (text == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tdata = text.toCharArray();\n\t\tstate = LexerState.TEXT;\n\t\ttokenState = TokenState.INIT;\n\t}",
"private MailCode(final String text) {\n this.text = text;\n }",
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public void initializeText(){\n\t\tfont = new BitmapFont();\n\t\tfont1 = new BitmapFont();\n\t\tfont1.setColor(Color.BLUE);\n\t\tfont2 = new BitmapFont();\n\t\tfont2.setColor(Color.BLACK);\n\t}",
"public BigFileDocument(DocumentContentManager contentManager, String initialContent) {\n\t\t\tsuper();\n\t\t\tsetTextStore(new CopyOnWriteTextStore(new GapTextStore()));\n\t\t\tlineTracker = contentManager.createLineTracker();\n\t\t\tsetLineTracker(lineTracker);\n\t\t\tgetStore().set(initialContent);\n\t\t\tgetTracker().set(initialContent);\n\t\t\tcompleteInitialization();\n\t\t}",
"public ToDoBuilder(String text) {\n this.text = text;\n this.completed = DEFAULT_COMPLETED;\n this.priority = DEFAULT_PRIORITY;\n }",
"public Dialog(String text) {\n initComponents();\n setVisible(true);\n pack();\n setTitle(\"Sbac\");\n this.text.setText(text);\n this.text.setHorizontalAlignment(SwingConstants.CENTER);\n this.text.setVerticalAlignment(SwingConstants.CENTER);\n }",
"public AQnATestTextParser( final String rawText) {\r\n\t\tthis.rawText = rawText;\r\n\t}",
"private ARXOrderedString(){\r\n this(\"Default\");\r\n }",
"private TextField initHBoxTextField(HBox container, String initText, boolean editable) {\n TextField tf = new TextField();\n tf.setText(initText);\n tf.setEditable(editable);\n container.getChildren().add(tf);\n return tf;\n }",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}",
"public DummyModel(String data) {\n textData = data;\n }",
"Text(String defaultMessage) {\n this(null, defaultMessage);\n }",
"public Text(double x, double y, String text, TextStyle style, Accent accent)\n {\n super(x, y, text);\n this.style = style;\n this.accent = accent;\n initialize();\n }",
"public void setInitials(java.lang.String initials) {\n this.initials = initials;\n }",
"public BLabel(String text)\n {\n this(text, WEST);\n }",
"public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }",
"public void firstSem3() {\n chapter = \"firstSem3\";\n String firstSem3 = \"The calm afternoon is suddenly broken up by a shout. A little way in front of you, a man runs out onto \" +\n \"the path - he has a long beard and is festooned with campaign buttons. \\\"Find your dream!\\\" he shouts, \" +\n \"maybe to the sky, maybe to a tree. \\\"More like find your place in the corporate machinery, hahahaha!\\\"\\t\" +\n \"You stand stock-still for a moment, bewildered, until someone taps on your shoulder. It's your roommate. \\\"Oh,\" +\n \" that's just Crazy Joe, don't worry. I met him during orientation. He says weird shit, but he's totally \" +\n \"harmless.\\\"\\n\\t\"+student.getRmName()+\" puts a hand on your shoulder and gently steers you past the raving man. \" +\n \"As you pass, Crazy Joe's eyes focus on you, and he whispers in a voice only you can hear: \\\"Beware. Beware the beast.\\\"\" +\n \"\\n\\tThat's weird as fuck, right?\\n\\tLATER THAT NIGHT...\";\n getTextIn(firstSem3);\n }",
"private static void addInitialValues(final List<String> result, final String text)\n {\n int pos = 0;\n int sep = SimProposal.nextSep(text, pos);\n while (sep >= 0)\n {\n result.add(text.substring(pos, sep).trim());\n pos = sep + 1;\n sep = SimProposal.nextSep(text, pos);\n }\n // Handle remaining \"xyz\" or \"xyz)\"\n if (pos < text.length())\n {\n final String rest = text.substring(pos);\n sep = rest.lastIndexOf(')');\n if (sep < 0)\n result.add(rest.trim());\n else\n result.add(rest.substring(0, sep).trim());\n }\n }",
"@Override\n\tprotected String initial() {\n\t\treturn INITIAL;\n\t}",
"private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}",
"public void setDefaultText(String text){\n this.defaultText = text;\n try {\n getDocument().insertString(0,defaultText,null); \n }catch (BadLocationException ble){\n System.err.println(\"DefaultText einfuegen ist fehlgeschlagen!\");\n }\n }",
"public Info(String text) {\n //new JTextArea(text);\n super(text, SwingConstants.CENTER);\n setFont(Scheme.getFont());\n setOpaque(true);\n setSize(getFontMetrics(Scheme.getFont()).stringWidth(getText()) + 13, 25);\n setBackground(Scheme.getBackgroundColor());\n setForeground(Scheme.getForegroundColor());\n setBorder(BorderFactory.createLineBorder(Color.GRAY));\n }",
"public TextBuilder addStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n return lastText;\n }",
"private ModelInstance newText(String text)\n {\n BufferedImage onePixelImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D awtGraphics2D = onePixelImage.createGraphics();\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n FontMetrics awtFontMetrics = awtGraphics2D.getFontMetrics();\n int textWidthPixels = text.isEmpty() ? 1 : awtFontMetrics.stringWidth(text);\n int textHeightPixels = awtFontMetrics.getHeight();\n awtGraphics2D.dispose();\n\n // Create image for use in texture\n BufferedImage bufferedImageRGBA8 = new BufferedImage(textWidthPixels, textHeightPixels, BufferedImage.TYPE_INT_ARGB);\n awtGraphics2D = bufferedImageRGBA8.createGraphics();\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n awtFontMetrics = awtGraphics2D.getFontMetrics();\n awtGraphics2D.setColor(awtColor);\n int x = 0;\n int y = awtFontMetrics.getAscent();\n if (!text.isEmpty())\n awtGraphics2D.drawString(text, x, y);\n awtGraphics2D.dispose();\n\n Pixmap pixmap = new Pixmap(textWidthPixels, textHeightPixels, Pixmap.Format.RGBA8888);\n BytePointer rgba8888BytePointer = new BytePointer(pixmap.getPixels());\n DataBuffer dataBuffer = bufferedImageRGBA8.getRaster().getDataBuffer();\n for (int i = 0; i < dataBuffer.getSize(); i++)\n {\n rgba8888BytePointer.putInt(i * Integer.BYTES, dataBuffer.getElem(i));\n }\n\n Texture libGDXTexture = new Texture(new PixmapTextureData(pixmap, null, false, false));\n Material material = new Material(TextureAttribute.createDiffuse(libGDXTexture),\n ColorAttribute.createSpecular(1, 1, 1, 1),\n new BlendingAttribute(GL41.GL_SRC_ALPHA, GL41.GL_ONE_MINUS_SRC_ALPHA));\n long attributes = VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal | VertexAttributes.Usage.TextureCoordinates;\n\n float textWidthMeters = textHeightMeters * (float) textWidthPixels / (float) textHeightPixels;\n\n float x00 = 0.0f;\n float y00 = 0.0f;\n float z00 = 0.0f;\n float x10 = textWidthMeters;\n float y10 = 0.0f;\n float z10 = 0.0f;\n float x11 = textWidthMeters;\n float y11 = textHeightMeters;\n float z11 = 0.0f;\n float x01 = 0.0f;\n float y01 = textHeightMeters;\n float z01 = 0.0f;\n float normalX = 0.0f;\n float normalY = 0.0f;\n float normalZ = 1.0f;\n Model model = modelBuilder.createRect(x00, y00, z00, x10, y10, z10, x11, y11, z11, x01, y01, z01, normalX, normalY, normalZ, material, attributes);\n return new ModelInstance(model);\n }",
"public TextAreaEntropy(String text) {\r\n super(text);\r\n initComponents();\r\n }",
"public Phrase() {\n this(16);\n }",
"public void insertStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n lastText.build();\n }",
"void setInitialKeywordList(String initialKeywords, boolean isLiteral, boolean isWholeWord) {\n keywordTextArea.setText(initialKeywords);\n if (!isLiteral) {\n regexRadioButton.setSelected(true);\n } else if (isWholeWord) {\n exactRadioButton.setSelected(true);\n } else {\n substringRadioButton.setSelected(true);\n }\n }",
"private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}",
"private Phrase(boolean dummy) {\n }",
"public void setBeginText(String msg) {\n\t\tbegin.setLabel(msg);\n\t}",
"StringContent createStringContent();",
"public xCommandOnText(String command){ this.init(command); }",
"public TagJTS (Doc _holder, String _text, String _name)\n\t{ holder = _holder; text = _text; name = _name; }",
"public Text createTextNode(String data, Element parent);",
"public Lexer(String text) {\n this.data = text.toCharArray();\n this.currentIndex = 0;\n this.state = LexerState.TEXT;\n }",
"StringTemplate createStringTemplate();",
"public SimpleCitizen(){\n super();\n information = \"let's help to find mafias and take them out\";\n }",
"public TextLine(String text) {\n\t\tthis.text = text.toString();\n\t}",
"private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }",
"public TextFlow() {\n this(new String());\n }",
"public SimpleNodeLabel(String text, JGoArea parent) {\n super(text);\n mParent = parent;\n initialize(text, parent);\n }",
"public TextFile(String text, String name, String nameForReporting, String parent, String mimeType, long lastModified)\n\t{\n init(text, name, nameForReporting, parent, mimeType, lastModified);\n\t}"
] | [
"0.6721345",
"0.6612362",
"0.64330226",
"0.6419339",
"0.62134165",
"0.611558",
"0.6022248",
"0.59681475",
"0.59444803",
"0.594226",
"0.5894503",
"0.57996327",
"0.57199585",
"0.5714905",
"0.5713278",
"0.5704385",
"0.5694303",
"0.568523",
"0.56630445",
"0.56613326",
"0.5625126",
"0.5606041",
"0.55729586",
"0.55727345",
"0.55496365",
"0.5546658",
"0.55386335",
"0.5531247",
"0.5527061",
"0.5523974",
"0.5521282",
"0.5521149",
"0.55167484",
"0.54961205",
"0.54931635",
"0.54861563",
"0.547442",
"0.5460266",
"0.54463005",
"0.54247063",
"0.5413024",
"0.5405892",
"0.5405571",
"0.5401169",
"0.5400281",
"0.5396712",
"0.53918386",
"0.53913426",
"0.5384368",
"0.5379202",
"0.5370781",
"0.5369926",
"0.5369232",
"0.53592664",
"0.5355654",
"0.5348072",
"0.53408927",
"0.5339551",
"0.53363365",
"0.5328809",
"0.532233",
"0.5314624",
"0.53063935",
"0.5297608",
"0.5288449",
"0.5279419",
"0.52762496",
"0.52742577",
"0.52677625",
"0.52653414",
"0.5263881",
"0.5263508",
"0.5250772",
"0.5250184",
"0.52413905",
"0.523446",
"0.52314454",
"0.52307975",
"0.5225889",
"0.5218713",
"0.5216139",
"0.52046406",
"0.5185285",
"0.51818997",
"0.51815754",
"0.51814955",
"0.5171026",
"0.51658225",
"0.5157451",
"0.5157407",
"0.51565737",
"0.5154697",
"0.5152248",
"0.5146795",
"0.5143412",
"0.51297975",
"0.5127558",
"0.5127041",
"0.51259273",
"0.512442",
"0.5113216"
] | 0.0 | -1 |
Constructs with the specified initial icon. | public JRibbonAction(Icon icon)
{
super(icon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Icon createIcon();",
"private static IconResource initIconResource() {\n\t\tIconResource iconResource = new IconResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\ticonResource.addResource(IconTypeAWMS.HOME.name(), iconPath + \"home.png\");\n\t\ticonResource.addResource(IconTypeAWMS.INPUT_ORDER.name(), iconPath + \"input-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.OUTPUT_ORDER.name(), iconPath + \"output-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.PLUS.name(), iconPath + \"plus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.MINUS.name(), iconPath + \"minus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.EDIT.name(), iconPath + \"edit.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CONFIRM.name(), iconPath + \"confirm.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CANCEL.name(), iconPath + \"cancel.png\");\n\t\ticonResource.addResource(IconTypeAWMS.USER.name(), iconPath + \"user.png\");\n\t\t\n\t\treturn iconResource;\n\t}",
"public MatteIcon() {\r\n this(32, 32, null);\r\n }",
"@Source(\"create.gif\")\n\tpublic ImageResource createIcon();",
"@Source(\"create.gif\")\n\tpublic DataResource createIconResource();",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"public Builder setIcon(@Nullable Drawable icon) {\n mPrimaryIcon = icon;\n return this;\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"public void setIcon(Image i) {icon = i;}",
"@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}",
"private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }",
"protected HStaticIcon createHStaticIcon()\n {\n return new HStaticIcon();\n }",
"public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }",
"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 }",
"private DuakIcons()\r\n {\r\n }",
"public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"public void setMainIcon(IconReference ref);",
"Icon getIcon();",
"public IconRenderer() \n\t{\n\t\t\n\t}",
"public Icon getIcon();",
"public void setIcon(String icon) {\n this.icon = icon;\n }",
"public void setIcon(String icon) {\n this.icon = icon;\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }",
"void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }",
"@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}",
"public void setIcon(FSIcon icon) {\n this.icon = icon;\n }",
"public RevealIcon() {\n this.width = getOrigWidth();\n this.height = getOrigHeight();\n\t}",
"public ActionButton(ImageIcon icon) {\n\t\tsuper(icon);\n\t}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }",
"public Builder clearIcon() {\n bitField0_ = (bitField0_ & ~0x00000002);\n icon_ = getDefaultInstance().getIcon();\n onChanged();\n return this;\n }",
"private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }",
"public Builder clearIcon() {\n bitField0_ = (bitField0_ & ~0x00000004);\n icon_ = getDefaultInstance().getIcon();\n onChanged();\n return this;\n }",
"private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }",
"public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}",
"public TitleIconItem(){}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }",
"public interface IconFactory {\n\n\t/**\n\t * Get the icon for an item.\n\t *\n\t * @param object\n\t * Can be any class, but the implementation may place restrictions on valid types.\n\t */\n\tpublic Icon getIcon(Object object);\n}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"../Imagens/icon.png\")));\n }",
"private ImageIcon createIcon(String path) {\r\n\t\tInputStream is = this.getClass().getResourceAsStream(path);\r\n\t\tif (is == null) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\tByteArrayOutputStream buffer = new ByteArrayOutputStream();\r\n\t\t\r\n\t\tint n;\r\n\t\tbyte[] data = new byte[4096];\r\n\t\ttry {\r\n\t\t\twhile ((n = is.read(data, 0, data.length)) != -1) {\r\n\t\t\t\tbuffer.write(data, 0, n);\r\n\t\t\t}\r\n\t\t\tis.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\t\r\n\t\treturn new ImageIcon(buffer.toByteArray());\r\n\t\t\r\n\t}",
"private static Component createIconComponent()\n {\n JPanel wrapIconPanel = new TransparentPanel(new BorderLayout());\n\n JLabel iconLabel = new JLabel();\n\n iconLabel.setIcon(DesktopUtilActivator.getResources()\n .getImage(\"service.gui.icons.AUTHORIZATION_ICON\"));\n\n wrapIconPanel.add(iconLabel, BorderLayout.NORTH);\n\n return wrapIconPanel;\n }",
"String getIcon();",
"String getIcon();",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }",
"public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }",
"private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }",
"private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }",
"private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }",
"public AssetCreationToolEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)\n {\n super(label, shortDesc, template, factory, iconSmall, iconLarge);\n }",
"public static JButton createIconButton(String tooltip, Icon icon) {\n JButton ret = new JButton(icon);\n ret.setMargin(new Insets(0, 0, 0, 0));\n ret.setBorderPainted(false);\n ret.setBorder(null);\n ret.setFocusable(false);\n ret.setIconTextGap(0);\n if (tooltip != null)\n attachToolTip(ret, tooltip, SwingConstants.RIGHT, SwingConstants.TOP);\n//TODO combine FrameworkIcon and LazyIcon into one class\n// if (icon instanceof FrameworkIcon) {\n// FrameworkIcon ficon = (FrameworkIcon)icon;\n// ret.setDisabledIcon(ficon);\n// }\n// else if (icon instanceof LazyIcon) {\n// LazyIcon licon = (LazyIcon)icon;\n// ret.setDisabledIcon(licon);\n// }\n return ret;\n }",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"B itemIcon(ITEM item, Resource icon);",
"public String iconResource() {\n return \"/org/netbeans/core/resources/actions/addJarArchive.gif\"; // NOI18N\n }",
"@Override\n public void setIconURI(String arg0)\n {\n \n }",
"private ImageIcon createIcon(String path) {\n\t\tbyte[] bytes = null;\n\t\ttry(InputStream is = JNotepadPP.class.getResourceAsStream(path)){\n\t\t\tif (is==null) throw new IllegalArgumentException(\"Wrong path to the image given.\");\n\t\t\tbytes = is.readAllBytes();\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn new ImageIcon(bytes);\n\t}",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"public void setIcon(Bitmap icon) {\n\t\tmIcon = icon;\n\t}",
"public Icon(final String label, final Bitmap image) {\r\n _label = label;\r\n _image = image;\r\n\r\n // Icon can be focused\r\n _state = AccessibleState.FOCUSABLE;\r\n }",
"public JRibbonAction(String text, Icon icon)\n\t{\n\t\tsuper(text, icon);\n\t}",
"private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }",
"public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }",
"private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }",
"public CompositeIcon(Icon icon1, Icon icon2) {\n\t\tthis(icon1, icon2, TOP);\n\t}",
"public void setIcon(@DrawableRes final int icon) {\n post(() -> {\n Drawable drawable = ResourcesCompat.getDrawable(getResources(),icon,null);\n int padding = (getWidth() / 2) - (drawable.getIntrinsicWidth() / 2);\n setCompoundDrawablesWithIntrinsicBounds(icon, 0, 0, 0);\n setPadding(padding, 0, 0, 0);\n });\n }",
"private static Icon create1dIcon( Shader shader, boolean horizontal,\n Color baseColor, int width, int height,\n int xpad, int ypad ) {\n return new ShaderIcon1( shader, horizontal, baseColor, width, height,\n xpad, ypad );\n }",
"public void changeIcon() {\n\t\t\tint choice = rand.nextInt(list.length);\n\t\t\tString iconName = list[choice].getName();\n\t\t\ticon = new ImageIcon(helpIconBase + File.separator + iconName);\n\t\t\tDimension dim = new Dimension(icon.getIconWidth() * 2, HEIGHT);\n\t\t\tsetPreferredSize(dim);\n\t\t\tsetMinimumSize(dim);\n\t\t}",
"public MatteIcon(Paint background) {\r\n this(32, 32, background);\r\n }",
"private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}",
"public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}",
"public PrincipalDigitador() {\n initComponents();\n setIcon();\n }",
"public abstract Drawable getIcon();",
"public void testConstructors()\n {\n checkClass(HStaticIconTest.class);\n\n Image image = new EmptyImage();\n checkConstructor(\"HStaticIcon()\", new HStaticIcon(), 0, 0, 0, 0, null, false);\n checkConstructor(\"HStaticIcon(Image img)\", new HStaticIcon(image), 0, 0, 0, 0, image, false);\n checkConstructor(\"HStaticIcon(Image img, int x, int y, int w, int h)\", new HStaticIcon(image, 10, 20, 30, 40),\n 10, 20, 30, 40, image, true);\n }",
"public BenButton(Icon ico) {\n\t\tsuper(ico);\n\t\tsetVisible(true);\n\t}",
"private View createIcon() {\r\n\t\tImageView img = new ImageView(getContext());\r\n\t\tLayoutParams imglp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\timglp.gravity = Gravity.CENTER_VERTICAL;\r\n\t\timglp.rightMargin = 5;\r\n\t\timg.setLayoutParams(imglp);\r\n\r\n\t\timg.setBackgroundDrawable(getContext().getResources().getDrawable(R.drawable.account));\r\n\t\treturn img;\r\n\t}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"public abstract ImageDescriptor getIcon();",
"public Icon getIcon() {\n \t\treturn null;\n \t}",
"public static Drawable getIcon(int param0) {\n }",
"public void initIcons(){\n\t \troot_iconsFileNames = new ArrayList<String>();\n\t root_iconsBitmaps = new ArrayList<Bitmap>(); \n \t\ttry{\n \t\t\tResources res = this.getResources();\n \t\t\tInputStream iconInputStream = res.openRawResource(R.raw.icons);\n \t\t\tZipInputStream zipStream = new ZipInputStream(iconInputStream);\n \t\t ZipEntry entry;\n\n \t\t while ((entry = zipStream.getNextEntry()) != null) {\n \t\t \t//file name may start with MACOSX. This is strange, ignore it.\n \t\t \tString fileName = entry.getName();\n \t\t \tif(fileName.length() > 1){\n\t \t\t \tif(fileName.contains(\".png\") && !entry.isDirectory()){\n\t \t\t \t\tif(!fileName.contains(\"MACOSX\")){ //OSX adds junk sometimes, ignore it\n\t \t\t \t\t\tfileName = fileName.replace(\"icons/\",\"\");\n\t \t\t \t\t\tBitmap iconBitmap = BitmapFactory.decodeStream(zipStream); \n\t \t\t \t\t\troot_iconsFileNames.add(fileName);\n\t \t\t \t\t\troot_iconsBitmaps.add(iconBitmap);\n\t \t\t \t\t\t//Log.i(\"ZZ\", \"loading bitmaps: \" + fileName); \n\t \t\t \t\t}\n\t \t\t \t} //macosx\n\t \t\t } // fileName\n \t\t }//end while\n \t\t \n \t\t //clean up\n \t\t if(zipStream != null){\n \t\t \tzipStream.close();\n \t\t }\n \t\t \n \t\t}catch(Exception ex){\n \t\t\t Log.i(\"ZZ\", \"getZippedIcon: \" + ex.toString()); \n \t\t}\t \n\t }",
"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 }",
"@NotNull\n SVGResource getIcon();",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"radarlogoIcon.png\")));\n }",
"private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }",
"public void setIcon(Integer icon) {\n switch (icon) {\n case 0:\n this.icon = Icon.Schutzengel;\n break;\n case 1:\n this.icon = Icon.Person;\n break;\n case 2:\n this.icon = Icon.Institution;\n break;\n case 3:\n this.icon = Icon.Krankenhaus;\n break;\n case 4:\n this.icon = Icon.Polizei;\n break;\n default:\n this.icon = Icon.Feuerwehr;\n break;\n }\n }",
"Icon getIcon(URI activityType);",
"private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }",
"public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }",
"private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }",
"public IconsVisualTest() {\n initComponents();\n ImageIcon[] items = {\n iconManager().image2icon(iconManager().iconLocation),\n iconManager().image2icon(iconManager().iconContest),\n iconManager().image2icon(iconManager().iconChildFemale),\n iconManager().image2icon(iconManager().iconChildMale),\n iconManager().image2icon(iconManager().iconTeacher),\n iconManager().image2icon(iconManager().iconMan),\n iconManager().image2icon(iconManager().iconWoman),\n iconManager().image2icon(iconManager().iconStar),\n iconManager().image2icon(iconManager().iconNobody),\n iconManager().image2icon(iconManager().iconGroupleader)};\n DefaultComboBoxModel<ImageIcon> model = new DefaultComboBoxModel<>(items);\n cbIcons.setModel(model);\n\n\n }",
"Icon getSplashImage();"
] | [
"0.75417",
"0.7113205",
"0.69124985",
"0.6764871",
"0.6751672",
"0.6609367",
"0.65829164",
"0.6577572",
"0.6524601",
"0.6425176",
"0.639536",
"0.63458884",
"0.63384986",
"0.6336041",
"0.63200164",
"0.6289905",
"0.62593466",
"0.6246341",
"0.6246135",
"0.62357265",
"0.6180361",
"0.61673653",
"0.61673653",
"0.6163228",
"0.6153171",
"0.6142962",
"0.61045253",
"0.6101393",
"0.6094587",
"0.6090873",
"0.6085444",
"0.6065764",
"0.60623544",
"0.6053443",
"0.60525084",
"0.60135925",
"0.5997802",
"0.59958804",
"0.5989876",
"0.5979852",
"0.59750885",
"0.5958798",
"0.5958798",
"0.5954806",
"0.5950562",
"0.593707",
"0.591336",
"0.59062576",
"0.5902998",
"0.58966917",
"0.5894197",
"0.5893526",
"0.5893526",
"0.5892582",
"0.5890544",
"0.5889096",
"0.58866596",
"0.58705",
"0.5863871",
"0.5856456",
"0.58555454",
"0.58538693",
"0.5848962",
"0.58432657",
"0.5842524",
"0.58317626",
"0.58299804",
"0.5821468",
"0.581761",
"0.581579",
"0.58090574",
"0.5805351",
"0.57984596",
"0.57964456",
"0.5784824",
"0.577778",
"0.57766086",
"0.57766086",
"0.5770318",
"0.5765869",
"0.5754395",
"0.57381296",
"0.57241845",
"0.571738",
"0.5703769",
"0.57017523",
"0.5694643",
"0.56891847",
"0.56891847",
"0.56891847",
"0.56891847",
"0.56887233",
"0.5686766",
"0.56847227",
"0.568466",
"0.5684581",
"0.5672823",
"0.56621164",
"0.5659231",
"0.56575817"
] | 0.6270003 | 16 |
Constructs with the specified initial text and icon. | public JRibbonAction(String text, Icon icon)
{
super(text, icon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Icon createIcon();",
"public LinkButton( String text, Icon icon) {\n\t\tsuper( text, icon);\n\t\tinit();\n\t}",
"protected JLabel createComponent(String text, Icon image)\n {\n return new JLabel(text, image, SwingConstants.RIGHT);\n }",
"public TitleIconItem(){}",
"public TransferButton(String text, Icon icon) {\n super(text, icon);\n decorate();\n }",
"public JRibbonAction(String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(text, icon, toolTipText);\n\t}",
"public IconBuilder text(String text) {\n\t\tthis.text = text;\n\t\treturn this;\n\t}",
"public JRibbonAction(String name, String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(name, text, icon, toolTipText);\n\t}",
"public AssetCreationToolEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)\n {\n super(label, shortDesc, template, factory, iconSmall, iconLarge);\n }",
"public static PlaceholderFragment newInstance(String text, int icon) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putString(\"text\", text);\n args.putInt(\"icon\", icon);\n fragment.setArguments(args);\n return fragment;\n }",
"public JRibbonAction(Icon icon, String toolTipText)\n\t{\n\t\tsuper(icon, toolTipText);\n\t}",
"public I18nCheckbox(String text, Icon icon) {\n super(text, icon);\n }",
"public BLabel(String text, Icon image, Position align, Position textPos)\n {\n component = createComponent(text, image);\n setAlignment(align);\n setTextPosition(textPos);\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"public MatteIcon() {\r\n this(32, 32, null);\r\n }",
"public ActionButton(ImageIcon icon) {\n\t\tsuper(icon);\n\t}",
"@Source(\"create.gif\")\n\tpublic ImageResource createIcon();",
"public VaultAddin(@Nullable String text, @Nullable String description, @Nullable Icon icon) {\n super(text, description, icon);\n }",
"public BLabel(Icon image)\n {\n this(image, WEST);\n }",
"public Info(String text, boolean warning)\n {\n super(text, warning, 250, 500);\n \n try {\n File path;\n if(warning){\n path = new File(\"warning.png\");\n }else{\n path = new File(\"info.png\");\n }\n java.awt.Image icon = ImageIO.read(path);\n f.setIconImage(icon);\n } catch (Exception e) {}\n \n ok = new IFButton(100,40,200,125,\"Ok\");\n ok.setFont(new Font(\"Dosis\", Font.BOLD, 18));\n ok.setCornerRadius(1);\n \n ok.addMouseListener(new MouseListener()\n { \n public void mouseClicked(MouseEvent e){}\n \n public void mouseExited(MouseEvent e){\n ok.setColor(new Color(10,30,100));\n }\n \n public void mousePressed(MouseEvent e){\n ok.animCR(3, 0.2);\n }\n \n public void mouseEntered(MouseEvent e){\n ok.setColor(new Color(40,50,140));\n }\n \n public void mouseReleased(MouseEvent e){\n ok.animCR(1, -0.2);\n }\n });\n \n setButtons(new IFButton[]{ok});\n \n if(warning){\n f.setTitle(\"Warnung!\");\n }else{\n f.setTitle(\"Info\"); \n }\n }",
"public JRibbonAction(Icon icon)\n\t{\n\t\tsuper(icon);\n\t}",
"protected StringStringHashMap createItem(String iconChar, String title, String text) {\n StringStringHashMap item = new StringStringHashMap();\n item.put(ITEM_ICON, iconChar);\n item.put(ITEM_TITLE, title);\n item.put(ITEM_TEXT, text);\n return item;\n }",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"@Test\n\tpublic void testIconText() {\n\t\tfor (QUADRANT quad : QUADRANT.values()) {\n\t\t\tImageIcon icon =\n\t\t\t\tnew MultiIconBuilder(makeQuandrantIcon(32, 32, Palette.GRAY, Palette.WHITE))\n\t\t\t\t\t\t.addText(\"Abcfg\", font, Palette.RED, quad)\n\t\t\t\t\t\t.build();\n\t\t\ticon.getDescription();\n\t\t}\n\t}",
"public IconRenderer() \n\t{\n\t\t\n\t}",
"@Source(\"create.gif\")\n\tpublic DataResource createIconResource();",
"private static ToolItem createItemHelper(ToolBar toolbar, Image image,\r\n\t\t\tString text) {\r\n\r\n\t\tToolItem item = new ToolItem(toolbar, SWT.PUSH);\r\n\t\tif (image == null) {\r\n\t\t\titem.setText(text);\r\n\t\t} else {\r\n\t\t\titem.setImage(image);\r\n\t\t\titem.setToolTipText(text);\r\n\t\t}\r\n\t\treturn item;\r\n\t}",
"public LinkButton( Icon icon) {\n\t\tsuper( icon);\n\t\tinit();\n\t}",
"public Entry(String text) {\n this(GtkEntry.createEntry());\n setText(text);\n }",
"private static IconResource initIconResource() {\n\t\tIconResource iconResource = new IconResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\ticonResource.addResource(IconTypeAWMS.HOME.name(), iconPath + \"home.png\");\n\t\ticonResource.addResource(IconTypeAWMS.INPUT_ORDER.name(), iconPath + \"input-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.OUTPUT_ORDER.name(), iconPath + \"output-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.PLUS.name(), iconPath + \"plus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.MINUS.name(), iconPath + \"minus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.EDIT.name(), iconPath + \"edit.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CONFIRM.name(), iconPath + \"confirm.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CANCEL.name(), iconPath + \"cancel.png\");\n\t\ticonResource.addResource(IconTypeAWMS.USER.name(), iconPath + \"user.png\");\n\t\t\n\t\treturn iconResource;\n\t}",
"private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }",
"public void testConstructors()\n {\n checkClass(HStaticIconTest.class);\n\n Image image = new EmptyImage();\n checkConstructor(\"HStaticIcon()\", new HStaticIcon(), 0, 0, 0, 0, null, false);\n checkConstructor(\"HStaticIcon(Image img)\", new HStaticIcon(image), 0, 0, 0, 0, image, false);\n checkConstructor(\"HStaticIcon(Image img, int x, int y, int w, int h)\", new HStaticIcon(image, 10, 20, 30, 40),\n 10, 20, 30, 40, image, true);\n }",
"public ActionUpdate(String text, ImageIcon icon)\n\t{\n\t\tsuper(text, icon);\n\t\tputValue(SHORT_DESCRIPTION, AquaWorld.texts\n\t\t\t\t.getString(\"actionUpdateDatabbaseText\"));\n\t}",
"private DuakIcons()\r\n {\r\n }",
"public Command(final String name, final String iconName) {\n super(name);\n putValue(SHORT_DESCRIPTION, name);\n final URL url = getClass().getResource(IMAGE_DIR + iconName + \".gif\");\n if (url != null) {\n putValue(SMALL_ICON, new ImageIcon(url));\n }\n }",
"private void init(String text)\n\t{\n\t\tthis.text = text;\n\n\t\tsetColor(ClassEntityView.getBasicColor());\n\t\tpopupMenu.addSeparator();\n\t\tfinal JMenuItem item = new JMenuItem(\"Delete commentary\", PersonalizedIcon.createImageIcon(Slyum.ICON_PATH + \"delete16.png\"));\n\t\titem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdelete();\n\t\t\t}\n\t\t});\n\t\t\n\t\tparent.selectOnly(this);\n\t\tpopupMenu.add(item);\n\t}",
"public Icon(final String label, final Bitmap image) {\r\n _label = label;\r\n _image = image;\r\n\r\n // Icon can be focused\r\n _state = AccessibleState.FOCUSABLE;\r\n }",
"public JRibbonAction(String text)\n\t{\n\t\tsuper(text);\n\t}",
"private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }",
"public CustomMenuItemGUI(String manager, ImageIcon icon, String tooltip) {\r\n\t\tsuper(manager, icon, tooltip);\r\n\t}",
"public BLabel(Icon image, Position align)\n {\n component = createComponent(null, image);\n setAlignment(align);\n }",
"protected HStaticIcon createHStaticIcon()\n {\n return new HStaticIcon();\n }",
"public /* synthetic */ ItemInfo(String str, String str2, String str3, Image image, int i, j jVar) {\n this(str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? null : image);\n }",
"public ActionMenuItem(String text) {\n this.text = text;\n }",
"public BenButton(Icon ico) {\n\t\tsuper(ico);\n\t\tsetVisible(true);\n\t}",
"public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}",
"public abstract String getIconString();",
"private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }",
"public I18nCheckbox(Icon icon) {\n super(icon);\n }",
"public Info(String text) {\n //new JTextArea(text);\n super(text, SwingConstants.CENTER);\n setFont(Scheme.getFont());\n setOpaque(true);\n setSize(getFontMetrics(Scheme.getFont()).stringWidth(getText()) + 13, 25);\n setBackground(Scheme.getBackgroundColor());\n setForeground(Scheme.getForegroundColor());\n setBorder(BorderFactory.createLineBorder(Color.GRAY));\n }",
"public Builder setIcon(@Nullable Drawable icon) {\n mPrimaryIcon = icon;\n return this;\n }",
"public Action(\n long id,\n @Nullable CharSequence label1,\n @Nullable CharSequence label2,\n @Nullable Drawable icon\n ) {\n setId(id);\n setLabel1(label1);\n setLabel2(label2);\n setIcon(icon);\n }",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}",
"public void setIcon(String icon) {\n this.icon = icon;\n }",
"public void setIcon(String icon) {\n this.icon = icon;\n }",
"public static IconCompat m2630a(Resources resources, String str, int i) {\n if (str == null) {\n throw new IllegalArgumentException(\"Package must not be null.\");\n } else if (i != 0) {\n IconCompat iconCompat = new IconCompat(2);\n iconCompat.f2609e = i;\n if (resources != null) {\n try {\n iconCompat.f2606b = resources.getResourceName(i);\n } catch (NotFoundException unused) {\n throw new IllegalArgumentException(\"Icon resource cannot be found\");\n }\n } else {\n iconCompat.f2606b = str;\n }\n return iconCompat;\n } else {\n throw new IllegalArgumentException(\"Drawable resource ID must not be 0\");\n }\n }",
"public static String iconify(final String raw) {\n int priorTemplateEnd = 0;\n int currentTemplateStart = raw.indexOf(TEMPLATE_START);\n\n final StringBuilder builder = new StringBuilder();\n\n while (currentTemplateStart != -1) {\n builder.append(raw.substring(priorTemplateEnd, currentTemplateStart));\n\n priorTemplateEnd = raw.indexOf(TEMPLATE_END, currentTemplateStart + TEMPLATE_START_LENGTH);\n\n if (priorTemplateEnd != -1) {\n builder.append(\n iconifyIndividual(raw.substring(currentTemplateStart + TEMPLATE_START_LENGTH, priorTemplateEnd)));\n }\n\n priorTemplateEnd += TEMPLATE_END_LENGTH;\n currentTemplateStart = raw.indexOf(TEMPLATE_START, priorTemplateEnd);\n }\n\n builder.append(raw.substring(priorTemplateEnd));\n\n return builder.toString();\n }",
"public Entity(char icon) {\n this(new Coordinates(-1, -1), icon);\n }",
"public static JButton createIconButton(String tooltip, Icon icon) {\n JButton ret = new JButton(icon);\n ret.setMargin(new Insets(0, 0, 0, 0));\n ret.setBorderPainted(false);\n ret.setBorder(null);\n ret.setFocusable(false);\n ret.setIconTextGap(0);\n if (tooltip != null)\n attachToolTip(ret, tooltip, SwingConstants.RIGHT, SwingConstants.TOP);\n//TODO combine FrameworkIcon and LazyIcon into one class\n// if (icon instanceof FrameworkIcon) {\n// FrameworkIcon ficon = (FrameworkIcon)icon;\n// ret.setDisabledIcon(ficon);\n// }\n// else if (icon instanceof LazyIcon) {\n// LazyIcon licon = (LazyIcon)icon;\n// ret.setDisabledIcon(licon);\n// }\n return ret;\n }",
"public CompositeIcon(Icon icon1, Icon icon2) {\n\t\tthis(icon1, icon2, TOP);\n\t}",
"private void createNotification(int icon, String name, String auto_manual, String secondText, int color) {\n\n Intent notificationIntent = new Intent(this, SyncopyActivity.class);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this,\n 0, notificationIntent, 0);\n Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)\n .setContentTitle(name)\n .setContentText(secondText)\n .setSubText(String.format(\"(%s)\", auto_manual))\n .setSmallIcon(icon)\n .setColor(getResources().getColor(color))\n .setContentIntent(pendingIntent)\n .setVibrate(null)\n .setSound(null)\n .setPriority(NotificationManager.IMPORTANCE_LOW)\n .build();\n\n synchronized (notification){\n notification.notify();\n }\n\n startForeground(1, notification);\n\n\n }",
"B itemIcon(ITEM item, Resource icon);",
"public /* synthetic */ NotificationEntry(String str, String str2, String str3, int i, String str4, int i2, DefaultConstructorMarker pVar) {\n this(str, str2, str3, (i2 & 8) != 0 ? 0 : i, (i2 & 16) != 0 ? \"\" : str4);\n }",
"public void update() {\r\n icon = new SimpleIcon(layout.tag, layout.color, DiagramElement.getGlobalFontRenderer());\r\n icon.setIsModule(component.getType() != TemplateComponent.TYPE_CHANNEL);\r\n icon.setFlagged(component.hasModel() && component.getModel().hasAnnotation(FLAG_MARK));\r\n int maxWidth = 3 * icon.getIconWidth();\r\n String[] words = layout.label.split(\" \");\r\n Vector<String> lines = new Vector<String>();\r\n int wordsConsumed = 0;\r\n while (wordsConsumed < words.length) {\r\n String line = \"\";\r\n int i;\r\n for (i = wordsConsumed; i < words.length; ++i) {\r\n line += words[i];\r\n if (getGlobalFontMetrics().stringWidth(line) > maxWidth) {\r\n break;\r\n }\r\n line += \" \";\r\n }\r\n if (i == words.length) // all left-over words fit\r\n {\r\n line = line.substring(0, line.length() - 1);\r\n lines.add(line);\r\n wordsConsumed = words.length;\r\n } else\r\n // some left-over words didn't fit\r\n {\r\n if (i == wordsConsumed) // the first left-over word was too long\r\n {\r\n lines.add(line);\r\n wordsConsumed++;\r\n } else\r\n // at least one left-over word fit\r\n {\r\n line = line.substring(0, line.lastIndexOf(\" \"));\r\n lines.add(line);\r\n wordsConsumed = i;\r\n }\r\n }\r\n }\r\n labelBox = new LabelBox(lines);\r\n int deltaX = -(labelBox.width / 2);\r\n int deltaY = icon.getIconHeight() / 2 + LABEL_SPACING;\r\n labelBox.x = layout.location.x + deltaX;\r\n labelBox.y = layout.location.y + deltaY;\r\n ports[0] = new Ellipse2D.Float(layout.location.x - icon.getIconWidth() / 2 - 2 * PORT_RADIUS - 1,\r\n layout.location.y - PORT_RADIUS, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[1] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS,\r\n layout.location.y - icon.getIconHeight() / 2 - 2 * PORT_RADIUS - 1, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[2] = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 2 + 1, layout.location.y - PORT_RADIUS,\r\n 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[3] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS, (int) labelBox.getMaxY() + 1, 2 * PORT_RADIUS,\r\n 2 * PORT_RADIUS);\r\n if (component.getType() == TemplateComponent.TYPE_CHANNEL) {\r\n supHalo = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 4,\r\n layout.location.y - icon.getIconHeight() / 4 - 2 * HALO_RADIUS, 2 * HALO_RADIUS, 2 * HALO_RADIUS);\r\n haloDX = -getGlobalFontMetrics().stringWidth(HALO_LABEL) / 2 + 1;\r\n haloDY = getGlobalFontMetrics().getAscent() / 2;\r\n }\r\n computeBounds();\r\n }",
"public interface IconFactory {\n\n\t/**\n\t * Get the icon for an item.\n\t *\n\t * @param object\n\t * Can be any class, but the implementation may place restrictions on valid types.\n\t */\n\tpublic Icon getIcon(Object object);\n}",
"public PaletteEntry(String label, String shortDescription,\n ImageDescriptor iconSmall, ImageDescriptor iconLarge) {\n this(label, shortDescription, iconSmall, iconLarge, null);\n }",
"public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}",
"public PopupButton(Component c, Icon icon) {\r\n this();\r\n _component = c;\r\n setIcon(icon);\r\n }",
"private void createButton(final ToolBar bar, final String imagePath,\r\n final String text, final SelectionListener listener) {\r\n final Image icon = getIcon(imagePath);\r\n\r\n final ToolItem toolItem = new ToolItem(bar, SWT.PUSH);\r\n toolItem.setImage(resize(icon, DEFAULT_ICON_SIZE, DEFAULT_ICON_SIZE));\r\n toolItem.setText(text);\r\n\r\n toolItem.addSelectionListener(listener);\r\n }",
"@Override\r\n\tprotected void onInitialize() {\n\t\tsuper.onInitialize();\r\n\t\tadd(new MultiLineLabel(LABEL_ID, LABEL_TEXT));\r\n\t}",
"@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}",
"public HomeListViewItem(Drawable icon, String title, String description) {\n this.icon = icon;\n this.title = title;\n this.description = description;\n }",
"void initAitalk() {\n\t\tAsr.JniBeginLexicon(\"menu\", false);\n \tfor(int i = 0; i < mAiStrings.length; i++){\n \t\tAsr.JniAddLexiconItem(mAiStrings[i], i);\n \t}\n \tAsr.JniEndLexicon();\n \tmMsgHandler.sendEmptyMessage(MSG_HANDLE_START_REG);\n }",
"public PrincipalDigitador() {\n initComponents();\n setIcon();\n }",
"private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }",
"Text createText();",
"private ImageTextButton createImageTextButton(TextureRegionDrawable drawable, BitmapFont font, int number){ ;\r\n\t\tImageTextButton.ImageTextButtonStyle btnStyle1 = new ImageTextButton.ImageTextButtonStyle();\r\n\t\tbtnStyle1.up = drawable;\r\n\t\tbtnStyle1.font = font;\r\n\t\tImageTextButton btn = new ImageTextButton(\"\"+number, btnStyle1);\r\n\t\treturn btn;\r\n\t}",
"public I18nCheckbox(String text, Icon icon, boolean selected) {\n super(text, icon, selected);\n }",
"String getIcon();",
"String getIcon();",
"protected abstract String getAddDataIconDefaultCaption () ;",
"public void setIcon(Image i) {icon = i;}",
"public void registerIcon(String spellName, Icon icon);",
"public PaletteEntry(String label, String shortDescription,\n ImageDescriptor iconSmall, ImageDescriptor iconLarge, Object type) {\n this(label, shortDescription, iconSmall, iconLarge, type, null);\n }",
"public FinalProject() {\n initComponents();\n iconImage();\n }",
"private void checkConstructor(String msg, HStaticIcon icon, int x, int y, int w, int h, Image img,\n boolean defaultSize)\n {\n // Check variables exposed in constructors\n final HStaticIcon i = icon;\n assertNotNull(msg + \" not allocated\", icon);\n assertEquals(msg + \" x-coordinated not initialized correctly\", x, icon.getLocation().x);\n assertEquals(msg + \" y-coordinated not initialized correctly\", y, icon.getLocation().y);\n assertEquals(msg + \" width not initialized correctly\", w, icon.getSize().width);\n assertEquals(msg + \" height not initialized correctly\", h, icon.getSize().height);\n assertSame(msg + \" Image not initialized correctly\", img, icon.getGraphicContent(NORMAL_STATE));\n foreachState(new Callback()\n {\n public void callback(int state)\n {\n if (state != NORMAL_STATE)\n assertNull(stateToString(state) + \" content should not be set\", i.getGraphicContent(state));\n }\n });\n\n // Check variables NOT exposed in constructors\n assertEquals(msg + \" should be NORMAL_STATE\", NORMAL_STATE, icon.getInteractionState());\n assertNull(msg + \" matte should be unassigned\", icon.getMatte());\n assertNotNull(msg + \" text layout mgr should be assigned\", icon.getTextLayoutManager());\n assertEquals(msg + \" bg mode not initialized incorrectly\", icon.getBackgroundMode(), icon.NO_BACKGROUND_FILL);\n if (!defaultSize)\n // assertNull(msg+\" default size should not be set\",\n // icon.getDefaultSize());\n assertEquals(msg + \" default size should not be set\", icon.NO_DEFAULT_SIZE, icon.getDefaultSize());\n else\n assertEquals(msg + \" default size initialized incorrectly\", icon.getDefaultSize(), new Dimension(w, h));\n assertEquals(msg + \" horiz alignment initialized incorrectly\", icon.getHorizontalAlignment(),\n icon.HALIGN_CENTER);\n assertEquals(msg + \" vert alignment initialized incorrectly\", icon.getVerticalAlignment(), icon.VALIGN_CENTER);\n assertEquals(msg + \" resize mode initialized incorrectly\", icon.getResizeMode(), icon.RESIZE_NONE);\n assertSame(msg + \" default look not used\", HStaticIcon.getDefaultLook(), icon.getLook());\n assertEquals(msg + \" border mode not initialized correctly\", true, icon.getBordersEnabled());\n }",
"public MyRenderer( Icon[] icon ) {\n treeIcon = icon;\n }",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public Dialog(String text) {\n initComponents( text);\n }",
"public JRibbonAction(String text, String toolTipText)\n\t{\n\t\tsuper(text, toolTipText);\n\t}",
"public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }",
"public TopicLabelLayout(Context context, AttributeSet attributeSet, int i) {\n super(context, attributeSet, i);\n C32569u.m150519b(context, C6969H.m41409d(\"G6A8CDB0EBA28BF\"));\n C32569u.m150519b(attributeSet, C6969H.m41409d(\"G6897C108AC\"));\n }",
"Icon getIcon();",
"private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\"));\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n TextureRegion region = new TextureRegion(texture);\n display = new BitmapFont(Gdx.files.internal(\"Text/item.fnt\"), region, false);\n display.setUseIntegerPositions(false);\n display.setColor(Color.BLACK);\n }",
"public Notification(\n\t\t@Nullable CharSequence title,\n\t\t@Nullable CharSequence description,\n\t\t@Nullable Node icon) {\n\t\tthis(title, description, (Image) null);\n\t\tsetIcon(icon);\n\t}",
"@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}"
] | [
"0.68725675",
"0.6487079",
"0.6383716",
"0.6350991",
"0.63367116",
"0.6270867",
"0.61948335",
"0.60837305",
"0.607742",
"0.6070629",
"0.6050314",
"0.59932464",
"0.59516346",
"0.593125",
"0.59270126",
"0.59177387",
"0.58020407",
"0.5799777",
"0.57917005",
"0.5787893",
"0.57613796",
"0.575776",
"0.57534385",
"0.57444876",
"0.5701635",
"0.5689778",
"0.5687989",
"0.56860423",
"0.5670562",
"0.56649536",
"0.5656453",
"0.56469107",
"0.56438524",
"0.5636923",
"0.56113255",
"0.5592702",
"0.55763894",
"0.55645394",
"0.55410117",
"0.553123",
"0.55292",
"0.5525721",
"0.54962814",
"0.5494615",
"0.5464877",
"0.546405",
"0.5444829",
"0.5443088",
"0.54407805",
"0.5437717",
"0.5422825",
"0.5419697",
"0.5418922",
"0.5409651",
"0.54067504",
"0.5401526",
"0.53773683",
"0.53773683",
"0.53691596",
"0.5367405",
"0.53556055",
"0.5345735",
"0.5341097",
"0.53292346",
"0.53219694",
"0.5315321",
"0.53114474",
"0.52942705",
"0.5293187",
"0.52739835",
"0.52704",
"0.52688503",
"0.5262695",
"0.52512085",
"0.5236483",
"0.52304417",
"0.5218711",
"0.5215745",
"0.52141833",
"0.52112263",
"0.52081877",
"0.51879495",
"0.51879495",
"0.51878333",
"0.51859576",
"0.5183761",
"0.51821053",
"0.517308",
"0.5172238",
"0.51694065",
"0.51670134",
"0.51670134",
"0.51666844",
"0.51611793",
"0.5150203",
"0.5146549",
"0.514614",
"0.5145721",
"0.51414835",
"0.5141349"
] | 0.6908393 | 0 |
Constructs with the specified initial text and tooltip text. | public JRibbonAction(String text, String toolTipText)
{
super(text, toolTipText);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public X tooltipText(String text) {\n component.setToolTipText(text);\n return (X) this;\n }",
"public void setTooltipText() { tooltip.setText(name); }",
"public DefaultTip() {}",
"public JRibbonAction(String name, String text, String toolTipText)\n\t{\n\t\tsuper(name, text, toolTipText);\n\t}",
"public JRibbonAction(String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(text, icon, toolTipText);\n\t}",
"private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}",
"public DefaultTip(String name, Object tip)\n/* */ {\n/* 39 */ this.name = name;\n/* 40 */ this.tip = tip;\n/* */ }",
"public void setToolTipText(String text)\n/* */ {\n/* 227 */ putClientProperty(\"ToolTipText\", text);\n/* */ }",
"private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}",
"public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}",
"public TextController createToolTipText(ControllerCore genCode) {\n\t\ttoolTipTextTXT = new TextController(\"toolTipText\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(toolTipText$1LBL);\n\t\t\t\tsetProperty(\"toolTipText\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn toolTipTextTXT;\n\t}",
"public void createToolTip(View view, Tooltip.Gravity gravity, String text){\n Tooltip.make(this,\n new Tooltip.Builder(101)\n .anchor(view, gravity)\n .closePolicy(new Tooltip.ClosePolicy()\n .insidePolicy(true, false)\n .outsidePolicy(true, false), 3000)\n .activateDelay(800)\n .showDelay(300)\n .text(text)\n .maxWidth(700)\n .withArrow(true)\n .withOverlay(true)\n .withStyleId(R.style.ToolTipLayoutCustomStyle)\n .floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)\n .build()\n ).show();\n }",
"public JRibbonAction(String name, String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(name, text, icon, toolTipText);\n\t}",
"public ToolTips (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}",
"public void createToolTip(View view, Tooltip.Gravity gravity, String text){\n Tooltip.make(getContext(),\n new Tooltip.Builder(101)\n .anchor(view, gravity)\n .closePolicy(new Tooltip.ClosePolicy()\n .insidePolicy(true, false)\n .outsidePolicy(true, false), 3000)\n .activateDelay(800)\n .showDelay(300)\n .text(text)\n .maxWidth(700)\n .withArrow(true)\n .withOverlay(true)\n .withStyleId(R.style.ToolTipLayoutCustomStyle)\n .floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)\n .build()\n ).show();\n }",
"public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }",
"@Override\n public void setTooltip(String arg0)\n {\n \n }",
"public static String setToolTipText(String text) {\n\t\tString oldTip = toolTipText;\n\t\ttoolTipText = text;\n\t\treturn (oldTip);\n\t}",
"public static JLabel newFormLabel(String text, String tooltip) {\n JLabel label = newFormLabel(text);\n label.setToolTipText(tooltip);\n return label;\n }",
"public String generateToolTipFragment(String toolTipText) {\n/* 88 */ return \" onMouseOver=\\\"return stm(['\" + \n/* 89 */ ImageMapUtilities.javascriptEscape(this.title) + \"','\" + \n/* 90 */ ImageMapUtilities.javascriptEscape(toolTipText) + \"'],Style[\" + this.style + \"]);\\\"\" + \" onMouseOut=\\\"return htm();\\\"\";\n/* */ }",
"private static ToolItem createItemHelper(ToolBar toolbar, Image image,\r\n\t\t\tString text) {\r\n\r\n\t\tToolItem item = new ToolItem(toolbar, SWT.PUSH);\r\n\t\tif (image == null) {\r\n\t\t\titem.setText(text);\r\n\t\t} else {\r\n\t\t\titem.setImage(image);\r\n\t\t\titem.setToolTipText(text);\r\n\t\t}\r\n\t\treturn item;\r\n\t}",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"public JRibbonAction(Icon icon, String toolTipText)\n\t{\n\t\tsuper(icon, toolTipText);\n\t}",
"public ExpandableToolTip(String toolTipText, String helpText,\r\n\t\t\tJComponent owner) {\r\n\t\tthis.owner = owner;\r\n\r\n\t\t/*\r\n\t\t * Attach mouseListener to component. If we attach the toolTip to a\r\n\t\t * JComboBox our MouseListener is not used, we therefore need to attach\r\n\t\t * the MouseListener to each component in the JComboBox\r\n\t\t */\r\n\t\tif (owner instanceof JComboBox) {\r\n\t\t\tfor (int i = 0; i < owner.getComponentCount(); i++) {\r\n\t\t\t\towner.getComponent(i).addMouseListener(this);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\towner.addMouseListener(this);\r\n\t\t}\r\n\r\n\t\t/* generate toolTip panel */\r\n\t\ttoolTip = new JPanel(new GridLayout(3, 1));\r\n\t\ttoolTip.setPreferredSize(new Dimension(WIDTH_TT, HEIGHT_TT));\r\n\t\ttoolTip.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n\t\ttoolTip.setBackground(Color.getHSBColor(15, 3, 99));\r\n\t\ttoolTip.add(new JLabel(toolTipText));\r\n\t\ttoolTip.add(new JSeparator(SwingConstants.HORIZONTAL));\r\n\t\tJLabel more = new JLabel(\"press 'F1' for more details\");\r\n\t\tmore.setForeground(Color.DARK_GRAY);\r\n\t\tmore.setFont(new Font(null, 1, 10));\r\n\t\ttoolTip.add(more);\r\n\r\n\t\t/* generate help panel */\r\n\t\tJPanel helpContent = new JPanel();\r\n\t\thelpContent.setBackground(Color.WHITE);\r\n\r\n\t\t/* generate editor to display html help text and put in scrollpane */\r\n\t\th = new JEditorPane();\r\n\t\th.setContentType(\"text/html\");\r\n\t\th.addHyperlinkListener(this);\r\n\t\tString context = \"<html><body><table width='\" + WIDTH_HTML\r\n\t\t\t\t+ \"'><tr><td><p><font size=+1>\" + toolTipText + \"</font></p>\"\r\n\t\t\t\t+ helpText + \"</td></tr></table></body></html>\";\r\n\t\th.setText(context);\r\n\t\th.setEditable(true);\r\n\t\th.addHyperlinkListener(this);\r\n\t\thelpContent.add(h);\r\n\t\thelp = new JScrollPane(helpContent);\r\n\t\thelp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\thelp.setPreferredSize(new Dimension(WIDTH_SC, HEIGHT_SC));\r\n\r\n\t\tpopup = new JFrame();\r\n\t\tpopup.setUndecorated(true);\r\n\r\n\t}",
"public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }",
"public Info(String text) {\n //new JTextArea(text);\n super(text, SwingConstants.CENTER);\n setFont(Scheme.getFont());\n setOpaque(true);\n setSize(getFontMetrics(Scheme.getFont()).stringWidth(getText()) + 13, 25);\n setBackground(Scheme.getBackgroundColor());\n setForeground(Scheme.getForegroundColor());\n setBorder(BorderFactory.createLineBorder(Color.GRAY));\n }",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"public ToolBarManager initTitle(String toolBarTitle, int color,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"Text createText();",
"@Override\n\tpublic void setToolTip(String tooltip) {\n\t\t\n\t}",
"public Text(double x, double y, String text, TextStyle style, Accent accent)\n {\n super(x, y, text);\n this.style = style;\n this.accent = accent;\n initialize();\n }",
"public Text(String text)\n {\n super(text);\n initialize();\n }",
"public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }",
"private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}",
"public Topic( String title )\n {\n activation = 0;\n label = title;\n associations = new String[100];\n numAssocs = 0;\n response1 = \"\";\n response2 = \"\";\n response3 = \"\";\n probability1 = -1;\n probability2 = -1;\n probability3 = -1;\n generator = new Random();\n }",
"public abstract String getToolTip();",
"public DynamicDriveToolTipTagFragmentGenerator() {}",
"public Title(final String text) {\n this(text, null, null, TextDirection.UNSPECIFIED);\n }",
"public JTextArea createInstructions() {\n\t\tJTextArea instructions = new JTextArea(\n\t\t\t\t\"Hello. Thank you for being a wonderful and engaged volunteer. Befor you start your journey with your\"\n\t\t\t\t\t\t+ \"Youth Leader, it is essential that you have your Magic Stone. \");\n\t\t// instructions not editable\n\t\tinstructions.setEditable(false);\n\n\t\t// allows words to go to next line\n\t\tinstructions.setLineWrap(true);\n\n\t\t// prevents words from splitting\n\t\tinstructions.setWrapStyleWord(true);\n\n\t\t// change font\n\t\tinstructions.setFont(new Font(\"SANS_SERIF\", Font.PLAIN, 17));\n\n\t\t// change font color\n\t\tinstructions.setForeground(Color.white);\n\n\t\t// Insets constructor summary: (top, left, bottom, right)\n\t\tinstructions.setMargin(new Insets(30, 30, 30, 30));\n\n\t\t// Set background color\n\t\tinstructions.setOpaque(true);\n\t\tinstructions.setBackground(new Color(#00aeef));\n\n\t\treturn instructions;\n\t}",
"private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}",
"public void addTextBeforeHelp(String _text){\r\n\t\tthis.beforeTextHelp=_text;\r\n\t}",
"public Text()\n {\n super();\n initialize();\n }",
"@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }",
"protected void setToolTipText(Tile tile) {\n\t\tif(!peek && hidden) { tile.setToolTipText(\"concealed tile\"); }\n\t\telse {\n\t\t\tString addendum = \"\";\n\t\t\tif(playerpanel.getPlayer().getType()==Player.HUMAN) { addendum = \" - click to discard during your turn\"; }\n\t\t\ttile.setToolTipText(tile.getTileName()+ addendum); }}",
"public BTextPairSettings(String button_title, String text_title){\n\t\tsuper(button_title, text_title);\n\t//\tbutton.addActionListener(this);\n\t\t\n\t}",
"public Text(double x, double y, String text, TextStyle style)\n {\n super(x, y, text);\n this.style = style;\n initialize();\n }",
"public String getToolTipText () {\r\n\tcheckWidget();\r\n\treturn toolTipText;\r\n}",
"public Builder setMsgTip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n msgTip_ = value;\n onChanged();\n return this;\n }",
"private Tooltip generateToolTip(ELesxFunction type) {\n Tooltip tool = new Tooltip();\n StringBuilder text = new StringBuilder();\n if (type == ELesxFunction.PERIOD) {\n text.append(\"Una fecha puede ser invalida por:\\n\")\n .append(\" - Fecha incompleta.\\n\")\n .append(\" - Fecha inicial es posterior a la final.\");\n }\n else {\n text.append(\"La función Suma determina:\\n\")\n .append(\" - Sumatoria total de los precios del recurso seleccionado.\\n\")\n .append(\" - Suma el total de la sumatoria del punto anterior si son varios recursos\\n\")\n .append(\" - Ignora las Fechas de los precios.\");\n }\n tool.setText(text.toString());\n return tool;\n }",
"private void initializeIntroString()\r\n {\r\n introString = new JTextArea(problem.getIntroduction());\r\n introString.setFont(new Font(Font.MONOSPACED, Font.BOLD, 14));\r\n introString.setPreferredSize(new Dimension(\r\n calculateTextWidth(problem.getIntroduction().split(\"\\\\n\"), // string array\r\n introString.getFontMetrics(introString.getFont())),// font metric\r\n calculateTextHeight(problem.getIntroduction().split(\"\\\\n\"),// string array\r\n introString.getFontMetrics(introString.getFont())))); // font metric\r\n // wrap it in a label\r\n stringLabel = new JLabel();\r\n stringLabel.setLayout(new FlowLayout(FlowLayout.CENTER));\r\n stringLabel.add(introString);\r\n stringLabel.setPreferredSize(introString.getPreferredSize());\r\n }",
"@Override\n\tpublic Title makeTitle(Map<String, String> attributes, String data) {\n\t\treturn new Title( attributes, data );\n\t}",
"protected static Text feedbackSetup(Shell shell) {\n\t\tText feedback = new Text(shell, SWT.BORDER | SWT.CENTER);\n\t\tfeedback.setEnabled(false);\n\t\tfeedback.setEditable(false);\n\t\tfeedback.setBounds(GUISize.FB_XCOOD, GUISize.FB_YCOOD, GUISize.FB_WIDTH, GUISize.FB_HEIGHT);\n\t\treturn feedback;\n\t}",
"public MultipleToolTipManager()\n {\n\tthis(null);\n }",
"@Override\r\n\tpublic String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"public void setToolTipText(String text, int index) {\n\t\tObject obj = getModel().getElementAt(index);\n\n\t\tif (obj instanceof IToolTipItem) {\n\t\t\t((IToolTipItem) obj).setToolTipText(text);\n\t\t}\n\t}",
"private void init(String text)\n\t{\n\t\tthis.text = text;\n\n\t\tsetColor(ClassEntityView.getBasicColor());\n\t\tpopupMenu.addSeparator();\n\t\tfinal JMenuItem item = new JMenuItem(\"Delete commentary\", PersonalizedIcon.createImageIcon(Slyum.ICON_PATH + \"delete16.png\"));\n\t\titem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdelete();\n\t\t\t}\n\t\t});\n\t\t\n\t\tparent.selectOnly(this);\n\t\tpopupMenu.add(item);\n\t}",
"public Synopsis(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public TextConstruct(String prefix, String name)\n\t{\n\t super(prefix, name); \n\t}",
"public String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}",
"private Text createTitle() {\n\t\tText title = new Text(\"S p a c e Y\");\n\t\ttitle.setFont(new Font(\"Minecraftia\", 80));\n\t\ttitle.setStroke(Color.YELLOW);\n\t\ttitle.setStrokeWidth(2);\n\t\ttitle.setStrokeType(StrokeType.OUTSIDE);\n\t\ttitle.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\ttitle.setX(canvas.getWidth() / 2);\n\t\ttitle.setY(canvas.getHeight() / 2);\n\t\treturn title;\n\t}",
"public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }",
"Button new_button (String title, ActionListener action, String tooltip) {\n Button b = new Button(title);\n b.setBackground(Color.white);\n b.setForeground(Color.blue);\n if (action != null)\n b.addActionListener(action);\n if (tooltip != null)\n b.setToolTipText(tooltip);\n return b;\n }",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}",
"public SimpleNodeLabel(String text, JGoArea parent) {\n super(text);\n mParent = parent;\n initialize(text, parent);\n }",
"private JMenuItem createMenuItem(JMenu parent, String text, int mnemonic, String keyStrokeText, String tooltip) {\n\t\tJMenuItem item = new JMenuItem();\n\t\t\n\t\titem.setText(text);\n\t\tif (mnemonic != -1) {\n\t\t\titem.setMnemonic(mnemonic);\n\t\t}\n\t\tif (keyStrokeText != null) {\n\t\t\tKeyStroke accelerator = KeyStroke.getKeyStroke(keyStrokeText);\n\t\t\titem.setAccelerator(accelerator);\n\t\t}\n\t\tif (tooltip != null) {\n\t\t\titem.setToolTipText(tooltip);\n\t\t}\n\t\t\n\t\tparent.add(item);\n\t\treturn item;\n\t}",
"protected AbstractButton createToolBarButton(String iconName, String toolTipText) {\r\n JButton button = new JButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"public static void setTooltip(final @NonNull Control control, final @NonNull String message) {\n Objects.requireNonNull(control);\n Objects.requireNonNull(message);\n\n if (message.isEmpty()) {\n throw new IllegalArgumentException(\"The message cannot be empty.\");\n }\n\n control.setTooltip(new Tooltip(message));\n }",
"public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)\n/* */ {\n/* 89 */ this.tipPane = tipPane;\n/* */ }",
"public CustomMenuItemGUI(String manager, ImageIcon icon, String tooltip) {\r\n\t\tsuper(manager, icon, tooltip);\r\n\t}",
"public abstract void setTooltipData(ITooltipData data);",
"public static String getToolTipText() {\n\t\treturn (toolTipText);\n\t}",
"public static BalloonTip attachToolTip(JComponent attached_part, String tip_text,\n int horizontal_position, int vertical_position) {\n BalloonTipStyle style = new RoundedBalloonStyle(5, 5, new Color(250, 250, 150), Color.black);\n BalloonTip ret = new BalloonTip(attached_part, tip_text, style, false);\n ToolTipUtils.balloonToToolTip(ret, 10, 60000);\n BalloonTipPositioner posr = new CenteredPositioner(5);\n switch (horizontal_position) {\n case SwingConstants.LEFT:\n posr = (vertical_position == SwingConstants.TOP) ? new LeftAbovePositioner(5, 5)\n : new LeftBelowPositioner(5, 5);\n break;\n\n case SwingConstants.RIGHT:\n posr = (vertical_position == SwingConstants.TOP) ? new RightAbovePositioner(5, 5)\n : new RightBelowPositioner(5, 5);\n break;\n\n case SwingConstants.CENTER:\n default:\n break;\n }\n ret.setPositioner(posr);\n return ret;\n }",
"public MyGUIProgram() {\n Label MyLabel = new Label(\"Test string.\", Label.CENTER);\n this.add(MyLabel);\n\n }",
"public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }",
"public Dialog(String text) {\n initComponents();\n setVisible(true);\n pack();\n setTitle(\"Sbac\");\n this.text.setText(text);\n this.text.setHorizontalAlignment(SwingConstants.CENTER);\n this.text.setVerticalAlignment(SwingConstants.CENTER);\n }",
"public TextFrame(String title, String text) {\n super(title);\n initComponents();\n area.setText(text);\n }",
"public Ventana() {\n initComponents();\n this.tipos.add(GD_C);\n this.tipos.add(GD_S);\n this.tipos.add(GND_C);\n this.tipos.add(GND_S);\n this.panel.setArea_text(text);\n\n }",
"public void addVehicleToolTip() {\r\n\t\tString expectedTooltip = \"Add Vehicle\";\r\n\t\tWebElement editTooltip = driver.findElement(By.cssSelector(\".ant-btn.ant-btn-primary\"));\r\n\t\tActions actions = new Actions(driver);\r\n\t\tactions.moveToElement(editTooltip).perform();\r\n\t\tWebElement toolTipElement = driver.findElement(By.cssSelector(\"div[role='tooltip']\"));\r\n\t\tneedToWait(2);\r\n\t\tString actualTooltip = toolTipElement.getText();\r\n\t\tSystem.out.println(\"Actual Title of Tool Tip +++++++++\" + actualTooltip);\r\n\t\tAssert.assertEquals(actualTooltip, expectedTooltip);\r\n\t}",
"public Question() {\r\n // This is the defult constructor b/c it takes no parameters\r\n firstPrompt = \"Please enter something:\";\r\n minScale = 1;\r\n maxScale = 10;\r\n secondPrompt = \"Additional comments:\";\r\n }",
"public Button(final String textLabel) {\n label = new Label(textLabel);\n label.setHorizontalAlignment(HorizontalAlignment.CENTRE);\n label.setVerticalAlignment(VerticalAlignment.MIDDLE);\n label.setBackgroundColour(Color.GRAY);\n label.setOpaque(true);\n }",
"public LeanTextGeometry() {}",
"public Shell showTooltip(Shell parent, int x, int y) {\r\n\t\tShell tooltip = new Shell(parent, SWT.TOOL | SWT.ON_TOP);\r\n\t\ttooltip.setLayout(new GridLayout());\r\n\r\n\t\ttooltip.setBackground(tooltip.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));\r\n\t\ttooltip.setBackgroundMode(SWT.INHERIT_FORCE);\r\n\r\n\t\tLabel lbContent = new Label(tooltip, SWT.NONE);\r\n\t\tlbContent.setText(\"Hello world! I'm a fake tooltip\");\r\n\r\n\t\tPoint lbContentSize = lbContent.computeSize(SWT.DEFAULT, SWT.DEFAULT);\r\n\r\n\t\tint width = lbContentSize.x + 10;\r\n\t\tint height = lbContentSize.y + 10;\r\n\r\n\t\ttooltip.setBounds(x, y, width, height);\r\n\t\ttooltip.setVisible(true);\r\n\t\treturn tooltip;\r\n\t}",
"default void setTooltip(@Nullable String tooltip) {}",
"protected void setToolTip(String toolTip) {\n\tthis.toolTip = toolTip;\n }",
"public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }",
"public TextTester(){}",
"public ContourEntity(Shape area, String toolTipText) { super(area, toolTipText); }",
"Help createHelp();",
"public void setRibbonToolTipText(String ribbonToolTipText)\n\t{\n\t\tthis.ribbonToolTipText = ribbonToolTipText;\n\t}",
"void showTooltip();",
"public Text(String text, TextStyle style, Accent accent)\n {\n super(text);\n this.style = style;\n this.accent = accent;\n initialize();\n }",
"private void setToolTips() {\n \t// set tool tips\n Tooltip startTip, stopTip, filterTip, listViewTip, viewAllTip, viewInfoTip, removeTip, editRuleFileTip, editRulePathTip;\n startTip = new Tooltip(ToolTips.getStarttip());\n stopTip = new Tooltip(ToolTips.getStoptip());\n filterTip = new Tooltip(ToolTips.getFiltertip());\n listViewTip = new Tooltip(ToolTips.getListviewtip());\n viewAllTip = new Tooltip(ToolTips.getViewalltip());\n viewInfoTip = new Tooltip(ToolTips.getViewinfotip());\t\n removeTip = new Tooltip(ToolTips.getRemovetip());\n editRuleFileTip = new Tooltip(ToolTips.getEditrulefiletip());\n editRulePathTip = new Tooltip(ToolTips.getEditrulepathtip());\n \n startButton.setTooltip(startTip);\n stopButton.setTooltip(stopTip);\n filterButton.setTooltip(filterTip);\n unseenPacketList.setTooltip(listViewTip);\n viewAll.setTooltip(viewAllTip);\n viewInformation.setTooltip(viewInfoTip);\n removeButton.setTooltip(removeTip);\n editRuleFileButton.setTooltip(editRuleFileTip);\n editRuleFilePath.setTooltip(editRulePathTip);\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n plusButton.setTooltip(new Tooltip(\"Agregar nuevo elemento\"));\r\n }",
"public Normal(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }",
"public DialogLabel(String text, int posX, int posY, Pos pos) {\n\t\tsuper(text);\n\t\tsetup(posX, posY, pos);\n\t}",
"public Dialog(String text) {\n initComponents( text);\n }",
"public Node makeTitle(String text) {\r\n VBox panel = new VBox();\r\n Label label = makeLabel(myResources.getString(text));\r\n panel.setAlignment(Pos.CENTER);\r\n Button returnHome = makeButton(\"Main\", e -> {\r\n MainDisplay display = new MainDisplay(sceneLanguage, sceneWidth, sceneHeight);\r\n mainScene.setRoot(display.setUpComponents());\r\n display.changeScene(mainScene);\r\n });\r\n panel.getChildren().addAll(label, returnHome);\r\n panel.setMargin(label, new Insets(0, 15, 0, 0));\r\n return panel;\r\n }",
"TooltipTextMap getTooltipText() throws SearchServiceException;"
] | [
"0.6435879",
"0.63777673",
"0.626824",
"0.6077611",
"0.603524",
"0.60229427",
"0.6008072",
"0.5995573",
"0.597825",
"0.5964447",
"0.59601265",
"0.5883468",
"0.5873915",
"0.5866945",
"0.5859885",
"0.58434486",
"0.58318543",
"0.5828585",
"0.5769603",
"0.5753223",
"0.57360655",
"0.5673751",
"0.565993",
"0.56168896",
"0.5594001",
"0.5570469",
"0.5564193",
"0.5535678",
"0.55275685",
"0.5487359",
"0.5453669",
"0.54240257",
"0.5414269",
"0.5398669",
"0.5365061",
"0.53647864",
"0.5361823",
"0.5348247",
"0.5316496",
"0.5316137",
"0.5313852",
"0.53068626",
"0.530355",
"0.53002596",
"0.5272798",
"0.5261485",
"0.5253529",
"0.5249041",
"0.52481383",
"0.52480507",
"0.524556",
"0.5232372",
"0.52289224",
"0.52287465",
"0.5211841",
"0.5211185",
"0.5209582",
"0.5209255",
"0.5207938",
"0.52044666",
"0.5203728",
"0.5195355",
"0.5195009",
"0.5192537",
"0.5184782",
"0.5174684",
"0.51732206",
"0.51728415",
"0.51638085",
"0.5157487",
"0.51410663",
"0.51381195",
"0.51342136",
"0.5128711",
"0.51270694",
"0.5126476",
"0.512047",
"0.51106584",
"0.51093274",
"0.51080984",
"0.51043457",
"0.5098742",
"0.5098556",
"0.5097725",
"0.5094227",
"0.5093771",
"0.5092997",
"0.50889015",
"0.5088286",
"0.50863785",
"0.5085912",
"0.5077943",
"0.50741994",
"0.5061239",
"0.5055561",
"0.5043725",
"0.50381577",
"0.50368625",
"0.5033778",
"0.50310516"
] | 0.62867373 | 2 |
Constructs with the specified initial icon and tooltip text. | public JRibbonAction(Icon icon, String toolTipText)
{
super(icon, toolTipText);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JRibbonAction(String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(text, icon, toolTipText);\n\t}",
"public JRibbonAction(String name, String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(name, text, icon, toolTipText);\n\t}",
"Icon createIcon();",
"public static JButton createIconButton(String tooltip, Icon icon) {\n JButton ret = new JButton(icon);\n ret.setMargin(new Insets(0, 0, 0, 0));\n ret.setBorderPainted(false);\n ret.setBorder(null);\n ret.setFocusable(false);\n ret.setIconTextGap(0);\n if (tooltip != null)\n attachToolTip(ret, tooltip, SwingConstants.RIGHT, SwingConstants.TOP);\n//TODO combine FrameworkIcon and LazyIcon into one class\n// if (icon instanceof FrameworkIcon) {\n// FrameworkIcon ficon = (FrameworkIcon)icon;\n// ret.setDisabledIcon(ficon);\n// }\n// else if (icon instanceof LazyIcon) {\n// LazyIcon licon = (LazyIcon)icon;\n// ret.setDisabledIcon(licon);\n// }\n return ret;\n }",
"public CustomMenuItemGUI(String manager, ImageIcon icon, String tooltip) {\r\n\t\tsuper(manager, icon, tooltip);\r\n\t}",
"public ToolTips (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}",
"public TitleIconItem(){}",
"private static ToolItem createItemHelper(ToolBar toolbar, Image image,\r\n\t\t\tString text) {\r\n\r\n\t\tToolItem item = new ToolItem(toolbar, SWT.PUSH);\r\n\t\tif (image == null) {\r\n\t\t\titem.setText(text);\r\n\t\t} else {\r\n\t\t\titem.setImage(image);\r\n\t\t\titem.setToolTipText(text);\r\n\t\t}\r\n\t\treturn item;\r\n\t}",
"public JRibbonAction(String text, Icon icon)\n\t{\n\t\tsuper(text, icon);\n\t}",
"protected AbstractButton createToolBarButton(String iconName, String toolTipText) {\r\n JButton button = new JButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"public AssetCreationToolEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)\n {\n super(label, shortDesc, template, factory, iconSmall, iconLarge);\n }",
"public DefaultTip() {}",
"public JRibbonAction(String text, String toolTipText)\n\t{\n\t\tsuper(text, toolTipText);\n\t}",
"@Source(\"create.gif\")\n\tpublic ImageResource createIcon();",
"private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}",
"public DefaultTip(String name, Object tip)\n/* */ {\n/* 39 */ this.name = name;\n/* 40 */ this.tip = tip;\n/* */ }",
"public Info(String text, boolean warning)\n {\n super(text, warning, 250, 500);\n \n try {\n File path;\n if(warning){\n path = new File(\"warning.png\");\n }else{\n path = new File(\"info.png\");\n }\n java.awt.Image icon = ImageIO.read(path);\n f.setIconImage(icon);\n } catch (Exception e) {}\n \n ok = new IFButton(100,40,200,125,\"Ok\");\n ok.setFont(new Font(\"Dosis\", Font.BOLD, 18));\n ok.setCornerRadius(1);\n \n ok.addMouseListener(new MouseListener()\n { \n public void mouseClicked(MouseEvent e){}\n \n public void mouseExited(MouseEvent e){\n ok.setColor(new Color(10,30,100));\n }\n \n public void mousePressed(MouseEvent e){\n ok.animCR(3, 0.2);\n }\n \n public void mouseEntered(MouseEvent e){\n ok.setColor(new Color(40,50,140));\n }\n \n public void mouseReleased(MouseEvent e){\n ok.animCR(1, -0.2);\n }\n });\n \n setButtons(new IFButton[]{ok});\n \n if(warning){\n f.setTitle(\"Warnung!\");\n }else{\n f.setTitle(\"Info\"); \n }\n }",
"@Source(\"create.gif\")\n\tpublic DataResource createIconResource();",
"public JRibbonAction(String name, String text, String toolTipText)\n\t{\n\t\tsuper(name, text, toolTipText);\n\t}",
"private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}",
"public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }",
"protected JLabel createComponent(String text, Icon image)\n {\n return new JLabel(text, image, SwingConstants.RIGHT);\n }",
"public MatteIcon() {\r\n this(32, 32, null);\r\n }",
"private static IconResource initIconResource() {\n\t\tIconResource iconResource = new IconResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\ticonResource.addResource(IconTypeAWMS.HOME.name(), iconPath + \"home.png\");\n\t\ticonResource.addResource(IconTypeAWMS.INPUT_ORDER.name(), iconPath + \"input-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.OUTPUT_ORDER.name(), iconPath + \"output-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.PLUS.name(), iconPath + \"plus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.MINUS.name(), iconPath + \"minus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.EDIT.name(), iconPath + \"edit.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CONFIRM.name(), iconPath + \"confirm.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CANCEL.name(), iconPath + \"cancel.png\");\n\t\ticonResource.addResource(IconTypeAWMS.USER.name(), iconPath + \"user.png\");\n\t\t\n\t\treturn iconResource;\n\t}",
"public LTSAButton(ImageIcon p_icon, String p_tooltip, ActionListener p_actionlistener) {\r\n\r\n setIcon(p_icon);\r\n setRequestFocusEnabled(false);\r\n setMargin(new Insets(0, 0, 0, 0));\r\n setToolTipText(p_tooltip);\r\n addActionListener(p_actionlistener);\r\n }",
"private Button initHBoxButton(HBox toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }",
"public LinkButton( String text, Icon icon) {\n\t\tsuper( text, icon);\n\t\tinit();\n\t}",
"public TransferButton(String text, Icon icon) {\n super(text, icon);\n decorate();\n }",
"public ActionButton(ImageIcon icon) {\n\t\tsuper(icon);\n\t}",
"private Button initChildButton(Pane toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"protected AbstractButton createToolBarRadioButton(String iconName, String toolTipText) {\r\n JToggleButton button = new JToggleButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"protected JButton makeImageButton(String imageName, String action, String tooltip, String alt) {\n String imgLocation = \"/Rewind24.gif\";\n URL imageURL = Menu.class.getResource(\"/home/jon/Desktop/boner.desktop\");\n\n\n\n JButton button = new JButton();\n // button.setAction(action);\n button.setToolTipText(tooltip);\n // button.addActionListener(this);\n\n button.setIcon(new ImageIcon(imageURL, alt));\n\n return button;\n }",
"public static JToggleButton createToggleButton(Icon default_icon, String tooltip, ActionListener listener) {\n JToggleButton ret = new JToggleButton(default_icon);\n WidgetUtil.attachToolTip(ret, tooltip, SwingConstants.LEFT, SwingConstants.BOTTOM);\n ret.setBorderPainted(false);\n if (listener != null)\n ret.addActionListener(listener);\n return ret;\n }",
"public JRibbonAction(Icon icon)\n\t{\n\t\tsuper(icon);\n\t}",
"public Notification(\n\t\t@Nullable CharSequence title,\n\t\t@Nullable CharSequence description,\n\t\t@Nullable Node icon) {\n\t\tthis(title, description, (Image) null);\n\t\tsetIcon(icon);\n\t}",
"public /* synthetic */ NotificationEntry(String str, String str2, String str3, int i, String str4, int i2, DefaultConstructorMarker pVar) {\n this(str, str2, str3, (i2 & 8) != 0 ? 0 : i, (i2 & 16) != 0 ? \"\" : str4);\n }",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"public BLabel(Icon image)\n {\n this(image, WEST);\n }",
"protected HStaticIcon createHStaticIcon()\n {\n return new HStaticIcon();\n }",
"public void setTooltipText() { tooltip.setText(name); }",
"private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }",
"public Icon(final String label, final Bitmap image) {\r\n _label = label;\r\n _image = image;\r\n\r\n // Icon can be focused\r\n _state = AccessibleState.FOCUSABLE;\r\n }",
"public X tooltipText(String text) {\n component.setToolTipText(text);\n return (X) this;\n }",
"public void testConstructors()\n {\n checkClass(HStaticIconTest.class);\n\n Image image = new EmptyImage();\n checkConstructor(\"HStaticIcon()\", new HStaticIcon(), 0, 0, 0, 0, null, false);\n checkConstructor(\"HStaticIcon(Image img)\", new HStaticIcon(image), 0, 0, 0, 0, image, false);\n checkConstructor(\"HStaticIcon(Image img, int x, int y, int w, int h)\", new HStaticIcon(image, 10, 20, 30, 40),\n 10, 20, 30, 40, image, true);\n }",
"public abstract String getIconString();",
"public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }",
"@objid (\"491beea2-12dd-11e2-8549-001ec947c8cc\")\n private static MHandledMenuItem createItem(String label, String tooltip, String iconURI) {\n MHandledMenuItem item = MMenuFactory.INSTANCE.createHandledMenuItem();\n // item.setElementId(module.getName() + commandId);\n item.setLabel(label);\n item.setTooltip(tooltip);\n item.setIconURI(iconURI);\n item.setEnabled(true);\n item.setToBeRendered(true);\n item.setVisible(true);\n return item;\n }",
"public PaletteEntry(String label, String shortDescription,\n ImageDescriptor iconSmall, ImageDescriptor iconLarge) {\n this(label, shortDescription, iconSmall, iconLarge, null);\n }",
"public Builder setIcon(@Nullable Drawable icon) {\n mPrimaryIcon = icon;\n return this;\n }",
"public ToolButton createToolButton(Icon icon, Icon selectedIcon,\n String toolName, Tool tool);",
"private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {\n return new IInformationControlCreator() {\n @Override\n public IInformationControl createInformationControl(\n final Shell parent) {\n final String affordance = getAdditionalInfoAffordanceString();\n return new DefaultInformationControl(parent, affordance);\n }\n };\n }",
"protected StringStringHashMap createItem(String iconChar, String title, String text) {\n StringStringHashMap item = new StringStringHashMap();\n item.put(ITEM_ICON, iconChar);\n item.put(ITEM_TITLE, title);\n item.put(ITEM_TEXT, text);\n return item;\n }",
"public static void initAction(IAction a, ResourceBundle bundle, String prefix) {\n \t\t\n \t\tString labelKey= \"label\"; //$NON-NLS-1$\n \t\tString tooltipKey= \"tooltip\"; //$NON-NLS-1$\n \t\tString imageKey= \"image\"; //$NON-NLS-1$\n \t\tString descriptionKey= \"description\"; //$NON-NLS-1$\n \t\t\n \t\tif (prefix != null && prefix.length() > 0) {\n \t\t\tlabelKey= prefix + labelKey;\n \t\t\ttooltipKey= prefix + tooltipKey;\n \t\t\timageKey= prefix + imageKey;\n \t\t\tdescriptionKey= prefix + descriptionKey;\n \t\t}\n \t\t\n \t\ta.setText(getString(bundle, labelKey, labelKey));\n \t\ta.setToolTipText(getString(bundle, tooltipKey, null));\n \t\ta.setDescription(getString(bundle, descriptionKey, null));\n \t\t\n \t\tString relPath= getString(bundle, imageKey, null);\n \t\tif (relPath != null && relPath.trim().length() > 0) {\n \t\t\t\n \t\t\tString dPath;\n \t\t\tString ePath;\n \t\t\t\n \t\t\tif (relPath.indexOf(\"/\") >= 0) { //$NON-NLS-1$\n \t\t\t\tString path= relPath.substring(1);\n \t\t\t\tdPath= 'd' + path;\n \t\t\t\tePath= 'e' + path;\n \t\t\t} else {\n \t\t\t\tdPath= \"dlcl16/\" + relPath; //$NON-NLS-1$\n \t\t\t\tePath= \"elcl16/\" + relPath; //$NON-NLS-1$\n \t\t\t}\n \t\t\t\n \t\t\tImageDescriptor id= CompareUIPlugin.getImageDescriptor(dPath);\t// we set the disabled image first (see PR 1GDDE87)\n \t\t\tif (id != null)\n \t\t\t\ta.setDisabledImageDescriptor(id);\n \t\t\tid= CompareUIPlugin.getImageDescriptor(ePath);\n \t\t\tif (id != null) {\n \t\t\t\ta.setImageDescriptor(id);\n \t\t\t\ta.setHoverImageDescriptor(id);\n \t\t\t}\n \t\t}\n \t}",
"public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"public DynamicDriveToolTipTagFragmentGenerator() {}",
"private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}",
"private DuakIcons()\r\n {\r\n }",
"public TopicLabelLayout(Context context, AttributeSet attributeSet, int i) {\n super(context, attributeSet, i);\n C32569u.m150519b(context, C6969H.m41409d(\"G6A8CDB0EBA28BF\"));\n C32569u.m150519b(attributeSet, C6969H.m41409d(\"G6897C108AC\"));\n }",
"private void checkConstructor(String msg, HStaticIcon icon, int x, int y, int w, int h, Image img,\n boolean defaultSize)\n {\n // Check variables exposed in constructors\n final HStaticIcon i = icon;\n assertNotNull(msg + \" not allocated\", icon);\n assertEquals(msg + \" x-coordinated not initialized correctly\", x, icon.getLocation().x);\n assertEquals(msg + \" y-coordinated not initialized correctly\", y, icon.getLocation().y);\n assertEquals(msg + \" width not initialized correctly\", w, icon.getSize().width);\n assertEquals(msg + \" height not initialized correctly\", h, icon.getSize().height);\n assertSame(msg + \" Image not initialized correctly\", img, icon.getGraphicContent(NORMAL_STATE));\n foreachState(new Callback()\n {\n public void callback(int state)\n {\n if (state != NORMAL_STATE)\n assertNull(stateToString(state) + \" content should not be set\", i.getGraphicContent(state));\n }\n });\n\n // Check variables NOT exposed in constructors\n assertEquals(msg + \" should be NORMAL_STATE\", NORMAL_STATE, icon.getInteractionState());\n assertNull(msg + \" matte should be unassigned\", icon.getMatte());\n assertNotNull(msg + \" text layout mgr should be assigned\", icon.getTextLayoutManager());\n assertEquals(msg + \" bg mode not initialized incorrectly\", icon.getBackgroundMode(), icon.NO_BACKGROUND_FILL);\n if (!defaultSize)\n // assertNull(msg+\" default size should not be set\",\n // icon.getDefaultSize());\n assertEquals(msg + \" default size should not be set\", icon.NO_DEFAULT_SIZE, icon.getDefaultSize());\n else\n assertEquals(msg + \" default size initialized incorrectly\", icon.getDefaultSize(), new Dimension(w, h));\n assertEquals(msg + \" horiz alignment initialized incorrectly\", icon.getHorizontalAlignment(),\n icon.HALIGN_CENTER);\n assertEquals(msg + \" vert alignment initialized incorrectly\", icon.getVerticalAlignment(), icon.VALIGN_CENTER);\n assertEquals(msg + \" resize mode initialized incorrectly\", icon.getResizeMode(), icon.RESIZE_NONE);\n assertSame(msg + \" default look not used\", HStaticIcon.getDefaultLook(), icon.getLook());\n assertEquals(msg + \" border mode not initialized correctly\", true, icon.getBordersEnabled());\n }",
"@FXML\n\tprivate void initialize() {\n\n\t\ttooltip = new FixedTooltip(\"Ziehe dieses Icon über die Karte um einen Marker zu setzen\");\n\n\t\tFixedTooltip.install(this, tooltip);\n\n\t\tdropped = false;\n\n\t}",
"protected abstract String getAddDataIconDefaultCaption () ;",
"public /* synthetic */ ItemInfo(String str, String str2, String str3, Image image, int i, j jVar) {\n this(str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? null : image);\n }",
"public PopupButton(Component c, Icon icon) {\r\n this();\r\n _component = c;\r\n setIcon(icon);\r\n }",
"public HomeListViewItem(Drawable icon, String title, String description) {\n this.icon = icon;\n this.title = title;\n this.description = description;\n }",
"public I18nCheckbox(String text, Icon icon) {\n super(text, icon);\n }",
"public S<T> alert(String icon,String title,String text){\n\t\t\n\t\tAlertDialog alertDialog = new AlertDialog.Builder(activity).create();\n\t\talertDialog.setTitle(title);\n\t\talertDialog.setMessage(text);\n\t\talertDialog.setIcon(getIdD(icon));\n\t\talertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n\t\t new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }\n\t\t });\n\t\talertDialog.show();\n\t\treturn this;\n\t}",
"protected void setToolTipText(Tile tile) {\n\t\tif(!peek && hidden) { tile.setToolTipText(\"concealed tile\"); }\n\t\telse {\n\t\t\tString addendum = \"\";\n\t\t\tif(playerpanel.getPlayer().getType()==Player.HUMAN) { addendum = \" - click to discard during your turn\"; }\n\t\t\ttile.setToolTipText(tile.getTileName()+ addendum); }}",
"public Action(\n long id,\n @Nullable CharSequence label1,\n @Nullable CharSequence label2,\n @Nullable Drawable icon\n ) {\n setId(id);\n setLabel1(label1);\n setLabel2(label2);\n setIcon(icon);\n }",
"public Notification(\n\t\t@Nullable CharSequence title,\n\t\t@Nullable CharSequence description,\n\t\t@Nullable Image icon) {\n\t\tsuper();\n\t\tsetNotificationTitle(title);\n\t\tsetDescription(description);\n\t\tsetIcon(icon);\n\t\tinitializeComponents();\n\t}",
"public Command(final String name, final String iconName) {\n super(name);\n putValue(SHORT_DESCRIPTION, name);\n final URL url = getClass().getResource(IMAGE_DIR + iconName + \".gif\");\n if (url != null) {\n putValue(SMALL_ICON, new ImageIcon(url));\n }\n }",
"protected JButton makeNavigationButton(String imageName, String actionCommand, String toolTipText, String altText) {\n\t\tString imgLocation = \"/images/\" + imageName;\n\t\tURL imageURL = getClass().getResource(imgLocation);\n\n\t\t// Create and initialize the button.\n\t\tJButton button = new JButton();\n\t\tbutton.setActionCommand(actionCommand);\n\t\tbutton.setToolTipText(toolTipText);\n\t\tbutton.addActionListener(this);\n\n\t\tif (imageURL != null) { // image found\n\t\t\tbutton.setIcon(new ImageIcon(imageURL, altText));\n\t\t} else { // no image found\n\t\t\tbutton.setText(altText);\n\t\t}\n\n\t\treturn button;\n\t}",
"@Override\n public void setTooltip(String arg0)\n {\n \n }",
"public void changeIcon() {\n\t\t\tint choice = rand.nextInt(list.length);\n\t\t\tString iconName = list[choice].getName();\n\t\t\ticon = new ImageIcon(helpIconBase + File.separator + iconName);\n\t\t\tDimension dim = new Dimension(icon.getIconWidth() * 2, HEIGHT);\n\t\t\tsetPreferredSize(dim);\n\t\t\tsetMinimumSize(dim);\n\t\t}",
"public static void initAction(IAction a, ResourceBundle bundle, String prefix) {\r\n \t\t\r\n \t\tString labelKey= \"label\"; //$NON-NLS-1$\r\n \t\tString tooltipKey= \"tooltip\"; //$NON-NLS-1$\r\n \t\tString imageKey= \"image\"; //$NON-NLS-1$\r\n \t\tString descriptionKey= \"description\"; //$NON-NLS-1$\r\n \t\t\r\n \t\tif (prefix != null && prefix.length() > 0) {\r\n \t\t\tlabelKey= prefix + labelKey;\r\n \t\t\ttooltipKey= prefix + tooltipKey;\r\n \t\t\timageKey= prefix + imageKey;\r\n \t\t\tdescriptionKey= prefix + descriptionKey;\r\n \t\t}\r\n \t\t\r\n \t\ta.setText(getString(bundle, labelKey, labelKey));\r\n \t\ta.setToolTipText(getString(bundle, tooltipKey, null));\r\n \t\ta.setDescription(getString(bundle, descriptionKey, null));\r\n \t\t\r\n \t\tString relPath= getString(bundle, imageKey, null);\r\n \t\tif (relPath != null && relPath.trim().length() > 0) {\r\n \t\t\t\r\n \t\t\tString cPath;\r\n \t\t\tString dPath;\r\n \t\t\tString ePath;\r\n \t\t\t\r\n \t\t\tif (relPath.indexOf(\"/\") >= 0) { //$NON-NLS-1$\r\n \t\t\t\tString path= relPath.substring(1);\r\n \t\t\t\tcPath= 'c' + path;\r\n \t\t\t\tdPath= 'd' + path;\r\n \t\t\t\tePath= 'e' + path;\r\n \t\t\t} else {\r\n \t\t\t\tcPath= \"clcl16/\" + relPath; //$NON-NLS-1$\r\n \t\t\t\tdPath= \"dlcl16/\" + relPath; //$NON-NLS-1$\r\n \t\t\t\tePath= \"elcl16/\" + relPath; //$NON-NLS-1$\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tImageDescriptor id= CompareUIPlugin.getImageDescriptor(dPath);\t// we set the disabled image first (see PR 1GDDE87)\r\n \t\t\tif (id != null)\r\n \t\t\t\ta.setDisabledImageDescriptor(id);\r\n \t\t\tid= CompareUIPlugin.getImageDescriptor(cPath);\r\n \t\t\tif (id != null)\r\n \t\t\t\ta.setHoverImageDescriptor(id);\r\n \t\t\tid= CompareUIPlugin.getImageDescriptor(ePath);\r\n \t\t\tif (id != null)\r\n \t\t\t\ta.setImageDescriptor(id);\r\n \t\t}\r\n \t}",
"public static String iconify(final String raw) {\n int priorTemplateEnd = 0;\n int currentTemplateStart = raw.indexOf(TEMPLATE_START);\n\n final StringBuilder builder = new StringBuilder();\n\n while (currentTemplateStart != -1) {\n builder.append(raw.substring(priorTemplateEnd, currentTemplateStart));\n\n priorTemplateEnd = raw.indexOf(TEMPLATE_END, currentTemplateStart + TEMPLATE_START_LENGTH);\n\n if (priorTemplateEnd != -1) {\n builder.append(\n iconifyIndividual(raw.substring(currentTemplateStart + TEMPLATE_START_LENGTH, priorTemplateEnd)));\n }\n\n priorTemplateEnd += TEMPLATE_END_LENGTH;\n currentTemplateStart = raw.indexOf(TEMPLATE_START, priorTemplateEnd);\n }\n\n builder.append(raw.substring(priorTemplateEnd));\n\n return builder.toString();\n }",
"private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }",
"public BenButton(Icon ico) {\n\t\tsuper(ico);\n\t\tsetVisible(true);\n\t}",
"public BioDataMetaData(String userId) {\n \n \n \n initComponents();\n this.userId=userId;\n \n Image img = new ImageIcon(System.getProperty(\"user.dir\")+\"/\"+\"ICON_LOGO.jpg\").getImage();\n this.setIconImage(img);\n this.setTitle(\"ADD NEW ITEM\"); \n// initComponents();\n }",
"public ActionUpdate(String text, ImageIcon icon)\n\t{\n\t\tsuper(text, icon);\n\t\tputValue(SHORT_DESCRIPTION, AquaWorld.texts\n\t\t\t\t.getString(\"actionUpdateDatabbaseText\"));\n\t}",
"public JButton createButton(String name, String toolTip) {\r\n\r\n // load the image\r\n String imagePath = \"./resources/\" + name + \".png\";\r\n ImageIcon iconRollover = new ImageIcon(imagePath);\r\n int w = iconRollover.getIconWidth();\r\n int h = iconRollover.getIconHeight();\r\n\r\n // get the cursor for this button\r\n Cursor cursor =\r\n Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);\r\n\r\n // make translucent default image\r\n Image image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n Graphics2D g = (Graphics2D)image.getGraphics();\r\n Composite alpha = AlphaComposite.getInstance(\r\n AlphaComposite.SRC_OVER, .5f);\r\n g.setComposite(alpha);\r\n g.drawImage(iconRollover.getImage(), 0, 0, null);\r\n g.dispose();\r\n ImageIcon iconDefault = new ImageIcon(image);\r\n\r\n // make a pressed image\r\n image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n g = (Graphics2D)image.getGraphics();\r\n g.drawImage(iconRollover.getImage(), 2, 2, null);\r\n g.dispose();\r\n ImageIcon iconPressed = new ImageIcon(image);\r\n\r\n // create the button\r\n JButton button = new JButton();\r\n button.addActionListener(this);\r\n button.setIgnoreRepaint(true);\r\n button.setFocusable(false);\r\n button.setToolTipText(toolTip);\r\n button.setBorder(null);\r\n button.setContentAreaFilled(false);\r\n button.setCursor(cursor);\r\n button.setIcon(iconDefault);\r\n button.setRolloverIcon(iconRollover);\r\n button.setPressedIcon(iconPressed);\r\n\r\n return button;\r\n }",
"private void createButton(final ToolBar bar, final String imagePath,\r\n final String text, final SelectionListener listener) {\r\n final Image icon = getIcon(imagePath);\r\n\r\n final ToolItem toolItem = new ToolItem(bar, SWT.PUSH);\r\n toolItem.setImage(resize(icon, DEFAULT_ICON_SIZE, DEFAULT_ICON_SIZE));\r\n toolItem.setText(text);\r\n\r\n toolItem.addSelectionListener(listener);\r\n }",
"public BLabel(String text, Icon image, Position align, Position textPos)\n {\n component = createComponent(text, image);\n setAlignment(align);\n setTextPosition(textPos);\n }",
"private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }",
"public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }",
"String getIcon();",
"String getIcon();",
"public ShapeExportAction() {\n super();\n putValue(\n SMALL_ICON,\n new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cismap/commons/gui/res/shapeexport_small.png\")));\n putValue(SHORT_DESCRIPTION, NbBundle.getMessage(ShapeExportAction.class, \"ShapeExportAction.tooltiptext\"));\n putValue(NAME, NbBundle.getMessage(ShapeExportAction.class, \"ShapeExportAction.name\"));\n }",
"public IconBuilder text(String text) {\n\t\tthis.text = text;\n\t\treturn this;\n\t}",
"public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)\n/* */ {\n/* 89 */ this.tipPane = tipPane;\n/* */ }",
"private void setTooltip() {\n\t\tif (buttonAddScannable != null && !buttonAddScannable.isDisposed()) {\n\t\t\tgetParentShell().getDisplay().asyncExec(() -> buttonAddScannable.setToolTipText(\"Select scannable to add to list...\"));\n\t\t}\n\t}",
"public LinkButton( Icon icon) {\n\t\tsuper( icon);\n\t\tinit();\n\t}",
"public static IconCompat m2630a(Resources resources, String str, int i) {\n if (str == null) {\n throw new IllegalArgumentException(\"Package must not be null.\");\n } else if (i != 0) {\n IconCompat iconCompat = new IconCompat(2);\n iconCompat.f2609e = i;\n if (resources != null) {\n try {\n iconCompat.f2606b = resources.getResourceName(i);\n } catch (NotFoundException unused) {\n throw new IllegalArgumentException(\"Icon resource cannot be found\");\n }\n } else {\n iconCompat.f2606b = str;\n }\n return iconCompat;\n } else {\n throw new IllegalArgumentException(\"Drawable resource ID must not be 0\");\n }\n }",
"public IconRenderer() \n\t{\n\t\t\n\t}",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n plusButton.setTooltip(new Tooltip(\"Agregar nuevo elemento\"));\r\n }",
"public ImageButton(Action action, Icon normal) {\n\t\tthis(new InnerMouseHoverAwareAction(action, normal, null, null));\n\t}",
"public String generateToolTipFragment(String toolTipText) {\n/* 88 */ return \" onMouseOver=\\\"return stm(['\" + \n/* 89 */ ImageMapUtilities.javascriptEscape(this.title) + \"','\" + \n/* 90 */ ImageMapUtilities.javascriptEscape(toolTipText) + \"'],Style[\" + this.style + \"]);\\\"\" + \" onMouseOut=\\\"return htm();\\\"\";\n/* */ }",
"public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}"
] | [
"0.67543215",
"0.65138286",
"0.6446655",
"0.63830024",
"0.6377471",
"0.61970085",
"0.6061782",
"0.60589945",
"0.60181105",
"0.59435457",
"0.5919272",
"0.5884489",
"0.5865335",
"0.5763168",
"0.57325065",
"0.56868374",
"0.56748986",
"0.566823",
"0.5646077",
"0.56339025",
"0.5604108",
"0.55906653",
"0.5588938",
"0.55794626",
"0.5579421",
"0.55668813",
"0.5546963",
"0.55229217",
"0.5460716",
"0.5458963",
"0.5427261",
"0.5423071",
"0.5386089",
"0.5383866",
"0.53350383",
"0.53300834",
"0.5324707",
"0.53187746",
"0.530528",
"0.5284634",
"0.52710897",
"0.52582765",
"0.5254779",
"0.52380013",
"0.5226216",
"0.5221062",
"0.52182686",
"0.52124727",
"0.52023035",
"0.51994866",
"0.5184424",
"0.5181164",
"0.5173898",
"0.5162147",
"0.51601994",
"0.5154765",
"0.5144495",
"0.51394504",
"0.51334834",
"0.5130726",
"0.51292086",
"0.51274455",
"0.51196545",
"0.5119055",
"0.5118799",
"0.5112294",
"0.510807",
"0.5107323",
"0.5105721",
"0.51053953",
"0.50982356",
"0.50968957",
"0.5094075",
"0.5093864",
"0.509154",
"0.50813496",
"0.5078793",
"0.50760794",
"0.50713265",
"0.50649667",
"0.50623673",
"0.50610685",
"0.506056",
"0.505897",
"0.5058857",
"0.50575703",
"0.5053208",
"0.5053208",
"0.5052526",
"0.50495934",
"0.504908",
"0.50464857",
"0.5042447",
"0.50324625",
"0.5023276",
"0.5023034",
"0.50144833",
"0.5008134",
"0.5004753",
"0.50016356"
] | 0.6764116 | 0 |
Constructs with the specified initial text, icon and tooltip text. | public JRibbonAction(String text, Icon icon, String toolTipText)
{
super(text, icon, toolTipText);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JRibbonAction(String name, String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(name, text, icon, toolTipText);\n\t}",
"public JRibbonAction(Icon icon, String toolTipText)\n\t{\n\t\tsuper(icon, toolTipText);\n\t}",
"private static ToolItem createItemHelper(ToolBar toolbar, Image image,\r\n\t\t\tString text) {\r\n\r\n\t\tToolItem item = new ToolItem(toolbar, SWT.PUSH);\r\n\t\tif (image == null) {\r\n\t\t\titem.setText(text);\r\n\t\t} else {\r\n\t\t\titem.setImage(image);\r\n\t\t\titem.setToolTipText(text);\r\n\t\t}\r\n\t\treturn item;\r\n\t}",
"public JRibbonAction(String text, String toolTipText)\n\t{\n\t\tsuper(text, toolTipText);\n\t}",
"public JRibbonAction(String text, Icon icon)\n\t{\n\t\tsuper(text, icon);\n\t}",
"public ToolTips (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}",
"public CustomMenuItemGUI(String manager, ImageIcon icon, String tooltip) {\r\n\t\tsuper(manager, icon, tooltip);\r\n\t}",
"public JRibbonAction(String name, String text, String toolTipText)\n\t{\n\t\tsuper(name, text, toolTipText);\n\t}",
"public LinkButton( String text, Icon icon) {\n\t\tsuper( text, icon);\n\t\tinit();\n\t}",
"protected JLabel createComponent(String text, Icon image)\n {\n return new JLabel(text, image, SwingConstants.RIGHT);\n }",
"public TransferButton(String text, Icon icon) {\n super(text, icon);\n decorate();\n }",
"public TitleIconItem(){}",
"protected AbstractButton createToolBarButton(String iconName, String toolTipText) {\r\n JButton button = new JButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"public DefaultTip() {}",
"private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}",
"public static JButton createIconButton(String tooltip, Icon icon) {\n JButton ret = new JButton(icon);\n ret.setMargin(new Insets(0, 0, 0, 0));\n ret.setBorderPainted(false);\n ret.setBorder(null);\n ret.setFocusable(false);\n ret.setIconTextGap(0);\n if (tooltip != null)\n attachToolTip(ret, tooltip, SwingConstants.RIGHT, SwingConstants.TOP);\n//TODO combine FrameworkIcon and LazyIcon into one class\n// if (icon instanceof FrameworkIcon) {\n// FrameworkIcon ficon = (FrameworkIcon)icon;\n// ret.setDisabledIcon(ficon);\n// }\n// else if (icon instanceof LazyIcon) {\n// LazyIcon licon = (LazyIcon)icon;\n// ret.setDisabledIcon(licon);\n// }\n return ret;\n }",
"Icon createIcon();",
"public Info(String text, boolean warning)\n {\n super(text, warning, 250, 500);\n \n try {\n File path;\n if(warning){\n path = new File(\"warning.png\");\n }else{\n path = new File(\"info.png\");\n }\n java.awt.Image icon = ImageIO.read(path);\n f.setIconImage(icon);\n } catch (Exception e) {}\n \n ok = new IFButton(100,40,200,125,\"Ok\");\n ok.setFont(new Font(\"Dosis\", Font.BOLD, 18));\n ok.setCornerRadius(1);\n \n ok.addMouseListener(new MouseListener()\n { \n public void mouseClicked(MouseEvent e){}\n \n public void mouseExited(MouseEvent e){\n ok.setColor(new Color(10,30,100));\n }\n \n public void mousePressed(MouseEvent e){\n ok.animCR(3, 0.2);\n }\n \n public void mouseEntered(MouseEvent e){\n ok.setColor(new Color(40,50,140));\n }\n \n public void mouseReleased(MouseEvent e){\n ok.animCR(1, -0.2);\n }\n });\n \n setButtons(new IFButton[]{ok});\n \n if(warning){\n f.setTitle(\"Warnung!\");\n }else{\n f.setTitle(\"Info\"); \n }\n }",
"public AssetCreationToolEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)\n {\n super(label, shortDesc, template, factory, iconSmall, iconLarge);\n }",
"public Info(String text) {\n //new JTextArea(text);\n super(text, SwingConstants.CENTER);\n setFont(Scheme.getFont());\n setOpaque(true);\n setSize(getFontMetrics(Scheme.getFont()).stringWidth(getText()) + 13, 25);\n setBackground(Scheme.getBackgroundColor());\n setForeground(Scheme.getForegroundColor());\n setBorder(BorderFactory.createLineBorder(Color.GRAY));\n }",
"public IconBuilder text(String text) {\n\t\tthis.text = text;\n\t\treturn this;\n\t}",
"public X tooltipText(String text) {\n component.setToolTipText(text);\n return (X) this;\n }",
"public DefaultTip(String name, Object tip)\n/* */ {\n/* 39 */ this.name = name;\n/* 40 */ this.tip = tip;\n/* */ }",
"public BLabel(String text, Icon image, Position align, Position textPos)\n {\n component = createComponent(text, image);\n setAlignment(align);\n setTextPosition(textPos);\n }",
"public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}",
"public void setTooltipText() { tooltip.setText(name); }",
"protected StringStringHashMap createItem(String iconChar, String title, String text) {\n StringStringHashMap item = new StringStringHashMap();\n item.put(ITEM_ICON, iconChar);\n item.put(ITEM_TITLE, title);\n item.put(ITEM_TEXT, text);\n return item;\n }",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"public static PlaceholderFragment newInstance(String text, int icon) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putString(\"text\", text);\n args.putInt(\"icon\", icon);\n fragment.setArguments(args);\n return fragment;\n }",
"private void init(String text)\n\t{\n\t\tthis.text = text;\n\n\t\tsetColor(ClassEntityView.getBasicColor());\n\t\tpopupMenu.addSeparator();\n\t\tfinal JMenuItem item = new JMenuItem(\"Delete commentary\", PersonalizedIcon.createImageIcon(Slyum.ICON_PATH + \"delete16.png\"));\n\t\titem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdelete();\n\t\t\t}\n\t\t});\n\t\t\n\t\tparent.selectOnly(this);\n\t\tpopupMenu.add(item);\n\t}",
"public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"public I18nCheckbox(String text, Icon icon) {\n super(text, icon);\n }",
"public ActionUpdate(String text, ImageIcon icon)\n\t{\n\t\tsuper(text, icon);\n\t\tputValue(SHORT_DESCRIPTION, AquaWorld.texts\n\t\t\t\t.getString(\"actionUpdateDatabbaseText\"));\n\t}",
"public LTSAButton(ImageIcon p_icon, String p_tooltip, ActionListener p_actionlistener) {\r\n\r\n setIcon(p_icon);\r\n setRequestFocusEnabled(false);\r\n setMargin(new Insets(0, 0, 0, 0));\r\n setToolTipText(p_tooltip);\r\n addActionListener(p_actionlistener);\r\n }",
"public JRibbonAction(String text)\n\t{\n\t\tsuper(text);\n\t}",
"public TextController createToolTipText(ControllerCore genCode) {\n\t\ttoolTipTextTXT = new TextController(\"toolTipText\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(toolTipText$1LBL);\n\t\t\t\tsetProperty(\"toolTipText\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn toolTipTextTXT;\n\t}",
"public /* synthetic */ NotificationEntry(String str, String str2, String str3, int i, String str4, int i2, DefaultConstructorMarker pVar) {\n this(str, str2, str3, (i2 & 8) != 0 ? 0 : i, (i2 & 16) != 0 ? \"\" : str4);\n }",
"public ActionMenuItem(String text) {\n this.text = text;\n }",
"public S<T> alert(String icon,String title,String text){\n\t\t\n\t\tAlertDialog alertDialog = new AlertDialog.Builder(activity).create();\n\t\talertDialog.setTitle(title);\n\t\talertDialog.setMessage(text);\n\t\talertDialog.setIcon(getIdD(icon));\n\t\talertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n\t\t new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }\n\t\t });\n\t\talertDialog.show();\n\t\treturn this;\n\t}",
"public static JLabel newFormLabel(String text, String tooltip) {\n JLabel label = newFormLabel(text);\n label.setToolTipText(tooltip);\n return label;\n }",
"private void createButton(final ToolBar bar, final String imagePath,\r\n final String text, final SelectionListener listener) {\r\n final Image icon = getIcon(imagePath);\r\n\r\n final ToolItem toolItem = new ToolItem(bar, SWT.PUSH);\r\n toolItem.setImage(resize(icon, DEFAULT_ICON_SIZE, DEFAULT_ICON_SIZE));\r\n toolItem.setText(text);\r\n\r\n toolItem.addSelectionListener(listener);\r\n }",
"public /* synthetic */ ItemInfo(String str, String str2, String str3, Image image, int i, j jVar) {\n this(str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? null : image);\n }",
"public VaultAddin(@Nullable String text, @Nullable String description, @Nullable Icon icon) {\n super(text, description, icon);\n }",
"public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}",
"private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }",
"public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }",
"public ToolBarManager initTitle(String toolBarTitle, int color,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}",
"private Button initHBoxButton(HBox toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }",
"public TopicLabelLayout(Context context, AttributeSet attributeSet, int i) {\n super(context, attributeSet, i);\n C32569u.m150519b(context, C6969H.m41409d(\"G6A8CDB0EBA28BF\"));\n C32569u.m150519b(attributeSet, C6969H.m41409d(\"G6897C108AC\"));\n }",
"public ActionButton(ImageIcon icon) {\n\t\tsuper(icon);\n\t}",
"public DynamicDriveToolTipTagFragmentGenerator() {}",
"public void setToolTipText(String text)\n/* */ {\n/* 227 */ putClientProperty(\"ToolTipText\", text);\n/* */ }",
"public BLabel(Icon image)\n {\n this(image, WEST);\n }",
"private JMenuItem createMenuItem(JMenu parent, String text, int mnemonic, String keyStrokeText, String tooltip) {\n\t\tJMenuItem item = new JMenuItem();\n\t\t\n\t\titem.setText(text);\n\t\tif (mnemonic != -1) {\n\t\t\titem.setMnemonic(mnemonic);\n\t\t}\n\t\tif (keyStrokeText != null) {\n\t\t\tKeyStroke accelerator = KeyStroke.getKeyStroke(keyStrokeText);\n\t\t\titem.setAccelerator(accelerator);\n\t\t}\n\t\tif (tooltip != null) {\n\t\t\titem.setToolTipText(tooltip);\n\t\t}\n\t\t\n\t\tparent.add(item);\n\t\treturn item;\n\t}",
"protected AbstractButton createToolBarRadioButton(String iconName, String toolTipText) {\r\n JToggleButton button = new JToggleButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"public Entry(String text) {\n this(GtkEntry.createEntry());\n setText(text);\n }",
"public void init() {\n super.init();\n\n setDefaultInputNodes(1);\n setMinimumInputNodes(1);\n setMaximumInputNodes(1);\n\n setDefaultOutputNodes(1);\n setMinimumOutputNodes(1);\n setMaximumOutputNodes(Integer.MAX_VALUE);\n\n String guilines = \"\";\n guilines += \"Input your text string in the following box $title value TextField\\n\";\n setGUIBuilderV2Info(guilines);\n\n }",
"public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }",
"private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {\n return new IInformationControlCreator() {\n @Override\n public IInformationControl createInformationControl(\n final Shell parent) {\n final String affordance = getAdditionalInfoAffordanceString();\n return new DefaultInformationControl(parent, affordance);\n }\n };\n }",
"private void createLabels() {\n\n // Add status labels\n infoItem = new ToolItem(toolbar, SWT.SEPARATOR);\n infoComposite = new Composite(toolbar, SWT.NONE);\n infoItem.setControl(infoComposite);\n infoComposite.setLayout(null);\n\n labelAttribute = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelAttribute.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelAttribute.pack(); \n labelTransformations = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelTransformations.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelTransformations.pack();\n labelSelected = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelSelected.setText(Resources.getMessage(\"MainToolBar.31\")); //$NON-NLS-1$\n labelSelected.pack();\n labelApplied = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelApplied.setText(Resources.getMessage(\"MainToolBar.32\")); //$NON-NLS-1$\n labelApplied.pack();\n \n // Copy info to clip board on right-click\n Menu menu = new Menu(toolbar);\n MenuItem itemCopy = new MenuItem(menu, SWT.NONE);\n itemCopy.setText(Resources.getMessage(\"MainToolBar.42\")); //$NON-NLS-1$\n itemCopy.addSelectionListener(new SelectionAdapter(){\n public void widgetSelected(SelectionEvent arg0) {\n if (tooltip != null) {\n Clipboard clipboard = new Clipboard(toolbar.getDisplay());\n TextTransfer textTransfer = TextTransfer.getInstance();\n clipboard.setContents(new String[]{tooltip}, \n new Transfer[]{textTransfer});\n clipboard.dispose();\n }\n }\n });\n labelSelected.setMenu(menu);\n labelApplied.setMenu(menu);\n labelTransformations.setMenu(menu);\n \n // Add listener for layout\n toolbar.addControlListener(new ControlAdapter() {\n @Override\n public void controlResized(final ControlEvent arg0) {\n layout();\n }\n });\n }",
"public SimpleNodeLabel(String text, JGoArea parent) {\n super(text);\n mParent = parent;\n initialize(text, parent);\n }",
"public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }",
"public Text(double x, double y, String text, TextStyle style, Accent accent)\n {\n super(x, y, text);\n this.style = style;\n this.accent = accent;\n initialize();\n }",
"public JTextArea createInstructions() {\n\t\tJTextArea instructions = new JTextArea(\n\t\t\t\t\"Hello. Thank you for being a wonderful and engaged volunteer. Befor you start your journey with your\"\n\t\t\t\t\t\t+ \"Youth Leader, it is essential that you have your Magic Stone. \");\n\t\t// instructions not editable\n\t\tinstructions.setEditable(false);\n\n\t\t// allows words to go to next line\n\t\tinstructions.setLineWrap(true);\n\n\t\t// prevents words from splitting\n\t\tinstructions.setWrapStyleWord(true);\n\n\t\t// change font\n\t\tinstructions.setFont(new Font(\"SANS_SERIF\", Font.PLAIN, 17));\n\n\t\t// change font color\n\t\tinstructions.setForeground(Color.white);\n\n\t\t// Insets constructor summary: (top, left, bottom, right)\n\t\tinstructions.setMargin(new Insets(30, 30, 30, 30));\n\n\t\t// Set background color\n\t\tinstructions.setOpaque(true);\n\t\tinstructions.setBackground(new Color(#00aeef));\n\n\t\treturn instructions;\n\t}",
"public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }",
"@Test\n\tpublic void testIconText() {\n\t\tfor (QUADRANT quad : QUADRANT.values()) {\n\t\t\tImageIcon icon =\n\t\t\t\tnew MultiIconBuilder(makeQuandrantIcon(32, 32, Palette.GRAY, Palette.WHITE))\n\t\t\t\t\t\t.addText(\"Abcfg\", font, Palette.RED, quad)\n\t\t\t\t\t\t.build();\n\t\t\ticon.getDescription();\n\t\t}\n\t}",
"public MatteIcon() {\r\n this(32, 32, null);\r\n }",
"public String generateToolTipFragment(String toolTipText) {\n/* 88 */ return \" onMouseOver=\\\"return stm(['\" + \n/* 89 */ ImageMapUtilities.javascriptEscape(this.title) + \"','\" + \n/* 90 */ ImageMapUtilities.javascriptEscape(toolTipText) + \"'],Style[\" + this.style + \"]);\\\"\" + \" onMouseOut=\\\"return htm();\\\"\";\n/* */ }",
"public InfoDialog(String text, String title) {\r\n\t\tthis.setDialog(text, title);\r\n\t}",
"public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }",
"public BTextPairSettings(String button_title, String text_title){\n\t\tsuper(button_title, text_title);\n\t//\tbutton.addActionListener(this);\n\t\t\n\t}",
"public Action(\n long id,\n @Nullable CharSequence label1,\n @Nullable CharSequence label2,\n @Nullable Drawable icon\n ) {\n setId(id);\n setLabel1(label1);\n setLabel2(label2);\n setIcon(icon);\n }",
"private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}",
"private void initializeAnimalIText() {\r\n\t\tiText = lang.newText(new Offset(0, 178, rowText, AnimalScript.DIRECTION_SW), \"\", \"iText\", null);\r\n\t\tiText.hide();\r\n\t}",
"protected void setToolTipText(Tile tile) {\n\t\tif(!peek && hidden) { tile.setToolTipText(\"concealed tile\"); }\n\t\telse {\n\t\t\tString addendum = \"\";\n\t\t\tif(playerpanel.getPlayer().getType()==Player.HUMAN) { addendum = \" - click to discard during your turn\"; }\n\t\t\ttile.setToolTipText(tile.getTileName()+ addendum); }}",
"private Button initChildButton(Pane toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }",
"public ExpandableToolTip(String toolTipText, String helpText,\r\n\t\t\tJComponent owner) {\r\n\t\tthis.owner = owner;\r\n\r\n\t\t/*\r\n\t\t * Attach mouseListener to component. If we attach the toolTip to a\r\n\t\t * JComboBox our MouseListener is not used, we therefore need to attach\r\n\t\t * the MouseListener to each component in the JComboBox\r\n\t\t */\r\n\t\tif (owner instanceof JComboBox) {\r\n\t\t\tfor (int i = 0; i < owner.getComponentCount(); i++) {\r\n\t\t\t\towner.getComponent(i).addMouseListener(this);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\towner.addMouseListener(this);\r\n\t\t}\r\n\r\n\t\t/* generate toolTip panel */\r\n\t\ttoolTip = new JPanel(new GridLayout(3, 1));\r\n\t\ttoolTip.setPreferredSize(new Dimension(WIDTH_TT, HEIGHT_TT));\r\n\t\ttoolTip.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n\t\ttoolTip.setBackground(Color.getHSBColor(15, 3, 99));\r\n\t\ttoolTip.add(new JLabel(toolTipText));\r\n\t\ttoolTip.add(new JSeparator(SwingConstants.HORIZONTAL));\r\n\t\tJLabel more = new JLabel(\"press 'F1' for more details\");\r\n\t\tmore.setForeground(Color.DARK_GRAY);\r\n\t\tmore.setFont(new Font(null, 1, 10));\r\n\t\ttoolTip.add(more);\r\n\r\n\t\t/* generate help panel */\r\n\t\tJPanel helpContent = new JPanel();\r\n\t\thelpContent.setBackground(Color.WHITE);\r\n\r\n\t\t/* generate editor to display html help text and put in scrollpane */\r\n\t\th = new JEditorPane();\r\n\t\th.setContentType(\"text/html\");\r\n\t\th.addHyperlinkListener(this);\r\n\t\tString context = \"<html><body><table width='\" + WIDTH_HTML\r\n\t\t\t\t+ \"'><tr><td><p><font size=+1>\" + toolTipText + \"</font></p>\"\r\n\t\t\t\t+ helpText + \"</td></tr></table></body></html>\";\r\n\t\th.setText(context);\r\n\t\th.setEditable(true);\r\n\t\th.addHyperlinkListener(this);\r\n\t\thelpContent.add(h);\r\n\t\thelp = new JScrollPane(helpContent);\r\n\t\thelp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\thelp.setPreferredSize(new Dimension(WIDTH_SC, HEIGHT_SC));\r\n\r\n\t\tpopup = new JFrame();\r\n\t\tpopup.setUndecorated(true);\r\n\r\n\t}",
"Text createText();",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n plusButton.setTooltip(new Tooltip(\"Agregar nuevo elemento\"));\r\n }",
"public Dialog(String text) {\n initComponents( text);\n }",
"public LinkButton( String text) {\n\t\tsuper( text);\n\t\tinit();\n\t}",
"public Button(final String textLabel) {\n label = new Label(textLabel);\n label.setHorizontalAlignment(HorizontalAlignment.CENTRE);\n label.setVerticalAlignment(VerticalAlignment.MIDDLE);\n label.setBackgroundColour(Color.GRAY);\n label.setOpaque(true);\n }",
"public Text(String text)\n {\n super(text);\n initialize();\n }",
"public static void initAction(IAction a, ResourceBundle bundle, String prefix) {\n \t\t\n \t\tString labelKey= \"label\"; //$NON-NLS-1$\n \t\tString tooltipKey= \"tooltip\"; //$NON-NLS-1$\n \t\tString imageKey= \"image\"; //$NON-NLS-1$\n \t\tString descriptionKey= \"description\"; //$NON-NLS-1$\n \t\t\n \t\tif (prefix != null && prefix.length() > 0) {\n \t\t\tlabelKey= prefix + labelKey;\n \t\t\ttooltipKey= prefix + tooltipKey;\n \t\t\timageKey= prefix + imageKey;\n \t\t\tdescriptionKey= prefix + descriptionKey;\n \t\t}\n \t\t\n \t\ta.setText(getString(bundle, labelKey, labelKey));\n \t\ta.setToolTipText(getString(bundle, tooltipKey, null));\n \t\ta.setDescription(getString(bundle, descriptionKey, null));\n \t\t\n \t\tString relPath= getString(bundle, imageKey, null);\n \t\tif (relPath != null && relPath.trim().length() > 0) {\n \t\t\t\n \t\t\tString dPath;\n \t\t\tString ePath;\n \t\t\t\n \t\t\tif (relPath.indexOf(\"/\") >= 0) { //$NON-NLS-1$\n \t\t\t\tString path= relPath.substring(1);\n \t\t\t\tdPath= 'd' + path;\n \t\t\t\tePath= 'e' + path;\n \t\t\t} else {\n \t\t\t\tdPath= \"dlcl16/\" + relPath; //$NON-NLS-1$\n \t\t\t\tePath= \"elcl16/\" + relPath; //$NON-NLS-1$\n \t\t\t}\n \t\t\t\n \t\t\tImageDescriptor id= CompareUIPlugin.getImageDescriptor(dPath);\t// we set the disabled image first (see PR 1GDDE87)\n \t\t\tif (id != null)\n \t\t\t\ta.setDisabledImageDescriptor(id);\n \t\t\tid= CompareUIPlugin.getImageDescriptor(ePath);\n \t\t\tif (id != null) {\n \t\t\t\ta.setImageDescriptor(id);\n \t\t\t\ta.setHoverImageDescriptor(id);\n \t\t\t}\n \t\t}\n \t}",
"public ToolButton createToolButton(Icon icon, Icon selectedIcon,\n String toolName, Tool tool);",
"@Override\n public void setTooltip(String arg0)\n {\n \n }",
"public SettingsPanel(final IconManager iconManager, final PrefsComponentFactory compFactory,\n final String infoText) {\n this(iconManager, compFactory, infoText, true);\n }",
"@Override\n\tpublic Title makeTitle(Map<String, String> attributes, String data) {\n\t\treturn new Title( attributes, data );\n\t}",
"private void IsiTabel(String text) {\n IsiTabel = new TextView(getActivity());\n IsiTabel.setText(text);\n IsiTabel.setTextColor(getResources().getColor(R.color.fontTabel));\n IsiTabel.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT));\n IsiTabel.setBackground(getResources().getDrawable(R.drawable.background_tabel));\n TR.addView(IsiTabel);\n }",
"public void createToolTip(View view, Tooltip.Gravity gravity, String text){\n Tooltip.make(this,\n new Tooltip.Builder(101)\n .anchor(view, gravity)\n .closePolicy(new Tooltip.ClosePolicy()\n .insidePolicy(true, false)\n .outsidePolicy(true, false), 3000)\n .activateDelay(800)\n .showDelay(300)\n .text(text)\n .maxWidth(700)\n .withArrow(true)\n .withOverlay(true)\n .withStyleId(R.style.ToolTipLayoutCustomStyle)\n .floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)\n .build()\n ).show();\n }",
"public JRibbonAction(Icon icon)\n\t{\n\t\tsuper(icon);\n\t}",
"@Override\r\n\tprotected void onInitialize() {\n\t\tsuper.onInitialize();\r\n\t\tadd(new MultiLineLabel(LABEL_ID, LABEL_TEXT));\r\n\t}",
"Help createHelp();",
"@objid (\"491beea2-12dd-11e2-8549-001ec947c8cc\")\n private static MHandledMenuItem createItem(String label, String tooltip, String iconURI) {\n MHandledMenuItem item = MMenuFactory.INSTANCE.createHandledMenuItem();\n // item.setElementId(module.getName() + commandId);\n item.setLabel(label);\n item.setTooltip(tooltip);\n item.setIconURI(iconURI);\n item.setEnabled(true);\n item.setToBeRendered(true);\n item.setVisible(true);\n return item;\n }",
"protected JButton makeNavigationButton(String imageName, String actionCommand, String toolTipText, String altText) {\n\t\tString imgLocation = \"/images/\" + imageName;\n\t\tURL imageURL = getClass().getResource(imgLocation);\n\n\t\t// Create and initialize the button.\n\t\tJButton button = new JButton();\n\t\tbutton.setActionCommand(actionCommand);\n\t\tbutton.setToolTipText(toolTipText);\n\t\tbutton.addActionListener(this);\n\n\t\tif (imageURL != null) { // image found\n\t\t\tbutton.setIcon(new ImageIcon(imageURL, altText));\n\t\t} else { // no image found\n\t\t\tbutton.setText(altText);\n\t\t}\n\n\t\treturn button;\n\t}",
"public static String setToolTipText(String text) {\n\t\tString oldTip = toolTipText;\n\t\ttoolTipText = text;\n\t\treturn (oldTip);\n\t}",
"public void testConstructors()\n {\n checkClass(HStaticIconTest.class);\n\n Image image = new EmptyImage();\n checkConstructor(\"HStaticIcon()\", new HStaticIcon(), 0, 0, 0, 0, null, false);\n checkConstructor(\"HStaticIcon(Image img)\", new HStaticIcon(image), 0, 0, 0, 0, image, false);\n checkConstructor(\"HStaticIcon(Image img, int x, int y, int w, int h)\", new HStaticIcon(image, 10, 20, 30, 40),\n 10, 20, 30, 40, image, true);\n }"
] | [
"0.67707676",
"0.6740748",
"0.63833433",
"0.63023835",
"0.6282935",
"0.6164501",
"0.6161377",
"0.609314",
"0.5955358",
"0.58962226",
"0.58771646",
"0.58736324",
"0.5871278",
"0.5819998",
"0.5808323",
"0.57882535",
"0.5786484",
"0.5773232",
"0.576475",
"0.57593834",
"0.57465094",
"0.5739165",
"0.5730946",
"0.562899",
"0.5589915",
"0.5558151",
"0.55520993",
"0.551925",
"0.547635",
"0.54744893",
"0.543621",
"0.5434305",
"0.54309946",
"0.54144293",
"0.53968495",
"0.5387823",
"0.5386561",
"0.53634465",
"0.53304005",
"0.53260326",
"0.53207874",
"0.5313693",
"0.53128135",
"0.5288599",
"0.5284875",
"0.5284642",
"0.5276374",
"0.527564",
"0.5267084",
"0.5265822",
"0.5251992",
"0.52321965",
"0.5226757",
"0.5218698",
"0.52163976",
"0.5212321",
"0.5207536",
"0.5204803",
"0.5200029",
"0.51986814",
"0.5186547",
"0.5165757",
"0.5156519",
"0.5146359",
"0.51459837",
"0.5143097",
"0.5141865",
"0.51357377",
"0.5116773",
"0.51108384",
"0.5099648",
"0.50988173",
"0.50984216",
"0.509321",
"0.5092876",
"0.50922704",
"0.50862503",
"0.5084366",
"0.5084231",
"0.5083307",
"0.50823706",
"0.5078744",
"0.5066175",
"0.50616103",
"0.5061334",
"0.5058863",
"0.5051627",
"0.50503105",
"0.5047917",
"0.50436336",
"0.5042146",
"0.50418955",
"0.5027199",
"0.50267935",
"0.50254744",
"0.50235265",
"0.50202864",
"0.50190234",
"0.50143784",
"0.5013641"
] | 0.6996316 | 0 |
Constructs with the specified initial name, text and tooltip text. | public JRibbonAction(String name, String text, String toolTipText)
{
super(name, text, toolTipText);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DefaultTip(String name, Object tip)\n/* */ {\n/* 39 */ this.name = name;\n/* 40 */ this.tip = tip;\n/* */ }",
"public void setTooltipText() { tooltip.setText(name); }",
"public ToolTips (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}",
"public JRibbonAction(String name, String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(name, text, icon, toolTipText);\n\t}",
"public DefaultTip() {}",
"public JRibbonAction(String text, String toolTipText)\n\t{\n\t\tsuper(text, toolTipText);\n\t}",
"public TextConstruct(String prefix, String name)\n\t{\n\t super(prefix, name); \n\t}",
"public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }",
"@Override\n\tpublic Title makeTitle(Map<String, String> attributes, String data) {\n\t\treturn new Title( attributes, data );\n\t}",
"public JRibbonAction(String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(text, icon, toolTipText);\n\t}",
"public TextController createToolTipText(ControllerCore genCode) {\n\t\ttoolTipTextTXT = new TextController(\"toolTipText\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(toolTipText$1LBL);\n\t\t\t\tsetProperty(\"toolTipText\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn toolTipTextTXT;\n\t}",
"public X tooltipText(String text) {\n component.setToolTipText(text);\n return (X) this;\n }",
"private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }",
"@Override\r\n protected String getTooltip()\r\n {\n return \"This name is used as (unique) name for the pattern.\";\r\n }",
"public SimpleNamePanel() {\n\t\tinitComponents();\n\t\tnameField.setText(\"\");\n\t\tdescriptionField.setText(\"\");\n\t\tchanged = false;\n\t}",
"@Override\n public void setTooltip(String arg0)\n {\n \n }",
"public Info(String text) {\n //new JTextArea(text);\n super(text, SwingConstants.CENTER);\n setFont(Scheme.getFont());\n setOpaque(true);\n setSize(getFontMetrics(Scheme.getFont()).stringWidth(getText()) + 13, 25);\n setBackground(Scheme.getBackgroundColor());\n setForeground(Scheme.getForegroundColor());\n setBorder(BorderFactory.createLineBorder(Color.GRAY));\n }",
"private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}",
"protected void createSimpleLabel(String name, String content, AlignmentLocation horz, AlignmentLocation vert, \n\t\t\tString parentZoneName) {\n\t\tnew Label(name, content, Color.WHITE, 30f, horz, vert, parentZoneName, this);\n\t}",
"private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }",
"TITLE createTITLE();",
"private Text initNameText(){\n Text name = new Text(Values.NAME);\n name.setStyle(\"-fx-font-weight: bold;\" + \"-fx-font-size: 24;\");\n return name;\n }",
"public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}",
"public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"private static ToolItem createItemHelper(ToolBar toolbar, Image image,\r\n\t\t\tString text) {\r\n\r\n\t\tToolItem item = new ToolItem(toolbar, SWT.PUSH);\r\n\t\tif (image == null) {\r\n\t\t\titem.setText(text);\r\n\t\t} else {\r\n\t\t\titem.setImage(image);\r\n\t\t\titem.setToolTipText(text);\r\n\t\t}\r\n\t\treturn item;\r\n\t}",
"public static JLabel newFormLabel(String text, String tooltip) {\n JLabel label = newFormLabel(text);\n label.setToolTipText(tooltip);\n return label;\n }",
"Help createHelp();",
"public ToolBarManager initTitle(String toolBarTitle, int color,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"public void createToolTip(View view, Tooltip.Gravity gravity, String text){\n Tooltip.make(this,\n new Tooltip.Builder(101)\n .anchor(view, gravity)\n .closePolicy(new Tooltip.ClosePolicy()\n .insidePolicy(true, false)\n .outsidePolicy(true, false), 3000)\n .activateDelay(800)\n .showDelay(300)\n .text(text)\n .maxWidth(700)\n .withArrow(true)\n .withOverlay(true)\n .withStyleId(R.style.ToolTipLayoutCustomStyle)\n .floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)\n .build()\n ).show();\n }",
"public JRibbonAction(Icon icon, String toolTipText)\n\t{\n\t\tsuper(icon, toolTipText);\n\t}",
"public void setToolTipText(String text)\n/* */ {\n/* 227 */ putClientProperty(\"ToolTipText\", text);\n/* */ }",
"public ExpandableToolTip(String toolTipText, String helpText,\r\n\t\t\tJComponent owner) {\r\n\t\tthis.owner = owner;\r\n\r\n\t\t/*\r\n\t\t * Attach mouseListener to component. If we attach the toolTip to a\r\n\t\t * JComboBox our MouseListener is not used, we therefore need to attach\r\n\t\t * the MouseListener to each component in the JComboBox\r\n\t\t */\r\n\t\tif (owner instanceof JComboBox) {\r\n\t\t\tfor (int i = 0; i < owner.getComponentCount(); i++) {\r\n\t\t\t\towner.getComponent(i).addMouseListener(this);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\towner.addMouseListener(this);\r\n\t\t}\r\n\r\n\t\t/* generate toolTip panel */\r\n\t\ttoolTip = new JPanel(new GridLayout(3, 1));\r\n\t\ttoolTip.setPreferredSize(new Dimension(WIDTH_TT, HEIGHT_TT));\r\n\t\ttoolTip.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n\t\ttoolTip.setBackground(Color.getHSBColor(15, 3, 99));\r\n\t\ttoolTip.add(new JLabel(toolTipText));\r\n\t\ttoolTip.add(new JSeparator(SwingConstants.HORIZONTAL));\r\n\t\tJLabel more = new JLabel(\"press 'F1' for more details\");\r\n\t\tmore.setForeground(Color.DARK_GRAY);\r\n\t\tmore.setFont(new Font(null, 1, 10));\r\n\t\ttoolTip.add(more);\r\n\r\n\t\t/* generate help panel */\r\n\t\tJPanel helpContent = new JPanel();\r\n\t\thelpContent.setBackground(Color.WHITE);\r\n\r\n\t\t/* generate editor to display html help text and put in scrollpane */\r\n\t\th = new JEditorPane();\r\n\t\th.setContentType(\"text/html\");\r\n\t\th.addHyperlinkListener(this);\r\n\t\tString context = \"<html><body><table width='\" + WIDTH_HTML\r\n\t\t\t\t+ \"'><tr><td><p><font size=+1>\" + toolTipText + \"</font></p>\"\r\n\t\t\t\t+ helpText + \"</td></tr></table></body></html>\";\r\n\t\th.setText(context);\r\n\t\th.setEditable(true);\r\n\t\th.addHyperlinkListener(this);\r\n\t\thelpContent.add(h);\r\n\t\thelp = new JScrollPane(helpContent);\r\n\t\thelp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\thelp.setPreferredSize(new Dimension(WIDTH_SC, HEIGHT_SC));\r\n\r\n\t\tpopup = new JFrame();\r\n\t\tpopup.setUndecorated(true);\r\n\r\n\t}",
"public void createToolTip(View view, Tooltip.Gravity gravity, String text){\n Tooltip.make(getContext(),\n new Tooltip.Builder(101)\n .anchor(view, gravity)\n .closePolicy(new Tooltip.ClosePolicy()\n .insidePolicy(true, false)\n .outsidePolicy(true, false), 3000)\n .activateDelay(800)\n .showDelay(300)\n .text(text)\n .maxWidth(700)\n .withArrow(true)\n .withOverlay(true)\n .withStyleId(R.style.ToolTipLayoutCustomStyle)\n .floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)\n .build()\n ).show();\n }",
"public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}",
"public Name_Taker() {\n initComponents();\n }",
"public DynamicDriveToolTipTagFragmentGenerator() {}",
"public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }",
"private String addTitle(StringBuilder finalText) {\n\t\t// One Parameter: DisplayName\n\t\tMainController.titleName = parameters[0];\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|title:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}",
"public Node makeTitle(String text) {\r\n VBox panel = new VBox();\r\n Label label = makeLabel(myResources.getString(text));\r\n panel.setAlignment(Pos.CENTER);\r\n Button returnHome = makeButton(\"Main\", e -> {\r\n MainDisplay display = new MainDisplay(sceneLanguage, sceneWidth, sceneHeight);\r\n mainScene.setRoot(display.setUpComponents());\r\n display.changeScene(mainScene);\r\n });\r\n panel.getChildren().addAll(label, returnHome);\r\n panel.setMargin(label, new Insets(0, 15, 0, 0));\r\n return panel;\r\n }",
"public CustomMenuItemGUI(String manager, ImageIcon icon, String tooltip) {\r\n\t\tsuper(manager, icon, tooltip);\r\n\t}",
"private void init(String text)\n\t{\n\t\tthis.text = text;\n\n\t\tsetColor(ClassEntityView.getBasicColor());\n\t\tpopupMenu.addSeparator();\n\t\tfinal JMenuItem item = new JMenuItem(\"Delete commentary\", PersonalizedIcon.createImageIcon(Slyum.ICON_PATH + \"delete16.png\"));\n\t\titem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdelete();\n\t\t\t}\n\t\t});\n\t\t\n\t\tparent.selectOnly(this);\n\t\tpopupMenu.add(item);\n\t}",
"protected AbstractButton createToolBarButton(String iconName, String toolTipText) {\r\n JButton button = new JButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"private void initAbout(){\n setSpacing(30);\n getChildren().addAll(initNameText(), initDescriptionText());\n setAlignment(Pos.CENTER);\n }",
"private Text createTitle() {\n\t\tText title = new Text(\"S p a c e Y\");\n\t\ttitle.setFont(new Font(\"Minecraftia\", 80));\n\t\ttitle.setStroke(Color.YELLOW);\n\t\ttitle.setStrokeWidth(2);\n\t\ttitle.setStrokeType(StrokeType.OUTSIDE);\n\t\ttitle.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\ttitle.setX(canvas.getWidth() / 2);\n\t\ttitle.setY(canvas.getHeight() / 2);\n\t\treturn title;\n\t}",
"protected TopicName(String serviceId, boolean isLocal, String topicId, String name, String ...additional)\n {\n super(name, additional);\n \n serviceId_ = serviceId;\n isLocal_ = isLocal;\n topicId_ = topicId;\n }",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"public InfoPanel()\n\t\t{\n\t\t\t//setting color and instantiating textfield and button\n\t\t\tsetBackground(bCol);\n\t\t\tnameJF = new JTextField(\"Type Your Name\", 20);\n\t\t\tFont naFont = new Font(\"Serif\", Font.PLAIN, 25);\n\t\t\tnameJF.setFont(naFont);\n\t\t\tsub = new JButton(\"Submit\");\n\t\t\tsub.addActionListener(this);\n\t\t\tsub.setFont(naFont);\n\t\t\tname = new String(\"\");\n\t\t\tadd(nameJF);\n\t\t\tadd(sub);\n\t\t}",
"public AssetCreationToolEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)\n {\n super(label, shortDesc, template, factory, iconSmall, iconLarge);\n }",
"public SimpleNodeLabel(String text, JGoArea parent) {\n super(text);\n mParent = parent;\n initialize(text, parent);\n }",
"public String generateToolTipFragment(String toolTipText) {\n/* 88 */ return \" onMouseOver=\\\"return stm(['\" + \n/* 89 */ ImageMapUtilities.javascriptEscape(this.title) + \"','\" + \n/* 90 */ ImageMapUtilities.javascriptEscape(toolTipText) + \"'],Style[\" + this.style + \"]);\\\"\" + \" onMouseOut=\\\"return htm();\\\"\";\n/* */ }",
"public Topic( String title )\n {\n activation = 0;\n label = title;\n associations = new String[100];\n numAssocs = 0;\n response1 = \"\";\n response2 = \"\";\n response3 = \"\";\n probability1 = -1;\n probability2 = -1;\n probability3 = -1;\n generator = new Random();\n }",
"private Label createTitle() {\n Label titleLbl = new Label(\"Tank Royale\");\n titleLbl.setFont(Font.loadFont(getClass().getResourceAsStream(\"/resources/fonts/ToetheLineless.ttf\"), 50));\n titleLbl.setPrefWidth(400);\n titleLbl.setLayoutX(545 - titleLbl.getWidth() - 157);\n titleLbl.setLayoutY(125);\n return titleLbl;\n }",
"Text createText();",
"private JMenuItem createMenuItem(JMenu parent, String text, int mnemonic, String keyStrokeText, String tooltip) {\n\t\tJMenuItem item = new JMenuItem();\n\t\t\n\t\titem.setText(text);\n\t\tif (mnemonic != -1) {\n\t\t\titem.setMnemonic(mnemonic);\n\t\t}\n\t\tif (keyStrokeText != null) {\n\t\t\tKeyStroke accelerator = KeyStroke.getKeyStroke(keyStrokeText);\n\t\t\titem.setAccelerator(accelerator);\n\t\t}\n\t\tif (tooltip != null) {\n\t\t\titem.setToolTipText(tooltip);\n\t\t}\n\t\t\n\t\tparent.add(item);\n\t\treturn item;\n\t}",
"public SimpleCitizen(){\n super();\n information = \"let's help to find mafias and take them out\";\n }",
"public MyGUIProgram() {\n Label MyLabel = new Label(\"Test string.\", Label.CENTER);\n this.add(MyLabel);\n\n }",
"Button new_button (String title, ActionListener action, String tooltip) {\n Button b = new Button(title);\n b.setBackground(Color.white);\n b.setForeground(Color.blue);\n if (action != null)\n b.addActionListener(action);\n if (tooltip != null)\n b.setToolTipText(tooltip);\n return b;\n }",
"public abstract String getToolTip();",
"public Topic (String name) {\n this.name = name;\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n plusButton.setTooltip(new Tooltip(\"Agregar nuevo elemento\"));\r\n }",
"public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }",
"protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}",
"@Override\n\tpublic void setToolTip(String tooltip) {\n\t\t\n\t}",
"private void _initLabels() \n {\n _lblName = _createNewLabel( \"Mother Teres@ Practice Management System\");\n _lblVersion = _createNewLabel(\"Version 1.0.1 (Beta)\");\n _lblAuthor = _createNewLabel( \"Company: Valkyrie Systems\" );\n _lblRealAuthor = _createNewLabel( \"Author: Hein Badenhorst\" );\n _lblDate = _createNewLabel( \"Build Date:\" );\n _lblRealDate = _createNewLabel( \"31 October 2010\");\n }",
"public HelpLabel (String label, String help, UIObject target) {\n\t\tsuper(label);\n\t\thelpText = help;\n\t\ttargetUIObject = target;\n\t\tsetStylePrimaryName(AbstractField.CSS.cbtAbstractLabel());\n\t\taddStyleName(AbstractField.CSS.cbtAbstractCursor());\n\t\taddClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tnew MessagePanel(Level.VERBOSE, helpText).showRelativeTo(targetUIObject);\n\t\t\t}\n\t\t});\n\t}",
"public Normal(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }",
"WithCreate withTitle(String title);",
"public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }",
"private NameBuilderString(String text) {\r\n\t\t\tthis.text = Objects.requireNonNull(text);\r\n\t\t}",
"public static void constructor1_name_initialize()\r\n\t{\r\n\t\tString name = \"Dennis\";\r\n\t\tString college = \"Red River College\";\r\n\t\tdouble standardAptitudeTestScore = 222;\r\n\t\tdouble gradePointAverage = 2.2;\r\n\r\n\t\tUndergraduateApplicant target = new UndergraduateApplicant(name, college, standardAptitudeTestScore, gradePointAverage);\r\n\r\n\t\tString expected = name;\r\n\t\tString actual = target.getName();\r\n\r\n\t\tSystem.out.printf(\"Expected: %s%nActual: %s%n%n\", expected, actual);\r\n\t}",
"public Topic(String name)\r\n {\r\n this.name = name;\r\n }",
"public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}",
"@Override\r\n\t\tpublic void create() {\n\t\t\tsuper.create();\r\n\t\t\tsuper.getOKButton().setEnabled(false);\r\n\t\t\tsuper.setTitle(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t\tsuper.setMessage(Messages.MoveUnitsWizardPage1_Select_a_name_source_folder_and_a_);\r\n\t\t\tsuper.getShell().setText(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t}",
"public Meny(String title){\n \tthis.title = title;\n }",
"public Entry(String text) {\n this(GtkEntry.createEntry());\n setText(text);\n }",
"public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }",
"public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }",
"public JButton createButton(String name, String toolTip) {\r\n\r\n // load the image\r\n String imagePath = \"./resources/\" + name + \".png\";\r\n ImageIcon iconRollover = new ImageIcon(imagePath);\r\n int w = iconRollover.getIconWidth();\r\n int h = iconRollover.getIconHeight();\r\n\r\n // get the cursor for this button\r\n Cursor cursor =\r\n Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);\r\n\r\n // make translucent default image\r\n Image image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n Graphics2D g = (Graphics2D)image.getGraphics();\r\n Composite alpha = AlphaComposite.getInstance(\r\n AlphaComposite.SRC_OVER, .5f);\r\n g.setComposite(alpha);\r\n g.drawImage(iconRollover.getImage(), 0, 0, null);\r\n g.dispose();\r\n ImageIcon iconDefault = new ImageIcon(image);\r\n\r\n // make a pressed image\r\n image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n g = (Graphics2D)image.getGraphics();\r\n g.drawImage(iconRollover.getImage(), 2, 2, null);\r\n g.dispose();\r\n ImageIcon iconPressed = new ImageIcon(image);\r\n\r\n // create the button\r\n JButton button = new JButton();\r\n button.addActionListener(this);\r\n button.setIgnoreRepaint(true);\r\n button.setFocusable(false);\r\n button.setToolTipText(toolTip);\r\n button.setBorder(null);\r\n button.setContentAreaFilled(false);\r\n button.setCursor(cursor);\r\n button.setIcon(iconDefault);\r\n button.setRolloverIcon(iconRollover);\r\n button.setPressedIcon(iconPressed);\r\n\r\n return button;\r\n }",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}",
"public Creator(String score_name) {\n this.score_name = score_name;\n\n this.bukkitScoreboard = Bukkit.getScoreboardManager().getNewScoreboard();\n this.obj = this.bukkitScoreboard.registerNewObjective(randomString(), \"dummy\", \"test\");\n\n this.obj.setDisplaySlot(DisplaySlot.SIDEBAR);\n this.obj.setDisplayName(color(score_name));\n }",
"public Task(String creator) {\r\n \t\tthis(creator, \"Untitled\", \"\", true, false);\r\n \t}",
"public void setTitlePopup(String t) {\n/* 147 */ getCOSObject().setString(COSName.T, t);\n/* */ }",
"public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }",
"private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}",
"public Title(final String text) {\n this(text, null, null, TextDirection.UNSPECIFIED);\n }",
"protected GuiTestObject title(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"), anchor, flags);\n\t}",
"private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {\n return new IInformationControlCreator() {\n @Override\n public IInformationControl createInformationControl(\n final Shell parent) {\n final String affordance = getAdditionalInfoAffordanceString();\n return new DefaultInformationControl(parent, affordance);\n }\n };\n }",
"public JRibbonAction(String text)\n\t{\n\t\tsuper(text);\n\t}",
"public Dialog(String text) {\n initComponents();\n setVisible(true);\n pack();\n setTitle(\"Sbac\");\n this.text.setText(text);\n this.text.setHorizontalAlignment(SwingConstants.CENTER);\n this.text.setVerticalAlignment(SwingConstants.CENTER);\n }",
"public Synopsis(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public Question() {\r\n // This is the defult constructor b/c it takes no parameters\r\n firstPrompt = \"Please enter something:\";\r\n minScale = 1;\r\n maxScale = 10;\r\n secondPrompt = \"Additional comments:\";\r\n }",
"public void addVehicleToolTip() {\r\n\t\tString expectedTooltip = \"Add Vehicle\";\r\n\t\tWebElement editTooltip = driver.findElement(By.cssSelector(\".ant-btn.ant-btn-primary\"));\r\n\t\tActions actions = new Actions(driver);\r\n\t\tactions.moveToElement(editTooltip).perform();\r\n\t\tWebElement toolTipElement = driver.findElement(By.cssSelector(\"div[role='tooltip']\"));\r\n\t\tneedToWait(2);\r\n\t\tString actualTooltip = toolTipElement.getText();\r\n\t\tSystem.out.println(\"Actual Title of Tool Tip +++++++++\" + actualTooltip);\r\n\t\tAssert.assertEquals(actualTooltip, expectedTooltip);\r\n\t}",
"public void setTitle(String titleTemplate);",
"public Dialog(String text) {\n initComponents( text);\n }",
"public SecName(FrillLoc loc) {\n MyLocation = loc;\n NameFont = new FontFinder(FontList.FONT_LABEL);\n }",
"public Human() {\n\n name = JOptionPane.showInputDialog(\"Enter The Name Of The Human: \") ;\n }",
"public Athlete()\r\n{\r\n this.def = \"An athlete is said to be running when he/she is accelerating in a certain direction during which his legs and the rest of his body are moving\";\r\n}",
"public NameInfo(String inFirst)\n\t{\n\t\t//Set instance data.\n\t\tfirstName = inFirst;\n\n\t}"
] | [
"0.65555227",
"0.64076614",
"0.63699013",
"0.6133737",
"0.60982126",
"0.60333544",
"0.59975827",
"0.5990156",
"0.58488214",
"0.58468074",
"0.5808786",
"0.5778452",
"0.57730466",
"0.576494",
"0.57599413",
"0.5716136",
"0.5701688",
"0.56998",
"0.5675832",
"0.5656356",
"0.56516474",
"0.5629102",
"0.5619047",
"0.5618852",
"0.56097466",
"0.5572997",
"0.55611736",
"0.5552425",
"0.554816",
"0.5511319",
"0.5504241",
"0.5484926",
"0.54813725",
"0.5479339",
"0.54727674",
"0.5453607",
"0.543557",
"0.5409256",
"0.5392018",
"0.5372436",
"0.53645283",
"0.53622305",
"0.536044",
"0.5349295",
"0.53422534",
"0.53313464",
"0.53305393",
"0.5328258",
"0.5328124",
"0.53120035",
"0.5310408",
"0.5306247",
"0.5303312",
"0.5299576",
"0.52842945",
"0.5276149",
"0.5274943",
"0.5271149",
"0.526515",
"0.52649355",
"0.5263234",
"0.5254709",
"0.525446",
"0.524641",
"0.52390045",
"0.5232244",
"0.52258676",
"0.5220416",
"0.5206377",
"0.5204394",
"0.520005",
"0.51910937",
"0.518732",
"0.5180043",
"0.51694846",
"0.51650274",
"0.5163808",
"0.51589566",
"0.5148413",
"0.51483685",
"0.5147624",
"0.5138827",
"0.5137231",
"0.5128922",
"0.5122362",
"0.51167667",
"0.5115866",
"0.51158524",
"0.51121473",
"0.5108442",
"0.5104604",
"0.5103683",
"0.5103172",
"0.5078325",
"0.507502",
"0.50736356",
"0.50721496",
"0.5071877",
"0.5065437",
"0.5064118"
] | 0.6336957 | 3 |
Constructs with the specified initial name, text, icon and tooltip text. | public JRibbonAction(String name, String text, Icon icon, String toolTipText)
{
super(name, text, icon, toolTipText);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JRibbonAction(String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(text, icon, toolTipText);\n\t}",
"public ToolTips (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}",
"public JRibbonAction(Icon icon, String toolTipText)\n\t{\n\t\tsuper(icon, toolTipText);\n\t}",
"public JRibbonAction(String name, String text, String toolTipText)\n\t{\n\t\tsuper(name, text, toolTipText);\n\t}",
"public CustomMenuItemGUI(String manager, ImageIcon icon, String tooltip) {\r\n\t\tsuper(manager, icon, tooltip);\r\n\t}",
"public JRibbonAction(String text, Icon icon)\n\t{\n\t\tsuper(text, icon);\n\t}",
"public DefaultTip(String name, Object tip)\n/* */ {\n/* 39 */ this.name = name;\n/* 40 */ this.tip = tip;\n/* */ }",
"private static ToolItem createItemHelper(ToolBar toolbar, Image image,\r\n\t\t\tString text) {\r\n\r\n\t\tToolItem item = new ToolItem(toolbar, SWT.PUSH);\r\n\t\tif (image == null) {\r\n\t\t\titem.setText(text);\r\n\t\t} else {\r\n\t\t\titem.setImage(image);\r\n\t\t\titem.setToolTipText(text);\r\n\t\t}\r\n\t\treturn item;\r\n\t}",
"public AssetCreationToolEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)\n {\n super(label, shortDesc, template, factory, iconSmall, iconLarge);\n }",
"public JRibbonAction(String text, String toolTipText)\n\t{\n\t\tsuper(text, toolTipText);\n\t}",
"public TitleIconItem(){}",
"protected AbstractButton createToolBarButton(String iconName, String toolTipText) {\r\n JButton button = new JButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"Icon createIcon();",
"public TransferButton(String text, Icon icon) {\n super(text, icon);\n decorate();\n }",
"private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }",
"public Info(String text) {\n //new JTextArea(text);\n super(text, SwingConstants.CENTER);\n setFont(Scheme.getFont());\n setOpaque(true);\n setSize(getFontMetrics(Scheme.getFont()).stringWidth(getText()) + 13, 25);\n setBackground(Scheme.getBackgroundColor());\n setForeground(Scheme.getForegroundColor());\n setBorder(BorderFactory.createLineBorder(Color.GRAY));\n }",
"protected JLabel createComponent(String text, Icon image)\n {\n return new JLabel(text, image, SwingConstants.RIGHT);\n }",
"public Info(String text, boolean warning)\n {\n super(text, warning, 250, 500);\n \n try {\n File path;\n if(warning){\n path = new File(\"warning.png\");\n }else{\n path = new File(\"info.png\");\n }\n java.awt.Image icon = ImageIO.read(path);\n f.setIconImage(icon);\n } catch (Exception e) {}\n \n ok = new IFButton(100,40,200,125,\"Ok\");\n ok.setFont(new Font(\"Dosis\", Font.BOLD, 18));\n ok.setCornerRadius(1);\n \n ok.addMouseListener(new MouseListener()\n { \n public void mouseClicked(MouseEvent e){}\n \n public void mouseExited(MouseEvent e){\n ok.setColor(new Color(10,30,100));\n }\n \n public void mousePressed(MouseEvent e){\n ok.animCR(3, 0.2);\n }\n \n public void mouseEntered(MouseEvent e){\n ok.setColor(new Color(40,50,140));\n }\n \n public void mouseReleased(MouseEvent e){\n ok.animCR(1, -0.2);\n }\n });\n \n setButtons(new IFButton[]{ok});\n \n if(warning){\n f.setTitle(\"Warnung!\");\n }else{\n f.setTitle(\"Info\"); \n }\n }",
"public LinkButton( String text, Icon icon) {\n\t\tsuper( text, icon);\n\t\tinit();\n\t}",
"public DefaultTip() {}",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"public Command(final String name, final String iconName) {\n super(name);\n putValue(SHORT_DESCRIPTION, name);\n final URL url = getClass().getResource(IMAGE_DIR + iconName + \".gif\");\n if (url != null) {\n putValue(SMALL_ICON, new ImageIcon(url));\n }\n }",
"private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {\n return new IInformationControlCreator() {\n @Override\n public IInformationControl createInformationControl(\n final Shell parent) {\n final String affordance = getAdditionalInfoAffordanceString();\n return new DefaultInformationControl(parent, affordance);\n }\n };\n }",
"public void setTooltipText() { tooltip.setText(name); }",
"private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}",
"public static JButton createIconButton(String tooltip, Icon icon) {\n JButton ret = new JButton(icon);\n ret.setMargin(new Insets(0, 0, 0, 0));\n ret.setBorderPainted(false);\n ret.setBorder(null);\n ret.setFocusable(false);\n ret.setIconTextGap(0);\n if (tooltip != null)\n attachToolTip(ret, tooltip, SwingConstants.RIGHT, SwingConstants.TOP);\n//TODO combine FrameworkIcon and LazyIcon into one class\n// if (icon instanceof FrameworkIcon) {\n// FrameworkIcon ficon = (FrameworkIcon)icon;\n// ret.setDisabledIcon(ficon);\n// }\n// else if (icon instanceof LazyIcon) {\n// LazyIcon licon = (LazyIcon)icon;\n// ret.setDisabledIcon(licon);\n// }\n return ret;\n }",
"@Override\n\tpublic Title makeTitle(Map<String, String> attributes, String data) {\n\t\treturn new Title( attributes, data );\n\t}",
"public BLabel(String text, Icon image, Position align, Position textPos)\n {\n component = createComponent(text, image);\n setAlignment(align);\n setTextPosition(textPos);\n }",
"public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }",
"private void init(String text)\n\t{\n\t\tthis.text = text;\n\n\t\tsetColor(ClassEntityView.getBasicColor());\n\t\tpopupMenu.addSeparator();\n\t\tfinal JMenuItem item = new JMenuItem(\"Delete commentary\", PersonalizedIcon.createImageIcon(Slyum.ICON_PATH + \"delete16.png\"));\n\t\titem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tdelete();\n\t\t\t}\n\t\t});\n\t\t\n\t\tparent.selectOnly(this);\n\t\tpopupMenu.add(item);\n\t}",
"public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }",
"public JRibbonAction(String text)\n\t{\n\t\tsuper(text);\n\t}",
"public IconBuilder text(String text) {\n\t\tthis.text = text;\n\t\treturn this;\n\t}",
"public /* synthetic */ ItemInfo(String str, String str2, String str3, Image image, int i, j jVar) {\n this(str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3, (i & 8) != 0 ? null : image);\n }",
"public InfoPanel()\n\t\t{\n\t\t\t//setting color and instantiating textfield and button\n\t\t\tsetBackground(bCol);\n\t\t\tnameJF = new JTextField(\"Type Your Name\", 20);\n\t\t\tFont naFont = new Font(\"Serif\", Font.PLAIN, 25);\n\t\t\tnameJF.setFont(naFont);\n\t\t\tsub = new JButton(\"Submit\");\n\t\t\tsub.addActionListener(this);\n\t\t\tsub.setFont(naFont);\n\t\t\tname = new String(\"\");\n\t\t\tadd(nameJF);\n\t\t\tadd(sub);\n\t\t}",
"public Entry(String text) {\n this(GtkEntry.createEntry());\n setText(text);\n }",
"@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }",
"public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"private Text initNameText(){\n Text name = new Text(Values.NAME);\n name.setStyle(\"-fx-font-weight: bold;\" + \"-fx-font-size: 24;\");\n return name;\n }",
"public TextConstruct(String prefix, String name)\n\t{\n\t super(prefix, name); \n\t}",
"Help createHelp();",
"protected JButton makeNavigationButton(String imageName, String actionCommand, String toolTipText, String altText) {\n\t\tString imgLocation = \"/images/\" + imageName;\n\t\tURL imageURL = getClass().getResource(imgLocation);\n\n\t\t// Create and initialize the button.\n\t\tJButton button = new JButton();\n\t\tbutton.setActionCommand(actionCommand);\n\t\tbutton.setToolTipText(toolTipText);\n\t\tbutton.addActionListener(this);\n\n\t\tif (imageURL != null) { // image found\n\t\t\tbutton.setIcon(new ImageIcon(imageURL, altText));\n\t\t} else { // no image found\n\t\t\tbutton.setText(altText);\n\t\t}\n\n\t\treturn button;\n\t}",
"public ActionUpdate(String text, ImageIcon icon)\n\t{\n\t\tsuper(text, icon);\n\t\tputValue(SHORT_DESCRIPTION, AquaWorld.texts\n\t\t\t\t.getString(\"actionUpdateDatabbaseText\"));\n\t}",
"protected JButton makeImageButton(String imageName, String action, String tooltip, String alt) {\n String imgLocation = \"/Rewind24.gif\";\n URL imageURL = Menu.class.getResource(\"/home/jon/Desktop/boner.desktop\");\n\n\n\n JButton button = new JButton();\n // button.setAction(action);\n button.setToolTipText(tooltip);\n // button.addActionListener(this);\n\n button.setIcon(new ImageIcon(imageURL, alt));\n\n return button;\n }",
"private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }",
"protected StringStringHashMap createItem(String iconChar, String title, String text) {\n StringStringHashMap item = new StringStringHashMap();\n item.put(ITEM_ICON, iconChar);\n item.put(ITEM_TITLE, title);\n item.put(ITEM_TEXT, text);\n return item;\n }",
"public ActionMenuItem(String text) {\n this.text = text;\n }",
"private void createButton(final ToolBar bar, final String imagePath,\r\n final String text, final SelectionListener listener) {\r\n final Image icon = getIcon(imagePath);\r\n\r\n final ToolItem toolItem = new ToolItem(bar, SWT.PUSH);\r\n toolItem.setImage(resize(icon, DEFAULT_ICON_SIZE, DEFAULT_ICON_SIZE));\r\n toolItem.setText(text);\r\n\r\n toolItem.addSelectionListener(listener);\r\n }",
"private JMenuItem createMenuItem(JMenu parent, String text, int mnemonic, String keyStrokeText, String tooltip) {\n\t\tJMenuItem item = new JMenuItem();\n\t\t\n\t\titem.setText(text);\n\t\tif (mnemonic != -1) {\n\t\t\titem.setMnemonic(mnemonic);\n\t\t}\n\t\tif (keyStrokeText != null) {\n\t\t\tKeyStroke accelerator = KeyStroke.getKeyStroke(keyStrokeText);\n\t\t\titem.setAccelerator(accelerator);\n\t\t}\n\t\tif (tooltip != null) {\n\t\t\titem.setToolTipText(tooltip);\n\t\t}\n\t\t\n\t\tparent.add(item);\n\t\treturn item;\n\t}",
"protected void createSimpleLabel(String name, String content, AlignmentLocation horz, AlignmentLocation vert, \n\t\t\tString parentZoneName) {\n\t\tnew Label(name, content, Color.WHITE, 30f, horz, vert, parentZoneName, this);\n\t}",
"private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}",
"protected AbstractButton createToolBarRadioButton(String iconName, String toolTipText) {\r\n JToggleButton button = new JToggleButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }",
"public BioDataMetaData(String userId) {\n \n \n \n initComponents();\n this.userId=userId;\n \n Image img = new ImageIcon(System.getProperty(\"user.dir\")+\"/\"+\"ICON_LOGO.jpg\").getImage();\n this.setIconImage(img);\n this.setTitle(\"ADD NEW ITEM\"); \n// initComponents();\n }",
"public ToolBarManager initTitle(String toolBarTitle, int color,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }",
"public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }",
"public static PlaceholderFragment newInstance(String text, int icon) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putString(\"text\", text);\n args.putInt(\"icon\", icon);\n fragment.setArguments(args);\n return fragment;\n }",
"public SimpleNamePanel() {\n\t\tinitComponents();\n\t\tnameField.setText(\"\");\n\t\tdescriptionField.setText(\"\");\n\t\tchanged = false;\n\t}",
"private void createLabels() {\n\n // Add status labels\n infoItem = new ToolItem(toolbar, SWT.SEPARATOR);\n infoComposite = new Composite(toolbar, SWT.NONE);\n infoItem.setControl(infoComposite);\n infoComposite.setLayout(null);\n\n labelAttribute = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelAttribute.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelAttribute.pack(); \n labelTransformations = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelTransformations.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelTransformations.pack();\n labelSelected = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelSelected.setText(Resources.getMessage(\"MainToolBar.31\")); //$NON-NLS-1$\n labelSelected.pack();\n labelApplied = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelApplied.setText(Resources.getMessage(\"MainToolBar.32\")); //$NON-NLS-1$\n labelApplied.pack();\n \n // Copy info to clip board on right-click\n Menu menu = new Menu(toolbar);\n MenuItem itemCopy = new MenuItem(menu, SWT.NONE);\n itemCopy.setText(Resources.getMessage(\"MainToolBar.42\")); //$NON-NLS-1$\n itemCopy.addSelectionListener(new SelectionAdapter(){\n public void widgetSelected(SelectionEvent arg0) {\n if (tooltip != null) {\n Clipboard clipboard = new Clipboard(toolbar.getDisplay());\n TextTransfer textTransfer = TextTransfer.getInstance();\n clipboard.setContents(new String[]{tooltip}, \n new Transfer[]{textTransfer});\n clipboard.dispose();\n }\n }\n });\n labelSelected.setMenu(menu);\n labelApplied.setMenu(menu);\n labelTransformations.setMenu(menu);\n \n // Add listener for layout\n toolbar.addControlListener(new ControlAdapter() {\n @Override\n public void controlResized(final ControlEvent arg0) {\n layout();\n }\n });\n }",
"public X tooltipText(String text) {\n component.setToolTipText(text);\n return (X) this;\n }",
"public /* synthetic */ NotificationEntry(String str, String str2, String str3, int i, String str4, int i2, DefaultConstructorMarker pVar) {\n this(str, str2, str3, (i2 & 8) != 0 ? 0 : i, (i2 & 16) != 0 ? \"\" : str4);\n }",
"public TextController createToolTipText(ControllerCore genCode) {\n\t\ttoolTipTextTXT = new TextController(\"toolTipText\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(toolTipText$1LBL);\n\t\t\t\tsetProperty(\"toolTipText\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn toolTipTextTXT;\n\t}",
"public static void initAction(IAction a, ResourceBundle bundle, String prefix) {\n \t\t\n \t\tString labelKey= \"label\"; //$NON-NLS-1$\n \t\tString tooltipKey= \"tooltip\"; //$NON-NLS-1$\n \t\tString imageKey= \"image\"; //$NON-NLS-1$\n \t\tString descriptionKey= \"description\"; //$NON-NLS-1$\n \t\t\n \t\tif (prefix != null && prefix.length() > 0) {\n \t\t\tlabelKey= prefix + labelKey;\n \t\t\ttooltipKey= prefix + tooltipKey;\n \t\t\timageKey= prefix + imageKey;\n \t\t\tdescriptionKey= prefix + descriptionKey;\n \t\t}\n \t\t\n \t\ta.setText(getString(bundle, labelKey, labelKey));\n \t\ta.setToolTipText(getString(bundle, tooltipKey, null));\n \t\ta.setDescription(getString(bundle, descriptionKey, null));\n \t\t\n \t\tString relPath= getString(bundle, imageKey, null);\n \t\tif (relPath != null && relPath.trim().length() > 0) {\n \t\t\t\n \t\t\tString dPath;\n \t\t\tString ePath;\n \t\t\t\n \t\t\tif (relPath.indexOf(\"/\") >= 0) { //$NON-NLS-1$\n \t\t\t\tString path= relPath.substring(1);\n \t\t\t\tdPath= 'd' + path;\n \t\t\t\tePath= 'e' + path;\n \t\t\t} else {\n \t\t\t\tdPath= \"dlcl16/\" + relPath; //$NON-NLS-1$\n \t\t\t\tePath= \"elcl16/\" + relPath; //$NON-NLS-1$\n \t\t\t}\n \t\t\t\n \t\t\tImageDescriptor id= CompareUIPlugin.getImageDescriptor(dPath);\t// we set the disabled image first (see PR 1GDDE87)\n \t\t\tif (id != null)\n \t\t\t\ta.setDisabledImageDescriptor(id);\n \t\t\tid= CompareUIPlugin.getImageDescriptor(ePath);\n \t\t\tif (id != null) {\n \t\t\t\ta.setImageDescriptor(id);\n \t\t\t\ta.setHoverImageDescriptor(id);\n \t\t\t}\n \t\t}\n \t}",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"public DynamicDriveToolTipTagFragmentGenerator() {}",
"public Item(String initName, String itemDesc)\n {\n // initialise instance variables\n name = initName;\n desc = itemDesc;\n }",
"public JButton createButton(String name, String toolTip) {\r\n\r\n // load the image\r\n String imagePath = \"./resources/\" + name + \".png\";\r\n ImageIcon iconRollover = new ImageIcon(imagePath);\r\n int w = iconRollover.getIconWidth();\r\n int h = iconRollover.getIconHeight();\r\n\r\n // get the cursor for this button\r\n Cursor cursor =\r\n Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);\r\n\r\n // make translucent default image\r\n Image image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n Graphics2D g = (Graphics2D)image.getGraphics();\r\n Composite alpha = AlphaComposite.getInstance(\r\n AlphaComposite.SRC_OVER, .5f);\r\n g.setComposite(alpha);\r\n g.drawImage(iconRollover.getImage(), 0, 0, null);\r\n g.dispose();\r\n ImageIcon iconDefault = new ImageIcon(image);\r\n\r\n // make a pressed image\r\n image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n g = (Graphics2D)image.getGraphics();\r\n g.drawImage(iconRollover.getImage(), 2, 2, null);\r\n g.dispose();\r\n ImageIcon iconPressed = new ImageIcon(image);\r\n\r\n // create the button\r\n JButton button = new JButton();\r\n button.addActionListener(this);\r\n button.setIgnoreRepaint(true);\r\n button.setFocusable(false);\r\n button.setToolTipText(toolTip);\r\n button.setBorder(null);\r\n button.setContentAreaFilled(false);\r\n button.setCursor(cursor);\r\n button.setIcon(iconDefault);\r\n button.setRolloverIcon(iconRollover);\r\n button.setPressedIcon(iconPressed);\r\n\r\n return button;\r\n }",
"@objid (\"491beea2-12dd-11e2-8549-001ec947c8cc\")\n private static MHandledMenuItem createItem(String label, String tooltip, String iconURI) {\n MHandledMenuItem item = MMenuFactory.INSTANCE.createHandledMenuItem();\n // item.setElementId(module.getName() + commandId);\n item.setLabel(label);\n item.setTooltip(tooltip);\n item.setIconURI(iconURI);\n item.setEnabled(true);\n item.setToBeRendered(true);\n item.setVisible(true);\n return item;\n }",
"private void initAbout(){\n setSpacing(30);\n getChildren().addAll(initNameText(), initDescriptionText());\n setAlignment(Pos.CENTER);\n }",
"public SimpleNodeLabel(String text, JGoArea parent) {\n super(text);\n mParent = parent;\n initialize(text, parent);\n }",
"@Override\r\n protected String getTooltip()\r\n {\n return \"This name is used as (unique) name for the pattern.\";\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n plusButton.setTooltip(new Tooltip(\"Agregar nuevo elemento\"));\r\n }",
"public I18nCheckbox(String text, Icon icon) {\n super(text, icon);\n }",
"public static JLabel newFormLabel(String text, String tooltip) {\n JLabel label = newFormLabel(text);\n label.setToolTipText(tooltip);\n return label;\n }",
"public VaultAddin(@Nullable String text, @Nullable String description, @Nullable Icon icon) {\n super(text, description, icon);\n }",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}",
"public InfoDialog(String text, String title) {\r\n\t\tthis.setDialog(text, title);\r\n\t}",
"public SimpleCitizen(){\n super();\n information = \"let's help to find mafias and take them out\";\n }",
"public ToolButton createToolButton(Icon icon, Icon selectedIcon,\n String toolName, Tool tool);",
"public TopicLabelLayout(Context context, AttributeSet attributeSet, int i) {\n super(context, attributeSet, i);\n C32569u.m150519b(context, C6969H.m41409d(\"G6A8CDB0EBA28BF\"));\n C32569u.m150519b(attributeSet, C6969H.m41409d(\"G6897C108AC\"));\n }",
"public PaletteEntry(String label, String shortDescription,\n ImageDescriptor iconSmall, ImageDescriptor iconLarge) {\n this(label, shortDescription, iconSmall, iconLarge, null);\n }",
"public void setIconName(String name) {\n\t\tthis.name = name;\n\t\tsetTooltipText();\n\t}",
"public static void initAction(IAction a, ResourceBundle bundle, String prefix) {\r\n \t\t\r\n \t\tString labelKey= \"label\"; //$NON-NLS-1$\r\n \t\tString tooltipKey= \"tooltip\"; //$NON-NLS-1$\r\n \t\tString imageKey= \"image\"; //$NON-NLS-1$\r\n \t\tString descriptionKey= \"description\"; //$NON-NLS-1$\r\n \t\t\r\n \t\tif (prefix != null && prefix.length() > 0) {\r\n \t\t\tlabelKey= prefix + labelKey;\r\n \t\t\ttooltipKey= prefix + tooltipKey;\r\n \t\t\timageKey= prefix + imageKey;\r\n \t\t\tdescriptionKey= prefix + descriptionKey;\r\n \t\t}\r\n \t\t\r\n \t\ta.setText(getString(bundle, labelKey, labelKey));\r\n \t\ta.setToolTipText(getString(bundle, tooltipKey, null));\r\n \t\ta.setDescription(getString(bundle, descriptionKey, null));\r\n \t\t\r\n \t\tString relPath= getString(bundle, imageKey, null);\r\n \t\tif (relPath != null && relPath.trim().length() > 0) {\r\n \t\t\t\r\n \t\t\tString cPath;\r\n \t\t\tString dPath;\r\n \t\t\tString ePath;\r\n \t\t\t\r\n \t\t\tif (relPath.indexOf(\"/\") >= 0) { //$NON-NLS-1$\r\n \t\t\t\tString path= relPath.substring(1);\r\n \t\t\t\tcPath= 'c' + path;\r\n \t\t\t\tdPath= 'd' + path;\r\n \t\t\t\tePath= 'e' + path;\r\n \t\t\t} else {\r\n \t\t\t\tcPath= \"clcl16/\" + relPath; //$NON-NLS-1$\r\n \t\t\t\tdPath= \"dlcl16/\" + relPath; //$NON-NLS-1$\r\n \t\t\t\tePath= \"elcl16/\" + relPath; //$NON-NLS-1$\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tImageDescriptor id= CompareUIPlugin.getImageDescriptor(dPath);\t// we set the disabled image first (see PR 1GDDE87)\r\n \t\t\tif (id != null)\r\n \t\t\t\ta.setDisabledImageDescriptor(id);\r\n \t\t\tid= CompareUIPlugin.getImageDescriptor(cPath);\r\n \t\t\tif (id != null)\r\n \t\t\t\ta.setHoverImageDescriptor(id);\r\n \t\t\tid= CompareUIPlugin.getImageDescriptor(ePath);\r\n \t\t\tif (id != null)\r\n \t\t\t\ta.setImageDescriptor(id);\r\n \t\t}\r\n \t}",
"public MatteIcon() {\r\n this(32, 32, null);\r\n }",
"public Dialog(String text) {\n initComponents( text);\n }",
"public void init() {\n super.init();\n\n setDefaultInputNodes(1);\n setMinimumInputNodes(1);\n setMaximumInputNodes(1);\n\n setDefaultOutputNodes(1);\n setMinimumOutputNodes(1);\n setMaximumOutputNodes(Integer.MAX_VALUE);\n\n String guilines = \"\";\n guilines += \"Input your text string in the following box $title value TextField\\n\";\n setGUIBuilderV2Info(guilines);\n\n }",
"public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }",
"public LTSAButton(ImageIcon p_icon, String p_tooltip, ActionListener p_actionlistener) {\r\n\r\n setIcon(p_icon);\r\n setRequestFocusEnabled(false);\r\n setMargin(new Insets(0, 0, 0, 0));\r\n setToolTipText(p_tooltip);\r\n addActionListener(p_actionlistener);\r\n }",
"public MyGUIProgram() {\n Label MyLabel = new Label(\"Test string.\", Label.CENTER);\n this.add(MyLabel);\n\n }",
"@Source(\"create.gif\")\n\tpublic ImageResource createIcon();",
"public ShapeExportAction() {\n super();\n putValue(\n SMALL_ICON,\n new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cismap/commons/gui/res/shapeexport_small.png\")));\n putValue(SHORT_DESCRIPTION, NbBundle.getMessage(ShapeExportAction.class, \"ShapeExportAction.tooltiptext\"));\n putValue(NAME, NbBundle.getMessage(ShapeExportAction.class, \"ShapeExportAction.name\"));\n }",
"public BLabel(Icon image)\n {\n this(image, WEST);\n }",
"public ActionButton(ImageIcon icon) {\n\t\tsuper(icon);\n\t}",
"public ExpandableToolTip(String toolTipText, String helpText,\r\n\t\t\tJComponent owner) {\r\n\t\tthis.owner = owner;\r\n\r\n\t\t/*\r\n\t\t * Attach mouseListener to component. If we attach the toolTip to a\r\n\t\t * JComboBox our MouseListener is not used, we therefore need to attach\r\n\t\t * the MouseListener to each component in the JComboBox\r\n\t\t */\r\n\t\tif (owner instanceof JComboBox) {\r\n\t\t\tfor (int i = 0; i < owner.getComponentCount(); i++) {\r\n\t\t\t\towner.getComponent(i).addMouseListener(this);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\towner.addMouseListener(this);\r\n\t\t}\r\n\r\n\t\t/* generate toolTip panel */\r\n\t\ttoolTip = new JPanel(new GridLayout(3, 1));\r\n\t\ttoolTip.setPreferredSize(new Dimension(WIDTH_TT, HEIGHT_TT));\r\n\t\ttoolTip.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n\t\ttoolTip.setBackground(Color.getHSBColor(15, 3, 99));\r\n\t\ttoolTip.add(new JLabel(toolTipText));\r\n\t\ttoolTip.add(new JSeparator(SwingConstants.HORIZONTAL));\r\n\t\tJLabel more = new JLabel(\"press 'F1' for more details\");\r\n\t\tmore.setForeground(Color.DARK_GRAY);\r\n\t\tmore.setFont(new Font(null, 1, 10));\r\n\t\ttoolTip.add(more);\r\n\r\n\t\t/* generate help panel */\r\n\t\tJPanel helpContent = new JPanel();\r\n\t\thelpContent.setBackground(Color.WHITE);\r\n\r\n\t\t/* generate editor to display html help text and put in scrollpane */\r\n\t\th = new JEditorPane();\r\n\t\th.setContentType(\"text/html\");\r\n\t\th.addHyperlinkListener(this);\r\n\t\tString context = \"<html><body><table width='\" + WIDTH_HTML\r\n\t\t\t\t+ \"'><tr><td><p><font size=+1>\" + toolTipText + \"</font></p>\"\r\n\t\t\t\t+ helpText + \"</td></tr></table></body></html>\";\r\n\t\th.setText(context);\r\n\t\th.setEditable(true);\r\n\t\th.addHyperlinkListener(this);\r\n\t\thelpContent.add(h);\r\n\t\thelp = new JScrollPane(helpContent);\r\n\t\thelp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\thelp.setPreferredSize(new Dimension(WIDTH_SC, HEIGHT_SC));\r\n\r\n\t\tpopup = new JFrame();\r\n\t\tpopup.setUndecorated(true);\r\n\r\n\t}",
"public NewFSAAction() {\r\n super(Hub.string(\"TD_comAssignNewFSA\"), icon);\r\n icon.setImage(Toolkit.getDefaultToolkit()\r\n .createImage(Hub.getLocalResource(AssignFSADialog.class, \"images/icons/new_automaton.gif\")));\r\n putValue(SHORT_DESCRIPTION, Hub.string(\"TD_comHintAssignNewFSA\"));\r\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}",
"public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }",
"public ContactInfo() {\r\n\t\t\tsetLayout(new FlowLayout(FlowLayout.LEFT));\r\n\t\t\tImageIcon icon = createImageIcon(\"icon1.jpg\", \"Icon\");\r\n\t\t\tJLabel iconLabel = new JLabel(icon);\r\n\t\t\ticonLabel.setPreferredSize(new Dimension(50, 50));\r\n\t\t\ticonLabel.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\t\tadd(iconLabel);\r\n\t\t\tadd(new TextField());\r\n\t\t}",
"@Source(\"create.gif\")\n\tpublic DataResource createIconResource();",
"public Button(final String textLabel) {\n label = new Label(textLabel);\n label.setHorizontalAlignment(HorizontalAlignment.CENTRE);\n label.setVerticalAlignment(VerticalAlignment.MIDDLE);\n label.setBackgroundColour(Color.GRAY);\n label.setOpaque(true);\n }"
] | [
"0.6664996",
"0.65366036",
"0.6423032",
"0.6303028",
"0.61925364",
"0.6189105",
"0.6165614",
"0.61442816",
"0.61256397",
"0.6085363",
"0.6005738",
"0.59391123",
"0.5874842",
"0.58340365",
"0.5819635",
"0.5812358",
"0.58011717",
"0.57824945",
"0.57683825",
"0.56869036",
"0.5662462",
"0.5650589",
"0.5591097",
"0.5581662",
"0.5579804",
"0.5571311",
"0.5561544",
"0.55316085",
"0.5528781",
"0.5515704",
"0.5458672",
"0.54577273",
"0.5435536",
"0.5385489",
"0.5377176",
"0.5375509",
"0.5371524",
"0.5359222",
"0.53531694",
"0.5350255",
"0.5342695",
"0.53423715",
"0.53360194",
"0.533186",
"0.53262013",
"0.5325991",
"0.53036994",
"0.5303211",
"0.52956384",
"0.52875006",
"0.527843",
"0.5274561",
"0.52692586",
"0.5268302",
"0.5263205",
"0.52617097",
"0.52605075",
"0.52600014",
"0.52544165",
"0.52539575",
"0.52505374",
"0.52452576",
"0.5234664",
"0.5232011",
"0.522027",
"0.5219696",
"0.5216072",
"0.5209229",
"0.52020514",
"0.51983607",
"0.5197405",
"0.51844054",
"0.5180866",
"0.51701957",
"0.5165834",
"0.51623124",
"0.5152189",
"0.5147374",
"0.5145543",
"0.5134964",
"0.5132637",
"0.5130712",
"0.51245403",
"0.5112751",
"0.5111685",
"0.5109356",
"0.5106045",
"0.5092425",
"0.5090578",
"0.5086455",
"0.5084569",
"0.50828546",
"0.5074347",
"0.50735074",
"0.50722426",
"0.50600207",
"0.50590974",
"0.5057744",
"0.5050023",
"0.5046543"
] | 0.6837939 | 0 |
Gets the ribbon container. | public JRibbonContainer getRibbonContainer()
{
return ribbonContainer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public String getRibbonComponentClass()\n\t{\n\t\treturn ribbonComponentClass;\n\t}",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public RibbonGalleryUI getUI() {\n return (RibbonGalleryUI) ui;\n }",
"public void setRibbonContainer(JRibbonContainer ribbonContainer)\n\t{\n\t\tthis.ribbonContainer = ribbonContainer;\n\t}",
"C getGlassPane();",
"public StackPane getPane() {\n return this.container;\n }",
"public CoolBar getParent() {\n checkWidget();\n return parent;\n }",
"public void setRibbonComponent(IRibbonComponent ribbonComponent)\n\t{\n\t\tthis.ribbonComponent = ribbonComponent;\n\t}",
"public void setCrayon(RibbonCrayon c)\n { this.crayon = c; }",
"public Container getContainer();",
"@Override\r\n\tpublic Control getControl() {\r\n\t\treturn container;\r\n\t}",
"public final ResizeDDContainer getWindow() {\r\n\t\t\treturn (ResizeDDContainer) getSource();\r\n\t\t}",
"public final ResizeDDContainer getWindow() {\r\n\t\t\treturn (ResizeDDContainer) getSource();\r\n\t\t}",
"private RGridLayoutPane getButtonPane() {\n if (buttonPane == null) {\n buttonPane = new RGridLayoutPane();\n buttonPane.setName(\"buttonPane\");\n buttonPane.setStyle(\"border-all\");\n buttonPane.setHgap(5);\n buttonPane.setName(\"buttonPane\");\n buttonPane.setStyleProperties(\"{/anchor \\\"EAST\\\"}\");\n buttonPane.add(getShowDetailsButton());\n buttonPane.add(getCopyButton());\n buttonPane.add(getOkButton());\n }\n return buttonPane;\n }",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"public javax.swing.JButton getjBtnContainerBack() {\n return jBtnContainerBack;\n }",
"public HistoryContainer getGlobalHistoryContainer() {\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n return mGlobalHistoryContainer;\n }",
"public DockContainer getContainer() {\n return container;\n }",
"private ULCContainer getHeaderPane() {\n if (headerPane == null) {\n headerPane = RichDialogPanelFactory.create(TabHeaderBarPanel.class);\n headerPane.setName(\"headerPane\");\n }\n return headerPane;\n }",
"protected Container getContainer()\r\n {\n return _xarSource.getXarContext().getContainer();\r\n }",
"public void setRibbonName(String ribbonName)\n\t{\n\t\tthis.ribbonName = ribbonName;\n\t}",
"public BossOverlayGui getBossOverlay() {\n return this.overlayBoss;\n }",
"public final Element getContainer() {\n\t\treturn impl.getContainer();\n }",
"public JComponent getWidget() {\n return itsComp;\n }",
"public HistoryPane getHistoryPane() {\r\n\t\treturn historyPane;\r\n\t}",
"public Control getControl()\n {\n return composite;\n }",
"public ToolBar getParent () {\r\n\tcheckWidget();\r\n\treturn parent;\r\n}",
"public JLabel getStatusbarLabel()\r\n {\r\n return lbStatusbar;\r\n }",
"public JComponent getToolbarComponent()\n {\n return _box;\n }",
"BorderPane getRoot();",
"@Override\r\n\tpublic Widget getWidget() {\n\t\treturn asWidget();\r\n\t}",
"protected Pane getStatusPane() {\n\n return this.statusPane;\n }",
"public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}",
"public JToolBar getToolBar() {\n return myToolBar;\n }",
"public UIContainer getDefinitionContainer() {\n\t\treturn uiDefinition;\n\t}",
"public void execute(ActionEvent e)\n\t{\t\t\n\t\tif (ribbonComponent == null)\n\t\t{\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tribbonComponent = (IRibbonComponent) Class.forName(ribbonComponentClass).newInstance();\n\t\t\t}\n\t\t\tcatch (NullPointerException ex)\n\t\t\t{\t\t\t\t\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_initialization_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (ClassCastException ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_implementation_failed\") + \" \" + IRibbonComponent.class.getSimpleName() + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_instantiation_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tribbonContainer.addRibbonComponent(ribbonName, ribbonTitle, ribbonIcon, ribbonToolTipText, ribbonComponent);\n\t}",
"public ViewGroup getContainer() {\n return mContainer;\n }",
"BaseContainerType getBaseContainer();",
"public JLayeredPane getContainer(){\n\t\treturn contentPane;\n\t}",
"private JComponent getRootPane()\n\t{\n\t\treturn null;\n\t}",
"public UiLabelsFactory getLabels() {\n if (getLabels == null)\n getLabels = new UiLabelsFactory(jsBase + \".labels()\");\n\n return getLabels;\n }",
"public static AnchorPane getButtonPane() {\n\t\tif (buttonPane == null) {\n\t\t\tinitScene();\n\t\t}\n\t\treturn buttonPane;\n\t}",
"@Override\n public void updateUI() {\n setUI(SubstanceRibbonGalleryUI.createUI(this));\n }",
"public UiBackground getBackground() {\n if (getBackground == null)\n getBackground = new UiBackground(jsBase + \".background()\");\n\n return getBackground;\n }",
"public static StatusPane getStatusPane() {\n\t\tif (statusPane == null) {\n\t\t\tinitScene();\n\t\t}\n\t\treturn statusPane;\n\t}",
"public Container getContainer() {\r\n return container;\r\n }",
"public BorderPane getRoot() {\n\t\treturn root;\n\t}",
"public GlassPanel getGlassPane() {\n\t\treturn glassPane;\n\t}",
"public BorderPane getRoot() {\n\t\treturn _root;\n\t}",
"public BorderPane getRoot() {\n\t\treturn _root;\n\t}",
"int getBackpack();",
"private JToolBar getTlbNavigate() {\r\n\t\tif (tlbNavigate == null) {\r\n\t\t\ttlbNavigate = new JToolBar();\r\n\t\t\ttlbNavigate.setLayout(new BoxLayout(getTlbNavigate(), BoxLayout.X_AXIS));\r\n\t\t\ttlbNavigate.add(getBtnBack());\r\n\t\t\ttlbNavigate.add(getBtnForward());\r\n\t\t\ttlbNavigate.add(getBtnHome());\r\n\t\t\ttlbNavigate.add(getTxtAddress());\r\n\t\t\ttlbNavigate.add(getBtnGo());\r\n\t\t}\r\n\t\treturn tlbNavigate;\r\n\t}",
"public String container() {\n return this.container;\n }",
"public String getContainer() {\n return this.container;\n }",
"BossBar createBossBar(String title, BossColor color, BossStyle style);",
"public java.awt.Component getControlledUI() {\r\n return ratesBaseWindow;\r\n }",
"public static GameContainer getContainer() {\r\n return container;\r\n }",
"public static BratVisualizerResourceReference get()\n {\n return INSTANCE;\n }",
"public Button getHorariosButton(Color containerColor, ButtonActionListener actionListener) {\n return buildWithDefaultDimensions(buildBlueButton(\"Horários\", null, containerColor, actionListener));\n }",
"@Override\n public IFigure getContentPane() {\n return getLayer(PRIMARY_LAYER);\n }",
"private BButton getBtnCancel() {\r\n\t\tif (btnCancel == null) {\r\n\t\t\tbtnCancel = new BButton();\r\n\t\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\tbtnCancel.setPreferredSize(new Dimension(100, 29));\r\n\t\t}\r\n\t\treturn btnCancel;\r\n\t}",
"public LinearLayout getInviteContainer() {\n return mInviteContainer;\n }",
"private JPanel getBalloonSettingsButtonPane() {\n if (balloonSettingsButtonPane == null) {\n FlowLayout flowLayout = new FlowLayout();\n flowLayout.setHgap(25);\n balloonSettingsButtonPane = new JPanel();\n balloonSettingsButtonPane.setLayout(flowLayout);\n balloonSettingsButtonPane.setPreferredSize(new java.awt.Dimension(35, 35));\n balloonSettingsButtonPane.add(getAddButton(), null);\n balloonSettingsButtonPane.add(getCopyButton(), null);\n balloonSettingsButtonPane.add(getEditButton(), null);\n }\n return balloonSettingsButtonPane;\n }",
"public Composite getComposite() {\n \t\treturn super.getComposite();\n \t}",
"public JToolBar getToolBar(){\r\n return toolbar;\r\n }",
"public RibbonMenuContainerClipboard() {\r\n super(\"Clipboard tools\");\r\n\r\n }",
"protected abstract JToolBar getNorthToolbar();",
"public static ResourceBundle getRB() {\r\n return rb;\r\n }",
"public void setRibbonComponentClass(String ribbonComponentClass)\n\t{\n\t\tthis.ribbonComponentClass = ribbonComponentClass;\n\t}",
"public MenuContainer getParent()\n/* */ {\n/* 94 */ if (this.isTrayIconPopup) {\n/* 95 */ return null;\n/* */ }\n/* 97 */ return super.getParent();\n/* */ }",
"private RGridBagLayoutPane getTitlePane() {\n if (titlePane == null) {\n titlePane = new RGridBagLayoutPane();\n titlePane.setName(\"titlePane\");\n titlePane.setStyleProperties(\"{/fill \\\"HORIZONTAL\\\"/weightY \\\"0\\\"}\");\n titlePane.add(getHeaderPane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }\n return titlePane;\n }",
"public static JFrame getWindow()\r\n {\r\n\treturn window;\r\n }",
"@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(updateReferencesAllMaps);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, updateReferencesAllMaps, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tupdateReferencesAllMaps.setEnabled();\n\t\t\t\t\tbutton.setEnabled(updateReferencesAllMaps.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}",
"public JPanel getPanel() {\n\t\treturn barChartPanel;\n\t}",
"private JButton getJButton() {\n\t\tif (jButton == null) {\n\t\t\tjButton = new JButton();\n\t\t\tjButton.setBounds(new Rectangle(57, 80, 34, 45));\n\t\t}\n\t\treturn jButton;\n\t}",
"private Component getPreviewPane() {\n\t\tImageIcon img = new ImageIcon(image.getScaledInstance(100, 140, Image.SCALE_DEFAULT));\n\t\tJLabel preview = new JLabel(img);\n\t\t\n\t\treturn preview;\n\t}",
"public JToolBar getToolBar() {\n return toolBar;\n }",
"public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}",
"public JFrame getWindow() {\n\t\treturn window;\n\t}",
"protected final WebMarkupContainer getTabBar() {\n return (WebMarkupContainer) get(TABS_BAR_ID);\n }",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setBounds(new Rectangle(172, 11, 71, 26));\r\n\t\t\tjButton.setText(\"Button\");\r\n\t\t\tjButton.addActionListener(new MultiHighlight(jTextArea, \"aeiouAEIOU\"));\r\n\t\t}\r\n\t\treturn jButton;\r\n\t}",
"ImageView getBadgeView();",
"public ClientDashboardFrame getClientDashboardFrame() {\n return (ClientDashboardFrame) getParent() //JPanel\n .getParent() //JLayeredPanel\n .getParent() //JRootPanel\n .getParent(); //JFrame\n }",
"public ComponentTheme getTheme() {\r\n return ui;\r\n }",
"C getRegisteredToolBar(ToolbarPosition position);",
"private javax.swing.JButton getJButtonCancelar() {\n\t\tif(jButtonCancelar == null) {\n\t\t\tjButtonCancelar = new JHighlightButton();\n\t\t\tjButtonCancelar.setText(\"Cancelar\");\n\t\t\tjButtonCancelar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/delete2.png\")));\n\t\t}\n\t\treturn jButtonCancelar;\n\t}",
"public IPSComponent peekParent();",
"public IFigure getContentPane() {\r\n\t\tif (contentPane != null) {\r\n\t\t\treturn contentPane;\r\n\t\t}\r\n\t\treturn super.getContentPane();\r\n\t}",
"@Override\n\tpublic Component getComponent() {\n\t\tComponent component = button.getComponent();\n\t\tcomponent.setBackground(color);\n\t\treturn component;\n\t}",
"public LinearLayout getChatContainer() {\n return mChatContainer;\n }",
"private BorderPane getPane() {\n bigField = new BigField(); // Create a Field model\n view = new BigFieldView(bigField); // Create a pane view\n BorderPane pane = new BorderPane();\n pane.setCenter(view);\n\n return pane;\n }",
"private JButton getAddButton() {\n if (addButton == null) {\n addButton = new JButton();\n addButton.setText(\"Add\");\n addButton.setToolTipText(\"Add new notification settings for a site\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n addBalloonSettings();\n }\n });\n }\n return addButton;\n }",
"public org.dhis2.ns.schema.dxf2.IndicatorGroupDocument.IndicatorGroup getIndicatorGroup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.IndicatorGroupDocument.IndicatorGroup target = null;\n target = (org.dhis2.ns.schema.dxf2.IndicatorGroupDocument.IndicatorGroup)get_store().find_element_user(INDICATORGROUP$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public static String getHeaderBackgoundImgStyle() {\r\n return getBackgoundImgStyle(\"common/background.gif\"); //$NON-NLS-1$\r\n }",
"private HistoryViewPanel getViewPanel() {\n if (viewPanel == null) {\n viewPanel = new HistoryViewPanel();\n viewPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n }\n\n return viewPanel;\n }"
] | [
"0.7677107",
"0.7022817",
"0.68221825",
"0.6523262",
"0.6410004",
"0.62918067",
"0.592579",
"0.5615199",
"0.55277246",
"0.53890383",
"0.53803796",
"0.53310347",
"0.5310189",
"0.52958536",
"0.5268411",
"0.5268411",
"0.526258",
"0.52081245",
"0.51787746",
"0.51451457",
"0.5125177",
"0.50848293",
"0.5038488",
"0.5027096",
"0.50204605",
"0.5004389",
"0.49938923",
"0.49929777",
"0.4985743",
"0.49467003",
"0.49409258",
"0.49394184",
"0.49265918",
"0.49218878",
"0.49189425",
"0.49145317",
"0.49124792",
"0.48850977",
"0.48840022",
"0.48810878",
"0.4880863",
"0.4874379",
"0.48702472",
"0.48486978",
"0.4838699",
"0.48251188",
"0.4823285",
"0.48135424",
"0.48105276",
"0.48072714",
"0.48068854",
"0.48064417",
"0.48064417",
"0.47771832",
"0.47739542",
"0.4773283",
"0.4772175",
"0.47721612",
"0.47445354",
"0.47415328",
"0.47265476",
"0.47259003",
"0.47199565",
"0.47132602",
"0.47104305",
"0.47102806",
"0.4709214",
"0.46973363",
"0.4694674",
"0.46916872",
"0.4687421",
"0.46831024",
"0.4675823",
"0.46753258",
"0.4674979",
"0.46734235",
"0.4671068",
"0.466812",
"0.46659696",
"0.46647093",
"0.4663378",
"0.46606055",
"0.4651172",
"0.46375638",
"0.46343505",
"0.46229488",
"0.46219593",
"0.4619864",
"0.46170494",
"0.46136332",
"0.46087307",
"0.4605247",
"0.4604741",
"0.45957276",
"0.45954445",
"0.45805535",
"0.45689112",
"0.4566613",
"0.45665634",
"0.45663008"
] | 0.8273624 | 0 |
Sets the ribbon container. | public void setRibbonContainer(JRibbonContainer ribbonContainer)
{
this.ribbonContainer = ribbonContainer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRibbonComponent(IRibbonComponent ribbonComponent)\n\t{\n\t\tthis.ribbonComponent = ribbonComponent;\n\t}",
"public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}",
"public void setCrayon(RibbonCrayon c)\n { this.crayon = c; }",
"public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}",
"public void setUI(RibbonGalleryUI ui) {\n super.setUI(ui);\n }",
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"@Override\n public void updateUI() {\n setUI(SubstanceRibbonGalleryUI.createUI(this));\n }",
"public void setRibbonName(String ribbonName)\n\t{\n\t\tthis.ribbonName = ribbonName;\n\t}",
"public void setRibbonComponentClass(String ribbonComponentClass)\n\t{\n\t\tthis.ribbonComponentClass = ribbonComponentClass;\n\t}",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"public void execute(ActionEvent e)\n\t{\t\t\n\t\tif (ribbonComponent == null)\n\t\t{\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tribbonComponent = (IRibbonComponent) Class.forName(ribbonComponentClass).newInstance();\n\t\t\t}\n\t\t\tcatch (NullPointerException ex)\n\t\t\t{\t\t\t\t\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_initialization_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (ClassCastException ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_implementation_failed\") + \" \" + IRibbonComponent.class.getSimpleName() + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_instantiation_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tribbonContainer.addRibbonComponent(ribbonName, ribbonTitle, ribbonIcon, ribbonToolTipText, ribbonComponent);\n\t}",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public String getRibbonComponentClass()\n\t{\n\t\treturn ribbonComponentClass;\n\t}",
"public abstract BossBar setStyle(BossStyle style);",
"private void setUpBorderPane(ICalendarAgenda agenda) {\n // Set the border pane background to white\n String style = \"-fx-background-color: rgba(255, 255, 255, 1);\";\n borderPane.setStyle(style);\n\n // Buttons\n Button increaseWeek = new Button(\">\");\n Button decreaseWeek = new Button(\"<\");\n HBox weekButtonHBox = new HBox(decreaseWeek, increaseWeek);\n weekButtonHBox.setSpacing(10);\n borderPane.setBottom(weekButtonHBox);\n\n // Weekly increase/decrease event handlers\n increaseWeek.setOnAction(event -> {\n LocalDateTime newDisplayedLocalDateTime = agenda.getDisplayedLocalDateTime().plus(Period.ofWeeks(1));\n agenda.setDisplayedLocalDateTime(newDisplayedLocalDateTime);\n });\n\n decreaseWeek.setOnAction(event -> {\n LocalDateTime newDisplayedLocalDateTime = agenda.getDisplayedLocalDateTime().minus(Period.ofWeeks(1));\n agenda.setDisplayedLocalDateTime(newDisplayedLocalDateTime);\n });\n }",
"private void setBackgrond(){\t\n this.background = new JLabel();\n this.background.setIcon(backgrondP);\n this.background.setVisible(true);\n this.background.setLocation(0, 0);\n this.background.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.add(background);\n\t}",
"public JRibbonAction()\n\t{\n\t\tsuper();\n\t}",
"public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n }",
"public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n }",
"private void createConent() {\n\t\tdockPanel = new DockLayoutPanel(Unit.PX);\n\t\tribbonBarPanel = new RibbonBarContainer();\n\t\tbattleMatCanvasPanel = new SimpleLayoutPanel();\n\t\tmainPanel = new LayoutPanel();\n\t\tmainPanel.setSize(\"100%\", \"100%\");\n\t\tbattleMatCanvas = new BattleMatCanvas();\n\t\tbattleMatCanvasPanel.clear();\n\t\tbattleMatCanvasPanel.add(battleMatCanvas);\n\t\teast.setSize(\"100%\", \"100%\");\n\t\teast.add(assetManagementPanel);\n\t\tsplitPanel = new SplitLayoutPanel() {\n\t\t\t@Override\n\t\t\tpublic void onResize() {\n\t\t\t\tsuper.onResize();\n\t\t\t\tbattleMatCanvas.onResize();\n\t\t\t};\n\t\t};\n\t\tmainPanel.add(splitPanel);\n\t\tdockPanel.clear();\n\t\tdockPanel.addNorth(ribbonBarPanel, Constants.RIBBON_BAR_SIZE);\n\t\tdockPanel.add(mainPanel);\n\t\t// MUST CALL THIS METHOD to set the constraints; if you don't not much\n\t\t// will be displayed!\n\t\tdockPanel.forceLayout();\n\n\t\tWindow.addResizeHandler(new ResizeHandler() {\n\t\t\tpublic void onResize(final ResizeEvent event) {\n\t\t\t\tdoWindowResize(event);\n\t\t\t}\n\t\t});\n\t}",
"public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n\n }",
"public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n setDefaultCommands();\n }",
"public RibbonMenuContainerClipboard() {\r\n super(\"Clipboard tools\");\r\n\r\n }",
"BossBar createBossBar(String title, BossColor color, BossStyle style);",
"@Override\n public void setParent(MElementContainer<MUIElement> arg0)\n {\n \n }",
"private void setActionBar() {\n headView.setText(\"消息中心\");\n headView.setGobackVisible();\n headView.setRightGone();\n // headView.setRightResource();\n }",
"public void initComponants(){\n \n \n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setBounds(300,250,300,350);\n frame.setTitle(\"This is for Title\");\n \n //we want to set icon in our jframe\n icon=new ImageIcon(\"E:\\\\Java Swing Code\\\\JavaSwing\\\\src\\\\javaswing\\\\Images\\\\phone.png\");//object created / initialize\n frame.setIconImage(icon.getImage());\n c=frame.getContentPane();\n c.setBackground(Color.red);\n //another waya to change background color of frame\n// frame.getContentPane().setBackground(Color.blue);\n \n \n }",
"public void setFrameIcon()\n {\n URL imageURL = HelpWindow.class.getResource(\"/resources/images/frameicon.png\");\n Image img = Toolkit.getDefaultToolkit().getImage(imageURL);\n \n if(imageURL != null)\n {\n ImageIcon icon = new ImageIcon(img);\n super.setIconImage(icon.getImage());//window icon\n }\n }",
"public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n configureDefaultCommands();\n }",
"private void setUi(JCpgUI jCpgUIReference){\n\t\t\n\t\tthis.ui = jCpgUIReference;\n\t\t\n\t}",
"private void setAppearance(String className) {\n DweezilUIManager.setLookAndFeel(className, new Component[]{MainFrame.getInstance(), StatusWindow.getInstance(),\n PrefsSettingsPanel.this.getParent().getParent()});\n\n }",
"public static void setLookAndFeel(){\n\t\t\n\t\tUIManager.put(\"nimbusBase\", new Color(0,68,102));\n\t\tUIManager.put(\"nimbusBlueGrey\", new Color(60,145,144));\n\t\tUIManager.put(\"control\", new Color(43,82,102));\n\t\tUIManager.put(\"text\", new Color(255,255,255));\n\t\tUIManager.put(\"Table.alternateRowColor\", new Color(0,68,102));\n\t\tUIManager.put(\"TextField.font\", new Font(\"Font\", Font.BOLD, 12));\n\t\tUIManager.put(\"TextField.textForeground\", new Color(0,0,0));\n\t\tUIManager.put(\"PasswordField.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"TextArea.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"FormattedTextField.foreground\", new Color(0,0,0));\n\t\t\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\".background\", new Color(0,68,102));\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\"[Selected].background\", new Color(0,0,0));\n\t\t\n\t\t//TODO nie chca dzialac tooltipy na mapie\n\t\tBorder border = BorderFactory.createLineBorder(new Color(0,0,0)); //#4c4f53\n\t\tUIManager.put(\"ToolTip.border\", border);\n\n\t\t//UIManager.put(\"ToolTip.foregroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.backgroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.background\", new Color(0,0,0)); //#fff7c8\n\t\t//UIManager.put(\"ToolTip.foreground\", new Color(0,0,0));\n\t\t Painter<Component> p = new Painter<Component>() {\n\t\t public void paint(Graphics2D g, Component c, int width, int height) {\n\t\t g.setColor(new Color(20,36,122));\n\t\t //and so forth\n\t\t }\n\t\t };\n\t\t \n\t\tUIManager.put(\"ToolTip[Enabled].backgroundPainter\", p);\n\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new Color(255, 255, 255)); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new Color(255, 255, 255));\n//\t\t\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\",new ColorUIResource(new Color(255, 255, 255)));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new ColorUIResource((new Color(255, 255, 255))));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new ColorUIResource(new Color(255, 255, 255))); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new ColorUIResource(new Color(255, 255, 255)));\n\t\t\n\t \n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, you can set the GUI to another look and feel.\n\t\t}\n\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table:\\\"Table.cellRenderer\\\".background\", new ColorUIResource(new Color(74,144,178)));\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table.background\", new ColorUIResource(new Color(74,144,178)));\n\t\t\n\n\t}",
"public void initStackBricks() {\n\t\tdouble brickSize = MainApplication.WINDOW_HEIGHT / ASPECT_RATIO;\n\t\t// Array of numbered blocks, also formats them\n\t\tfor (int i = 0; i < callStack; i++) {\n\t\t\tstackBricks[i] = new GButton(String.valueOf(i + 1), (i + 1) * brickSize, 0.0, brickSize, brickSize,\n\t\t\t\t\tlevelColor(i + 1), Color.WHITE);\n\t\t}\n\t}",
"public void setAsPollUserCreated() {\n LinearLayout linearLayout = (LinearLayout)findViewById(R.id.poll_object_main_layout);\n linearLayout.setBackgroundResource(R.drawable.poll_created_border);\n }",
"public ButtonBar() {\n scrollPane = new JScrollPane();\n scrollPane.setBorder(null);\n scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants\n .HORIZONTAL_SCROLLBAR_NEVER);\n scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants\n .VERTICAL_SCROLLBAR_AS_NEEDED);\n scrollPane.setMinimumSize(new Dimension(0,buttonHeight\n + ((int) PlatformDefaults.getUnitValueX(\"related\").getValue()) * 2));\n \n buttons = Collections.synchronizedMap(new TreeMap<FrameContainer<?>,\n JToggleButton>(new FrameContainerComparator()));\n position = FramemanagerPosition.getPosition(\n IdentityManager.getGlobalConfig().getOption(\"ui\",\n \"framemanagerPosition\"));\n \n if (position.isHorizontal()) {\n buttonPanel = new ButtonPanel(new MigLayout(\"ins rel, fill, flowx\"),\n this);\n } else {\n buttonPanel = new ButtonPanel(new MigLayout(\"ins rel, fill, flowy\"),\n this);\n }\n scrollPane.getViewport().add(buttonPanel);\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"public GUISignUp() {\n initComponents();\n setLocationRelativeTo(null);\n this.getContentPane().setBackground(new java.awt.Color(72, 72, 72));\n resizeImage();\n }",
"@Override\n\tpublic void setPane() {\n\t\tNewSchedulePane SchListPane = new NewSchedulePane();\n\t\trootPane = new HomePane(new MainLeftPane(),SchListPane);\n\t}",
"private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}",
"public void bulleBlanche() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_blanche.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}",
"public InterfazBienvenida() {\n\n initComponents();\n setLocationRelativeTo(null);\n\n this.ButtonBuscarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonIndexarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonComoFunciona.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n }",
"void updateChevron() {\n if ( control != null ) {\n int width = itemBounds.width;\n if ( (style & SWT.DROP_DOWN) != 0 && width < preferredWidth ) {\n if ( chevron == null ) {\n chevron = new ToolBar( parent, SWT.FLAT | SWT.NO_FOCUS );\n chevron.setBackground( Graphics.getColor( 255, 0, 0 ) );\n ToolItem toolItem = new ToolItem( chevron, SWT.PUSH );\n toolItem.addListener( SWT.Selection, new Listener() {\n public void handleEvent( Event event ) {\n CoolItem.this.onSelection( event );\n }\n } );\n }\n int controlHeight, currentImageHeight = 0;\n if ( (parent.style & SWT.VERTICAL) != 0 ) {\n controlHeight = control.getSize().x;\n if ( arrowImage != null )\n currentImageHeight = arrowImage.getBounds().width;\n } else {\n controlHeight = control.getSize().y;\n if ( arrowImage != null )\n currentImageHeight = arrowImage.getBounds().height;\n }\n int height = Math.min( controlHeight, itemBounds.height );\n int imageHeight = Math.max( 1, height - CHEVRON_VERTICAL_TRIM );\n if ( currentImageHeight != imageHeight ) {\n // Image image = createArrowImage (CHEVRON_IMAGE_WIDTH, imageHeight);\n Image image = Graphics.getImage( \"resource/widget/rap/coolitem/chevron.gif\",\n getClass().getClassLoader() );\n chevron.getItem( 0 ).setImage( image );\n // if (arrowImage != null) arrowImage.dispose ();\n arrowImage = image;\n }\n chevron.setBackground( parent.getBackground() );\n chevron.setBounds( parent.fixRectangle( itemBounds.x + width\n - CHEVRON_LEFT_MARGIN - CHEVRON_IMAGE_WIDTH\n - CHEVRON_HORIZONTAL_TRIM, itemBounds.y, CHEVRON_IMAGE_WIDTH\n + CHEVRON_HORIZONTAL_TRIM + 10, height ) );\n chevron.setVisible( true );\n } else {\n if ( chevron != null ) {\n chevron.setVisible( false );\n }\n }\n }\n }",
"public void bulleRouge() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_rouge.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}",
"public void createBlueBanHighlight() {\n\t\tblueBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tblueBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(blueBanHighlight, new Integer(1));\n\t\tblueBanHighlight.setBounds(23, 29, 245, 135);\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"public RibbonGalleryUI getUI() {\n return (RibbonGalleryUI) ui;\n }",
"@Override\n public void setWidget(Object arg0)\n {\n \n }",
"public void MakeBar() {\n\t\tBarButton = new JButton(\n\t\t\t\t new ImageIcon(getClass().getResource(GetBarChartImage())));\t\n\t\tBarButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"Bar chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(BarButton);\t\n\t}",
"public static void Start(BorderPane bPane) {\r\n\r\n\t\tText title = new Text(20, 10, \"Meal Analyzer\");\r\n\t\ttitle.setFont(Font.font(\"Georgia\", 20));\r\n\t\tText version = new Text(10, 20, \"V. 0.10\");\r\n\t\tversion.setFont(Font.font(\"Georgia\", 20));\r\n\r\n\t\tHBox upperBand = new HBox();\r\n\t\tupperBand.setStyle(\"-fx-background-color: #BFBFBF;\" + \"-fx-padding: 5;\");\r\n\t\tupperBand.setSpacing(580);\r\n\t\tupperBand.setMaxHeight(100);\r\n\r\n\t\tupperBand.getChildren().addAll(title, version);\r\n\r\n\t\t// initialization is done, add the items into the borderPane\r\n\t\tbPane.setTop(upperBand);\r\n\t\tbPane.setStyle(\"-fx-background-color: #DEDEDE;\");\r\n\r\n\t}",
"@Override\r\n protected final Control createButtonBar(Composite parent) {\n return null;\r\n }",
"ViewGroup activatePopupContainer();",
"@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }",
"public void setUI(Window ui)\n {\n this.ui = ui;\n theLogger.info(\"Set reference to Window (UI)\");\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}",
"@Override\n\tpublic void setPane() {\n\t\tNewTaskPane textListPane = new NewTaskPane();\n\t\trootPane = new HomePane(new MainLeftPane(),textListPane);\t\t\n\t}",
"public void setContent(Control content) {\n if (content == null)\n throw new NullPointerException(\"content is null\");\n checkWidget();\n if (this.content != null && !this.content.isDisposed()) {\n this.content.removeListener(SWT.Resize, contentListener);\n this.content.setBounds(new Rectangle(-200, -200, 0, 0)); // ??? ;)\n }\n //\t\tcontent.setParent(composite);\n this.content = content;\n //\t\t\tif (vBar != null) {\n //\t\t\t\tvBar.setMaximum(0);\n //\t\t\t\tvBar.setThumb(0);\n //\t\t\t\tvBar.setSelection(0);\n //\t\t\t}\n //\t\t\tif (hBar != null) {\n //\t\t\t\thBar.setMaximum(0);\n //\t\t\t\thBar.setThumb(0);\n //\t\t\t\thBar.setSelection(0);\n //\t\t\t}\n content.setLocation(0, 0);\n layout(false);\n this.content.addListener(SWT.Resize, contentListener);\n \n }",
"@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(updateReferencesAllMaps);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, updateReferencesAllMaps, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tupdateReferencesAllMaps.setEnabled();\n\t\t\t\t\tbutton.setEnabled(updateReferencesAllMaps.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public RIAComboboxPanel()\n {\n super();\n initialize();\n }",
"private void setToolBar() {\r\n toolbar.setTitle(R.string.photo_details);\r\n ActionBar ab = getSupportActionBar();\r\n if (ab != null) {\r\n ab.setDisplayHomeAsUpEnabled(true);\r\n }\r\n toolbar.setNavigationIcon(R.drawable.ic_back);\r\n }",
"private void setAttributes() {\n this.setVisible(true);\n this.setSize(500, 500);\n this.setTitle(\"cuttco.com\");\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\n }",
"@Override\n\tpublic void setPane() {\n\t\tNewRecordPane RecListPane = new NewRecordPane();\n\t\trootPane = new HomePane(new MainLeftPane(),RecListPane);\n\t}",
"private void createToolBar() {\r\n toolbar = new JToolBar();\r\n inbox = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.INBOX_ICON)), \"Maintain Inbox\", \"Maintain Inbox\");\r\n awards = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.AWARDS_ICON)), \"Maintain Awards\", \"Maintain Awards\");\r\n proposal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_ICON)), \"Maintain InstituteProposals\", \"Maintain Institute Proposals\");\r\n proposalDevelopment = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_DEVELOPMENT_ICON)), \"Maintain ProposalDevelopment\", \"Maintain Proposal Development\");\r\n rolodex = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.ROLODEX_ICON)), \"Maintain Rolodex\", \"Maintain Rolodex\");\r\n sponsor = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SPONSOR_ICON)), \"Maintain Sponsor\", \"Maintain Sponsor\");\r\n subContract = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SUBCONTRACT_ICON)), \"Maintain SubContract\", \"Maintain Subcontract\");\r\n negotiations = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.NEGOTIATIONS_ICON)), \"Maintain Negotiations\", \"Maintain Negotiations\");\r\n buisnessRules = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.BUSINESS_RULES_ICON)), \"Maintain BusinessRules\", \"Maintain Business Rules\");\r\n map = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.MAP_ICON)), \"Maintain Map\", \"Maintain Map\");\r\n personnal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PERSONNAL_ICON)), \"Maintain Personal\", \"Maintain Personnel\");\r\n users = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.USERS_ICON)), \"Maintain Users\", \"Maintain Users\");\r\n unitHierarchy = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.UNIT_HIERARCHY_ICON)), \"Maintain UnitHierarchy\", \"Maintain Unit Hierarchy\");\r\n cascade = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.CASCADE_ICON)), \"Cascade\", \"Cascade\");\r\n tileHorizontal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_HORIZONTAL_ICON)), \"Tile Horizontal\", \"Tile Horizontal\");\r\n tileVertical = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_VERTICAL_ICON)), \"Tile Vertical\", \"Tile Vertical\");\r\n layer = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.LAYER_ICON)), \"Layer\", \"Layer\");\r\n \r\n /*Added Icons are Committe,Protocol,Shedule. The Icons are different.Non-availability of standard Icon - Chandrashekar*/\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n /* JM 05-02-2013\r\n irbProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_ICON)), \"Protocol\", \"IRB Protocol\");\r\n \r\n irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n /* JM 05-02-2013\r\n schedule = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SCHEDULE_ICON)), \"Schedule\", \"Schedule\");\r\n committee = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.COMMITTEE_ICON)), \"Committee\", \"Committee\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n //irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n // getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n iacucProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_ICON)), \"Protocol\", \"IACUC Protocol\");\r\n \r\n iacucProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IACUC Protocol Submission\");\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.HELP_ICON)), \"Contact Coeus Help\", \"Contact Coeus Help\");\r\n /* JM END */\r\n \r\n exit = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.EXIT_ICON)), \"Exit\", \"Exit\");\r\n \r\n \r\n toolbar.add(inbox);\r\n toolbar.addSeparator();\r\n toolbar.add(awards);\r\n toolbar.add(proposal);\r\n toolbar.add(proposalDevelopment);\r\n toolbar.add(rolodex);\r\n toolbar.add(sponsor);\r\n toolbar.add(subContract);\r\n toolbar.add(negotiations);\r\n toolbar.add(buisnessRules);\r\n toolbar.add(map);\r\n toolbar.add(personnal);\r\n toolbar.add(users);\r\n toolbar.add(unitHierarchy);\r\n \r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n toolbar.add(irbProtocol);\r\n toolbar.add(irbProtocolSubmission);\r\n \r\n toolbar.add(schedule);\r\n toolbar.add(committee);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n toolbar.add(iacucProtocol);\r\n toolbar.add(iacucProtocolSubmission);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n toolbar.addSeparator();\r\n toolbar.add(cascade);\r\n toolbar.add(tileHorizontal);\r\n toolbar.add(tileVertical);\r\n toolbar.add(layer);\r\n toolbar.addSeparator();\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n toolbar.add(contactCoeusHelp);\r\n toolbar.addSeparator();\r\n /* JM END */\r\n \r\n toolbar.add(exit);\r\n \r\n toolbar.setFloatable(false);\r\n setTextLabels(false);\r\n MouseListener pl = new PopupListener();\r\n cpm = new CoeusPopupMenu();\r\n toolbar.addMouseListener(pl);\r\n \r\n inbox.addActionListener(this);\r\n awards.addActionListener(this);\r\n proposal.addActionListener(this);\r\n proposalDevelopment.addActionListener(this);\r\n rolodex.addActionListener(this);\r\n sponsor.addActionListener(this);\r\n subContract.addActionListener(this);\r\n negotiations.addActionListener(this);\r\n buisnessRules.addActionListener(this);\r\n map.addActionListener(this);\r\n personnal.addActionListener(this);\r\n users.addActionListener(this);\r\n unitHierarchy.addActionListener(this);\r\n cascade.addActionListener(this);\r\n tileHorizontal.addActionListener(this);\r\n tileVertical.addActionListener(this);\r\n layer.addActionListener(this);\r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n irbProtocol.addActionListener(this);\r\n schedule.addActionListener(this);\r\n committee.addActionListener(this);\r\n irbProtocolSubmission.addActionListener(this);\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n iacucProtocol.addActionListener(this);\r\n iacucProtocolSubmission.addActionListener(this); */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp.addActionListener(this);\r\n /* JM END */\r\n \r\n exit.addActionListener(this);\r\n }",
"private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"@Override\r\n\tpublic void createPageControls(Composite pageContainer) {\n\t\tsuper.createPageControls(pageContainer);\r\n\t\tthis.getShell().setImage(IImageKey.getImage(IImageKey.KEY_WIZADSMALL));\r\n\t}",
"private void defineToolBar() {\r\n //ARREGLO CON LOS BOTONES ORDENADOS POR POSICION\r\n tools = new ImageView[]{im_tool1,im_tool2,im_tool3,im_tool4,im_tool5,im_tool6,im_tool7,im_tool8,im_tool9,im_tool10,im_tool11,im_tool12}; \r\n //CARGA DE LA BD LA CONFIGURACION DE USUARIO PARA LA PANTALLA\r\n toolsConfig = Ln.getInstance().loadToolBar();\r\n // arreglo con cada etiqueta, ordenado por boton\r\n tooltips = new String[]{\r\n \"Nueva \" + ScreenName + \" \",\r\n \"Editar \" + ScreenName + \" \",\r\n \"Guardar \" + ScreenName + \" \",\r\n \"Cambiar Status de \" + ScreenName + \" \",\r\n \"Imprimir \" + ScreenName + \" \",\r\n \"Cancelar \",\r\n \"Sin Asignar \",\r\n \"Faltante en \" + ScreenName + \" \",\r\n \"Devolución en \" + ScreenName + \" \",\r\n \"Sin Asignar\",\r\n \"Sin Asignar\",\r\n \"Buscar \" + ScreenName + \" \"\r\n };\r\n //se asigna la etiqueta a su respectivo boton\r\n for (int i = 0; i < tools.length; i++) { \r\n Tooltip tip_tool = new Tooltip(tooltips[i]);\r\n Tooltip.install(tools[i], tip_tool);\r\n }\r\n \r\n im_tool7.setVisible(false);\r\n im_tool8.setVisible(false);\r\n im_tool9.setVisible(false);\r\n im_tool10.setVisible(false);\r\n im_tool11.setVisible(false);\r\n }",
"public void setTheme(){\r\n\r\n for (int i = 0; i < 3; i++) {\r\n\r\n buttons[i].setBackground(theme.getButtonTheme()[0][0]);\r\n buttons[i].setForeground(theme.getButtonTheme()[0][1]);\r\n\r\n if(i < 2) {\r\n\r\n panels[i].setBackground(theme.getBackGroundTheme()[0]);\r\n\r\n }\r\n\r\n }\r\n\r\n menuBars[0].setBackground(theme.getInsomniaTheme()[0]);\r\n\r\n menus[0].setForeground(theme.getInsomniaTheme()[1]);\r\n\r\n buttons[0].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_list_30px.png\"));\r\n\r\n buttons[1].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_sort_down_10px.png\"));\r\n\r\n buttons[2].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_sort_down_&&_plus_25px.png\"));\r\n\r\n menus[2].getItem(0).setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_joyent_15px.png\"));\r\n menus[2].getItem(1).setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_doctors_folder_15px.png\"));\r\n\r\n filter.setBackground(theme.getTextFieldTheme()[0][0]);\r\n filter.setForeground(theme.getTextFieldTheme()[0][1]);\r\n\r\n }",
"public ShiBai1() {\n initComponents();\n this.getContentPane().setBackground(new Color(95,158,160)); \n this.getContentPane().setVisible(true);//如果改为true那么就变成了红色。 \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n Center.setCenter(this);\n this.setVisible(true);\n }",
"public void setParent(PaletteContainer newParent) {\n if (parent != newParent) {\n PaletteContainer oldParent = parent;\n parent = newParent;\n listeners.firePropertyChange(PROPERTY_PARENT, oldParent, parent);\n }\n }",
"public Sniffer() { \n initComponents(); \n setLocationRelativeTo(getRootPane());\n setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(\"/views/images/sam_icon.png\")));\n }",
"private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }",
"public void createBluePickHiglight() {\n\t\tbluePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tbluePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\tleftPanel.add(bluePickHighlight, new Integer(1));\n\t\tbluePickHighlight.setBounds(18, 10, 210, 88);\n\t}",
"public abstract void setParent(UIComponent parent);",
"void setParent(UIComponent parent);",
"public void setRibbonToolTipText(String ribbonToolTipText)\n\t{\n\t\tthis.ribbonToolTipText = ribbonToolTipText;\n\t}",
"private void setGlobalChildTextContainerId(View balloon) {\n int viewId = balloon.getId();\n String currentViewName = getResources().getResourceName(viewId);\n String currentViewNumber = currentViewName.charAt(currentViewName.length() - 1) + \"\";\n String childViewName = \"ballon_\" + currentViewNumber + \"_value\";\n int id = getResources().getIdentifier(childViewName, \"id\", GameActivity.this.getPackageName());\n globalChildTextContainer.put(viewId, id);\n }",
"public Lent() {\n\t\tinitComponents();\n\t\tthis.setBounds(150, 50, 1050, 650);\n\t\t//设置背景\n\t\tsetBackgroudImage();\n\t\t//窗体大小不可变\n\t\tthis.setResizable(false);\n\t\t//设置窗体图标\n\t\tToolkit tool = this.getToolkit(); //得到一个Toolkit对象\n\t\tImage myimage = tool.getImage(\"img/4.png\"); //由tool获取图像\n\t\tthis.setIconImage(myimage);\n\t}",
"public GridBagLayoutCustomizer() {\r\n // UI\r\n Container c1 = (Container) getComponent(1); // right base panel\r\n//Debug.println(c1.getName());\r\n Component c2 = c1.getComponent(0); // upper titled border panel\r\n//Debug.println(c2.getName());\r\n c1.remove(c2);\r\n ((GridLayout) c1.getLayout()).setRows(1);\r\n c1.doLayout();\r\n\r\n // init\r\n this.gridbag = new GridBagLayout();\r\n this.layout = new GridBagLayout();\r\n\r\n layoutPanel.setLayout(gridbag);\r\n\r\n constraintsEditor = new GridBagLayoutConstraintsEditor(gridbag);\r\n constraintsEditor.setPropertyChangeListner(pcl);\r\n\r\n lcPanel.addMouseListener(ml);\r\n }",
"@Override\n public void setFocused()\n {\n setImage(\"MinusFocused.png\");\n }",
"private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}",
"@Override\r\n\tpublic void setBackgroundResource(int resid) {\n\t\tsuper.setBackgroundResource(resid);\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}",
"private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }",
"public JStatusbarFrame(String title) {\r\n super(title);\r\n Container cp = super.getContentPane();\r\n cp.setLayout(new BorderLayout());\r\n cp.add(pClient = new JPanel(), BorderLayout.CENTER);\r\n cp.add(lbStatusbar = new JLabel(), BorderLayout.SOUTH);\r\n }",
"@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(changeBibtexDatabase);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, changeBibtexDatabase, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tchangeBibtexDatabase.setEnabled();\n\t\t\t\t\tbutton.setEnabled(changeBibtexDatabase.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public void createPurpleBanHighlight() {\n\t\tpurpleBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurpleBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(purpleBanHighlight, new Integer(1));\n\t\tpurpleBanHighlight.setBounds(1014, 29, 245, 168);\n\t\tpurpleBanHighlight.setVisible(false);\n\t}",
"public void onCustomizeActionBar(ActionBar actionBar) {\n actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.pc_main_activity_background_color)));\n actionBar.setDisplayOptions(28);\n ImageView imageView = new ImageView(this);\n imageView.setBackgroundResource(R.drawable.v_setting_icon);\n imageView.setContentDescription(getString(R.string.activity_title_settings));\n imageView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.startWithFragment(NetworkDiagnosticsActivity.this.mActivity, NetworkDiagnosticsSettingFragment.class);\n }\n });\n actionBar.setEndView(imageView);\n }",
"public void setToolbarTitle() {\n Log.i(tag, \"set toolbar title\");\n this.toolbarGroupIcon.animate().alpha(0.0f).setDuration(150).setListener(null);\n this.toolbarTitle.animate().alpha(0.0f).setDuration(150).setListener(new AnimatorListener() {\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getGroupName());\n } else {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getName());\n }\n if (MainActivity.this.toolbarTitle.getLineCount() == 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize);\n } else if (MainActivity.this.toolbarTitle.getLineCount() > 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize - 6.0f);\n }\n MainActivity.this.toolbarTitle.animate().alpha(1.0f).setDuration(150).setListener(null);\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarGroupIcon.setVisibility(0);\n MainActivity.this.toolbarGroupIcon.animate().alpha(1.0f).setDuration(150).setListener(null);\n return;\n }\n MainActivity.this.toolbarGroupIcon.setVisibility(8);\n }\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n });\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }",
"protected void setBreadCrumb() {\n BreadCrumbHolder[] breadCrumbHolders = new BreadCrumbHolder[2];\n\n // common data\n HashMap<String, String> data = new HashMap<String, String>();\n data.put(Constants.User.USER_LOGIN, mUserLogin);\n data.put(Constants.Repository.REPO_NAME, mRepoName);\n\n // User\n BreadCrumbHolder b = new BreadCrumbHolder();\n b.setLabel(mUserLogin);\n b.setTag(Constants.User.USER_LOGIN);\n b.setData(data);\n breadCrumbHolders[0] = b;\n\n // Repo\n b = new BreadCrumbHolder();\n b.setLabel(mRepoName);\n b.setTag(Constants.Repository.REPO_NAME);\n b.setData(data);\n breadCrumbHolders[1] = b;\n\n createBreadcrumb(\"Branches\", breadCrumbHolders);\n }",
"void setParent(WidgetParent ip) {\n this.m_parent = ip;\n }",
"public void setBottoneCoppia(ServiceButton sb) { this.sb = sb; }",
"public SemcProjectCategoryCustomizer() {\n initComponents();\n }",
"public LinkStyleBreadCrumbGui() {\n initComponents();\n }",
"public MainWindowAlt() {\n initComponents();\n //this.getContentPane().setBackground(Color.CYAN);\n }",
"public void setBackgroundImage(BackgroundImage image) {\n this.backgroundImage = image;\n }",
"public void setControl( Control control ) {\n checkWidget();\n if ( control != null ) {\n if ( control.isDisposed() )\n error( SWT.ERROR_INVALID_ARGUMENT );\n if ( control.parent != parent )\n error( SWT.ERROR_INVALID_PARENT );\n }\n this.control = control;\n if ( control != null ) {\n int controlWidth = itemBounds.width - MINIMUM_WIDTH;\n if ( (style & SWT.DROP_DOWN) != 0 && itemBounds.width < preferredWidth ) {\n controlWidth -= CHEVRON_IMAGE_WIDTH + CHEVRON_HORIZONTAL_TRIM\n + CHEVRON_LEFT_MARGIN;\n }\n control.setBounds( parent.fixRectangle( itemBounds.x + MINIMUM_WIDTH,\n itemBounds.y, controlWidth, itemBounds.height ) );\n }\n }"
] | [
"0.68942183",
"0.6796572",
"0.6416135",
"0.62649083",
"0.6181732",
"0.6012554",
"0.591266",
"0.58946115",
"0.58861005",
"0.58027893",
"0.57007766",
"0.5546241",
"0.5477268",
"0.5312726",
"0.5198074",
"0.5191664",
"0.51898074",
"0.5038984",
"0.50290763",
"0.49766612",
"0.49766612",
"0.49467412",
"0.49403045",
"0.49300706",
"0.49190453",
"0.48965004",
"0.48671144",
"0.48290396",
"0.48225215",
"0.4816172",
"0.48104253",
"0.48019022",
"0.47405592",
"0.4732184",
"0.47067264",
"0.46989766",
"0.46801963",
"0.46758685",
"0.46758685",
"0.4675571",
"0.4665086",
"0.4631546",
"0.46293795",
"0.46264157",
"0.46209964",
"0.46165034",
"0.46126476",
"0.45993575",
"0.45985842",
"0.45837468",
"0.45830458",
"0.4580584",
"0.45780843",
"0.4561865",
"0.45612773",
"0.45560396",
"0.45559582",
"0.45528102",
"0.454323",
"0.45347",
"0.4526071",
"0.45242256",
"0.4523109",
"0.45194566",
"0.45160812",
"0.45127976",
"0.4502681",
"0.45014048",
"0.44987",
"0.44847366",
"0.44793606",
"0.44791502",
"0.44779712",
"0.44692028",
"0.4468466",
"0.44656423",
"0.446412",
"0.44634828",
"0.44628158",
"0.44621712",
"0.44611332",
"0.44521436",
"0.44481018",
"0.44480222",
"0.44479144",
"0.44468868",
"0.44463012",
"0.44429263",
"0.44422796",
"0.44409177",
"0.44304055",
"0.44258335",
"0.44202963",
"0.44196936",
"0.44195503",
"0.44125018",
"0.4410625",
"0.4405358",
"0.4401553",
"0.43898416"
] | 0.74840605 | 0 |
Gets the ribbon name. | public String getRibbonName()
{
return ribbonName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public void setRibbonName(String ribbonName)\n\t{\n\t\tthis.ribbonName = ribbonName;\n\t}",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"String getWebhookName();",
"public String getRibbonComponentClass()\n\t{\n\t\treturn ribbonComponentClass;\n\t}",
"public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}",
"public String Name() {\t\t\r\n\t\treturn BrickFinder.getDefault().getName();\r\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}",
"String nameLabel();",
"public String getName() {\n return I18nUtil.getBundle().getString(\"CTL_I18nAction\");\n }",
"protected abstract String _getAddOnName_();",
"String getBrickName();",
"public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}",
"String getMenuName();",
"@Override \r\n\tpublic String getName() {\r\n\t\treturn \"Bazooka\";\r\n\t}",
"public String getName() {\n\t\treturn \"lorann\";\r\n\t}",
"public String getAddOnName()\n {\n return this.__addon;\n }",
"java.lang.String getHangmogName();",
"@Override\n\tpublic String getName() {\n\t\tfinal String name = super.getName();\n\t\ttry {\n\t\t\treturn name.substring(namespace.length()+1);\n\t\t} catch (Exception e) {\n\t\t\treturn name;\n\t\t}\n\t}",
"String getResourceBundleName() {\n return getPackageName() + \".\" + getShortName();\n }",
"@Override\n\tpublic String getName() {\n\t\treturn new File(relativePath).getName();\n\t}",
"public java.lang.String getName();",
"public String getName() {\n\t\treturn MenuString;\n\t}",
"public String getName() {\r\n try {\r\n return PirolPlugInMessages.getString(this.getShortClassName());\r\n } catch (RuntimeException e) {\r\n return super.getName();\r\n }\r\n\r\n }",
"@Nonnull String getName();",
"@Override\n public String getName() {\n return \"Custom - \" + getTitle();\n }",
"public String getName() {\n return Utility.getInstance().getPackageName();\n }",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();"
] | [
"0.767957",
"0.67168635",
"0.6690011",
"0.6660001",
"0.6623118",
"0.6101202",
"0.6087706",
"0.59129506",
"0.59013844",
"0.5864001",
"0.58389556",
"0.57179254",
"0.56822073",
"0.5662749",
"0.56306225",
"0.55950946",
"0.55875826",
"0.55820173",
"0.55492806",
"0.5532059",
"0.5518527",
"0.551551",
"0.5485142",
"0.5463643",
"0.54553074",
"0.5437972",
"0.5429115",
"0.54259074",
"0.5424226",
"0.5421088",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885",
"0.5412885"
] | 0.8415812 | 0 |
Sets the ribbon name. | public void setRibbonName(String ribbonName)
{
this.ribbonName = ribbonName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}",
"public void setRibbonComponent(IRibbonComponent ribbonComponent)\n\t{\n\t\tthis.ribbonComponent = ribbonComponent;\n\t}",
"public void setTheName(String theme){\n\t\tname.setText(theme);\n\t}",
"public void setRibbonToolTipText(String ribbonToolTipText)\n\t{\n\t\tthis.ribbonToolTipText = ribbonToolTipText;\n\t}",
"public void setName() {\r\n\t\tapplianceName = \"Refrigerator\";\r\n\t}",
"void setName(String name_);",
"@Override\r\n public void setName(String name) {\n }",
"@Override\n public void setName(String name) {\n \n }",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }",
"@Override\n\tpublic void setName( final String name )\n\t{\n\t\tsuper.setName( name );\n\t}",
"public void setIconName(String name) {\n\t\tthis.name = name;\n\t\tsetTooltipText();\n\t}",
"public void setName(final String strname) {\n this.action.setValue(this.textBoxname, strname);\n }",
"public void rename(String title) {\n setTitle(title);\n xlList.setChanged();\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\r\n\t\tthis.title = name;\r\n\t}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"public void setRibbonContainer(JRibbonContainer ribbonContainer)\n\t{\n\t\tthis.ribbonContainer = ribbonContainer;\n\t}",
"public void setName(String name) {\n this.name = name;\n this.box.getElement().setAttribute(\"name\", name);\n }",
"@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_lineaGastoCategoria.setName(name);\n\t}",
"LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }",
"@Override \r\n\tpublic String getName() {\r\n\t\treturn \"Bazooka\";\r\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t\tthis.setText(name);\n\t}",
"public void setName(String name)\n {\n if (name == null || DefaultFileHandler.sanitizeFilename(name, getLogger()).isEmpty())\n {\n throw new NullPointerException(\"Custom deployable name cannot be null or empty\");\n }\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n\n }",
"public void setTitle(String title) {\n\t\tborder.setTitle(title);\n\t}",
"public void setName(String rname) {\n name = rname;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tfanChart.setName(name);\n\t}",
"void setStateName(String name);",
"public void setName(AXValue name) {\n this.name = name;\n }",
"public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}",
"public void setName(final String name);",
"public void setName(String newname) {\n name=newname;\n }",
"public void setName(String name) {\n this.name = name;\n setValue(getCompoundValue(), SLOT_NAME, name);\n }",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"public void setName(String newname)\n {\n name = newname;\n \n }",
"public void setCrayon(RibbonCrayon c)\n { this.crayon = c; }",
"public void SetLoginBtn_name(String name) {\r\n\t\tthis.Login_btn.setText(name);\r\n\t\tthis.Login_btn.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"156161\");\r\n\t\t\t}\t\r\n\t\t});\r\n\t}",
"public void setRibbonComponentClass(String ribbonComponentClass)\n\t{\n\t\tthis.ribbonComponentClass = ribbonComponentClass;\n\t}",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"protected void setClassName(String name) {\r\n newName.setText(name);\r\n newName.setSelectionStart(0);\r\n newName.setSelectionStart(name.length());\r\n }",
"private void setRingtoneName(){\n //select default ringtone when there isn't ringtone which chose\n Uri ringtoneUri = getCurrentRingtone();\n Ringtone ringtone = RingtoneManager.getRingtone(this, ringtoneUri);\n mDetailBinding.clockDetails.ringtone.setText(ringtone.getTitle(this));\n }",
"public void setName (String n) {\n name = n;\n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setToolbarTitle() {\n Log.i(tag, \"set toolbar title\");\n this.toolbarGroupIcon.animate().alpha(0.0f).setDuration(150).setListener(null);\n this.toolbarTitle.animate().alpha(0.0f).setDuration(150).setListener(new AnimatorListener() {\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getGroupName());\n } else {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getName());\n }\n if (MainActivity.this.toolbarTitle.getLineCount() == 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize);\n } else if (MainActivity.this.toolbarTitle.getLineCount() > 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize - 6.0f);\n }\n MainActivity.this.toolbarTitle.animate().alpha(1.0f).setDuration(150).setListener(null);\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarGroupIcon.setVisibility(0);\n MainActivity.this.toolbarGroupIcon.animate().alpha(1.0f).setDuration(150).setListener(null);\n return;\n }\n MainActivity.this.toolbarGroupIcon.setVisibility(8);\n }\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n });\n }",
"public void setName(String arg0) {\n\t\t\n\t}",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"public void setName (String n){\n\t\tname = n;\n\t}",
"public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}",
"@Override\n\tprotected void onConfigrationTitleBar() {\n\t\tsetTitleBarTitleText(R.string.shujuxiazai);\n setTitleBarLeftImageButtonImageResource(R.drawable.title_back);\n\t}",
"public final void setName(final ReferenceIdentifier name) {\n this.name = name;\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setStatusName(String statusName);",
"public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}",
"public void setName(QName name)\n {\n this.name = name;\n }",
"void xsetName(org.apache.xmlbeans.XmlString name);",
"void xsetName(org.apache.xmlbeans.XmlString name);",
"public void setName(QName aName)\r\n {\r\n mName = aName;\r\n }",
"@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_scienceApp.setName(name);\n\t}",
"public static void setName(String n){\n\t\tname = n;\n\t}",
"public void setName(String name) {\n setUserProperty(\"ant.project.name\", name);\n this.name = name;\n }",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"public void setName (String name){\n \n boyName = name;\n }",
"public void setName(String name) throws Exception;",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}",
"public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }"
] | [
"0.73120725",
"0.6936388",
"0.6436456",
"0.60622185",
"0.59558105",
"0.585851",
"0.57158226",
"0.5499412",
"0.54928225",
"0.5474529",
"0.5473378",
"0.54551655",
"0.54551655",
"0.5452589",
"0.5436676",
"0.54328275",
"0.5429072",
"0.5426803",
"0.5410936",
"0.540891",
"0.5385451",
"0.53810114",
"0.53488773",
"0.53385407",
"0.53278506",
"0.532213",
"0.5319174",
"0.5310505",
"0.53081226",
"0.52916765",
"0.5283726",
"0.528191",
"0.526632",
"0.52613866",
"0.5260596",
"0.5234651",
"0.5228308",
"0.5222357",
"0.52122134",
"0.52122134",
"0.52122134",
"0.52122134",
"0.52122134",
"0.52122134",
"0.52069855",
"0.51976335",
"0.5197343",
"0.51937777",
"0.5192455",
"0.5192455",
"0.5192455",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5191013",
"0.5188401",
"0.51819235",
"0.5175225",
"0.5173868",
"0.5173426",
"0.51712537",
"0.51609063",
"0.51552093",
"0.5153981",
"0.51526654",
"0.5152284",
"0.51438415",
"0.5137127",
"0.5135028",
"0.51334214",
"0.5126275",
"0.51231855",
"0.51231855",
"0.51205045",
"0.51173574",
"0.5112453",
"0.51120466",
"0.5109677",
"0.5107281",
"0.5103486",
"0.5100393",
"0.5100393",
"0.5100393",
"0.5094694",
"0.5094694",
"0.5094694",
"0.5092813",
"0.5092749",
"0.5090487",
"0.50886846",
"0.50886846",
"0.5085522",
"0.5085522"
] | 0.79223055 | 0 |
Gets the ribbon title. | public String getRibbonTitle()
{
return ribbonTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public String getTitle()\r\n {\r\n return getSemanticObject().getProperty(swb_title);\r\n }",
"public java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"public String getTitle() {\n addParameter(\"title.number\" , iBundle.getString(\"reminderreport.title.date\") );\n\n return iBundle.getString(\"reminderreport.title\");\n }",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"String title();",
"String title();",
"public String getTitle()\n {\n return (this.title);\n }",
"public String getTitle() {\n return getProperty(Property.TITLE);\n }",
"public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}",
"public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}",
"@Override\n public String getTitle() {\n return getName();\n }",
"public String getTitle() {\n\t\t\n\t\tStringBuilder titleBuilder = new StringBuilder();\n\t\ttitleBuilder.append(CorrelatorConfig.AppName);\n\t\ttitleBuilder.append(\" \");\n\n\t\tif (m_activeMap != null) {\n\t\t\ttitleBuilder.append(\"(\" + m_activeMap.getName() + \")\");\t\t\n\t\t}\n\t\t\n\t\t// Stage is where visual parts of JavaFX application are displayed.\n return titleBuilder.toString();\n\t}",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"public String getTitle() {\n \t\treturn getWebDriver().getTitle();\n \t}",
"public String getTitle()\n\t{\n\t\treturn title;\n\t}",
"public String getTitle()\n\t{\n\t\treturn title;\n\t}",
"@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public java.lang.String getTitle()\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(TITLE$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getTitle() {\n \t\treturn title;\n \t}",
"public final String getTitle() {\r\n return config.title;\r\n }",
"public String getTitle() {\n if (getMessages().contains(\"title\")) {\n return message(\"title\");\n }\n return message(MessageUtils.title(getResources().getPageName()));\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:title\")\n public String getTitle() {\n return getProperty(TITLE);\n }",
"public String getTitle()\n {\n return title;\n }",
"public String getTitle()\r\n {\r\n return this.title;\r\n }",
"public String getTitle() {\n\t\treturn this.title;\n\t}",
"public String getTitle() {\n\t\treturn this.title;\n\t}",
"public String getTitle() {\n\t\treturn this.title;\n\t}",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return this.title;\r\n }",
"@NotNull\n String getTitle();",
"public String getTitle() {\n return title;\n }"
] | [
"0.75383854",
"0.7050761",
"0.69377667",
"0.6900699",
"0.684859",
"0.67989",
"0.67989",
"0.67989",
"0.67989",
"0.67989",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.6768755",
"0.67308843",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.6702742",
"0.66497153",
"0.66497153",
"0.6605947",
"0.6576328",
"0.65717787",
"0.656355",
"0.6523687",
"0.6521763",
"0.6501105",
"0.6500107",
"0.64928406",
"0.64928406",
"0.648373",
"0.6483558",
"0.6483558",
"0.6483558",
"0.6483558",
"0.6483558",
"0.6483558",
"0.6483558",
"0.6482764",
"0.6482356",
"0.6480462",
"0.64801896",
"0.64788115",
"0.64611864",
"0.6458929",
"0.6454817",
"0.6454817",
"0.6454817",
"0.64438194",
"0.64438194",
"0.6427355",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6423534",
"0.6411909",
"0.6411909",
"0.6411909",
"0.6411909",
"0.6411909",
"0.6411909",
"0.6411909",
"0.640685",
"0.63983756",
"0.6392843"
] | 0.86838007 | 0 |
Sets the ribbon title. | public void setRibbonTitle(String ribbonTitle)
{
this.ribbonTitle = ribbonTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public void setTitle(String title) {\n\t\tborder.setTitle(title);\n\t}",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(java.lang.String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(java.lang.String title);",
"public void setTitle(String title) {\r\n this.title = title;\r\n impl.setTitle(getElement(),legend, title);\r\n }",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"private void setWindowTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title){\n lblTitle.setText(title);\n }",
"@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }",
"public void setTitle(String title){\n\t\tplot.setTitle(title);\n\t}",
"@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}",
"public void setTitle(String title) { this.title = title; }",
"private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}",
"public void setTitle(String title)\r\n {\r\n frame.setTitle(title);\r\n }",
"public void setTitle(String titleTemplate);",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title){\n \tthis.title = title;\n }",
"@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}",
"protected void setPopUpTitle(String title){\r\n\t\tthis.stage.setTitle(title);\r\n\t}",
"public void setTitle(String title) {\r\n\tthis.title = title;\r\n }",
"public void setTitle (String title) {\n _frame.setTitle(title);\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n _title = title;\r\n }",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\n\tthis.title = title;\n}",
"public void setTitle(String value)\r\n {\r\n getSemanticObject().setProperty(swb_title, value);\r\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle( String title )\n {\n _strTitle = title;\n }",
"public void setTitle(String title){\n this.title = title;\n }",
"public void setTitle(String title){\n\t\tthis.title = title;\n\t}",
"@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}",
"public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}",
"@Override\n public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n\t\tthis.title = title; \n\t}",
"protected abstract void setTitle();",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String aNewTitle) \r\n\t{\r\n\t\tthis.title = aNewTitle;\r\n\t\tthis.panelEnvironment.panelTitleChanged();\r\n\t}",
"public void setTitle(String title) {\n this.title = title;\n }",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_news_Blogs.setTitle(title);\n\t}",
"@Override\r\npublic void setTitle(String title) {\n\tsuper.setTitle(title);\r\n}",
"protected void setTitle(String title) {\n this.title = title;\n }",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_scienceApp.setTitle(title);\n\t}",
"private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }",
"@Override\n\tpublic final native void setTitle(String title) /*-{\n this.title = title;\n\t}-*/;",
"public void setTitle(Title title) {\r\n this.title = title;\r\n }",
"public void setTitle( String title ) {\n\t\t_title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle_(String title_) {\n this.title_ = title_;\n }",
"public void setTitle(String newTitle)\r\n {\r\n title = newTitle;\r\n }",
"public void setTitle(java.lang.String title)\n {\n this.title = title;\n }",
"public void setTitle(String title) {\n mTitle = title;\n }",
"public void setTitle(String title) {\r\n\t\tthis.pictureFrame.setTitle(title);\r\n\t}",
"public void setTitle(String title)\n {\n mTitle = title;\n }",
"public void setTitle(final String title)\n {\n this.title = title;\n }"
] | [
"0.7338014",
"0.7088135",
"0.704331",
"0.704331",
"0.704331",
"0.7017322",
"0.69701093",
"0.69701093",
"0.69701093",
"0.69701093",
"0.69701093",
"0.6958827",
"0.6954002",
"0.69435894",
"0.69300014",
"0.688356",
"0.6849328",
"0.6843631",
"0.6837797",
"0.68050426",
"0.6799595",
"0.6755658",
"0.6748332",
"0.6723467",
"0.6723467",
"0.6707246",
"0.67064744",
"0.6700588",
"0.6699468",
"0.6692799",
"0.66846603",
"0.66846603",
"0.66846603",
"0.668402",
"0.66810375",
"0.66794646",
"0.66794646",
"0.66794646",
"0.66794646",
"0.66794646",
"0.6671767",
"0.6671767",
"0.6666693",
"0.6665524",
"0.66611516",
"0.66611516",
"0.66611516",
"0.66611516",
"0.66573423",
"0.66563314",
"0.66487837",
"0.66454464",
"0.6629069",
"0.6625603",
"0.661763",
"0.6617543",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6608917",
"0.6604125",
"0.6601278",
"0.6599967",
"0.6583316",
"0.65821713",
"0.6579353",
"0.65788436",
"0.65549",
"0.6549275",
"0.6549054",
"0.65474087",
"0.65474087",
"0.65474087",
"0.65474087",
"0.65474087",
"0.65474087",
"0.65474087",
"0.65474087",
"0.65474087",
"0.652293",
"0.65000236",
"0.6498898",
"0.64833844",
"0.6473203",
"0.64546067",
"0.64341325"
] | 0.8215313 | 0 |
Gets the ribbon icon. | public Icon getRibbonIcon()
{
return ribbonIcon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIcon();",
"String getIcon();",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public Icon getIcon();",
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"Icon getIcon();",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"private RLabel getIconLabel() {\n if (iconLabel == null) {\n iconLabel = new RLabel();\n iconLabel.setStyle(\"border-all\");\n iconLabel.setIconUri(\"<%=ivy.cms.cr(\\\"/Icons/Large/error\\\")%>\");\n iconLabel.setStyleProperties(\"{/anchor \\\"NORTHWEST\\\"}\");\n iconLabel.setName(\"iconLabel\");\n }\n return iconLabel;\n }",
"public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"public String iconResource() {\n return \"/org/netbeans/core/resources/actions/addJarArchive.gif\"; // NOI18N\n }",
"public AppIcon getAppIcon () ;",
"public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Cagliero.png\"));\n return retValue;\n }",
"public Image getApplicationIcon() {\n return new javafx.scene.image.Image(this.getClass()\n .getResourceAsStream(DOCKICON));\n }",
"public Icon getIcon()\n {\n return getComponent().getIcon();\n }",
"public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}",
"@NotNull\n SVGResource getIcon();",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }",
"public ImageDescriptor getIcon();",
"public URI getIconUri() {\n return this.iconUri;\n }",
"public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}",
"Icon getMenuIcon();",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public ResourceLocation getIcon() {\n return icon;\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"com.google.protobuf.ByteString\n getIconBytes();",
"com.google.protobuf.ByteString\n getIconBytes();",
"public Icon getTabIcon();",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }",
"private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }",
"@Override\n public Image getIconImage() {\n java.net.URL imgURL = MainWindowAlt.class.getResource(\"images/logo.gif\");\n if (imgURL != null) {\n return new ImageIcon(imgURL).getImage();\n } else {\n return null;\n }\n }",
"public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }",
"public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}",
"public static Image getWinIcon()\n\t{\n\t\treturn winIcon;\n\t}",
"public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }",
"public String getIconString() {\n return theIconStr;\n }",
"@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }",
"@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }",
"@Override\n public String getIconFileName() {\n return BallColor.BLUE.getImage();\n }",
"protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }",
"static public Icon getBackCardIcon()\n {\n iconBack = new ImageIcon(\"images/\" + \"BK.gif\");\n return iconBack;\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }",
"protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }",
"public Icon getIcon() {\n \t\treturn null;\n \t}",
"public String getStatusIcon() {\n return isDone\n ? \"\\u2713\"\n : \"\\u2718\";\n }",
"public Icon getIcon() {\n\t\treturn null;\n\t}",
"public abstract Drawable getIcon();",
"public URL getIcon()\r\n {\r\n\treturn icon;\r\n }",
"public FSIcon getIcon() {\n return icon;\n }",
"@Override\n\tprotected String iconResourceName() {\n\t\treturn \"nkv550.png\";\n\t}",
"public AwesomeIcon icon() {\n\t\treturn icon;\n\t}",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public abstract ImageIcon getButtonIcon();",
"@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}",
"String getIconFile();",
"public byte[] getIcon()\r\n {\r\n return icon;\r\n }",
"public ImageIcon getHeaderIcon();",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }",
"private Icon getSelectedBaseIcon() {\n if( this.jRadioButtonIconMonitor.isSelected() ) return this.iconMonitor;\n if( this.jRadioButtonIconBattery.isSelected() ) return this.iconBattery;\n if( this.jRadioButtonIconSearch.isSelected() ) return this.iconSearch;\n return null;\n }",
"public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}",
"public BufferedImage getTrayiconActive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_ACTIVE);\n }",
"public int getIconId(){\n return mIconId;\n }",
"public abstract ImageDescriptor getIcon();",
"public String getStatusIcon() {\n return (isDone ? \"[X]\" : \"[ ]\");\n }",
"public ImageIcon getLogoIcon(){\n\t\t\n\t\treturn this.icon;\n\t\t\n\t}",
"public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }",
"public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }",
"public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }",
"public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }",
"Icon createIcon();",
"public String getIconUrl() {\n return iconUrl;\n }",
"private String getStatusIcon() {\n return (isDone ? \"+\" : \"-\");\n }",
"public String getIconUrl() {\r\n return iconUrl;\r\n }",
"public BufferedImage getTrayiconNotification() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_NOTIFICATION);\n }",
"public abstract String getIconPath();",
"public String getStatusIcon(){\n return (isDone ? \"\\u2713\" : \"\\u2718\");\n }",
"public BufferedImage getTrayiconInactive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_INACTIVE);\n }",
"public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }",
"@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}",
"public static Icon getToolWindow() {\n\t\tif (ApplicationInfo.getInstance().getBuild().getBaselineVersion() >= 182) {\n\t\t\treturn IconLoader.getIcon(\"/icons/org/antlr/intellij/plugin/toolWindowAntlr.svg\");\n\t\t}\n\n\t\treturn IconLoader.getIcon(\"/icons/org/antlr/intellij/plugin/antlr.png\");\n\t}",
"public RoboticonCustomisation getRoboticon(){\r\n\t\treturn roboticon;\r\n\t}",
"public ImageIcon getImageIcon() {\n return animacion.getImagen();\n }",
"protected String getStatusIcon() {\n return isDone ? \"x\" : \" \";\n }"
] | [
"0.6841435",
"0.6841435",
"0.6810165",
"0.6810165",
"0.67943686",
"0.67735314",
"0.6747718",
"0.67411673",
"0.66704196",
"0.66464365",
"0.6589997",
"0.6589997",
"0.6589997",
"0.6589997",
"0.654092",
"0.65377676",
"0.64817894",
"0.64491165",
"0.6442445",
"0.6440624",
"0.6435339",
"0.64085656",
"0.6400741",
"0.6388248",
"0.63777345",
"0.6366689",
"0.6363815",
"0.6361088",
"0.6347897",
"0.6340835",
"0.62848234",
"0.62848234",
"0.62759453",
"0.6275668",
"0.6275668",
"0.6264243",
"0.6264243",
"0.6259275",
"0.62591434",
"0.62531346",
"0.624854",
"0.6246053",
"0.623714",
"0.62318355",
"0.6217423",
"0.620939",
"0.6206084",
"0.62053794",
"0.6201654",
"0.6184825",
"0.6175843",
"0.6174737",
"0.6163972",
"0.6159993",
"0.61450845",
"0.6128955",
"0.6125585",
"0.6125281",
"0.610024",
"0.6095136",
"0.6082797",
"0.60795826",
"0.6076346",
"0.6076265",
"0.6076138",
"0.6076138",
"0.6074741",
"0.60731405",
"0.6072758",
"0.6061941",
"0.6050203",
"0.60455537",
"0.6044108",
"0.6044108",
"0.6031486",
"0.6014999",
"0.6008505",
"0.5988631",
"0.59879357",
"0.5970111",
"0.5968401",
"0.59677094",
"0.596539",
"0.59625983",
"0.59625983",
"0.59625983",
"0.5960487",
"0.5959722",
"0.59568805",
"0.5952931",
"0.59498763",
"0.5945114",
"0.59416664",
"0.5938441",
"0.5932197",
"0.5907406",
"0.5886425",
"0.5883996",
"0.588096",
"0.58724153"
] | 0.8756072 | 0 |
Sets the ribbon icon. | public void setRibbonIcon(Icon ribbonIcon)
{
this.ribbonIcon = ribbonIcon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"radarlogoIcon.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }",
"private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"../Imagens/icon.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }",
"public void setIcon(Icon icon) {\n\t\t_coolBar.setIcon(icon);\n\t}",
"private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }",
"private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }",
"void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }",
"private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }",
"public void setFrameIcon()\n {\n URL imageURL = HelpWindow.class.getResource(\"/resources/images/frameicon.png\");\n Image img = Toolkit.getDefaultToolkit().getImage(imageURL);\n \n if(imageURL != null)\n {\n ImageIcon icon = new ImageIcon(img);\n super.setIconImage(icon.getImage());//window icon\n }\n }",
"public void setIcon(boolean b){\n \ttry{\n \t\tsuper.setIcon(b);\n \t}\n \tcatch(java.lang.Exception ex){\n \t\tSystem.out.println (ex);\n \t}\n \tif(!b){\n \t\tgetRootPane().setDefaultButton(jButton1);\n \t}\n }",
"private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }",
"public void setMainIcon(IconReference ref);",
"private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }",
"@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}",
"public void setIcon(Image i) {icon = i;}",
"@Override\n public void setIconURI(String arg0)\n {\n \n }",
"public void setActBarConnectIcon(){\n \tif(ConnectIcon == null && BatteryIcon != null)\n \t\treturn;\n \t\n \tif(NetworkModule.IsConnected()==NetworkModule.CONN_CLOSED)\n \t{\n \t\tConnectIcon.setIcon(R.drawable.network_disconnected);\n \t}\n \telse\n \t{\n \t\tConnectIcon.setIcon(R.drawable.network_connected);\n \t}\n }",
"@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}",
"private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }",
"public void changeIcon() {\n\t\t\tint choice = rand.nextInt(list.length);\n\t\t\tString iconName = list[choice].getName();\n\t\t\ticon = new ImageIcon(helpIconBase + File.separator + iconName);\n\t\t\tDimension dim = new Dimension(icon.getIconWidth() * 2, HEIGHT);\n\t\t\tsetPreferredSize(dim);\n\t\t\tsetMinimumSize(dim);\n\t\t}",
"void setIcon(Dialog dialog);",
"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 }",
"private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }",
"public void setIcon(Bitmap icon) {\n\t\tmIcon = icon;\n\t}",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"public void setIconTablaPlantilla() {\n\t\t// Establece el icono del boton editar\n\t\tFile archivo1 = new File(\"imagenes\" + File.separator + \"lapices.png\");\n\t\tImage imagen1 = new Image(archivo1.toURI().toString(), 50, 50, true, true, true);\n\t\tbtnModificar.setGraphic(new ImageView(imagen1));\n\t\tbtnModificar.setContentDisplay(ContentDisplay.CENTER);\n\t}",
"public void setIcon(Icon image)\n {\n getComponent().setIcon(image);\n invalidateSize();\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"public void setRibbonComponent(IRibbonComponent ribbonComponent)\n\t{\n\t\tthis.ribbonComponent = ribbonComponent;\n\t}",
"public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }",
"public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}",
"public void setIcon(String icon) {\n this.icon = icon;\n }",
"public void setIcon(String icon) {\n this.icon = icon;\n }",
"public void setIcone(String icone) {\n this.icone = icone;\n }",
"public void setActBarBatteryIcon(Drawable pic){\n \tif(pic!=null && BatteryIcon!=null)\n \t\tBatteryIcon.setIcon(pic);\n }",
"public void setIcon(FSIcon icon) {\n this.icon = icon;\n }",
"public void setActionIcons(Image close,Image minimize,Image maximize,Image restore){\n if(close!=null){\n Platform.runLater(()-> btnClose.setGraphic(new ImageView(close)));\n }\n if(minimize!=null){\n Platform.runLater(()-> btnMin.setGraphic(new ImageView(minimize)));\n }\n if(maximize!=null){\n Platform.runLater(()-> btnMax.setGraphic(new ImageView(maximize)));\n imgMaximize=maximize;\n }\n if(restore!=null){\n imgRestore=restore;\n }\n }",
"public void setBackArrowIcon() {\n Log.i(tag, \"setBackArrowIcon\");\n this.actionBarDrawerToggle.setHomeAsUpIndicator(this.chevronIcon);\n this.settingsButton.setVisibility(4);\n }",
"private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void setIcons(){\n\t\tfinal List<BufferedImage> icons = new ArrayList<BufferedImage>();\n\t\ttry {\n\t\t\ticons.add(ImageLoader.getBufferedImage(SMALL_ICON_PATH));\n\t\t\ticons.add(ImageLoader.getBufferedImage(BIG_ICON_PATH));\n\t\t} catch (IOException e) {\n\t\t\tmanager.handleException(e);\n\t\t}\n\t\tif(icons.size() > 0)\n\t\t\tsetIconImages(icons);\n\t}",
"public String iconResource() {\n return \"/org/netbeans/core/resources/actions/addJarArchive.gif\"; // NOI18N\n }",
"public JRibbonAction(Icon icon)\n\t{\n\t\tsuper(icon);\n\t}",
"private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}",
"private void initBusyIconTab() {\n /** Set the current selected icon to the JLabelIcon\n */\n this.jLabelIcon.setIcon( getSelectedBusyICon() );\n }",
"private void updateBaseIcon() {\n this.squareIcon.setDecoratedIcon( getSelectedBaseIcon() );\n this.radialIcon.setDecoratedIcon( getSelectedBaseIcon() );\n }",
"public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }",
"public void pushStatusIcon(IconReference ref);",
"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 setIcon(Integer icon) {\n switch (icon) {\n case 0:\n this.icon = Icon.Schutzengel;\n break;\n case 1:\n this.icon = Icon.Person;\n break;\n case 2:\n this.icon = Icon.Institution;\n break;\n case 3:\n this.icon = Icon.Krankenhaus;\n break;\n case 4:\n this.icon = Icon.Polizei;\n break;\n default:\n this.icon = Icon.Feuerwehr;\n break;\n }\n }",
"@SuppressLint(\"NewApi\")\n\tvoid changeIcon()\n\t{\n\n\t\tif (CropImage.isExplicitCameraPermissionRequired(this)) {\n\t\t\trequestPermissions(new String[]{Manifest.permission.CAMERA,Manifest.permission.WRITE_EXTERNAL_STORAGE}, CropImage.CAMERA_CAPTURE_PERMISSIONS_REQUEST_CODE);\n\t\t} else {\n\t\t\tCropImage.startPickImageActivity(this);\n\t\t}\n\n\n\t}",
"public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"private void setIcons() {\n ImageIcon imgProd = new ImageIcon(\"Images/articulos.png\");\n btArticulosReportes.setIcon(imgProd);\n ImageIcon imgTickets = new ImageIcon(\"Images/ticket.png\");\n btTicketsReportes.setIcon(imgTickets);\n ImageIcon imgVentas = new ImageIcon(\"Images/venta.png\");\n btVentasReportes.setIcon(imgVentas);\n ImageIcon imgClientes = new ImageIcon(\"Images/cliente.png\");\n btClientesReportes.setIcon(imgClientes);\n ImageIcon imgProveedores = new ImageIcon(\"Images/proveedor.png\");\n btProveedorReportes.setIcon(imgProveedores);\n ImageIcon imgEmpleados = new ImageIcon(\"Images/empleado.png\");\n btEmpleadosReportes.setIcon(imgEmpleados);\n ImageIcon imgCategorias = new ImageIcon(\"Images/categoria.png\");\n btCategoriaReportes.setIcon(imgCategorias);\n ImageIcon imgPedidos = new ImageIcon(\"Images/pedido.png\");\n btPedidosReportes.setIcon(imgPedidos);\n \n }",
"public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}",
"public void setIconUri(String iconUri, ApplicationConnection client) {\n if (icon != null) {\n captionNode.removeChild(icon.getElement());\n }\n icon = client.getIcon(iconUri);\n if (icon != null) {\n DOM.insertChild(captionNode, icon.getElement(), 0);\n }\n }",
"public void setLogotipo(ImageIcon imagem) {\n jLabelLogotipo.setIcon(imagem);\n }",
"public void setTeachingAvatar(){\n\t\tavatar.setIcon(new ImageIcon(\"img/Asking.png\"));\n\t}",
"public void ConfiguracionIcono(int nNormal, int nFocus)\n {\n // Establecemos los valores de los iconos\n m_nIconoNormal = nNormal;\n m_nIconoFoco = nFocus;\n }",
"private void setFabIcons() {\n\n if (isAddedToFavorites()) {\n mFabButton.setTag(FAV_TAG);\n mFabButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite));\n } else {\n mFabButton.setTag(NOT_FAV_TAG);\n mFabButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_border));\n }\n }",
"public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }",
"public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"public void setIcon (playn.core.Image... icons) {\n assert icons.length > 0;\n List<BufferedImage> images = new ArrayList<BufferedImage>();\n for (playn.core.Image icon : icons) images.add(((JavaImage)icon).bufferedImage());\n _frame.setIconImages(images);\n }",
"@Override\n public void setIcon(boolean iconified) throws PropertyVetoException{\n if ((getParent() == null) && (desktopIcon.getParent() == null)){\n if (speciallyIconified == iconified)\n return;\n\n Boolean oldValue = speciallyIconified ? Boolean.TRUE : Boolean.FALSE; \n Boolean newValue = iconified ? Boolean.TRUE : Boolean.FALSE;\n fireVetoableChange(IS_ICON_PROPERTY, oldValue, newValue);\n\n speciallyIconified = iconified;\n }\n else\n super.setIcon(iconified);\n }",
"private void changeIcon(SingleDocumentModel model) {\n\t\tif (model.isModified()) {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/red.png\"));\n\t\t}else {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/green.png\"));\n\t\t}\n\t}",
"public void loadSkin()\n {\n this.setIcon(new ImageIcon(\n ImageLoader.getImage(ImageLoader.CALL_16x16_ICON)));\n }",
"private void setIcon(final TypedArray typedArray, final int attr) {\n final Drawable drawable = ThemeUtil.getDrawable(this.getContext(), typedArray, attr);\n if (drawable == null) {\n return;\n }\n if (attr == R.styleable.WaypointItem_removingEnabledIcon) {\n setRemoveDrawable(drawable);\n } else if (attr == R.styleable.WaypointItem_draggingEnabledIcon) {\n setDragDrawable(drawable);\n }\n }",
"private void changeCurrentIcon(Icon icon) {\r\n\t\ttabbedPane.setIconAt(tabbedPane.getSelectedIndex(), icon);\r\n\t}",
"private void updateBusyIcon() {\n this.jLabelIcon.setIcon( getSelectedBusyICon() );\n }",
"private void setIcon(String icon, boolean isSmall) {\n org.netbeans.modules.j2ee.dd.api.common.Icon oldIcon = getIcon();\n if (oldIcon==null) {\n if (icon!=null) {\n try {\n org.netbeans.modules.j2ee.dd.api.common.Icon newIcon = (org.netbeans.modules.j2ee.dd.api.common.Icon) createBean(\"Icon\");\n if (isSmall) newIcon.setSmallIcon(icon);\n else newIcon.setLargeIcon(icon);\n setIcon(newIcon);\n } catch(ClassNotFoundException ex){}\n }\n } else {\n if (icon==null) {\n if (isSmall) {\n oldIcon.setSmallIcon(null);\n if (oldIcon.getLargeIcon()==null) setIcon(null);\n } else {\n oldIcon.setLargeIcon(null);\n if (oldIcon.getSmallIcon()==null) setIcon(null);\n }\n } else {\n if (isSmall) oldIcon.setSmallIcon(icon);\n else oldIcon.setLargeIcon(icon);\n }\n } \n }",
"private void setModifiedAndUpdateIcon() {\n document.setModified(true);\n updateTabIcon(document);\n }",
"public void setIconIndex(int value) {\n this.iconIndex = value;\n }",
"public void setIcon(Bitmap icon) {\n mBundle.putParcelable(KEY_ICON, icon);\n }",
"protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = rs.getString(UiActionTable.COLUMN_ICON);\n\t\t\n\t\tif(icon == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setIcon(icon);\n\t}",
"@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void setIconURL(ToolIconURL iconURL) {\n\t\tthis.iconURL = iconURL;\n\t}",
"public final void setIcon(Icon icon) {\r\n if (icon instanceof ImageIcon) {\r\n super.setIcon(new DropDownIcon((ImageIcon) icon));\r\n }\r\n else {\r\n super.setIcon(icon);\r\n }\r\n }",
"public void setStateIcon(Integer stateIcon) {\n this.stateIcon = stateIcon;\n }",
"public static void setIconImage(JFrame frame) {\r\n try {\r\n URL iconURL = frame.getClass().getResource(\"/edu/slu/swingdroid/ui/myimageapp/swingdroidicon.png\");\r\n ImageIcon icon = new ImageIcon(iconURL);\r\n frame.setIconImage(icon.getImage());\r\n } catch (Exception e) {\r\n System.err.println(e);\r\n }\r\n }",
"private void setButtonIcon(JButton button, ImageIcon myIcon1) {\n //button.setBackground(Color.black);\n button.setBorderPainted(false);\n button.setBorder(null);\n button.setFocusable(false);\n button.setMargin(new Insets(0, 0, 0, 0));\n button.setContentAreaFilled(false);\n button.setIcon(myIcon1);\n button.setOpaque(false);\n }",
"public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }",
"public void setUI(RibbonGalleryUI ui) {\n super.setUI(ui);\n }",
"public RendererArbol() {\n setLeafIcon(new ImageIcon(\"src/vista/images/icons8_JSON_15px_2.png\"));\n setOpenIcon(new ImageIcon(\"src/vista/images/icons8_Open_18px.png\"));\n setClosedIcon(new ImageIcon(\"src/vista/images/icons8_Folder_18px.png\"));\n }",
"Icon createIcon();",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"private void initUI()\r\n {\r\n var webIcon = new ImageIcon(\"src/resources/web.png\");\r\n \r\n // The setIconImage() sets the image to be displayed as the icon for this window. the getImage() returns the\r\n // icon's Image.\r\n setIconImage(webIcon.getImage());\r\n \r\n setTitle(\"Icon\");\r\n setSize(300, 200);\r\n setLocationRelativeTo(null);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n }",
"public BenButton(Icon ico) {\n\t\tsuper(ico);\n\t\tsetVisible(true);\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public void placeRoboticon(RoboticonCustomisation roboticonCustomisation) {\r\n\t\tthis.roboticon = roboticonCustomisation;\r\n\t}",
"public void setRibbonName(String ribbonName)\n\t{\n\t\tthis.ribbonName = ribbonName;\n\t}",
"public void setIcon(Button buttonPlayed){\n if(game.getPlayerTurn() == player1){\n buttonPlayed.setBackgroundResource(drawable.o);\n buttonPlayed.setEnabled(false);\n }\n else{\n buttonPlayed.setBackgroundResource(drawable.cross);\n buttonPlayed.setEnabled(false);\n }\n }"
] | [
"0.72901684",
"0.7084995",
"0.7079657",
"0.69865745",
"0.69865745",
"0.6933513",
"0.6854078",
"0.68366313",
"0.68328804",
"0.68251777",
"0.6795741",
"0.67763585",
"0.67393553",
"0.6713211",
"0.66730756",
"0.6666543",
"0.66557324",
"0.66154504",
"0.6544069",
"0.6539335",
"0.6501112",
"0.6488815",
"0.6462676",
"0.64411205",
"0.6328247",
"0.630069",
"0.6292031",
"0.6288267",
"0.62559825",
"0.6254244",
"0.6176297",
"0.61716676",
"0.61124104",
"0.6080361",
"0.6071819",
"0.60405123",
"0.6030852",
"0.6017904",
"0.60125875",
"0.6005775",
"0.5956323",
"0.5937847",
"0.5937847",
"0.59313",
"0.5929372",
"0.5924089",
"0.59208655",
"0.59185714",
"0.5892674",
"0.5892674",
"0.58924794",
"0.5888165",
"0.58749396",
"0.58636075",
"0.58532465",
"0.5832092",
"0.58318365",
"0.5824906",
"0.58224916",
"0.58117515",
"0.579872",
"0.57867223",
"0.57628655",
"0.57614136",
"0.57573426",
"0.5741066",
"0.5714974",
"0.570278",
"0.57025963",
"0.5690694",
"0.56876904",
"0.5685247",
"0.5684831",
"0.5666596",
"0.5665113",
"0.5648175",
"0.564705",
"0.5638412",
"0.5634341",
"0.56313163",
"0.56211984",
"0.5604053",
"0.5602743",
"0.5595742",
"0.55793804",
"0.55729747",
"0.55584157",
"0.55548906",
"0.553191",
"0.5525837",
"0.55246407",
"0.5522581",
"0.5521061",
"0.55065835",
"0.5506007",
"0.5505187",
"0.5502117",
"0.54971325",
"0.54939544",
"0.54904383"
] | 0.83599275 | 0 |
Gets the ribbon tooltip text. | public String getRibbonToolTipText()
{
return ribbonToolTipText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getToolTipText() {\n\t\treturn (toolTipText);\n\t}",
"public String getToolTipText() {\n return this.toString();\n }",
"public String getTabToolTipText();",
"public String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"public String getToolTipText () {\r\n\tcheckWidget();\r\n\treturn toolTipText;\r\n}",
"public String getToolTip() {\n\treturn this.toolTip;\n }",
"public abstract String getToolTip();",
"public String getTooltip() {\n\t\treturn tooltip;\n\t}",
"String getTooltip() {\n return bufTip;\n }",
"@Override\r\n public String getTooltip() {\r\n return TOOLTIP;\r\n }",
"public String getToolTipText() {\n\t\t\treturn fragname.toString();\n\t\t}",
"String getTooltip() {\n return mTooltip;\n }",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"@Override\n public StringTextComponent getTooltip() {\n return this.tooltip;\n }",
"public String getToolTip ()\r\n\t{\r\n\t\tif (!((imageName.equals(\"GND\")) || (imageName.equals(\"VCC\")) || (imageName.equals(\"BOX\")) || (imageName.equals(\"OUTPUT\"))))\r\n\t\t{\r\n\t\t\tthis.toolTip = \"<html><img src=\"+this.imageName+\"></html>\";\r\n\t\t\treturn this.toolTip;\r\n\t\t}\r\n\t\t\r\n\t\telse if (imageName.equals(\"GND\"))\r\n\t\t\treturn \"GND\";\r\n\t\t\r\n\t\telse if (imageName.equals(\"VCC\"))\r\n\t\t\treturn \"VCC\";\r\n\t\t\r\n\t\telse if (imageName.equals(\"OUTPUT\"))\r\n\t\t\treturn \"Output window\";\r\n\t\t\r\n\t\telse\r\n\t\t\treturn \"TODO\";\r\n\t}",
"@Exported(visibility = 999)\n public String getTooltip() {\n return tooltip;\n }",
"@Override\r\n\tpublic String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"@Override\n public String getToolTipText (final MouseEvent mEvent) {\n return getText();\n }",
"public java.lang.String getTip()\n {\n return this.tip;\n }",
"public IFigure getTooltip() {\n return this.tooltip;\n }",
"@Override\n\tpublic String getToolTipText() {\n\t\treturn \"shopEditorToolTipText\";\n\t}",
"@Override\n public String getTooltip()\n {\n return null;\n }",
"@Override\r\n\tpublic String getToolTipText(MouseEvent event) {\r\n return toolTipWriter.write(getToolTipText(), event.getPoint());\r\n }",
"TooltipTextMap getTooltipText() throws SearchServiceException;",
"public TooltipDisplay getTooltipDisplay();",
"public void setRibbonToolTipText(String ribbonToolTipText)\n\t{\n\t\tthis.ribbonToolTipText = ribbonToolTipText;\n\t}",
"public JToolTip getCustomToolTip() {\n // to be overwritten by subclasses\n return null;\n }",
"public String getToolTipText(MouseEvent event) {\n\t\tjava.awt.Point loc = event.getPoint();\n\t\tint row = rowAtPoint(loc);\n\t\tFileTableModel model = (FileTableModel) getModel();\n\t\treturn model.getDescriptions()[row];\n\t}",
"@Nullable\n\tdefault String getTooltip()\n\t{\n\t\treturn null;\n\t}",
"public TooltipOptions getTooltip() {\n return this.tooltip;\n }",
"public String baTipText() {\n return \"Multiplier for count influence of a bag based on the number of its instances.\";\n }",
"public void setTooltipText() { tooltip.setText(name); }",
"default String getTooltip() {\n throw new UnsupportedOperationException();\n }",
"public String getStatusInfoDetailsToolTip() {\r\n return statusInfoTooltip;\r\n }",
"@Override\n public String getToolTipText() {\n return \"Black -- approved; Gray -- rejected; Red -- pending approval\";\n }",
"@Override public String getToolTipText(MouseEvent evt)\n{\n String rslt = null;\n\n int pos = evt.getX();\n int minpos = getX() + 16;\n int maxpos = getX() + getWidth() - 16;\n double relpos = (pos - minpos);\n if (relpos < 0) relpos = 0;\n relpos /= (maxpos - minpos);\n double timer = getMinimum() + relpos * (getMaximum() - getMinimum()) + 0.5;\n long time = (long) timer;\n if (time > getMaximum()) time = getMaximum();\n\n BicexEvaluationContext ctx = for_bubble.getExecution().getCurrentContext();\n if (ctx == null) return null;\n\n BicexValue bv = ctx.getValues().get(\"*LINE*\");\n List<Integer> times = bv.getTimeChanges();\n String line = null;\n for (Integer t : times) {\n if (t <= time) {\n\t line = bv.getStringValue(t+1);\n\t}\n else break;\n }\n if (line != null) rslt = \"Line \" + line;\n\n if (ctx != null) {\n String what = \"In\";\n if (ctx.getInnerContexts() != null) {\n\t for (BicexEvaluationContext sctx : ctx.getInnerContexts()) {\n\t if (sctx.getStartTime() <= time && sctx.getEndTime() >= time) {\n\t ctx = sctx;\n\t what = \"Calling\";\n\t break;\n\t }\n\t }\n }\n if (rslt == null) rslt = what + \" \" + ctx.getMethod();\n else rslt += \" \" + what + \" \" + ctx.getShortName();\n }\n\n return rslt;\n}",
"String getHoverDetail();",
"protected DecoratorString<ARXNode> getTooltipDecorator() {\n return this.tooltipDecorator;\n }",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public String GetButtonText() {\n\t\treturn getWrappedElement().getText();\n\t}",
"@Override\r\n protected String getTooltip()\r\n {\n return \"This name is used as (unique) name for the pattern.\";\r\n }",
"public String getText() {\n int i = tp.indexOfTabComponent(TabButtonComponent.this);\n if (i != -1) {\n return tp.getTitleAt(i);\n }\n return null;\n }",
"public String getLabelText();",
"public String getTooltipDatePattern() {\r\n return calendarTable.getTooltipDatePattern();\r\n }",
"public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }",
"public String getSnackBarText() {\n return snackBar.getText();\n }",
"public String bTipText() {\n return \"Whether to use bag-based statistics for estimates of proportion.\";\n }",
"@RecentlyNullable\n/* */ public CharSequence getTooltipText() {\n/* 1556 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public String generateToolTipFragment(String toolTipText) {\n/* 88 */ return \" onMouseOver=\\\"return stm(['\" + \n/* 89 */ ImageMapUtilities.javascriptEscape(this.title) + \"','\" + \n/* 90 */ ImageMapUtilities.javascriptEscape(toolTipText) + \"'],Style[\" + this.style + \"]);\\\"\" + \" onMouseOut=\\\"return htm();\\\"\";\n/* */ }",
"public String getToolTipText(int series, int item) {\n\n String result = null;\n\n if (series < getListCount()) {\n List tooltips = (List) this.toolTipSeries.get(series);\n if (tooltips != null) {\n if (item < tooltips.size()) {\n result = (String) tooltips.get(item);\n }\n }\n }\n\n return result;\n }",
"@Override\n public String getToolTipText(MouseEvent e)\n {\n Point p = e.getPoint();\n int rowIndex = rowAtPoint(p);\n int colIndex = columnAtPoint(p);\n Object cellData = getValueAt(rowIndex, colIndex);\n\n if (cellData instanceof Color)\n {\n Color color = (Color)cellData;\n return \"RGB Color value: \" + color.getRed() + \", \" + color.getGreen() + \", \" + color.getBlue();\n }\n else\n return cellData.toString();\n }",
"public abstract ITooltipData getTooltipData();",
"public String getHighlightedText() {\n List<WebElement> styleTags = getStyleTags();\n\n return styleTags.stream().map(WebElement::getText).collect(Collectors.joining(\"\\n\"));\n }",
"String getTooltipContent(WebElement field){\n String tooltip = null;\n String tooltipId = field.getAttribute(\"aria-describedby\");\n By tooltipLocator = By.id(tooltipId);\n WebElement tooltipField = driver.findElement(tooltipLocator);\n tooltip = tooltipField.getText();\n System.out.println(\"** tooltip value: \" + tooltip);\n return tooltip;\n }",
"public String getRadioButtonText() {\n\n String radioButtonText=radio.getText();\n System.out.println(radioButtonText );\n\n return radioButtonText;\n }",
"public String getToolTip(int columnIndex) {\n\t\t//@formatter:off\n\t\tList<ColumnConstraintSet<R, ?>> filtered =\n\t\t\tconstraintSets.stream()\n\t\t\t\t.filter(cf -> cf.getColumnModelIndex() == columnIndex)\n\t\t\t\t.collect(Collectors.toList());\n\t\t//@formatter:on\n\n\t\tif (filtered.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn getHtmlRepresentation(filtered);\n\t}",
"public double getTip() {\r\n return tipCalculator.getCalculatedTip();\r\n }",
"private Tooltip generateToolTip(ELesxFunction type) {\n Tooltip tool = new Tooltip();\n StringBuilder text = new StringBuilder();\n if (type == ELesxFunction.PERIOD) {\n text.append(\"Una fecha puede ser invalida por:\\n\")\n .append(\" - Fecha incompleta.\\n\")\n .append(\" - Fecha inicial es posterior a la final.\");\n }\n else {\n text.append(\"La función Suma determina:\\n\")\n .append(\" - Sumatoria total de los precios del recurso seleccionado.\\n\")\n .append(\" - Suma el total de la sumatoria del punto anterior si son varios recursos\\n\")\n .append(\" - Ignora las Fechas de los precios.\");\n }\n tool.setText(text.toString());\n return tool;\n }",
"public XSSFRichTextString getTitleText() {\n\t\tif(! chart.isSetTitle()) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// TODO Do properly\n\t\tCTTitle title = chart.getTitle();\n\n\t\tStringBuffer text = new StringBuffer();\n\t\tXmlObject[] t = title\n\t\t\t.selectPath(\"declare namespace a='\"+XSSFDrawing.NAMESPACE_A+\"' .//a:t\");\n\t\tfor (int m = 0; m < t.length; m++) {\n\t\t\tNodeList kids = t[m].getDomNode().getChildNodes();\n\t\t\tfinal int count = kids.getLength();\n\t\t\tfor (int n = 0; n < count; n++) {\n\t\t\t\tNode kid = kids.item(n);\n\t\t\t\tif (kid instanceof Text) {\n\t\t\t\t\ttext.append(kid.getNodeValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn new XSSFRichTextString(text.toString());\n\t}",
"public String getTip(int tipNo) {\n\t\treturn tips.get(tipNo);\n\t}",
"public int getWingTip() {\n if (arrowhead != null) {\n return arrowhead.getWingTip();\n }\n return 0;\n }",
"public String generateToolTip(XYDataset data, int series, int item) {\n\n return getToolTipText(series, item);\n\n }",
"protected String getToolTip( MouseEvent event )\n {\n SmartText descr = new SmartText();\n int column = treeTable.columnAtPoint( event.getPoint() );\n if ( column == 0 )\n {\n int row = treeTable.rowAtPoint( event.getPoint() );\n if ( row == 0 )\n {\n descr.setText( componentModel.getTypeDescription() );\n }\n else\n {\n Object value = treeTable.getValueAt( row, 1 );\n if ( value instanceof Property )\n {\n Property p = ( Property )value;\n descr.setText( p.getToolTip() );\n }\n }\n\n // perform line wrapping now\n descr.setText( \"<html>\" + descr.insertBreaks( \"<br>\", toolTipWidth, true ) + \"</html>\" );\n return descr.toString();\n }\n return null;\n }",
"public String lTipText() {\n return \"Whether to scale based on the number of instances.\";\n }",
"public String getText() {\n\t\t\t\t\tint i = customTabbed.tabbedPane.indexOfTabComponent(customJTabbedpane.this);\n\t\t\t\t\tif (i != -1)\n\t\t\t\t\t\treturn customTabbed.tabbedPane.getTitleAt(i);\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"public String getQtip() {\n return qtip;\n }",
"public DateFormat getTooltipDateFormat() {\r\n return calendarTable.getTooltipDateFormat();\r\n }",
"void showTooltip();",
"public String kTipText() {\n return \"The value used in the tozero() method.\";\n }",
"@Override\n public String getTeaserTitle() {\n String tt = super.getTeaserTitle();\n if (isBlank(tt)) {\n tt = getTitle();\n }\n return tt;\n }",
"@Nullable\n @OnlyIn(Dist.CLIENT)\n @Override\n public List<String> getAdvancedToolTip(@Nonnull ItemStack stack) {\n return ClientUtils.wrapStringToLength(I18n.format(\"item_cheap_magnet.desc\"), 35);\n }",
"public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}",
"public String getToolTip(ViewEvent anEvent)\n {\n LineMarker<?>[] markers = getMarkers();\n LineMarker<?> marker = ArrayUtils.findMatch(markers, m -> m.contains(_mx, _my));\n return marker != null ? marker.getToolTip() : null;\n }",
"public int getTip() {\n\t\treturn tip;\n\t}",
"public java.lang.String getMsgTip() {\n java.lang.Object ref = msgTip_;\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 msgTip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getAlertText() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn popUp.getText().trim();\n\t}",
"@Override\r\n\tpublic String getToolTipText(MouseEvent e) {\r\n\t\tMCLParticleSet particles = model.getParticles();\r\n\t\tif (particles == null) return null;\r\n\t\t\r\n\t\t// If the mouse is on a article, show its weight\r\n\t\tfloat x = e.getX()/ parent.pixelsPerUnit + viewStart.x;\r\n\t\tfloat y = (getHeight() - e.getY())/ parent.pixelsPerUnit + viewStart.y;\r\n\t\tint i = particles.findClosest(x,y);\r\n\t\tMCLParticle part = particles.getParticle(i);\r\n\t\tPose p = part.getPose(); \r\n\t\tif (Math.abs(p.getX() - x) <= 2f && Math.abs(p.getY() - y) <= 2f) return \"Weight \" + part.getWeight();\r\n\t\telse return null;\r\n\t}",
"protected String getToolTipTextForDate(JaretDate date, Range range) {\n String str;\n if (range == Range.HOUR) {\n str = date.toDisplayString();\n } else {\n str = date.toDisplayStringDate();\n }\n return str;\n }",
"public String evaluatorTipText() {\n\n\t\treturn \"Determines how attributes/attribute subsets are evaluated.\";\n\t}",
"@Override\n\tpublic String getToolTipText() {\n\t\treturn \"Show the clusters\";\n\t}",
"public FakeToolTip getFakeToolTip() {\n\t\treturn fakeToolTip;\n\t}",
"public java.lang.String getTitle();",
"public String getHover() { return (String)get(\"Hover\"); }",
"public ToolTipView getToolTipView() { return _toolTipView; }",
"public java.lang.String getLabel();",
"public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }",
"public SafeHtml getTooltip(C value) {\n return tooltipFallback;\n }",
"public String get_ButtomBarAlertmsg_txt() {\r\n\t\tWebElement alrtmsg = driver.findElementByAccessibilityId(\"displayMessageTextBlock\");\r\n\t\treturn FetchText(alrtmsg);\r\n\t}",
"public java.lang.String getMsgTip() {\n java.lang.Object ref = msgTip_;\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 msgTip_ = s;\n return s;\n }\n }",
"public String toString() {\r\n\t\treturn getTitle();\r\n\t}",
"public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }",
"public abstract String getRightButtonText();",
"java.lang.String getLabel();",
"public abstract String getLabelText();",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:title\")\n public String getTitle() {\n return getProperty(TITLE);\n }",
"public String getTitle()\r\n {\r\n return getSemanticObject().getProperty(swb_title);\r\n }",
"public void editToolTip() {\r\n\t\tString expectedTooltip = \"Edit\";\r\n\t\tWebElement editTooltip = driver.findElement(By.cssSelector(\".ant-btn.ant-btn-primary.ant-btn-circle\"));\r\n\t\tActions actions = new Actions(driver);\r\n\t\tactions.moveToElement(editTooltip).perform();\r\n\t\tWebElement toolTipElement = driver.findElement(By.cssSelector(\"div[role='tooltip']\"));\r\n\t\tneedToWait(2);\r\n\t\tString actualTooltip = toolTipElement.getText();\r\n\t\tSystem.out.println(\"Actual Title of Tool Tip +++++++++\" + actualTooltip);\r\n\t\tAssert.assertEquals(actualTooltip, expectedTooltip);\r\n\t}",
"public String getTitle()\n {\n return (this.title);\n }",
"public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }"
] | [
"0.7725173",
"0.7400878",
"0.715542",
"0.70083207",
"0.69683594",
"0.69370383",
"0.69324195",
"0.69024086",
"0.6889303",
"0.68820983",
"0.6874884",
"0.6798826",
"0.6776451",
"0.6724905",
"0.67138135",
"0.6710067",
"0.6690862",
"0.66013014",
"0.6534605",
"0.6474246",
"0.6450859",
"0.63833964",
"0.63749903",
"0.63726777",
"0.63476837",
"0.62980086",
"0.62550956",
"0.6224331",
"0.6167847",
"0.6107435",
"0.61048394",
"0.61004764",
"0.6096308",
"0.60712606",
"0.60214084",
"0.6012485",
"0.59800625",
"0.59696746",
"0.5948972",
"0.5941553",
"0.59415114",
"0.59415084",
"0.5905613",
"0.5872277",
"0.5867418",
"0.58640444",
"0.584581",
"0.5833104",
"0.5828801",
"0.5822779",
"0.58216655",
"0.58215195",
"0.58197105",
"0.5765753",
"0.5759151",
"0.5753497",
"0.57315165",
"0.5714676",
"0.5700182",
"0.56865716",
"0.56694514",
"0.566864",
"0.5667216",
"0.5665323",
"0.565135",
"0.5645822",
"0.5618583",
"0.5617281",
"0.56132144",
"0.5609855",
"0.55897564",
"0.55879116",
"0.55856633",
"0.5557649",
"0.5557155",
"0.55491227",
"0.5548284",
"0.554525",
"0.55446994",
"0.5540283",
"0.5535972",
"0.55313134",
"0.55290437",
"0.55263335",
"0.55232394",
"0.550965",
"0.55076957",
"0.55012393",
"0.54750466",
"0.5470087",
"0.5461011",
"0.54517084",
"0.54400307",
"0.54349935",
"0.5431099",
"0.54254264",
"0.5412005",
"0.540472",
"0.5404207",
"0.53969485"
] | 0.86949456 | 0 |
Sets the ribbon tooltip text. | public void setRibbonToolTipText(String ribbonToolTipText)
{
this.ribbonToolTipText = ribbonToolTipText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTooltipText() { tooltip.setText(name); }",
"public void setToolTipText(String text)\n/* */ {\n/* 227 */ putClientProperty(\"ToolTipText\", text);\n/* */ }",
"public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"@Override\n public void setTooltip(String arg0)\n {\n \n }",
"@Override\n\tpublic void setToolTip(String tooltip) {\n\t\t\n\t}",
"protected void setToolTip(String toolTip) {\n\tthis.toolTip = toolTip;\n }",
"public static String setToolTipText(String text) {\n\t\tString oldTip = toolTipText;\n\t\ttoolTipText = text;\n\t\treturn (oldTip);\n\t}",
"private void setTooltip() {\n\t\tif (buttonAddScannable != null && !buttonAddScannable.isDisposed()) {\n\t\t\tgetParentShell().getDisplay().asyncExec(() -> buttonAddScannable.setToolTipText(\"Select scannable to add to list...\"));\n\t\t}\n\t}",
"protected void setToolTipText(Tile tile) {\n\t\tif(!peek && hidden) { tile.setToolTipText(\"concealed tile\"); }\n\t\telse {\n\t\t\tString addendum = \"\";\n\t\t\tif(playerpanel.getPlayer().getType()==Player.HUMAN) { addendum = \" - click to discard during your turn\"; }\n\t\t\ttile.setToolTipText(tile.getTileName()+ addendum); }}",
"public void setTooltip(TooltipOptions tooltip) {\n this.tooltip = tooltip;\n }",
"public void setToolTipText(String text, int index) {\n\t\tObject obj = getModel().getElementAt(index);\n\n\t\tif (obj instanceof IToolTipItem) {\n\t\t\t((IToolTipItem) obj).setToolTipText(text);\n\t\t}\n\t}",
"public void setTooltip(IFigure tooltip) {\n hasCustomTooltip = true;\n this.tooltip = tooltip;\n updateFigureForModel(nodeFigure);\n }",
"public void setToolTip (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}",
"void setAvatarClickText(String title);",
"void showTooltip();",
"public JRibbonAction(String text, String toolTipText)\n\t{\n\t\tsuper(text, toolTipText);\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public void setArrowTooltip(String arrowTooltip) {\r\r\n\t\tthis.arrowTooltip = arrowTooltip;\r\r\n\t}",
"public abstract void setTooltipData(ITooltipData data);",
"public X tooltipText(String text) {\n component.setToolTipText(text);\n return (X) this;\n }",
"public void editToolTip() {\r\n\t\tString expectedTooltip = \"Edit\";\r\n\t\tWebElement editTooltip = driver.findElement(By.cssSelector(\".ant-btn.ant-btn-primary.ant-btn-circle\"));\r\n\t\tActions actions = new Actions(driver);\r\n\t\tactions.moveToElement(editTooltip).perform();\r\n\t\tWebElement toolTipElement = driver.findElement(By.cssSelector(\"div[role='tooltip']\"));\r\n\t\tneedToWait(2);\r\n\t\tString actualTooltip = toolTipElement.getText();\r\n\t\tSystem.out.println(\"Actual Title of Tool Tip +++++++++\" + actualTooltip);\r\n\t\tAssert.assertEquals(actualTooltip, expectedTooltip);\r\n\t}",
"@Override\r\n public String getTooltip() {\r\n return TOOLTIP;\r\n }",
"default void setTooltip(@Nullable String tooltip) {}",
"public JRibbonAction(String name, String text, String toolTipText)\n\t{\n\t\tsuper(name, text, toolTipText);\n\t}",
"void setEvaluateClickText(String title);",
"protected void setToolTipErrorMessage() {\n\t\tString toolTipErrorMessage = null;\n\t\tsetToolTipMessage(toolTipErrorMessage);\n\t}",
"public void setLabelText(String text);",
"public static String getToolTipText() {\n\t\treturn (toolTipText);\n\t}",
"@Override\r\n\tpublic String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"public void setTitle(String text) {\n title.setText(text);\n }",
"public String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"public void setTooltipDisplay(TooltipDisplay tooltipDisplay);",
"public static void setTooltip(final @NonNull Control control, final @NonNull String message) {\n Objects.requireNonNull(control);\n Objects.requireNonNull(message);\n\n if (message.isEmpty()) {\n throw new IllegalArgumentException(\"The message cannot be empty.\");\n }\n\n control.setTooltip(new Tooltip(message));\n }",
"public JRibbonAction(String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(text, icon, toolTipText);\n\t}",
"public abstract String getToolTip();",
"public void setTitlePopup(String t) {\n/* 147 */ getCOSObject().setString(COSName.T, t);\n/* */ }",
"@Override\n\tpublic String getToolTipText() {\n\t\treturn \"shopEditorToolTipText\";\n\t}",
"public void setTooltipText(@RecentlyNullable CharSequence tooltipText) {\n/* 1572 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setTip(java.lang.String tip)\n {\n this.tip = tip;\n }",
"public String getToolTipText() {\n return this.toString();\n }",
"public void setTitle(String title){\n\t\tplot.setTitle(title);\n\t}",
"public String getToolTipText () {\r\n\tcheckWidget();\r\n\treturn toolTipText;\r\n}",
"public Builder setMsgTip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n msgTip_ = value;\n onChanged();\n return this;\n }",
"public JRibbonAction(String name, String text, Icon icon, String toolTipText)\n\t{\n\t\tsuper(name, text, icon, toolTipText);\n\t}",
"public void setTitle(String t)\n {\n title = t;\n }",
"@Override\n public String getTooltip()\n {\n return null;\n }",
"@Override\n\tpublic void setCustomTip(boolean isCustomTip) {\n\t\t\n\t}",
"public JRibbonAction(Icon icon, String toolTipText)\n\t{\n\t\tsuper(icon, toolTipText);\n\t}",
"public void setTitle(String titleTemplate);",
"public void setTitleText(String txt) {\n if (title != null)\n title.setText(txt);\n if (editor != null)\n editor.title.setText(txt);\n }",
"public String getTabToolTipText();",
"@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}",
"@Override\n public String getToolTipText() {\n return \"Black -- approved; Gray -- rejected; Red -- pending approval\";\n }",
"public void setTitle(String title){\n lblTitle.setText(title);\n }",
"private void setToolTips() {\n \t// set tool tips\n Tooltip startTip, stopTip, filterTip, listViewTip, viewAllTip, viewInfoTip, removeTip, editRuleFileTip, editRulePathTip;\n startTip = new Tooltip(ToolTips.getStarttip());\n stopTip = new Tooltip(ToolTips.getStoptip());\n filterTip = new Tooltip(ToolTips.getFiltertip());\n listViewTip = new Tooltip(ToolTips.getListviewtip());\n viewAllTip = new Tooltip(ToolTips.getViewalltip());\n viewInfoTip = new Tooltip(ToolTips.getViewinfotip());\t\n removeTip = new Tooltip(ToolTips.getRemovetip());\n editRuleFileTip = new Tooltip(ToolTips.getEditrulefiletip());\n editRulePathTip = new Tooltip(ToolTips.getEditrulepathtip());\n \n startButton.setTooltip(startTip);\n stopButton.setTooltip(stopTip);\n filterButton.setTooltip(filterTip);\n unseenPacketList.setTooltip(listViewTip);\n viewAll.setTooltip(viewAllTip);\n viewInformation.setTooltip(viewInfoTip);\n removeButton.setTooltip(removeTip);\n editRuleFileButton.setTooltip(editRuleFileTip);\n editRuleFilePath.setTooltip(editRulePathTip);\n }",
"@Override\n public StringTextComponent getTooltip() {\n return this.tooltip;\n }",
"public void setPositionToolTipEnabled(boolean b) {\n enablePositionTooltip = b;\r\n }",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(String title);",
"private void updateSystemTrayToolTip()\n {\n if (OSUtil.IS_LINUX)\n this.systemTray.setToolTip(\"SFR WiFi Public : Connecté\");\n else\n this.systemTray.setToolTip(FrmMainController.APP_NAME + \" \" + FrmMainController.APP_VERSION + FrmMainController.LINE_SEPARATOR + \"SFR WiFi Public : Connecté\");\n }",
"public void setEditButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_editButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setEditButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void setTitle(String title) {\r\n this.title = title;\r\n impl.setTitle(getElement(),legend, title);\r\n }",
"private void changeToolTip(SingleDocumentModel model) {\n\t\tsetToolTipTextAt(models.indexOf(model), model.getFilePath().toString());\n\t}",
"@Override\r\n\tpublic DTextArea setHtmlTitle(final String title) {\r\n\t\tsuper.setHtmlTitle(title) ;\r\n\t\treturn this ;\r\n\t}",
"private void setToolTip(ARXProcessStatistics stats) {\n\n // Prepare\n double prunedPercentage = new BigDecimal(stats.getTransformationsAvailable())\n .subtract(BigDecimal.valueOf(stats.getTransformationsChecked()))\n .divide(new BigDecimal(stats.getTransformationsAvailable()), 1000, RoundingMode.HALF_UP)\n .multiply(BigDecimal.valueOf(100)).doubleValue();\n \n // Render statistics about the solution space\n StringBuilder sb = new StringBuilder();\n sb.append(Resources.getMessage(\"MainToolBar.1\")); //$NON-NLS-1$\n sb.append(Resources.getMessage(\"MainToolBar.2\")) //$NON-NLS-1$\n .append(stats.getTransformationsAvailable())\n .append(\"\\n\"); //$NON-NLS-1$\n \n sb.append(Resources.getMessage(\"MainToolBar.12\")) //$NON-NLS-1$\n .append(stats.getTransformationsAvailable().subtract(BigInteger.valueOf(stats.getTransformationsChecked())).toString());\n sb.append(\" [\") //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(prunedPercentage))\n .append(\"%]\\n\"); //$NON-NLS-1$\n \n sb.append(Resources.getMessage(\"MainToolBar.18\")) //$NON-NLS-1$\n .append(SWTUtil.getPrettyString((double)stats.getDuration() / 1000d))\n .append(\"s\\n\"); //$NON-NLS-1$\n \n // Render information about the selected transformation\n if (stats.isSolutationAvailable()) {\n \n // Global transformation scheme\n if (!stats.isLocalTransformation()) {\n sb.append(Resources.getMessage(\"MainToolBar.36\")) //$NON-NLS-1$\n .append(Resources.getMessage(\"MainToolBar.39\")) //$NON-NLS-1$\n .append(stats.getStep(0).isOptimal() ? SWTUtil.getPrettyString(true) : Resources.getMessage(\"MainToolBar.72\"))\n .append(Resources.getMessage(\"MainToolBar.37\")) //$NON-NLS-1$\n .append(Arrays.toString(stats.getStep(0).getTransformation()));\n sb.append(Resources.getMessage(\"MainToolBar.38\")) //$NON-NLS-1$\n .append(stats.getStep(0).getScore().toString());\n for (QualityMetadata<?> metadata : stats.getStep(0).getMetadata()) {\n sb.append(\"\\n - \") //$NON-NLS-1$\n .append(metadata.getParameter()).append(\": \") //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(metadata.getValue()));\n }\n \n // Complex transformation\n } else {\n sb.append(Resources.getMessage(\"MainToolBar.36\")) //$NON-NLS-1$\n .append(Resources.getMessage(\"MainToolBar.70\")) //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(stats.getNumberOfSteps()))\n .append(Resources.getMessage(\"MainToolBar.39\")) //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(false));\n }\n \n // No solution found\n } else {\n sb.append(Resources.getMessage(\"MainToolBar.71\")); //$NON-NLS-1$\n }\n \n this.tooltip = sb.toString();\n this.labelSelected.setToolTipText(tooltip);\n this.labelApplied.setToolTipText(tooltip);\n this.labelTransformations.setToolTipText(tooltip);\n }",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"@Override\n public void setPriorityText(int textResId) {\n btnPrioritySet.setText(getText(textResId));\n }",
"public void setButtonText(String str){\r\n SWINGButton.setText(str);\r\n }",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public String getToolTip() {\n\treturn this.toolTip;\n }",
"@Override\n public void setText(String promptText) {\n super.setText(promptText); \n if (promptText != null) {\n ResizeUtils.updateSize(this, actions);\n }\n }",
"public void setTitle(java.lang.String title);",
"private void setAllToolTip() {\n\t\tDeviceSettingsController.setAllToolTip(tooltipAndErrorProperties, deviceName.getText(), vendorId, productId,\n\t\t\t\tmanufacture, productString, autoGenerateSerialNumber, serialNumber, serialNumberIncrement,\n\t\t\t\tenableRemoteWakeup, powerConfiguration, Endpoint_1, fifoBusWidth, fifoClockFrequency, enableDebugLevel,\n\t\t\t\tdebugValue, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, interFaceType, uvcVersion,\n\t\t\t\tuvcHeaderAddition, enableFPGA, fpgaFamily, browseBitFile, i2cSlaveAddress, deviceSttingFirmWare,\n\t\t\t\tdeviceSttingI2CFrequency);\n\t}",
"public void setlbPullTitleText(String s) {\n\t\tthis.lbPullTitle.setText(s);\n\t}",
"private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}",
"public void setToolTipProvider(ToolTipProvider provider) {\n mToolTipProvider = provider;\n setToolTipText(mToolTipProvider == null ? null : \"\");\n }",
"public void setTitle(String value) {\n/* 337 */ setTitle((String)null, value);\n/* */ }",
"@Override\r\n protected String getTooltip()\r\n {\n return \"This name is used as (unique) name for the pattern.\";\r\n }",
"public String getTooltip() {\n\t\treturn tooltip;\n\t}",
"String getTooltip() {\n return mTooltip;\n }",
"protected abstract void setTitle();",
"public void setBadgeText(String value) {\n bubbleToggleItem.setBadgeText(value);\n updateBadge(getContext());\n }",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}",
"void setTopLabelText(String text) {\n topLabel.setText(text);\n }",
"public ToolTips (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}",
"void setTitle(java.lang.String title);",
"public void setTitle(String lang, String value) {\n/* 346 */ setLangAlt(\"title\", lang, value);\n/* */ }",
"public void setShowToolTip( boolean showToolTip )\n {\n this.showToolTip = showToolTip;\n }",
"public void setTitle(String value)\r\n {\r\n getSemanticObject().setProperty(swb_title, value);\r\n }",
"public void createToolTip(View view, Tooltip.Gravity gravity, String text){\n Tooltip.make(getContext(),\n new Tooltip.Builder(101)\n .anchor(view, gravity)\n .closePolicy(new Tooltip.ClosePolicy()\n .insidePolicy(true, false)\n .outsidePolicy(true, false), 3000)\n .activateDelay(800)\n .showDelay(300)\n .text(text)\n .maxWidth(700)\n .withArrow(true)\n .withOverlay(true)\n .withStyleId(R.style.ToolTipLayoutCustomStyle)\n .floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)\n .build()\n ).show();\n }",
"public String baTipText() {\n return \"Multiplier for count influence of a bag based on the number of its instances.\";\n }",
"public void createToolTip(View view, Tooltip.Gravity gravity, String text){\n Tooltip.make(this,\n new Tooltip.Builder(101)\n .anchor(view, gravity)\n .closePolicy(new Tooltip.ClosePolicy()\n .insidePolicy(true, false)\n .outsidePolicy(true, false), 3000)\n .activateDelay(800)\n .showDelay(300)\n .text(text)\n .maxWidth(700)\n .withArrow(true)\n .withOverlay(true)\n .withStyleId(R.style.ToolTipLayoutCustomStyle)\n .floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)\n .build()\n ).show();\n }",
"public void setNewButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_newButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setNewButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }"
] | [
"0.76772887",
"0.7099727",
"0.7027581",
"0.68993026",
"0.6767136",
"0.67309636",
"0.66703314",
"0.6634538",
"0.654951",
"0.641829",
"0.6294997",
"0.6133955",
"0.6128006",
"0.6127059",
"0.60731924",
"0.6045531",
"0.6026323",
"0.59993935",
"0.59951967",
"0.5965493",
"0.59356326",
"0.58394307",
"0.5806009",
"0.5804228",
"0.58027124",
"0.57831466",
"0.5763768",
"0.5758989",
"0.57476354",
"0.5736394",
"0.5722163",
"0.5708259",
"0.56797224",
"0.56440395",
"0.562284",
"0.56187516",
"0.56036174",
"0.5594657",
"0.55842",
"0.5564969",
"0.5532716",
"0.55248004",
"0.55237496",
"0.5469525",
"0.5469377",
"0.54650635",
"0.54542124",
"0.54460037",
"0.5441784",
"0.54412276",
"0.5437719",
"0.5433398",
"0.54244983",
"0.5384317",
"0.5383812",
"0.53745645",
"0.53471726",
"0.5321517",
"0.53199613",
"0.53199613",
"0.53199613",
"0.53101397",
"0.5305433",
"0.53027576",
"0.5297648",
"0.52873623",
"0.52829546",
"0.52787197",
"0.52787197",
"0.52787197",
"0.52787197",
"0.52787197",
"0.5278386",
"0.5277616",
"0.5277199",
"0.52731687",
"0.52679116",
"0.5247895",
"0.5238722",
"0.52367616",
"0.523622",
"0.52354395",
"0.5232655",
"0.52323025",
"0.5231073",
"0.52282155",
"0.521494",
"0.52062184",
"0.5202178",
"0.51944304",
"0.51866674",
"0.5186583",
"0.5181439",
"0.51755315",
"0.5172372",
"0.517205",
"0.51705915",
"0.51699173",
"0.5168806",
"0.516494"
] | 0.81568056 | 0 |
Gets the ribbon component class. | public String getRibbonComponentClass()
{
return ribbonComponentClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public void setRibbonComponentClass(String ribbonComponentClass)\n\t{\n\t\tthis.ribbonComponentClass = ribbonComponentClass;\n\t}",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public RibbonGalleryUI getUI() {\n return (RibbonGalleryUI) ui;\n }",
"String getClassName();",
"String getClassName();",
"String getClassName();",
"@Override\n public String getName() {\n return REACT_CLASS;\n }",
"public String getClassName();",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"public String getClassName() {\n return super.getClassName();\n }",
"@Override\n public String getUIClassID() {\n return uiClassID;\n }",
"protected Content getNavLinkClass() {\n Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, classLabel);\n return li;\n }",
"protected String xCB() { return ScheduledJobCB.class.getName(); }",
"public String getClassName() {\n\t\tString tmp = methodBase();\n\t\treturn tmp.substring(0, 1).toUpperCase()+tmp.substring(1);\n\t}",
"public static java.lang.String getBeanClassName() {\n\treturn \"ch.ehi.umlEdit.application.LogView\";\n}",
"@Override\n public String getUIClassID()\n {\n return uiClassID;\n }",
"java.lang.String getClassName();",
"String getComponentName();",
"String getComponentName();",
"public String getBaseClass() {\n\t\treturn _baseClass;\n\t}",
"public String getUIClassID() {\n return uiClassID;\n }",
"private String getLookAndFeelClassName(String nimbus) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public String getClassName()\n {\n return _className;\n }",
"public String getBaseCls () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.baseCls);\r\n\t}",
"public void setRibbonComponent(IRibbonComponent ribbonComponent)\n\t{\n\t\tthis.ribbonComponent = ribbonComponent;\n\t}",
"public String getBusyIconCls() {\n\t\tif (null != this.busyIconCls) {\n\t\t\treturn this.busyIconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"busyIconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getResourceClassName()\r\n {\r\n return getSemanticObject().getProperty(swb_resourceClassName);\r\n }",
"public String getActiveClass () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.activeClass);\r\n\t}",
"public String getBaseClassName() {\n return className;\n }",
"public String getClassName()\n {\n return this.className;\n }",
"C getGlassPane();",
"public JLabel getStatusbarLabel()\r\n {\r\n return lbStatusbar;\r\n }",
"private Resource getOntClass(Object bean) {\r\n\t\treturn ontClass(bean).addProperty(javaclass, bean.getClass().getName());\r\n\t}",
"public Class getBaseClass();",
"String getClassName() {\n return this.className;\n }",
"public String getClassName () { return _className; }",
"public String getClassName() {\n return this.className;\n }",
"public String getClassName() {\n return this.className;\n }",
"String getLauncherClassName();",
"public String getCurrentClassName () {\n String currentClass = getCurrentElement(ElementKind.CLASS);\n if (currentClass == null) return \"\";\n else return currentClass;\n }",
"public JComponent getWidget() {\n return itsComp;\n }",
"@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"final public String getStyleClass()\n {\n return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));\n }",
"public String getThemeClassName() {\n // look-and-feel user setting\n if (Builder.isMAC) {\n return defThemeClass;\n }\n String currentTheme = (String) data[GENERAL_THEME][PROP_VAL_VALUE];\n for (int j = 0; j < themes.size(); j++) {\n if (currentTheme.equals(themes.get(j)))\n idxTheme = j;\n }\n return themeClassNames.get(idxTheme);\n }",
"public String getClassName()\n {\n return className;\n }",
"@Override\n protected String getClassName() {\n return HcrAllocationController.class.getName();\n }",
"public String getElementClass ();",
"public String getClassName() {\n return className;\n }",
"protected String getDivClassName() {\n\t\treturn getDocPart().getName();\n\t}",
"default String getClassName() {\n return declaringType().getClassName();\n }",
"public String getClassName() { return className; }",
"public Class<?> getBaseClass()\n {\n return baseClass;\n }",
"private static String getStyleClass(Object obj) { return ((MetaData)obj).getStyle(); }",
"public Class<? extends T> getUIBeanClass() {\r\n\t\tif (null == uiBeanClass && null == getEntityMetaModel())\r\n\t\t\treturn null;\r\n\t\treturn null == uiBeanClass ? entityMetaModel.getUIBeanClass() : uiBeanClass;\r\n\t}",
"@Override\n\tpublic String getStyleClass() {\n\n\t\t// getStateHelper().eval(PropertyKeys.styleClass, null) is called because\n\t\t// super.getStyleClass() may return the styleClass name of the super class.\n\t\tString styleClass = (String) getStateHelper().eval(PropertyKeys.styleClass, null);\n\n\t\treturn com.liferay.faces.util.component.ComponentUtil.concatCssClasses(styleClass, \"showcase-output-source-code\", \"prettyprint linenums\");\n\t}",
"@Override\n\tpublic String getClassName() {\n\t\treturn _changesetEntry.getClassName();\n\t}",
"String componentTypeName();",
"String getViewClass();",
"public ch.crif_online.www.webservices.crifsoapservice.v1_00.RiskClass.Enum getRiskClass()\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(RISKCLASS$0, 0);\n if (target == null)\n {\n return null;\n }\n return (ch.crif_online.www.webservices.crifsoapservice.v1_00.RiskClass.Enum)target.getEnumValue();\n }\n }",
"public BCClass getSuperClass() {\n\t\tif (superClass != null) {\n\t\t\treturn superClass;\n\t\t}\n\t\tsuperClass = JavaApplication.Application.getClass(superClassName);\n\t\treturn superClass;\n\t}",
"public String getClassName() {\r\n return className;\r\n }",
"public String getClassName(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? null : getClassName(TitleBuilder.byHandle(hWnd));\n\t}",
"public void setCrayon(RibbonCrayon c)\n { this.crayon = c; }",
"public static String getClassName() {\n return CLASS_NAME;\n }",
"public String getClazz();",
"public String getCssClass() {\n\t\t\treturn cssClass;\n\t\t}",
"public String getClassName() {\n return className;\n }",
"public String getClassName() {\n return className;\n }",
"public String getClassName() {\n return className;\n }",
"public String getClassName() {\n return className;\n }",
"public String getClassName() {\n return className;\n }",
"public String getClassName() {\n return className;\n }",
"public abstract String getClassName();",
"public RCP getRCP() {\n return getTyped(\"RCP\", RCP.class);\n }",
"public String getUIClassID() {\n/* 409 */ return \"ScrollPaneUI\";\n/* */ }",
"public String getStyleClass() {\r\n return Util.getQualifiedStyleClass(this,\r\n styleClass, \r\n CSS_DEFAULT.OUTPUT_CHART_DEFAULT_STYLE_CLASS,\r\n \"styleClass\");\r\n }",
"public String getClazzName();",
"String getClazz();",
"private RComboBox getComboBox() {\n\tif (ComboBox == null) {\n\t\tComboBox = new RComboBox();\n\t\tComboBox.setName(\"ComboBox\");\n\t\tComboBox.setModelConfiguration(\"{/result \\\"\\\"/version \\\"3.0\\\"/icon \\\"\\\"/tooltip \\\"\\\"}\");\n\t}\n\treturn ComboBox;\n}",
"protected String xCB() { return BuriPathCB.class.getName(); }",
"public String getClassname() {\n return classname;\n }",
"protected String xCB() { return WhiteStilettoAliasRefCB.class.getName(); }",
"public static ResourceBundle getRB() {\r\n return rb;\r\n }",
"private BButton getBtnCancel() {\r\n\t\tif (btnCancel == null) {\r\n\t\t\tbtnCancel = new BButton();\r\n\t\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\tbtnCancel.setPreferredSize(new Dimension(100, 29));\r\n\t\t}\r\n\t\treturn btnCancel;\r\n\t}",
"private javax.swing.JButton getJButtonCancelar() {\n\t\tif(jButtonCancelar == null) {\n\t\t\tjButtonCancelar = new JHighlightButton();\n\t\t\tjButtonCancelar.setText(\"Cancelar\");\n\t\t\tjButtonCancelar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/delete2.png\")));\n\t\t}\n\t\treturn jButtonCancelar;\n\t}",
"public Component getTabComponent();",
"java.lang.String getClass_();",
"java.lang.String getClass_();",
"@Override\n\tpublic String getClassName() {\n\t\treturn \"DesktopResponse\";\n\t}",
"JComponent getImpl();",
"BaseComponent getComponentName();",
"public String getName() {\n return className;\n }",
"public ComponentTheme getTheme() {\r\n return ui;\r\n }",
"public String getModuleTypeClass();",
"public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public JComponent getComponent() {\n return getGradleUI().getComponent();\n }"
] | [
"0.7731805",
"0.6890577",
"0.67491007",
"0.6553584",
"0.6372804",
"0.6023738",
"0.5684421",
"0.5630037",
"0.5630037",
"0.5630037",
"0.5589049",
"0.55734897",
"0.55128706",
"0.54912484",
"0.5444706",
"0.54392284",
"0.543517",
"0.54348487",
"0.5417867",
"0.5408598",
"0.53819734",
"0.535817",
"0.535817",
"0.5347747",
"0.53160775",
"0.53105485",
"0.5305727",
"0.5304456",
"0.5297627",
"0.5262709",
"0.5241511",
"0.5236171",
"0.5234305",
"0.5226852",
"0.5209149",
"0.52070534",
"0.51826036",
"0.5177545",
"0.51656336",
"0.51515603",
"0.51339006",
"0.51339006",
"0.5118697",
"0.51185954",
"0.51138943",
"0.51000607",
"0.50919205",
"0.50889176",
"0.5084299",
"0.50722885",
"0.506532",
"0.50600696",
"0.5057355",
"0.5057221",
"0.5054958",
"0.5053766",
"0.50459695",
"0.5039071",
"0.50372696",
"0.5031518",
"0.50184786",
"0.50176466",
"0.5011478",
"0.5011066",
"0.50057644",
"0.5001384",
"0.5000813",
"0.49989367",
"0.49937066",
"0.49910071",
"0.49890733",
"0.49890733",
"0.49890733",
"0.49890733",
"0.49890733",
"0.49890733",
"0.49880177",
"0.49685967",
"0.49663904",
"0.4962552",
"0.49414912",
"0.49323168",
"0.49237362",
"0.49152228",
"0.49123228",
"0.48937252",
"0.4891203",
"0.48819038",
"0.4868908",
"0.48685166",
"0.4867044",
"0.4867044",
"0.48670232",
"0.4865242",
"0.48615322",
"0.48569205",
"0.4851226",
"0.4850002",
"0.48480093",
"0.48470846"
] | 0.87568504 | 0 |
Sets the ribbon component class. | public void setRibbonComponentClass(String ribbonComponentClass)
{
this.ribbonComponentClass = ribbonComponentClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRibbonComponentClass()\n\t{\n\t\treturn ribbonComponentClass;\n\t}",
"public void setRibbonComponent(IRibbonComponent ribbonComponent)\n\t{\n\t\tthis.ribbonComponent = ribbonComponent;\n\t}",
"public void setCrayon(RibbonCrayon c)\n { this.crayon = c; }",
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"private void setAppearance(String className) {\n DweezilUIManager.setLookAndFeel(className, new Component[]{MainFrame.getInstance(), StatusWindow.getInstance(),\n PrefsSettingsPanel.this.getParent().getParent()});\n\n }",
"public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}",
"public void setRibbonContainer(JRibbonContainer ribbonContainer)\n\t{\n\t\tthis.ribbonContainer = ribbonContainer;\n\t}",
"public void setUI(RibbonGalleryUI ui) {\n super.setUI(ui);\n }",
"public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}",
"public void setCssClass(String cssClass);",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"@Override\r\n\tpublic DTextArea setHtmlClassName(final String className) {\r\n\t\tsuper.setHtmlClassName(className) ;\r\n\t\treturn this ;\r\n\t}",
"@Override\n public void updateUI() {\n setUI(SubstanceRibbonGalleryUI.createUI(this));\n }",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public abstract BossBar setStyle(BossStyle style);",
"public void setClass_(String newValue);",
"public JRibbonAction()\n\t{\n\t\tsuper();\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public void setClassName(String className) { this.className=className; }",
"@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }",
"public void execute(ActionEvent e)\n\t{\t\t\n\t\tif (ribbonComponent == null)\n\t\t{\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tribbonComponent = (IRibbonComponent) Class.forName(ribbonComponentClass).newInstance();\n\t\t\t}\n\t\t\tcatch (NullPointerException ex)\n\t\t\t{\t\t\t\t\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_initialization_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (ClassCastException ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_implementation_failed\") + \" \" + IRibbonComponent.class.getSimpleName() + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_instantiation_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tribbonContainer.addRibbonComponent(ribbonName, ribbonTitle, ribbonIcon, ribbonToolTipText, ribbonComponent);\n\t}",
"public final native void setCssClass(String cssClass) /*-{\r\n\t\tthis.cssClass = cssClass;\r\n\t}-*/;",
"public void setRibbonName(String ribbonName)\n\t{\n\t\tthis.ribbonName = ribbonName;\n\t}",
"public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}",
"public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}",
"@Override\n public String getUIClassID()\n {\n return uiClassID;\n }",
"public void setResourceClassName(String value)\r\n {\r\n getSemanticObject().setProperty(swb_resourceClassName, value);\r\n }",
"public void addClass();",
"private String getLookAndFeelClassName(String nimbus) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"@Override\n public String getUIClassID() {\n return uiClassID;\n }",
"public void createBluePickHiglight() {\n\t\tbluePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tbluePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\tleftPanel.add(bluePickHighlight, new Integer(1));\n\t\tbluePickHighlight.setBounds(18, 10, 210, 88);\n\t}",
"public Builder setClassName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n className_ = value;\n onChanged();\n return this;\n }",
"public void SetAsClass () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public static void setLookAndFeel(){\n\t\t\n\t\tUIManager.put(\"nimbusBase\", new Color(0,68,102));\n\t\tUIManager.put(\"nimbusBlueGrey\", new Color(60,145,144));\n\t\tUIManager.put(\"control\", new Color(43,82,102));\n\t\tUIManager.put(\"text\", new Color(255,255,255));\n\t\tUIManager.put(\"Table.alternateRowColor\", new Color(0,68,102));\n\t\tUIManager.put(\"TextField.font\", new Font(\"Font\", Font.BOLD, 12));\n\t\tUIManager.put(\"TextField.textForeground\", new Color(0,0,0));\n\t\tUIManager.put(\"PasswordField.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"TextArea.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"FormattedTextField.foreground\", new Color(0,0,0));\n\t\t\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\".background\", new Color(0,68,102));\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\"[Selected].background\", new Color(0,0,0));\n\t\t\n\t\t//TODO nie chca dzialac tooltipy na mapie\n\t\tBorder border = BorderFactory.createLineBorder(new Color(0,0,0)); //#4c4f53\n\t\tUIManager.put(\"ToolTip.border\", border);\n\n\t\t//UIManager.put(\"ToolTip.foregroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.backgroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.background\", new Color(0,0,0)); //#fff7c8\n\t\t//UIManager.put(\"ToolTip.foreground\", new Color(0,0,0));\n\t\t Painter<Component> p = new Painter<Component>() {\n\t\t public void paint(Graphics2D g, Component c, int width, int height) {\n\t\t g.setColor(new Color(20,36,122));\n\t\t //and so forth\n\t\t }\n\t\t };\n\t\t \n\t\tUIManager.put(\"ToolTip[Enabled].backgroundPainter\", p);\n\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new Color(255, 255, 255)); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new Color(255, 255, 255));\n//\t\t\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\",new ColorUIResource(new Color(255, 255, 255)));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new ColorUIResource((new Color(255, 255, 255))));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new ColorUIResource(new Color(255, 255, 255))); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new ColorUIResource(new Color(255, 255, 255)));\n\t\t\n\t \n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, you can set the GUI to another look and feel.\n\t\t}\n\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table:\\\"Table.cellRenderer\\\".background\", new ColorUIResource(new Color(74,144,178)));\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table.background\", new ColorUIResource(new Color(74,144,178)));\n\t\t\n\n\t}",
"@JSProperty(\"className\")\n void setClassName(String value);",
"public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }",
"@Override\r\n\tpublic DTextArea addHtmlClassName(final String className) {\r\n\t\tsuper.addHtmlClassName(className) ;\r\n\t\treturn this ;\r\n\t}",
"public SemcProjectCategoryCustomizer() {\n initComponents();\n }",
"public void setClassName(String className) {\n this.className = className;\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}",
"public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }",
"public void setBaseClass(java.lang.String new_baseClass) {\n\t\t_baseClass = new_baseClass;\n\t}",
"public void createPurplePickHiglight() {\n\t\tpurplePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurplePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\trightPanel.add(purplePickHighlight, new Integer(1));\n\t\tpurplePickHighlight.setBounds(45, 10, 210, 88);\n\t\tpurplePickHighlight.setVisible(false);\n\t}",
"public void setElementClass(Class newValue) {\r\n\t\tthis.elementClass = newValue;\r\n\t}",
"void addClass(String className, ItemStack[] items, ItemStack offHand, ItemStack[] armors);",
"protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}",
"public LinkStyleBreadCrumbGui() {\n initComponents();\n }",
"public void setClassName(String className) {\n this.className = className;\n }",
"public void setClassName(String className) {\n this.className = className;\n }",
"public void setClassName(String className) {\n this.className = className;\n }",
"public RibbonMenuContainerClipboard() {\r\n super(\"Clipboard tools\");\r\n\r\n }",
"@Override\n public String getName() {\n return REACT_CLASS;\n }",
"BossBar createBossBar(String title, BossColor color, BossStyle style);",
"public void setClazz(String clazz);",
"public void setClassLabels(int[] c) {\n\t\t\tcls = c;\n\t\t}",
"public ActivityPaneLogLevelButtonGroup() {\n super();\n }",
"public void setClazzName(String clazz);",
"public void setClassName(String name)\n {\n _className = name;\n }",
"public LookAndFeelChooser (LookAndFeelInfo [] looks , MainWindow mainWindow){\n\t\tsuper();\n\n\t\tthis.mainWindow = mainWindow;\n\t\tthis.setLayout(new FlowLayout());\n\t\tString [] lookStrings = new String [looks.length];\n\t\tfor (int i = 0 ; i< looks.length ; i++){\n\t\t\tlookStrings[i] = looks[i].getClassName();\n\t\t\tSystem.out.println(\"look \" + i + \" = \" + lookStrings[i]);\n\t\t}\n\t\tJComboBox lookPick = new JComboBox(lookStrings);\n\n\t\tlookPick.addActionListener(this);\n\t\tthis.add(lookPick);\n\t\tthis.setBorder(\n\t\t\t\tBorderFactory.createCompoundBorder(\n\t\t\t\t\t\tBorderFactory.createTitledBorder(\"Will Destroy Current MainWindow and rebuild\"),\n\t\t\t\t\t\tBorderFactory.createEmptyBorder(5,5,5,5)));\n\t}",
"public void createBlueBanHighlight() {\n\t\tblueBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tblueBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(blueBanHighlight, new Integer(1));\n\t\tblueBanHighlight.setBounds(23, 29, 245, 135);\n\t}",
"public void setRibbonToolTipText(String ribbonToolTipText)\n\t{\n\t\tthis.ribbonToolTipText = ribbonToolTipText;\n\t}",
"public WorkflowTheme(java.lang.Object instance) throws Throwable {\n super(instance);\n if (instance instanceof JCObject) {\n classInstance = (JCObject) instance;\n } else\n throw new Exception(\"Cannot manage object, it is not a JCObject\");\n }",
"@Override\n public void setWidget(Object arg0)\n {\n \n }",
"public void createPurpleBanHighlight() {\n\t\tpurpleBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurpleBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(purpleBanHighlight, new Integer(1));\n\t\tpurpleBanHighlight.setBounds(1014, 29, 245, 168);\n\t\tpurpleBanHighlight.setVisible(false);\n\t}",
"public void addClass(String className){\n getElement().addClassName(className);\n }",
"public AutoBundleClassCreatorProxy(Elements elementUtils, TypeElement classElement) {\n super(elementUtils, classElement);\n isActivity = ProcessorUtil.isActivity(classElement);\n }",
"public clientesagregarclass() {\n initComponents();\n }",
"void setClassType(String classType);",
"public CompilationBuilder setScriptBaseClass(String scriptBaseClass) {\n\t\tcompilerConfiguration.setScriptBaseClass(scriptBaseClass);\n\t\treturn this;\n\t}",
"public void setComponentName(ComponentName name);",
"@Override\n\tpublic LookAndFeelMenu createLookAndFeelMenu() {\n\t\treturn null;\n\t}",
"public Builder setActionClassName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n actionClassName_ = value;\n onChanged();\n return this;\n }",
"@Override\n public String getCSSClass() {\n return null;\n }",
"public void setStyleClass(String styleClass) {\r\n this.styleClass = styleClass;\r\n }",
"private void setUi(JCpgUI jCpgUIReference){\n\t\t\n\t\tthis.ui = jCpgUIReference;\n\t\t\n\t}",
"public native final EditorBaseEvent classNames(JsArrayString val) /*-{\n\t\tthis.classNames = val;\n\t\treturn this;\n\t}-*/;",
"final public void setStyleClass(String styleClass)\n {\n setProperty(STYLE_CLASS_KEY, (styleClass));\n }",
"public void addClass(String className) \n\t{\n\t\tstoreViewState();\n\t\tproject.addClass(className);\n\t\tcheckStatus();\n\t}",
"public void setUIComponent(Component c) {}",
"public void applyLookAndFeel() {\n\r\n\t\tLookAndFeelInfo[] infos = UIManager.getInstalledLookAndFeels();\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"NIMBUS\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"WINDOW\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlook = (Math.abs(look) % infos.length);\r\n\r\n\t\tString lookName = infos[look].getName();\r\n\r\n\t\ttry {\r\n \t\tUIManager.setLookAndFeel(infos[look].getClassName());\r\n \t\tsetTitle(JMTKResizer.ABOUT + \" - \" + lookName);\r\n \tSwingUtilities.updateComponentTreeUI(this);\r\n \t\t//pack();\r\n\r\n \t} catch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n\t}",
"@Override\n\tpublic String getClassName() {\n\t\treturn _changesetEntry.getClassName();\n\t}",
"@Override\n\tpublic String getClassName() {\n\t\treturn \"DesktopResponse\";\n\t}",
"public void setActivingColor(){\n this.setBackground(new Color( 213, 228, 242));\n this.forceupdateUI();\n }",
"protected void createCbgeneralcontrolAnnotations() {\n\t\tString source = \"cbgeneralcontrol\";\t\n\t\taddAnnotation\n\t\t (getClarityAbstractObject_ClarityConnection(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"label\", \"Clarity Connection:\",\n\t\t\t \"type\", \"Text\"\n\t\t });\n\t}",
"public void setExtClass(Class clas){\n\t\t\n\t\tthis.clas = clas;\n\t}",
"protected Content getNavLinkClass() {\n Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, classLabel);\n return li;\n }",
"public void setHomeClass(Class homeAPI)\n {\n _homeClass = homeAPI;\n }",
"public InterfazBienvenida() {\n\n initComponents();\n setLocationRelativeTo(null);\n\n this.ButtonBuscarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonIndexarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonComoFunciona.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n }",
"public String getUIClassID() {\n return uiClassID;\n }",
"@Override\n public void modifyRootRPClassDefinition(RPClass client) {\n }",
"protected String xCB() { return ScheduledJobCB.class.getName(); }",
"public String getClassName () { return _className; }",
"public Logo() {\n initComponents();\n this.setTitle(this.getClass().getSimpleName()+\" ::: \"+\"E- Learning :::\");\n this.getContentPane().setBackground(ELearning.sc.getDefaultColor());\n }",
"public ControlDeveloperView(){\n\t\tsuper (\"Control-Developer\");\n\t\tcdvMB = new ControlDeveloperMenuBar(this);\n\t\tsetJMenuBar(cdvMB);\n\t}",
"public void setBottoneCoppia(ServiceButton sb) { this.sb = sb; }",
"public void setFrameIcon()\n {\n URL imageURL = HelpWindow.class.getResource(\"/resources/images/frameicon.png\");\n Image img = Toolkit.getDefaultToolkit().getImage(imageURL);\n \n if(imageURL != null)\n {\n ImageIcon icon = new ImageIcon(img);\n super.setIconImage(icon.getImage());//window icon\n }\n }",
"public void setClassName(String name) {\n this.className = name;\n }"
] | [
"0.74560094",
"0.64416766",
"0.61192",
"0.5929107",
"0.5842754",
"0.56988955",
"0.55840755",
"0.54302657",
"0.54262614",
"0.5329537",
"0.5290105",
"0.52755284",
"0.5273259",
"0.5243161",
"0.5216962",
"0.5136884",
"0.51092225",
"0.50989145",
"0.50701916",
"0.50453436",
"0.5007489",
"0.49972782",
"0.49702972",
"0.49493945",
"0.49183047",
"0.4910567",
"0.49027735",
"0.48871887",
"0.488086",
"0.48500863",
"0.48338145",
"0.48321173",
"0.48276564",
"0.48120826",
"0.48029694",
"0.47996083",
"0.4783682",
"0.47804627",
"0.47752237",
"0.47390938",
"0.47278264",
"0.4725981",
"0.47172847",
"0.47171044",
"0.4696014",
"0.4660538",
"0.46468768",
"0.4637146",
"0.4629258",
"0.46134934",
"0.46127507",
"0.46127507",
"0.46127507",
"0.45990282",
"0.45969018",
"0.45651945",
"0.45501786",
"0.45484513",
"0.45301595",
"0.4529653",
"0.45125145",
"0.4495091",
"0.4487684",
"0.4475635",
"0.44664103",
"0.44617417",
"0.44610482",
"0.44554374",
"0.44491985",
"0.4420905",
"0.44120872",
"0.44023928",
"0.43824273",
"0.43770835",
"0.43716386",
"0.43715918",
"0.43706432",
"0.43668097",
"0.43595147",
"0.43591535",
"0.43534294",
"0.4347975",
"0.43465355",
"0.43334126",
"0.43325347",
"0.43286753",
"0.4328422",
"0.43243882",
"0.43242007",
"0.43237555",
"0.43212885",
"0.43170828",
"0.43133166",
"0.43053403",
"0.42949373",
"0.42920223",
"0.429122",
"0.42896503",
"0.42891863",
"0.42864925"
] | 0.7749515 | 0 |
Gets the ribbon component. | public IRibbonComponent getRibbonComponent()
{
return ribbonComponent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"public String getRibbonComponentClass()\n\t{\n\t\treturn ribbonComponentClass;\n\t}",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"public RibbonGalleryUI getUI() {\n return (RibbonGalleryUI) ui;\n }",
"public void setRibbonComponent(IRibbonComponent ribbonComponent)\n\t{\n\t\tthis.ribbonComponent = ribbonComponent;\n\t}",
"public JLabel getStatusbarLabel()\r\n {\r\n return lbStatusbar;\r\n }",
"public JComponent getWidget() {\n return itsComp;\n }",
"public void setRibbonComponentClass(String ribbonComponentClass)\n\t{\n\t\tthis.ribbonComponentClass = ribbonComponentClass;\n\t}",
"C getGlassPane();",
"public static ResourceBundle getRB() {\r\n return rb;\r\n }",
"public void setRibbonName(String ribbonName)\n\t{\n\t\tthis.ribbonName = ribbonName;\n\t}",
"public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}",
"@Override\r\n\tpublic Widget getWidget() {\n\t\treturn asWidget();\r\n\t}",
"@Override\n\tpublic Component getComponent() {\n\t\tComponent component = button.getComponent();\n\t\tcomponent.setBackground(color);\n\t\treturn component;\n\t}",
"public JRadioButton getJRadioButtonBOhne()\n\t{\n\t\tif (jRadioButtonBOhne == null)\n\t\t{\n\t\t\tjRadioButtonBOhne = new JRadioButton();\n\t\t\tjRadioButtonBOhne.setText(\"ohne\");\n\t\t\tjRadioButtonBOhne.setVisible(false);\n\t\t\tjRadioButtonBOhne.setBounds(125, 145, 70, 20);\n\t\t\tjRadioButtonBOhne.addItemListener(new ItemListener() {\n\t\t\t\tpublic void itemStateChanged(ItemEvent evt) {\n\t\t\t\t\tonCheckBoxBreak(0, evt);}});\n\t\t\tjRadioButtonBOhne.addKeyListener(keyListener);\n\t\t}\n\t\treturn jRadioButtonBOhne;\n\t}",
"public java.awt.Component getControlledUI() {\r\n return ratesBaseWindow;\r\n }",
"public JComponent getToolbarComponent()\n {\n return _box;\n }",
"String getComponentName();",
"String getComponentName();",
"public CoolBar getParent() {\n checkWidget();\n return parent;\n }",
"public void setCrayon(RibbonCrayon c)\n { this.crayon = c; }",
"private BButton getBtnCancel() {\r\n\t\tif (btnCancel == null) {\r\n\t\t\tbtnCancel = new BButton();\r\n\t\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\tbtnCancel.setPreferredSize(new Dimension(100, 29));\r\n\t\t}\r\n\t\treturn btnCancel;\r\n\t}",
"private RLabel getIconLabel() {\n if (iconLabel == null) {\n iconLabel = new RLabel();\n iconLabel.setStyle(\"border-all\");\n iconLabel.setIconUri(\"<%=ivy.cms.cr(\\\"/Icons/Large/error\\\")%>\");\n iconLabel.setStyleProperties(\"{/anchor \\\"NORTHWEST\\\"}\");\n iconLabel.setName(\"iconLabel\");\n }\n return iconLabel;\n }",
"public BossOverlayGui getBossOverlay() {\n return this.overlayBoss;\n }",
"private RLabel getBuildLabel() {\n if (buildLabel == null) {\n buildLabel = new RLabel();\n buildLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productBuild\\\") %>\");\n buildLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n buildLabel.setName(\"buildLabel\");\n }\n return buildLabel;\n }",
"public static BratVisualizerResourceReference get()\n {\n return INSTANCE;\n }",
"public JToolBar getToolBar() {\n return myToolBar;\n }",
"public void setRibbonContainer(JRibbonContainer ribbonContainer)\n\t{\n\t\tthis.ribbonContainer = ribbonContainer;\n\t}",
"public JComponent getComponent() {\n return getGradleUI().getComponent();\n }",
"public void execute(ActionEvent e)\n\t{\t\t\n\t\tif (ribbonComponent == null)\n\t\t{\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tribbonComponent = (IRibbonComponent) Class.forName(ribbonComponentClass).newInstance();\n\t\t\t}\n\t\t\tcatch (NullPointerException ex)\n\t\t\t{\t\t\t\t\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_initialization_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (ClassCastException ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_implementation_failed\") + \" \" + IRibbonComponent.class.getSimpleName() + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_instantiation_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tribbonContainer.addRibbonComponent(ribbonName, ribbonTitle, ribbonIcon, ribbonToolTipText, ribbonComponent);\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public Control getControl()\n {\n return composite;\n }",
"private RComboBox getComboBox() {\n\tif (ComboBox == null) {\n\t\tComboBox = new RComboBox();\n\t\tComboBox.setName(\"ComboBox\");\n\t\tComboBox.setModelConfiguration(\"{/result \\\"\\\"/version \\\"3.0\\\"/icon \\\"\\\"/tooltip \\\"\\\"}\");\n\t}\n\treturn ComboBox;\n}",
"public String getTitleComponent(){\n return titleComponent;\n }",
"public HistoryPane getHistoryPane() {\r\n\t\treturn historyPane;\r\n\t}",
"public UiLabelsFactory getLabels() {\n if (getLabels == null)\n getLabels = new UiLabelsFactory(jsBase + \".labels()\");\n\n return getLabels;\n }",
"public JLabelOperator lblPaletteContent() {\n if (_lblPaletteContent==null) {\n _lblPaletteContent = new JLabelOperator(this, \"Palette Content:\"); // NOI18N\n }\n return _lblPaletteContent;\n }",
"public static String getHeaderBackgoundImgStyle() {\r\n return getBackgoundImgStyle(\"common/background.gif\"); //$NON-NLS-1$\r\n }",
"private javax.swing.JButton getJButtonCancelar() {\n\t\tif(jButtonCancelar == null) {\n\t\t\tjButtonCancelar = new JHighlightButton();\n\t\t\tjButtonCancelar.setText(\"Cancelar\");\n\t\t\tjButtonCancelar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/delete2.png\")));\n\t\t}\n\t\treturn jButtonCancelar;\n\t}",
"public RoboticonCustomisation getRoboticon(){\r\n\t\treturn roboticon;\r\n\t}",
"protected RBNBControl createRBNBControl(){\r\n\t\tlog.write(\"createRBNBControl() called from \" + this.getClass().getName());\r\n\t\treturn new RBNBControl();\r\n\t}",
"public ComponentTheme getTheme() {\r\n return ui;\r\n }",
"public abstract String getBarTitle();",
"private javax.swing.JLabel getLabRange() {\r\n\tif (ivjLabRange == null) {\r\n\t\ttry {\r\n\t\t\tivjLabRange = new javax.swing.JLabel();\r\n\t\t\tivjLabRange.setName(\"LabRange\");\r\n\t\t\tivjLabRange.setText(\"Range name\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjLabRange;\r\n}",
"public abstract String getManipulatorButtonLabel();",
"private JLabel getLblEkipeMorajuBiti() {\r\n\t\tif (lblEkipeMorajuBiti == null) {\r\n\t\t\tlblEkipeMorajuBiti = new JLabel(\"Ekipe moraju biti razlicite!\");\r\n\t\t\tlblEkipeMorajuBiti.setPreferredSize(new Dimension(150, 14));\r\n\t\t\tlblEkipeMorajuBiti.setVisible(false);\r\n\t\t}\r\n\t\treturn lblEkipeMorajuBiti;\r\n\t}",
"private ULCContainer getHeaderPane() {\n if (headerPane == null) {\n headerPane = RichDialogPanelFactory.create(TabHeaderBarPanel.class);\n headerPane.setName(\"headerPane\");\n }\n return headerPane;\n }",
"public String getSkin()\n {\n // get skin from definition or inherit from parent menu\n String skin = definition.getSkin();\n if (skin == null)\n {\n skin = super.getSkin();\n }\n return skin;\n }",
"public ComponentLabel getComponentLabel() {\n\t\treturn componentLabel;\n\t}",
"Appearance getAppearance();",
"public JToolBar getToolBar(){\r\n return toolbar;\r\n }",
"public JToolBar getToolBar() {\n return toolBar;\n }",
"public GlassPanel getGlassPane() {\n\t\treturn glassPane;\n\t}",
"public BrickGraphic getBrickGraphic(){\r\n\t\treturn new BrickGraphic(this.getX(), this.getY(), this.getSizeX(),\r\n\t\t\t\tthis.getSizeY(), this.getColor());\r\n\t}",
"private JRadioButton getJRadioButtonButtBorder() {\r\n\t\t// if (buttBorder == null) {\r\n\t\tbuttBorder = new JRadioButton();\r\n\t\tbuttBorder.setText(\"Border\");\r\n\t\tbuttBorder.setToolTipText(\"prefers the border settings instead of the new size values\");\r\n\t\tbuttBorder.addActionListener(this);\r\n\t\tbuttBorder.setActionCommand(\"parameter\");\r\n\t\t// }\r\n\t\treturn buttBorder;\r\n\t}",
"public CustomizedBiGULDefinitionElements getCustomizedBiGULDefinitionAccess() {\r\n\t\treturn pCustomizedBiGULDefinition;\r\n\t}",
"BossBar createBossBar(String title, BossColor color, BossStyle style);",
"private JToolBar getTlbNavigate() {\r\n\t\tif (tlbNavigate == null) {\r\n\t\t\ttlbNavigate = new JToolBar();\r\n\t\t\ttlbNavigate.setLayout(new BoxLayout(getTlbNavigate(), BoxLayout.X_AXIS));\r\n\t\t\ttlbNavigate.add(getBtnBack());\r\n\t\t\ttlbNavigate.add(getBtnForward());\r\n\t\t\ttlbNavigate.add(getBtnHome());\r\n\t\t\ttlbNavigate.add(getTxtAddress());\r\n\t\t\ttlbNavigate.add(getBtnGo());\r\n\t\t}\r\n\t\treturn tlbNavigate;\r\n\t}",
"public Component getTabComponent();",
"protected Pane getStatusPane() {\n\n return this.statusPane;\n }",
"@Override\n public Component getUiComponent() {\n return this;\n }",
"public ServiceButton getBottoneCoppia() { return sb; }",
"public JMenuBar getMenuBar() {\n return this.menuBar;\n }",
"private RGridLayoutPane getButtonPane() {\n if (buttonPane == null) {\n buttonPane = new RGridLayoutPane();\n buttonPane.setName(\"buttonPane\");\n buttonPane.setStyle(\"border-all\");\n buttonPane.setHgap(5);\n buttonPane.setName(\"buttonPane\");\n buttonPane.setStyleProperties(\"{/anchor \\\"EAST\\\"}\");\n buttonPane.add(getShowDetailsButton());\n buttonPane.add(getCopyButton());\n buttonPane.add(getOkButton());\n }\n return buttonPane;\n }",
"private Component getStatusBar() {\n\t\tJPanel statusBar = new JPanel();\n\t\tstatusBar.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\n\t\tstatusLabel = new JLabel(\"Status: \");\n\t\tstatusLabel.setFont(new Font(\"SansSerif\", Font.ITALIC, 11));\n\t\tstatusBar.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\tstatusBar.add(statusLabel);\n\t\tstatusBar.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));\n\t\treturn statusBar;\n\t}",
"public Composite getComposite() {\n \t\treturn super.getComposite();\n \t}",
"public ToolBar getParent () {\r\n\tcheckWidget();\r\n\treturn parent;\r\n}",
"private org.gwtbootstrap3.client.ui.NavbarBrand get_brand() {\n return build_brand();\n }",
"public void createBluePickHiglight() {\n\t\tbluePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tbluePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\tleftPanel.add(bluePickHighlight, new Integer(1));\n\t\tbluePickHighlight.setBounds(18, 10, 210, 88);\n\t}",
"public ModuleMenuBar getMenuBar() {\n\t\treturn menuBar;\n\t}",
"private RGridBagLayoutPane getTitlePane() {\n if (titlePane == null) {\n titlePane = new RGridBagLayoutPane();\n titlePane.setName(\"titlePane\");\n titlePane.setStyleProperties(\"{/fill \\\"HORIZONTAL\\\"/weightY \\\"0\\\"}\");\n titlePane.add(getHeaderPane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }\n return titlePane;\n }",
"public ColorUIResource getPrimaryControlHighlight() { return fPrimaryHighlight;}",
"public JPanel getPanel() {\n\t\treturn barChartPanel;\n\t}",
"private javax.swing.JLabel getJLabelTitle() {\n\tif (JLabelTitle == null) {\n\t\ttry {\n\t\t\tJLabelTitle = new javax.swing.JLabel();\n\t\t\tJLabelTitle.setName(\"JLabelTitle\");\n\t\t\tJLabelTitle.setFont(new java.awt.Font(\"dialog\", 1, 18));\n\t\t\tJLabelTitle.setText(\"License\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\treturn JLabelTitle;\n}",
"protected abstract JToolBar getNorthToolbar();",
"public Icon getIcon()\n {\n return getComponent().getIcon();\n }",
"@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(updateReferencesAllMaps);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, updateReferencesAllMaps, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tupdateReferencesAllMaps.setEnabled();\n\t\t\t\t\tbutton.setEnabled(updateReferencesAllMaps.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public ViewJComponentHLUTBase getHistoLUTComponent() {\r\n return componentHistogram;\r\n }",
"private static Component createIconComponent()\n {\n JPanel wrapIconPanel = new TransparentPanel(new BorderLayout());\n\n JLabel iconLabel = new JLabel();\n\n iconLabel.setIcon(DesktopUtilActivator.getResources()\n .getImage(\"service.gui.icons.AUTHORIZATION_ICON\"));\n\n wrapIconPanel.add(iconLabel, BorderLayout.NORTH);\n\n return wrapIconPanel;\n }",
"JComponent getImpl();",
"public org.apache.xmlbeans.XmlString xgetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BORDER$22);\n return target;\n }\n }",
"public UiBackground getBackground() {\n if (getBackground == null)\n getBackground = new UiBackground(jsBase + \".background()\");\n\n return getBackground;\n }",
"private String getLookAndFeelClassName(String nimbus) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public Component getPopupComponent() {\r\n return _component;\r\n }",
"public static Color getToolTipBackground() {\n\n Color c = UIManager.getColor(\"ToolTip.background\");\n\n // Tooltip.background is wrong color on Nimbus (!)\n if (c == null || UIManager.getLookAndFeel().getName().equals(\"Nimbus\")) {\n c = UIManager.getColor(\"info\"); // Used by Nimbus (and others)\n if (c == null) {\n c = SystemColor.info; // System default\n }\n }\n\n // Workaround for a bug (?) with Nimbus - calling JLabel.setBackground()\n // with a ColorUIResource does nothing, must be a normal Color\n if (c instanceof ColorUIResource) {\n c = new Color(c.getRGB());\n }\n\n return c;\n\n }",
"UiStyle getUiStyle();",
"public Component getComponent() {\n return component;\n }",
"GtkComboBoxUI gtkGetUI() {\n return this;\n }",
"public Label getComponentLabel() {\n return commandPromptLabel;\n }",
"public GComponent getHoveredComponent()\n {\n return this.hoveredComponent;\n }",
"public RPCClient getBonusClient() {\n\t\treturn this.bonusClient;\n\t}",
"public String getHyperlinkBase()\r\n {\r\n return (m_hyperlinkBase);\r\n }",
"public java.lang.String getBorder()\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(BORDER$22);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"private javax.swing.JLabel getJLabelDivider() {\n\tif (JLabelDivider == null) {\n\t\ttry {\n\t\t\tJLabelDivider = new javax.swing.JLabel();\n\t\t\tJLabelTitle.setName(\"JLabelDivider\");\n\t\t\tJLabelDivider.setText(\" \");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\treturn JLabelDivider;\n}",
"private JButton getCopyButton() {\n if (copyButton == null) {\n copyButton = new JButton();\n copyButton.setText(\"Copy\");\n copyButton.setToolTipText(\"Copy settings from an existing site to a new site\");\n copyButton.setActionCommand(\"Copy\");\n copyButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n copySelectedBalloonSettings();\n }\n });\n }\n return copyButton;\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}",
"private static double ribbonPresent(int l, int w, int h) {\n int[] sides = {l, w, h};\n Arrays.sort(sides);\n return sides[0] + sides[0] + sides[1] + sides[1];\n }"
] | [
"0.7596714",
"0.7517591",
"0.748402",
"0.7418372",
"0.71403706",
"0.63306665",
"0.6281131",
"0.59432644",
"0.5580092",
"0.5372867",
"0.5344418",
"0.5319069",
"0.5267763",
"0.5195333",
"0.51646405",
"0.516233",
"0.5137857",
"0.51357925",
"0.5114721",
"0.5112755",
"0.51076376",
"0.51076376",
"0.510131",
"0.5082613",
"0.5082148",
"0.50572914",
"0.5045598",
"0.5036397",
"0.5033319",
"0.49966806",
"0.49944305",
"0.49864826",
"0.497889",
"0.49773848",
"0.49643824",
"0.49546832",
"0.4947792",
"0.49429524",
"0.49320325",
"0.49273545",
"0.49260253",
"0.49188924",
"0.49062636",
"0.4902936",
"0.49005762",
"0.4895897",
"0.48946413",
"0.48841664",
"0.48729718",
"0.48703253",
"0.48600945",
"0.48524192",
"0.4847963",
"0.48477113",
"0.48419526",
"0.48373327",
"0.48280686",
"0.48213798",
"0.48142081",
"0.48126453",
"0.48098338",
"0.48042107",
"0.48029488",
"0.47967985",
"0.47928286",
"0.47888842",
"0.47887015",
"0.478424",
"0.4778848",
"0.477256",
"0.4772139",
"0.4761422",
"0.47568893",
"0.4751391",
"0.4747038",
"0.47469616",
"0.4745965",
"0.4743055",
"0.47417396",
"0.47274628",
"0.4716442",
"0.47136113",
"0.4690128",
"0.46845433",
"0.46840158",
"0.46779898",
"0.46710157",
"0.46707165",
"0.46595585",
"0.46548864",
"0.46510518",
"0.46463996",
"0.46443614",
"0.46428508",
"0.46418628",
"0.4634208",
"0.46309346",
"0.46286914",
"0.46271473",
"0.46236724"
] | 0.8447449 | 0 |
Sets the ribbon component. | public void setRibbonComponent(IRibbonComponent ribbonComponent)
{
this.ribbonComponent = ribbonComponent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}",
"public void setRibbonComponentClass(String ribbonComponentClass)\n\t{\n\t\tthis.ribbonComponentClass = ribbonComponentClass;\n\t}",
"public void setRibbonTitle(String ribbonTitle)\n\t{\n\t\tthis.ribbonTitle = ribbonTitle;\n\t}",
"public void setRibbonContainer(JRibbonContainer ribbonContainer)\n\t{\n\t\tthis.ribbonContainer = ribbonContainer;\n\t}",
"public String getRibbonName()\n\t{\n\t\treturn ribbonName;\n\t}",
"public void setRibbonName(String ribbonName)\n\t{\n\t\tthis.ribbonName = ribbonName;\n\t}",
"public void setCrayon(RibbonCrayon c)\n { this.crayon = c; }",
"public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}",
"public Icon getRibbonIcon()\n\t{\n\t\treturn ribbonIcon;\n\t}",
"public String getRibbonComponentClass()\n\t{\n\t\treturn ribbonComponentClass;\n\t}",
"public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}",
"public void setUI(RibbonGalleryUI ui) {\n super.setUI(ui);\n }",
"@Override\n public void updateUI() {\n setUI(SubstanceRibbonGalleryUI.createUI(this));\n }",
"public void execute(ActionEvent e)\n\t{\t\t\n\t\tif (ribbonComponent == null)\n\t\t{\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tribbonComponent = (IRibbonComponent) Class.forName(ribbonComponentClass).newInstance();\n\t\t\t}\n\t\t\tcatch (NullPointerException ex)\n\t\t\t{\t\t\t\t\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_initialization_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (ClassCastException ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_implementation_failed\") + \" \" + IRibbonComponent.class.getSimpleName() + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t\tExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString(\"component_instantiation_failed\") + \" [\" + ribbonComponentClass + \"]\", ex);\n\t\t\t\t\n\t\t\t\tex.printStackTrace();\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tribbonContainer.addRibbonComponent(ribbonName, ribbonTitle, ribbonIcon, ribbonToolTipText, ribbonComponent);\n\t}",
"public abstract BossBar setStyle(BossStyle style);",
"public JRibbonAction()\n\t{\n\t\tsuper();\n\t}",
"public void setRibbonToolTipText(String ribbonToolTipText)\n\t{\n\t\tthis.ribbonToolTipText = ribbonToolTipText;\n\t}",
"public void createBluePickHiglight() {\n\t\tbluePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tbluePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\tleftPanel.add(bluePickHighlight, new Integer(1));\n\t\tbluePickHighlight.setBounds(18, 10, 210, 88);\n\t}",
"public static void setLookAndFeel(){\n\t\t\n\t\tUIManager.put(\"nimbusBase\", new Color(0,68,102));\n\t\tUIManager.put(\"nimbusBlueGrey\", new Color(60,145,144));\n\t\tUIManager.put(\"control\", new Color(43,82,102));\n\t\tUIManager.put(\"text\", new Color(255,255,255));\n\t\tUIManager.put(\"Table.alternateRowColor\", new Color(0,68,102));\n\t\tUIManager.put(\"TextField.font\", new Font(\"Font\", Font.BOLD, 12));\n\t\tUIManager.put(\"TextField.textForeground\", new Color(0,0,0));\n\t\tUIManager.put(\"PasswordField.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"TextArea.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"FormattedTextField.foreground\", new Color(0,0,0));\n\t\t\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\".background\", new Color(0,68,102));\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\"[Selected].background\", new Color(0,0,0));\n\t\t\n\t\t//TODO nie chca dzialac tooltipy na mapie\n\t\tBorder border = BorderFactory.createLineBorder(new Color(0,0,0)); //#4c4f53\n\t\tUIManager.put(\"ToolTip.border\", border);\n\n\t\t//UIManager.put(\"ToolTip.foregroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.backgroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.background\", new Color(0,0,0)); //#fff7c8\n\t\t//UIManager.put(\"ToolTip.foreground\", new Color(0,0,0));\n\t\t Painter<Component> p = new Painter<Component>() {\n\t\t public void paint(Graphics2D g, Component c, int width, int height) {\n\t\t g.setColor(new Color(20,36,122));\n\t\t //and so forth\n\t\t }\n\t\t };\n\t\t \n\t\tUIManager.put(\"ToolTip[Enabled].backgroundPainter\", p);\n\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new Color(255, 255, 255)); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new Color(255, 255, 255));\n//\t\t\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\",new ColorUIResource(new Color(255, 255, 255)));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new ColorUIResource((new Color(255, 255, 255))));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new ColorUIResource(new Color(255, 255, 255))); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new ColorUIResource(new Color(255, 255, 255)));\n\t\t\n\t \n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, you can set the GUI to another look and feel.\n\t\t}\n\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table:\\\"Table.cellRenderer\\\".background\", new ColorUIResource(new Color(74,144,178)));\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table.background\", new ColorUIResource(new Color(74,144,178)));\n\t\t\n\n\t}",
"BossBar createBossBar(String title, BossColor color, BossStyle style);",
"public void createBlueBanHighlight() {\n\t\tblueBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tblueBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(blueBanHighlight, new Integer(1));\n\t\tblueBanHighlight.setBounds(23, 29, 245, 135);\n\t}",
"private void setAppearance(String className) {\n DweezilUIManager.setLookAndFeel(className, new Component[]{MainFrame.getInstance(), StatusWindow.getInstance(),\n PrefsSettingsPanel.this.getParent().getParent()});\n\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}",
"public LinkStyleBreadCrumbGui() {\n initComponents();\n }",
"public RibbonMenuContainerClipboard() {\r\n super(\"Clipboard tools\");\r\n\r\n }",
"public void createPurpleBanHighlight() {\n\t\tpurpleBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurpleBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(purpleBanHighlight, new Integer(1));\n\t\tpurpleBanHighlight.setBounds(1014, 29, 245, 168);\n\t\tpurpleBanHighlight.setVisible(false);\n\t}",
"public RIAComboboxPanel()\n {\n super();\n initialize();\n }",
"public InterfazBienvenida() {\n\n initComponents();\n setLocationRelativeTo(null);\n\n this.ButtonBuscarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonIndexarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonComoFunciona.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n }",
"public void createPurplePickHiglight() {\n\t\tpurplePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurplePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\trightPanel.add(purplePickHighlight, new Integer(1));\n\t\tpurplePickHighlight.setBounds(45, 10, 210, 88);\n\t\tpurplePickHighlight.setVisible(false);\n\t}",
"public String getRibbonToolTipText()\n\t{\n\t\treturn ribbonToolTipText;\n\t}",
"@Override\n public void setWidget(Object arg0)\n {\n \n }",
"private void setActionBar() {\n headView.setText(\"消息中心\");\n headView.setGobackVisible();\n headView.setRightGone();\n // headView.setRightResource();\n }",
"public Logo() {\n initComponents();\n this.setTitle(this.getClass().getSimpleName()+\" ::: \"+\"E- Learning :::\");\n this.getContentPane().setBackground(ELearning.sc.getDefaultColor());\n }",
"public void setFrameIcon()\n {\n URL imageURL = HelpWindow.class.getResource(\"/resources/images/frameicon.png\");\n Image img = Toolkit.getDefaultToolkit().getImage(imageURL);\n \n if(imageURL != null)\n {\n ImageIcon icon = new ImageIcon(img);\n super.setIconImage(icon.getImage());//window icon\n }\n }",
"private void setBackgrond(){\t\n this.background = new JLabel();\n this.background.setIcon(backgrondP);\n this.background.setVisible(true);\n this.background.setLocation(0, 0);\n this.background.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.add(background);\n\t}",
"public void setBottoneCoppia(ServiceButton sb) { this.sb = sb; }",
"@Override\r\n protected final Control createButtonBar(Composite parent) {\n return null;\r\n }",
"public void bulleBlanche() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_blanche.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}",
"@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(updateReferencesAllMaps);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, updateReferencesAllMaps, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tupdateReferencesAllMaps.setEnabled();\n\t\t\t\t\tbutton.setEnabled(updateReferencesAllMaps.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"private void setTooltip() {\n\t\tif (buttonAddScannable != null && !buttonAddScannable.isDisposed()) {\n\t\t\tgetParentShell().getDisplay().asyncExec(() -> buttonAddScannable.setToolTipText(\"Select scannable to add to list...\"));\n\t\t}\n\t}",
"private void setBeanGui(SalaryBvgBaseLine bean) {\n\t\tthis.fieldGroup.setItemDataSource(bean);\r\n\t\t\t\t\r\n\t}",
"public ActivityPaneLogLevelButtonGroup() {\n super();\n }",
"public void MakeBar() {\n\t\tBarButton = new JButton(\n\t\t\t\t new ImageIcon(getClass().getResource(GetBarChartImage())));\t\n\t\tBarButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"Bar chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(BarButton);\t\n\t}",
"public void setFrameTitel(JFrame frame) throws Throwable {\n\t\tString mode = \"Business Application \";\r\n\t\tString Edition = \"Stand Alone Branch Edition- \";\r\n\t\t// frame.setIconImage(Toolkit.getDefaultToolkit().getImage(Loginwindow.class.getResource(\"/RetailProduct/meretoologo.png\")));\r\n\t\tString vpara = \"809\";\r\n\r\n\t\tString vpara805 = \"805\"; // No of Lines per Bill\r\n\t\tint para805 = Integer.parseInt(new getConfigurationSetting().getSpecificConfiguration(vpara805));\r\n\r\n\t\t//frame.setTitle(new getConfigurationSetting().getSpecificConfiguration(vpara));\r\n\t\tframe.setFont(new Font(\"Cambria\", Font.BOLD, 16));\r\n\t\t//frame.setIconImage(\r\n\t\t//\t\tToolkit.getDefaultToolkit().getImage(Loginwindow.class.getResource(\"/RetailProduct/mymain.png\")));\r\n\t\t// frame.setIconImage(Toolkit.getDefaultToolkit().getImage(Loginwindow.class.getResource(\"/RetailProduct/mymainIcon7.ICO\")));\r\n\t\tframe.setFocusableWindowState(true);\r\n\r\n\t}",
"@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(changeBibtexDatabase);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, changeBibtexDatabase, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tchangeBibtexDatabase.setEnabled();\n\t\t\t\t\tbutton.setEnabled(changeBibtexDatabase.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public Lent() {\n\t\tinitComponents();\n\t\tthis.setBounds(150, 50, 1050, 650);\n\t\t//设置背景\n\t\tsetBackgroudImage();\n\t\t//窗体大小不可变\n\t\tthis.setResizable(false);\n\t\t//设置窗体图标\n\t\tToolkit tool = this.getToolkit(); //得到一个Toolkit对象\n\t\tImage myimage = tool.getImage(\"img/4.png\"); //由tool获取图像\n\t\tthis.setIconImage(myimage);\n\t}",
"public void bulleRouge() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_rouge.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}",
"void onChange_placeholder_xjal(ShapeRadioButtonGroup oldValue) {}",
"protected void addActivePathToolbarButton ()\n {\n\n }",
"public JLabel getStatusbarLabel()\r\n {\r\n return lbStatusbar;\r\n }",
"void updateChevron() {\n if ( control != null ) {\n int width = itemBounds.width;\n if ( (style & SWT.DROP_DOWN) != 0 && width < preferredWidth ) {\n if ( chevron == null ) {\n chevron = new ToolBar( parent, SWT.FLAT | SWT.NO_FOCUS );\n chevron.setBackground( Graphics.getColor( 255, 0, 0 ) );\n ToolItem toolItem = new ToolItem( chevron, SWT.PUSH );\n toolItem.addListener( SWT.Selection, new Listener() {\n public void handleEvent( Event event ) {\n CoolItem.this.onSelection( event );\n }\n } );\n }\n int controlHeight, currentImageHeight = 0;\n if ( (parent.style & SWT.VERTICAL) != 0 ) {\n controlHeight = control.getSize().x;\n if ( arrowImage != null )\n currentImageHeight = arrowImage.getBounds().width;\n } else {\n controlHeight = control.getSize().y;\n if ( arrowImage != null )\n currentImageHeight = arrowImage.getBounds().height;\n }\n int height = Math.min( controlHeight, itemBounds.height );\n int imageHeight = Math.max( 1, height - CHEVRON_VERTICAL_TRIM );\n if ( currentImageHeight != imageHeight ) {\n // Image image = createArrowImage (CHEVRON_IMAGE_WIDTH, imageHeight);\n Image image = Graphics.getImage( \"resource/widget/rap/coolitem/chevron.gif\",\n getClass().getClassLoader() );\n chevron.getItem( 0 ).setImage( image );\n // if (arrowImage != null) arrowImage.dispose ();\n arrowImage = image;\n }\n chevron.setBackground( parent.getBackground() );\n chevron.setBounds( parent.fixRectangle( itemBounds.x + width\n - CHEVRON_LEFT_MARGIN - CHEVRON_IMAGE_WIDTH\n - CHEVRON_HORIZONTAL_TRIM, itemBounds.y, CHEVRON_IMAGE_WIDTH\n + CHEVRON_HORIZONTAL_TRIM + 10, height ) );\n chevron.setVisible( true );\n } else {\n if ( chevron != null ) {\n chevron.setVisible( false );\n }\n }\n }\n }",
"protected void setBreadCrumb() {\n BreadCrumbHolder[] breadCrumbHolders = new BreadCrumbHolder[2];\n\n // common data\n HashMap<String, String> data = new HashMap<String, String>();\n data.put(Constants.User.USER_LOGIN, mUserLogin);\n data.put(Constants.Repository.REPO_NAME, mRepoName);\n\n // User\n BreadCrumbHolder b = new BreadCrumbHolder();\n b.setLabel(mUserLogin);\n b.setTag(Constants.User.USER_LOGIN);\n b.setData(data);\n breadCrumbHolders[0] = b;\n\n // Repo\n b = new BreadCrumbHolder();\n b.setLabel(mRepoName);\n b.setTag(Constants.Repository.REPO_NAME);\n b.setData(data);\n breadCrumbHolders[1] = b;\n\n createBreadcrumb(\"Branches\", breadCrumbHolders);\n }",
"public ModifyProductFrame() {\n initComponents();\n setIcon();\n }",
"public void setIcon(boolean b){\n \ttry{\n \t\tsuper.setIcon(b);\n \t}\n \tcatch(java.lang.Exception ex){\n \t\tSystem.out.println (ex);\n \t}\n \tif(!b){\n \t\tgetRootPane().setDefaultButton(jButton1);\n \t}\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setTitle(\"JUltima Toolbar\");\n setAlwaysOnTop(true);\n setFocusable(false);\n setLocationByPlatform(true);\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, 192, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 123, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public void setBrightness(float bri) {\r\n\t\thsb[2] = bri;\r\n\t}",
"private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }",
"public void applyLookAndFeel() {\n\r\n\t\tLookAndFeelInfo[] infos = UIManager.getInstalledLookAndFeels();\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"NIMBUS\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"WINDOW\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlook = (Math.abs(look) % infos.length);\r\n\r\n\t\tString lookName = infos[look].getName();\r\n\r\n\t\ttry {\r\n \t\tUIManager.setLookAndFeel(infos[look].getClassName());\r\n \t\tsetTitle(JMTKResizer.ABOUT + \" - \" + lookName);\r\n \tSwingUtilities.updateComponentTreeUI(this);\r\n \t\t//pack();\r\n\r\n \t} catch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n\t}",
"private void setUi(JCpgUI jCpgUIReference){\n\t\t\n\t\tthis.ui = jCpgUIReference;\n\t\t\n\t}",
"public Botones() {\n initComponents();\n }",
"public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }",
"@Override\n public void setFocused()\n {\n setImage(\"MinusFocused.png\");\n }",
"public SemcProjectCategoryCustomizer() {\n initComponents();\n }",
"LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }",
"private void setUpBorderPane(ICalendarAgenda agenda) {\n // Set the border pane background to white\n String style = \"-fx-background-color: rgba(255, 255, 255, 1);\";\n borderPane.setStyle(style);\n\n // Buttons\n Button increaseWeek = new Button(\">\");\n Button decreaseWeek = new Button(\"<\");\n HBox weekButtonHBox = new HBox(decreaseWeek, increaseWeek);\n weekButtonHBox.setSpacing(10);\n borderPane.setBottom(weekButtonHBox);\n\n // Weekly increase/decrease event handlers\n increaseWeek.setOnAction(event -> {\n LocalDateTime newDisplayedLocalDateTime = agenda.getDisplayedLocalDateTime().plus(Period.ofWeeks(1));\n agenda.setDisplayedLocalDateTime(newDisplayedLocalDateTime);\n });\n\n decreaseWeek.setOnAction(event -> {\n LocalDateTime newDisplayedLocalDateTime = agenda.getDisplayedLocalDateTime().minus(Period.ofWeeks(1));\n agenda.setDisplayedLocalDateTime(newDisplayedLocalDateTime);\n });\n }",
"public JRibbonAction(Icon icon)\n\t{\n\t\tsuper(icon);\n\t}",
"public void configure(T aView) { aView.setText(\"RadioButton\"); }",
"private void setBorder(TitledBorder titledBorder) {\n\n}",
"private void appearance()\r\n\t\t{\n\t\tgridLayout.setHgap(5);\r\n\t\tgridLayout.setVgap(5);\r\n\r\n\t\t//set the padding + external border with title inside the box\r\n\t\tBorder lineBorder = BorderFactory.createLineBorder(Color.BLACK);\r\n\t\tBorder outsideBorder = BorderFactory.createTitledBorder(lineBorder, title, TitledBorder.CENTER, TitledBorder.TOP);\r\n\t\tBorder marginBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);\r\n\t\tthis.setBorder(BorderFactory.createCompoundBorder(outsideBorder, marginBorder));\r\n\r\n\t\t//set initial value to builder\r\n\t\tdiceBuilder.setInterval(min, max);\r\n\t\t}",
"public abstract BossBar show();",
"public RummyUI(){\n \n //Call method initComponents\n initComponents();\n \n }",
"@Override\n\tprotected void onConfigrationTitleBar() {\n\t\tsetTitleBarTitleText(R.string.shujuxiazai);\n setTitleBarLeftImageButtonImageResource(R.drawable.title_back);\n\t}",
"public void setToolbarTitle() {\n Log.i(tag, \"set toolbar title\");\n this.toolbarGroupIcon.animate().alpha(0.0f).setDuration(150).setListener(null);\n this.toolbarTitle.animate().alpha(0.0f).setDuration(150).setListener(new AnimatorListener() {\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getGroupName());\n } else {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getName());\n }\n if (MainActivity.this.toolbarTitle.getLineCount() == 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize);\n } else if (MainActivity.this.toolbarTitle.getLineCount() > 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize - 6.0f);\n }\n MainActivity.this.toolbarTitle.animate().alpha(1.0f).setDuration(150).setListener(null);\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarGroupIcon.setVisibility(0);\n MainActivity.this.toolbarGroupIcon.animate().alpha(1.0f).setDuration(150).setListener(null);\n return;\n }\n MainActivity.this.toolbarGroupIcon.setVisibility(8);\n }\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n });\n }",
"void setControlPalette(ControlPalette controlPalette);",
"public SkillBar(WBC wbc){\n this.wbc=wbc;\n this.setLayout(null);\n \n setSkillUnable(0);\n setSkillUnable(1);\n setSkillUnable(2);\n setSkillUnable(3);\n \n skill1Label.setBounds( 0, 0, 154, 154);\n skill2Label.setBounds(154, 0, 154, 154);\n skill3Label.setBounds(308, 0, 154, 154);\n skill4Label.setBounds(462, 0, 154, 154);\n \n this.add(skill1Label); \n this.add(skill2Label);\n this.add(skill3Label);\n this.add(skill4Label);\n }",
"@Override\n\tpublic LookAndFeelMenu createLookAndFeelMenu() {\n\t\treturn null;\n\t}",
"private ButtonPane()\r\n\t\t\t{ super(new String[]{\"OK\",\"Cancel\"},1,2); }",
"public bankacc() {\n initComponents();uid_LB.setVisible(false);\n getContentPane().setBackground(new Color(51,0,204));\n }",
"private void setAttributes() {\n this.setVisible(true);\n this.setSize(500, 500);\n this.setTitle(\"cuttco.com\");\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\n }",
"void setToolbar(int toolbarTemp) {\n\n }",
"private void createToolBar() {\r\n toolbar = new JToolBar();\r\n inbox = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.INBOX_ICON)), \"Maintain Inbox\", \"Maintain Inbox\");\r\n awards = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.AWARDS_ICON)), \"Maintain Awards\", \"Maintain Awards\");\r\n proposal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_ICON)), \"Maintain InstituteProposals\", \"Maintain Institute Proposals\");\r\n proposalDevelopment = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_DEVELOPMENT_ICON)), \"Maintain ProposalDevelopment\", \"Maintain Proposal Development\");\r\n rolodex = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.ROLODEX_ICON)), \"Maintain Rolodex\", \"Maintain Rolodex\");\r\n sponsor = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SPONSOR_ICON)), \"Maintain Sponsor\", \"Maintain Sponsor\");\r\n subContract = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SUBCONTRACT_ICON)), \"Maintain SubContract\", \"Maintain Subcontract\");\r\n negotiations = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.NEGOTIATIONS_ICON)), \"Maintain Negotiations\", \"Maintain Negotiations\");\r\n buisnessRules = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.BUSINESS_RULES_ICON)), \"Maintain BusinessRules\", \"Maintain Business Rules\");\r\n map = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.MAP_ICON)), \"Maintain Map\", \"Maintain Map\");\r\n personnal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PERSONNAL_ICON)), \"Maintain Personal\", \"Maintain Personnel\");\r\n users = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.USERS_ICON)), \"Maintain Users\", \"Maintain Users\");\r\n unitHierarchy = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.UNIT_HIERARCHY_ICON)), \"Maintain UnitHierarchy\", \"Maintain Unit Hierarchy\");\r\n cascade = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.CASCADE_ICON)), \"Cascade\", \"Cascade\");\r\n tileHorizontal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_HORIZONTAL_ICON)), \"Tile Horizontal\", \"Tile Horizontal\");\r\n tileVertical = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_VERTICAL_ICON)), \"Tile Vertical\", \"Tile Vertical\");\r\n layer = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.LAYER_ICON)), \"Layer\", \"Layer\");\r\n \r\n /*Added Icons are Committe,Protocol,Shedule. The Icons are different.Non-availability of standard Icon - Chandrashekar*/\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n /* JM 05-02-2013\r\n irbProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_ICON)), \"Protocol\", \"IRB Protocol\");\r\n \r\n irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n /* JM 05-02-2013\r\n schedule = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SCHEDULE_ICON)), \"Schedule\", \"Schedule\");\r\n committee = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.COMMITTEE_ICON)), \"Committee\", \"Committee\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n //irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n // getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n iacucProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_ICON)), \"Protocol\", \"IACUC Protocol\");\r\n \r\n iacucProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IACUC Protocol Submission\");\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.HELP_ICON)), \"Contact Coeus Help\", \"Contact Coeus Help\");\r\n /* JM END */\r\n \r\n exit = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.EXIT_ICON)), \"Exit\", \"Exit\");\r\n \r\n \r\n toolbar.add(inbox);\r\n toolbar.addSeparator();\r\n toolbar.add(awards);\r\n toolbar.add(proposal);\r\n toolbar.add(proposalDevelopment);\r\n toolbar.add(rolodex);\r\n toolbar.add(sponsor);\r\n toolbar.add(subContract);\r\n toolbar.add(negotiations);\r\n toolbar.add(buisnessRules);\r\n toolbar.add(map);\r\n toolbar.add(personnal);\r\n toolbar.add(users);\r\n toolbar.add(unitHierarchy);\r\n \r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n toolbar.add(irbProtocol);\r\n toolbar.add(irbProtocolSubmission);\r\n \r\n toolbar.add(schedule);\r\n toolbar.add(committee);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n toolbar.add(iacucProtocol);\r\n toolbar.add(iacucProtocolSubmission);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n toolbar.addSeparator();\r\n toolbar.add(cascade);\r\n toolbar.add(tileHorizontal);\r\n toolbar.add(tileVertical);\r\n toolbar.add(layer);\r\n toolbar.addSeparator();\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n toolbar.add(contactCoeusHelp);\r\n toolbar.addSeparator();\r\n /* JM END */\r\n \r\n toolbar.add(exit);\r\n \r\n toolbar.setFloatable(false);\r\n setTextLabels(false);\r\n MouseListener pl = new PopupListener();\r\n cpm = new CoeusPopupMenu();\r\n toolbar.addMouseListener(pl);\r\n \r\n inbox.addActionListener(this);\r\n awards.addActionListener(this);\r\n proposal.addActionListener(this);\r\n proposalDevelopment.addActionListener(this);\r\n rolodex.addActionListener(this);\r\n sponsor.addActionListener(this);\r\n subContract.addActionListener(this);\r\n negotiations.addActionListener(this);\r\n buisnessRules.addActionListener(this);\r\n map.addActionListener(this);\r\n personnal.addActionListener(this);\r\n users.addActionListener(this);\r\n unitHierarchy.addActionListener(this);\r\n cascade.addActionListener(this);\r\n tileHorizontal.addActionListener(this);\r\n tileVertical.addActionListener(this);\r\n layer.addActionListener(this);\r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n irbProtocol.addActionListener(this);\r\n schedule.addActionListener(this);\r\n committee.addActionListener(this);\r\n irbProtocolSubmission.addActionListener(this);\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n iacucProtocol.addActionListener(this);\r\n iacucProtocolSubmission.addActionListener(this); */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp.addActionListener(this);\r\n /* JM END */\r\n \r\n exit.addActionListener(this);\r\n }",
"public BoutonPanel() {\n initComponents();\n type_ligne.setSelectedIndex(0);\n libre.setSelected(true);\n libre.setBorder(BorderFactory.createEmptyBorder());\n libre.setContentAreaFilled(false);\n\n ligne.setBorder(BorderFactory.createEmptyBorder());\n ligne.setContentAreaFilled(false);\n\n rectangle.setBorder(BorderFactory.createEmptyBorder());\n rectangle.setContentAreaFilled(false);\n\n cercle.setBorder(BorderFactory.createEmptyBorder());\n cercle.setContentAreaFilled(false);\n\n selection.setBorder(BorderFactory.createEmptyBorder());\n selection.setContentAreaFilled(false);\n\n remplissage.setBorder(BorderFactory.createEmptyBorder());\n remplissage.setContentAreaFilled(false);\n\n couleur.setBorder(BorderFactory.createEmptyBorder());\n couleur.setContentAreaFilled(false);\n\n b = new ButtonGroup();\n b.add(libre);\n b.add(ligne);\n b.add(rectangle);\n b.add(cercle);\n // b.add(jToggleButton5);\n if (libre.isSelected()) {\n libre.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/libres.png\")));\n } else {\n libre.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/libre.png\")));\n }\n\n }",
"public void setRefreshMenu() {\n }",
"public void arreglarBoton()\r\n\t{\r\n\t\tthis.setBorder(BorderFactory.createLineBorder(Color.white, 4));\r\n\t\tthis.setFont(new Font(\"Arial\", Font.BOLD, 17));\r\n\t}",
"protected abstract void setGUIAttributesHelper();",
"public BossBar(TAB tab) {\n\t\tthis.tab = tab;\n\t\tdisabledWorlds = tab.getConfiguration().getConfig().getStringList(\"disable-features-in-\"+tab.getPlatform().getSeparatorType()+\"s.bossbar\", Arrays.asList(\"disabled\" + tab.getPlatform().getSeparatorType()));\n\t\ttoggleCommand = tab.getConfiguration().getBossbarConfig().getString(\"bossbar-toggle-command\", \"/bossbar\");\n\t\tdefaultBars = tab.getConfiguration().getBossbarConfig().getStringList(\"default-bars\", new ArrayList<>());\n\t\tpermToToggle = tab.getConfiguration().getBossbarConfig().getBoolean(\"permission-required-to-toggle\", false);\n\t\thiddenByDefault = tab.getConfiguration().getBossbarConfig().getBoolean(\"hidden-by-default\", false);\n\t\tperWorld = tab.getConfiguration().getBossbarConfig().getConfigurationSection(\"per-world\");\n\t\tfor (Object bar : tab.getConfiguration().getBossbarConfig().getConfigurationSection(\"bars\").keySet()){\n\t\t\tgetLines().put(bar.toString(), BossBarLine.fromConfig(bar.toString()));\n\t\t}\n\t\tfor (String bar : new ArrayList<>(defaultBars)) {\n\t\t\tif (getLines().get(bar) == null) {\n\t\t\t\ttab.getErrorManager().startupWarn(\"BossBar \\\"&e\" + bar + \"&c\\\" is defined as default bar, but does not exist! &bIgnoring.\");\n\t\t\t\tdefaultBars.remove(bar);\n\t\t\t}\n\t\t}\n\t\tfor (Entry<String, List<String>> entry : perWorld.entrySet()) {\n\t\t\tList<String> bars = entry.getValue();\n\t\t\tfor (String bar : new ArrayList<>(bars)) {\n\t\t\t\tif (getLines().get(bar) == null) {\n\t\t\t\t\ttab.getErrorManager().startupWarn(\"BossBar \\\"&e\" + bar + \"&c\\\" is defined as per-world bar in world &e\" + entry.getKey() + \"&c, but does not exist! &bIgnoring.\");\n\t\t\t\t\tbars.remove(bar);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trememberToggleChoice = tab.getConfiguration().getBossbarConfig().getBoolean(\"remember-toggle-choice\", false);\n\t\tif (isRememberToggleChoice()) {\n\t\t\tbossbarOffPlayers = tab.getConfiguration().getPlayerData(\"bossbar-off\");\n\t\t}\n\t\tTAB.getInstance().getPlaceholderManager().getAllUsedPlaceholderIdentifiers().add(\"%countdown%\");\n\t\tTAB.getInstance().getPlaceholderManager().registerPlaceholder(new ServerPlaceholder(\"%countdown%\", 100) {\n\n\t\t\t@Override\n\t\t\tpublic String get() {\n\t\t\t\treturn String.valueOf((getAnnounceEndTime() - System.currentTimeMillis()) / 1000);\n\t\t\t}\n\t\t});\n\t\ttab.debug(String.format(\"Loaded Bossbar feature with parameters disabledWorlds=%s, toggleCommand=%s, defaultBars=%s, permToToggle=%s, hiddenByDefault=%s, perWorld=%s, remember_toggle_choice=%s\",\n\t\t\t\tdisabledWorlds, toggleCommand, defaultBars, isPermToToggle(), hiddenByDefault, perWorld, isRememberToggleChoice()));\n\t}",
"public BookItemMenu setBarButton ( int index , Item button ) {\n\t\tthis.buttonsRangeCheck ( index , index );\n\t\tthis.bar_buttons[ index ] = button;\n\t\treturn this;\n\t}",
"private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}",
"public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }",
"protected void setBreadCrumb() {\n BreadCrumbHolder[] breadCrumbHolders = new BreadCrumbHolder[2];\n\n // common data\n HashMap<String, String> data = new HashMap<String, String>();\n data.put(Constants.User.USER_LOGIN, mUserLogin);\n data.put(Constants.Repository.REPO_NAME, mRepoName);\n\n // User\n BreadCrumbHolder b = new BreadCrumbHolder();\n b.setLabel(mUserLogin);\n b.setTag(Constants.User.USER_LOGIN);\n b.setData(data);\n breadCrumbHolders[0] = b;\n\n // Repo\n b = new BreadCrumbHolder();\n b.setLabel(mRepoName);\n b.setTag(Constants.Repository.REPO_NAME);\n b.setData(data);\n breadCrumbHolders[1] = b;\n\n createBreadcrumb(State.valueOf(mState).name() + \" Pull Requests\", breadCrumbHolders);\n }",
"public ControlDeveloperView(){\n\t\tsuper (\"Control-Developer\");\n\t\tcdvMB = new ControlDeveloperMenuBar(this);\n\t\tsetJMenuBar(cdvMB);\n\t}",
"@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }",
"BossBar createBossBar(String title, float health, BossColor color, BossStyle style);",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"public JStatusbarFrame(String title) {\r\n super(title);\r\n Container cp = super.getContentPane();\r\n cp.setLayout(new BorderLayout());\r\n cp.add(pClient = new JPanel(), BorderLayout.CENTER);\r\n cp.add(lbStatusbar = new JLabel(), BorderLayout.SOUTH);\r\n }",
"private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }",
"public ThorTab setBackgroundImage(String bckName)\n\t{\n\t\tthis.setBackgroundImageName(bckName + \".png\");\n\t\treturn this;\n\t}",
"public RibbonGalleryUI getUI() {\n return (RibbonGalleryUI) ui;\n }"
] | [
"0.6660339",
"0.6617368",
"0.6460687",
"0.641219",
"0.63600487",
"0.63362104",
"0.62353176",
"0.62180436",
"0.61082035",
"0.6051342",
"0.60019344",
"0.59699863",
"0.5929318",
"0.5765544",
"0.5699266",
"0.551448",
"0.5447474",
"0.52981067",
"0.5208045",
"0.51840603",
"0.51664793",
"0.5063973",
"0.5027723",
"0.49828213",
"0.4982807",
"0.49061868",
"0.4868695",
"0.4867749",
"0.48630342",
"0.4845803",
"0.48419756",
"0.48128286",
"0.48107478",
"0.47703037",
"0.47692445",
"0.47580323",
"0.47222415",
"0.47122943",
"0.4705973",
"0.47007143",
"0.4693991",
"0.468366",
"0.4668013",
"0.46631268",
"0.46500427",
"0.46476927",
"0.4621707",
"0.46203735",
"0.46191338",
"0.46168524",
"0.4615183",
"0.4592456",
"0.458701",
"0.45863044",
"0.45846522",
"0.45799044",
"0.45753074",
"0.4574672",
"0.45618662",
"0.4552529",
"0.45519394",
"0.45490253",
"0.45442232",
"0.45391396",
"0.45359617",
"0.45348766",
"0.4533352",
"0.4518811",
"0.4515598",
"0.45146024",
"0.45138577",
"0.4511554",
"0.450639",
"0.45029223",
"0.45020658",
"0.4500642",
"0.44975433",
"0.4487914",
"0.44813767",
"0.4473814",
"0.44735694",
"0.44731104",
"0.44721353",
"0.44719175",
"0.44706184",
"0.4464694",
"0.44645214",
"0.44622654",
"0.4462172",
"0.44617656",
"0.4461554",
"0.44587284",
"0.445259",
"0.44494882",
"0.4444585",
"0.4444585",
"0.44427088",
"0.44347128",
"0.44293398",
"0.44280365"
] | 0.74838483 | 0 |
Invoked when an action occurs. | public void execute(ActionEvent e)
{
if (ribbonComponent == null)
{
try
{
ribbonComponent = (IRibbonComponent) Class.forName(ribbonComponentClass).newInstance();
}
catch (NullPointerException ex)
{
ExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString("component_initialization_failed") + " [" + ribbonComponentClass + "]", ex);
ex.printStackTrace();
return;
}
catch (ClassCastException ex)
{
ExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString("component_implementation_failed") + " " + IRibbonComponent.class.getSimpleName() + " [" + ribbonComponentClass + "]", ex);
ex.printStackTrace();
return;
}
catch (Exception ex)
{
ExceptionTracer.traceException(HandleManager.getFrame(ribbonContainer), SwingLocale.getString("component_instantiation_failed") + " [" + ribbonComponentClass + "]", ex);
ex.printStackTrace();
return;
}
}
ribbonContainer.addRibbonComponent(ribbonName, ribbonTitle, ribbonIcon, ribbonToolTipText, ribbonComponent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"public abstract void onAction();",
"public void action() {\n action.action();\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\n\tpublic void onActionStart(int action) {\n\t\t\n\t}",
"public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n handleAction();\n }",
"@Override\n\tpublic void HandleEvent(int action) {\n\t\tsetActiveAction(action);\n\t\tSystem.out.println(\"action is :\" + action);\n\t\t\n\t}",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"@Override\n\tpublic void action() {\n\n\t}",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}",
"void noteActionEvaluationStarted(ActionLookupData actionLookupData, Action action);",
"public void performAction();",
"void actionCompleted(ActionLookupData actionLookupData);",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"public void doAction(){}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"void actionChanged( final ActionAdapter action );",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }",
"@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void handleAction(Action action, Object sender, Object target) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.out.print(\"Action: \" + e.getActionCommand() + \"\\n\");\n\t\t\t\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"public void executeAction( String actionInfo );",
"abstract public void performAction();",
"public void initiateAction() {\r\n\t\t// TODO Auto-generated method stub\t\r\n\t}",
"@Override\r\n\tpublic void performAction(Event e) {\n\r\n\t}",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"public void action() {\n }",
"@Override\n\tpublic void newAction() {\n\t\t\n\t}",
"@Override\r\n protected void doActionDelegate(int actionId)\r\n {\n \r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n action.actionPerformed(e);\n }",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"public void doInitialAction(){}",
"@Override\n public void actionOccured(Perspective perspective, ActionDescription action) {\n\n }",
"void handleActionEvent(ActionEvent event);",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\taddAction();\n\t\t\t}",
"public void processAction(CIDAction action);",
"public void postActionEvent() {\n fireActionPerformed();\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tSystem.out.println(\"Got an M\");\n\t}",
"public void notifyNewAction(Action action){\n\t\tnotifyObservers(action);\n\t}",
"protected void takeAction() {\n lastAction = System.currentTimeMillis();\n }",
"@Override\n public void onPressed(Action action) {\n // pass the message on\n notifyOnPress(action);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void handleEventAgentAction(Agent agent, Action action) {\n\t\t// TODO: verify the agent is \"authorised\" to execute this action\n\t\tengine.submitAction(action);\n\t\t\n\t\t// TODO: handle response to Action, ie. callback... direct it back to the Agent.\n\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }",
"public void run(IAction action) {\n\t\tMessageDialog.openInformation(window.getShell(), \"AccTrace\",\n\t\t\t\t\"Hello, Eclipse world\");\n\t}",
"@Override\n protected void doAct() {\n }",
"public void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}",
"@Override\n\tpublic void setAction() {\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n public void onAction(RPObject player, RPAction action) {\n }",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"@Override\n public void accept(Action action) {\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t}",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"public void performAction(HandlerData actionInfo) throws ActionException;",
"public void actionPerformed( ActionEvent event )\n {\n \n }",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"String getOnAction();",
"public void act() \n {\n // Add your action code here.\n tempoUp();\n }",
"public void setAction(String action) { this.action = action; }",
"@Override\n\t public void actionPerformed(ActionEvent e){\n\t }",
"@Override\n public void act() {\n }",
"public void actionStarted(ActionStreamEvent action);",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\n\tpublic void actionHandler(Actions action, int arg1, int arg2) {\n\t\tlogic.actionHandler(action, arg1, arg2);\n\t}",
"@Override public void handle(ActionEvent e)\n\t {\n\t }",
"private void entryAction() {\n\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.out.println(\"156161\");\r\n\t\t\t}"
] | [
"0.7906935",
"0.77752256",
"0.7643283",
"0.7612123",
"0.7612123",
"0.7612123",
"0.7516773",
"0.7489443",
"0.741914",
"0.74124837",
"0.74034166",
"0.7384085",
"0.7358812",
"0.7358812",
"0.73434424",
"0.73405117",
"0.73405117",
"0.73405117",
"0.73405117",
"0.73405117",
"0.73405117",
"0.73405117",
"0.73405117",
"0.72081953",
"0.71726453",
"0.71655774",
"0.71616477",
"0.7133052",
"0.71143097",
"0.70973617",
"0.70918494",
"0.7061433",
"0.70494664",
"0.70417815",
"0.7005639",
"0.70029485",
"0.6977895",
"0.6965702",
"0.6931872",
"0.6931872",
"0.6928126",
"0.6925928",
"0.6923822",
"0.69231653",
"0.6917241",
"0.688869",
"0.6886404",
"0.6860769",
"0.6845373",
"0.6845373",
"0.68435776",
"0.6832443",
"0.682328",
"0.6817144",
"0.6814507",
"0.6813441",
"0.68063885",
"0.6801105",
"0.6797086",
"0.6795144",
"0.67717934",
"0.67565066",
"0.6753571",
"0.6750224",
"0.6740217",
"0.673814",
"0.6738091",
"0.67355424",
"0.6734267",
"0.672801",
"0.672801",
"0.67278165",
"0.672455",
"0.6712399",
"0.6711224",
"0.6711224",
"0.67084426",
"0.67084426",
"0.67084426",
"0.67084426",
"0.66995174",
"0.66995174",
"0.66995174",
"0.66995174",
"0.66995174",
"0.66995174",
"0.6669988",
"0.66629195",
"0.6661334",
"0.6660363",
"0.6658601",
"0.66563946",
"0.6644859",
"0.6643237",
"0.6636542",
"0.6629066",
"0.6628422",
"0.6610122",
"0.65930194",
"0.65927374",
"0.6591719"
] | 0.0 | -1 |
When Update Button is clicked | public void actionPerformed(ActionEvent e) {
if(e.getActionCommand().equals("Update")){
httpmethods httpmethods = new httpmethods();
//Store textfield text in string
String itemID = txtItemID.getText();
String itemName = txtItemName.getText();
String itemType = txtItemType.getText();
String itemPrice = txtItemPrice.getText();
String itemStock = txtItemStock.getText();
//Read method
Item it = httpmethods.findItem(itemID);
//booleans for checking valid input
boolean nameCheck, priceCheck, stockCheck, typecheck;
if(itemType==null || !itemType.matches("[a-zA-Z]+")){
typecheck = false;
txtItemType.setText("Invalid Type Input");
}
else{
typecheck = true;
}
if(!itemName.matches("[a-zA-Z0-9]+")){
nameCheck = false;
txtItemName.setText("Invalid Name Input");
}
else{
nameCheck = true;
}
if(GenericHelper.validNumber(itemPrice)){
priceCheck = true;
}
else{
priceCheck = false;
txtItemPrice.setText("Invalid Price Input");
}
if(GenericHelper.validNumber(itemStock)){
stockCheck = true;
}
else{
stockCheck = false;
txtItemStock.setText("Invalid Stock Input");
}
//If all are valid then call update httpmethod
if(nameCheck && typecheck && priceCheck && stockCheck){
double ditemPrice = Double.parseDouble(itemPrice);
double ditemStock = Double.parseDouble(itemStock);
item = new Item.Builder().copy(it).itemName(itemName).itemType(itemType).itemPrice(ditemPrice).itemStock(ditemStock).builder();
httpmethods.updateItem(item);
txtItemName.setText("");
txtItemType.setText("");
txtItemPrice.setText("");
txtItemStock.setText("");
JOptionPane.showMessageDialog(null, "Item Updated");
}
}
//When Get Info Button is clicked
if(e.getActionCommand().equals("Get Info")){
boolean idCheck;
//Use read method of readitemgui
String id = txtItemID.getText();
httpmethods httpmethods = new httpmethods();
Item it = httpmethods.findItem(id);
txtItemName.setText(it.getItemName());
txtItemType.setText(it.getItemType());
//Doubles are stored in string without decimals
String price = String.valueOf(it.getItemPrice()).split("\\.")[0];;
String stock = String.valueOf(it.getItemStock()).split("\\.")[0];
txtItemPrice.setText(price);
txtItemStock.setText(stock);
}
//When Clear Button is clicked
if(e.getActionCommand().equals("Clear")){
txtItemID.setText("");
txtItemName.setText("");
txtItemType.setText("");
txtItemPrice.setText("");
txtItemStock.setText("");
}
//When Exit Button is clicked
if(e.getActionCommand().equals("Exit")){
UpdateItemFrame.dispose();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }",
"public void clickOnUpdateButton() {\r\n\t\tsafeJavaScriptClick(updateButton);\r\n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\topenUpdate();\n\t\t}",
"private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n app.updateStatusBayar(tran.getNoResi(), getCbBayar());\n JOptionPane.showMessageDialog(null, \"Update Status Bayar Berhasil\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }",
"public void update(){}",
"public void update(){}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}",
"public void updateUI(){}",
"private Component updateButton(){\n return updatePersonButton = new Button(\"updateButton\"){\n @Override\n public void onSubmit() {\n super.onSubmit();\n }\n };\n }",
"public void update() {}",
"public void onUpdateButtonClick() {\n androidUserService.updateUser(userLoc.getUser().getId())\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe();\n }",
"public void update(){\r\n }",
"@Override\n public void update() {\n this.blnDoUpdate.set(true);\n }",
"public void update() ;",
"public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }",
"public void update() {\n }",
"public void update() {\n\n }",
"public void update() {\n\n }",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update(){\r\n\t\t\r\n\t}",
"boolean update();",
"public Update_info() {\n initComponents();\n display_data();\n }",
"public void update() {\r\n\t\t\r\n\t}",
"public void update(){\n }",
"private void setupUpdateButton() {\n\n /* Get the button */\n Button updateButton = this.getStatusUpdateButton();\n\n /* Setup listener */\n View.OnClickListener updateButtonClicked = new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n statusUpdater.updateStatus();\n }\n };\n\n /* Set listener to button */\n updateButton.setOnClickListener(updateButtonClicked);\n }",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\n\t\tdisplay();\n\t}",
"public void update() {\n\t\t\n\t}",
"public void addUpdateBtn() {\n if (isInputValid()) {\n if ( action.equals(Constants.ADD) ) {\n addCustomer(createCustomerData());\n } else if ( action.equals(Constants.UPDATE) ){\n updateCustomer(createCustomerData());\n }\n cancel();\n }\n }",
"public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}",
"void updateControls();",
"void updateView();",
"void updateView();",
"private void refreshButtonClicked(ActionEvent event) {\n\n PriceFinder refreshedPrice = new PriceFinder(); // generates a new price to set as a temp item's new price\n\n itemView.testItem.setPrice(refreshedPrice.returnNewPrice());\n configureUI(); // essentially pushes the new item information to the panel\n\n showMessage(\"Item price updated! \");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\r\n\t\t\t\t\tClass.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\"); \r\n\t\t Connection con=DriverManager.getConnection(URL, USERNAME,PASSWORD);\r\n\t\t PreparedStatement pres=con.prepareStatement(\"update BorrowRecord set Status=Status+1 where Borrower_ID='\"+ID+\"' and ISBN='\"+bkinfo[0]+\"'\");\r\n\t\t pres.execute();\r\n\t\t new Borrower_win(ID);\r\n\t\t dispose();\r\n\t\t\t\t}catch (ClassNotFoundException|SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"void executeUpdate();",
"public update_Page() {\n initComponents();\n }",
"public void executeUpdate();",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"public static void updateBuildingButtonClicked() {\n Building building = tableBuilding.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = BuildingCommunication.updateBuilding(building.getId(), building.getName(), building.getOpenTime(),\n building.getCloseTime(), building.getStreetName(), building.getStreetNumber(),\n building.getZipCode(), building.getCity());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }",
"public void doUpdate() {\n \tboolean actualizo = this.update(); \n \t\n if (actualizo) {\n // this.exit();\n \n // Ver aca si direcciono a la edición ... lo hace la clase que\n \tthis.redireccion();\n \n } else {\n //new MessageWindowPane(\"Se produjo un error en la actualización\");\n }\n \n \n }",
"public void update() {\n\t\tupdate(1);\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\ttry\n\t\t\t\t{\n\n\t\t\t\t\t Class.forName(\"net.sourceforge.jtds.jdbc.Driver\");\n\t\t\t\t\t Connection con=DriverManager.getConnection(\"jdbc:jtds:sqlserver://192.168.1.7/DBVData;user=sa;password=123\"); //Server\n\t\t\t\t\t Statement stmt = con.createStatement();\n\t\t\t\t \n\t\t\t\t\t stmt.executeUpdate(\"Update EventNote set Status='\"+status+\"' where EventCode='\"+getcode+\"'\");\n\t\t\t\t\t // Toast.makeText(getBaseContext(),getcode,Toast.LENGTH_LONG).show();\n\t\t\t\t\t \n\t\t\t\t\t Toast.makeText(getBaseContext(),\"Updated Successfully\",Toast.LENGTH_LONG).show();\n finish();\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(),ex.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}",
"public void update( )\n {\n FormPortletHome.getInstance( ).update( this );\n }",
"public void update() {\n int id = this.id;\n String name = person_name.getText().toString().trim();\n if (name.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Name\", Toast.LENGTH_LONG).show();\n return;\n }\n String no = contact_no.getText().toString().trim();\n if (no.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Contact No.\", Toast.LENGTH_LONG).show();\n return;\n }\n String nickname = nickName.getText().toString().trim();\n if (nickname.equals(\"\")) {\n nickname = \"N/A\";\n }\n String Custno = rootNo.getText().toString().trim();\n if (Custno.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Customer No.\", Toast.LENGTH_LONG).show();\n return;\n }\n float custNo = Float.parseFloat(Custno);\n\n String Fees = monthly_fees.getText().toString().trim();\n if (Fees.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the monthly fees\", Toast.LENGTH_LONG).show();\n return;\n }\n int fees = Integer.parseInt(Fees);\n\n String Balance = balance_.getText().toString().trim();\n if (Balance.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the balance\", Toast.LENGTH_LONG).show();\n return;\n }\n int balance = Integer.parseInt(Balance);\n String date = startdate.getText().toString().trim();\n if (startdate.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Start Date\", Toast.LENGTH_LONG).show();\n return;\n }\n\n\n dbHendler.updateInfo(new PersonInfo(id, name, no, custNo, fees, balance, areaId, date, nickname));\n person_name.setText(\"\");\n contact_no.setText(\"\");\n rootNo.setText(\"\");\n monthly_fees.setText(\"\");\n balance_.setText(\"\");\n nickName.setText(\"\");\n //changeButton.setEnabled(false);\n finish();\n viewAll();\n\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\ttry {\n\t\t\t\tupdate();\n\t\t\t} catch (MyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public void updateCheck(){\n\t\tnew UpdateHandler.Builder(ChefDashboardActivity.this)\n\t\t\t\t.setContent(\"New Version Found\")\n\t\t\t\t.setTitle(\"Update Found\")\n\t\t\t\t.setUpdateText(\"Yes\")\n\t\t\t\t.setCancelText(\"No\")\n\t\t\t\t.showDefaultAlert(true)\n\t\t\t\t.showWhatsNew(true)\n\t\t\t\t.setCheckerCount(2)\n\t\t\t\t.setOnUpdateFoundLister(new UpdateHandler.Builder.UpdateListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t\t//tv.setText(tv.getText() + \"\\n\\nUpdate Found : \" + newVersion + \"\\n\\nWhat's New\\n\" + whatsNew);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnUpdateClickLister(new UpdateHandler.Builder.UpdateClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onUpdateClick(boolean newVersion, String whatsNew) {\n\t\t\t\t\t\tLog.v(\"onUpdateClick\", String.valueOf(newVersion));\n\t\t\t\t\t\tLog.v(\"onUpdateClick\", whatsNew);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnCancelClickLister(new UpdateHandler.Builder.UpdateCancelListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancelClick() {\n\t\t\t\t\t\tLog.v(\"onCancelClick\", \"Cancelled\");\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.build();\n\t}",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"public JButton getJbUpdate() {\n\t\tif(jbUpdate==null){\n\t\t\tjbUpdate = new JButton(\"Update\");\n\t\t\tjbUpdate.setPreferredSize(new Dimension(120,25));\n\t\t\tjbUpdate.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\tjbUpdate.addMouseListener(new MouseListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tjbUpdate.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tjbUpdate.setBackground(ColorProject.COLOR_BLUE.getCol().brighter());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t}\n\t\t\t});\n\t\t\tjbUpdate.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tint indice = getJtUser().getSelectedRow();\n\t\t\t\t\t//vérifie qu'il y a bien un user sélectionné\n\t\t\t\t\tif(indice==-1){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"No user selected\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t//vérifie qu'il ne sagit pas des users \"guest', \"admin\", ou \"user\"\n\t\t\t\t\telse if(GestionUser.getInstance().getUsers(indice).equals(\"user\") || GestionUser.getInstance().getUsers(indice).equals(\"guest\")){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"You can't upate this user\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t//vérfie si le user sélectionné est déjà admin ou non\n\t\t\t\t\telse if(GestionUser.getInstance().getUsers(indice).isAdmin()==true){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"This user is already an admin\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\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//demande à l'admin si il est sur de vouloir update le statut de l'user\n\t\t\t\t\t\tif(indice!=-1){\n\t\t\t\t\t\t\tGestionUser.getInstance().getUsers(indice).setAdmin(true);\n\t\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this, \"This user has been updated\",\"User updated\",JOptionPane.DEFAULT_OPTION,JOptionPane.INFORMATION_MESSAGE);\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\tJOptionPane.showConfirmDialog(ListeUser.this, \"No user selected\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jbUpdate;\n\t}",
"public void updateBook(View view){\n update();\n }",
"private void updateBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseClicked\n String id = pidTxt.getText().toString();\n String name = pnameTxt.getText().toString();\n String price = pperpriceTxt.getText().toString();\n String quantity = pquanityTxt.getText().toString();\n String date = pdateTxt.getText().toString();\n\n try {\n String Query = \"UPDATE `stock` SET `Product_Name`=?,`Quantity`=?,`Entry_Date`=?,`Price`=? Where `Product_ID`=?\";\n\n pstm = con.prepareStatement(Query);\n\n pstm.setString(1, name);\n\n pstm.setInt(2, Integer.parseInt(quantity));\n pstm.setString(3, date);\n pstm.setInt(4, Integer.parseInt(price));\n pstm.setInt(5, Integer.parseInt(id));\n pstm.executeUpdate();\n } catch (Exception ex) {\n\n JOptionPane.showMessageDialog(null, \"Data Not Found To be Updated\");\n }\n\n //Refersh Table\n refTable();\n\n }",
"void updateInformation();",
"@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"protected void onUpdate() {\r\n\r\n\t}",
"void successUiUpdater();",
"private void tbupdateActionPerformed(java.awt.event.ActionEvent evt) {\n LayDuLieuTrongMang();\n frame2();\n \n \n }",
"private void updateButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_updateButtonActionPerformed\n try {\n ContactInfo contactInfo = new ContactInfo(nameField.getText(), phoneField.getText(), emailField.getText(), addressField.getText(), imageTitle);\n new DbConnection().edit(oldPhoneNumber, contactInfo);\n ImageSaver.saveImage(selectedFilePath, imageTitle);\n new File(\"images\\\\\" + oldImageTitle).delete();\n mainWindow.refreshList();\n this.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void receivedUpdateFromServer();",
"public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }",
"protected abstract void update();",
"protected abstract void update();",
"public void checkForUpdate();",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"private void update()\n {\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"UPDATE\");\n updateHumanPlayerMoney();\n updateListViewDoctorItems();\n updateListViewHospitalItems();\n updateListViewLogWindow();\n updateListViewComputerPlayer();\n load_figure();\n updateComputerPlayerMoney();\n }\n });\n }",
"public void update() {\r\n\r\n // update attributes\r\n finishIcon.setColored(isDirty());\r\n cancelIcon.setColored(isDirty());\r\n finishButton.repaint();\r\n cancelButton.repaint();\r\n\r\n }",
"private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }",
"protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnUpdate\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-update-select\" + i);\n\t\t\t\t\tSystem.out.println(\"row-update-supp-id\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\t\t\t\t\tString suppName = textSuppName.getText();\n\t\t\t\t\tString suppAddr = textSuppAddr.getText();\n\t\t\t\t\tString suppPhone = textSuppPhone.getText();\n\t\t\t\t\tString suppEmail = textSuppEmail.getText();\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppModel.setName(suppName);\n\t\t\t\t\tsuppModel.setAddress(suppAddr);\n\t\t\t\t\tsuppModel.setPhone(suppPhone);\n\t\t\t\t\tsuppModel.setEmail(suppEmail);\n\n\t\t\t\t\tsuppDAO.Update(suppModel);\n\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tsetTableGet(i, model);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}",
"@FXML\r\n void clickSubmit(ActionEvent event) {\r\n editid.setVisible(false);\r\n try {\r\n \r\n conn = mysqlconnect.connectDb();\r\n String value1 = txt_id.getText();\r\n String value2 = txt_name.getText();\r\n String value3 = txt_mg.getText();\r\n String value5 = txt_brand.getText();\r\n String value6 = txt_distributer.getText();\r\n String sql = \"update medicine set Medicineid='\" + value1 + \"', Name='\" + value2 + \"', Mg='\" + value3 + \"', Brand='\" + value5 + \"',Distributer='\" + value6 + \"' where Medicineid=\" + value1 + \"\";\r\n pst = conn.prepareStatement(sql);\r\n pst.execute();\r\n// JOptionPane.showMessageDialog(null, \"Update\");\r\n UpdateTable();\r\n search_user();\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, e);\r\n }\r\n }",
"public void handleUpdate(ActionEvent event) throws InterruptedException, FileNotFoundException{\r\n \t String result=tempUser.validate(newUser_Manage.getText());\r\n \t if(result.equalsIgnoreCase(\"true\")){\r\n \t\t feedback_Manage.setText(\"Username Already Exist!\");\r\n \t\t Thread.sleep(50);\r\n \t\t feedback_Manage.setText(\"\");\r\n \t\t } else {\r\n \t\t\t feedback_Manage.setText(\"Update Successful!\");\r\n \t\t\t if(newUser_Manage.getText().isEmpty()!=true)\r\n \t\t\t\t currentUser.setUserName(newUser_Manage.getText());\r\n \t\t\t if(newGoal_Manage.getText().isEmpty()!=true)\r\n \t\t\t\t currentUser.setGoal(newGoal_Manage.getText());\r\n \t\t\t Thread.sleep(100);\r\n \t\t\t this.changeView(\"../view/Main.fxml\");\r\n \t\t\t }\r\n \t }",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"public void update(Activity e){ \n\t template.update(e); \n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tnewUpdate1(DeviceNum1);\r\n\r\n\t\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"public void update(int updateType);",
"public void willbeUpdated() {\n\t\t\n\t}",
"@Override\n\tpublic void update() { }",
"public updatedata() {\n initComponents();\n }"
] | [
"0.78714746",
"0.786109",
"0.74806535",
"0.72376245",
"0.7235658",
"0.7235658",
"0.7164867",
"0.7075411",
"0.70614874",
"0.70491767",
"0.7035764",
"0.6946094",
"0.69384146",
"0.6924016",
"0.6915273",
"0.69113934",
"0.6877708",
"0.6877708",
"0.6874969",
"0.6874969",
"0.6874969",
"0.6874969",
"0.6874969",
"0.6874969",
"0.6874969",
"0.68747663",
"0.6852004",
"0.680568",
"0.6802609",
"0.67991936",
"0.67932737",
"0.67776597",
"0.67776597",
"0.67776597",
"0.67776597",
"0.6776476",
"0.6762532",
"0.67217195",
"0.6691881",
"0.6654277",
"0.6652696",
"0.6652696",
"0.66465735",
"0.66357404",
"0.6626894",
"0.6620609",
"0.65876204",
"0.65875214",
"0.6582839",
"0.65808797",
"0.6552841",
"0.65527153",
"0.65473926",
"0.6546512",
"0.65383965",
"0.65284467",
"0.6523523",
"0.6506392",
"0.64999074",
"0.64956486",
"0.6495106",
"0.6493587",
"0.64801115",
"0.64801115",
"0.64801115",
"0.64801115",
"0.64801115",
"0.64782435",
"0.6461698",
"0.64603865",
"0.6459485",
"0.6452304",
"0.6451064",
"0.64466625",
"0.64466625",
"0.64388365",
"0.6429318",
"0.6427918",
"0.64270383",
"0.6425082",
"0.6423021",
"0.6418217",
"0.6410566",
"0.640363",
"0.64003855",
"0.64003855",
"0.63912016",
"0.6388266",
"0.6381871",
"0.6381871",
"0.6381871",
"0.6379727",
"0.6379727",
"0.6379727",
"0.6379727",
"0.6379727",
"0.6379727",
"0.63745433",
"0.6372075",
"0.6362239",
"0.6360881"
] | 0.0 | -1 |
testet, ob alle States, die in der Menge members enthalten sind, Elemente des \nuAutomaten nua sind | static boolean allMembersArePartOf(Set<NuState> members, NuAutomaton nua) {
for (final NuState member : members)
if (member.nua != nua)
return false;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AdministrativeState adminsatratveState();",
"AdministrativeState adminsatratveState();",
"public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}",
"@Test\n\tpublic void testInitStatesListGameContainer() {\n\t}",
"public interface StatePac {\n\n /**\n * Identify the leaf of StatePac.\n */\n public enum LeafIdentifier {\n /**\n * Represents operationalState.\n */\n OPERATIONALSTATE(1),\n /**\n * Represents administrativeControl.\n */\n ADMINISTRATIVECONTROL(2),\n /**\n * Represents adminsatratveState.\n */\n ADMINSATRATVESTATE(3),\n /**\n * Represents lifecycleState.\n */\n LIFECYCLESTATE(4);\n\n private int leafIndex;\n\n public int getLeafIndex() {\n return leafIndex;\n }\n\n LeafIdentifier(int value) {\n this.leafIndex = value;\n }\n }\n\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n\n /**\n * Checks if the leaf value is set.\n *\n * @param leaf leaf whose value status needs to checked\n * @return result of leaf value set in object\n */\n boolean isLeafValueSet(LeafIdentifier leaf);\n\n /**\n * Checks if the leaf is set to be a selected leaf.\n *\n * @param leaf if leaf needs to be selected\n * @return result of leaf value set in object\n */\n boolean isSelectLeaf(LeafIdentifier leaf);\n\n /**\n * Builder for statePac.\n */\n interface StatePacBuilder {\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n /**\n * Returns the builder object of operationalState.\n *\n * @param operationalState value of operationalState\n * @return operationalState\n */\n StatePacBuilder operationalState(OperationalState operationalState);\n\n /**\n * Returns the builder object of administrativeControl.\n *\n * @param administrativeControl value of administrativeControl\n * @return administrativeControl\n */\n StatePacBuilder administrativeControl(AdministrativeControl administrativeControl);\n\n /**\n * Returns the builder object of adminsatratveState.\n *\n * @param adminsatratveState value of adminsatratveState\n * @return adminsatratveState\n */\n StatePacBuilder adminsatratveState(AdministrativeState adminsatratveState);\n\n /**\n * Returns the builder object of lifecycleState.\n *\n * @param lifecycleState value of lifecycleState\n * @return lifecycleState\n */\n StatePacBuilder lifecycleState(LifecycleState lifecycleState);\n\n /**\n * Returns the builder object of yangStatePacOpType.\n *\n * @param yangStatePacOpType value of yangStatePacOpType\n * @return yangStatePacOpType\n */\n StatePacBuilder yangStatePacOpType(OnosYangOpType yangStatePacOpType);\n\n /**\n * Sets the value of yangAugmentedInfo.\n *\n * @param value value of yangAugmentedInfo\n * @param classObject value of yangAugmentedInfo\n */\n StatePacBuilder addYangAugmentedInfo(Object value, Class classObject);\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n /**\n * Set a leaf to be selected.\n *\n * @param leaf leaf needs to be selected\n * @return builder object for select leaf\n */\n StatePacBuilder selectLeaf(LeafIdentifier leaf);\n\n /**\n * Builds object of statePac.\n *\n * @return statePac\n */\n StatePac build();\n }\n}",
"State(Main aMain) {\n\tmain = aMain;\n\tback = Integer.parseInt(main.myProps.getProperty(\"yesterdays\"));\n\tfront = Integer.parseInt(main.myProps.getProperty(\"tomorrows\"));\n\tmaps = new Hashtable();\n availWeath = new Hashtable();\n\n main.myFrw.listen(new MapListener(), ScaledMap.TYPE, null);\n main.myFrw.announce(this);\n stateDoc = Framework.parse(main.myPath + \"state.xml\", \"state\");\n availWeath = loadFromDoc();\n }",
"@Test\n\tpublic void validState_changeState() {\n\t\tString testState = \"OFF\";\n\t\tItem testItem = new Item().createItemFromItemName(\"lamp_woonkamer\");\n\t\ttestItem.changeState(testItem.getName(), testState);\n\t\tSystem.out.println(testItem.getState());\n\t\tassertEquals(testItem.getState(), testState);\n\t\t\n\t}",
"@Test\n public void stateExample2() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n assertEquals(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\", exampleBoard.getGameState());\n }",
"private Object getState() {\n\treturn null;\r\n}",
"@Override\n\tpublic boolean getState() {\n\t\treturn true;\n\t}",
"public States states();",
"public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}",
"public void getState();",
"@Override\n\tpublic int getState() {\n\t\treturn 0;\n\t}",
"org.landxml.schema.landXML11.StateType.Enum getState();",
"public void test1(){\r\n\t\tZug zug1 = st.zugErstellen(3, 2, \"Zug 1\");\r\n\t\tst.blockFahren();\r\n\t\tst.blockFahren();\r\n\t\tZug zug2 = st.zugErstellen(2, 3, \"Zug 2\");\r\n\t\tg.textAusgeben(\"Position Zug1: \"+zug1.getPosition()+\"\\n\"+\"Position Zug2: \"+zug2.getPosition());\r\n\t\tst.fahren();\r\n\t}",
"public int getMyNumStates() { return myNumStates; }",
"private Hashtable loadFromDoc() {\n\tHashtable tab = new Hashtable();\n\n\tNodeList tree = stateDoc.getDocumentElement().getChildNodes();\n\tfor (int i = 0; tree != null && i < tree.getLength(); i++) {\n\t NamedNodeMap attr = tree.item(i).getAttributes();\n\t if (attr != null) {\n\t\tString name = attr.getNamedItem(\"name\").getNodeValue();\n\t\ttab.put(name, new WeatherUnit(attr));\n\t }\n\t}\n\treturn tab;\n }",
"void printestateName(estateName iEstateName)\n {\n System.out.println(iEstateName.getElementValue());\n }",
"public interface State {\n\n\t/**\n\t * The internal ID of the state. Is not dictated by any external/official\n\t * nomenclature, although it may match one for the sake of readability.\n\t * \n\t * Example: The ID of Massachusetts, USA might be \"ma\".\n\t * \n\t * @return The internal ID. Should never be null or empty.\n\t */\n\tString getId();\n\n\t/**\n\t * The common name of the state.\n\t * \n\t * Example: The name of Massachusetts, USA would be \"Massachusetts\", not the\n\t * official \"The Commonwealth of Massachusetts\".\n\t * \n\t * @return The common name of the state. Should never be null or empty.\n\t */\n\tString getName();\n\n\t/**\n\t * The public abbreviation of the state. Should match the official\n\t * nomenclature, typically defined by postal services.\n\t * \n\t * Example: The abbreviation of Massachusetts, USA would be \"MA\".\n\t * \n\t * @return The public abbreviation of the state. Should never be null or\n\t * empty.\n\t */\n\tString getAbbr();\n\n\t/**\n\t * The country of which this state is a part.\n\t * \n\t * Example: The country of Massachusetts, USA would be ISOCountry.USA\n\t * \n\t * @return The Country object for this state's nation. Should never be null\n\t * or empty.\n\t */\n\tCountry getCountry();\n\n}",
"private void pulsarItemMayus(){\n if (mayus) {\n mayus = false;\n texto_frases = texto_frases.toLowerCase();\n }\n else {\n mayus = true;\n texto_frases = texto_frases.toUpperCase();\n }\n fillList(false);\n }",
"public interface IState {\n\n /**\n * Click on button to load a new map from file.\n */\n void btnLoadMap();\n\n /**\n * Click on button to load a new planning from file.\n */\n void btnLoadPlanning();\n\n /**\n * Click on button to compute the best route to make deliveries.\n */\n void btnGenerateRoute();\n\n /**\n * Click on button to cancel a loading action.\n */\n void btnCancel();\n\n /**\n * Click on button to load file.\n *\n * @param file File to load as a map or a planning depending on the state.\n */\n void btnValidateFile(File file);\n\n /**\n * Left click pressed on a delivery.\n */\n void leftClickPressedOnDelivery();\n\n /**\n * Left click released on another delivery.\n *\n * @param sourceDelivery Delivery to switch with target delivery.\n * @param targetDelivery Delivery to switch with sourceDelivery.\n */\n void leftClickReleased(Delivery sourceDelivery, Delivery targetDelivery);\n\n /**\n * Simple click on a delivery.\n *\n * @param delivery The delivery clicked.\n */\n void clickOnDelivery(Delivery delivery);\n\n /**\n * Simple click somewhere else (not a interactive point).\n */\n void clickSomewhereElse();\n\n /**\n * Click on an empty node (not a delivery or warehouse node).\n *\n * @param node The empty node clicked.\n */\n void clickOnEmptyNode(Node node);\n\n /**\n * Click on button to add a new delivery.\n *\n * @param node The node to deliver.\n * @param previousDeliveryNode The node with the previous delivery.\n * @param timeSlot The time slot of the new delivery.\n */\n void btnAddDelivery(Node node, Node previousDeliveryNode, TimeSlot timeSlot);\n\n /**\n * Click on button to remove a delivery.\n *\n * @param delivery The delivery to remove.\n */\n void btnRemoveDelivery(Delivery delivery);\n\n /**\n * Click on a specific node : the warehouse.\n *\n * @param warehouse The warehouse node clicked.\n */\n void clickOnWarehouse(Node warehouse);\n\n /**\n * Click on button to close the current map already loaded.\n */\n void btnCloseMap();\n\n /**\n * Click on button to clear the current planning already loaded.\n */\n void btnClearPlanning();\n\n /**\n * Set the default view for this state (enable/disable buttons ...).\n */\n void initView();\n}",
"@Test\n public void stateExample4() {\n MarbleSolitaireModel exampleBoard =\n new MarbleSolitaireModelImpl(3, 2, 4);\n assertEquals(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O _ O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\", exampleBoard.getGameState());\n }",
"void mo15871a(StateT statet);",
"Object getState();",
"@Test\n public void stateExample3() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl(2, 4);\n assertEquals(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O _ O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\", exampleBoard.getGameState());\n }",
"public KripkeStructure() {\n states = new HashMap<>();\n }",
"@Test\n public void stateExample1() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n assertEquals(\" _\\n\" +\n \" O O\\n\" +\n \" O O O\\n\" +\n \" O O O O\\n\" +\n \"O O O O O\", exampleBoard.getGameState());\n }",
"@Test\n public void stateExample2() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl(7);\n assertEquals(\" _\\n\" +\n \" O O\\n\" +\n \" O O O\\n\" +\n \" O O O O\\n\" +\n \" O O O O O\\n\" +\n \" O O O O O O\\n\" +\n \"O O O O O O O\", exampleBoard.getGameState());\n }",
"java.lang.String getState();",
"public StateTaxes()\n {\n this.stateAbbr = \"\";\n }",
"@Override public void setTime(UpodWorld w)\n{\n StateRepr sr = getState(w);\n sr.checkAgain(0);\n}",
"public void testGetStateName() {\r\n test1 = state2;\r\n assertEquals(test1.getStateName(), \"Virginia\");\r\n }",
"public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }",
"public void setUp() {\r\n state1 = new DateState(new State(20200818, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15)); // root\r\n test1 = state1;\r\n state2 = new DateState(new State(20200818, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state3 = new DateState(new State(20200817, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state4 = new DateState(new State(20200817, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15));\r\n nullState = null;\r\n }",
"public State getState(){\n\t\treturn State.TUT_ISLAND;\n\t}",
"private Estado getState(Cerradura cerradura) {\n\t\tEstado state = null;\n\t\t// Si el estado aun no esta en el automata\n\t\tif (!automata.containState(cerradura.getValue())) {\n\t\t\tstate = new Estado(cerradura.getValue());\n\t\t\tstate.setAcceptation(cerradura.isAcceptation());\n\t\t\tstate.setInit(cerradura.isInit());\n\t\t} else {\n\t\t\t// Si el estado ya esta en el automata\n\t\t\tstate = automata.getState(cerradura.getValue());\n\t\t}\n\t\treturn state;\n\t}",
"@Override\n public void initState() {\n \n\t//TODO: Complete Method\n\n }",
"@Test\n public void constructorInitializesAllItemsInUnknownState() {\n FirstAidItem firstAidItem = Tests.buildFirstAidItem(Point.pt(2.5, 3.5));\n WeaponItem weaponItem = Tests.buildWeaponItem(Point.pt(1.5, 0.5), Weapon.WeaponType.HANDGUN);\n\n Bot bot = Tests.mockBot();\n ItemMemory itemMemory = new ItemMemory(bot, asList(firstAidItem, weaponItem));\n\n assertThat(itemMemory.get(firstAidItem).getState(), is(ItemMemoryRecord.State.UNKNOWN));\n assertThat(itemMemory.get(weaponItem).getState(), is(ItemMemoryRecord.State.UNKNOWN));\n }",
"public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}",
"@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }",
"private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }",
"public State getState(){return this.state;}",
"public void test4(){\r\n\t\tZug zug0 = st.zugErstellen(0, 3, \"Zug 0\");\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(21).setStellung(true);\r\n\t\td.getWeiche(17).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(18).setStellung(true);\r\n\t\td.getWeiche(39).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\tst.fahren();\r\n\t}",
"private static Element getXML(State state) {\n\t\tElement stateEle = new Element(\"State\");\n\t\tstateEle.setAttribute(\"Name\", state.getName());\n\t\tstateEle.setAttribute(\"x\", String.valueOf(state.getPoint().x));\n\t\tstateEle.setAttribute(\"y\", String.valueOf(state.getPoint().y));\n\t\treturn stateEle;\n\t}",
"@Test\r\n\tpublic void testGetState() {\r\n\t}",
"public LinearAcceptingNestedWordAutomaton transform(NondeterministicNestedWordAutomaton nnwa) {\n LinearAcceptingNestedWordAutomaton dnwa = new LinearAcceptingNestedWordAutomaton();\n\n ArrayList<HierarchyState> nnwaHierarchyStates = nnwa.getP();\n ArrayList<HierarchyState> nnwaHierarchyAcceptingStates = nnwa.getPf();\n ArrayList<LinearState> nnwalinearStates = nnwa.getQ();\n ArrayList<LinearState> nnwaLinearAcceptingStates = nnwa.getQf();\n\n /* ArrayList<PowerSetHierarchyState> dnwaPowerSetHierarchyStates = new ArrayList<PowerSetHierarchyState>();\n ArrayList<PowerSetHierarchyState> dnwaPowerSetHierarchyAcceptingStates = new ArrayList<PowerSetHierarchyState>();\n ArrayList<PowerSetLinearState> dnwaPowerSetLinearStates = new ArrayList<PowerSetLinearState>();\n ArrayList<PowerSetLinearState> dnwaPowerSetLinearAcceptingStates = new ArrayList<PowerSetLinearState>();\n*/\n for (HierarchyState hState : nnwaHierarchyStates) {\n\n }\n\n\n return dnwa;\n }",
"@Test\n public void stateExample4() {\n MarbleSolitaireModel exampleBoard =\n new TriangleSolitaireModelImpl(7, 6, 6);\n assertEquals(\" O\\n\" +\n \" O O\\n\" +\n \" O O O\\n\" +\n \" O O O O\\n\" +\n \" O O O O O\\n\" +\n \" O O O O O O\\n\" +\n \"O O O O O O _\", exampleBoard.getGameState());\n }",
"@Test\n public void testConstruction()\n {\n String constructed = StateUtils.construct(TEST_DATA, externalContext);\n Object object = org.apache.myfaces.application.viewstate.StateUtils.reconstruct(constructed, externalContext);\n Assertions.assertTrue(TEST_DATA.equals(object));\n }",
"public USStateElements getUSStateAccess() {\n\t\treturn unknownRuleUSState;\n\t}",
"public abstract String getState();",
"public static interface StateInfo {\n\t\tpublic int row();\n\t\tpublic int col();\n\t\tpublic Type type();\n\t}",
"@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5568, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5569, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5570, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5571, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5572, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5573, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5574, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5575, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5576, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5577, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5578, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5579, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5580, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5581, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5582, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5583, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5584, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5585, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5586, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5587, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5588, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5589, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5590, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5591, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5592, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5593, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5594, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5595, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5596, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5597, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5598, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5599, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5600, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5601, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5602, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5603, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5604, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5605, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5606, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5607, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5608, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5609, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5610, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5611, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5612, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5613, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5614, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5615, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5616, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5617, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5618, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5619, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5620, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5621, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5622, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5623, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5624, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5625, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5626, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5627, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5628, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5629, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5630, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5631, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5632, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5633, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5634, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5635, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5636, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5637, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5638, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5639, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5640, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5641, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5642, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5643, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5644, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5645, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5646, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5647, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n }",
"@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15071, \"face=floor\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15072, \"face=floor\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15073, \"face=floor\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15074, \"face=floor\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15075, \"face=wall\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15076, \"face=wall\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15077, \"face=wall\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15078, \"face=wall\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15079, \"face=ceiling\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15080, \"face=ceiling\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15081, \"face=ceiling\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15082, \"face=ceiling\", \"facing=east\"));\n }",
"@Test\n public void stateExample1() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl(5);\n assertEquals(\" O O O O O\\n\"\n + \" O O O O O\\n\"\n + \" O O O O O\\n\"\n + \" O O O O O\\n\"\n + \"O O O O O O O O O O O O O\\n\"\n + \"O O O O O O O O O O O O O\\n\"\n + \"O O O O O O _ O O O O O O\\n\"\n + \"O O O O O O O O O O O O O\\n\"\n + \"O O O O O O O O O O O O O\\n\"\n + \" O O O O O\\n\"\n + \" O O O O O\\n\"\n + \" O O O O O\\n\"\n + \" O O O O O\", exampleBoard.getGameState());\n }",
"@Override\n\tpublic String getStateString() {\n\t\treturn null;\n\t}",
"public void testGetAbbr() {\r\n assertEquals(test1.getStateAbbr(), \"VM\");\r\n }",
"@Override\n protected void readAttributes(XMLStreamReader in)\n throws XMLStreamException {\n super.readAttributes(in);\n \n setName(in.getAttributeValue(null, \"name\"));\n \n owner = getFreeColGameObject(in, \"owner\", Player.class);\n \n tile = getFreeColGameObject(in, \"tile\", Tile.class);\n \n // @compat 0.9.x\n String typeStr = in.getAttributeValue(null, \"settlementType\");\n SettlementType settlementType;\n if (typeStr == null) {\n String capital = in.getAttributeValue(null, \"isCapital\");\n settlementType = owner.getNationType()\n .getSettlementType(\"true\".equals(capital));\n // end compatibility code\n } else {\n settlementType = owner.getNationType().getSettlementType(typeStr);\n }\n setType(settlementType);\n }",
"@Override\n protected void incrementStates() {\n\n }",
"public NFA() {\n\t\tstates = new TreeSet<NFAState>();\n\t\tabc = new TreeSet<Character>();\n\t}",
"public Stabel(){\n elementer = 0;\n hode = new Node(null);\n hale = hode;\n hode.neste = hale;\n hale.forrige = hode;\n }",
"@Test\n\tpublic void statePrint_test()\n\t{\n\t\tb.set(0,0, 'x');\n\t\tb.set(0,1, 'o');\n\t\tb.set(0,2, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tb.statePrint();\n\t\tassertTrue(out.toString().contains(\"x|o|x\\n------\\no|x| \\n------\\n | | \\n\"));\n\t}",
"public static void loadState(String stateData) {\n \n // 1) Decode the data with Base64\n byte[] compressedData = Base64.decode(stateData);\n \n // 2) Unzip it\n Inflater inflater = new Inflater();\n inflater.setInput(compressedData);\n ByteArrayOutputStream zout = new ByteArrayOutputStream();\n try {\n int dataDecompressed;\n byte[] partialData = new byte[1024];\n while ((dataDecompressed = inflater.inflate(partialData)) != 0) {\n zout.write(partialData, 0, dataDecompressed);\n }\n } catch (DataFormatException ex) {\n throw new IllegalArgumentException(\"State data did not include a valid state \");\n }\n byte[] xmlData = zout.toByteArray();\n \n // 3) Decode and activate the state\n ByteArrayInputStream bin = new ByteArrayInputStream(xmlData);\n StaticsXMLDecoder decoder = new StaticsXMLDecoder(bin);\n ExerciseState state = (ExerciseState) decoder.readObject();\n \n // init the exercise so that everything is kosher.\n Exercise.getExercise().initExercise();\n \n // now update UI elements\n for (TitledDraggablePopupWindow popup : InterfaceRoot.getInstance().getAllPopupWindows()) {\n if (popup instanceof DescriptionWindow) {\n ((DescriptionWindow) popup).update();\n }\n if (popup instanceof KnownLoadsWindow) {\n ((KnownLoadsWindow) popup).update();\n }\n }\n \n }",
"public void initElements() {\n\n emptyStateElement = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_state_title\"));\n postRequestButton = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_list_button\"));\n }",
"protected abstract int numStates();",
"@Test\n public void testMetastableStates()\n {\n IDoubleArray M = null;\n int nstates = 0;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IIntArray expResult = null;\n IIntArray result = instance.metastableStates(M, nstates);\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 }",
"StatePacBuilder adminsatratveState(AdministrativeState adminsatratveState);",
"public boolean setUnit(Unit u) //this method is for creating new units or called from territories move unit method\r\n {\r\n//\t\tSystem.out.println(\"Set unit called \" + u);\r\n \tTile old = u.getTile();\r\n boolean test = false;\r\n if(u != null) //this line is mostly useless now but i'm keeping it.\r\n {\r\n \tif(!(u instanceof Capital))\r\n \t{\r\n \t\tif(!(u instanceof Castle))\r\n \t\t{\r\n\t \t\tif(u.canMove())\r\n\t \t\t{\r\n\t\t\t if(Driver.currentPlayer.equals(player))\r\n\t\t\t {\r\n\t\t\t if(hasUnit())\r\n\t\t\t {\r\n\t\t\t if(u instanceof Peasant)\r\n\t\t\t {\r\n\t\t\t \tif(!(unit instanceof Capital) && !(unit instanceof Castle))\r\n\t\t\t \t{\r\n\t\t\t\t int curProtect = unit.getStrength();\r\n\t\t\t\t switch(curProtect) //for upgrading with a peasant.\r\n\t\t\t\t {\r\n\t\t\t\t case 1: newUnitTest(old, u);\r\n\t\t\t\t unit = new Spearman(this);\r\n\t\t\t\t unit.move(false);\r\n\t\t\t\t setAdjacentProtection();\r\n\t\t\t\t test = true;\r\n\t\t\t\t break;\r\n\t\t\t\t case 2: newUnitTest(old, u);\r\n\t\t\t\t unit = new Knight(this);\r\n\t\t\t\t unit.move(false);;\r\n\t\t\t\t setAdjacentProtection();\r\n\t\t\t\t test = true;\r\n\t\t\t\t break;\r\n\t\t\t\t case 3:\t\tnewUnitTest(old, u);\r\n\t\t\t\t unit = new Baron(this);\r\n\t\t\t\t unit.move(false);\r\n\t\t\t\t setAdjacentProtection();\r\n\t\t\t\t test = true;\r\n\t\t\t\t break;\r\n\t\t\t\t default:\r\n\t\t\t\t \t//possibly put a noise or alert here\r\n\t\t\t\t// \t\tAlert a = new Alert(AlertType.WARNING);\r\n\t\t\t\t// \t\ta.setTitle(\"Warning\"); \r\n\t\t\t\t \t\ttest = false;\r\n\t\t\t\t }\r\n\t\t\t \t}\r\n\t\t\t \telse\r\n\t\t\t \t{\r\n\t\t\t \t\t//play a noise or something\r\n\t\t\t \t}\r\n\t\t\t\t }\r\n\t\t\t\t else\r\n\t\t\t\t {\r\n\t\t\t\t \t//possibly put a noise or sumting.\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t else\r\n\t\t\t\t {\r\n\t\t\t\t \tnewUnitTest(old, u);\r\n\t\t\t\t unit = u;\r\n\t\t\t\t u.setTile(this);\r\n\t\t\t\t setAdjacentProtection();\r\n\t\t\t\t test = true;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t else\r\n\t\t\t\t {\r\n\t\t\t\t \t//As of now the only time that this case (setting unit to enemy tile) is used is when called by territories move unit method.\r\n\t\t\t\t \t\t//This means that when you build a new unit (in this case a peasant) you have to put them on your territory before moving them to another players tile.\r\n\t\t\t\t \t\tif(old != null)\r\n\t\t\t\t \t\t{\r\n\t\t\t\t \t\t\tunit = u;\r\n\t\t\t\t \t\t\tu.setTile(this);\r\n\t\t\t\t setAdjacentProtection();\r\n\t\t\t\t test = true;\r\n\t\t\t\t \t\t}\r\n\t\t\t\t \t\telse\r\n\t\t\t\t \t\t{\r\n\t\t\t\t \t\t\t//maybe make a noise or something\r\n\t\t\t\t \t\t}\r\n\t\t\t\t }\r\n\t \t\t}\r\n\t \t\telse\r\n\t \t\t{\r\n\t \t\t\t//maybe play a noise or something\r\n\t \t\t}\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tif(!hasUnit())\r\n \t\t\t{\r\n\t \t\t\tunit = u;\r\n\t u.setTile(this);\r\n\t setAdjacentProtection();\r\n\t test = true;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\tunit = u;\r\n u.setTile(this);\r\n setAdjacentProtection();\r\n test = true;\r\n \t}\r\n } \r\n\t return test;\r\n\t \r\n}",
"@Test\n public void testSetMayorsSearchTree02() {\n\n System.out.println(\"setMayorsSearchTree\");\n MayorAVL expResult = new MayorAVL();\n sn10.setMayorsSearchTree();\n\n MayorAVL result = sn10.getMayorsAVL();\n\n // Verify if tree is not equal to empty list.\n assertFalse(expResult.equals(result));\n\n }",
"@Override\n void setupState(TYPE firstItem) {\n currentItem = 0;\n }",
"public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }",
"public void loadUSStates() throws IOException {\n\n if (countries == null) {\n countries = new GeonamesUtility();\n }\n\n for (Place p : countries.getUSStateMetadata()) {\n US_STATES.put(p.getPlaceName().toLowerCase(), p);\n US_STATES.put(p.getAdmin1PostalCode().toUpperCase(), p);\n }\n }",
"private void dibujarEstado() {\n\n\t\tcantidadFichasNegras.setText(String.valueOf(juego.contarFichasNegras()));\n\t\tcantidadFichasBlancas.setText(String.valueOf(juego.contarFichasBlancas()));\n\t\tjugadorActual.setText(juego.obtenerJugadorActual());\n\t}",
"@Test\n public void test4() throws Throwable {\n Object object0 = new Object();\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem(object0);\n defaultMenuItem0.setName((String) null);\n assertEquals(true, defaultMenuItem0.isLeaf());\n }",
"public String getAtmState();",
"@Test\n\tpublic void statePrint_test1()\n\t{\n\t\tb.set(0,0, 'x');\n\t\tb.set(1,2, 'o');\n\t\tb.set(0,2, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tb.statePrint();\n\t\tassertTrue(out.toString().contains(\"x| |x\\n------\\no|x|o\\n------\\n | | \\n\"));\n\t}",
"abstract void uminus();",
"private static void mystate() {\n\t\tSystem.out.println(\"My livind state is Mairiland\");\n\t}",
"private void cmdInfoState() throws NoSystemException {\n MSystem system = system();\n MModel model = system.model();\n MSystemState state = system.state();\n NumberFormat nf = NumberFormat.getInstance();\n\n System.out.println(\"State: \" + state.name());\n\n // generate report for objects\n Report report = new Report(3, \"$l : $r $r\");\n\n // header\n report.addRow();\n report.addCell(\"class\");\n report.addCell(\"#objects\");\n report.addCell(\"+ #objects in subclasses\");\n report.addRuler('-');\n\n // data\n long total = 0;\n int n;\n\n for (MClass cls : model.classes()) {\n report.addRow();\n String clsname = cls.name();\n if (cls.isAbstract())\n clsname = '(' + clsname + ')';\n report.addCell(clsname);\n n = state.objectsOfClass(cls).size();\n total += n;\n report.addCell(nf.format(n));\n n = state.objectsOfClassAndSubClasses(cls).size();\n report.addCell(nf.format(n));\n }\n\n // footer\n report.addRuler('-');\n report.addRow();\n report.addCell(\"total\");\n report.addCell(nf.format(total));\n report.addCell(\"\");\n\n // print report\n report.printOn(System.out);\n System.out.println();\n\n // generate report for links\n report = new Report(2, \"$l : $r\");\n\n // header\n report.addRow();\n report.addCell(\"association\");\n report.addCell(\"#links\");\n report.addRuler('-');\n\n // data\n total = 0;\n\n for (MAssociation assoc : model.associations()) {\n report.addRow();\n report.addCell(assoc.name());\n n = state.linksOfAssociation(assoc).size();\n report.addCell(nf.format(n));\n total += n;\n }\n\n // footer\n report.addRuler('-');\n report.addRow();\n report.addCell(\"total\");\n report.addCell(nf.format(total));\n\n // print report\n report.printOn(System.out);\n }",
"void examine() {\n\t\t\tif (!isItEmpty()){\n\t\t\t\tprintItemDescriptions();\n\t\t\t\tSystem.out.println(\"\\nWhat's in \" + this.locationName + \": \");\n\t\t\t\texamineItems(); //calls the examine items method.\n\t\t\t\texamineContainers(); //calls the examine containers method.\n\t\t\t\tSystem.out.println(\"\");}\n\t\t}",
"public JMenuItem getNegrita() {return negrita;}",
"public abstract int numStates();",
"private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }",
"@Override\n int getStateToVisible() {\n return 2;\n }",
"public interface CanalState {\n \n void SelecionarCanal();\n void ObterInformacoesDoCanal();\n void ObterCanalSelecionado();\n \n}",
"public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}",
"String getState();",
"String getState();",
"String getState();",
"public void testSetState() {\r\n try {\r\n address.setState(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }",
"public static void zState(Zodiac z){\n\t\tswitch(z){\n\t\tcase ARIES:{\n\t\t\tSystem.out.println(\"Aries: Courage\");\n\t\t\tbreak;\n\t\t}\n\t\tcase TAURUS:{\n\t\t\tSystem.out.println(\"Taurus: Dependability\");\n\t\t\tbreak;\n\t\t}\n\t\tcase GEMINI:{\n\t\t\tSystem.out.println(\"Gemini: Responsiveness\");\n\t\t\tbreak;\n\t\t}\n\t\tcase CANCER:{\n\t\t\tSystem.out.println(\"Cancer: Loyalty\");\n\t\t\tbreak;\n\t\t}\n\t\tcase LEO:{\n\t\t\tSystem.out.println(\"Leo: Exuberance\");\n\t\t\tbreak;\n\t\t}\n\t\tcase VIRGO:{\n\t\t\tSystem.out.println(\"Virgo: Conscientiousness\");\n\t\t\tbreak;\n\t\t}\n\t\tcase LIBRA:{\n\t\t\tSystem.out.println(\"Libra: Charm\");\n\t\t\tbreak;\n\t\t}\n\t\tcase SCORPIO:{\n\t\t\tSystem.out.println(\"Scorpio: Idealism\");\n\t\t\tbreak;\n\t\t}\n\t\tcase SAGITTARIUS:{\n\t\t\tSystem.out.println(\"Sagittarius: Optimism\");\n\t\t\tbreak;\n\t\t}\n\t\tcase CAPRICORN:{\n\t\t\tSystem.out.println(\"Capricorn: Steadiness\");\n\t\t\tbreak;\n\t\t}\n\t\tcase AQUARIUS:{\n\t\t\tSystem.out.println(\"Aquarius: Friendliness\");\n\t\t\tbreak;\n\t\t}\n\t\tcase PISCES:{\n\t\t\tSystem.out.println(\"Pisces: Compassion\");\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t}",
"public int numberOfStates();",
"@Override\n\tpublic boolean isMemberOfStructure() {\n\t\treturn false;\n\t}",
"@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }",
"@Test\n public void stateExample3() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl(3, 1);\n assertEquals(\" O\\n\" +\n \" O O\\n\" +\n \" O O O\\n\" +\n \" O _ O O\\n\" +\n \"O O O O O\", exampleBoard.getGameState());\n }",
"estateName initestateName(estateName iEstateName)\n {\n iEstateName.updateElementValue(\"estateName\");\n return iEstateName;\n }",
"public void setNoms(){\r\n\t\tDSElement<Verbum> w = tempWords.first;\r\n\t\tint count = tempWords.size(); // failsafe counter\r\n\t\twhile(count > 0){\r\n\t\t\tGetNom(w.getItem());\r\n\t\t\t//System.out.println(w.getItem().nom);\r\n\t\t\tw = w.getNext();\r\n\t\t\tif(w == null)\r\n\t\t\t\tw = tempWords.first;\r\n\t\t\tcount--;\r\n\t\t}\r\n\t}",
"private void setStateInfo(){\r\n \r\n if (rldxBean == null) {\r\n rldxBean = new RolodexDetailsBean();\r\n }\r\n Vector comboList =(\r\n rldxBean.getStates() == null ? new Vector() : rldxBean.getStates());\r\n int comboLength = comboList.size();\r\n cmbState.removeAllItems();\r\n for(int comboIndex=0;comboIndex<comboLength;comboIndex++){\r\n ComboBoxBean listBox = (ComboBoxBean)comboList.elementAt(comboIndex);\r\n if(listBox!=null)\r\n cmbState.addItem(listBox);\r\n }\r\n }",
"public void readState() {\n FileInputStream stream;\n XmlPullParser parser;\n int type;\n int oldVersion = -1;\n synchronized (this.mFile) {\n synchronized (this) {\n try {\n stream = this.mFile.openRead();\n this.mUidStates.clear();\n try {\n parser = Xml.newPullParser();\n parser.setInput(stream, StandardCharsets.UTF_8.name());\n } catch (IllegalStateException e) {\n Slog.w(TAG, \"Failed parsing \" + e);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (NullPointerException e2) {\n Slog.w(TAG, \"Failed parsing \" + e2);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (NumberFormatException e3) {\n Slog.w(TAG, \"Failed parsing \" + e3);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (XmlPullParserException e4) {\n Slog.w(TAG, \"Failed parsing \" + e4);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (IOException e5) {\n Slog.w(TAG, \"Failed parsing \" + e5);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (IndexOutOfBoundsException e6) {\n Slog.w(TAG, \"Failed parsing \" + e6);\n if (0 == 0) {\n this.mUidStates.clear();\n }\n stream.close();\n } catch (Throwable th) {\n if (0 == 0) {\n this.mUidStates.clear();\n }\n try {\n stream.close();\n } catch (IOException e7) {\n }\n throw th;\n }\n } catch (FileNotFoundException e8) {\n Slog.i(TAG, \"No existing app ops \" + this.mFile.getBaseFile() + \"; starting empty\");\n return;\n }\n while (true) {\n type = parser.next();\n if (type == 2 || type == 1) {\n break;\n }\n }\n if (type == 2) {\n String versionString = parser.getAttributeValue(null, \"v\");\n if (versionString != null) {\n oldVersion = Integer.parseInt(versionString);\n }\n int outerDepth = parser.getDepth();\n while (true) {\n int type2 = parser.next();\n if (type2 == 1 || (type2 == 3 && parser.getDepth() <= outerDepth)) {\n break;\n } else if (type2 != 3) {\n if (type2 != 4) {\n String tagName = parser.getName();\n if (tagName.equals(\"pkg\")) {\n readPackage(parser);\n } else if (tagName.equals(WatchlistLoggingHandler.WatchlistEventKeys.UID)) {\n readUidOps(parser);\n } else {\n Slog.w(TAG, \"Unknown element under <app-ops>: \" + parser.getName());\n XmlUtils.skipCurrentTag(parser);\n }\n }\n }\n }\n if (1 == 0) {\n this.mUidStates.clear();\n }\n try {\n stream.close();\n } catch (IOException e9) {\n }\n } else {\n throw new IllegalStateException(\"no start tag found\");\n }\n }\n }\n synchronized (this) {\n upgradeLocked(oldVersion);\n }\n }",
"@Test\n public void setFishFinderOpPos(){\n Motorboot m = new Motorboot(\"boot1\",true,true);\n assertEquals(\"boot1\",m.getNaam());\n assertEquals(true,m.isRadarAanBoord());\n assertEquals(true,m.isFishFinderAanBoord());\n }",
"public IzvajalecZdravstvenihStoritev() {\n\t}"
] | [
"0.5591665",
"0.5591665",
"0.5525147",
"0.5516947",
"0.55009604",
"0.5417106",
"0.53713024",
"0.5365728",
"0.53628045",
"0.5355309",
"0.53456116",
"0.53431666",
"0.5291718",
"0.52529204",
"0.52503693",
"0.5243299",
"0.5237632",
"0.5219384",
"0.5216382",
"0.52040327",
"0.5203836",
"0.5190227",
"0.51756436",
"0.51752603",
"0.5172507",
"0.5169491",
"0.5167889",
"0.5167107",
"0.51666194",
"0.5162401",
"0.5157762",
"0.5148643",
"0.5142744",
"0.5119771",
"0.5117357",
"0.5112277",
"0.5103025",
"0.5092945",
"0.5090341",
"0.50781465",
"0.507497",
"0.5070913",
"0.5063964",
"0.50606793",
"0.50554305",
"0.50403905",
"0.50401115",
"0.5037422",
"0.50300735",
"0.5027695",
"0.50276554",
"0.5026398",
"0.50258625",
"0.5024939",
"0.5020201",
"0.5019205",
"0.5018272",
"0.50179726",
"0.5013258",
"0.50074035",
"0.5003345",
"0.4999621",
"0.49983212",
"0.4989861",
"0.4986795",
"0.49805772",
"0.4979114",
"0.4978315",
"0.49742132",
"0.4970849",
"0.49707505",
"0.4969439",
"0.49692515",
"0.49678507",
"0.49628225",
"0.49616665",
"0.49586862",
"0.4956793",
"0.49525097",
"0.4952486",
"0.49454853",
"0.49418452",
"0.49341387",
"0.4934012",
"0.49316725",
"0.4930856",
"0.49305156",
"0.49305156",
"0.49305156",
"0.492765",
"0.49110982",
"0.4910533",
"0.49104825",
"0.49097317",
"0.49030408",
"0.4902235",
"0.48987293",
"0.4898457",
"0.48980957",
"0.48961687",
"0.48860624"
] | 0.0 | -1 |
TODO Test correct values taken from other pages | @Override
public void initialize(URL url, ResourceBundle rb) {
System.out.println(user.getAccountID2());
System.out.println(MainUiController.Username);
System.out.println(user.bugReportID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void value() {\n assertEquals(\"4\", onPage.get(\"select\").withName(\"plain_select\").value());\n // Get the first selected value for a multiple select\n assertEquals(\"2\", onPage.get(\"select\").withName(\"multiple_select\").value());\n // Get the value of the option\n assertEquals(\"1\", onPage.get(\"select\").withName(\"plain_select\").get(\"option\").value());\n assertEquals(\" The textarea content. \", onPage.get(\"textarea\").value());\n assertEquals(\"Enter keywords here\", onPage.get(\"#keywords\").value());\n // Checkboxes and radiobuttons simply return the value of the first element,\n // not the first checked element\n assertEquals(\"google\", onPage.get(\"input\").withName(\"site\").value());\n }",
"io.dstore.values.StringValue getPage();",
"@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }",
"@Test\n\t\t public void testLocationFive() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }",
"@Test\n\t\t public void testLocationSix() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }",
"@Test\n\tpublic void testQueryPage() {\n\n\t}",
"@Test(priority = 3)\n\tpublic void isHomeDataCorrect() {\n\t\tlog.info(\"Validating the homepage data\");\n\t\tList<String> data = home.changesInElement(driver);\n\t\tAssert.assertEquals(data.get(0), \"BLR\");\n\t\tAssert.assertEquals(data.get(1), \"BOM\");\n\t\tlog.info(\"All the details of homepage are correct\");\n\t\tHomePageFlow.dateInput();\n\t}",
"@Test\n\tpublic void defaultValues() {\n\t\tWebElement new_page = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tdouble dwnpymnt = Double.valueOf(new_page.findElement(By.name(\"downpayment\")).getAttribute(\"value\"));\n\t\tdouble interest = Double.valueOf(new_page.findElement(By.name(\"interest\")).getAttribute(\"value\"));\n\t\tint year = Integer.valueOf(new_page.findElement(By.name(\"year\")).getAttribute(\"value\"));\n\t\tdouble price_tax = Double.valueOf(new_page.findElement(By.name(\"price_with_taxes\")).getAttribute(\"value\"));\n\t\t\n\t\tdouble price_interest = priceWithInterest(price_tax, dwnpymnt, interest, year);\n\t\tint nMnths = numMonths(year);\n\t\tdouble ttl = totalPrice(price_interest, dwnpymnt);\n\t\tdouble ttl_per_mnth = totalPricePerMonth(price_interest, nMnths);\n\t\t\n\t\t// click calculate button\n\t\tnew_page.findElement(By.name(\"calculate_payment_button\")).click();\n\t\twait(2);\n\t\t\n\t\tWebElement solutions = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tDecimalFormat twoDForm = new DecimalFormat(\"#.##\");\n\t\t\n\t\tassertEquals(Double.valueOf(twoDForm.format(dwnpymnt)), Double.valueOf(solutions.findElement(By.id(\"total_downpayment\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl_per_mnth)), Double.valueOf(solutions.findElement(By.id(\"total_price_per_month\")).getAttribute(\"value\")));\n\t\tassertEquals(Integer.valueOf(nMnths), Integer.valueOf(solutions.findElement(By.id(\"n_of_months\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl)), Double.valueOf(solutions.findElement(By.id(\"total_price\")).getAttribute(\"value\")));\n\t}",
"String pageDetails();",
"@Test\n\t\t public void testLocationOne() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }",
"@Test\n\t\t public void testLocationThree() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }",
"@Test\n\t\t public void testLocationFour() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }",
"@Test\n\tpublic void testGetPageName() {\n\t\tString pageName = rmitAnalyticsModel.getPageName();\n\t\tAssert.assertNotNull(pageName);\n\t\tAssert.assertEquals(\"rmit:content:rmit.html\", pageName);\n\t}",
"@Test()\n public void PatientRecord() {\n LoginPage login = new LoginPage(driver);\n DashboardItemsPage dash = new DashboardItemsPage(driver);\n FindPatientRecordPage fprecord = new FindPatientRecordPage(driver);\n login.LoginToDashboard(\"Admin\", \"Admin123\");\n fprecord.searchPatientRecord(\"Smith\");\n\n Assert.assertEquals(\"Find Patient Record\", \"Find Patient Record\");\n //Assert.assertEquals(Collections.singleton(fprecord.getPageTitle()), \"Find Patient Record\");\n fprecord.getPageTitle();\n }",
"@Test\n\t\t public void testLocationTwo() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }",
"@Test(priority=4)\r\n\tpublic void navigateToReturnsPage() {\r\n\t\t\r\n\t\tString expectedPageTitle=\"Returns Report\";\r\n\t\tString actualPageTitle=filterReturnsList.navigateToReturns();\r\n\t\tassertEquals(actualPageTitle, expectedPageTitle);\r\n\t}",
"public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }",
"public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}",
"@Test(priority = 4, description = \"To get Number of Location\")\n\tpublic void GetNumberofLocation() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tdata.getNumofLoc();\n\t\taddEvidence(CurrentState.getDriver(), \"To get Number of Location\", \"yes\");\n\t}",
"private static int prework(HtmlPage page) {\n\t\tint freeIndex=-1;\n\t\tfor (int i=1; i<25; i++) {\n\t\t\ttry {\n\t\t\t\tString slnValue=page.getElementByName(\"sln\"+i).getAttribute(\"value\");\n\t\t\t\tif (slnValue==DomElement.ATTRIBUTE_NOT_DEFINED \n\t\t\t\t\t\t|| slnValue==DomElement.ATTRIBUTE_VALUE_EMPTY || slnValue.length()==0) {\n\t\t\t\t\tfreeIndex=i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (ElementNotFoundException e) {}\n\t\t}\n\t\treturn freeIndex;\n\t}",
"@Test\n public void testContentDefaultValues() throws Exception\n {\n assertEquals( projectName + \"-portlet\", page.getPortletPluginProject() );\n assertTrue( page.getSourceFolderText().contains( \"docroot/WEB-INF/src\" ) );\n assertEquals( \"NewVaadinPortletApplication\", page.getApplicationClassText() );\n assertEquals( \"com.test\", page.getJavaPackageText() );\n assertEquals( \"com.vaadin.Application\", page.getSuperClassCombobox() );\n assertEquals( \"com.vaadin.terminal.gwt.server.ApplicationPortlet2\", page.getVaadinPortletClassText() );\n // page2\n page.next();\n assertEquals( \"newvaadinportlet\", page2.getPortletName() );\n assertEquals( \"NewVaadinPortlet\", page2.getDisplayName() );\n assertEquals( \"NewVaadinPortlet\", page2.getPortletTitle() );\n assertFalse( page2.get_createResourceBundleFileCheckbox().isChecked() );\n assertEquals( \"content/Language.properties\", page2.getResourceBundleFilePath() );\n // page3\n page.next();\n assertFalse( page3.isEntryCategoryEnabled() );\n assertFalse( page3.isEntryWeightEnabled() );\n assertFalse( page3.isCreateEntryClassEnabled() );\n assertFalse( page3.isEntryClassEnabled() );\n\n assertEquals( \"/icon.png\", page3.getIconText() );\n assertEquals( false, page3.isAllowMultipleInstancesChecked() );\n assertEquals( \"/css/main.css\", page3.getCssText() );\n assertEquals( \"/js/main.js\", page3.getJavaScriptText() );\n assertEquals( \"newvaadinportlet-portlet\", page3.getCssClassWrapperText() );\n assertEquals( \"Sample\", page3.getDisplayCategoryCombobox() );\n assertEquals( false, page3.isAddToControlPanelChecked() );\n assertEquals( \"My Account Administration\", page3.getEntryCategoryCombobox() );\n assertEquals( \"1.5\", page3.getEntryWeightText() );\n assertEquals( false, page3.isCreateEntryClassChecked() );\n assertEquals( \"NewVaadinPortletApplicationControlPanelEntry\", page3.getEntryClassText() );\n }",
"@Test(priority = 5)\n\tpublic void TC_05_Validate_SchoolComputedValues_Link_Navigation() {\n\t\tString ScreenshotName = new Object(){}.getClass().getEnclosingMethod().getName();\n\n\t\tReporter.log(cm.ReporterText(\"TestCase : \" + ScreenshotName));\n\n\t\tco.click(homePage.schoolComputedValuesLink, \"Clicking on School Computed Value Link in Home Page.\");\n\t\tString actualText=co.getText(homePage.pageTitle,\"Extracting the PageTitle\");\n\t\tcm.captureElementScreenShot(driver, homePage.pageTitle, ScreenshotName, cm.basepath());\n\t\tReporter.log(cm.ReporterLink(ScreenshotName));\n\t\tSystem.out.println(\"Asserting the test case\");\n\n\t\tAssert.assertEquals(actualText, \"Computed Values\", \"The page did not navigate to Computed Values Page.\");\n\t}",
"public void page()\n {\n com.jayway.restassured.response.Response response= given().relaxedHTTPSValidation().when().get(\"http://18.222.188.206:3333/accounts?_page=3\");\n response.then().assertThat().statusCode(200);\n System.out.println(\"The list of accounts in the page 3 is displayed below:\");\n response.prettyPrint();\n }",
"@Test\n public void test057() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Map<String, Component> map0 = errorPage0.getComponents();\n }",
"@Test\n public static void main() {\n myTitle = driver.getTitle();\n myTitleLength = driver.getTitle().length();\n \n // 4) Print Page Title and Title length on the Eclipse Console.\n System.out.println(myTitle);\n System.out.println(\"The Character Length of the Title is: \" + myTitleLength);\n \n\t // 5) Get Page URL and URL length\n myURL = driver.getCurrentUrl();\n myURLLength = driver.getCurrentUrl().length();\n \n\t // 6) Print URL and URL length on the Eclipse Console.\n\t System.out.println(myURL);\n System.out.println(\"The Character Length of the URL is: \" + myURLLength);\n \n\t // 7) Refresh current page\n driver.navigate().refresh();\n \t\n\t // 8) Get Page Source (HTML Source code) and Page Source length\n \n myPageSource = driver.getPageSource();\n myPageSourceLength = driver.getPageSource().length();\n\t\n\t // 9) Print Page Source and length on Eclipse Console.\n\t\n //System.out.println(myPageSource);\n System.out.println(\"The length of the source is: \" + myPageSourceLength); \n \n }",
"@Test\n public void testDashboardLink() {\n dashboardPage.clickOnDashboardNavLink();\n //expected result: user is on dashboard \n \n String expectedPanelHeadingText = \"Dashboard\";\n String actualPanelHeadingText = dashboardPage.getPanelHeadingText();\n \n assertTrue(\"Failed - panel heading texts don't match\", expectedPanelHeadingText.equals(actualPanelHeadingText));\n \n}",
"public void testMainPage() {\n\t\tbeginAt(\"numguess.jsp\");\n\t\tassertTitleEquals(\"Number Guess\");\n\t\tassertTextPresent(\"Welcome to the Number Guess game\");\n\t\tassertFormElementPresent(\"guess\");\t\t\n\t}",
"@Override\n\tpublic void checkPage() {\n\t}",
"lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();",
"lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();",
"lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();",
"public abstract AdvertisingPageType mo11614e();",
"@Test(priority = 0)\n public void test_Search_Results_Appear_Correct() {\n\n //Create Google Search Page object\n searchPage = new SearchPage(driver);\n\n //Search for QA string\n searchPage.searchStringGoogle(\"QA\");\n\n // go the next page\n resultsPage = new ResultsPage(driver);\n\n Assert.assertTrue(resultsPage.getSearchedResult().contains(\"Quality assurance - Wikipedia\"));\n\n }",
"public abstract Page value();",
"@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}",
"public abstract boolean Verifypage();",
"@Test\n public void verifyTitleOfHomePageTest()\n {\n\t \n\t String abc=homepage.validateHomePageTitle();\n\t Assert.assertEquals(\"THIS IS DEMO SITE FOR \",abc );\n }",
"public void getWantedPageFromPagination()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n List<WebElement> pageOrderList = pageFactory.searchPagePaginationList;\r\n WebElement wantedPageOrder = pageOrderList.get(1);\r\n clickElement(wantedPageOrder, Constant.explicitTime);\r\n }",
"public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }",
"@Test\n public void getListingsPages_3() throws IOException {\n List<String> listingsPages = imobiParser.getListingPages(TEST_URL_PAGINATION_ABSENT);\n\n Assert.assertThat(listingsPages, notNullValue());\n Assert.assertThat(listingsPages.size(), is(1));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_ABSENT.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(1)))));\n }",
"private void ScenarioProperty(HttpServletRequest request, HttpServletResponse response) throws IOException, NumberFormatException {\n XMLTree tree;\n tree = XMLTree.getInstance();\n int scenarioIndex = Integer.parseInt(request.getParameter(\"index\"));\n response.getWriter().write(tree.getScenarioProperties(scenarioIndex));\n }",
"public String verifyUserOnPrintedDressPage(){\n WebElement page = driver.findElement(By.cssSelector(\"span[class='lighter']\"));\n String pageStatus = page.getText();\n return pageStatus;\n }",
"@Test\n public void testGetPageFromURI() {\n System.out.println(\"getPageFromURI\");\n String requestURI = \"http://localhost:8084/BettingApp/pages/common/about.jsp\";\n String expResult = \"about\";\n String result = URIUtil.getPageFromURI(requestURI);\n assertEquals(expResult, result);\n }",
"@Test\n public void testExtractTextFromPage()\n {\n PDFExtractor instance = new PDFExtractor();\n \n int page = 0;\n String expResult = page1;\n String result = instance.extractTextFromPage(pathToFile, page);\n \n assertEquals(expResult, result);\n \n page = 1;\n expResult = page2;\n result = instance.extractTextFromPage(pathToFile, page);\n assertEquals(expResult, result);\n }",
"@Test(priority=3)\n\tpublic void validateCheckoutPagePrice()\n\t{\n\t\tAssert.assertEquals(ResultsPage.price, checkoutpage.getPrice() );\n\t}",
"@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }",
"@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }",
"@Step\n\tpublic void verify_the_DP_Topic_of_retire_status(String Page)throws Exception {\n\n\t\tLong dpKey=Serenity.sessionVariableCalled(\"DPkey\"); \n\n\t\tswitch(Page){\n\t\tcase \"AWB\": \n\t\t\tMongoDBUtils.getDPAndTopicRetire(\"No Disposition\");\n\t\t\tString medicalPolicy=Serenity.sessionVariableCalled(\"Medicalpolicy\");\n\t\t\tString MedPolicyXpath = StringUtils.replace(oCPWPage.MedPolicyAfterSearch, \"MedPolicyValue\", medicalPolicy);\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.PolicySelectionDrawerButton);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_10_Seconds);\n\t\t\tobjSeleniumUtils.Enter_given_Text_Element(oCPWPage.MedPolicySearchBox, medicalPolicy);\n\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.MedPolicySearchButton);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_3_Seconds);\n\t\t\tobjSeleniumUtils.clickGivenXpath(MedPolicyXpath); \n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.ApplyToOpportunityGridBtn);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\tboolean statusValue=oGenericUtils.isElementExist(oCPWPage.nonRecordsOfMedicalPolicies);\n\t\t\tif(statusValue)\n\t\t\t{\n\t\t\t\tAssert.assertTrue(\"Non Medical Policy / Topic \"+oCPWPage.nonRecordsOfMedicalPolicies+\"Status\",statusValue);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tobjSeleniumUtils.Enter_given_Text_Element(oCPWPage.SearchFileldXpath, String.valueOf(dpKey));\n\t\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.SearchButtonXpath);\n\t\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\t\tAssert.assertTrue(\"Non Records Opportunities \"+oCPWPage.nonRecordsOfOpportunities+\"Status\",oGenericUtils.isElementExist(oCPWPage.nonRecordsOfOpportunities));\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"RWO\":\n\t\t\tMongoDBUtils.getDPAndTopicRetire(\"No Disposition\");\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.reviewWorkedOpportunities);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\tobjSeleniumUtils.Enter_given_Text_Element(oCPWPage.SearchFileldXpath, String.valueOf(dpKey));\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.SearchButtonXpath);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\tAssert.assertTrue(\"Non Records Opportunities \"+oCPWPage.nonRecordsOfOpportunities+\"Status\",oGenericUtils.isElementExist(oCPWPage.nonRecordsOfOpportunities));\n\t\t\tbreak;\n\t\tcase \"PM\":\n\t\t\tMongoDBUtils.getDPAndTopicRetire(\"Present\"); \n\t\t\tThread.sleep(2000);\n\t\t\t//Click on 'Reset' button\n\t\t\tobjSeleniumUtils.highlightElement(oFilterDrawer.sReset);\n\t\t\toGenericUtils.clickButton(By.xpath(oFilterDrawer.sReset));\n\t\t\tThread.sleep(2000);\n\t\t\tboolean bstatus=oCPWPage.Enter_the_given_MP_Topic_in_filter_Drawer(Serenity.sessionVariableCalled(\"Medicalpolicy\"));\n\n\t\t\tif(bstatus)\n\t\t\t{\n\t\t\t\tobjSeleniumUtils.clickGivenXpath(StringUtils.replace(oFilterDrawer.Medicalpolicy_Checkbox, \"value\", Serenity.sessionVariableCalled(\"Medicalpolicy\")));\n\t\t\t\toFilterDrawer.user_filters_by_clicking_on_Apply_for_Medical_Policy_Topic();\n\t\t\t\toOppurtunityDeck.validatethegivenDatainOpportunityDeck(Serenity.sessionVariableCalled(\"DPkey\").toString(), \"Updated DPkey\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tAssert.assertTrue(\"DPKey not displayed as its retired\"+Serenity.sessionVariableCalled(\"DPkey\"), true);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Test\r\n public void test4(){\n\t E1.setSocialSecurityNumber(\"SSN1\");\r\n\t\tE2.setSocialSecurityNumber(\"SSN2\");\r\n String actual = E1.getSocialSecurityNumber();\r\n String expected = \"SSN1\";\r\n assertEquals(actual,expected);\r\n }",
"@Test\n public void test_site() throws AppException {\n assertEquals(getSite(\"desktop_web\"),\"desktop web\");\n assertEquals(getSite(\"mobile_web\"),\"mobile web\");\n }",
"public ManagePropertiesPage reviewProrty(Hashtable<String, String> testData) throws Exception {\n\ttry{\n\t\tcheckElementExistence(driver,By.xpath(\"lblPptyAddressvalue\"),5);\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddressvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptybillinfo\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddress\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblPptyAddressvalue\");\n\t\n\t\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntno\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntnoValue\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblAcntBillgName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAcntBillgNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingadd\");\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingaddvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblUnit\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAddress\");\n\n\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTermsAgg\");\n\t\t*/COC.webAdaptor(Actions.click, \"chkTermsAgg\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblName\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputName\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputName\",testData.get(\"Name\"));\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTitle\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputTitle\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputTitle\", testData.get(\"Title\"));\n\t\t\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmail\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmailValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lnkBack\");\n\t\n\t*/\t\n\t\tcheckElementExistence(driver,By.xpath(\"btnSubmit\"),5);\n\t\t//COC.webAdaptor(Actions.waitForObjectToLoad, \"btnSubmit\");\n\t\tCOC.webAdaptor(Actions.click, \"btnSubmit\");\n\t\tThread.sleep(5000);\n\t\t\n\t/*\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t\tCOCDriverScript.logMessage(\"testStepPass\", \"Selected New Property\");\n\t*/ }catch(Exception e){\n\t\tCOCDriverScript.logMessage(\"testStepFail\", \"Element not found\");\n\t\tSystem.out.println(e.getMessage());\n\t\te.printStackTrace();\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t }\n\treturn new ManagePropertiesPage(driver, localData);\n}",
"public void testLocation() {\n String hash = Window.Location.getHash();\n String host = Window.Location.getHost();\n String hostName = Window.Location.getHostName();\n String href = Window.Location.getHref();\n assertNull(Window.Location.getParameter(\"fuzzy bunny\"));\n String path = Window.Location.getPath();\n String port = Window.Location.getPort();\n String protocol = Window.Location.getProtocol();\n String query = Window.Location.getQueryString();\n \n // Check that the sum is equal to its parts.\n assertEquals(host, hostName + \":\" + port);\n assertEquals(href, protocol + \"//\" + host + path + query + hash);\n }",
"@Test\n\tpublic void leastPopularBike()\n\t{\t\t\n\t\tassertEquals(controller.getReport().getLeastPopularBike(), \"BIKE4\");\n\t}",
"@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }",
"@Then(\"User can view the dashboard\")\npublic void user_can_view_the_dashboard() {\n addCust = new AddcustomerPage(driver);\n Assert.assertEquals(\"Dashboard / nopCommerce administration\", addCust.getPageTitle());\n \n}",
"String getCurrentValue();",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyGasYourdetailsPageNavigationLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Gas Page Navigation Links\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\t\t\n\t\t.verifyGasNavigationLinks();\n}",
"@Test(priority=3)\n\tpublic void validatePredictNiftyInContestPage2()\n\t{\n\t\tAssert.assertTrue(c.todaysNiftyValue.isDisplayed());\n\t}",
"@Test\r\n\tpublic void testScanePage_malformedLink() {\n\t}",
"@Test\n public void normalCategoryFirstRangeInKgAndCm() {\n\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"59.3\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"179\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }",
"@Test\n\tpublic void checkDetailedURLGeneration() {\n\t\tint neoID=1234;\n\t\tString expected = genDetailedURL(neoID);\n\t\tString result = urlHelper.getDetailedNeoInfoURL(neoID);\n\t\tassertEquals(expected,result);\n\t}",
"@Override\n protected void init(PageDto page, HttpServletRequest request, HttpServletResponse response, Model model) {\n\n }",
"@Test (description = \"entering incorrect username\")\n public void negative_login_test1() {\n\n Driver.getDriver().get(ConfigurationReader.getProperty(\"smartbearUrl\"));\n\n//Lets start using PageObjectModel\n\n //#1 We need to create the object of class we want to use\n //instantiate here\n loginPage = new LoginPage();\n\n//#2 call the object to use the web elements\n //entering incorrect username\n loginPage.userNameInput.sendKeys(\"aaa\");\n\n //enter correct password\n String smartbear_password = ConfigurationReader.getProperty(\"smartbear_password\");\n loginPage.passwordInput.sendKeys(smartbear_password);\n\n loginPage.loginButton.click();\n loginPage.errorMessage.isDisplayed();\n\n //assert true that error message is displayed on the page\n Assert.assertTrue(loginPage.errorMessage.isDisplayed(), \"Error message is not displayed, Verification is FAILED!!!\");\n BrowserUtil.wait(3);\n\n }",
"public static void viewPage(WebDriver driver, String sTestCaseName) throws Exception{\r\n\t\r\n\t\t//Check that all of the elements of that are expected are displayed\r\n\t\tObjects_Job_Completion_Summary_Page.lbl_Summary(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Summary label displayed as expected\");\r\n\t\t}\r\n\r\n\t\tif (\"Exchange_1_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"INST_14_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_19_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_1_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\telse if (\"Exchange_2_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_15_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_20_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_11_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_8_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t}\r\n\t\telse if (\"Exchange_3_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_SMeter_Post_Installation_Pressure_Drop_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Initial_Risk_Assessment_Gas_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Suitable_For_Smart_Installation_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_21_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_16_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Polarity_Check_At_Meter_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Suitable_For_Smart_Installation_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_Found_Meter_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t} \r\n\t\telse \t\t\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"Doing the else \"); \r\n\t\t}\t\t\t\t\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Potential_Customer_Vulnerability_Identified_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Potential Customer Vulnerability Identified - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.txt_Additional_Notes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Additional notes textbox displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_No(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - No radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t//Take a screenshot to show what we've done\r\n\t\tUtils.takeScreenshot(driver, sTestCaseName + \"-viewPage\");\r\n\t\t\r\n\t//END OF VIEW PAGE METHOD\r\n\t}",
"io.dstore.values.StringValue getPageCategoryDescription();",
"@Test\n @Issue(\"EZ-8885\")\n void verifyGeneralElementsOnLoginPage() {\n LoginPage loginPage = new LoginPage(BaseUrl.loginPageBaseUrl());\n loginPage.open().getStatusLoginFields();\n LoginPage.getButtonsStatus();\n\n SoftAssertions softly = new SoftAssertions();\n softly.assertThat(loginPage.getStatusLoginFields()).isTrue();\n softly.assertThat(LoginPage.getButtonsStatus()).isTrue();\n softly.assertThat(getBrowserConsoleErrors()).isFalse();\n softly.assertAll();\n\n }",
"@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }",
"@Test\n public void test122() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"\");\n Form form0 = (Form)table0.form(\"N^J%Ny6SBpb^K/bPvZ\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"N^J%Ny6SBpb^K/bPvZ\", form0.getComponentId());\n assertEquals(\"Table_1\", table0.getComponentId());\n }",
"boolean getPageNoNull();",
"@Test(dataProvider = \"PrettyWomen\", dataProviderClass = DataProviders.class, priority = 6, enabled = testCase30, groups = {\"user\", \"admin\"})\n public void searchDifferentResultsTestCase30(String minAge, String maxAge, String sortBy) {\n\n int min = Integer.parseInt(minAge); //3. Everything you take from UI always string (vid 21, 11:28)\n int max = Integer.parseInt(maxAge); // -> Convert data from String to Int == have to parse it\n //Then add value to - int min\n\n prettyWomenPage.openPrettyWomenPage(); //search pretty women link\n //interact with dropdown list, add different values from data provider\n prettyWomenPage.javaWaitSec(3);\n prettyWomenPage.getDropDownListByText(driver.findElement(Locators.DROP_DOWN_LIST_MIN_AGE), minAge);\n prettyWomenPage.getDropDownListByText(driver.findElement(Locators.DROP_DOWN_LIST_MAX_AGE), maxAge);\n prettyWomenPage.getDropDownListByText(driver.findElement(Locators.DROP_DOWN_LIST_SORT_BY), sortBy);\n prettyWomenPage.clickSearchButton(); //click the search button\n\n //Vid 22, 12:00\n //1. Filter data from regions\n //2. Split data\n //3. Everything you take from UI always string (vid 22, 11:28)\n // -> Convert data from String to Int == have to parse it\n\n // After we collect web elements\n List<WebElement> infoAboutUser = driver.findElements(Locators.TEXT_PRETTY_WOMEN_INFO); //names, age, region\n\n // System.out.println(infoAboutUser.size());\n\n for (int i = 0; i < infoAboutUser.size(); i++) { // prettyWomenPage.ajaxScroll(text);\n // wait.until(ExpectedConditions.visibilityOf(text));\n if (i % 2 == 0) {\n\n WebElement text = infoAboutUser.get(i);\n String info = text.getText();\n String[] splittedPhrase = info.split(\", \");\n String age = splittedPhrase[1];\n int ageNum = Integer.parseInt(age);\n\n if (min <= ageNum || ageNum <= max) {\n System.out.println(\"This age: \" + ageNum + \" is correct\");\n } else {\n Assert.fail(\"Wrong age: \" + ageNum);\n }\n\n }\n prettyWomenPage.javaWaitSec(3);\n infoAboutUser = driver.findElements(Locators.TEXT_PRETTY_WOMEN_INFO); //get elements\n }\n }",
"@Test\n public void getListingsPages_2() throws IOException {\n List<String> listingsPages = imobiParser.getListingPages(TEST_URL_PAGINATION_2);\n\n Assert.assertThat(listingsPages, notNullValue());\n Assert.assertThat(listingsPages.size(), is(16));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_2.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(1)))));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_2.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(5)))));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_2.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(10)))));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_2.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(16)))));\n }",
"@Test\n public void testCase2() {\n homePage.openSite();\n\n //2 Assert Browser title\n homePage.checkHomePageTitle();\n\n //3 Perform login\n homePage.login(PITER_CHAILOVSKII.login, PITER_CHAILOVSKII.password);\n\n //4 Assert User name in the left-top side of screen that user is logged in\n homePage.checkUserNameAfterLogIn();\n\n //5 Open through the header menu Service -> Dates Page\n homePage.openDatesServicePage();\n\n //6 Using drag-and-drop set Range sliders. left sliders - the most left position,\n // right slider - the most right position\n datesPage.settingRightRoller(100);\n datesPage.settingLeftRoller(0);\n\n //7 Assert that for \"From\" and \"To\" sliders there are logs rows with corresponding values\n datesPage.checkLog(2, \"to\", 100);\n datesPage.checkLog(1, \"from\", 0);\n\n //8 Using drag-and-drop set Range sliders. left sliders - the most left position, right slider -\n // the most left position.\n datesPage.settingLeftRoller(0);\n datesPage.settingRightRoller(0);\n\n //9 Assert that for \"From\" and \"To\" sliders there are logs rows with corresponding values\n datesPage.checkLog(2, \"from\", 0);\n datesPage.checkLog(1, \"to\", 0);\n\n //10 Using drag-and-drop set Range sliders. left sliders - the most right position, right slider - the most\n // right position.\n datesPage.settingRightRoller(100);\n datesPage.settingLeftRoller(100);\n datesPage.checkLog(1, \"from\", 100);\n datesPage.checkLog(2, \"to\", 100);\n\n //12 Using drag-and-drop set Range sliders.\n datesPage.settingLeftRoller(30);\n datesPage.settingLeftRoller(30);\n datesPage.settingRightRoller(70);\n datesPage.checkLog(2, \"from\", 30);\n datesPage.checkLog(1, \"to\", 70);\n }",
"@Test\n public void testSetAndGetPageUrl() {\n System.out.println(\"getPageUrl\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getPageUrl());\n String expResult = \"pageUrl\";\n instance.setPageUrl(expResult);\n String result = instance.getPageUrl();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getRegion());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }",
"lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();",
"@Test\n public void testDAM32001001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // This call brings te order details from various tables into single entity using join\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32001001Click();\n\n // Expected order details\n // the string is of the format\n // ORDER STATUS NAME, ITEM CODE, ITEM NAME, CATEGORY CODE, CATEGORY NAME, MEMO\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n // confirmation for some more order details....\n\n expectedOrdeDetails = \"Stock checking, ITM0000002, NotePC, CTG0000002, PC, \";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(2);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Item Shipped, ITM0000003, Car, CTG0000003, Hot selling, dummy3\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(3);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }",
"@Test\r\n\tpublic void test_5_NavigatePage() throws InterruptedException {\n\t\tdriver.findElement(By.linkText(\"2\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\t// get page title\r\n\t\tString pageTitle = driver.getTitle();\r\n\t\t// get current page number\r\n\t\tWebElement element = driver.findElement(By.xpath(\"//div[@id='pagn']/span[3]\"));\r\n\t\tString actualPageNumber = element.getText();\r\n\t\tString expectedPageNumber = \"2\";\r\n\t\tAssert.assertEquals(actualPageNumber, expectedPageNumber);\r\n\t\t// if the page title contains \"samsung\" then navigation is successful \r\n\t\tAssert.assertTrue(pageTitle.contains(\"Amazon.com: samsung\"));\r\n\t\tSystem.out.println(\"Page \" + actualPageNumber + \" is displayed\");\r\n\t}",
"io.dstore.values.IntegerValue getPageNo();",
"io.dstore.values.IntegerValue getPageNo();",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySubmitMeterReadingLandingPageLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the link navigations of Submit meter read landing page\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage1()\n\t\t.verifySubmitMeterreadLandingPageNavigationLinks();\n}",
"public void mo38117a() {\n }",
"public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"@Override\n\tpublic void process(Page page) {\n\t\tboolean contain=false;\n\t\tint idindex=page.getUrl().toString().lastIndexOf(\"=\");\n\t\tString id=\"\";\n\t\tif(page.getUrl().toString().length()>=(idindex+1))\n\t\t id=page.getUrl().toString().substring(idindex+1);\n\t\tSystem.out.println(id);\n\t\tif(id.contains(\".\"))\n\t\t{\n\t\t\tcontain=true;\n\t\t\tSystem.out.println(\"contain is true\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString ziduan=page.getHtml().xpath(\"//tbody/tr[3]/td[1]/text()\").all().get(0);\n\t\t\tString legal=\"法律状态:\";\n\t\t\tif(ziduan.equals(legal))\n\t\t\t{\n\t\t\t\tcontain=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*`patent_name` '专利名称',\n\t\t `patent_type` '专利类型',\n\t\t `legal_status`'法律状态',\n\t\t `abstract` '文摘',\n\t\t `sovereignty` '主权项',\n\t\t `apply_data` '申请日期',\n\t\t `public_data`'公开(公告)日期',\n\t\t `patent_number` '申请(专利)号',\n\t\t `public_number` '公开(公告)号',\n\t\t `main_type_number` '主分类号',\n\t\t `type_number` '分类号',\n\t\t `apply_people` '申请人',\n\t\t `patent_people` '发明人',\n\t\t `people_address` '主申请人地址',\n\t\t `city_code` '省市、代码',\n\t\t */\n\t\t\n\t\tpage.putField(\"patent_name\", page.getHtml().xpath(\"//tbody/tr[1]/td[2]/text()\").all().get(0));\n\t\t\n\t\t//x类\n\t\tif(contain)\n\t\t{\n\t\t\t//专利类型\n\t\t\tpage.putField(\"patent_type\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//法律状态\n\t\t\tList<String> legal=new ArrayList<String>();\n\t\t\tlegal=page.getHtml().xpath(\"//tbody/tr[3]/td[2]/div/div/span/text()\").all();\n\t\t\tString templegal=\"\";\n\t\t\tfor(int i=0;i<legal.size();i++)\n\t\t\t\ttemplegal+=legal.get(i);\n\t\t\tpage.putField(\"legal_status\",templegal);\n\t\t\t\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[4]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//主权项\n\t\t\tpage.putField(\"sovereignty\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[9]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[6]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//发明人\n\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[7]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主申请人地址\n\t\t\tpage.putField(\"people_address\", page.getHtml().xpath(\"//tbody/tr[10]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//省市代码\n\t\t\tpage.putField(\"city_code\", page.getHtml().xpath(\"//tbody/tr[11]/td[4]/span/text()\").all().get(0));\n\t\t}\n\t\t//n类\n\t\telse{\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\",page.getHtml().xpath(\"//tbody/tr[3]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[4]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\t//如果申请人为空,则没有span标签\n\t\t\tList<String> apply=new ArrayList<String>();\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",apply.get(0));\n\t\t\t}\n\t\t\t\n\t\t\t//发明人\n\t\t\t//如果发明人为空,则没有span标签\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",apply.get(0));\n\t\t\t}\t\n\t\t}\t\n\t\t\n\t\tpage.putField(\"url\", page.getRequest().getUrl());\n//\t\tSystem.out.println(page.getResultItems().get(\"patent_name\"));\n\t}",
"@Test\n public void getListingsPages_1() throws IOException {\n List<String> listingsPages = imobiParser.getListingPages(TEST_URL_PAGINATION_1);\n\n Assert.assertThat(listingsPages, notNullValue());\n Assert.assertThat(listingsPages.size(), is(10));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_1.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(1)))));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_1.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(5)))));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_1.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(10)))));\n }",
"private int getLatestWickets() {\n // return 2 for simplicity\n return 2;\n }",
"public static void listing5_14() {\n }",
"@Test\n\tpublic void mostPopularBike()\n\t{\t\t\n\t\tassertEquals(controller.getReport().getMostPopularBike(), \"BIKE1\");\n\t}",
"@Test\n public void test127() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Form form0 = errorPage0._getForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }",
"@Test(priority = 6)\n public void elementsOnDifferentElementsPageTest() {\n List<WebElement> checkboxesList = driver.findElements(By.className(\"label-checkbox\"));\n assertEquals(checkboxesList.size(), 4);\n List<WebElement> radioList = driver.findElements(By.className(\"label-radio\"));\n assertEquals(radioList.size(), 4);\n assertTrue(driver.findElement(By.className(\"colors\")).isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"button[name='Default Button']\"))\n .isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"input[value='Button']\"))\n .isDisplayed());\n }",
"@Test(priority=1)\n\tpublic void validateProductPagePrice()\n\t{\n\t\tAssert.assertEquals(productpage.getPrice(), ResultsPage.price);\n\t\tproceedToCheckOut();\n\t\t\n\t}",
"long getAmountPage();",
"private void GetPByActionValue(HttpServletRequest request, HttpServletResponse response) throws IOException, NumberFormatException {\n String fullClassPath = request.getParameter(\"fullClassPath\");\n String indexStr = request.getParameter(\"index\");\n String type = request.getParameter(\"type\");\n int ElementIndex = Integer.parseInt(indexStr);\n\n String result = XMLTree.getInstance().getPValuesByActionValue(fullClassPath, ElementIndex, type);\n response.getWriter().write(result);\n }",
"@Test(enabled=true)\npublic void getRequest() {\n\t\tString url = \"https://reqres.in/api/users?page=2\";\n\t\t\n\t\t//create an object of response class\n\t\t\n\t\t//Restassured will send get request to the url and store response in response object\n\t\tResponse response = RestAssured.get(url);\n\t\t\n\t\t//We have to put assertion in response code and response data\n\t\tAssert.assertEquals(response.getStatusCode(), 200 , \"Response code Mismatch\");\n\t\t\n\t\tint total_pages = response.jsonPath().get(\"total_pages\");\n\t\tAssert.assertEquals(total_pages, 2 , \"Total Pages value Mismatch\");\n \n}",
"@Override\nprotected void doPage(Frame frame,Circuit circuit, IPlug plug, PageContext ctx) {\n\t\n}",
"@Test\n public void testDAM30601003() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30601003Click();\n\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000030\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"Todo 30\");\n\n TodoDetailsPage todoDetailsPage = registerTodoPage.addTodoAndRetInt();\n\n String booleanStr = todoDetailsPage.getRegistrationResult();\n\n assertThat(booleanStr, equalTo(\"1\"));\n\n // assert all the properties of fetched record.\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"Todo 30\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000030\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"In-Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/28\"));\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"0\"));\n\n // Now check for false return value\n webDriverOperations.displayPage(getPackageRootUrl());\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30601003Click();\n\n registerTodoPage = todoListPage.registerTodo();\n\n registerTodoPage.setTodoId(\"0000000030\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"Todo 30\");\n\n todoDetailsPage = registerTodoPage.addTodoAndRetInt();\n\n booleanStr = todoDetailsPage.getRegistrationResult();\n\n assertThat(booleanStr, equalTo(\"0\"));\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyGlobalNavigationLinks()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Gas Page Navigation Links\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GloabalSMRGas\");\n\t\tnew SubmitMeterReadAction()\n\t\t.BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .BgbverifyAfterLogin()\n\t .clickSubmitMeterReadLink()\t\n\t\t.verifyGlobalNavigationLink();\n}",
"io.dstore.values.StringValueOrBuilder getPageOrBuilder();",
"@Test\n public void testDAM30601002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30601002Click();\n\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000030\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"Todo 30\");\n\n TodoDetailsPage todoDetailsPage = registerTodoPage\n .addTodoWithAndReturnBool();\n\n String booleanStr = todoDetailsPage.getRegistrationResult();\n\n assertThat(booleanStr, equalTo(\"true\"));\n\n // assert all the properties of fetched record.\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"Todo 30\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000030\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"In-Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/28\"));\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"0\"));\n\n // Now check for false return value\n webDriverOperations.displayPage(getPackageRootUrl());\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30601002Click();\n\n registerTodoPage = todoListPage.registerTodo();\n\n registerTodoPage.setTodoId(\"0000000030\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"Todo 30\");\n\n todoDetailsPage = registerTodoPage.addTodoWithAndReturnBool();\n\n booleanStr = todoDetailsPage.getRegistrationResult();\n\n assertThat(booleanStr, equalTo(\"false\"));\n\n }",
"@Test\n public void test2POJOWriteWithPojoPage() {\n PojoRepository<Artifact, Long> products = client.newPojoRepository(Artifact.class, Long.class);\n // Load more than 110 objects into different collections\n products.deleteAll();\n Long[] ids = new Long[111];\n int j = 0;\n for (int i = 222; i < 333; i++) {\n ids[j] = (long) i;\n j++;\n if (i % 2 == 0) {\n products.write(this.getArtifact(i), \"even\", \"numbers\");\n }\n else {\n products.write(this.getArtifact(i), \"odd\", \"numbers\");\n }\n }\n assertEquals(\"Total number of object recods\", 111, products.count(\"numbers\"));\n assertEquals(\"Collection even count\", 56, products.count(\"even\"));\n assertEquals(\"Collection odd count\", 55, products.count(\"odd\"));\n\n System.out.println(\"Default Page length setting on docMgr :\" + products.getPageLength());\n assertEquals(\"Default setting for page length\", 50, products.getPageLength());\n products.setPageLength(100);\n assertEquals(\"explicit setting for page length\", 100, products.getPageLength());\n PojoPage<Artifact> p = products.search(1, \"numbers\");\n // test for page methods\n assertEquals(\"Number of records\", 100, p.size());\n // System.out.println(\"Page size\"+p.size());\n assertEquals(\"Starting record in first page \", 1, p.getStart());\n // System.out.println(\"Starting record in first page \"+p.getStart());\n\n assertEquals(\"Total number of estimated results:\", 111, p.getTotalSize());\n // System.out.println(\"Total number of estimated results:\"+p.getTotalSize());\n assertEquals(\"Total number of estimated pages :\", 2, p.getTotalPages());\n // System.out.println(\"Total number of estimated pages :\"+p.getTotalPages());\n System.out.println(\"is this firstPage or LastPage:\" + p.isFirstPage() + \" \" + p.isLastPage() + \"has previous page\" + p.hasPreviousPage());\n assertTrue(\"Is this First page :\", p.isFirstPage());// this is bug\n assertFalse(\"Is this Last page :\", p.isLastPage());\n assertTrue(\"Is this First page has content:\", p.hasContent());\n // Need the Issue #75 to be fixed\n assertFalse(\"Is first page has previous page ?\", p.hasPreviousPage());\n long pageNo = 1, count = 0;\n do {\n count = 0;\n p = products.search(pageNo, \"numbers\");\n if (pageNo > 1) {\n assertFalse(\"Is this first Page\", p.isFirstPage());\n assertTrue(\"Is page has previous page ?\", p.hasPreviousPage());\n }\n Iterator<Artifact> itr = p.iterator();\n while (itr.hasNext()) {\n this.validateArtifact(p.iterator().next());\n count++;\n }\n // assertEquals(\"document count\", p.size(),count);\n System.out.println(\"Is this Last page :\" + p.hasContent() + p.isLastPage() + p.getPageNumber());\n pageNo = pageNo + p.getPageSize();\n } while (pageNo < p.getTotalSize());\n assertTrue(\"Page has previous page ?\", p.hasPreviousPage());\n assertEquals(\"page size\", 11, p.size());\n assertEquals(\"document count\", 111, p.getTotalSize());\n assertTrue(\"Page has any records ?\", p.hasContent());\n\n products.deleteAll();\n // see any document exists\n for (long i = 112; i < 222; i++) {\n assertFalse(\"Product id \" + i + \" exists ?\", products.exists(i));\n }\n // see if it complains when there are no records\n }",
"@Test\n\tpublic void testUniversalValue() {// named changed from Global to Universal\n\t\tAssert.assertEquals((int)(1500),EUR10.universalValue(),0);\n\t}",
"static int getPageNumber(String value){\n int pageNumber = 1;\n if(!TextUtils.isEmpty(value)){\n pageNumber = Integer.getInteger(value, pageNumber);\n }\n return pageNumber;\n }",
"@Test\n public void searchPageTest (){\n searchPage=new SearchPage();\n\n // loginPage.goToLoginPage();\n // loginPage.login();\n searchPage.searchKeysFromHeader(\"İphone\");\n searchPage.searchResultPage(\"İphone\");\n\n}"
] | [
"0.6090046",
"0.5692494",
"0.56212324",
"0.5564961",
"0.55252093",
"0.55236936",
"0.55025023",
"0.5466335",
"0.5460668",
"0.5438105",
"0.5419295",
"0.54152215",
"0.5375993",
"0.53619325",
"0.5344006",
"0.53425515",
"0.534",
"0.5280448",
"0.5278647",
"0.5274639",
"0.52645",
"0.52237725",
"0.5218357",
"0.52145004",
"0.52026796",
"0.5171196",
"0.517106",
"0.51541024",
"0.5136595",
"0.5136595",
"0.5136595",
"0.51296437",
"0.5128432",
"0.51278776",
"0.5116814",
"0.5114245",
"0.511051",
"0.51000243",
"0.5097368",
"0.5096998",
"0.5095299",
"0.5094318",
"0.50930333",
"0.50916356",
"0.5080055",
"0.50599045",
"0.5058812",
"0.50550157",
"0.5043841",
"0.5030422",
"0.5019625",
"0.50105387",
"0.50064415",
"0.49997848",
"0.49974868",
"0.49934644",
"0.49927464",
"0.49862826",
"0.49858132",
"0.49832517",
"0.49826473",
"0.4978237",
"0.4972652",
"0.4970433",
"0.49699652",
"0.49699306",
"0.49695045",
"0.49670914",
"0.49663463",
"0.49610654",
"0.4952033",
"0.4951373",
"0.4950268",
"0.49476114",
"0.49473757",
"0.49443746",
"0.49380326",
"0.49380326",
"0.4936273",
"0.49340427",
"0.49339172",
"0.49333814",
"0.4932321",
"0.492192",
"0.49217752",
"0.49196154",
"0.4919116",
"0.49184462",
"0.49171296",
"0.49153525",
"0.49084505",
"0.4905051",
"0.48999235",
"0.489669",
"0.48928785",
"0.4890974",
"0.48889786",
"0.48839927",
"0.48839414",
"0.48836684",
"0.48833436"
] | 0.0 | -1 |
Compares this RowId to the specified object. | public byte[] getBytes() {
return toString().getBytes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean equals(Object obj) {\n\n if (obj == this) {\n return true;\n }\n\n if (obj instanceof Row) {\n return ((Row) obj).table == table\n && ((Row) obj).position == position;\n }\n\n return false;\n }",
"@Override\n public boolean equals(Object obj){\n if(this == obj){\n return true;\n }\n else if(!(obj instanceof Row)){\n return false;\n }\n\n Row row2 = (Row)obj;\n\n return this.index == row2.index && this.spaces.equals(row2.spaces);\n }",
"public boolean equals(Object obj)\n {\n if (! (obj instanceof TableRow))\n return false;\n \n return data.equals(((TableRow) obj).data);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof OrdenitemPK)) {\r\n return false;\r\n }\r\n OrdenitemPK other = (OrdenitemPK) object;\r\n if (this.ordencompraNumeroorden != other.ordencompraNumeroorden) {\r\n return false;\r\n }\r\n if (this.libroIsbn != other.libroIsbn) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof MatchEntryPK))\n {\n return false;\n }\n MatchEntryPK other = (MatchEntryPK) object;\n if (this.id != other.id)\n {\n return false;\n }\n if (this.formatId != other.formatId)\n {\n return false;\n }\n return this.formatGameId == other.formatGameId;\n }",
"public boolean equals(Object otherObject) {\n if (!(otherObject instanceof ID)) {\n return false;\n }\n return (this.UID.equals(otherObject.toString()));\n }",
"@Override\n public boolean equals (Object o) {\n if (!(o instanceof Row)) return false;\n\n Row other = (Row)o;\n if(index!=other.getIndex())\n return false;\n for (int i = 0; i < row.size(); i++)\n if (!row.get(i).equals(other.get(i)))\n return false;\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof RecorridoRutasPK)) {\n return false;\n }\n RecorridoRutasPK other = (RecorridoRutasPK) object;\n if ((this.idRuta == null && other.idRuta != null) || (this.idRuta != null && !this.idRuta.equals(other.idRuta))) {\n return false;\n }\n if (this.idParada != other.idParada) {\n return false;\n }\n if (this.correlativo != other.correlativo) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof RolesEntidadEntityPK)) {\n return false;\n }\n RolesEntidadEntityPK other = (RolesEntidadEntityPK) object;\n if (this.entidadId != other.entidadId) {\n return false;\n }\n if ((this.rolId == null && other.rolId != null) || (this.rolId != null && !this.rolId.equals(other.rolId))) {\n return false;\n }\n return true;\n }",
"public boolean equals(Object object) {\n\t\tif (object == null) {\n\t\t\treturn false;\n\t\t}\n\t\t// This test rules out instances of a subclass.\n\t\tif (object.getClass() != getClass()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tLongMatrixToken matrixArgument = (LongMatrixToken) object;\n\n\t\tif (_rowCount != matrixArgument.getRowCount()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (_columnCount != matrixArgument.getColumnCount()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tlong[] value = matrixArgument._value;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tif (_value[i] != value[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public int compare(int rowId1, int rowId2) {\n assert _sortedRowIds != null;\n return _fileReader.compare(_sortedRowIds[rowId1], _sortedRowIds[rowId2]);\n }",
"public native boolean __equals( long __swiftObject, java.lang.Object arg0 );",
"@Override\n public boolean equals(Object obj){\n boolean isEqual = false;\n if (this.getClass() == obj.getClass())\n {\n ItemID itemID = (ItemID) obj;\n if (itemID.id.equals(this.id))\n isEqual = true;\n }\n \n return isEqual;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TagPK)) {\r\n return false;\r\n }\r\n TagPK other = (TagPK) object;\r\n if (this.articleId != other.articleId) {\r\n return false;\r\n }\r\n if (this.seq != other.seq) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GroupTablePK)) {\r\n return false;\r\n }\r\n GroupTablePK other = (GroupTablePK) object;\r\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\r\n return false;\r\n }\r\n if ((this.idGroup == null && other.idGroup != null) || (this.idGroup != null && !this.idGroup.equals(other.idGroup))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean equals(Object arg0) {\n\t\t Student s=(Student)arg0;\r\n\t\treturn this.id==s.id;\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof RevResultado)) {\n return false;\n }\n RevResultado other = (RevResultado) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(@Nullable Object object) {\n // TODO: Warning - this method won't work in the case the id fields are not set\n if (!(object instanceof XBENodeTree)) {\n return false;\n }\n\n XBENodeTree other = (XBENodeTree) object;\n return this.getId() == other.getId();\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TipoTratamientoObraSocialPK)) {\r\n return false;\r\n }\r\n TipoTratamientoObraSocialPK other = (TipoTratamientoObraSocialPK) object;\r\n if (this.tipotratamientoid != other.tipotratamientoid) {\r\n return false;\r\n }\r\n if (this.obrasocialid != other.obrasocialid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Kanri)) {\n return false;\n }\n Kanri other = (Kanri) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tmproyecto)) {\n return false;\n }\n Tmproyecto other = (Tmproyecto) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CompteBancaire)) {\r\n return false;\r\n }\r\n CompteBancaire other = (CompteBancaire) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ClientePK)) {\n return false;\n }\n ClientePK other = (ClientePK) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n if ((this.tipoId == null && other.tipoId != null) || (this.tipoId != null && !this.tipoId.equals(other.tipoId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TmadjuntoPK)) {\n return false;\n }\n TmadjuntoPK other = (TmadjuntoPK) object;\n if (this.id != other.id) {\n return false;\n }\n if (this.tmDocumentoid != other.tmDocumentoid) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n // TODO: Warning - this method won't work in the case the id fields are not set\n if (!(object instanceof DatasetParameterPK)) {\n return false;\n }\n DatasetParameterPK other = (DatasetParameterPK)object;\n if (this.units != other.units && (this.units == null || !this.units.equals(other.units))) return false;\n if (this.name != other.name && (this.name == null || !this.name.equals(other.name))) return false;\n if (this.datasetId != other.datasetId && (this.datasetId == null || !this.datasetId.equals(other.datasetId))) return false;\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TblProductDetail)) {\n return false;\n }\n TblProductDetail other = (TblProductDetail) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof EmpresaPK)) {\r\n return false;\r\n }\r\n EmpresaPK other = (EmpresaPK) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n if (this.contactoEmpresaid != other.contactoEmpresaid) {\r\n return false;\r\n }\r\n if (this.direccionEmpresaid != other.direccionEmpresaid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object obj) {\r\n if (!(obj instanceof Position))\r\n return false;\r\n Position pos = (Position)obj;\r\n return ((pos.getRowIndex() == this.rowIndex) && (pos.getColumnIndex() == this.colIndex));\r\n }",
"@Override\n public boolean equals(final Object object) {\n if(!(object instanceof Course)) return false;\n\n return this.uuid.hashCode()== ((Course)object).uuid.hashCode();\n // END\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ObservacionesPK)) {\n return false;\n }\n ObservacionesPK other = (ObservacionesPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.id != other.id) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Resultado)) {\n return false;\n }\n Resultado other = (Resultado) object;\n if ((this.idresultado == null && other.idresultado != null) || (this.idresultado != null && !this.idresultado.equals(other.idresultado))) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\tif(id.equals(arg0.toString())) {\n\t\t\tSystem.out.println(\"true\");\n\t\t\treturn 0;\n\t\t}\n\t\treturn -1;\n\t}",
"@Test\n public void testEqualsObject() {\n \n BSPJobID jobId1 = new BSPJobID(jtIdentifier, 2);\n System.out.println(jobId.equals(jobId1));\n assertEquals(false, jobId.equals(jobId1));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof PessoaTitularPK)) {\n return false;\n }\n PessoaTitularPK other = (PessoaTitularPK) object;\n if (this.nrMatricula != other.nrMatricula) {\n return false;\n }\n if (this.cdCorporacao != other.cdCorporacao) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof OrderDetailPK)) {\n return false;\n }\n OrderDetailPK other = (OrderDetailPK) object;\n if (this.orderId != other.orderId) {\n return false;\n }\n return this.itemId == other.itemId;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Rolistafit)) {\n return false;\n }\n Rolistafit other = (Rolistafit) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn (new Integer(o1.id)).compareTo(o2.id);\r\n\t\t\t\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Acarsdata)) {\r\n return false;\r\n }\r\n Acarsdata other = (Acarsdata) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Valvula)) {\n return false;\n }\n Valvula other = (Valvula) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Resultado)) {\r\n return false;\r\n }\r\n Resultado other = (Resultado) object;\r\n if ((this.idResultado == null && other.idResultado != null) || (this.idResultado != null && !this.idResultado.equals(other.idResultado))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean equals(Object obj) {\n // we must deproxy objects before comparison, because hibernate proxy could be received here\n AbstractEntity<ID> thisEntity = HibernateUtils.deproxy(this);\n Object otherEntity = HibernateUtils.deproxy(obj);\n\n ID id = thisEntity.getId();\n\n if (id != null && otherEntity != null && otherEntity.getClass().getName().equals(getClass().getName())) {\n return id.equals(((AbstractEntity) otherEntity).getId());\n }\n\n // fallback to reference equality, original object instance should be used there\n return super.equals(obj);\n }",
"public boolean equals(Object o) {\r\n if (!(o instanceof ColumnRow)) return false;\r\n \r\n if (((ColumnRow)o).getColumnaBD().equals(this.columnaBD) &&\r\n ((ColumnRow)o).getColumnaSistema().equals(this.columnaSistema)) \r\n return true;\r\n \r\n else\r\n return false;\r\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tif(!(obj instanceof User)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tUser obj2 = (User)obj;\r\n\t\tif(this.id>0){\r\n\t\t\treturn this.id==obj2.getId();\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof GrnRetrunDetail)) {\n return false;\n }\n GrnRetrunDetail other = (GrnRetrunDetail) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Product)) {\r\n return false;\r\n }\r\n Product other = (Product) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TbProduct)) {\n return false;\n }\n TbProduct other = (TbProduct) object;\n if ((this.productID == null && other.productID != null) || (this.productID != null && !this.productID.equals(other.productID))) {\n return false;\n }\n return true;\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tNode another = (Node) obj;\r\n\t\treturn (this.id == another.getId());\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof BlockPK)) {\n return false;\n }\n BlockPK other = (BlockPK) object;\n if ((this.timetableCode == null && other.timetableCode != null) || (this.timetableCode != null && !this.timetableCode.equals(other.timetableCode))) {\n return false;\n }\n if (this.blockNumber != other.blockNumber) {\n return false;\n }\n if ((this.blockDay == null && other.blockDay != null) || (this.blockDay != null && !this.blockDay.equals(other.blockDay))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ReservacionesPK)) {\n return false;\n }\n ReservacionesPK other = (ReservacionesPK) object;\n if (this.idreservaciones != other.idreservaciones) {\n return false;\n }\n if (this.clienteIdcliente != other.clienteIdcliente) {\n return false;\n }\n if (this.sucursalIdubicacion != other.sucursalIdubicacion) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TimetablePK)) {\n return false;\n }\n TimetablePK other = (TimetablePK) object;\n if (this.idTt != other.idTt) {\n return false;\n }\n if ((this.idFaculty == null && other.idFaculty != null) || (this.idFaculty != null && !this.idFaculty.equals(other.idFaculty))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof MestoPK)) {\r\n return false;\r\n }\r\n MestoPK other = (MestoPK) object;\r\n if (this.mestoId != other.mestoId) {\r\n return false;\r\n }\r\n if (this.ustanovaId != other.ustanovaId) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Orcamento)) {\n return false;\n }\n Orcamento other = (Orcamento) object;\n if ((this.orcamentoPK == null && other.orcamentoPK != null) || (this.orcamentoPK != null && !this.orcamentoPK.equals(other.orcamentoPK))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ResultadoSorteio)) {\r\n return false;\r\n }\r\n ResultadoSorteio other = (ResultadoSorteio) object;\r\n if ((this.pkIdResultadoSorteio == null && other.pkIdResultadoSorteio != null) || (this.pkIdResultadoSorteio != null && !this.pkIdResultadoSorteio.equals(other.pkIdResultadoSorteio))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Thjerreza)) {\r\n return false;\r\n }\r\n Thjerreza other = (Thjerreza) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof HrsRoles)) {\n return false;\n }\n HrsRoles other = (HrsRoles) object;\n if ((this.hrsRolesPK == null && other.hrsRolesPK != null) || (this.hrsRolesPK != null && !this.hrsRolesPK.equals(other.hrsRolesPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CommentPK)) {\n return false;\n }\n CommentPK other = (CommentPK) object;\n if (this.commentId != other.commentId) {\n return false;\n }\n if (this.post != other.post) {\n return false;\n }\n return true;\n }",
"public int compareTo(Object o){\r\n\t\t Employee emp = (Employee) emp;\r\n\t\t return this.id-o.id ;\r\n\t\t}",
"public int compareTo(Object obj) {\n UserRoleId otherItem = (UserRoleId)obj;\n if (this.userId.compareTo(otherItem.userId) != 0) {\n return this.userId.compareTo(otherItem.userId);\n }\n if (this.role.compareTo(otherItem.role) != 0) {\n return this.role.compareTo(otherItem.role);\n }\n return 0;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Lektor)) {\r\n return false;\r\n }\r\n Lektor other = (Lektor) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CatalogoVehiculos)) {\r\n return false;\r\n }\r\n CatalogoVehiculos other = (CatalogoVehiculos) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ScEntregaRetorno)) {\n return false;\n }\n ScEntregaRetorno other = (ScEntregaRetorno) object;\n if ((this.scEntregaRetornoPK == null && other.scEntregaRetornoPK != null) || (this.scEntregaRetornoPK != null && !this.scEntregaRetornoPK.equals(other.scEntregaRetornoPK))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof RotaLixeira)) {\r\n return false;\r\n }\r\n RotaLixeira other = (RotaLixeira) object;\r\n if ((this.idRotaLixeira == null && other.idRotaLixeira != null) || (this.idRotaLixeira != null && !this.idRotaLixeira.equals(other.idRotaLixeira))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ResolucaoPK)) {\n return false;\n }\n ResolucaoPK other = (ResolucaoPK) object;\n if (this.avaliacaoId != other.avaliacaoId) {\n return false;\n }\n if (this.usuarioId != other.usuarioId) {\n return false;\n }\n return true;\n }",
"@Override\n public int compareTo(Object otherobject)\n {\n\n Stamp other = (Stamp) otherobject;\n if(id < other.getID())\n return -1;\n else if(id == other.getID())\n return 0;\n else\n return 1;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Compra)) {\n return false;\n }\n Compra other = (Compra) object;\n if ((this.compraPK == null && other.compraPK != null) || (this.compraPK != null && !this.compraPK.equals(other.compraPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Etablissement)) {\n return false;\n }\n Etablissement other = (Etablissement) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (object == null) {\n return false;\n }\n if (!User.class.isAssignableFrom(object.getClass())) {\n return false;\n }\n final User other = (User) object;\n if (this.id != other.id) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TblCLIENTEINDICADORES)) {\r\n return false;\r\n }\r\n TblCLIENTEINDICADORES other = (TblCLIENTEINDICADORES) object;\r\n if ((this.idclienteIndicador == null && other.idclienteIndicador != null) || (this.idclienteIndicador != null && !this.idclienteIndicador.equals(other.idclienteIndicador))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Jscmisto)) {\r\n return false;\r\n }\r\n Jscmisto other = (Jscmisto) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Cdrbrdta)) {\n return false;\n }\n Cdrbrdta other = (Cdrbrdta) object;\n if ((this.cdrbrdtaPK == null && other.cdrbrdtaPK != null) || (this.cdrbrdtaPK != null && !this.cdrbrdtaPK.equals(other.cdrbrdtaPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComunicationPK)) {\n return false;\n }\n ComunicationPK other = (ComunicationPK) object;\n if (this.idComunication != other.idComunication) {\n return false;\n }\n if (this.idRationale != other.idRationale) {\n return false;\n }\n if (this.idScientistReceptor != other.idScientistReceptor) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Compras)) {\r\n return false;\r\n }\r\n Compras other = (Compras) object;\r\n if ((this.idCompras == null && other.idCompras != null) || (this.idCompras != null && !this.idCompras.equals(other.idCompras))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof UserComponent)) {\r\n return false;\r\n }\r\n UserComponent other = (UserComponent) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MejObra)) {\n return false;\n }\n MejObra other = (MejObra) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Lit)) {\n return false;\n }\n Lit other = (Lit) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof OrdenesTrabajo)) {\r\n return false;\r\n }\r\n OrdenesTrabajo other = (OrdenesTrabajo) object;\r\n if ((this.idOrdenTrabajo == null && other.idOrdenTrabajo != null) || (this.idOrdenTrabajo != null && !this.idOrdenTrabajo.equals(other.idOrdenTrabajo))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tarjeta)) {\n return false;\n }\n Tarjeta other = (Tarjeta) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public final boolean equals(Object obj) {\n if (!(obj instanceof UniqueID))\n return false;\n UniqueID castObj = (UniqueID)obj;\n return this.leastSigBits == castObj.leastSigBits && this.mostSigBits == castObj.mostSigBits;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Matiere)) {\n return false;\n }\n Matiere other = (Matiere) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof OperacaoCaixa)) {\n return false;\n }\n OperacaoCaixa other = (OperacaoCaixa) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TicketHistoricoPK)) {\r\n return false;\r\n }\r\n TicketHistoricoPK other = (TicketHistoricoPK) object;\r\n if ((this.ticketId == null && other.ticketId != null) || (this.ticketId != null && !this.ticketId.equals(other.ticketId))) {\r\n return false;\r\n }\r\n if ((this.usuarioId == null && other.usuarioId != null) || (this.usuarioId != null && !this.usuarioId.equals(other.usuarioId))) {\r\n return false;\r\n }\r\n if ((this.fecha == null && other.fecha != null) || (this.fecha != null && !this.fecha.equals(other.fecha))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean equals(Object o) {\n if (o == this) {\n return true;\n }\n if (o instanceof SortKey) {\n return (((SortKey) o).column == column && ((SortKey) o).sortOrder == sortOrder);\n }\n return false;\n }",
"@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Epoch)\n return (this.id == ((Epoch) object).getId());\n return false;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Itensorc)) {\n return false;\n }\n Itensorc other = (Itensorc) object;\n if ((this.itensorcPK == null && other.itensorcPK != null) || (this.itensorcPK != null && !this.itensorcPK.equals(other.itensorcPK))) {\n return false;\n }\n return true;\n }",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CxiPK)) {\n return false;\n }\n CxiPK other = (CxiPK) object;\n if ((this.cancionTituloC == null && other.cancionTituloC != null) || (this.cancionTituloC != null && !this.cancionTituloC.equals(other.cancionTituloC))) {\n return false;\n }\n if (this.cancionIdIn != other.cancionIdIn) {\n return false;\n }\n if (this.interpreteIdIn != other.interpreteIdIn) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Compra)) {\n return false;\n }\n Compra other = (Compra) object;\n if ((this.id_compra == null && other.id_compra != null) || (this.id_compra != null && !this.id_compra.equals(other.id_compra))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TableLayout)) {\n return false;\n }\n TableLayout other = (TableLayout) object;\n if ((this.layoutId == null && other.layoutId != null) || (this.layoutId != null && !this.layoutId.equals(other.layoutId))) {\n return false;\n }\n return true;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof AssetParameterDta)) {\n return false;\n }\n AssetParameterDta other = (AssetParameterDta) object;\n if (this.id != null && other.id != null) {\n return this.id.equals(other.id);\n }\n return this.seq == other.seq;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof IgracUcinakPK)) {\n return false;\n }\n IgracUcinakPK other = (IgracUcinakPK) object;\n if (this.utakmicaId != other.utakmicaId) {\n return false;\n }\n if (this.igracId != other.igracId) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof LearningResult)) {\n return false;\n }\n LearningResult other = (LearningResult) object;\n if ((this.learningResultPK == null && other.learningResultPK != null) || (this.learningResultPK != null && !this.learningResultPK.equals(other.learningResultPK))) {\n return false;\n }\n return true;\n }"
] | [
"0.63289016",
"0.62530625",
"0.6173042",
"0.6101709",
"0.6093965",
"0.5860636",
"0.58584064",
"0.58515644",
"0.5810781",
"0.5785797",
"0.57797086",
"0.5722378",
"0.56963927",
"0.5689686",
"0.56896263",
"0.56835926",
"0.5678961",
"0.5676839",
"0.5665741",
"0.56580245",
"0.56574947",
"0.56178635",
"0.56091017",
"0.55761987",
"0.55643547",
"0.55620396",
"0.55550045",
"0.5552809",
"0.55472654",
"0.554117",
"0.55336255",
"0.55291295",
"0.5526812",
"0.55265146",
"0.5520853",
"0.55192167",
"0.5507525",
"0.55071604",
"0.55049103",
"0.5495244",
"0.5487361",
"0.5487178",
"0.54856235",
"0.54726946",
"0.5470659",
"0.54652524",
"0.5456532",
"0.5455917",
"0.5452814",
"0.5452779",
"0.5452293",
"0.54501605",
"0.54486",
"0.544305",
"0.5442531",
"0.54417604",
"0.5439035",
"0.543599",
"0.54341197",
"0.5430853",
"0.54299533",
"0.5428698",
"0.542808",
"0.5423753",
"0.54203343",
"0.5418757",
"0.5413976",
"0.5403781",
"0.5402601",
"0.5400262",
"0.53993434",
"0.53841114",
"0.5381767",
"0.5378699",
"0.53786296",
"0.5378204",
"0.5375051",
"0.537365",
"0.53729266",
"0.53714633",
"0.53714633",
"0.53714633",
"0.53714633",
"0.53714633",
"0.5369652",
"0.5366451",
"0.5350471",
"0.53445435",
"0.5338688",
"0.53366476",
"0.5335458",
"0.53340966",
"0.5333972",
"0.53300786",
"0.53300786",
"0.53300786",
"0.53300786",
"0.53300786",
"0.5327382",
"0.5325744",
"0.5323208"
] | 0.0 | -1 |
Returns an array of bytes representing the value of the SQL ROWID designated by this java.sql.RowId object. | public int hashCode() {
return super.hashCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getRowId() {\n return rowId;\n }",
"public byte[] getBytes(int columnIndex) throws SQLException\n {\n return m_rs.getBytes(columnIndex);\n }",
"public byte getValueInRowKey() {\n return valueInRowKey;\n }",
"public String[] getRowID() {\n \treturn rowID;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"byte[] getRow() {\r\n return delete.getRow();\r\n }",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"public Long getRowKey() {\n return (Long) getAttributeInternal(ROWKEY);\n }",
"String get_row_id()\n {\n return row_id;\n }",
"public RowID getRowID() {\n return (RowID)getAttributeInternal(ROWID);\n }",
"public RowID getRowID() {\n return (RowID)getAttributeInternal(ROWID);\n }",
"@Nullable\n public byte[] getValue(MDSKey id) {\n Row row = table.get(id.getKey());\n return row.isEmpty() ? null : row.get(COLUMN);\n }",
"public int[] getRow(int rowId) {\n return this.rows[rowId];\n }",
"public byte[] getValue()\n\t{\n\t\tJNIBinaryField jBinField = (JNIBinaryField) getInternal();\n\n\t\treturn jBinField.getValue();\n\t}",
"public byte[] getBytes(String columnName) throws SQLException\n {\n return m_rs.getBytes(columnName);\n }",
"public int getRowid() {\n\t\treturn rowid;\n\t}",
"public byte[] getVarBinary(int columnIndex) {\n VarBinaryVector vector = (VarBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public byte[] getEncoded() {\n return toByteArray(Integer.valueOf(this.intValue));\n }",
"public long getRowID()\n\t{ return m_nRowID ; }",
"public byte[] getByteArray() {\n long val = getValue();\n return new byte[] {\n (byte)((val>>24) & 0xff),\n (byte)((val>>16) & 0xff),\n (byte)((val>>8) & 0xff),\n (byte)(val & 0xff) };\n }",
"public byte[] getBytes(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getBytes\", columnIndex);\n return get(columnIndex).getBytes();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public byte[] getVarBinary(String columnName) {\n VarBinaryVector vector = (VarBinaryVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public Object[] getData() {\n return rowData;\n }",
"public byte[] getBytes() {\r\n return this.seqArray;\r\n }",
"public byte[] getLargeVarBinary(int columnIndex) {\n LargeVarBinaryVector vector = (LargeVarBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public Map<Integer, byte[]> getAsBinary() throws SQLException {\n return retrieveExpected(createNativeAsBinaryStatement(), OBJECT);\n }",
"public int[] getRow() { return _row; }",
"public String getResourceId2Sql()\r\n \t{\r\n \t\treturn \"select RESOURCE_ID from CONTENT_RESOURCE_BODY_BINARY where (RESOURCE_ID = ?)\";\r\n \t}",
"public byte[] getFixedSizeBinary(int columnIndex) {\n FixedSizeBinaryVector vector = (FixedSizeBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public Object getRowKey()\n {\n if (isRowAvailable())\n {\n Object rowKey = _getRowKey();\n return rowKey;\n }\n else\n {\n return null;\n }\n }",
"public String getRowID(int i) {\n \treturn rowID[i];\n }",
"public com.vmware.vim.sms.RowData[] getRowData() {\n\t\treturn rowData;\n\t}",
"public String getSelectedRowID()\n\t{\n\t\tint selectedRow = recordTable.getSelectedRow();\n\t\tString returnData = null;\n\t\tif(selectedRow==-1)\n\t\t{//If there is no row selected...\n\t\t\treturn null;\n\t\t}\n\t\treturnData = (String)recordTable.getValueAt(selectedRow, Information.FIELDID);\n\t\treturn returnData;\n\t}",
"public static int[] getID()\n {\n \n String TableData[][]= getTableData();\n int row=getRowCount();\n int ID[]=new int[row];\n for (int i=0;i<TableData.length;i++)\n {\n ID[i]= Integer.parseInt(TableData[i][0]);//converts the data into integer as it was in string\n }\n return ID; //returnd ID array\n }",
"public byte[] getVarChar(int columnIndex) {\n VarCharVector vector = (VarCharVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"byte[] get(byte[] id) throws RemoteException;",
"com.google.protobuf.ByteString\n getDataIdBytes();",
"byte[] getId();",
"public final synchronized byte[] getBytes(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getBytes(parameterIndex);\n }",
"public byte[] getBytes()\n {\n try { return getRepo().newObjectReader().open(_entry.getObjectId()).getBytes(); }\n catch(Exception e) { throw new RuntimeException(e); }\n }",
"public byte[] getFixedSizeBinary(String columnName) {\n FixedSizeBinaryVector vector = (FixedSizeBinaryVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public byte[] getVarChar(String columnName) {\n VarCharVector vector = (VarCharVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public byte[] getLargeVarChar(int columnIndex) {\n LargeVarCharVector vector = (LargeVarCharVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public int getRow() throws SQLException {\n\n try {\n debugCodeCall(\"getRow\");\n checkClosed();\n int rowId = result.getRowId();\n if (rowId >= result.getRowCount()) { return 0; }\n return rowId + 1;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public RowId getRowId(int columnIndex) throws SQLException {\n\n throw Message.getUnsupportedException();\n }",
"public byte[] getBytes() {\n byte[] indexData = VarInt.encode(txIndex);\n byte[] bytes = new byte[32+indexData.length];\n System.arraycopy(txHash.getBytes(), 0, bytes, 0, 32);\n System.arraycopy(indexData, 0, bytes, 32, indexData.length);\n return bytes;\n }",
"@Basic( optional = false )\r\n\t@Column( name = \"table_row_id\", nullable = false )\r\n\tpublic Integer getTableRowId() {\r\n\t\treturn this.tableRowId;\r\n\t\t\r\n\t}",
"@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }",
"public com.google.protobuf.ByteString\n getRowsBytes(int index) {\n return rows_.getByteString(index);\n }",
"@Override\n\tpublic RowIdLifetime getRowIdLifetime() throws SQLException {\n\t\treturn null;\n\t}",
"public byte[] getLargeVarBinary(String columnName) {\n LargeVarBinaryVector vector = (LargeVarBinaryVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }",
"public com.google.protobuf.ByteString\n getRowsBytes(int index) {\n return rows_.getByteString(index);\n }",
"public int getRow() throws SQLException\n {\n return m_rs.getRow();\n }",
"public byte[] getKeyBytes(){\n\t\t\n\t\tif(this.key == null) return null;\n\t\treturn getKey().getBytes();\n\t}",
"public Object[] getOracleArray()\n/* */ throws SQLException\n/* */ {\n/* 272 */ return getOracleArray(0L, Integer.MAX_VALUE);\n/* */ }",
"public interface RowToByteArrayConverter {\r\n byte[] rowToByteArray(ResultSet resultSet);\r\n}",
"com.google.protobuf.ByteString\n getBididBytes();",
"public long getBigInt(int columnIndex) {\n BigIntVector vector = (BigIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public byte[] toBytes () {\n return toTuple().toBytes();\n }",
"public Object[] toRow() {\n String dbType = this.getClass().getSimpleName().replace(\"Database\", \"\");\n dbType = dbType.substring(0, 1) + dbType.substring(1).toLowerCase();\n\n return new Object[] {dbType, getDbHost(), getDbName(), getDbUsername(), getDbPassword(), getUniqueId()};\n }",
"public byte[] getBytes(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getBytes\", columnName);\n return get(columnName).getBytes();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public SQLRowIdentifier() {\n\t\tsuper(EnumSQLType.SqlRowIdentifier, LENGTH);\n\t\t\n\t\tthis.page = new SQLInteger();\n\t\tthis.slot = new SQLInteger();\n\t}",
"@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}",
"com.google.protobuf.ByteString getDataIdBytes();",
"public byte[] getValue() {\n return v;\n }",
"public Cursor getRowData(long rowId) {\n\n String where = KEY_ROWID + \"=\" + rowId;\n Cursor c = db.query(true, DATA_TABLE, null, where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n\n }",
"public byte[] getValue() {\n return this.value;\n }",
"byte[] byteValue() {\n\treturn data;\n }",
"public byte[] getID() {\n return messageid;\n }",
"public Integer getRowNumber() {\n\t\tif (isRowNumber) {\n\t\t\treturn (int) lineId;\n\t\t}\n\t\treturn null;\n\t}",
"public long getUInt8(int columnIndex) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }",
"public byte[] getLargeVarChar(String columnName) {\n LargeVarCharVector vector = (LargeVarCharVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"private int getRID() throws SQLException {\n\t\tResultSet result = getRidStatement.executeQuery();\n\t\tif (result.next()) {\n\t\t\tint out = result.getInt(1);\n\t\t\tresult.close();\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+out+\"\\n\");\n\t\t\t}\n\t\t\treturn out;\n\t\t} else {\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+0+\"\\n\");\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t}",
"public java.sql.Array getArray(int i) throws SQLException\n {\n return m_rs.getArray(i);\n }",
"public byte[] getAsBytes() {\n return (byte[])data;\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _expandoColumn.getPrimaryKey();\n\t}",
"public byte[] value() {\n return value;\n }",
"public byte[] value() {\n return value;\n }",
"public byte[] getIdentifier() {\n return identifier;\n }",
"public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}",
"public RowId getRowId(String columnName) throws SQLException {\n\n throw Message.getUnsupportedException();\n }",
"public long getUInt8(String columnName) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public byte[] generateKey()\n\t{\n\t\tImageKeyGenerate ikg = ImageKeyGenerate.getMD5SHA256();\n\t\tthis.rowKey = MyBytes.toBytes(CommonUtils.byteArrayToHexString(ikg.generate(imageData)));\n\t\treturn this.rowKey;\n\t}",
"com.google.protobuf.ByteString\n getDatabaseIdBytes();",
"public byte[] getAllBytes() {\n return nativeGetAllBytes(__nativePtr);\n }",
"com.google.protobuf.ByteString\n getRegionIdBytes();"
] | [
"0.65608513",
"0.653235",
"0.65133613",
"0.645863",
"0.643314",
"0.643314",
"0.643314",
"0.643314",
"0.643314",
"0.6394478",
"0.6394478",
"0.6394478",
"0.6394478",
"0.6394478",
"0.620466",
"0.6040859",
"0.6040859",
"0.6040859",
"0.6040859",
"0.6040859",
"0.60074127",
"0.59786165",
"0.5967801",
"0.5967801",
"0.5953098",
"0.58406353",
"0.5808128",
"0.5781868",
"0.57691485",
"0.5729825",
"0.57022643",
"0.56927854",
"0.56746954",
"0.56688213",
"0.5637338",
"0.55786943",
"0.5542793",
"0.55356675",
"0.55290604",
"0.5524728",
"0.5512977",
"0.550574",
"0.5478306",
"0.5443645",
"0.54386836",
"0.5409852",
"0.5409337",
"0.5405456",
"0.53885275",
"0.53761846",
"0.53702295",
"0.5363499",
"0.5335316",
"0.53242034",
"0.5309526",
"0.5305413",
"0.5302115",
"0.52979594",
"0.52948225",
"0.5293077",
"0.5284523",
"0.5278884",
"0.52771544",
"0.5275284",
"0.52556175",
"0.524477",
"0.52432555",
"0.52138233",
"0.52043533",
"0.51819134",
"0.5157267",
"0.51443374",
"0.51281816",
"0.51181036",
"0.5114456",
"0.5111771",
"0.51046544",
"0.5103744",
"0.50892687",
"0.50752634",
"0.5071243",
"0.50671315",
"0.5065721",
"0.50649154",
"0.505577",
"0.50504434",
"0.5044748",
"0.5040325",
"0.5036938",
"0.5035146",
"0.5035126",
"0.5021141",
"0.5017001",
"0.5008022",
"0.5005607",
"0.50012535",
"0.49971876",
"0.49970686",
"0.49949026",
"0.49946257",
"0.49888745"
] | 0.0 | -1 |
Returns a hash code value of this RowId object. | public String toString(){
return rid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}",
"@Override\n public int hashCode() {\n \n final int code = 24;\n int result = 1;\n result = code * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }",
"public int hashCode() {\n\t\treturn BeanTools.createHashcode(id, consultContent, consultTime);\r\n\t}",
"public int hashCode()\r\n {\r\n if (this.hashValue == 0)\r\n {\r\n int result = 17;\r\n int purSubcateIdValue = this.getId() == null ? 0 : this.getId().hashCode();\r\n result = result * 37 + purSubcateIdValue;\r\n this.hashValue = result;\r\n }\r\n return this.hashValue;\r\n }",
"public int hashCode() {\n return getId();\n }",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn this.id;\r\n\t}",
"public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }",
"public int hashCode() {\n return getId();\n }",
"public int hashCode() {\n\t\treturn this.eid + 25;\n\t}",
"public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }",
"public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }",
"public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }",
"public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }",
"public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }",
"@Override\n public int hashCode() {\n return this.id;\n }",
"public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }",
"public int hashCode()\r\n/* 124: */ {\r\n/* 125:126 */ return this.id;\r\n/* 126: */ }",
"public int hashCode()\n\t{\n\t\treturn id.hashCode();\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn getId();\n\t}",
"public int hashCode()\n {\n int i = 0;\n if ( hasCode() )\n i ^= getCode().hashCode();\n return i;\n }",
"public int hashCode() {\r\n \tif (id != null){\r\n \t\treturn id.hashCode();\r\n \t}\r\n \treturn 0;\r\n }",
"@Override\n public int hashCode() {\n return Long.hashCode(this.getId());\n }",
"public int hashCode(){\n return this.id; // this.hashCode()\n }",
"public int hashCode()\r\n/* */ {\r\n/* 89 */ int hash = 3;\r\n/* 90 */ hash = 19 * hash + Objects.hashCode(this.id);\r\n/* 91 */ return hash;\r\n/* */ }",
"public int hashCode()\n\t{\n\t\tif(getId() != null)\n\t\t\treturn getId().hashCode();\n\t\treturn 0;\n\t}",
"public int hashCode()\r\n\t{\r\n\t\tif(getId() != null)\r\n\t\t\treturn getId().hashCode();\r\n\t\treturn 0;\r\n\t}",
"public int hashCode() {\n int result = 17;\n result = 37 * result + column;\n result = 37 * result + sortOrder.hashCode();\n return result;\n }",
"@Override\r\n public int hashCode() {\r\n int hash = 0;\r\n hash += (this.id != null ? this.id.hashCode() : 0);\r\n return hash;\r\n }",
"public int hashCode() {\n ID id = getId();\n\n if (id != null) {\n return id.hashCode();\n }\n\n return super.hashCode();\n }",
"@Override\n\tpublic int hashCode()\n\t{\n\t\treturn (int)id;\n\t}",
"public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }",
"public int hashCode()\n\t{\n\t\tint result = 17;\n\n\t\tlong tmp;\n\t\tif (_rsHeader != null && !org.castor.core.util.CycleBreaker.startingToCycle(_rsHeader))\n\t\t{\n\t\t\tresult = 37 * result + _rsHeader.hashCode();\n\t\t\torg.castor.core.util.CycleBreaker.releaseCycleHandle(_rsHeader);\n\t\t}\n\n\t\treturn result;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}",
"public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn this.id == null ? 0 : this.id.hashCode();\n\t}",
"public int hashCode(){\r\n \tif (id != null){\r\n \t\treturn id.hashCode();\r\n \t}\r\n \treturn 0;\r\n }",
"public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }",
"public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}",
"public int hashcode();",
"@Override\n public int hashCode() {\n return this.id.hashCode();\n }",
"public int hashCode() {\n // For speed, this hash code relies only on the hash codes of its select\n // and criteria clauses, not on the from, order by, or option clauses\n int myHash = 0;\n myHash = HashCodeUtil.hashCode(myHash, this.operation);\n myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery());\n return myHash;\n }",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn id;\r\n\t}",
"@Override\n public int hashCode() {\n int hash = 0;\n hash += (id != null ? id.hashCode() : 0);\n return hash;\n }",
"@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIduser();\n result = 37*result + i;\n return result;\n }",
"@Override\n public int hashCode() {\n int hash = 0;\n hash += (id != null ? id.hashCode() : 0);\n return hash;\n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn id;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn id;\n\t}",
"public int hashCode() {\n return (int) position;\n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn new HashCodeBuilder(17, 37).append(id).append(code).append(nom).append(prix).toHashCode();\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn id.hashCode();\n\t}",
"public int hashCode()\n {\n if (this.hashValue == 0)\n {\n int result = 17;\n int wsidValue = this.getWsid() == null ? 0 : this.getWsid().hashCode();\n result = result * 37 + wsidValue;\n this.hashValue = result;\n }\n return this.hashValue;\n }",
"@Override\n public int hashCode() {\n\treturn (rowIndex * 10) + colIndex; \n }",
"public int hashCode() {\n try {\n int res = 0;\n byte[] array = getEncoded();\n for (int i=0; i<array.length; i++) {\n res += array[i] & 0xFF;\n }\n return res;\n } catch (CRLException e) {\n return 0;\n }\n }",
"public int generateHashCode() {\n int code = getClass().hashCode();\n boolean temp_fromSource = isFromSource();\n code ^= temp_fromSource ? 1231 : 1237;\n IRId temp_name = getName();\n code ^= temp_name.hashCode();\n List<IRId> temp_params = getParams();\n code ^= temp_params.hashCode();\n List<IRStmt> temp_args = getArgs();\n code ^= temp_args.hashCode();\n List<IRFunDecl> temp_fds = getFds();\n code ^= temp_fds.hashCode();\n List<IRVarStmt> temp_vds = getVds();\n code ^= temp_vds.hashCode();\n List<IRStmt> temp_body = getBody();\n code ^= temp_body.hashCode();\n return code;\n }",
"@Override\n public int hashCode(){\n return this.myId;\n }",
"long getCodeId();",
"long getCodeId();",
"long getCodeId();",
"public int getID() {\n\t\treturn this.data.hashCode();\n\t}",
"public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }",
"public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }",
"public int hashCode() {\r\n\t\treturn this.iD;\r\n\t}",
"public int generateHashCode() {\n int code = getClass().hashCode();\n ASTSpanInfo temp_info = getInfo();\n code ^= temp_info.hashCode();\n LHS temp_obj = getObj();\n code ^= temp_obj.hashCode();\n Expr temp_index = getIndex();\n code ^= temp_index.hashCode();\n return code;\n }",
"@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }",
"@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getRowId() == null) ? 0 : getRowId().hashCode());\n result = prime * result + ((getCoinTypeId() == null) ? 0 : getCoinTypeId().hashCode());\n result = prime * result + ((getRecTime() == null) ? 0 : getRecTime().hashCode());\n result = prime * result + ((getActiontype() == null) ? 0 : getActiontype().hashCode());\n result = prime * result + ((getLockId() == null) ? 0 : getLockId().hashCode());\n result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());\n result = prime * result + ((getServerIp() == null) ? 0 : getServerIp().hashCode());\n result = prime * result + ((getGameId() == null) ? 0 : getGameId().hashCode());\n result = prime * result + ((getServerName() == null) ? 0 : getServerName().hashCode());\n result = prime * result + ((getLockNum() == null) ? 0 : getLockNum().hashCode());\n result = prime * result + ((getChangeNum() == null) ? 0 : getChangeNum().hashCode());\n result = prime * result + ((getRemainNum() == null) ? 0 : getRemainNum().hashCode());\n result = prime * result + ((getOtherLockNum() == null) ? 0 : getOtherLockNum().hashCode());\n return result;\n }",
"@Override\n public int hashCode() {\n return txHash.hashCode()^txIndex;\n }",
"@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + id;\n return result;\n }",
"public int getHash() {\n return hash_;\n }",
"public int getHash() {\n return hash_;\n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn getId() == null ? super.hashCode() : getId().hashCode();\n\t}",
"public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }",
"@Override\n public int hashCode() {\n /*A nice property of 31 is that the\n multiplication can be replaced by a shift and a subtraction for better performance:\n 31 * i == (i << 5) - i.*/\n int result = (int) areaCode;\n result = 31 * result + (int) prefix;//\n result = 31 * result + (int) lineNumber;\n return result;\n }",
"public String getUniqueId(int row);",
"int computeHashCode(byte val);",
"public int hashCode()\n {\n int i = 0;\n if ( hasHashKey() )\n i ^= getHashKey().hashCode();\n return i;\n }",
"@Override\r\n \tpublic int hashCode() {\n \t\treturn id.hashCode();\r\n \t}",
"public final int hashCode() {\r\n return _value;\r\n }",
"public int hashCode() {\r\n\t\treturn this.value().hashCode();\r\n\t}",
"@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIdacquirente();\n result = 37*result + i;\n return result;\n }",
"public int hashCode() {\n/* 781 */ return getUniqueId().hashCode();\n/* */ }",
"public int hashCode()\n {\n return 37 * 17 + this.EAS_event_ID;\n }",
"public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }",
"@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}",
"public long getIdAsLong() {\n return mHashCode.asLong();\n }",
"public String identityHash() {\n return Integer.toHexString(System.identityHashCode(this));\n }",
"public int hashCode()\n { \n \tint result = 17;\n \t\n \tresult = 37 * result + id;\n \tresult = 37 * result + room.hashCode();\n \tresult = 37 * result + ( isLocked ? 1 : 0 );\n \tresult = 37 * result + keyID; \t\n \t\n \treturn result;\n }",
"public int hashCode() {\n return c;\n }",
"@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }",
"public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }",
"public int hashCode()\n {\n int i = 0;\n if ( hasBatchId() )\n i ^= getBatchId().hashCode();\n if ( hasNestId() )\n i ^= getNestId().hashCode();\n return i;\n }",
"@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((id == null) ? 0 : id.hashCode());\n\t\treturn result;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((id == null) ? 0 : id.hashCode());\n\t\treturn result;\n\t}",
"public int hashCode()\r\n\t{\r\n\t\treturn Integer.parseInt(this.getChannelId());\r\n\t}",
"@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}",
"public int hashCode() {\n\t\treturn 14356 + historyIndex * 373 + dimension; \n\t\t// return some arbitrary number related to historyIndex and dimension\n\t}",
"public int hashCode()\n {\n return this.getSQLTypeName().hashCode();\n }",
"public int getHashCode(){\n return hashCode();\n }",
"public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }",
"@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getId() == null) ? 0 : getId().hashCode());\n result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());\n result = prime * result + ((getIdentityType() == null) ? 0 : getIdentityType().hashCode());\n result = prime * result + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode());\n return result;\n }"
] | [
"0.7488086",
"0.69964284",
"0.69453067",
"0.6807432",
"0.68069005",
"0.6764924",
"0.6754098",
"0.673484",
"0.6730005",
"0.6707803",
"0.6707803",
"0.6707803",
"0.6707803",
"0.6707803",
"0.6693507",
"0.6646204",
"0.6622962",
"0.6601422",
"0.65904874",
"0.65881014",
"0.6579959",
"0.65785575",
"0.65543574",
"0.6551749",
"0.65508026",
"0.65414953",
"0.6538074",
"0.65357333",
"0.65325695",
"0.65152407",
"0.6507985",
"0.6499603",
"0.6498105",
"0.6480388",
"0.6478487",
"0.6478413",
"0.6477424",
"0.64622086",
"0.64579827",
"0.64579064",
"0.6451258",
"0.64369065",
"0.6425258",
"0.6416804",
"0.6398297",
"0.63833654",
"0.63833654",
"0.6382205",
"0.6377373",
"0.63549507",
"0.6353259",
"0.6341384",
"0.6337807",
"0.6317675",
"0.6311979",
"0.63081324",
"0.63081324",
"0.63081324",
"0.6298266",
"0.6290891",
"0.62892026",
"0.62891567",
"0.6286973",
"0.6285443",
"0.62777895",
"0.6271494",
"0.6270029",
"0.6264925",
"0.62646484",
"0.62639415",
"0.6248222",
"0.6231757",
"0.6231472",
"0.6230588",
"0.6230447",
"0.622905",
"0.62280285",
"0.62277514",
"0.6222762",
"0.6221037",
"0.62207663",
"0.6220384",
"0.62180126",
"0.62180126",
"0.62180126",
"0.62171614",
"0.62163746",
"0.6214261",
"0.62109727",
"0.62068516",
"0.6200106",
"0.61972576",
"0.61896616",
"0.61896616",
"0.61784184",
"0.61762965",
"0.6175769",
"0.6174631",
"0.6168534",
"0.6166852",
"0.61666095"
] | 0.0 | -1 |
Obtain annotation of supplied source on a model element. | public void testAnnotationOf() {
// any model element should do
EModelElement modelElement = new Emf().getEcorePackage();
EAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, "http://rcpviewer.berlios.de/test/source");
assertNotNull(eAnnotation);
assertEquals("http://rcpviewer.berlios.de/test/source", eAnnotation.getSource());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource();",
"int getAnnotationSourceValue();",
"Annotation getAnnotation();",
"public String getAnnotation();",
"public static <A extends IAnnotation> A getSourceAnnotation (ITextUnit textUnit,\r\n \t\tClass<A> type)\r\n \t{\r\n \t\tif (textUnit == null)\r\n \t\t\treturn null;\r\n \t\tif (textUnit.getSource() == null)\r\n \t\t\treturn null;\r\n \r\n \t\treturn textUnit.getSource().getAnnotation(type);\r\n \t}",
"public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}",
"public JavaAnnotation getAnnotation( String name );",
"protected IAnnotationModel findAnnotationModel(ISourceViewer sourceViewer) {\n \t\tif(sourceViewer != null)\n \t\t\treturn sourceViewer.getAnnotationModel();\n \t\treturn null;\n \t}",
"Annotation readAnnotation(int annotationID);",
"@Override\n public String getAnnotation() {\n return annotation;\n }",
"public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}",
"public Annotation getAnnotation() {\n return annotation;\n }",
"public Annotation getAnnotation(long j) {\n return this.annotations.obtainBy(j);\n }",
"public String getAnnotation () {\n return annotation;\n }",
"public String getAnnotation() {\n return annotation;\n }",
"AnnotationProvider getClassAnnotationProvider();",
"java.lang.String getAssociatedSource();",
"public String getSampleAnnotation(int column, String key);",
"Annotation createAnnotation();",
"Annotation createAnnotation();",
"com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue();",
"public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}",
"com.google.cloud.dialogflow.v2beta1.MessageAnnotation getMessageAnnotation();",
"private AnnotationAggregateItem getSrcAnnotationAggregate(AnnotationAggregateItem item) {\r\n if (item == null) { return null; }\r\n\r\n AnnotationAggregateDao aaDao = DiscourseDbDaoFactory.DEFAULT.getAnnotationAggregateDao();\r\n AnnotationAggregateItem result = aaDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }",
"public AnnotationMirror getAnnotation(Class<? extends Annotation> annotation) {\n\t\tString jvmName = ClassUtils.getJVMName(annotation);\n\t\tfor(AnnotationMirror a : getAnnotations()) {\n\t\t\tif(a.getType().getJVMName().equals(jvmName)) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public DrawingComponent getAnnotation()\n\t{\n\t\treturn this.annotation;\n\t}",
"public interface IJavaAnnotation extends ITextSourceReference {\n \n \t/**\n \t * Returns resource that declares this annotation.\n \t * \n \t * @return resource that declares this annotation\n \t */\n \tpublic IResource getResource();\n \n \t/**\n \t * Returns fully qualified type name if resolved or element name otherwise.\n \t * \n \t * @return fully qualified type name if resolved or element name otherwise\n \t */\n \tpublic String getTypeName();\n \n \t/**\n\t * Returns annotation type or null if it cannot be resolved.\n \t * \n\t * @return annotation type or null if it cannot be resolved\n \t */\n \tpublic IType getType();\n \t/**\n \t * Returns Java element on which or for which this annotation was created.\n \t * \n \t * @return Java element on which or for which this annotation was created\n \t */\n \tpublic IMember getParentMember();\n \n \t/**\n \t * Returns member value pairs as IAnnotation does.\n \t * \n \t * @return member value pairs as IAnnotation does\n \t */\n \tpublic IMemberValuePair[] getMemberValuePairs();\n \n }",
"public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }",
"@PropertyGetter(role = ANNOTATION)\n\t<A extends Annotation> CtAnnotation<A> getAnnotation(\n\t\t\tCtTypeReference<A> annotationType);",
"public String sourceAttributeName() {\n return this.sourceAttributeName;\n }",
"public AnnotationLocation getAnnotationLocation() {\n return annotationLocation;\n }",
"public Object handleAnnotation(AnnotationMirror annotation) {\n @SuppressWarnings(\"unchecked\")\n List<AnnotationValue> arrayMembers = (List<AnnotationValue>)annotation.getElementValues().values().iterator().next().getValue();\n return (String)arrayMembers.iterator().next().getValue();\n }",
"org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index);",
"@Override\n\t\t\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\t\t\treturn null;\n\t\t\t}",
"public Annotation getAnnotationParam()\n\t{\n\t\treturn annotationParam;\n\t}",
"public String\n getAnnotationName() \n {\n return pAnnotationName;\n }",
"@Override\n\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\treturn null;\n\t}",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public Framework_annotation<T> build_annotation();",
"public static <A extends IAnnotation> A getTargetAnnotation (ITextUnit textUnit,\r\n \t\tLocaleId locId,\r\n \t\tClass<A> type)\r\n \t{\r\n \t\tif ( textUnit == null ) return null;\r\n \t\tif ( Util.isNullOrEmpty(locId) ) return null;\r\n \t\tif ( textUnit.getTarget(locId) == null ) return null;\r\n \t\treturn textUnit.getTarget(locId).getAnnotation(type);\r\n \t}",
"public SourceAttribute getSourceAttribute(String domainAttr){\n \t//System.out.println(\"Relation=\" + this);\n \t//System.out.println(\"Source=\" + source);\n \t//System.out.println(\"domainAttr=\" + domainAttr);\n\t\tfor(int i=0; i<terms.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tString var = t.getVar();\n\t \t//System.out.println(\"Var=\" + var);\n\t\t\tif(var!=null && var.equals(domainAttr)){\n\t\t\t\tif(source==null){\n\t\t\t\t\t//no source predicate is associated with this pred\n\t\t\t\t\t//just return the domainAttr\n\t\t\t\t\treturn new SourceAttribute(domainAttr, \"string\", \"F\");\n\t\t\t\t}\n\t\t\t\telse return source.getAttr(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n }",
"public String[] getElementAnnotation(int index, String attr);",
"public\r\n interface IAnnotation {\r\n\r\n /**\r\n * @return The type of the annotation\r\n */\r\n IType getAnnotationType() throws CompileException;\r\n\r\n /**\r\n * Returns the value of the <var>name</var>d element:\r\n * <dl>\r\n * <dt>{@link Boolean}</dt>\r\n * <dt>{@link Byte}</dt>\r\n * <dt>{@link Character}</dt>\r\n * <dt>{@link Double}</dt>\r\n * <dt>{@link Float}</dt>\r\n * <dt>{@link Integer}</dt>\r\n * <dt>{@link Long}</dt>\r\n * <dt>{@link Short}</dt>\r\n * <dd>\r\n * A primitive value\r\n * </dd>\r\n * <dt>{@link String}</dt>\r\n * <dd>\r\n * A string value\r\n * </dd>\r\n * <dt>{@link IField}</dt>\r\n * <dd>\r\n * An enum constant\r\n * </dd>\r\n * <dt>{@link IClass}</dt>\r\n * <dd>\r\n * A class literal\r\n * </dd>\r\n * <dt>{@link IAnnotation}</dt>\r\n * <dd>\r\n * An annotation\r\n * </dd>\r\n * <dt>{@link Object}{@code []}</dt>\r\n * <dd>\r\n * An array value\r\n * </dd>\r\n * </dl>\r\n * <p>\r\n * Notice that {@code null} is <em>not</em> a valid return value.\r\n * </p>\r\n */\r\n Object getElementValue(String name) throws CompileException;\r\n }",
"public Annotation getAnnotation(Fw aField, Class<?> aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aField, aAnnotation);\n\t}",
"public String getSourceAttribute() {\n return sourceAttribute;\n }",
"public abstract Source getSource();",
"public Annotation getAnnotation(Class<?> aClass, Class<?> aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aClass, aAnnotation);\n\t}",
"Type getSource();",
"DataMap getCustomAnnotations();",
"public static String getUrl() {\n return annotation != null ? annotation.url() : \"Unknown\";\n }",
"@java.lang.Override\n public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n }\n }",
"public abstract Object getSource();",
"Source getSrc();",
"java.lang.String getSource();",
"java.lang.String getSource();",
"public String getSource ();",
"@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();",
"public Annotation getAnnotation(Class<?> annotationClass){\n\t\tAnnotation annotation = null;\n\t\tif (annotations.containsKey(annotationClass)){\n\t\t\tannotation = annotations.get(annotationClass);\n\t\t}\n\t\treturn annotation;\n\t}",
"public String getSource();",
"@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }",
"public interface AnnotationValue {\n}",
"public Annotation getAnnotation(Class<?> aClass, Annotation aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aClass, aAnnotation);\n\t}",
"@NonNull\n ElementAnnotationMetadataFactory getElementAnnotationMetadataFactory();",
"public static <A extends Annotation> Optional<A> findNearestAnnotation(\n AnnotatedElement annotatedElement, \n Class<A> annotationType) {\n //XXX if synthesize has good runtime performance, then we simply us it here\n return synthesize(annotatedElement, annotationType);\n }",
"public static <T> T getAnnotation(final Class c, final Class<T> annotation) {\n final List<T> found = getAnnotations(c, annotation);\n if (found != null && !found.isEmpty()) {\n return found.get(0);\n } else {\n return null;\n }\n }",
"public static void setSourceAnnotation (ITextUnit textUnit,\r\n \t\tIAnnotation annotation)\r\n \t{\r\n \t\tif (textUnit == null)\r\n \t\t\treturn;\r\n \t\tif (textUnit.getSource() == null)\r\n \t\t\treturn;\r\n \r\n \t\ttextUnit.getSource().setAnnotation(annotation);\r\n \t}",
"public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public SourceIF source() {\n\t\treturn this.source;\n\t}",
"java.lang.String getSrc();",
"com.google.protobuf.StringValue getExternalAttributionModel();",
"private ProjectionAnnotation findAnnotation(int line, boolean exact) {\n \n \t\tProjectionAnnotation previousAnnotation= null;\n \n \t\tIAnnotationModel model= getModel();\n \t\tif (model != null) {\n \t\t\tIDocument document= getCachedTextViewer().getDocument();\n \n \t\t\tint previousDistance= Integer.MAX_VALUE;\n \n \t\t\tIterator e= model.getAnnotationIterator();\n \t\t\twhile (e.hasNext()) {\n \t\t\t\tObject next= e.next();\n \t\t\t\tif (next instanceof ProjectionAnnotation) {\n \t\t\t\t\tProjectionAnnotation annotation= (ProjectionAnnotation) next;\n \t\t\t\t\tPosition p= model.getPosition(annotation);\n \t\t\t\t\tif (p == null)\n \t\t\t\t\t\tcontinue;\n \n \t\t\t\t\tint distance= getDistance(annotation, p, document, line);\n \t\t\t\t\tif (distance == -1)\n \t\t\t\t\t\tcontinue;\n \n \t\t\t\t\tif (!exact) {\n \t\t\t\t\t\tif (distance < previousDistance) {\n \t\t\t\t\t\t\tpreviousAnnotation= annotation;\n \t\t\t\t\t\t\tpreviousDistance= distance;\n \t\t\t\t\t\t}\n \t\t\t\t\t} else if (distance == 0) {\n \t\t\t\t\t\tpreviousAnnotation= annotation;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn previousAnnotation;\n \t}",
"public abstract String getSource();",
"public static <A extends Annotation> A getAnnotationFromInstance(Class<A> annotationType, Object instance)\n\t{\n\t\treturn instance.getClass().getAnnotation(annotationType);\t\t\n\t}",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"com.google.cloud.dialogflow.v2beta1.MessageAnnotationOrBuilder getMessageAnnotationOrBuilder();",
"@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}",
"public SourceAttribute getSourceAttribute(int i){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\t//just return the variable name\n\t\t\treturn new SourceAttribute(getVars().get(i), \"string\", \"F\");\n\t\t}\n \treturn source.getAttr(i);\n }",
"public Object getSource() {return source;}",
"Attribute getTarget();",
"Ontology getSourceOntology();",
"com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder();",
"private Element get(final Class<? extends Annotation> annotation) {\n return new MockElement(annotation);\n }",
"public abstract T getSource();",
"public static String getUser() {\n return annotation != null ? annotation.user() : \"Unknown\";\n }",
"@VTID(27)\n java.lang.String getSourceName();",
"String getSource();",
"public final String getPerunSourceAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"perunSourceAttribute\");\n\t}",
"Optional<String> getSource();",
"final RenderedImage getSource() {\n return sources[0];\n }",
"public Optional<String> getSource() {\n\t\treturn Optional.ofNullable(_source);\n\t}",
"@Override\n public String getSource() {\n return this.src;\n }",
"public <T extends Annotation> T loadAnnotation(Class<T> type) {\n\t\tAnnotationMirror mirror = getAnnotation(type);\n\t\tif(mirror == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn mirror.getProxy(type);\n\t}",
"public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}",
"public interface ICorrelateSource {\n\n\t/**\n\t * Decorates parseTree adding line and column attributes \n\t * to the concrete syntax nodes. \n\t * Concrete syntax node types are defined in \n\t * docs/schemas/SourceAST.xsd.\n\t * Line index origin is 0, and Column index origin is 0.\n\t */\n\tpublic Document decoratePosition (Document parseTree);\n\n\t/**\n\t * Checks if node is concrete syntax node.\n\t * Concrete syntax is carried by Element nodes\n\t * with \"@ID\" attribute or text child node.\n\t */\n\tpublic boolean isConcreteSyntax (Node node);\n\n\t/**\n\t * Gets text value for concrete syntax node.\n\t * @return value of DELIMITER ID attribute, or\n\t *\tfirst text node child, or null otherwise.\n\t */\n\tpublic String getTextValue (Node node);\n\n\t/**\n\t * Gets line number for given decorated node.\n\t * @return line, or -1 if not numeric or \"line\" attribute not found.\n\t */\n\tpublic int getDecoratedLine (Node node);\n\n\t/**\n\t * Gets beginning column number for given decorated node.\n\t * @return column, or -1 if not numeric or \"column\" attribute not found.\n\t */\n\tpublic int getDecoratedColumn (Node node);\n\n\t/**\n\t * Finds closest bounding decorated concrete syntax nodes\n\t * in AST for given span in source. \n\t * Source can be subset of ParseTree, e.g., for Groovy we\n\t * preserve \";\" in Deconstructed.xsl but it is removed from source.\n\t * So ignores a parse token if it is not found as next token in source,\n\t * i.e., is found but separated by non-whitespace.\n\t * Line index origin is 0, and Column index origin is 0.\n\t * fromLine < 0 is first line; fromColumn < 0 is first column.\n\t * toLine < 0 is last line; toColumn < 0 is end of toLine.\n\t * @return [fromLine, fromColumn, toLine, toColumn]\n\t */\n\tpublic int[] findDecoratedSpan (Document parseTree,\n\t\t\tint fromLine, int fromColumn,\n\t\t\tint toLine, int toColumn);\n\n\t/**\n\t * Extracts lines from source for the span defined by the line\n\t * and column numbers in the closest bounding decorated nodes.\n\t * Decorates extracted lines with \"^\" symbols for span start and end.\n\t * Line index origin is 0, and Column index origin is 0.\n\t * fromLine < 0 is first line; fromColumn < 0 is first column.\n\t * toLine < 0 is last line; toColumn < 0 is end of toLine.\n\t */\n\tpublic String extractDecoratedLines (int fromLine, int fromColumn,\n\t\t\tint toLine, int toColumn);\n\n\t/**\n\t * Extracts line with corresponding line number from source.\n\t * Line index origin is 0.\n\t * @return Last line if line > number of lines in source,\n\t *\tor entire source if line < 0,\n\t *\tor empty string if source was null.\n\t */\n\tpublic String getSourceLine (int line);\n\n\t/**\n\t * Gets number of lines in source.\n\t */\n\tpublic int getNumLines ();\n\n //====================================================================\n // Setters and defaults.\n // The setters are non-static for Spring dependency injection.\n //====================================================================\n\n\t/**\n\t * Gets default source line separator.\n\t */\n\tpublic String getDefaultSourceLineSeparator ();\n\n\t/**\n\t * Sets default source line separator.\n\t */\n\tpublic void setDefaultSourceLineSeparator (String linesep);\n\n\t/**\n\t * Gets default line separator for decorated extracts.\n\t */\n\tpublic String getDefaultExtractLineSeparator ();\n\n\t/**\n\t * Sets default line separator for decorated extracts.\n\t */\n\tpublic void setDefaultExtractLineSeparator (String linesep);\n\n\t/**\n\t * Gets source line separator.\n\t */\n\tpublic String getSourceLineSeparator ();\n\n\t/**\n\t * Sets source line separator.\n\t */\n\tpublic void setSourceLineSeparator (String linesep);\n\n\t/**\n\t * Gets line separator for decorated extracts \n\t * using extractDecoratedLines.\n\t */\n\tpublic String getExtractLineSeparator ();\n\n\t/**\n\t * Sets line separator for decorated extracts\n\t * using extractDecoratedLines.\n\t */\n\tpublic void setExtractLineSeparator (String linesep);\n\n\t/**\n\t * Gets XML concrete syntax node names used in correlating source.\n\t */\n\tpublic String[] getConcreteSyntaxNodes ();\n\n\t/**\n\t * Sets XML concrete syntax node names used in correlating source.\n\t */\n\tpublic void setConcreteSyntaxNodes (String[] nodes);\n\n\t/**\n\t * Gets source to correlate.\n\t */\n\tpublic String getSource ();\n\n\t/**\n\t * Sets source to correlate.\n\t */\n\tpublic void setSource (String source);\n\n}",
"public Result lookup(Class<? extends Annotation> annotation) {\n ResultAnnotation ra = annotation.getAnnotation(ResultAnnotation.class);\n return objectFactory.create(ra.value());\n }",
"public Class<?> getSource() {\r\n \t\treturn source;\r\n \t}",
"public Optional<String> src() {\n\t\t\treturn Optional.ofNullable(_source);\n\t\t}",
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public static String getClassAnnotationValue(Class<RegExp> classType,\n\t Class<Author> annotationType,\n\t String attributeName) {\n\t String value = null;\n\t Annotation annotation = classType.getAnnotation(annotationType);\n\t if (annotation != null) {\n\t try {\n\t value = (String) annotation.annotationType().getMethod(attributeName)\n\t .invoke(annotation);\n\t } catch (Exception ex) {\n\t System.out.println(\"Failed loading class annotations\");\n\t }\n\t }\n\t return value;\n\t }",
"public AnnotationPanel getAnnotationPanel() {\n\t\treturn null;\n\t}"
] | [
"0.73569614",
"0.7066015",
"0.68869084",
"0.6865419",
"0.66585696",
"0.6551891",
"0.65380055",
"0.6431471",
"0.62802404",
"0.6094508",
"0.60108614",
"0.6000219",
"0.5962679",
"0.5958252",
"0.5934989",
"0.5905543",
"0.5862935",
"0.5809122",
"0.56885165",
"0.56885165",
"0.5661658",
"0.56444955",
"0.55767965",
"0.5537122",
"0.55288357",
"0.55198234",
"0.5505694",
"0.54896003",
"0.54818195",
"0.5410638",
"0.5380275",
"0.5371106",
"0.53680754",
"0.53602713",
"0.53588694",
"0.53513676",
"0.5339448",
"0.5311377",
"0.5288256",
"0.5287316",
"0.5287149",
"0.5269809",
"0.52446926",
"0.52379584",
"0.52226067",
"0.52015245",
"0.5162884",
"0.51529175",
"0.51211536",
"0.51197374",
"0.5098981",
"0.5096946",
"0.5094601",
"0.50820804",
"0.50820804",
"0.50706637",
"0.50515884",
"0.5051372",
"0.5050135",
"0.5046985",
"0.5043686",
"0.5043467",
"0.50399685",
"0.5034544",
"0.50236624",
"0.5022596",
"0.5017586",
"0.50008255",
"0.49901867",
"0.49892935",
"0.49860632",
"0.49852443",
"0.49814686",
"0.49668905",
"0.4962182",
"0.49490377",
"0.4941481",
"0.49235606",
"0.49089345",
"0.49088502",
"0.4907033",
"0.49036226",
"0.4886653",
"0.4881208",
"0.48750415",
"0.4872439",
"0.4862878",
"0.48573735",
"0.48520228",
"0.4851418",
"0.4849375",
"0.48321363",
"0.4819156",
"0.48172623",
"0.48131528",
"0.48090908",
"0.48055094",
"0.480231",
"0.4789619",
"0.4789448"
] | 0.6108588 | 9 |
The EAnnotationsdetails is a maplike construct that can be put to and got from. TODO: marked incomplete because under JUnit plugin test the first assert fails. | public void incompletetestSetEAnnotationsDetails() {
// any model element should do
EModelElement modelElement = new Emf().getEcorePackage();
EAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, "http://rcpviewer.berlios.de/test/source");
Map<String,String> details = new HashMap<String,String>();
details.put("foo", "bar");
details.put("baz", "boz");
assertEquals(0, eAnnotation.getDetails().size());
_emfAnnotations.putAnnotationDetails(eAnnotation, details);
assertEquals(2, eAnnotation.getDetails().size());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testGetEAnnotationsDetails() {\r\n\t\t// any model element should do\r\n\t\tEModelElement modelElement = new Emf().getEcorePackage();\r\n\t\tEAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, \"http://rcpviewer.berlios.de/test/source\");\r\n\t\tMap<String,String> details = new HashMap<String,String>();\r\n\t\tdetails.put(\"foo\", \"bar\");\r\n\t\tdetails.put(\"baz\", \"boz\");\r\n\t\t_emfAnnotations.putAnnotationDetails(eAnnotation, details);\r\n\t\t\r\n\t\tMap<String,String> retrievedDetails = _emfAnnotations.getAnnotationDetails(eAnnotation);\r\n\t\tassertEquals(2, retrievedDetails.size());\r\n\t\tassertEquals(\"bar\", retrievedDetails.get(\"foo\"));\r\n\t\tassertEquals(\"boz\", retrievedDetails.get(\"baz\"));\r\n\t}",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}",
"public abstract AnnotationMap mo30683d();",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\n\t\taddAnnotation\n\t\t (controlEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"control\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Midi(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"midi\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Background(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"background\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Centered(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"centered\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Color(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"color\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_H(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"h\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Inverted(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_LocalOff(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"local_off\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Number(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_OscCs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"osc_cs\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Outline(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"outline\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Response(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"response\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalet(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalet\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Seconds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"seconds\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Size(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"size\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Text(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"text\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_W(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"w\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_X(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Y(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (layoutEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"layout\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Tabpage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"tabpage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Mode(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"mode\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Orientation(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"orientation\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Version(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"version\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (midiEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"midi\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Channel(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"channel\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data1(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data1\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2f(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2f\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2t(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2t\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Var(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"var\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (tabpageEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"tabpage\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Control(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"control\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (topEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"TOP\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTOP_Layout(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"layout\"\n\t\t });\n\t}",
"public abstract Annotations mo30682c();",
"DataMap getCustomAnnotations();",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\n\t\taddAnnotation\n\t\t (unsignedIntEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (unsignedIntegerEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"baseType\", \"http://www.w3.org/2001/XMLSchema#decimal\"\n\t\t });\n\t\taddAnnotation\n\t\t (idEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"[a-zA-Z0-9_]([a-zA-Z0-9_\\\\-.$])*\"\n\t\t });\n\t\taddAnnotation\n\t\t (namespaceEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"([^\\\\s#])*(#|/)\",\n\t\t\t \"minLength\", \"2\"\n\t\t });\n\t}",
"protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}",
"InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\n\t\taddAnnotation\n\t\t (getJClass_Operations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"simple\"\n\t\t });\n\t}",
"protected void createInternalAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/internal\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}",
"public abstract AnnotationCollector mo30681b(Annotation annotation);",
"protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}",
"protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"org.abchip.mimo.core.base.invocation\",\n\t\t\t \"settingDelegates\", \"org.abchip.mimo.core.base.setting\"\n\t\t });\n\t}",
"public abstract Annotations getClassAnnotations();",
"public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}",
"public AnnotationInfoImpl()\n {\n }",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}",
"protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}",
"public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}",
"protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getPartyQual_QualificationDesc(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_PartyQualTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeText(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Rating(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillLevel(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_YearsExperience(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_PerfRatingTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_ManagerRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_PerfReviewItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_ApprovalStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Reason(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_ResponsibilityTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_SkillTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_TrainingClassTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}",
"public interface AddressLabelDetails {\n String getFirstName();\n\n String getLastName();\n\n String getAddressline();\n\n String getAddressline2();\n\n String getAddressline3();\n\n String getPostalCode();\n\n String getCity();\n\n String getRegion();\n\n String getCountry();\n\n String getCountryCode();\n}",
"protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}",
"@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }",
"protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}",
"private void writeItemWithAnnotations(final AnnotatedOutput out) {\n out.annotate(0, parent.getParent().method.getMethodString());\n out.annotate(\"line_start: 0x\" + Integer.toHexString(lineStart) + \" (\" + lineStart + \")\");\n out.writeUnsignedLeb128(lineStart);\n out.annotate(\"parameters_size: 0x\" + Integer.toHexString(parameterNames.length) + \" (\" + parameterNames.length\n + \")\");\n out.writeUnsignedLeb128(parameterNames.length);\n int index = 0;\n for (StringIdItem parameterName: parameterNames) {\n int indexp1;\n if (parameterName == null) {\n out.annotate(\"[\" + index++ +\"] parameterName: \");\n indexp1 = 0;\n } else {\n out.annotate(\"[\" + index++ +\"] parameterName: \" + parameterName.getStringValue());\n indexp1 = parameterName.getIndex() + 1;\n }\n out.writeUnsignedLeb128(indexp1);\n }\n\n DebugInstructionIterator.IterateInstructions(new ByteArrayInput(encodedDebugInfo),\n new DebugInstructionIterator.ProcessRawDebugInstructionDelegate() {\n private int referencedItemsPosition = 0;\n\n @Override\n public void ProcessEndSequence(int startDebugOffset) {\n out.annotate(\"DBG_END_SEQUENCE\");\n out.writeByte(DebugOpcode.DBG_END_SEQUENCE.value);\n }\n\n @Override\n public void ProcessAdvancePC(int startDebugOffset, int length, int addressDiff) {\n out.annotate(\"DBG_ADVANCE_PC\");\n out.writeByte(DebugOpcode.DBG_ADVANCE_PC.value);\n out.indent();\n out.annotate(\"addr_diff: 0x\" + Integer.toHexString(addressDiff) + \" (\" + addressDiff + \")\");\n out.writeUnsignedLeb128(addressDiff);\n out.deindent();\n }\n\n @Override\n public void ProcessAdvanceLine(int startDebugOffset, int length, int lineDiff) {\n out.annotate(\"DBG_ADVANCE_LINE\");\n out.writeByte(DebugOpcode.DBG_ADVANCE_LINE.value);\n out.indent();\n out.annotate(\"line_diff: 0x\" + Integer.toHexString(lineDiff) + \" (\" + lineDiff + \")\");\n out.writeSignedLeb128(lineDiff);\n out.deindent();\n }\n\n @Override\n public void ProcessStartLocal(int startDebugOffset, int length, int registerNum, int nameIndex,\n int typeIndex, boolean registerIsSigned) {\n out.annotate(\"DBG_START_LOCAL\");\n out.writeByte(DebugOpcode.DBG_START_LOCAL.value);\n out.indent();\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (dexFile.getPreserveSignedRegisters() && registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n if (nameIndex != -1) {\n Item nameItem = referencedItems[referencedItemsPosition++];\n assert nameItem instanceof StringIdItem;\n out.annotate(\"name: \" + ((StringIdItem)nameItem).getStringValue());\n out.writeUnsignedLeb128(nameItem.getIndex() + 1);\n } else {\n out.annotate(\"name: \");\n out.writeByte(0);\n }\n if (typeIndex != -1) {\n Item typeItem = referencedItems[referencedItemsPosition++];\n assert typeItem instanceof TypeIdItem;\n out.annotate(\"type: \" + ((TypeIdItem)typeItem).getTypeDescriptor());\n out.writeUnsignedLeb128(typeItem.getIndex() + 1);\n } else {\n out.annotate(\"type: \");\n out.writeByte(0);\n }\n out.deindent();\n }\n\n @Override\n public void ProcessStartLocalExtended(int startDebugOffset, int length, int registerNum,\n int nameIndex, int typeIndex, int signatureIndex,\n boolean registerIsSigned) {\n out.annotate(\"DBG_START_LOCAL_EXTENDED\");\n out.writeByte(DebugOpcode.DBG_START_LOCAL_EXTENDED.value);\n out.indent();\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (dexFile.getPreserveSignedRegisters() && registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n if (nameIndex != -1) {\n Item nameItem = referencedItems[referencedItemsPosition++];\n assert nameItem instanceof StringIdItem;\n out.annotate(\"name: \" + ((StringIdItem)nameItem).getStringValue());\n out.writeUnsignedLeb128(nameItem.getIndex() + 1);\n } else {\n out.annotate(\"name: \");\n out.writeByte(0);\n }\n if (typeIndex != -1) {\n Item typeItem = referencedItems[referencedItemsPosition++];\n assert typeItem instanceof TypeIdItem;\n out.annotate(\"type: \" + ((TypeIdItem)typeItem).getTypeDescriptor());\n out.writeUnsignedLeb128(typeItem.getIndex() + 1);\n } else {\n out.annotate(\"type: \");\n out.writeByte(0);\n }\n if (signatureIndex != -1) {\n Item signatureItem = referencedItems[referencedItemsPosition++];\n assert signatureItem instanceof StringIdItem;\n out.annotate(\"signature: \" + ((StringIdItem)signatureItem).getStringValue());\n out.writeUnsignedLeb128(signatureItem.getIndex() + 1);\n } else {\n out.annotate(\"signature: \");\n out.writeByte(0);\n }\n out.deindent();\n }\n\n @Override\n public void ProcessEndLocal(int startDebugOffset, int length, int registerNum,\n boolean registerIsSigned) {\n out.annotate(\"DBG_END_LOCAL\");\n out.writeByte(DebugOpcode.DBG_END_LOCAL.value);\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n }\n\n @Override\n public void ProcessRestartLocal(int startDebugOffset, int length, int registerNum,\n boolean registerIsSigned) {\n out.annotate(\"DBG_RESTART_LOCAL\");\n out.writeByte(DebugOpcode.DBG_RESTART_LOCAL.value);\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n }\n\n @Override\n public void ProcessSetPrologueEnd(int startDebugOffset) {\n out.annotate(\"DBG_SET_PROLOGUE_END\");\n out.writeByte(DebugOpcode.DBG_SET_PROLOGUE_END.value);\n }\n\n @Override\n public void ProcessSetEpilogueBegin(int startDebugOffset) {\n out.annotate(\"DBG_SET_EPILOGUE_BEGIN\");\n out.writeByte(DebugOpcode.DBG_SET_EPILOGUE_BEGIN.value);\n }\n\n @Override\n public void ProcessSetFile(int startDebugOffset, int length, int nameIndex) {\n out.annotate(\"DBG_SET_FILE\");\n out.writeByte(DebugOpcode.DBG_SET_FILE.value);\n if (nameIndex != -1) {\n Item sourceItem = referencedItems[referencedItemsPosition++];\n assert sourceItem instanceof StringIdItem;\n out.annotate(\"source_file: \\\"\" + ((StringIdItem)sourceItem).getStringValue() + \"\\\"\");\n out.writeUnsignedLeb128(sourceItem.getIndex() + 1);\n } else {\n out.annotate(\"source_file: \");\n out.writeByte(0);\n }\n }\n\n @Override\n public void ProcessSpecialOpcode(int startDebugOffset, int debugOpcode, int lineDiff,\n int addressDiff) {\n out.annotate(\"DBG_SPECIAL_OPCODE: line_diff=0x\" + Integer.toHexString(lineDiff) + \"(\" +\n lineDiff +\"),addressDiff=0x\" + Integer.toHexString(addressDiff) + \"(\" + addressDiff +\n \")\");\n out.writeByte(debugOpcode);\n }\n });\n }",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}",
"public void testDetails() {\n\t\tassertEquals(\"Incorrect target\", TARGET, this.aggregate.getTarget());\n\t\tassertEquals(\"Incorrect change description\", CHANGE_DESCRIPTION, this.aggregate.getChangeDescription());\n\t}",
"public void testAnnotationOf() {\r\n\t\t// any model element should do\r\n\t\tEModelElement modelElement = new Emf().getEcorePackage();\r\n\t\tEAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, \"http://rcpviewer.berlios.de/test/source\");\r\n\t\tassertNotNull(eAnnotation);\r\n\t\tassertEquals(\"http://rcpviewer.berlios.de/test/source\", eAnnotation.getSource());\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic Map<String, Object> getViolationDetails() {\n\t\treturn JsonUtil.toAnnotatedClassfromJson(violationDetails.getAsJsonObject().toString(), Map.class);\n\t}",
"public String getAnnotation();",
"public Framework_annotation<T> build_annotation();",
"protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceMessage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_ReferenceNumber(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_InvoiceContentTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-precise\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"3\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_InvoiceItemAssocTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_InvoiceItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Percentage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceTermId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermDays(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TextValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_UomId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_InvoiceTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"com.google.protobuf.ByteString getDetailsBytes();",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"@Test\n public void testRead() throws Exception {\n String data = \"\\n/*\\n * @Description(value=\\\"Her er en forklaring\\\")\\n\"+\n \"@Parameter(name=\\\"text\\\",type=\\\"String\\\") \\n*/\"+\n \"@Parameter(name=\\\"illegal\\\",type=\\\"String\\\")\";\n System.out.println(\"read\");\n InputStream inputStream = new ByteArrayInputStream(data.getBytes());\n List<ScriptAnnotation.Annotation> result = ScriptAnnotation.read(inputStream);\n \n assertEquals(2, result.size());\n assertEquals(\"Description\", result.get(0).getName());\n assertEquals(\"Parameter\", result.get(1).getName());\n assertEquals(\"text\", result.get(1).getMap().get(\"name\"));\n \n \n }",
"DiagnosticInfo getInnerDiagnosticInfo();",
"@Override\n\tpublic Object getDetails() {\n\t\treturn details;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.AccidentDetailPEL getAccidentDetail();",
"public void testAuditDetail_Accuracy() {\r\n assertNotNull(\"The AuditDetail instance should be created.\", auditDetail);\r\n }",
"java.lang.String getDetails();",
"protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> – all columns must be present in both tables</li>\\n<li><b>LEFT</b> – columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> – columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> – comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question "Which column can have less columns?"</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}",
"@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();",
"@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotated_cf14_cf552_failAssert16() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // AssertGenerator replace invocation\n boolean o_annotated_cf14__11 = // StatementAdderMethod cloned existing statement\n annotated.isPrimitive();\n // MethodAssertGenerator build local variable\n Object o_13_0 = o_annotated_cf14__11;\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_264 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_262 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_260 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_260.get(vc_262, vc_264);\n // MethodAssertGenerator build local variable\n Object o_23_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf14_cf552 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@Override\n public void visit(Tree.AnnotationList al) {\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }",
"@Override\n public Object getDetails() {\n return null;\n }",
"@org.junit.Test(timeout = 10000)\n public void annotated_cf70_failAssert16() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_48 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_46 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_44 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_44.get(vc_46, vc_48);\n // MethodAssertGenerator build local variable\n Object o_19_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf70 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"private void parseAnnotation(final List<ScannedAnnotation> descriptions, final AnnotationNode annotation,\n final Object annotatedObject) {\n // desc has the format 'L' + className.replace('.', '/') + ';'\n final String name = annotation.desc.substring(1, annotation.desc.length() - 1).replace('/', '.');\n Map<String, Object> values = null;\n if (annotation.values != null) {\n values = new HashMap<String, Object>();\n final Iterator<?> i = annotation.values.iterator();\n while (i.hasNext()) {\n final Object vName = i.next();\n Object value = i.next();\n\n // convert type to class name string\n if (value instanceof Type) {\n value = ((Type) value).getClassName();\n } else if (value instanceof List<?>) {\n final List<?> objects = (List<?>) value;\n if (objects.size() > 0) {\n if (objects.get(0) instanceof Type) {\n final String[] classNames = new String[objects.size()];\n int index = 0;\n for (final Object v : objects) {\n classNames[index] = ((Type) v).getClassName();\n index++;\n }\n value = classNames;\n } else if (objects.get(0) instanceof AnnotationNode) {\n final List<ScannedAnnotation> innerDesc = new ArrayList<ScannedAnnotation>();\n for (final Object v : objects) {\n parseAnnotation(innerDesc, (AnnotationNode) v, annotatedObject);\n }\n if (annotatedObject instanceof Method) {\n value = innerDesc.toArray(new MethodAnnotation[innerDesc.size()]);\n } else if (annotatedObject instanceof Field) {\n value = innerDesc.toArray(new FieldAnnotation[innerDesc.size()]);\n } else {\n value = innerDesc.toArray(new ClassAnnotation[innerDesc.size()]);\n }\n } else {\n value = convertToArray(objects, objects.get(0).getClass());\n }\n } else {\n value = null;\n }\n }\n\n values.put(vName.toString(), value);\n }\n }\n\n final ScannedAnnotation a;\n if (annotatedObject instanceof Method) {\n a = new MethodAnnotation(name, values, (Method) annotatedObject);\n ((Method) annotatedObject).setAccessible(true);\n } else if (annotatedObject instanceof Field) {\n a = new FieldAnnotation(name, values, (Field) annotatedObject);\n ((Field) annotatedObject).setAccessible(true);\n } else {\n a = new ClassAnnotation(name, values);\n }\n descriptions.add(a);\n }",
"public String getAnnotations() {\n\t\treturn annotations;\n\t}",
"protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}",
"public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public void annotationsCouldNotBeAdded(String errorMessage) {}",
"@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}",
"private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }",
"private static Map<String, NullnessAnnotation> createString2AnnotationMap() {\n final Map<String, NullnessAnnotation> result = new HashMap<>();\n\n for (final NullnessAnnotation annotation : NullnessAnnotation.values()) {\n result.put(annotation.annotationName, annotation);\n result.put(annotation.fullyQualifiedClassName, annotation);\n }\n\n return Collections.unmodifiableMap(result);\n }",
"Annotation createAnnotation();",
"Annotation createAnnotation();",
"public Annotations getAnnotations() {\n\t\treturn annotations;\n\t}",
"public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }",
"public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }",
"private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21188_failAssert19_add22480() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_9254 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9254);\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_9252 = (java.lang.reflect.Type)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9252);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_9250 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9250);\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n vc_9250.get(vc_9252, vc_9254);\n // StatementAdderMethod cloned existing statement\n vc_9250.get(vc_9252, vc_9254);\n org.junit.Assert.fail(\"annotatedType_cf21188 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"@Test\n public void test129() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"convert\");\n Map<String, String> map0 = xmlEntityRef0.getAttributes();\n // Undeclared exception!\n try {\n Component component0 = xmlEntityRef0.dl();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"protected void createUML2MappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/UML2Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"interfaceRealization\",\n\t\t\t \"featureOwner\", \"BehavioredClassifier\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Property\",\n\t\t\t \"stereotype\", \"eng.PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\",\n\t\t\t \"stereotype\", \"eng.InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Interface\",\n\t\t\t \"stereotype\", \"eng.Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"mechanism\",\n\t\t\t \"featureOwner\", \"eng.Interface\",\n\t\t\t \"fromStereotype\", \"true\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"contract\",\n\t\t\t \"umlOppositeReferenceOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"implementingClassifier\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Namespace\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"role\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"partWithPort\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\n\t}",
"public com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.Builder\n addExplanationsBuilder() {\n return getExplanationsFieldBuilder()\n .addBuilder(\n com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.getDefaultInstance());\n }",
"@java.lang.Override\n public com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanationOrBuilder\n getExplanationsOrBuilder(int index) {\n return explanations_.get(index);\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }",
"Map getAspectDatas();",
"Set<String> annotations();",
"public String getInformation(ITextViewer textViewer, IRegion subject) {\n \t\treturn \"not null\"; //$NON-NLS-1$\n \t}",
"@org.junit.Test(timeout = 10000)\n public void annotated_cf3_cf206_failAssert34() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_2 = (java.lang.Object)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_2;\n // AssertGenerator replace invocation\n boolean o_annotated_cf3__13 = // StatementAdderMethod cloned existing statement\n annotated.equals(vc_2);\n // MethodAssertGenerator build local variable\n Object o_17_0 = o_annotated_cf3__13;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_110 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_108 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_106 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_106.get(vc_108, vc_110);\n // MethodAssertGenerator build local variable\n Object o_27_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf3_cf206 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"public FieldOfActivityAnnotationsFactoryImpl() {\n\t\tsuper();\n\t}",
"public Framework_annotation<T> build_normal();",
"public String getDetails()\n\t{\n\t return \"Point (\"+x+\",\"+y+\")\";\n\t}",
"@java.lang.Override\n public java.util.List<\n ? extends com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanationOrBuilder>\n getExplanationsOrBuilderList() {\n return explanations_;\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }",
"@org.junit.Test(timeout = 10000)\n public void annotated_cf66_failAssert15() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_42 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n simpleString.get(vc_42);\n // MethodAssertGenerator build local variable\n Object o_15_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf66 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"protected void createMimoentframeAnnotations() {\n\t\tString source = \"mimo-ent-frame\";\n\t\taddAnnotation\n\t\t (invoiceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceContactMechEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Contact Mechanism\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceContentTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemAssocEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Item Association\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemAssocTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"dictionary\", \"AccountingEntityLabels\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemTypeAttrEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Item Type Attribute\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"dictionary\", \"AccountingEntityLabels\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTypeAttrEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Type Attribute\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t}",
"Object yangAugmentedInfo(Class classObject);",
"Object yangAugmentedInfo(Class classObject);",
"@org.junit.Test(timeout = 10000)\n public void annotated_cf83_failAssert19() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderMethod cloned existing statement\n annotated.unbox();\n // MethodAssertGenerator build local variable\n Object o_13_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf83 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"public void setAnnotations(Annotations annotations) {\n\t\tthis.annotations = annotations;\n\t}",
"protected void createMimoentframeAnnotations() {\n\t\tString source = \"mimo-ent-frame\";\n\t\taddAnnotation\n\t\t (partyQualEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Party Qualification\"\n\t\t });\n\t\taddAnnotation\n\t\t (partyQualTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Party Qualification Type\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (partyResumeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Resume\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfRatingTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Performance Rating Type\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfReviewEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Employee Performance Review\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfReviewItemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Performance Review Item\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfReviewItemTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Performance Review Item Type\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (responsibilityTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (skillTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (trainingClassTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t}",
"public void testAnnotateReturn() throws Exception {\n String MY_MAP_PATH = \"pack/age/MyMap\";\n String[] pathAndContents = new String[] { MY_MAP_PATH + \".java\", \"package pack.age;\\n\" + \"public interface MyMap<K,V> {\\n\" + \" public V get(K key);\\n\" + \"}\\n\" };\n addLibrary(fJProject1, \"lib.jar\", \"lib.zip\", pathAndContents, ANNOTATION_PATH, JavaCore.VERSION_1_5, null);\n IType type = fJProject1.findType(MY_MAP_PATH.replace('/', '.'));\n JavaEditor javaEditor = (JavaEditor) JavaUI.openInEditor(type);\n try {\n SourceViewer viewer = (SourceViewer) javaEditor.getViewer();\n // invoke the full command and asynchronously collect the result:\n final ICompletionProposal[] proposalBox = new ICompletionProposal[1];\n viewer.getQuickAssistAssistant().addCompletionListener(new ICompletionListener() {\n\n @Override\n public void selectionChanged(ICompletionProposal proposal, boolean smartToggle) {\n proposalBox[0] = proposal;\n }\n\n @Override\n public void assistSessionStarted(ContentAssistEvent /* nop */\n event) {\n }\n\n @Override\n public void assistSessionEnded(ContentAssistEvent /* nop */\n event) {\n }\n });\n int offset = pathAndContents[1].indexOf(\"V get\");\n viewer.setSelection(new TextSelection(offset, 0));\n viewer.doOperation(JavaSourceViewer.ANNOTATE_CLASS_FILE);\n int count = 10;\n while (proposalBox[0] == null && count-- > 0) Thread.sleep(200);\n ICompletionProposal proposal = proposalBox[0];\n assertNotNull(\"should have a proposal\", proposal);\n viewer.getQuickAssistAssistant().uninstall();\n JavaProjectHelper.emptyDisplayLoop();\n assertEquals(\"expect proposal\", \"Annotate as '@NonNull V'\", proposal.getDisplayString());\n String expectedInfo = \"<dl><dt>get</dt>\" + \"<dd>(TK;)TV;</dd>\" + \"<dd>(TK;)T<b>1</b>V;</dd>\" + \"</dl>\";\n assertEquals(\"expect detail\", expectedInfo, proposal.getAdditionalProposalInfo());\n IDocument document = javaEditor.getDocumentProvider().getDocument(javaEditor.getEditorInput());\n proposal.apply(document);\n IFile annotationFile = fJProject1.getProject().getFile(new Path(ANNOTATION_PATH).append(\"pack/age/MyMap.eea\"));\n assertTrue(\"Annotation file should have been created\", annotationFile.exists());\n String expectedContent = \"class pack/age/MyMap\\n\" + \"get\\n\" + \" (TK;)TV;\\n\" + \" (TK;)T1V;\\n\";\n checkContentOfFile(\"annotation file content\", annotationFile, expectedContent);\n } finally {\n JavaPlugin.getActivePage().closeAllEditors(false);\n }\n }",
"protected void createGenModel_1Annotations() {\n\t\tString source = \"http://www.eclipse.org/uml2/1.1.0/GenModel\";\n\t\taddAnnotation\n\t\t (internalFailureOccurrenceDescriptionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.softwareInducedFailureType__InternalFailureOccurrenceDescription.oclIsTypeOf(ResourceTimeoutFailureType)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"self.primaryBehaviour__RecoveryAction <> null\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.recoveryAction__RecoveryActionBehaviour.recoveryActionBehaviours__RecoveryAction->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y\\r\\n\\t\\tand x.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\\r\\n\\t\\tand y.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self))\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(1),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(2),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y and\\r\\n\\tx.failureTypes_FailureHandlingEntity->\\r\\n\\t\\texists(f:mpcm::reliability::FailureType |\\r\\n\\t\\ty.failureTypes_FailureHandlingEntity->includes(f)))\"\n\t\t });\n\t}",
"public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }",
"private static void processAnnotation(Annotation annotation, Map<String, Object> fieldsCollector)\n {\n for (Method field : annotation.annotationType().getMethods()) {\n // if the field is annotated with the descriptor key\n DescriptorKey descriptorKey = field.getAnnotation(DescriptorKey.class);\n if (descriptorKey == null) {\n continue;\n }\n\n // name is the name of the method\n String name = descriptorKey.value();\n\n // invoke method to get the value\n Object value;\n try {\n value = field.invoke(annotation);\n }\n catch (Exception e) {\n Throwable cause = e;\n if (e instanceof InvocationTargetException) {\n cause = e.getCause();\n }\n throw new JmxException(Reason.INVALID_ANNOTATION, cause,\n \"Unexpected exception getting value from @DescriptorKey field type: annotationClass=%s, field=%s\",\n annotation.annotationType().getName(), field.getName());\n }\n\n // skip null values, since that is the default\n if (value == null) {\n continue;\n }\n\n // Convert Class and Enum value or array value to String or String array\n // see DescriptorKey javadocs for more info\n if (value instanceof Class) {\n value = ((Class<?>) value).getName();\n }\n else if (value instanceof Enum) {\n value = ((Enum<?>) value).name();\n }\n else if (value.getClass().isArray()) {\n Class<?> componentType = value.getClass().getComponentType();\n if (Class.class.equals(componentType)) {\n Class<?>[] classArray = (Class<?>[]) value;\n String[] stringArray = new String[classArray.length];\n for (int i = 0; i < classArray.length; i++) {\n if (classArray[i] != null) {\n stringArray[i] = classArray[i].getName();\n }\n }\n value = stringArray;\n }\n else if (componentType.isEnum()) {\n Enum<?>[] enumArray = (Enum<?>[]) value;\n String[] stringArray = new String[enumArray.length];\n for (int i = 0; i < enumArray.length; i++) {\n if (enumArray[i] != null) {\n stringArray[i] = enumArray[i].name();\n }\n }\n value = stringArray;\n }\n }\n else if (value instanceof Annotation) {\n throw new JmxException(Reason.INVALID_ANNOTATION,\n \"@DescriptorKey can not be applied to an annotation field type: annotationClass=%s, field=%s\",\n annotation.annotationType().getName(),\n field.getName());\n }\n\n fieldsCollector.put(name, value);\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21202_failAssert22_add22504() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_9258 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9258);\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n type.get(vc_9258);\n // StatementAdderMethod cloned existing statement\n type.get(vc_9258);\n org.junit.Assert.fail(\"annotatedType_cf21202 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"private Description checkAnnotations(\n Tree tree,\n List<? extends AnnotationTree> annotations,\n Comment danglingJavadoc,\n int firstModifierPos,\n int lastModifierPos,\n VisitorState state) {\n Symbol symbol = getSymbol(tree);\n ImmutableList<AnnotationTree> shouldBeBefore =\n annotations.stream()\n .filter(\n a -> {\n Position position = annotationPosition(tree, getAnnotationType(a, symbol, state));\n return position == Position.BEFORE\n || (position == Position.EITHER && getStartPosition(a) < firstModifierPos);\n })\n .collect(toImmutableList());\n ImmutableList<AnnotationTree> shouldBeAfter =\n annotations.stream()\n .filter(\n a -> {\n Position position = annotationPosition(tree, getAnnotationType(a, symbol, state));\n return position == Position.AFTER\n || (position == Position.EITHER && getStartPosition(a) > firstModifierPos);\n })\n .collect(toImmutableList());\n\n boolean annotationsInCorrectPlace =\n shouldBeBefore.stream().allMatch(a -> getStartPosition(a) < firstModifierPos)\n && shouldBeAfter.stream().allMatch(a -> getStartPosition(a) > lastModifierPos);\n\n if (annotationsInCorrectPlace && isOrderingIsCorrect(shouldBeBefore, shouldBeAfter)) {\n return NO_MATCH;\n }\n SuggestedFix.Builder fix = SuggestedFix.builder();\n for (AnnotationTree annotation : concat(shouldBeBefore, shouldBeAfter)) {\n fix.delete(annotation);\n }\n String javadoc = danglingJavadoc == null ? \"\" : removeJavadoc(state, danglingJavadoc, fix);\n if (lastModifierPos == 0) {\n fix.replace(\n getStartPosition(tree),\n getStartPosition(tree),\n String.format(\n \"%s%s \", javadoc, joinSource(state, concat(shouldBeBefore, shouldBeAfter))));\n } else {\n fix.replace(\n firstModifierPos,\n firstModifierPos,\n String.format(\"%s%s \", javadoc, joinSource(state, shouldBeBefore)))\n .replace(\n lastModifierPos,\n lastModifierPos,\n String.format(\" %s \", joinSource(state, shouldBeAfter)));\n }\n Stream.Builder<String> messages = Stream.builder();\n if (!shouldBeBefore.isEmpty()) {\n ImmutableList<String> names = annotationNames(shouldBeBefore);\n String flattened = String.join(\", \", names);\n String isAre =\n names.size() > 1 ? \"are not TYPE_USE annotations\" : \"is not a TYPE_USE annotation\";\n messages.add(\n String.format(\n \"%s %s, so should appear before any modifiers and after Javadocs.\",\n flattened, isAre));\n }\n if (!shouldBeAfter.isEmpty()) {\n ImmutableList<String> names = annotationNames(shouldBeAfter);\n String flattened = String.join(\", \", names);\n String isAre = names.size() > 1 ? \"are TYPE_USE annotations\" : \"is a TYPE_USE annotation\";\n messages.add(\n String.format(\n \"%s %s, so should appear after modifiers and directly before the type.\",\n flattened, isAre));\n }\n return buildDescription(tree)\n .setMessage(messages.build().collect(joining(\" \")))\n .addFix(fix.build())\n .build();\n }",
"protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}",
"public interface AnnotationValue {\n}",
"private static void annotationOut(SchemaComponent sc) {\n if (sc.getAnnotation().getAppinfos().size() > 0) {\n System.out\n .print(\" Annotation (appinfos) available with the content: \");\n for (Appinfo appinfo : sc.getAnnotation().getAppinfos()) {\n out(appinfo.getContent());\n }\n } else {\n System.out\n .print(\" Annotation (documentation) available with the content: \");\n for (Documentation doc : sc.getAnnotation().getDocumentations()) {\n out(doc.getContent());\n }\n }\n }",
"protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}"
] | [
"0.78691155",
"0.64298564",
"0.63747203",
"0.6242733",
"0.61644727",
"0.609811",
"0.58131737",
"0.5780057",
"0.5736702",
"0.5699265",
"0.5695871",
"0.5630149",
"0.55863833",
"0.55648714",
"0.554506",
"0.5544603",
"0.55166215",
"0.55099213",
"0.5502638",
"0.5488056",
"0.5466548",
"0.5459527",
"0.54375756",
"0.5411303",
"0.5408121",
"0.5397945",
"0.5386945",
"0.5351723",
"0.53445405",
"0.531328",
"0.5296132",
"0.5292913",
"0.528752",
"0.5286393",
"0.52781886",
"0.52739155",
"0.5262708",
"0.5257231",
"0.52296036",
"0.521618",
"0.5201691",
"0.5196892",
"0.51941943",
"0.51903206",
"0.51801497",
"0.5167286",
"0.51655185",
"0.51633406",
"0.5150394",
"0.51491284",
"0.51389855",
"0.51352805",
"0.5125599",
"0.51210475",
"0.50991064",
"0.5093267",
"0.50686556",
"0.50683117",
"0.5058163",
"0.50429106",
"0.5035376",
"0.5016493",
"0.50066704",
"0.50066704",
"0.5004398",
"0.500251",
"0.49964377",
"0.49962947",
"0.4983056",
"0.4980092",
"0.49762225",
"0.497575",
"0.49744037",
"0.49744037",
"0.49696428",
"0.49684656",
"0.4962336",
"0.4956581",
"0.4955318",
"0.49533653",
"0.49442333",
"0.49403524",
"0.49377918",
"0.49359015",
"0.49286237",
"0.4927405",
"0.4927405",
"0.49256772",
"0.49131048",
"0.49123114",
"0.489407",
"0.48938575",
"0.48839155",
"0.48836035",
"0.48831642",
"0.4874606",
"0.48726588",
"0.48659486",
"0.48548982",
"0.48537076"
] | 0.7649122 | 1 |
The EAnnotationsdetails is a maplike construct that can be put to and got from. | public void testGetEAnnotationsDetails() {
// any model element should do
EModelElement modelElement = new Emf().getEcorePackage();
EAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, "http://rcpviewer.berlios.de/test/source");
Map<String,String> details = new HashMap<String,String>();
details.put("foo", "bar");
details.put("baz", "boz");
_emfAnnotations.putAnnotationDetails(eAnnotation, details);
Map<String,String> retrievedDetails = _emfAnnotations.getAnnotationDetails(eAnnotation);
assertEquals(2, retrievedDetails.size());
assertEquals("bar", retrievedDetails.get("foo"));
assertEquals("boz", retrievedDetails.get("baz"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void incompletetestSetEAnnotationsDetails() {\r\n\t\t// any model element should do\r\n\t\tEModelElement modelElement = new Emf().getEcorePackage();\r\n\t\tEAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, \"http://rcpviewer.berlios.de/test/source\");\r\n\t\tMap<String,String> details = new HashMap<String,String>();\r\n\t\tdetails.put(\"foo\", \"bar\");\r\n\t\tdetails.put(\"baz\", \"boz\");\r\n\t\tassertEquals(0, eAnnotation.getDetails().size());\r\n\t\t_emfAnnotations.putAnnotationDetails(eAnnotation, details);\r\n\t\tassertEquals(2, eAnnotation.getDetails().size());\r\n\t}",
"DataMap getCustomAnnotations();",
"public abstract AnnotationMap mo30683d();",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\n\t\taddAnnotation\n\t\t (controlEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"control\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Midi(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"midi\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Background(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"background\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Centered(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"centered\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Color(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"color\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_H(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"h\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Inverted(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_LocalOff(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"local_off\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Number(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_OscCs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"osc_cs\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Outline(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"outline\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Response(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"response\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalet(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalet\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Seconds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"seconds\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Size(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"size\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Text(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"text\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_W(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"w\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_X(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Y(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (layoutEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"layout\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Tabpage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"tabpage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Mode(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"mode\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Orientation(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"orientation\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Version(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"version\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (midiEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"midi\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Channel(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"channel\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data1(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data1\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2f(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2f\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2t(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2t\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Var(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"var\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (tabpageEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"tabpage\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Control(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"control\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (topEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"TOP\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTOP_Layout(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"layout\"\n\t\t });\n\t}",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}",
"public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}",
"public abstract Annotations mo30682c();",
"public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }",
"InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);",
"public interface AddressLabelDetails {\n String getFirstName();\n\n String getLastName();\n\n String getAddressline();\n\n String getAddressline2();\n\n String getAddressline3();\n\n String getPostalCode();\n\n String getCity();\n\n String getRegion();\n\n String getCountry();\n\n String getCountryCode();\n}",
"protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}",
"public String getAnnotation();",
"public abstract Annotations getClassAnnotations();",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\n\t\taddAnnotation\n\t\t (unsignedIntEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (unsignedIntegerEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"baseType\", \"http://www.w3.org/2001/XMLSchema#decimal\"\n\t\t });\n\t\taddAnnotation\n\t\t (idEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"[a-zA-Z0-9_]([a-zA-Z0-9_\\\\-.$])*\"\n\t\t });\n\t\taddAnnotation\n\t\t (namespaceEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"([^\\\\s#])*(#|/)\",\n\t\t\t \"minLength\", \"2\"\n\t\t });\n\t}",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\n\t\taddAnnotation\n\t\t (getJClass_Operations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"simple\"\n\t\t });\n\t}",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"public String getAnnotations() {\n\t\treturn annotations;\n\t}",
"protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}",
"public abstract AnnotationCollector mo30681b(Annotation annotation);",
"protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getPartyQual_QualificationDesc(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_PartyQualTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeText(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Rating(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillLevel(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_YearsExperience(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_PerfRatingTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_ManagerRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_PerfReviewItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_ApprovalStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Reason(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_ResponsibilityTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_SkillTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_TrainingClassTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }",
"protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}",
"protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}",
"public Annotations getAnnotations() {\n\t\treturn annotations;\n\t}",
"protected void createInternalAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/internal\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}",
"@Override\n\tpublic Object getDetails() {\n\t\treturn details;\n\t}",
"Map getAspectDatas();",
"protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceMessage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_ReferenceNumber(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_InvoiceContentTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-precise\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"3\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_InvoiceItemAssocTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_InvoiceItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Percentage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceTermId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermDays(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TextValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_UomId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_InvoiceTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}",
"protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}",
"protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.AccidentDetailPEL getAccidentDetail();",
"public void setAnnotations(Annotations annotations) {\n\t\tthis.annotations = annotations;\n\t}",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}",
"public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }",
"com.google.protobuf.ByteString getDetailsBytes();",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"org.abchip.mimo.core.base.invocation\",\n\t\t\t \"settingDelegates\", \"org.abchip.mimo.core.base.setting\"\n\t\t });\n\t}",
"@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}",
"java.lang.String getDetails();",
"private void writeItemWithAnnotations(final AnnotatedOutput out) {\n out.annotate(0, parent.getParent().method.getMethodString());\n out.annotate(\"line_start: 0x\" + Integer.toHexString(lineStart) + \" (\" + lineStart + \")\");\n out.writeUnsignedLeb128(lineStart);\n out.annotate(\"parameters_size: 0x\" + Integer.toHexString(parameterNames.length) + \" (\" + parameterNames.length\n + \")\");\n out.writeUnsignedLeb128(parameterNames.length);\n int index = 0;\n for (StringIdItem parameterName: parameterNames) {\n int indexp1;\n if (parameterName == null) {\n out.annotate(\"[\" + index++ +\"] parameterName: \");\n indexp1 = 0;\n } else {\n out.annotate(\"[\" + index++ +\"] parameterName: \" + parameterName.getStringValue());\n indexp1 = parameterName.getIndex() + 1;\n }\n out.writeUnsignedLeb128(indexp1);\n }\n\n DebugInstructionIterator.IterateInstructions(new ByteArrayInput(encodedDebugInfo),\n new DebugInstructionIterator.ProcessRawDebugInstructionDelegate() {\n private int referencedItemsPosition = 0;\n\n @Override\n public void ProcessEndSequence(int startDebugOffset) {\n out.annotate(\"DBG_END_SEQUENCE\");\n out.writeByte(DebugOpcode.DBG_END_SEQUENCE.value);\n }\n\n @Override\n public void ProcessAdvancePC(int startDebugOffset, int length, int addressDiff) {\n out.annotate(\"DBG_ADVANCE_PC\");\n out.writeByte(DebugOpcode.DBG_ADVANCE_PC.value);\n out.indent();\n out.annotate(\"addr_diff: 0x\" + Integer.toHexString(addressDiff) + \" (\" + addressDiff + \")\");\n out.writeUnsignedLeb128(addressDiff);\n out.deindent();\n }\n\n @Override\n public void ProcessAdvanceLine(int startDebugOffset, int length, int lineDiff) {\n out.annotate(\"DBG_ADVANCE_LINE\");\n out.writeByte(DebugOpcode.DBG_ADVANCE_LINE.value);\n out.indent();\n out.annotate(\"line_diff: 0x\" + Integer.toHexString(lineDiff) + \" (\" + lineDiff + \")\");\n out.writeSignedLeb128(lineDiff);\n out.deindent();\n }\n\n @Override\n public void ProcessStartLocal(int startDebugOffset, int length, int registerNum, int nameIndex,\n int typeIndex, boolean registerIsSigned) {\n out.annotate(\"DBG_START_LOCAL\");\n out.writeByte(DebugOpcode.DBG_START_LOCAL.value);\n out.indent();\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (dexFile.getPreserveSignedRegisters() && registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n if (nameIndex != -1) {\n Item nameItem = referencedItems[referencedItemsPosition++];\n assert nameItem instanceof StringIdItem;\n out.annotate(\"name: \" + ((StringIdItem)nameItem).getStringValue());\n out.writeUnsignedLeb128(nameItem.getIndex() + 1);\n } else {\n out.annotate(\"name: \");\n out.writeByte(0);\n }\n if (typeIndex != -1) {\n Item typeItem = referencedItems[referencedItemsPosition++];\n assert typeItem instanceof TypeIdItem;\n out.annotate(\"type: \" + ((TypeIdItem)typeItem).getTypeDescriptor());\n out.writeUnsignedLeb128(typeItem.getIndex() + 1);\n } else {\n out.annotate(\"type: \");\n out.writeByte(0);\n }\n out.deindent();\n }\n\n @Override\n public void ProcessStartLocalExtended(int startDebugOffset, int length, int registerNum,\n int nameIndex, int typeIndex, int signatureIndex,\n boolean registerIsSigned) {\n out.annotate(\"DBG_START_LOCAL_EXTENDED\");\n out.writeByte(DebugOpcode.DBG_START_LOCAL_EXTENDED.value);\n out.indent();\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (dexFile.getPreserveSignedRegisters() && registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n if (nameIndex != -1) {\n Item nameItem = referencedItems[referencedItemsPosition++];\n assert nameItem instanceof StringIdItem;\n out.annotate(\"name: \" + ((StringIdItem)nameItem).getStringValue());\n out.writeUnsignedLeb128(nameItem.getIndex() + 1);\n } else {\n out.annotate(\"name: \");\n out.writeByte(0);\n }\n if (typeIndex != -1) {\n Item typeItem = referencedItems[referencedItemsPosition++];\n assert typeItem instanceof TypeIdItem;\n out.annotate(\"type: \" + ((TypeIdItem)typeItem).getTypeDescriptor());\n out.writeUnsignedLeb128(typeItem.getIndex() + 1);\n } else {\n out.annotate(\"type: \");\n out.writeByte(0);\n }\n if (signatureIndex != -1) {\n Item signatureItem = referencedItems[referencedItemsPosition++];\n assert signatureItem instanceof StringIdItem;\n out.annotate(\"signature: \" + ((StringIdItem)signatureItem).getStringValue());\n out.writeUnsignedLeb128(signatureItem.getIndex() + 1);\n } else {\n out.annotate(\"signature: \");\n out.writeByte(0);\n }\n out.deindent();\n }\n\n @Override\n public void ProcessEndLocal(int startDebugOffset, int length, int registerNum,\n boolean registerIsSigned) {\n out.annotate(\"DBG_END_LOCAL\");\n out.writeByte(DebugOpcode.DBG_END_LOCAL.value);\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n }\n\n @Override\n public void ProcessRestartLocal(int startDebugOffset, int length, int registerNum,\n boolean registerIsSigned) {\n out.annotate(\"DBG_RESTART_LOCAL\");\n out.writeByte(DebugOpcode.DBG_RESTART_LOCAL.value);\n out.annotate(\"register_num: 0x\" + Integer.toHexString(registerNum) + \" (\" + registerNum + \")\");\n if (registerIsSigned) {\n out.writeSignedLeb128(registerNum);\n } else {\n out.writeUnsignedLeb128(registerNum);\n }\n }\n\n @Override\n public void ProcessSetPrologueEnd(int startDebugOffset) {\n out.annotate(\"DBG_SET_PROLOGUE_END\");\n out.writeByte(DebugOpcode.DBG_SET_PROLOGUE_END.value);\n }\n\n @Override\n public void ProcessSetEpilogueBegin(int startDebugOffset) {\n out.annotate(\"DBG_SET_EPILOGUE_BEGIN\");\n out.writeByte(DebugOpcode.DBG_SET_EPILOGUE_BEGIN.value);\n }\n\n @Override\n public void ProcessSetFile(int startDebugOffset, int length, int nameIndex) {\n out.annotate(\"DBG_SET_FILE\");\n out.writeByte(DebugOpcode.DBG_SET_FILE.value);\n if (nameIndex != -1) {\n Item sourceItem = referencedItems[referencedItemsPosition++];\n assert sourceItem instanceof StringIdItem;\n out.annotate(\"source_file: \\\"\" + ((StringIdItem)sourceItem).getStringValue() + \"\\\"\");\n out.writeUnsignedLeb128(sourceItem.getIndex() + 1);\n } else {\n out.annotate(\"source_file: \");\n out.writeByte(0);\n }\n }\n\n @Override\n public void ProcessSpecialOpcode(int startDebugOffset, int debugOpcode, int lineDiff,\n int addressDiff) {\n out.annotate(\"DBG_SPECIAL_OPCODE: line_diff=0x\" + Integer.toHexString(lineDiff) + \"(\" +\n lineDiff +\"),addressDiff=0x\" + Integer.toHexString(addressDiff) + \"(\" + addressDiff +\n \")\");\n out.writeByte(debugOpcode);\n }\n });\n }",
"public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }",
"public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }",
"@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}",
"private void parseAnnotation(final List<ScannedAnnotation> descriptions, final AnnotationNode annotation,\n final Object annotatedObject) {\n // desc has the format 'L' + className.replace('.', '/') + ';'\n final String name = annotation.desc.substring(1, annotation.desc.length() - 1).replace('/', '.');\n Map<String, Object> values = null;\n if (annotation.values != null) {\n values = new HashMap<String, Object>();\n final Iterator<?> i = annotation.values.iterator();\n while (i.hasNext()) {\n final Object vName = i.next();\n Object value = i.next();\n\n // convert type to class name string\n if (value instanceof Type) {\n value = ((Type) value).getClassName();\n } else if (value instanceof List<?>) {\n final List<?> objects = (List<?>) value;\n if (objects.size() > 0) {\n if (objects.get(0) instanceof Type) {\n final String[] classNames = new String[objects.size()];\n int index = 0;\n for (final Object v : objects) {\n classNames[index] = ((Type) v).getClassName();\n index++;\n }\n value = classNames;\n } else if (objects.get(0) instanceof AnnotationNode) {\n final List<ScannedAnnotation> innerDesc = new ArrayList<ScannedAnnotation>();\n for (final Object v : objects) {\n parseAnnotation(innerDesc, (AnnotationNode) v, annotatedObject);\n }\n if (annotatedObject instanceof Method) {\n value = innerDesc.toArray(new MethodAnnotation[innerDesc.size()]);\n } else if (annotatedObject instanceof Field) {\n value = innerDesc.toArray(new FieldAnnotation[innerDesc.size()]);\n } else {\n value = innerDesc.toArray(new ClassAnnotation[innerDesc.size()]);\n }\n } else {\n value = convertToArray(objects, objects.get(0).getClass());\n }\n } else {\n value = null;\n }\n }\n\n values.put(vName.toString(), value);\n }\n }\n\n final ScannedAnnotation a;\n if (annotatedObject instanceof Method) {\n a = new MethodAnnotation(name, values, (Method) annotatedObject);\n ((Method) annotatedObject).setAccessible(true);\n } else if (annotatedObject instanceof Field) {\n a = new FieldAnnotation(name, values, (Field) annotatedObject);\n ((Field) annotatedObject).setAccessible(true);\n } else {\n a = new ClassAnnotation(name, values);\n }\n descriptions.add(a);\n }",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}",
"private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }",
"public AnnotationInfoImpl()\n {\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }",
"@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();",
"Set<String> annotations();",
"@SuppressWarnings(\"unchecked\")\n\tpublic Map<String, Object> getViolationDetails() {\n\t\treturn JsonUtil.toAnnotatedClassfromJson(violationDetails.getAsJsonObject().toString(), Map.class);\n\t}",
"@Override\n public void setDetailAttributes(MetaData metaData, String[] attributes)\n {\n }",
"@Override\n public String toString() {\n return detail;\n }",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}",
"public Builder setAnnotations(final Annotations value) {\n _annotations = value;\n return this;\n }",
"Object yangAugmentedInfo(Class classObject);",
"Object yangAugmentedInfo(Class classObject);",
"@Override\n public void visit(Tree.AnnotationList al) {\n }",
"@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();",
"Annotation getAnnotation();",
"@Override\n public Object getDetails() {\n return null;\n }",
"public String getDetails()\n\t{\n\t return \"Point (\"+x+\",\"+y+\")\";\n\t}",
"Annotation createAnnotation();",
"Annotation createAnnotation();",
"@Override\n\tpublic String getAddressDetails() {\n\t\treturn \"[\" + this.street + \" \" + this.city + \" \" + this.state + \" \" + this.zip + \"]\";\n\t}",
"public Framework_annotation<T> build_annotation();",
"public HashMap getMetaData() ;",
"@ApiModelProperty(value = \"Expense Claim detail information\")\n public List<ExpenseClaimDetailUpdateDto> getDetails() {\n return details;\n }",
"public abstract Map getAttributes();",
"protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}",
"public static Map<String, String> annotations(HasMetadata resource) {\n return annotations(resource.getMetadata());\n }",
"@ApiModelProperty(value = \"A human-readable explanation specific to this occurrence of the problem\")\n \n public String getDetail() {\n return detail;\n }",
"private static void annotationOut(SchemaComponent sc) {\n if (sc.getAnnotation().getAppinfos().size() > 0) {\n System.out\n .print(\" Annotation (appinfos) available with the content: \");\n for (Appinfo appinfo : sc.getAnnotation().getAppinfos()) {\n out(appinfo.getContent());\n }\n } else {\n System.out\n .print(\" Annotation (documentation) available with the content: \");\n for (Documentation doc : sc.getAnnotation().getDocumentations()) {\n out(doc.getContent());\n }\n }\n }",
"public interface IJavaAnnotation extends ITextSourceReference {\n \n \t/**\n \t * Returns resource that declares this annotation.\n \t * \n \t * @return resource that declares this annotation\n \t */\n \tpublic IResource getResource();\n \n \t/**\n \t * Returns fully qualified type name if resolved or element name otherwise.\n \t * \n \t * @return fully qualified type name if resolved or element name otherwise\n \t */\n \tpublic String getTypeName();\n \n \t/**\n\t * Returns annotation type or null if it cannot be resolved.\n \t * \n\t * @return annotation type or null if it cannot be resolved\n \t */\n \tpublic IType getType();\n \t/**\n \t * Returns Java element on which or for which this annotation was created.\n \t * \n \t * @return Java element on which or for which this annotation was created\n \t */\n \tpublic IMember getParentMember();\n \n \t/**\n \t * Returns member value pairs as IAnnotation does.\n \t * \n \t * @return member value pairs as IAnnotation does\n \t */\n \tpublic IMemberValuePair[] getMemberValuePairs();\n \n }",
"public String getInformation(ITextViewer textViewer, IRegion subject) {\n \t\treturn \"not null\"; //$NON-NLS-1$\n \t}",
"public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }",
"public interface CollectionInfo {\n void onItemDetailsClicks(RelativeLayout mRelativeLayout, TextView mTextView, List<Map<String,Object>> list);\n}",
"public interface RawAnnotationSet<V> extends ReadableAnnotationSet<V> {\n\n /**\n * @see NindoCursor#begin()\n */\n void begin();\n\n /**\n * @see NindoCursor#finish()\n */\n void finish();\n\n /**\n * Content has been inserted into the document being annotated\n *\n * @param insertSize\n */\n void insert(int insertSize);\n\n String getInherited(String key);\n\n /**\n * Content has been removed from the document being annotated\n *\n * @param deleteSize\n */\n void delete(int deleteSize);\n\n /**\n */\n void skip(int skipSize);\n\n /**\n * @see ModifiableDocument#startAnnotation(String, String)\n */\n void startAnnotation(String key, V value);\n\n /**\n * @see ModifiableDocument#endAnnotation(String)\n */\n void endAnnotation(String key);\n\n /**\n * @return a live updated set of the known keys\n */\n ReadableStringSet knownKeysLive();\n\n public abstract class AnnotationEvent {\n final int index;\n final String key;\n\n private AnnotationEvent(int index, String key) {\n this.index = index;\n this.key = key;\n }\n\n abstract String getChangeKey();\n abstract String getChangeOldValue();\n abstract String getEndKey();\n }\n\n public final class AnnotationStartEvent extends AnnotationEvent {\n final String value;\n AnnotationStartEvent(int index, String key, String value) {\n super(index, key);\n// assert !Annotations.isLocal(key);\n this.value = value;\n }\n\n @Override\n String getChangeKey() {\n return key;\n }\n\n @Override\n String getChangeOldValue() {\n return value;\n }\n\n @Override\n String getEndKey() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"AnnotationStart \" + key + \"=\" + value + \" @\" + index;\n }\n }\n\n public final class AnnotationEndEvent extends AnnotationEvent {\n AnnotationEndEvent(int index, String key) {\n super(index, key);\n }\n\n\n @Override\n String getChangeKey() {\n return null;\n }\n\n @Override\n String getChangeOldValue() {\n return null;\n }\n\n @Override\n String getEndKey() {\n return key;\n }\n\n @Override\n public String toString() {\n return \"AnnotationEndEvent \" + key + \" @\" + index;\n }\n }\n\n}",
"public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }",
"Map<String, List<List<Attribution>>> getAttributionMap();",
"@Deprecated public List<AnnotationRef> getAnnotations(){\n return build(annotations);\n }",
"protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}",
"public java.util.List<? extends com.gw.ps.pbbean.PbNewsRes.NewsIndResDetailOrBuilder> \n getNewsindentifydetailOrBuilderList() {\n return newsindentifydetail_;\n }",
"public void setAccidentDetail(typekey.AccidentDetailPEL value);",
"@Override\n public String getAnnotation() {\n return annotation;\n }",
"public AnnotationJava[] getAnnotations() {\n\t\treturn annotations;\n\t}",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"public String[] getDetails() {\n\t\treturn details;\n\t}",
"public interface AnnotationValue {\n}",
"public Object handleAnnotation(AnnotationMirror annotation) {\n @SuppressWarnings(\"unchecked\")\n List<AnnotationValue> arrayMembers = (List<AnnotationValue>)annotation.getElementValues().values().iterator().next().getValue();\n return (String)arrayMembers.iterator().next().getValue();\n }",
"private static Map<String, NullnessAnnotation> createString2AnnotationMap() {\n final Map<String, NullnessAnnotation> result = new HashMap<>();\n\n for (final NullnessAnnotation annotation : NullnessAnnotation.values()) {\n result.put(annotation.annotationName, annotation);\n result.put(annotation.fullyQualifiedClassName, annotation);\n }\n\n return Collections.unmodifiableMap(result);\n }",
"protected void createMimoentframeAnnotations() {\n\t\tString source = \"mimo-ent-frame\";\n\t\taddAnnotation\n\t\t (invoiceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceContactMechEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Contact Mechanism\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceContentTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemAssocEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Item Association\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemAssocTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"dictionary\", \"AccountingEntityLabels\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemTypeAttrEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Item Type Attribute\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"dictionary\", \"AccountingEntityLabels\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTypeAttrEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Type Attribute\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t}",
"public Annotation(String className) {\n\t//\tthis.id = newId();\n\t\tthis.annotatonClassName = className;\n\t\tattributes = new HashSetValuedHashMap<String, String>();\n\t}",
"public ElementList[] getAnnotations() {\r\n return union.value();\r\n }",
"public void detailEventOccurred(DetailEvent e) {\n\t\t\t\t\tupdateRecommendationAction(CR);\n\t\t\t\t}",
"HashMap<String, String> getAdditionalDescriptions();"
] | [
"0.6878387",
"0.6475439",
"0.6169605",
"0.60403895",
"0.6010531",
"0.59241563",
"0.5793409",
"0.57099676",
"0.5679133",
"0.56574976",
"0.56139773",
"0.55382067",
"0.55350345",
"0.5529698",
"0.5529683",
"0.54913914",
"0.54912204",
"0.5457097",
"0.5427913",
"0.5416235",
"0.5383411",
"0.5379364",
"0.5336381",
"0.53308046",
"0.5325581",
"0.53230006",
"0.5319478",
"0.5285461",
"0.52826643",
"0.5277342",
"0.5253033",
"0.5248418",
"0.5234064",
"0.5222522",
"0.52003556",
"0.5198626",
"0.51891696",
"0.5176403",
"0.5173624",
"0.5165758",
"0.51624566",
"0.51552343",
"0.5151849",
"0.5147437",
"0.5144382",
"0.51401347",
"0.5128228",
"0.5101752",
"0.509946",
"0.5091053",
"0.50831044",
"0.5080465",
"0.5070258",
"0.50592047",
"0.50555193",
"0.5054132",
"0.5041971",
"0.5040086",
"0.50362796",
"0.50362796",
"0.5032507",
"0.50319654",
"0.50287443",
"0.5014483",
"0.50135696",
"0.5009314",
"0.5009314",
"0.5008059",
"0.50065637",
"0.4991405",
"0.49624857",
"0.49604768",
"0.49575585",
"0.4942833",
"0.49416977",
"0.49344462",
"0.4923075",
"0.4919798",
"0.49156517",
"0.49148545",
"0.49072042",
"0.489782",
"0.48960152",
"0.48942775",
"0.48918626",
"0.4887483",
"0.48864582",
"0.48853108",
"0.4878984",
"0.4876306",
"0.4876306",
"0.48743394",
"0.48664713",
"0.48640373",
"0.48568892",
"0.48551443",
"0.48537984",
"0.48460984",
"0.484018",
"0.48377684"
] | 0.70089734 | 0 |
returning JSON objects, not HTML | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("application/json");
try (PrintWriter out = response.getWriter()) {
Gson gson = new Gson();
ProblemsManager problemsManager = ServletUtils.getProblemsManager(getServletContext());
List<TimeTableProblem> problemList = problemsManager.getProblems();
List<DTOShortProblem> shortProblemsList= new LinkedList<>();
for(TimeTableProblem problem:problemList)
{
shortProblemsList.add(new DTOShortProblem(problem));
}
String json = gson.toJson(shortProblemsList);
out.println(json);
out.flush();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getJSON();",
"public String getJson();",
"String getJson();",
"String getJson();",
"String getJson();",
"public String toJSONResult() {\n StringBuilder pageJSON = new StringBuilder();\n pageJSON.append(\"{\\\"id\\\": \");\n pageJSON.append(\"\\\"\");\n pageJSON.append(getID());\n pageJSON.append(\"\\\"\");\n pageJSON.append(\", \\\"title\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getTitle(), \"UTF-8\")).append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\", \\\"url\\\": \\\"\").append(getUrl())\n .append(\"\\\", \\\"preview\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getPreview(), \"UTF-8\"))\n .append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\"}\");\n\n return pageJSON.toString();\n }",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"public void jsonPresentation () {\n System.out.println ( \"****** Json Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n String jsonData = \"\";\n ObjectMapper mapper = new ObjectMapper();\n bookArrayList = new Request().postRequestBook();\n try {\n jsonData = mapper.writeValueAsString(bookArrayList);\n } catch (JsonProcessingException e) {\n System.out.println(\"Error: \"+ e);\n }\n System.out.println(jsonData);\n ClientEntry.showMenu ( );\n }",
"@GET\n @Produces(\"application/json\")\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"@Get(\"json\")\n public Representation toJSON() {\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = null;\n\n \tString msg = \"no metadata matching query found\";\n\n \ttry {\n \t\tmetadata = getMetadata(status, access,\n \t\t\t\tgetRequestQueryValues());\n \t} catch(ResourceException r){\n \t\tmetadata = new ArrayList<Map<String, String>>();\n \tif(r.getCause() != null){\n \t\tmsg = \"ERROR: \" + r.getCause().getMessage();\n \t}\n \t}\n\n\t\tString iTotalDisplayRecords = \"0\";\n\t\tString iTotalRecords = \"0\";\n\t\tif (metadata.size() > 0) {\n\t\t\tMap<String, String> recordCounts = (Map<String, String>) metadata\n\t\t\t\t\t.remove(0);\n\t\t\tiTotalDisplayRecords = recordCounts.get(\"iTotalDisplayRecords\");\n\t\t\tiTotalRecords = recordCounts.get(\"iTotalRecords\");\n\t\t}\n\n\t\tMap<String, Object> json = buildJsonHeader(iTotalRecords,\n\t\t\t\tiTotalDisplayRecords, msg);\n\t\tList<ArrayList<String>> jsonResults = buildJsonResults(metadata);\n\n\t\tjson.put(\"aaData\", jsonResults);\n\n\t\t// Returns the XML representation of this document.\n\t\treturn new StringRepresentation(JSONValue.toJSONString(json),\n\t\t\t\tMediaType.APPLICATION_JSON);\n }",
"public abstract Object toJson();",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"public abstract String toJson();",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n return null;\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJSON() {\n throw new UnsupportedOperationException();\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n GsonBuilder gBuilder = new GsonBuilder();\n Gson jObject = gBuilder.create();\n\n try {\n return jObject.toJson(dao.getAll());\n } catch (Exception e) {\n Resposta lResposta = new Resposta();\n\n lResposta.setMensagem(e.getMessage());\n lResposta.setSucesso(false);\n\n return jObject.toJson(lResposta);\n }\n }",
"private JSON() {\n\t}",
"protected abstract String getJSON(B bean);",
"String toJSON();",
"JSONObject toJson();",
"JSONObject toJson();",
"@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}",
"protected abstract Object buildJsonObject(R response);",
"public String toJSON() throws JSONException;",
"protected String getJSON() {\n/*Generated! Do not modify!*/ return gson.toJson(replyDTO);\n/*Generated! Do not modify!*/ }",
"@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"@GET\n @Produces(\"application/json\")\n public String getJson() {\n\n JSONObject rezultat = new JSONObject();\n\n List<Korisnici> korisnici = korisniciFacade.findAll();\n\n \n\n try {\n for (Korisnici k : korisnici) {\n if (k.getIdkorisnik() == Long.parseLong(id)) {\n\n SoapListaAdresa soapOdgovor = listaDodanihAdresaBesplatno(k.getKorisnickoime(), k.getLozinka());\n\n List<Adresa> adrese = soapOdgovor.getAdrese();\n \n JSONArray jsonPolje = new JSONArray();\n int brojac = 0;\n for (Adresa a : adrese) {\n JSONObject jsonAdresa = new JSONObject();\n jsonAdresa.put(\"idadresa\", a.getIdadresa());\n jsonAdresa.put(\"adresa\", a.getAdresa());\n jsonAdresa.put(\"lat\", a.getGeoloc().getLatitude());\n jsonAdresa.put(\"long\", a.getGeoloc().getLongitude());\n jsonPolje.put(brojac,jsonAdresa);\n brojac++;\n }\n rezultat.put(\"adrese\", jsonPolje);\n } \n }\n return rezultat.toString();\n } catch (JSONException ex) {\n Logger.getLogger(MeteoRESTResource.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"public abstract String toJsonString();",
"@Override\n public JsonElement serialize(FrontPageContentResponse src, Type typeOfSrc, JsonSerializationContext context) {\n\treturn null;\n }",
"@Override\r\n\tprotected GuardarSustentoResponse responseText(String json) {\n\t\tGuardarSustentoResponse guardarSustentoResponse = JSONHelper.desSerializar(json, GuardarSustentoResponse.class);\r\n\t\treturn guardarSustentoResponse;\r\n\t}",
"@Override\n public String toJson() {\n return \"{'content':'\" + this.content + \"'}\";\n }",
"@Override\n public String toString() {\n return jsonString;\n }",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n response.setContentType(\"application/json\");\n\n List<Table> tables = getTables();\n Gson gson = new Gson();\n String json = gson.toJson(tables);\n\n response.getOutputStream().println(json);\n }",
"@Override\n\tprotected void handleResult(JSONObject obj) {\n\t\t\n\t}",
"public String toJSON() {\n\t JSONObject outer = new JSONObject();\r\n\t JSONObject inner = new JSONObject();\r\n\t // Now generate the JSON output\r\n\t try {\r\n\t outer.put(\"articleMobile\", inner); // the outer object name\r\n\t inner.put(\"codeArticle\", codeArticle); // a name/value pair\r\n\t inner.put(\"designation\", designation); // a name/value pair\r\n\t inner.put(\"prixVente\", prixVente); // a name/value pair\r\n\t inner.put(\"stockTh\", stockTh);\r\n\t inner.put(\"error\", error); // a name/value pair\r\n\t inner.put(\"gisement\", gisement); // a name/value pair\r\n\t } catch (JSONException ex) {\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return outer.toString(); // return the JSON text\r\n\t}",
"protected JSONObject getJsonRepresentation() throws Exception {\r\n\r\n JSONObject jsonObj = new JSONObject();\r\n jsonObj.put(\"note\", note);\r\n return jsonObj;\r\n }",
"@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}",
"String toJSONString(Object data);",
"JsonObject raw();",
"@GET\n @Produces(\"application/json\")\n public String getJson() {\n MultivaluedMap<String, String> params = context.getQueryParameters();\n String catId = params.getFirst(Propuesta.FIELDS.CATEGORYID);\n// MultivaluedMap<String, String> params = context.getQueryParameters();\n// for (String param : params.keySet()) {\n// String val = params.getFirst(param);\n// System.out.println(\"Param:\"+param+\", value:\"+val);\n// }\n //System.out.println(headers.getRequestHeader(HttpHeaders.AUTHORIZATION).get(0));\n return getProposalsJSON(catId);\n }",
"@Path(\"/list\")\n @GET\n @Produces({ MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML })\n public List<Food> getFoods_JSON() throws ClassNotFoundException {\n List<Food> listOfCountries=DBFood.listAllFoods();\t\n return listOfCountries;\n }",
"@Override\r\n\tpublic JSONObject getJSON() {\n\t\treturn tenses;\r\n\t}",
"public JsonObject toJson();",
"@Override\r\n\tprotected JSON_Paginador getJson_paginador() {\n\t\treturn null;\r\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String consultarSolicitudes()\n {\n Object objeto = sdao.consultaGeneral();\n return gson.toJson(objeto);\n }",
"@Override\r\n\tprotected ProfitHistoryDetalleResponse responseText(String json) {\n\t\tProfitHistoryDetalleResponse response = JSONHelper.desSerializar(json,ProfitHistoryDetalleResponse.class);\r\n\t\treturn response;\r\n\t}",
"@Override\r\n\tprotected GuardarVtaCeroMotivoResponse responseText(String json) {\n\t\tGuardarVtaCeroMotivoResponse guardarVtaCeroMotivoResponse = JSONHelper.desSerializar(json, GuardarVtaCeroMotivoResponse.class);\r\n\t\treturn guardarVtaCeroMotivoResponse;\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 }",
"@GET\n @Path(\"/getAll\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJson() {\n \n \ttry \n \t{\n \t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", \"*\").entity(servDoctores.getDoctores().toString()).build();\n \t} catch (Exception e) {\n\n \t\te.printStackTrace();\n \t\treturn Response.status(Response.Status.NO_CONTENT).build();\n \t}\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public JSONObject toJSON() {\n JSONObject main = new JSONObject();\n JSONObject pocJSON = new JSONObject();\n pocJSON.put(JSON_NAME, this.getName());\n pocJSON.put(JSON_DESCRIPTION, this.getDescription());\n pocJSON.put(JSON_COLOR,this.colorConstraint.getColor().name());\n main.put(SharedConstants.TYPE, SharedConstants.PRIVATE_OBJECTIVE_CARD);\n main.put(SharedConstants.BODY,pocJSON);\n return main;\n }",
"public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}",
"@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}",
"@Override\r\n\tprotected ConsultarIndiceEjecucionAnioResponse responseText(String json) {\n\t\tConsultarIndiceEjecucionAnioResponse response = JSONHelper.desSerializar(json, ConsultarIndiceEjecucionAnioResponse.class);\r\n\t\treturn response;\r\n\t}",
"@GET\n @Path(\"/\")\n @Produces(\"application/json\")\n public Response all() {\n // Return some cliched textual content\n return Response.ok(\"clients list goes here\", MediaType.APPLICATION_JSON).build();\n }",
"protected JSONObject getJsonRepresentation() throws Exception {\n\n JSONObject jsonObj = new JSONObject();\n jsonObj.put(\"name\", getName());\n return jsonObj;\n }",
"@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 }",
"@GET\n @Produces({MediaType.APPLICATION_JSON})\n public Message getJSON_Ankit() {\n return new Message(\"Hello World, Jersey\");\n }",
"Object visitorResponse();",
"@GET\n @Path(\"/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson(@PathParam(\"id\") int id) {\n GsonBuilder gBuilder = new GsonBuilder();\n Gson jObject = gBuilder.create();\n try {\n return jObject.toJson(dao.getObjectById(id));\n } catch (Exception e) {\n Resposta lResposta = new Resposta();\n lResposta.setMensagem(e.getMessage());\n lResposta.setSucesso(false);\n\n return jObject.toJson(lResposta);\n }\n }",
"@Get\n\tpublic Representation represent() throws JSONException {\n\n\t\tString Message = \"\";\n\t\tint Status = 0;\n\t\tJSONObject jBody = new JSONObject();\n\t\t\n\t\tString ServerKey = \"\";\n\t\tif (getRequest().getAttributes().get(\"ServerKey\") != null ) ServerKey = (String) getRequest().getAttributes().get(\"ServerKey\");\n\t\tServerAuth serverAuth = new ServerAuth();\n\t\tboolean Authenticated = serverAuth.authenticate(ServerKey);\n\n\t\tif (Authenticated){\n\t\t\tString LookupType = \"\";\n\t\t\tif (getRequest().getAttributes().get(\"lookuptype\") != null ) LookupType = (String) getRequest().getAttributes().get(\"lookuptype\");\n\t\t\tString Partial = \"\";\n\t\t\tif (getRequest().getAttributes().get(\"partial\") != null ) Partial = (String) getRequest().getAttributes().get(\"partial\");\n\t\n\t\t\t\n\t\t\tString dbType = \"\";\n\t\t\tString sqlStatement = \"\";\n\t\t\t\n\t\t\tPartial = Partial.replace(\"%20\",\" \"); //unencode space character\n\t\t\tif (LookupType.equals(\"reactions\")){\n\t\t\t\tsqlStatement = \"select reaction from reactions \";\n\t\t\t\tif (!Partial.equals(\"\")){\n\t\t\t\t\tsqlStatement += \"where reaction like '%\" + Partial + \"%' \";\n\t\t\t\t}\n\t\t\t\tsqlStatement += \"order by reaction\";\n\t\t\t}\n\t\t\tif (LookupType.equals(\"drugs\")){\n\t\t\t\tsqlStatement = \"select drugname from drugs \";\n\t\t\t\tif (!Partial.equals(\"\")){\n\t\t\t\t\tsqlStatement += \"where drugname like '%\" + Partial + \"%' \";\n\t\t\t\t}\n\t\t\t\tsqlStatement += \"order by drugname\";\n\t\t\t}\n\t\n\t\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\t\tlogger.debug(\"sqlStatement: \" + sqlStatement);\n\t\t\t\t}\n\n\t\t\tDBTableJNDI dbTable = new DBTableJNDI();\n\t\t\tdbTable = dbTable.getDBTableResults(sqlStatement, dbType);\n\t\t\tOutputFormatter formatter = new OutputFormatter();\n\t\t\tJSONArray jResults = formatter.getJsonArray(dbTable);\n\t\t\t\n\t\t\tMessage = \"\";\n\t\t\tStatus = 0;\n\t\t\tjBody.put(\"results\", jResults);\n\t\t} else {\n\t\t\tStatus = 1;\n\t\t\tMessage = \"invalid authentication token\";\n\t\t}\n\t\tResponseJson jResponse = new ResponseJson();\n\t\tRepresentation rep = null;\n\t\tjResponse.setStatusCode(Status);\n\t\tjResponse.setStatusMessage(Message);\n\t\tjResponse.setBody(jBody);\n\t\trep = new JsonRepresentation(jResponse.getResponse(jResponse));\n\t\treturn rep;\n\t}",
"@Override\n\tpublic JSONObject getJSONObject() {\n\t\treturn wrapper;\n\t}",
"public JSONObject ownGetView()\n {\n JSONObject jsonObject = new JSONObject();\n try\n {\n jsonObject.put(\"task\", currentTask.getTask());\n jsonObject.put(\"location\", currentTask.getLocation());\n jsonObject.put(\"starttime\", currentTask.getStartTime());\n currentTask.setStopStime(currentTask.getCurrentTime());\n jsonObject.put(\"stoptime\", currentTask.getStopStime());\n currentTask.recalculateTime();\n jsonObject.put(\"time\",currentTask.getTime());\n jsonObject.put(\"timeinseconds\",currentTask.getTimeInSeconds());\n jsonObject.put(\"gps\", currentTask.getGps());\n jsonObject.put(\"notes\", currentTask.getNotes());\n jsonObject.put(\"inmotion\", currentTask.isInMotion());\n jsonObject.put(\"edited\", currentTask.isEdited());\n }\n\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n return jsonObject;\n }",
"public JSONObject toJson() {\n }",
"@Override\r\n\tprotected ActualizarCompromisoResponse responseText(String json) {\n\t\tActualizarCompromisoResponse response = JSONHelper.desSerializar(json, ActualizarCompromisoResponse.class);\r\n\t\treturn response;\r\n\t}",
"@Path(\"building_get\")\n @GET\n @Produces(CommonWsUtils.MEDIA_TYPE_JSON)\n public String getJson() {\n JSONObject jsonObjectReturn = new JSONObject();\n\n try {\n BuildingDao buildingDaoImpl = new BuildingDaoImpl();\n \n List<Building> buildings = buildingDaoImpl.getAll();\n\n jsonObjectReturn = JsonObjectUtils.setSuccessWithDataList(jsonObjectReturn, buildings);\n }\n catch(Exception e) {\n e.printStackTrace();\n \n jsonObjectReturn = JsonObjectUtils.setServiceError(jsonObjectReturn);\n }\n \n return jsonObjectReturn.toString();\n }",
"protected JSONObject createAllOkKSON() {\r\n\t\tJSONObject jo = new JSONObject();\r\n\t\tjo.put(OnlineKeys.RESULT, \"OK\");\r\n\t\treturn jo;\r\n\t}",
"public String jsonify() {\n return gson.toJson(this);\n }",
"private String createOutputJson(List<AccountPortfolio> nonSecured) {\n return gson.toJson(nonSecured);\n }",
"public JSONObject toJSON() {\n JSONObject jsonObject = new JSONObject();\n JSONObject json_posts = new JSONObject();\n for (Post post : this.getPost()) {\n JSONObject json_post = new JSONObject();\n JSONObject json_files = new JSONObject();\n for (UserFile userFile : post.getFile()) {\n JSONObject json_file = new JSONObject();\n json_file.put(\"FileID\", userFile.getFileID());\n json_file.put(\"FilePath\", userFile.getFilePath());\n json_files.put(\"File\" + userFile.getFileID(), json_file);\n }\n json_post.put(\"PostID\", post.getPostID());\n json_post.put(\"Title\", post.getTitle());\n json_post.put(\"Body\", post.getBody());\n json_post.put(\"Files\", json_files);\n json_posts.put(\"Post\" + post.getPostID(), json_post);\n }\n jsonObject.put(\"UID\", this.getUID());\n jsonObject.put(\"UserName\", this.getUserName());\n jsonObject.put(\"PassWord\", this.getPassWord());\n jsonObject.put(\"Email\", this.getEmail());\n jsonObject.put(\"Posts\", json_posts);\n return jsonObject;\n }",
"@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }",
"public JSONObject toJSON(boolean includeUrl, boolean includeDates){\n\t\tJSONObject json = new JSONObject();\n\t\ttry {\n\t\t\tjson.put(\"text\", text);\n\t\t\tjson.put(\"person\", person.toJSON(true, false, false));\n\t\t\tif(createdDate != null && includeDates) json.put(\"created_at\", DateParser.toJSON(createdDate));\n\t\t\tif(url != null && includeUrl) json.put(\"url\", url);\n\t\t\treturn json;\n\t } catch (JSONException e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t}",
"public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }",
"public final String toJson( )\n\t{\n\t\tString json = \"\";\n\t\tif ( getHref( ) != null )\n\t\t{\n\t\t\tthis.data.put( \"id\", getHref( ).substring( getHref( ).lastIndexOf( \"/\" ) + 1 ) );\n\t\t\tjson = this.data.toString( );\n\t\t\tthis.data.remove( \"id\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tjson = this.data.toString( );\n\t\t}\n\t\treturn json;\n\t}",
"void generateJSON(JSONObject object, String name);",
"@GET\n\t@Path(\"/helloJSONList\")\n\t/**\n\t * Here is an example of a simple REST get request that returns a String.\n\t * We also illustrate here how we can convert Java objects to JSON strings.\n\t * @return - List of words as JSON\n\t * @throws IOException\n\t */\n\tpublic String helloJSONList() throws IOException {\n\n\t\tList<String> listOfWords = new ArrayList<String>();\n\t\tlistOfWords.add(\"Hello\");\n\t\tlistOfWords.add(\"World!\");\n\n\t\t// We can turn arbatory Java objects directly into JSON strings using\n\t\t// Jackson seralization, assuming that the Java objects are not too complex.\n\t\tString listAsJSONString = oWriter.writeValueAsString(listOfWords);\n\n\t\treturn listAsJSONString;\n\t}",
"@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}",
"public String toJson() throws Exception {\n\t\treturn WebAccess.mapper.writeValueAsString(this);\n\t}",
"private static String valueToJSONString(Object value) throws Exception \n {\n\t\t JSONObject json = new JSONObject(); \n\t if (value instanceof IdScriptableObject && \n\t ((IdScriptableObject)value).getClassName().equals(\"Date\") == true) \n\t { \n\t // Get the UTC values of the date \n\t Object year = NativeObject.callMethod((IdScriptableObject)value, \"getUTCFullYear\", null); \n\t Object month = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMonth\", null); \n\t Object date = NativeObject.callMethod((IdScriptableObject)value, \"getUTCDate\", null); \n\t Object hours = NativeObject.callMethod((IdScriptableObject)value, \"getUTCHours\", null); \n\t Object minutes = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMinutes\", null); \n\t Object seconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCSeconds\", null); \n\t Object milliSeconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMilliseconds\", null); \n\t \n\t // Build the JSON object to represent the UTC date \n\t \n\t json.put(\"zone\",\"UTC\"); \n\t json.put(\"year\",year); \n\t json.put(\"month\",month); \n\t json.put(\"date\",date); \n\t json.put(\"hours\",hours); \n\t json.put(\"minutes\",minutes); \n\t json.put(\"seconds\",seconds); \n\t json.put(\"milliseconds\",milliSeconds); \n\t return json.toString(); \n\t } \n\t else if (value instanceof NativeJavaObject) \n\t { \n\t Object javaValue = Context.jsToJava(value, Object.class); \n\t return javaValue.toString(); \n\t } \n\t else if (value instanceof NativeArray) \n\t { \n\t // Output the native array \n\t return nativeArrayToJSONString((NativeArray)value); \n\t } \n\t else if (value instanceof NativeObject) \n\t { \n\t // Output the native object \n\t return nativeObjectToJSONString((NativeObject)value); \n\t } \n\t else if( value instanceof Function){\n\t \treturn Context.toString(value);\n\t }\n\t else \n\t { \n\t return value.toString(); \n\t } \n }",
"private StringBuilder getJSONHelper()\n\t{\n\t\tStringBuilder json = new StringBuilder();\n\t\tint n = 0;\n\t\tfor(String key : values.keySet())\n\t\t\tappendValue(json, key, n++);\n\t\treturn json;\n\t}",
"public String treeJSON() {\n\t\ttry{\r\n\t\tList trees = this.getTransedTrees();\r\n\t\tString result = this.treeJSON(trees);\r\n\t\treturn result;\r\n\t\t}catch(Exception e){\r\n\t\t\tlog.info(\">>>>faceye error in method:treeJSON() is\"+e.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}",
"@GET\n @Produces(\"application/json; charset=UTF-8\")\n public String getJson() {\n JSONObject response = new JSONObject();\n try {\n Hashtable<String, String> activeUsers = (Hashtable<String, String>) \n ContextListener.getServletContext().getAttribute(\"activeUsers\");\n if (activeUsers.containsKey(username)) {\n response.put(\"result\", \"OK\");\n String password = activeUsers.get(username);\n WsResponse wsResponse = GeoWeatherWSClient.getUserAddresses(username, password);\n String wsResponseMessage = wsResponse.getResponseMessage();\n if(wsResponseMessage.contains(\"OK\")) {\n List<Address> userAddresses = wsResponse.getUserAddresses();\n JSONArray addresses = new JSONArray();\n int i = 0;\n for(Address address : userAddresses) {\n addresses.put(i, address.getAddress());\n i++;\n }\n response.put(\"addresses\", addresses);\n }\n else {\n response.put(\"result\", wsResponseMessage);\n }\n } else {\n response.put(\"result\", \"USER LOGGED OUT\");\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return response.toString();\n }",
"public JSONObject makeJSONBuyDevCards() {\n\t\tJSONObject json = new JSONObject();\n\t\tJSONObject json2 = new JSONObject();\n\t\ttry {\n\t\t\tjson.put(\"Entwicklungskarte kaufen\", json2);\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn json;\n\t}",
"protected abstract JSONObject build();",
"public Map<String, JsonElementType> getJsonResponseStructure();",
"public JSONObject toJSON() {\n return toJSON(true);\n }",
"JSONObject mo28758a(View view);",
"private Object readJSON() throws JSONException\n {\n switch(read(3))\n {\n case zipObject:\n return readObject();\n case zipArrayString:\n return readArray(true);\n case zipArrayValue:\n return readArray(false);\n case zipEmptyObject:\n return new JSONObject();\n case zipEmptyArray:\n return new JSONArray();\n case zipTrue:\n return Boolean.TRUE;\n case zipFalse:\n return Boolean.FALSE;\n default:\n return JSONObject.NULL;\n }\n }",
"protected String getAjaxJson(String code) {\n return getAjaxJson(code, true, \"\");\n }",
"@Override\n\tpublic JSONObject getJSONObject() {\n\t\treturn mainObj;\n\t}",
"public String getSnippetsAsJson() throws NotesException, IOException {\n\t\tRootNode root = readSnippetsNodes();\n\t\tJsonTreeRenderer r = new JsonTreeRenderer();\n\t\treturn r.generateAsStringHier(root,true);\n\t}",
"public JSONObject createFinalJson(){\n JSONObject finalJson = new JSONObject();\n //Get userId from SQL lite database\n DatabaseHandler db = new DatabaseHandler(this);\n User user = db.getUser();\n //get Answer JSON object and turn it into an JSON-Array\n try {\n finalJson.put(\"user\",user);\n finalJson.put(\"survey\", survey);\n finalJson.put(\"answers\",result);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n System.out.println(finalJson.toString());\n return finalJson;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"@Path(\"/tags\")\n\t@GET\n\t@Produces(\"application/json\")\n\tpublic Response getTagsList() {\n\t\tList<String> tags = PhotoDB.getTags();\n\t\t\n\t\tGson gson = new Gson();\n\t\tString jsonText = gson.toJson(tags);\n\t\t\n\t\treturn Response.status(Status.OK).entity(jsonText).build();\n\t}",
"@GET\r\n @Produces(\"text/html\")\r\n public String getHtml() {\r\n return \"<html><body>the solution is :</body></html> \";\r\n }",
"private JSONObject getPageJson(Page p) {\n\t\t\n\t\tJSONObject json = new JSONObject();\n\t\tResource eventdetail = p.getContentResource().getChild(\"eventdetails\");\n\t\tBoolean hasDetails = eventdetail != null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tjson.put(\"title\", p.getNavigationTitle() != null ? p.getNavigationTitle() : p.getTitle());\n\t\t\tjson.put(\"summary\", p.getDescription());\n\t\t\t\n\t\t\tif (hasDetails) {\n\t\t\t\t\n\t\t\t\tValueMap properties = eventdetail.getValueMap();\n\t\t\t\tCalendar startCal = eventdetail.getValueMap().get(\"start\", Calendar.class);\n\t\t\t\tCalendar endCal = eventdetail.getValueMap().get(\"end\", Calendar.class);\n\t\t\t\t\n\t\t\t\tjson.put(\"location\", properties.get(\"location\",\"\"));\n\t\t\t\tjson.put(\"speaker\", properties.get(\"speaker\",\"\"));\n\t\t\t\tjson.put(\"locationMap\", properties.get(\"locationMap\",\"\"));\n\t\t\t\tjson.put(\"host\", properties.get(\"host\",\"\"));\n\t\t\t\tjson.put(\"unixstarttime\", EventHelper.getUnixStartTime(eventdetail));\n\t\t\t\tjson.put(\"isExternal\", properties.get(\"isExternal\",\"false\"));\n\t\t\t\tjson.put(\"dayOfWeek\", getDayOfWeek(startCal));\n\t\t\t\tjson.put(\"eventDate\", getDate(startCal));\n\t\t\t\tjson.put(\"startTime\", getTime(startCal));\n\t\t\t\tjson.put(\"endTime\", getTime(endCal));\n\t\t\t\t\n\t\t\t\t/* Ignoring legacy contact info as that causes invalid JSON data */\n\t\t\t\tjson.put(\"contact\", EventHelper.getFormattedContactInfo(\n\t\t\t\t\tproperties.get(\"contactName\",\"\"), \n\t\t\t\t\tproperties.get(\"contactEmail\",\"\"), \n\t\t\t\t\tproperties.get(\"contactPhone\",\"\")\n\t\t\t\t));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} catch (JSONException e) {\n\t\t\t\n\t\t\tlog.error(DEBUG_PREFIX + \"Problem creating JSON for page \" + p.getPath(), e);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn json;\n\t}",
"@Path(\"/productos\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) //Por que una track si la aceptaba (ejemplo) pero un producto no?\n public String productos(){\n return test.getProductos().get(\"Leche\").toString();\n\n }",
"@Override\r\n\tprotected ActualizarClienteResponse responseText(String json) {\n\t\tActualizarClienteResponse actualizarClienteResponse = JSONHelper.desSerializar(json, ActualizarClienteResponse.class);\r\n\t\treturn actualizarClienteResponse;\r\n\t}",
"@GET\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\tpublic String getMoviesHTML() {\r\n\t\tListMovies movies = new ListMovies();\r\n\t\tmovies.addAll(TodoDao.instance.getMovies().values());\r\n\t\treturn \"\" + movies;\r\n\t}",
"@Override\n\tpublic Object handlerResult(JSONObject json) throws JSONException {\n\t\treturn null;\n\t}"
] | [
"0.72045124",
"0.7198799",
"0.7096176",
"0.7096176",
"0.7096176",
"0.68508893",
"0.66696286",
"0.66453475",
"0.660813",
"0.66037256",
"0.656432",
"0.6518935",
"0.6518935",
"0.6518935",
"0.6517347",
"0.65032774",
"0.64997154",
"0.64645773",
"0.6456972",
"0.6412172",
"0.64099747",
"0.6390765",
"0.6390765",
"0.63528746",
"0.6311896",
"0.62480295",
"0.6205481",
"0.61804044",
"0.6055719",
"0.6022584",
"0.6022041",
"0.60162807",
"0.59921134",
"0.5983479",
"0.5975339",
"0.5970283",
"0.5925936",
"0.59237117",
"0.5921806",
"0.59204745",
"0.5913155",
"0.58597845",
"0.58451027",
"0.5842609",
"0.5840523",
"0.58258736",
"0.5819133",
"0.58118814",
"0.5810657",
"0.5809476",
"0.5797594",
"0.5788871",
"0.578406",
"0.5766536",
"0.5759851",
"0.57374364",
"0.57327354",
"0.5728865",
"0.5714036",
"0.56902355",
"0.56842726",
"0.5678074",
"0.56776863",
"0.56754637",
"0.56571656",
"0.565618",
"0.5647081",
"0.56448907",
"0.56403685",
"0.5626787",
"0.5620512",
"0.56179404",
"0.5617735",
"0.56133634",
"0.5611812",
"0.5611277",
"0.5604597",
"0.5602195",
"0.5601445",
"0.55904603",
"0.5585096",
"0.5584369",
"0.5583767",
"0.5566881",
"0.55661744",
"0.5561089",
"0.5540702",
"0.5536724",
"0.5535477",
"0.5535271",
"0.5532712",
"0.553119",
"0.5515708",
"0.55156815",
"0.55153346",
"0.5510604",
"0.5510599",
"0.55065465",
"0.5506399",
"0.55044115",
"0.5502162"
] | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}",
"void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }",
"public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}",
"@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}",
"public Result get(Get get) throws IOException;",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }",
"@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }",
"@Override\npublic void get(String url) {\n\t\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}",
"@NonNull\n public String getAction() {\n return \"GET\";\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }",
"@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }",
"public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }",
"@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }",
"public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}",
"@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}",
"public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}",
"public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}",
"private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }",
"public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"HttpGet getRequest(HttpServletRequest request, String address) throws IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }",
"@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}",
"private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}"
] | [
"0.7589819",
"0.71670026",
"0.71134603",
"0.7056349",
"0.7030202",
"0.70289457",
"0.6996126",
"0.6975816",
"0.6888662",
"0.6873633",
"0.6853793",
"0.6843488",
"0.6843488",
"0.68354696",
"0.68354696",
"0.68354696",
"0.6819225",
"0.6818393",
"0.6797782",
"0.6780766",
"0.6761152",
"0.67546815",
"0.67546815",
"0.67403847",
"0.67188615",
"0.67158395",
"0.67054987",
"0.67054987",
"0.6701152",
"0.6684633",
"0.66776204",
"0.6675632",
"0.6675632",
"0.6674378",
"0.6674378",
"0.6668488",
"0.66617364",
"0.66617364",
"0.66477805",
"0.6636472",
"0.66167665",
"0.66129434",
"0.6603993",
"0.6570445",
"0.6551127",
"0.6538683",
"0.6536589",
"0.6535939",
"0.6496197",
"0.64664567",
"0.64521563",
"0.64508563",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64072937",
"0.6396223",
"0.63798064",
"0.63737595",
"0.6359885",
"0.63581914",
"0.6341077",
"0.6309777",
"0.6306383",
"0.630272",
"0.63026774",
"0.6283587",
"0.6275156",
"0.62678796",
"0.62581164",
"0.6255567",
"0.62503594",
"0.6245187",
"0.6239602",
"0.6239602",
"0.6238581",
"0.6235405",
"0.6215722",
"0.6212377",
"0.6206887",
"0.6206634",
"0.6204746",
"0.6200539",
"0.6199529",
"0.6188366",
"0.6182832",
"0.61764896",
"0.6175472",
"0.6173032",
"0.6171852",
"0.61701643",
"0.61690634"
] | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public String post();",
"@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }",
"protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}",
"public void postData() {\n\n\t}",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public abstract boolean handlePost(FORM form, BindException errors) throws Exception;",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}",
"@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }",
"protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}",
"public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }",
"@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}",
"private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.7327792",
"0.71364146",
"0.71150917",
"0.7103484",
"0.7098967",
"0.7022197",
"0.7014374",
"0.6963617",
"0.6887727",
"0.67830557",
"0.6772561",
"0.67459744",
"0.6666483",
"0.65569043",
"0.655617",
"0.65236866",
"0.6523533",
"0.6523533",
"0.6523533",
"0.652217",
"0.65187013",
"0.65143514",
"0.6510847",
"0.651052",
"0.64912283",
"0.6479801",
"0.6475664",
"0.6470739",
"0.6470278",
"0.6468195",
"0.645584",
"0.6450473",
"0.6450473",
"0.6450473",
"0.6447996",
"0.6447996",
"0.64368415",
"0.64356387",
"0.64334625",
"0.6423143",
"0.6421065",
"0.64188904",
"0.64188904",
"0.64188904",
"0.64063096",
"0.6402555",
"0.6402555",
"0.639523",
"0.6394996",
"0.63531774",
"0.6332038",
"0.63235676",
"0.6294927",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.62789494",
"0.62713283",
"0.62713283",
"0.6270387",
"0.6260497",
"0.6253797",
"0.62495375",
"0.6225063",
"0.6212975",
"0.62123644",
"0.62109727",
"0.6206917",
"0.62009853",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.61629224",
"0.61590767",
"0.6147172",
"0.6145605",
"0.6145605",
"0.61443746",
"0.6141046",
"0.6135871",
"0.61309165",
"0.6129246",
"0.6122686",
"0.61175007",
"0.61165035",
"0.6105327",
"0.6098414",
"0.6097962",
"0.609629"
] | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }",
"@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }"
] | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
"0.85282224",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8516995",
"0.8512296",
"0.8511239",
"0.8510324",
"0.84964365"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"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 |
Complete the alternate function below. | static int alternate(String s) {
HashMap<Character,Integer>mapCharacter = new HashMap<>();
LinkedList<String>twoChar=new LinkedList<>();
LinkedList<Character>arr=new LinkedList<>();
Stack<String>stack=new Stack<>();
int largest=0;
int counter=0;
if (s.length()==1){
return 0;
}
for (int i =0; i<s.length();i++){
if (mapCharacter.get(s.charAt(i))==null)
{
mapCharacter.put(s.charAt(i),1);
}
}
Iterator iterator=mapCharacter.entrySet().iterator();
while (iterator.hasNext()){
counter++;
Map.Entry entry=(Map.Entry)iterator.next();
arr.addFirst((Character) entry.getKey());
}
for (int i=0;i<arr.size();i++){
for (int j=i;j<arr.size();j++){
StringBuilder sb =new StringBuilder();
for (int k=0;k<s.length();k++){
if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){
sb.append(s.charAt(k));
}
}
twoChar.addFirst(sb.toString());
}
}
for (int b=0;b<twoChar.size();b++){
String elementIn=twoChar.get(b);
stack.push(elementIn);
for (int i=0;i<elementIn.length()-1;i++){
if (elementIn.charAt(i)==elementIn.charAt(i+1)){
stack.pop();
break;
}
}
}
int stackSize=stack.size();
for (int j=0;j<stackSize;j++){
String s1=stack.pop();
int length=s1.length();
if (length>largest){
largest=length;
}
}
return largest;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void alternateFunction()\n\t{\n\t\tstart();\n\t\trunAlgorithm();\n\t}",
"protected abstract void recombineNext();",
"private static void askForContinue() {\n\t\t\t\n\t\t}",
"@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}",
"public void Exterior() {\n\t\t\r\n\t}",
"private static void FinalIndVsPAk() {\n\t\tSystem.out.println(\"Pak Lost The Match\");\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public abstract void completeIteration();",
"@Override\r\n\tpublic void converse() {\n\t\t\r\n\t}",
"private void alternateBeeper(){\n\t\tputBeeper();\n\t\tif(frontIsClear()){\n\t\tmove();\n\t\t}\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t} \n\t}",
"@Override\n\tpublic void step2() {\n\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n System.out.println(alternate(\"a\"));\n }",
"public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }",
"protected void end() {\n \tclimber.ascend(0, 0);\n }",
"@Override\n\tpublic void effetCase() {\n\t\t\n\t}",
"double passer();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void onComplete() {\n /*\n r3 = this;\n monitor-enter(r3)\n U r0 = r3.l // Catch:{ all -> 0x0022 }\n if (r0 != 0) goto L_0x0007\n monitor-exit(r3) // Catch:{ all -> 0x0022 }\n return\n L_0x0007:\n r1 = 0\n r3.l = r1 // Catch:{ all -> 0x0022 }\n monitor-exit(r3) // Catch:{ all -> 0x0022 }\n d.a.a0.c.e<U> r1 = r3.f13249d\n r1.offer(r0)\n r0 = 1\n r3.f13251f = r0\n boolean r0 = r3.f()\n if (r0 == 0) goto L_0x0021\n d.a.a0.c.e<U> r0 = r3.f13249d\n d.a.s<? super V> r1 = r3.f13248c\n r2 = 0\n d.a.a0.j.q.c(r0, r1, r2, r3, r3)\n L_0x0021:\n return\n L_0x0022:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x0022 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: d.a.a0.e.d.o.b.onComplete():void\");\n }",
"@Override\n\tpublic void imprime() {\n\t\t\n\t}",
"private final void step2() { if (ends(\"y\") && vowelinstem()) b[k] = 'i'; }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void turnUpToEleven() {\n\t\t\r\n\t}",
"public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }",
"public static void secondOne() {\n\t\tObject[] option = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"reset\" };\n\t\telipse = JOptionPane.showOptionDialog(frame, \"are these doors to a farm? or are you just high?\", \"be prepared\",\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, icon, option, option[9]);\n\t\thighDoors();\n\t}",
"default void trip() {\n\t\tSystem.out.println(\"Oh no you fell! :(\");\n\t}",
"public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }",
"private final void i() {\n }",
"private void alternatePlayer(Piece current) {\n if (currPlayer == X) {\n currPlayer = O;\n }\n else currPlayer = X;\n }",
"public static void better() {\n System.out.println(\"I am 'efficient'\");\n }",
"@Override\n\tpublic void finishWithRight() {\n\t\tfinish();\n\t}",
"public final void mo51373a() {\n }",
"public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }",
"@Override\r\n\tprotected void doLast() {\n\t\t\r\n\t}",
"public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}",
"public void baocun() {\n\t\t\n\t}",
"public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }",
"public void advance( )\n {\n // Implemented by student.\n }",
"protected void runAfterIterations() {}",
"@Override\n void advance() {\n }",
"public static void trickyMethodTwo() {\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>> \\nEjemplo dos: trickyMethod.\");\n\t\t\n\t\tint result = 0;\n\t\t\n\t\tif(result = 1) ///ERRORRRRRR...No compila, porque la asignación devuelve un entero y no un booleano\n\t\t\tSystem.out.println(result);\n\t\telse\n\t\t\tSystem.out.println(result);\n\t}",
"protected abstract void forceEndValues();",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"public void mo33394d() {\n mo33393c();\n mo33395e();\n }",
"public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }",
"@NotNull\n @Generated\n @Selector(\"alternates\")\n public native NSArray<? extends UICommandAlternate> alternates();",
"@Override\n public int continuar() {\n // TODO Auto-generated method stub\n return 0;\n }",
"private void doAlts() {\n\t\tdouble rpri1 = ( -this.c + Math.sqrt(Constants.square(this.c) - 4d * (1d - this.c) * (- Constants.square(Math.sin(this.launchBurnAng))))) / (2d * (1d - this.c));\n\t\tdouble rpri2 = ( -this.c - Math.sqrt(Constants.square(this.c) - 4d * (1d - this.c) * (- Constants.square(Math.sin(this.launchBurnAng))))) / (2d * (1d - this.c));\n\t\tif (rpri1 > rpri2) {\n\t\t\tthis.launchPerAlt = rpri2 * this.launchBurnAlt;\n\t\t\tthis.launchApoAlt = rpri1 * this.launchBurnAlt;\n\t\t} else {\n\t\t\tthis.launchPerAlt = rpri1 * this.launchBurnAlt;\n\t\t\tthis.launchApoAlt = rpri2 * this.launchBurnAlt;\n\t\t}\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"private void runBest() {\n }",
"@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public static void conclude() {\n\t\tOutput out = new Output();\n\t\tA a = abc.getA();\n\t\tB b = abc.getB();\n\t\tC c = abc.getC();\n\t\tout.show(a, b, c);\n\t}",
"private void method_2242() {\r\n this.field_1824.method_6863(0);\r\n this.field_1824.method_6861(false);\r\n this.field_1824.method_6859(0);\r\n this.field_1824.method_6857(false);\r\n }",
"private static void task43() {\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"\\tHow I wonder what you are!\");\n System.out.println(\"\\t\\tUp above the world so high,\");\n System.out.println(\"\\t\\tLike a diamond in the sky!\");\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"How I wonder what you are.\");\n }",
"private void kk12() {\n\n\t}",
"public void opts() {\n\t\tint N = this.length();\n\t\tboolean improved = true;\n\t\t\n\t\twhile (improved) {\n\t\t\timproved = false;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tfor (int j = 0; j + 1 < i; j++) {\n\t\t\t\t\tif (twoHalfOpt(i, j)) {\n\t\t\t\t\t\timproved = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\t\tif (twoHalfOpt(i, j)) {\n\t\t\t\t\t\timproved = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int j = i; ++j < N; j++) {\n\t\t\t\t\tif (twoOpt(i, j)) {\n\t\t\t\t\t\timproved = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public void checkPairsAndNextStep() {\r\n\t\tsetPairs();\r\n\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\tthis.stepPanel.setStep(StepPanel.STEP_FINISH);\r\n\t\t\tthis.nextButton.setText(\"Finish\");\r\n\t\t\tif (this.criticalPairs != null) {\r\n\t\t\t\tthis.criticalPairGraGra = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void runAfterIteration() {}",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"public void disparar(){}",
"public int askSecondaryWithPass();",
"public void mo42329d() {\n this.f36201R = true;\n if (this.f36200Q.getAndIncrement() == 0) {\n mo42335f();\n this.f36205a.onComplete();\n }\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"IEmpleado next();",
"public abstract void wrapup();",
"public void ex02() {\n\n boolean hasFinished = false;\n\n\n if (hasFinished==true) {\n printResults();\n }\n\n\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint[] x = {1,2,2};\r\n\t\tint[] y = {1, 2, 1,2};\r\n\t\tint[] a = {2,1,2};\r\n\t\tint[] b = {2,2,1,2};\r\n\t\t\r\n\t\tSystem.out.println(nextToTwo(x));\r\n\t\tSystem.out.println(nextToTwo(y));\r\n\t\tSystem.out.println(nextToTwo(a));\r\n\t\tSystem.out.println(nextToTwo(b));\t\t\r\n\r\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"protected void dopositiveClick2() {\n\n }",
"@Override\n\tpublic void implementionEight(String[] args) throws Exception {\n\n\t}",
"public void mo42331g() {\n if (this.f36200Q.getAndIncrement() == 0) {\n do {\n boolean z = this.f36201R;\n mo42335f();\n if (z) {\n this.f36205a.onComplete();\n return;\n }\n } while (this.f36200Q.decrementAndGet() != 0);\n }\n }",
"@Override\r\n\tpublic void endVisit(CompilationUnit node) {\r\n\t\tsuper.endVisit(node);\r\n\t\tWriteLine(n1() + \":\" + n2() + \":\" + N1() + \":\" + N2());\r\n\t\t//System.out.println(effort());\r\n\t}",
"double defendre();",
"private void poetries() {\n\n\t}",
"@Override\n public boolean tryAdvance(DoubleConsumer action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n return true;\n }else{\n return false;\n }\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n public void toogleFold() {\n }",
"final void checkForComodification() {\n\t}",
"public void nextHard() {\n\t\titerator.next();\n\t}",
"@Override\n\tpublic boolean reverseAccrualIt() {\n\t\treturn false;\n\t}",
"public abstract void goNext();",
"public static void feec() {\n\t}",
"private static void doWeTerminate() {\n if(nrOfResults == nrOfWorks){\n //clear this round\n nrOfWorks = 0;\n nrOfResults = 0;\n finished = true;\n return;\n }\n }",
"@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}",
"@Override\n\tpublic void next() {\n\t\t\n\t}",
"protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }",
"private void doNextRow(){\n\t\tmove();\n\t\twhile (frontIsClear()){\n\t\t\talternateBeeper();\n\t\t}\n\t\tcheckPreviousSquare();\t\n\t}",
"public static void main(String[] args) {\nSystem.out.println(\"second tricky\");\r\n\t}",
"@Override\n\tprotected void end() {\n\t\t\n\t}",
"@Override\r\n\tpublic void done() {\n\t\t\r\n\t}",
"public void next() {\n\t\t}",
"public static void main(String[] args) {\n\t\treverseAlternate(\"Hello Good Morning nanshu\");\n\t\t\t//reverseWords1(\"Hello Good Morning\");\n\t\t\t\n\t\t\t\n\t\t\t//String str1 = \"nashu\";\n\t\t\t//Middle(str1);\n\t}",
"void whileIncomplete();",
"@Override\r\n\tpublic void next() {\n\n\t}",
"@Override\n\t\tpublic void done() {\n\n\t\t}"
] | [
"0.6724797",
"0.59093314",
"0.56747663",
"0.56430507",
"0.5636688",
"0.5598483",
"0.55719554",
"0.5535149",
"0.5510747",
"0.54792476",
"0.54694206",
"0.5443901",
"0.54332",
"0.54225355",
"0.53974223",
"0.53857386",
"0.538218",
"0.537931",
"0.5375415",
"0.5373937",
"0.53438586",
"0.5305839",
"0.52632815",
"0.5263265",
"0.5261673",
"0.52568567",
"0.5228049",
"0.52168554",
"0.52053225",
"0.51881033",
"0.51831466",
"0.5181418",
"0.51691",
"0.5160977",
"0.5159843",
"0.5148414",
"0.51476574",
"0.5133375",
"0.5127363",
"0.51233083",
"0.51187384",
"0.51114696",
"0.5106326",
"0.51048124",
"0.5087984",
"0.5086465",
"0.507947",
"0.50739974",
"0.50662374",
"0.50629187",
"0.5057343",
"0.50533396",
"0.5052163",
"0.5045048",
"0.5042498",
"0.504007",
"0.5038227",
"0.50241274",
"0.5012663",
"0.5012457",
"0.5011092",
"0.5008613",
"0.500435",
"0.500435",
"0.4998587",
"0.49957454",
"0.49949643",
"0.4989171",
"0.49802765",
"0.49796414",
"0.49789524",
"0.49766144",
"0.49705407",
"0.49705398",
"0.49694768",
"0.4964234",
"0.4954989",
"0.49504992",
"0.49490005",
"0.49443224",
"0.49434832",
"0.49400637",
"0.4939568",
"0.49381205",
"0.49371034",
"0.4932567",
"0.49276975",
"0.49236393",
"0.49205828",
"0.49099037",
"0.49091798",
"0.48976818",
"0.48943362",
"0.48911086",
"0.48910934",
"0.48870513",
"0.48867863",
"0.488374",
"0.48835185",
"0.48827422",
"0.4877788"
] | 0.0 | -1 |
/ BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); int l = Integer.parseInt(bufferedReader.readLine().trim()); String s = bufferedReader.readLine(); int result = alternate(s); bufferedWriter.write(String.valueOf(result)); bufferedWriter.newLine(); bufferedReader.close(); bufferedWriter.close(); | public static void main(String[] args) throws IOException {
System.out.println(alternate("a"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new\n InputStreamReader(System.in));\n BufferedWriter bufferedWriter = new BufferedWriter(new\n FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\n String[] nr = bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\").split(\" \");\n\n int n = Integer.parseInt(nr[0]);\n\n long r = Long.parseLong(nr[1]);\n\n List<Long> arr = Stream.of(bufferedReader.readLine().replaceAll(\"\\\\s+$\",\n \"\").split(\" \")).map(Long::parseLong)\n .collect(toList());\n\n long ans = countTriplets(arr, r);\n\n bufferedWriter.write(String.valueOf(ans));\n bufferedWriter.newLine();\n\n bufferedReader.close();\n bufferedWriter.close();\n }",
"public static void main(String[] args) throws IOException {\n\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in))) {\n\n try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")))) {\n\n final int t = Integer.parseInt(\n bufferedReader.readLine()\n .trim());\n\n for (int i = 0; i < t; i++) {\n\n final String[] firstMultipleInput = bufferedReader.readLine()\n .replaceAll(REGEX, REPLACEMENT)\n .split(SEPARATOR);\n\n final String a = firstMultipleInput[0];\n final String b = firstMultipleInput[1];\n\n final int result = solve(a, b);\n\n bufferedWriter.write(String.valueOf(result));\n bufferedWriter.newLine();\n }\n }\n }\n }",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n BufferedOutputStream out = new BufferedOutputStream(System.out);\n StringBuilder res = new StringBuilder();\n\n while (true) {\n // skip blank lines and end when no more input\n String line = in.readLine();\n if (line == null)\n break;\n else if (line.equals(\"\"))\n continue;\n\n int b = Integer.valueOf(line);\n int p = Integer.valueOf(in.readLine());\n int m = Integer.valueOf(in.readLine());\n\n res.append(modPow(b, p, m));\n res.append('\\n');\n }\n\n out.write(res.toString().getBytes());\n\n out.close();\n in.close();\n }",
"public static void main(String[] args) {\r\n MyInputReader in = new MyInputReader(System.in);\r\n out = new PrintWriter(new BufferedOutputStream(System.out));\r\n\r\n String s = in.next();\r\n char c[] = s.toCharArray();\r\n \r\n int ans = 0, n = s.length();\r\n \r\n if(n%2 == 1) ans = -1;\r\n else {\r\n int l = 0, r = 0, u = 0, d = 0;\r\n for(int i=0; i<n; i++) {\r\n if(c[i] == 'L') l++;\r\n if(c[i] == 'R') r++;\r\n if(c[i] == 'U') u++;\r\n if(c[i] == 'D') d++;\r\n }\r\n int ud = Math.abs(u -d);\r\n int rl = Math.abs(r - l);\r\n if(ud % 2 == 1) {\r\n ans = 1 + (ud/2) + (rl/2);\r\n }\r\n else\r\n ans = (ud/2) + (rl/2);\r\n }\r\n \r\n out.println(ans);\r\n out.close();\r\n }",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tint n=Integer.parseInt(br.readLine()),arr[]=new int[n];\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i]=Integer.parseInt(st.nextToken());\n\t\t}\n//\t\tint a=Integer.parseInt(br.readLine()),b=Integer.parseInt(br.readLine()),r=0;\n\t\tst=new StringTokenizer(br.readLine());\n\t\tint a=Integer.parseInt(st.nextToken()),b=Integer.parseInt(st.nextToken());\n\t\tlong r=n;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i]-=a;\n\t\t\tr+=arr[i]%b==0?arr[i]/b:arr[i]/b+1;\n\t\t}\n//\t\tbw.write(\"\"+r);\n//\t\tbw.flush();\n\t\tSystem.out.print(r);\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint result = 0;\n\t\twhile(n/10 != 0) {\n\t\t\tresult += n%10;\n\t\t\tn /= 10;\n\t\t}\n\t\tresult += n;\n\t\tSystem.out.println(result);\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(args[1]));\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(args[0]))) {\n\t\t int n = Integer.parseInt(br.readLine());\n\t\t String line;\n\t\t for(int i=0;i<n;i++){\n\t\t \tHashSet<Integer> digits = new HashSet<>();\n\t\t \tint flag=0;\n\t\t \tint count=1;\n\t\t int input = Integer.parseInt(br.readLine());\n\t\t int original=input;\n\t\t while(input!=0){\n\t\t \t int source=input,originalSource=input;\n\t\t \t count++;\n\t\t \t while(source!=0){\n\t\t \t\t digits.add(source%10);\n\t\t \t\t source=source/10;\n\t\t \t }\n\t\t \t \n\t\t \t if(digits.size()==10){\n\t\t \t\t //System.out.println(\"Case #\"+(i+1)+\": \"+originalSource);\n\t\t \t\t bw.write(\"Case #\"+(i+1)+\": \"+originalSource+\"\\n\");\n\t\t \t\t flag=1;\n\t\t \t\t break;\n\t\t \t }\n\t\t \t input=original*count;\n\t\t }\n\t\t if(flag==0){\n\t\t \t //System.out.println(\"Case #\"+(i+1)+\": INSOMNIA\");\n\t\t \t bw.write(\"Case #\"+(i+1)+\": INSOMNIA\"+\"\\n\");\n\t\t }\n\t\t }\n\t\t \n\t\t}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t}\n\t\tbw.close();\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\r\n\t\tint n = Integer.parseInt(bf.readLine());\r\n\t\tList<Integer> l = new ArrayList<>();\r\n\t\t//System.out.println(bf.read());\r\n\t\t//String[] a = bf.readLine().split(\" \");\r\n\t\t\r\n\t\tfor(int i=0;i<n-1;i++) {\r\n\t\t\tint k = bf.read();\r\n\t\t\tl.add(k);\r\n\t\t\tbf.read();\r\n\t\t}\r\n\t\tl.add(bf.read());\r\n\t\tbf.readLine();\r\n\t\tint m = Integer.parseInt(bf.readLine());\r\n\t\t//String[] ar = bf.readLine().split(\" \");\r\n\t\tfor(int i=0;i<m;i++) {\r\n\t\t\tif(l.contains(bf.read())) bw.write(\"1\\n\");\r\n\t\t\telse bw.write(\"0\"+\"\\n\");\r\n\t\t\tbf.read();\r\n\t\t}\r\n\t\t\r\n\t\tbw.flush();\r\n\t\tbw.close();\r\n\t}",
"public static void main(String[] args) throws IOException\n {\n \n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out));\n \n String output = \"\"; //Write all output to this string\n\n //Code here\n int numLevels = Integer.parseInt(f.readLine());\n int[] nums = new int[numLevels];\n String line = f.readLine();\n StringTokenizer st = new StringTokenizer(line);\n int numLevelsX = Integer.parseInt(st.nextToken());\n for(int i = 0; i < numLevelsX; i++)\n {\n int n = Integer.parseInt(st.nextToken());\n nums[n-1]++;\n }\n line = f.readLine();\n st = new StringTokenizer(line);\n int numLevelsY = Integer.parseInt(st.nextToken());\n for(int i = 0; i < numLevelsY; i++)\n {\n int n = Integer.parseInt(st.nextToken());\n nums[n-1]++;\n }\n boolean isBeatable = true;\n for(int i = 0; i < numLevels; i++)\n {\n if(nums[i]==0)\n isBeatable = false;\n }\n output = isBeatable?\"I become the guy.\":\"Oh, my keyboard!\";\n \n \n //Code here\n\n //out.println(output);\n \n writer.println(output);\n writer.close();\n System.exit(0);\n \n }",
"public static void main(String[] args) throws IOException {\n\t\tInputStream fileInput = System.in;\n\t\tReader inputReader = new InputStreamReader(fileInput);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputReader);\n\n//\t\tOutputStream outputStream = new FileOutputStream(\"text-example-test.txt\");\n\t\tOutputStream outputStream = System.out;\n\t\tWriter writer = new OutputStreamWriter(outputStream);\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(writer);\n\n\t\tString row = bufferedReader.readLine();\n\n\t\twhile (row != null && !row.isEmpty()) {\n\t\t\tbufferedWriter.write(row);\n\t\t\tbufferedWriter.newLine();\n\t\t\tbufferedWriter.flush();\n\t\t\trow = bufferedReader.readLine();\n\t\t}\n\n\t\tbufferedReader.close();\n\t\tbufferedWriter.close();\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tint line=Integer.parseInt(br.readLine());\r\n\t\t\r\n\t\tint setno=1;\r\n\t\twhile(line-->0)\r\n\t\t{\r\n\t\t\tString[] data=br.readLine().split(\" \");\r\n\t\t\tint n=Integer.parseInt(data[0]);\r\n\t\t\tString ss=data[1];\r\n\t\t\t\r\n\t\t\tString newss=\"\";\r\n\t\t\tfor(int i=0;i<ss.length();i++)\r\n\t\t\t\tif(i+1!=n) newss+=ss.charAt(i);\r\n\t\t\t\r\n\t\t\tSystem.out.println(setno+\" \"+newss);\r\n\t\t\tsetno++;\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\t\t\n\t\tbufferedWriter.write(\"Hello\");\n\n\t}",
"public static void main(String[] arg) {\n\t\tBufferedReader br = new BufferedReader(\r\n\t\t new FileReader(\"input.in\"));\r\n\r\n\t\t// PrintWriter class prints formatted representations\r\n\t\t// of objects to a text-output stream.\r\n\t\tPrintWriter pw = new PrintWriter(new\r\n\t\t BufferedWriter(new FileWriter(\"output.in\")));\r\n\r\n\t\t// Your code goes Here\r\n\r\n\t\tpw.flush();\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString x = sc.nextLine();\r\n\r\n\t\tSystem.out.println(\"hello world \" + x);\r\n\t}",
"public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n String a = f.readLine();\n String b = f.readLine();\n out.println(equal(a, b) ? \"YES\" : \"NO\");\n f.close();\n out.close();\n }",
"public static void main(String[] args) throws IOException {\n BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int q = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n for (int qItr = 0; qItr < q; qItr++) {\n String s = scanner.nextLine();\n\n int result = sherlockAndAnagrams(s);\n\n bufferedWriter.write(String.valueOf(result));\n bufferedWriter.newLine();\n }\n\n bufferedWriter.close();\n\n scanner.close();\n }",
"public static void main(String[] args) throws IOException {\n\n Writer writer = new FileWriter(\"/home/levon/number1.txt\");\n\n\n for (int i = 93000000; i <= 93999999; i++) {\n writer.write(\"0\"+i+'\\n');\n }\n writer.close();\n\n FileReader fileReader =new FileReader(\"/home/levon/number1.txt\");\n BufferedReader reader = new BufferedReader(fileReader);\n\n String s = reader.readLine();\n Writer writer1 = new BufferedWriter(new FileWriter(\"/home/levon/number2.txt\"));\n while (true)\n writer1.write(s + String.format(\"Hello %h\", \"Levon\"));\n }",
"public static void main(String[] args) {\n\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tbw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tString line=\"\";\n\t\ttry {\n\t\t\tline = br.readLine();\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\tint n = Integer.parseInt(line.substring(0, line.indexOf(' ')));\n\t\tint m = Integer.parseInt(line.substring(line.indexOf(' ')+1));\n\t\tint num[] = new int[m];\n\t\tfindSeq(n, 1, num, 0);\n\t\ttry {\n\t\t\tbw.flush();\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\ttry {\n\t\t\tbr.close();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private static void takeInput() throws IOException {\n\n System.out.println(\"Enter number 1\");\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n String number1=br.readLine();\n System.out.println(\"Enter number 2\");\n String number2=br.readLine();\n System.out.println(\"Operation\");\n String op=br.readLine();\n //WhiteHatHacker processes the input\n WhiteHatHacker hack=new WhiteHatHacker(number1,number2,op);\n hack.processInput();\n }",
"public static void main(String[] args) throws IOException {\n\n String s = scanner.nextLine();\n\n String t = scanner.nextLine();\n\n int k = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String result = appendAndDelete(s, t, k);\n System.out.println(result);\n\n// bufferedWriter.write(result);\n// bufferedWriter.newLine();\n//\n// bufferedWriter.close();\n\n scanner.close();\n }",
"public static void main (String [] args) throws IOException {\n BufferedReader f = new BufferedReader(new FileReader(\"test.in\"));\n // input file name goes above\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"test.out\")));\n // Use StringTokenizer vs. readLine/split -- lots faster\n StringTokenizer st = new StringTokenizer(f.readLine());\n\t\t\t\t\t\t // Get line, break into tokens\n int i1 = Integer.parseInt(st.nextToken()); // first integer\n int i2 = Integer.parseInt(st.nextToken()); // second integer\n out.println(i1+i2); // output result\n out.close(); // close the output file\n}",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input = br.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!input.equals(\"#\")) {\n\t\t\tint[] arr = new int[2];\n\t\t\tchar[] inputs = input.toCharArray();\n\t\t\tfor (int i = 0; i < inputs.length - 1; i++) {\n\t\t\t\tarr[inputs[i] - '0']++;\n\t\t\t}\n\t\t\t\n\t\t\tsb.append(input.substring(0, input.length() - 1));\n\t\t\tif (inputs[inputs.length - 1] == 'e') {\n\t\t\t\tif (arr[1] % 2 == 1) {\n\t\t\t\t\tsb.append(1);\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(0);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (arr[1] % 2 == 1) {\n\t\t\t\t\tsb.append(0);\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(System.lineSeparator());\n\t\t\tinput = br.readLine();\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}",
"public static void main(String[] args) throws IOException {\n String param1, param2, param3;\n BufferedReader r1 = new BufferedReader(new InputStreamReader(System.in));\n param1 = r1.readLine();\n param2 = r1.readLine();\n param3 = r1.readLine();\n FileOutputStream fileOutputStream = new FileOutputStream(param1);\n FileInputStream fileInputStream2 = new FileInputStream(param2);\n FileInputStream fileInputStream3 = new FileInputStream(param3);\n while (fileInputStream2.available() > 0){\n int data = fileInputStream2.read();\n fileOutputStream.write(data);\n }\n while (fileInputStream3.available() > 0){\n int data = fileInputStream3.read();\n fileOutputStream.write(data);\n }\n fileInputStream2.close();\n fileInputStream3.close();\n fileOutputStream.close();\n }",
"public static void main(String[] args) throws IOException\n {\n \n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out));\n \n String output = \"\"; //Write all output to this string\n\n //Code here\n String line = f.readLine();\n StringTokenizer st = new StringTokenizer(line);\n \n int n = Integer.parseInt(st.nextToken());\n int d = Integer.parseInt(st.nextToken());\n \n int[] songLengths = new int[n];\n \n line = f.readLine();\n st = new StringTokenizer(line);\n \n int lengthTotal = 0;\n \n for(int i = 0; i < n; i++)\n {\n int s = Integer.parseInt(st.nextToken());\n songLengths[i] = s;\n lengthTotal += s;\n }\n \n int songTotal = lengthTotal + ((n-1)*10);\n \n if(songTotal <= d)\n {\n int additionalJokes = (d-songTotal)/5;\n int totalJokes = additionalJokes + (n-1)*2;\n writer.println(totalJokes);\n }\n else\n {\n writer.println(-1);\n }\n \n \n \n \n \n \n //Code here\n\n //out.println(output);\n \n //writer.println(output);\n writer.close();\n System.exit(0);\n \n }",
"public static void main(String[] args) throws IOException {\nFileInputStream fin=new FileInputStream(\"C:\\\\\\\\Users\\\\\\\\Dell\\\\\\\\Desktop\\\\\\\\input.txt\");\nFileOutputStream fout=new FileOutputStream(\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Dell\\\\\\\\\\\\\\\\Desktop\\\\\\\\\\\\\\\\output.txt\");\nint c=0;\nwhile((c=fin.read())!=-1)\n{\n\tfout.write(c);\n}\nSystem.out.println(\"written completed\");\n\t}",
"public static void main(int seed) throws IOException\r\n {\r\n FileWriter writ = new FileWriter(\"output_\" + seed + \".txt\");\r\n String output = getBinaryDigit(512, seed);\r\n writ.write(output);\r\n writ.close();\r\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor (int i = 0; i < t; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tbw.write(solution(a, b) + \"\\n\");\n\t\t}\n\t\tbw.flush();\n\t\tbw.close();\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader in =new BufferedReader(new FileReader(input));\r\n\tPrintWriter out = new PrintWriter(new FileWriter(output));\r\n\t\t\r\n\t\tint t = Integer.parseInt(in.readLine());\r\n\t\t\r\n\t\tfor(int i=1; i<=t; i++){\r\n\t\t\tout.print(\"Case #\"+i+\": \");\r\n\t\t\tint n = Integer.parseInt(in.readLine());\r\n\t\t\toneTest(n, in, out);\r\n\t\t\tout.println();\r\n\t\t}\r\n\t\tout.flush();\r\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tsolve();\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nStringBuilder sb=new StringBuilder();\nwhile(true){\n\tint K=Integer.parseInt(br.readLine());\n\tif(K==-1)break;\n\tsb.append(calculate[K]+\"\\n\");\n}\n\tSystem.out.println(sb);\n\t}",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\r\n System.out.print(BinaryReversalMethod(s.nextLine()));\r\n s.close();\r\n }",
"public static void main(String [] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pr = new PrintWriter(new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(System.out)));\n\t\tString ln;\n\t\tint n,q,a,b,l,r;\n\t\tint le [],der[];\n\t\twhile((ln=br.readLine())!=null) {\n\t\t\tif(ln.charAt(0)=='0') break;;\n\t\t\tString res []= ln.split(\" \");\n\t\t\tn = Integer.parseInt(res[0]);\n\t\t\tq = Integer.parseInt(res[1]);\n\t\t\tle = new int[n+2];\n\t\t\tder = new int [n+2];\n\t\t\tfor(int i=0;i<=n;i++) {\n\t\t\t\tle[i+1]=i;\n\t\t\t\tder[i]=i+1;\n\t\t\t}\n\t\t\tder[n]=-1;\n\t\t\tle[1] =-1;\n\n\t\t\twhile(q-->0) {\n\t\t\t\tString nums []= br.readLine().split(\" \");\n\t\t\t\ta = Integer.parseInt(nums[0]); \n\t\t\t\tb = Integer.parseInt(nums[1]);\n\t\t\t\tl = le[a];\n\t\t\t\tr = der[b];\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\n\t\t\t\tif (l ==-1)\n\t\t\t\t\tsb.append(\"*\");\n\t\t\t\telse {\n\t\t\t\t\tsb.append(l);\n\t\t\t\t\tder[l]=r;\n\t\t\t\t}\n\t\t\t\tsb.append(\" \");\n\t\t\t\tif (r ==-1) {\n\t\t\t\t\tsb.append(\"*\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsb.append(r);\n\t\t\t\t\tle[r]=l;\n\t\t\t\t}\n\t\t\t\tpr.println(sb);\n\t\t\t}\n\t\t\tpr.println(\"-\");\n\t\t}\n\t\tpr.close();\n\t}",
"public static void main(String[] args) throws IOException\n {\n \n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out));\n \n String output = \"\"; //Write all output to this string\n\n //Code here\n int numPeople = Integer.parseInt(f.readLine());\n \n StringTokenizer st = new StringTokenizer(f.readLine());\n \n int num25s = 0;\n int num50s = 0;\n \n boolean failed = false;\n \n for(int i = 0; i < numPeople; i++)\n {\n int num = Integer.parseInt(st.nextToken());\n if(num==25)\n {\n num25s++;\n }\n else if(num==50)\n {\n num25s--;\n num50s++;\n }\n else if(num==100)\n {\n if(num50s>0)\n {\n num50s--;\n num25s--;\n }\n else\n {\n num25s -= 3;\n }\n }\n if(isBad(num25s,num50s))\n failed = true;\n }\n \n output = failed?\"NO\":\"YES\";\n //Code here\n\n //out.println(output);\n \n writer.println(output);\n writer.close();\n System.exit(0);\n \n }",
"public static void main(String[] args) throws IOException {\n\n int t = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n for (int tItr = 0; tItr < t; tItr++) {\n int n = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n int[] arr = new int[n];\n\n String[] arrItems = scanner.nextLine().split(\" \");\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n for (int i = 0; i < n; i++) {\n int arrItem = Integer.parseInt(arrItems[i]);\n arr[i] = arrItem;\n }\n\n long result = countInversions(arr);\n cnt = 0;\n System.out.println(result);\n //bufferedWriter.write(String.valueOf(result));\n //bufferedWriter.newLine();\n }\n\n //bufferedWriter.close();\n\n scanner.close();\n }",
"public static void main(String[] args) throws IOException {\n\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\r\n System.out.println(\"Introduce un numero: \");\r\n int n = Integer.parseInt(br.readLine());\r\n\r\n System.out.println(fiborepe(n));\r\n System.out.println(fiboite(n));\r\n\r\n }",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tStringTokenizer st;\n\t\tint arr[][] = new int[2][10000001];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tst = new StringTokenizer(br.readLine());\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint tmp = Integer.parseInt(st.nextToken());\n\t\t\tif(tmp>=0)\n\t\t\t\tarr[0][tmp]++;\n\t\t\telse\n\t\t\t\tarr[1][Math.abs(tmp)]++;\t\t\n\t\t}\n\t\tint m = Integer.parseInt(br.readLine());\n\t\tst = new StringTokenizer(br.readLine());\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tint tmp = Integer.parseInt(st.nextToken());\n\t\t\tif(tmp>=0) {\n\t\t\t\tbw.write(String.valueOf(arr[0][tmp])+\" \");\n\t\t\t}\n\t\t\telse if(tmp<0) {\n\t\t\t\tbw.write(String.valueOf(arr[1][Math.abs(tmp)])+\" \");\n\t\t\t}\n\t\t}\n\t\tbw.close();\n\t}",
"public static void main(String[] args) throws IOException {\n\t \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t \tint sum = 0;\n\t\tfor (int i = Integer.parseInt(br.readLine()); i > 0; i--) {\n\t\t\tsum += Integer.parseInt(br.readLine());\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}",
"public static void main(String[] args) throws IOException {\n\n int n = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n long[] arr = new long[n];\n\n String[] arrItems = scanner.nextLine().split(\" \");\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n for (int i = 0; i < n; i++) {\n long arrItem = Long.parseLong(arrItems[i]);\n arr[i] = arrItem;\n }\n\n long[] res = riddle(arr);\n System.out.println(res);\n for (int i = 0; i < res.length; i++) {\n //bufferedWriter.write(String.valueOf(res[i]));\n\n System.out.print(res[i]+\" \");\n }\n\n //bufferedWriter.newLine();\n //bufferedWriter.close();\n\n scanner.close();\n }",
"public static void main (String [] args){\n Scanner kb = new Scanner(in);\r\n int i = 0;\r\n while (i < 2){\r\n out.println(\"Enter an integer:\");\r\n int n = kb.nextInt();\r\n writeVertical(n);\r\n i++;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input = scanner.nextInt();\n\t\tSystem.out.println(\"\"+(input%2));\n\t\tscanner.close();\n\t}",
"public static void main(String []args) throws IOException {\n\tFastScanner in = new FastScanner(System.in);\n\tPrintWriter out = \n\t\tnew PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false); \n\tsolve(in, out);\n\tin.close();\n\tout.close();\n }",
"public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tsolve(in, out);\n\t\tout.close();\n\t\tin.close();\t\n\t}",
"String intWrite();",
"public static void main(String[] args) {\n\n\t\tInputStreamReader rd= new InputStreamReader(System.in);\n\t\ttry {\n\t\t\tSystem.out.println(\"enter a number\");\n\t\t\tint value=rd.read();\n\t\t\tSystem.out.println(\"you entered:-\"+(char)value);\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}",
"public static void main(String[] args) throws IOException {\n\t\tString line = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\t\t\n\t\tFiles.write(Paths.get(\"outputh.txt\"), getOutput(line).getBytes(), StandardOpenOption.CREATE);\n\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));\n\n int n = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n int[] h = new int[n];\n\n String[] hItems = scanner.nextLine().split(\" \");\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n for (int i = 0; i < n; i++) {\n int hItem = Integer.parseInt(hItems[i]);\n h[i] = hItem;\n }\n\n long result = largestRectangle(h);\n\n bufferedWriter.write(String.valueOf(result));\n bufferedWriter.newLine();\n\n bufferedWriter.close();\n\n scanner.close();\n }",
"public static void main(String[] args) {\n\t\twriteNums(12);\r\n\t\tSystem.out.println();\r\n\r\n\t\twriteNums(6);\r\n\t\tSystem.out.println();\r\n\r\n\t\twriteNums(2);\r\n\t\tSystem.out.println();\r\n\r\n\t\twriteNums(0);\r\n\t\tSystem.out.println();\r\n\r\n\t}",
"static void DanrleiMethod() {\n\n int input1, input2, multiply;\n\n try {\n BufferedReader myKB = new BufferedReader(new InputStreamReader(System.in));\n\n System.out.println(\"Please enter a number\");\n input1 = Integer.parseInt(myKB.readLine());\n\n System.out.println(\"Please enter another number\");\n input2 = Integer.parseInt(myKB.readLine());\n multiply = input1 * input2;\n\n System.out.println(input1 + \" multiplied by \" + input2 + \" is \" + multiply);\n\n } catch (Exception e) {\n System.out.println(\"Invalid input, please enter only numbers\");\n\n }\n\n }",
"String consoleInput();",
"public static void main(String[] args) throws IOException {\n\n int n = Integer.parseInt(scanner.nextLine());\n // scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String s = scanner.nextLine();\n\n long result = substrCount(n, s);\nSystem.out.println(result);\n // bufferedWriter.write(String.valueOf(result));\n // bufferedWriter.newLine();\n\n // bufferedWriter.close();\n\n scanner.close();\n }",
"public void fback() throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tSystem.out.println(\"Enter any number for finding even/odd : \");\n\t\tString S=br.readLine();\n\t\tint i=Integer.parseInt(S);\n\t\t\n\t\tif(i%2==0)\n\t\t{\n\t\t\tSystem.out.println(\"Even number\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Odd Number\");\n\t\t}\n\t}",
"public void whatGame() throws IOException{\n try{\n inFile = new Scanner(new File(\"output.txt\"));\n } catch (InputMismatchException e) {\n System.err.printf(\"ERROR: Cannot open %s\\n\", \"output.txt\");\n System.exit(1);\n }\n \n gameNumber = inFile.nextInt();\n System.out.println(gameNumber);\n inFile.close();\n \n try {\n outFile = new PrintWriter(\"output.txt\");\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n outFile.print(gameNumber+1);\n outFile.close();\n \n }",
"public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n int input = 1;\n String output = \"\";\n\n\n do {\n input = scanner.nextInt();\n if (input % 2 == 0 && input != 0) {\n output = output + \"even\\n\";\n }\n if (input % 2 != 0 && input != 0) {\n output = output + \"odd\\n\";\n }\n } while (input != 0);\n System.out.println(output);\n }",
"public static void main(String args[]){\n \r\n BufferedReader br =new BufferedReader(new InputStreamReader(System.in));\r\n System.out.print(\"Enter Roman Number : \" );\r\n \r\n String roman = null;\r\n try\r\n {\r\n roman = br.readLine();\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(e.getMessage());\r\n }\r\n romanToDecimal(roman);\r\n }",
"public static void main(String[] args) {\n Scanner scan =new Scanner(System.in);\n\n System.out.println(\"What's the path to the file?\");\n String path = scan.next();\n System.out.println(\"What text should i put there?\");\n String text = scan.next();\n System.out.println(\"How many lines of it?\");\n int lines = scan.nextInt();\n //while loop for asking number lines>0\n\n writeMoreLinesIntoFile(path, text, lines);\n }",
"public int readInt(String prompt);",
"public static void main(String[] args) throws IOException {\r\n\r\n\r\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tBufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));\r\n\t\tString linea = in.readLine();\r\n\r\n\t\twhile (!linea.equals(\"0\")) {\t\t\t\r\n\t\t\t\r\n\t\t\tStringTokenizer stk = new StringTokenizer(linea);\r\n\t\t\t\r\n\t\t\tlong[] entrada = new long[stk.countTokens() -1];\r\n\t\t\tlong menor = Integer.MAX_VALUE;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < entrada.length; i++) {\r\n\t\t\t\tentrada[i] = Integer.parseInt(stk.nextToken());\r\n\t\t\t\tmenor = Long.min(menor, entrada[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < entrada.length; i++) {\r\n\t\t\t\tentrada[i] -= menor;\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tout.write(\"Menor: \"+menor+\"\\n\");\r\n//\t\t\tout.write(\"Arreglo de Diferencias: \"+Arrays.toString(entrada)+\"\\n\");\r\n\t\t\t\r\n\t\t\tlong MCD = 0;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < entrada.length; i++) {\r\n\t\t\t\tMCD = GCD(MCD, entrada[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tout.write(MCD+\"\\n\");\r\n\t\t\t\r\n\t\t\tlinea = in.readLine();\t\r\n\t\t}\r\n\t\tin.close();\r\n\t\tout.close();\t\r\n\t}",
"public static void main(String argv[]) throws NumberFormatException, IOException {\r\n IntConsumer printNumber = new IntConsumer();\r\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n String line = null;\r\n while ((line = in.readLine()) != null) {\r\n int number = Integer.parseInt(line);\r\n ZeroEvenOdd thread012 = new ZeroEvenOdd(number);\r\n Thread t0 = new Thread() {\r\n public void run(){\r\n try {\r\n thread012.zero(printNumber);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n };\r\n Thread t1 = new Thread() {\r\n public void run(){\r\n try {\r\n thread012.odd(printNumber);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n };\r\n Thread t2 = new Thread() {\r\n public void run(){\r\n try {\r\n thread012.even(printNumber);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n };\r\n t0.start();\r\n t1.start();\r\n t2.start();\r\n try {\r\n t0.join();\r\n t1.join();\r\n t2.join();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public static void main(String[] args) throws IOException{\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n\t //TODO Take First line using buffer reader and seperate element by space.\n\t String[] firstMultipleInput = bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\").split(\" \");\n\t \t \t \tArrayList<Integer> inpArray = new ArrayList<Integer>(firstMultipleInput.length);\n\t \t \t \tfor (int i = 0; i < firstMultipleInput.length; i++) {\n\t\t\t\t\tinpArray.add(Integer.valueOf(firstMultipleInput[i]).intValue());\n\t\t\t\t}\n\t \t System.out.println(DifferenceEvenOdd.solve( inpArray));\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer tok;\n\n\t\ttok = new StringTokenizer(reader.readLine());\n\t\t\n\t\tint a = Integer.parseInt(tok.nextToken());\n\t\tint b = Integer.parseInt(tok.nextToken());\n\t\tint steps = 0;\n\t\t\n\t\twhile(a%2 != 0 && b%2 != 0) {\n\t\t\tsteps++;\n\t\t\ta >>= 1;\n\t\t\tb >>= 1;\n\t\t}\n\t\t\n\t\tlong multiplier = 1;\n\t\tfor (int i = 1; i <= steps; i++) {\n\t\t\tmultiplier *= 4;\n\t\t}\n\t\t\n\t\tSystem.out.println((multiplier - 1) / 3);\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tInputStreamReader asker = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(asker);\n\t\t\n\t\t/**System.out.println(\"Would you prefer to type in data or give the \"\n\t\t\t\t+ \"name of a file holding the data? (Please use either data or file as your answer)\");\n\t\t\n\t\tString input = br.readLine();\n\t\tdouble [] number = new double [input.length()];\n\t\t\n\t\tif (input.equals(\"data\")){\n\t\t\tSystem.out.println(\"Please enter a series of numbers separated by a space: \");\n\t\t\tString numberEntry = br.readLine();\n\t\t\tnumberEntry = numberEntry.replaceAll(\"\\\\s\",\"\");\n\t\t\tfor(int i = 0; i<numberEntry.length(); i++)\n\t\t\t\tnumber[i]=Double.parseDouble(numberEntry.substring(i,i+1));\n\t\t\t}\n\t\t\n\t\tif (input.equals(\"file\")){\n\t\t\tSystem.out.println(\"Please enter the name of the file to be read from: \");\n\t\t\tString fileToBeReadFrom = br.readLine();\n\t\t\tFileReader fr = new FileReader(fileToBeReadFrom);\n\t\t\tSystem.out.println(\"Please enter the name of the new file you would like to write the analysis data to:\");\n\t\t\tString newFile = br.readLine();\n\t\t\tFileOutputStream fos = new FileOutputStream(newFile);\n\t\t\tPrintWriter pw = new PrintWriter(fos, true);\n\t\t}*/\n\t\t\t\n\t\tSystem.out.println(\"Would you prefer to type in data or give the \"\n\t\t+ \"name of a file holding the data? (Please use either data or file as your answer)\");\n\n\t\tString input = br.readLine();\n\t\tString numberEntry = \"\";\n\t\tdouble [] number = new double [input.length()];\n\n\t\tif (input.equals(\"data\")){\n\t\t\tSystem.out.println(\"Please enter a series of numbers separated by a space: \");\n\t\t\tnumberEntry = br.readLine();\n\t\t\tnumberEntry = numberEntry.replaceAll(\"\\\\s\",\"\");\n\t\t\tfor(int i = 0; i<numberEntry.length(); i++)\n\t\t\t\tnumber[i]=Double.parseDouble(numberEntry.substring(i,i+1));\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < number.length; i++){\n\t\t\tSystem.out.println(number[i]);\n\t\t}\n\t\tbr.close();\n\n\t}",
"public static void main(String[] args)throws IOException {\n System.out.print(\"Please enter 8 integer : \");\n BufferedReader br = \n \t\t new BufferedReader(new InputStreamReader(System.in));\n String num1 = br.readLine();\n String num2 = br.readLine();\n String num3 = br.readLine();\n String num4 = br.readLine();\n String num5 = br.readLine();\n String num6 = br.readLine();\n String num7 = br.readLine();\n String num8 = br.readLine();\n int number1 = Integer.parseInt(num1);\n int number2 = Integer.parseInt(num2);\n int number3 = Integer.parseInt(num3);\n int number4 = Integer.parseInt(num4);\n int number5 = Integer.parseInt(num5);\n int number6 = Integer.parseInt(num6);\n int number7 = Integer.parseInt(num7);\n int number8 = Integer.parseInt(num8);\n System.out.printf(\"%30d\", number1, number2, number3, number4);\n System.out.printf(\"%30d\",number5, number6, number7, number8);\n \n \n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hudai\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//System.setIn(new Scanner(new File(E:\\\\hudai\\\\filetry.txt)));\r\n\t\t\tSystem.setOut(new PrintStream(new FileOutputStream( new File(\"E:\\\\hudai\\\\filetry.txt\"))) );\r\n\t\t\tSystem.out.println(\"Happy to see \");\r\n\t\t\tSystem.out.println(\"মোঃ জুবায়ের ইবনে মোস্তফা\");\r\n\t\t\tSystem.out.println(\"Nothing\");\r\n\t\t\t\r\n\t\t\tSystem.setOut( new PrintStream(new FileOutputStream(FileDescriptor.out)));\r\n\t\t\tSystem.out.println(\"Happy to see \");\r\n\t\t\tSystem.out.println(\"Nothing\");\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static String readConsole(){\r\n\t\tString number = new String(\"\");\r\n\t\t\r\n\t\tSystem.out.println(\"Bitte geben Sie eine Zahl ein!\");\r\n\t\tBufferedReader bufferOne = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t\ttry {\r\n\t\t\tnumber = bufferOne.readLine();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn number;\r\n\t}",
"public static void main(String [] args){\n writeFile1(\"1234567890987654321\");\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner (System.in);\n String num;\n try {\n\t do {\n\t\t System.out.println(\"enter the decimal number\");\n\t\t num= sc.next();\n }while(!com.bridgeit.util.Util.isNumber(num));\n\t int num1=Integer.parseInt(num);\n\t System.out.println(com.bridgeit.util.Util.nibble(num1));\n \t}catch(Exception e)\n {\n\t \tSystem.out.println(e.getMessage()+\"error\");\n }\n sc.close();\n\t }",
"public static void main(String[] args) throws IOException {\n \r\nFile f=new File(\"d:\\\\addition.txt\");\r\nString s=\" addition\"+\"\\n\"+( 2+ 1);\r\n FileOutputStream fos=new FileOutputStream(f,true);\r\n byte[] b=s.getBytes();\r\n fos.write(13);\r\n fos.write(b);\r\n fos.flush();\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\r\n\t\tScanner sc = new Scanner(System.in); \r\n\t\t\r\n\t\tint number = sc.nextInt();\r\n\t\t\r\n\t\tif (number % 2 == 0 && number != 2) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"YES\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"NO\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsc.close();\r\n\r\n\t}",
"public static int Main()\n\t{\n\t\tint n;\n\t\tString a = new String(new char[81]); //?????a??\n//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:\n\t\tchar * p;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tSystem.in.read(); //?????\n\t\twhile (n-- != 0) //??n???\n\t\t{\n\t\t\ta = new Scanner(System.in).nextLine(); //??????\n\t\t\tp = a; //??????\n\t\t\tif (*p != '_' && (*p > 'z' || *p < 'a') && (*p>'Z' || *p < 'A')) //???????????\n\t\t\t{\n\t\t\t\tSystem.out.print('0');\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tcontinue; //????\n\t\t\t}\n\t\t\tfor (p = a.Substring(1); * p != '\\0';p++) //??'\\0'??\n\t\t\t{\n\t\t\t\tif (*p != '_' && (*p > 'z' || *p < 'a') && (*p>'9' || *p < '0') && (*p>'Z' || *p < 'A')) //??????????????\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print('0');\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t\tbreak; //????\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (*p == '\\0') //?????????\n\t\t\t{\n\t\t\t\tSystem.out.print('1');\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public static int Main()\n\t{\n\t\tString a = new String(new char[101]);\n\t\tString out = new String(new char[100]);\n//C++ TO JAVA CONVERTER TODO TASK: The memory management function 'memset' has no equivalent in Java:\n\t\tmemset(out,100,'/');\n\t\ta = ConsoleInput.readToWhiteSpace(true).charAt(0);\n\t\tint len = a.length();\n\t\tint temp;\n\t\tint mod;\n\t\ttemp = 10 * (a.charAt(0) - '0') + a.charAt(1) - '0';\n\t\tif (temp < 13 && len <= 2)\n\t\t{\n\t\t\tlen = 1;\n\t\t}\n\t\tfor (int i = 0; i < len - 1; i++)\n\t\t{\n\t\t\tout = tangible.StringFunctions.changeCharacter(out, i, temp / 13 + '0');\n\t\t\tmod = temp % 13;\n\t\t\ttemp = temp % 13 * 10 + (a.charAt(i + 2) - '0');\n\t\t}\n\t\tint flag = 0;\n\t\tif (len == 1)\n\t\t{\n\t\t\tSystem.out.print(0);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\tSystem.out.print(a);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor (int i = 0; i < len - 1; i++)\n\t\t\t{\n\t\t\t\tif (out.charAt(i) != '0')\n\t\t\t\t{\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\tif (flag != 0)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(out.charAt(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\tSystem.out.print(mod);\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n//\t\tBufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tint t = scanner.nextInt();\n\t\twhile(t-->0)\n\t\t{\n//\t\t\tString arr[] = br.readLine().split(\" \");\n\t\t\tint n = scanner.nextInt();\n\t\t\tint k = scanner.nextInt();\n//\t\t\tarr = br.readLine().split(\" \");\n\t\t\tlong a[] = new long[n];\n\t\t\tlong max = Long.MIN_VALUE;\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\ta[i] = scanner.nextLong();\n\t\t\t\t//System.out.print(a[i]+\" \");\n\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t\tfor(int i=n-1;i>=n-k;i--)\n//\t\t\t{\n//\t\t\t\ta[i] = scanner.nextLong();\n//\t\t\t\tmax = Math.max(max, a[i]);\n//\t\t\t}\n\t\t\tfor(int i=n-k-1;i>=0;i--)\n\t\t\t{\n\t\t\t\ta[i] = a[i] + a[i+k];\n\t\t\t\t//System.out.println(a[i]);\n//\t\t\t\tmax = Math.max(max, a[i]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tSystem.out.println(a[n-1]);\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tReader in = new InputStreamReader(System.in);\n\t\tint data = 0;\n\t\twhile((data=in.read()) != -1) {\n\t\t\tSystem.out.print((char)data);\n\t\t}\n\t\t//f가나다라마바사아자차가카\n\t}",
"public static void main(String[] args) throws IOException {\n// System.out.println(\"Enter Your Name : \");\r\n// String nm=br.readLine();\r\n// //int a=Integer.valueOf(br.readLine());\r\n// System.out.println(\"Welcome \"+nm);\r\n// \r\n\r\n \r\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader s = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = Integer.parseInt(s.readLine());\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(t > 0){\n\t\t t--;\n\t\t int n = Integer.parseInt(s.readLine());\n\t\t int arr[] = new int[n];\n\t\t String line = s.readLine();\n\t\t String str[] = line.trim().split(\"\\\\s+\");\n\t\t for(int i = 0; i < n; i++) {\n\t\t \tarr[i] = Integer.parseInt(str[i]);\n\t\t }\n\t\t // kadane algo\n\t\t sb.append(kadane(arr) + \"\\n\");\n\t\t}\n\t\tSystem.out.println(sb);\n\t}",
"public static int Main()\n\t\t{\n\t\t\tint n;\n\t\t\tint i;\n\t\t\tint wl;\n\t\t\tint len = 0;\n\t\t\tint line = 0;\n\t\t\tString w = new String(new char[64]);\n\t\t\tString tempVar = ConsoleInput.scanfRead();\n\t\t\tif (tempVar != null)\n\t\t\t{\n\t\t\t\tn = Integer.parseInt(tempVar);\n\t\t\t}\n\t\t\tfor (int i = 1; i <= n; i++)\n\t\t\t{\n\t\t\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\t\t\tif (tempVar2 != null)\n\t\t\t\t{\n\t\t\t\t\tw = tempVar2.charAt(0);\n\t\t\t\t}\n\t\t\t\twl = w.length();\n\t\t\t\tif (line == 0)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.printf(\"%s\",w);\n\t\t\t\t\tlen = wl;\n\t\t\t\t\tline++;\n\t\t\t\t}\n\t\t\t\telse if (len + wl + 1 <= 80)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.printf(\" %s\",w);\n\t\t\t\t\tlen += wl + 1;\n\t\t\t\t}\n\t\t\t\telse if (len + wl + 1 > 80)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.printf(\"\\n%s\",w);\n\t\t\t\t\tlen = wl;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"@Test\n public void testMain() {\n String simulatedUserInput = \"100AUD\" + System.getProperty(\"line.separator\")\n + \"1\" + System.getProperty(\"line.separator\");\n\n InputStream savedStandardInputStream = System.in;\n System.setIn(new ByteArrayInputStream(simulatedUserInput.getBytes()));\n\n mainFunction mainfunc = new mainFunction();\n\n try {\n mainfunc.start();\n } catch(Exception e) {\n System.out.println(\"Exception!\");\n }\n\n assertEquals(1,1);\n }",
"public static void main (String[] args) throws java.lang.Exception\r\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\tString s1=\"\",s2=\"\",s3,s4=\"\",s5=\"\";\r\n\t\ts3=br.readLine();\r\n\t\tint l1,l2,l3;\r\n\t\tl3=s3.length();\r\n\t\tint i;\r\n\t\tfor( i=0;i<=12;i++)\r\n\t\t{\r\n\t\t\tchar ch=s3.charAt(i);\r\n\t\t\tif(ch==' ')\r\n\t\t\tbreak;\r\n\t\t\telse\r\n\t\t\ts1=s1+ch;\r\n\t\t}\r\n\t\ts2=s3.substring(++i);\r\n\t int t=Integer.parseInt(br.readLine());\r\n\t \tSystem.out.println(s1+\" \"+s2);\r\n\t while(t!=0)\r\n\t {\r\n\t t--;\r\n\t s3=br.readLine();\r\n\t l2=s3.length();\r\n\t\t\r\n\t\tfor( i=0;i<l2;i++)\r\n\t\t{\r\n\t\t\tchar ch=s3.charAt(i);\r\n\t\t\tif(ch==' ')\r\n\t\t\tbreak;\r\n\t\t\telse\r\n\t\t\ts4=s4+ch;\r\n\t\t}\r\n\t\ts5=s3.substring(++i); \r\n\t\tif(s1.equals(s4))\r\n\t\t{\r\n\t\t s1=s5;\r\n\t\t \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t s2=s5;\r\n\t\t}\r\n\t\tSystem.out.println(s1+\" \"+s2);\r\n\t }\r\n\t}",
"private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }",
"public static void main(String[] args) {\n\t\tint i = 4;\n\t\tdouble d = 4.0;\n\t\tString s = \"HackerRank \";\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble d1 = in.nextDouble();\n\t\tString s1 = in.nextLine();\n\t\tin.close();\n\n\t\tSystem.out.println(i + n);\n\t\tSystem.out.println(d + d1);\n\t\tSystem.out.println(s + s1);\n\t}",
"public static void main(String[] args) throws IOException {\n\r\n int T = scanner.nextInt();\r\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\r\n\r\n for (int TItr = 0; TItr < T; TItr++) {\r\n String w = scanner.nextLine();\r\n\r\n System.out.println(biggerIsGreater(w));\r\n// bufferedWriter.write(result);\r\n// bufferedWriter.newLine();\r\n// 5\r\n// ab\r\n// bb\r\n// hefg\r\n// dhck\r\n// dkhc\r\n }\r\n\r\n\r\n scanner.close();\r\n }",
"public static String le() throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String texto = reader.readLine();\n return texto;\n }",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n\t\tint T = Integer.parseInt(br.readLine());\n\t\tint Tcnt = 1;\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (T-- > 0) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(), \" \");\n\n\t\t\tN = Integer.parseInt(st.nextToken());\n\t\t\tM = Integer.parseInt(st.nextToken());\n\t\t\tsnack = new int[N];\n\t\t\tpick = new int[2];\n\t\t\tst = new StringTokenizer(br.readLine(), \" \");\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tsnack[i] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tresult = -1;\n\t\t\tpicking(0, 0);\n\n\t\t\tsb.append(\"#\").append(Tcnt++).append(\" \").append(result + \"\\n\");\n\t\t}\n\t\t\n\n\t\tbw.write(sb.toString());\n\t\tbw.close();\n\t\tbr.close();\n\n\t}",
"public static void main(String[] args){\n\t\tBufferedReader indata = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString input=null;\r\n\t\ttry {\r\n\t\t\tinput=indata.readLine();\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tFile file = new File(\"d:/addfile.txt\"); \r\n try { \r\n file.createNewFile();\r\n } catch (IOException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n }\r\n \r\n byte writebyte[] = new byte[1024];\r\n writebyte=input.getBytes();\r\n try{\r\n \tFileOutputStream in = new FileOutputStream(file);\r\n \ttry{\r\n \t\tin.write(writebyte, 0, writebyte.length); \r\n in.close();\r\n \t} catch (IOException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n } \r\n } catch (FileNotFoundException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n }\r\n \r\n if(input.equals(\"print\")){\r\n \ttry{\r\n \t\tFileInputStream out = new FileInputStream(file); \r\n \t\tInputStreamReader outreader = new InputStreamReader(out);\r\n \t\tint ch = 0;\r\n \t\twhile((ch=outreader.read())!=-1){\r\n \t\t\tSystem.out.print((char) ch);\r\n \t\t}\r\n \t\toutreader.close();\r\n \t}catch (Exception e) { \r\n \t\t// TODO: handle exception \r\n \t} \r\n }\r\n\t}",
"public static int Main()\n\t{\n\t\tString s = new String(new char[256]);\n\t\tString z = new String(new char[256]);\n\t\tString r = new String(new char[256]);\n\t\tint i;\n\t\ts = new Scanner(System.in).nextLine();\n\t\tz = new Scanner(System.in).nextLine();\n\t\tr = new Scanner(System.in).nextLine();\n//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:\n\t\tchar * p = tangible.StringFunctions.strStr(s, z);\n\t\tif (p == null)\n\t\t{\n\t\t\tSystem.out.print(s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString q = s;\n\t\t\tfor (i = 0; i < (p - q); i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.print(r);\n\t\t\tp = p + (z.length());\n\t\t\twhile (*p != '\\0')\n\t\t\t{\n\t\t\t\tSystem.out.print(p);\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tPrintWriter fw = new PrintWriter(new File(\"C:/Users/odae/workspace/app/src/day0718IOEx5_sample.txt\"));\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tSystem.out.print(\"입력 :\");\n\t\tString str = \"\";\n\t\twhile(!str.equals(\"end\")) {\n\t\t\tstr = in.readLine();\n\t\t\t//fw.write(str);\n\t\t\tfw.println(str);\n\t\t}\n\t\tfw.close();\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tInput in = new Input(\"input.txt\", 2 * 1024);\r\n\t\tPrintWriter out = new PrintWriter(\"output.txt\");\r\n\r\n\t\tint n = in.nextInt();\r\n\t\t\r\n\t\tfVal = new int[n];\r\n\t\tfPos = new int[n];\r\n\t\t\r\n\t\tfor (int i = 0; i < n; ++i) {\r\n\t\t\tfVal[i] = in.nextInt();\r\n\t\t\tfPos[i] = i;\r\n\t\t}\r\n\t\t\r\n\t\tsVal = new int[n];\r\n\t\tsPos = new int[n];\r\n\r\n\t\tfor (int i = 0; i < n; ++i) {\r\n\t\t\tsVal[i] = in.nextInt();\r\n\t\t\tsPos[i] = i;\r\n\t\t}\r\n\t\t\r\n\t\tbuf = new int[n / 2 + 1];\r\n\t\ttmp = new int[n / 2 + 1];\r\n\t\t\r\n\t\tsortsVal(0, n - 1);\r\n\t\tsortfVal(0, n - 1);\r\n\t\t\r\n\t\tfor (int i = 0; i < n; ++i)\r\n\t\t\tif (fVal[i] != sVal[i]) {\r\n\t\t\t\tout.println(-1);\r\n\t\t\t\tout.close();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < n; ++i)\r\n\t\t\tfVal[i] = sPos[i];\r\n\t\t\t\r\n\t\tsortfPos(0, n - 1);\r\n\t\t\r\n\t\tanswer = 0;\r\n\t\t\r\n\t\tmerge(fVal, 0, n - 1);\r\n\t\t\t\r\n\t\tout.println(answer);\t\r\n\t\t\r\n\t\tout.close();\r\n\t}",
"public static void main (String[] args){\n\tScanner in = new Scanner(System.in);\n\t\n\tSystem.out.print(\"Enter the first number: \");\n\tint n1 = in.nextInt();\n\t\n\tSystem.out.print(\"Enter the second numer: \");\n\tint n2 = in.nextInt();\n\t\n\tint ans = n1 + n2;\n\tSystem.out.printf(\"%d + %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 - n2;\n\tSystem.out.printf(\"%d - %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 * n2;\n\tSystem.out.printf(\"%d * %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 / n2;\n\tSystem.out.printf(\"%d / %d = %d\\n\", n1, n2, ans);\n\t\n\tin.close();\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint n,temp,rem,rev=0;\r\n\t\tScanner r=new Scanner(System.in);\r\n\t\tn=r.nextInt();\r\n\t\ttemp=n;\r\n\t\tr.close();\r\n\t\t\r\n\t\twhile(n>0)\r\n\t\t{\r\n\t\t\trem=n%10;\r\n\t\t\trev=rev*10+rem;\r\n\t\t\tn=n/10;\r\n\t\t}\r\n\t\tSystem.out.print(\"rev of number \"+temp+\" is:\"+rev);\r\n\r\n\t}",
"public static int promptUserForInt(String prompt){\n Scanner scannerln = new Scanner(System.in);\n System.out.print(prompt);\n return scannerln.nextInt();\n }",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\ts.nextInt();\n\t\tint num=123;\n\t\tint reverseno=reverse(num);\n\t\tSystem.out.println(\"hello:\"+reverseno);\n\t}",
"public static void main(String[] args) // FileNotFoundException caught by this application\n {\n\n Scanner console = new Scanner(System.in);\n System.out.print(\"Input file: \");\n String inputFileName = console.next();\n System.out.print(\"Output file: \");\n String outputFileName = console.next();\n\n Scanner in = null;\n PrintWriter out =null;\n\n File inputFile = new File(inputFileName);\n try\n {\n in = new Scanner(inputFile);\n out = new PrintWriter(outputFileName);\n\n double total = 0;\n\n while (in.hasNextDouble())\n {\n double value = in.nextDouble();\n int x = in.nextInt();\n out.printf(\"%15.2f\\n\", value);\n total = total + value;\n }\n\n out.printf(\"Total: %8.2f\\n\", total);\n\n\n } catch (FileNotFoundException exception)\n {\n System.out.println(\"FileNotFoundException caught.\" + exception);\n exception.printStackTrace();\n }\n catch (InputMismatchException exception)\n {\n System.out.println(\"InputMismatchexception caught.\" + exception);\n }\n finally\n {\n\n in.close();\n out.close();\n }\n\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tint[] input = new int[N];\n\t\t\n\t\tfor(int i = 0; i<N;i++) {\n\t\t\tinput[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tArrays.sort(input);\n\t\tfor(int i = 0; i<N;i++) {\n\t\t\tsb.append(input[i] + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t\tbr.close();\n\t\t\n\t}",
"public void out(String input) {\t\t\r\n\t\tSystem.out.println(input);\r\n\t\tint count = 0;\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"A-large.in\")));\n\t\tPrintWriter out=new PrintWriter(\"output.out\");\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T = Integer.parseInt(br.readLine());\n\n\t\tint Tin=1;\n\t\t\n\t\twhile (T-- != 0) {\n\t\t\t\n\t\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\t\t\n\t\t\tS=new StringBuilder(st.nextToken());\n\t\t\tStringBuilder temp=new StringBuilder();\n\t\t\tfor(int i=0;i<S.length();i++){\n\t\t\t\ttemp.append(\"+\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tint K=Integer.parseInt(st.nextToken());\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<=S.length()-K;i++){\n\t\t\t\tif(S.charAt(i)=='-'){\n\t\t\t\t\treplaceK(i,K);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString temp2=S.toString();\n\t\t\t\n\t\t\tout.print(\"Case #\"+Tin+\": \");\n\t\t\t\n\t\t\tif(temp2.equals(temp.toString())){\n\t\t\t\t//System.out.println(cnt);\n\t\t\t\tout.print(cnt);\n\t\t\t}else{\n\t\t\t\t//System.out.println(\"Impossible\");\n\t\t\t\tout.print(\"IMPOSSIBLE\");\n\t\t\t}\n\t\t\tout.print(\"\\n\");\n\t\t\tTin++;\n\t\t}\n\t\tout.close();\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tFileInputStream filin = new FileInputStream(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016.txt\"));\n\t\tFileOutputStream filout = new FileOutputStream(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016_2.txt\"));\n\t\tint val;\n\t\twhile((val = filin.read()) != -1)\n\t\t{\n\t\t\tfilout.write(val);\n\t\t}\n\t\tfilin.close();\n\t\tfilout.close();\n\t\tSystem.out.println(\"Completed\");\n\t\t\n\t\t//Char\n\t\tFileReader filrd = new FileReader(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016.txt\"));\n\t\tFileWriter filwr = new FileWriter(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016_3.txt\"));\n\t\tint val1;\n\t\twhile((val1 = filrd.read()) != -1)\n\t\t{\n\t\t\tfilwr.write(val1);\n\t\t}\n\t\tfilrd.close();\n\t\tfilwr.close();\n\t\tSystem.out.println(\"Character Completed\");\n\t\t//Buffer stream\n\t\tBufferedReader buffrd = new BufferedReader(new FileReader(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016.txt\")));\n\t\tBufferedWriter buffwr = new BufferedWriter(new FileWriter(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016_4.txt\")));\n\t\tString val2;\n\t\twhile((val2 = buffrd.readLine()) != null)\n\t\t{\n\t\t\tbuffwr.write(val2);\n\t\t}\n\t\tbuffrd.close();\n\t\tbuffwr.close();\n\t\tSystem.out.println(\"Buffer Completed\");\n\t}",
"public static void main (String arg[]) throws FileNotFoundException {\n\t\t\n \tScanner fin = new Scanner(new FileReader(\"input.txt\"));\n \tPrintWriter writer = new PrintWriter(\"output.txt\");\n\t\t\n\t\twhile (true) {\n\t\t\t\n\t\t\tString input = fin.nextLine();\n\t\t\tif (input.compareTo(\"0\") == 0) break;\n\t\t\t\n\t\t\tboolean[] array = new boolean[input.length()];\n\t\t\tfor (int i = 1; i < input.length(); i++) {\n\t\t\t\tarray[i] = (input.substring(i, i+1).compareTo(\"1\") == 0) ? true : false;\n\t\t\t}\n\t\t\t\n\t\t\tQueue<Integer> answer = new LinkedList<Integer>();\n\t\t\t\n\t\t\tfor (int i = 1; i < input.length(); i++) {\n\t\t\t\t\n\t\t\t\tif (array[i] == false) continue;\n\t\t\t\t\n\t\t\t\tanswer.add(i);\n\t\t\t\t\n\t\t\t\tfor (int j = i; j < input.length(); j += i) {\n\t\t\t\t\tarray[j] = !array[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\twhile (answer.peek() != null) {\n\t\t\t\t\n\t\t\t\tint out = answer.poll();\n\t\t\t\tSystem.out.println(out);\n\t\t\t\twriter.print(out);\n\t\t\t\tif (answer.peek() != null) writer.print(\" \");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\twriter.println();\n\t\t\t\n\t\t}\n\t\t\n\t\tfin.close();\n\t\twriter.close();\n\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n\t\ttry {\n\t\t\tFileReader inReader=new FileReader(\"C:\\\\Users\\\\LavanyaKantamani\\\\Desktop\\\\Reader.txt\");\n\t\t\tFileWriter outWriter=new FileWriter(\"C:\\\\Users\\\\LavanyaKantamani\\\\Desktop\\\\HelloWorldWriter.txt\");\n\t\t\tint d;\n\t\t\twhile((d=inReader.read())!=-1) {\n\t\t\t\toutWriter.write(d);\n\t\t\t}\n\t\t}catch(FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint C, F;\n\t\tF = in.nextInt();\n\t\tC = (int)((F-32)*5/9);\n\t\tSystem.out.println(C);\n\t\t in.close();\n\t}",
"public void readAndWrite() {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n List<String> passedFiles = new ArrayList<>();\n copy(new File(s), true, passedFiles);\n\n }",
"public static void main(String[] args) throws FileNotFoundException, IOException {\n\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(fileName))) {\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(outFileName));\r\n\t\t\tString line;\r\n\r\n\t\t\tline = br.readLine();\r\n\t\t\tint testCases = Integer.parseInt(line);\r\n\t\t\tint caseCounter = 1;\r\n\t\t\t\r\n\t\t\t// ---------\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tString[] tmp = line.split(\" \");\r\n\t\t\t\tint buildings = Integer.parseInt(tmp[0]);\r\n\t\t\t\tint ways = Integer.parseInt(tmp[1]);\r\n\t\t\t\tint maxWays = 0;\r\n\t\t\t\tfor(int i = buildings - 2; i > 0; i--) maxWays += i;\r\n\t\t\t\tmaxWays++;\r\n\t\t\t\tif(ways > maxWays){\r\n\t\t\t\t\tSystem.out.println(\"Case #\" + caseCounter + \": IMPOSSIBLE\");\r\n\t\t\t\t\tbw.write(\"Case #\" + caseCounter + \": IMPOSSIBLE\\n\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tString result = solve(buildings, ways);\r\n\t\t\t\t\tSystem.out.println(\"Case #\" + caseCounter + \": \" + result);\r\n\t\t\t\t\tbw.write(\"Case #\" + caseCounter + \": \" + result + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t//int input = Integer.parseInt(line);\r\n\t\t\t\t\r\n\t\t\t\tcaseCounter++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// ---------\r\n\t\t\t\r\n\t\t\tbw.close();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\r\n \t try{\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n String input=br.readLine();\r\n int N=Integer.parseInt(input);\r\n input=br.readLine();\r\n String[] values=input.split(\" \");\r\n int ints[]=genArray(values);\r\n printArray(ints);\r\n }\r\n catch(Exception e){\r\n \r\n }\r\n }",
"public static void main(String[] args) throws IOException {\n\t\tString workingDir = System.getProperty(\"user.dir\");\n\t\t\n\t\tBufferedReader bufferReader = new BufferedReader(new FileReader(workingDir+\"/data/MarkList.txt\"));\n\t\t\n\t\t// System.out.println(\"Enter the first number:\");\n\t\t String firstToken=bufferReader.readLine();\n\t\t// System.out.println(\"Enter the second number:\");\n\t\t String secondToken=bufferReader.readLine();\n\t\t \n\t\t bufferReader.close();\n\t\t \n\t\t //Cast the string into int using Integer wrapper class.\n\t\t int firstNumber =Integer.valueOf(firstToken);\n\t\t int secondNumber = Integer.valueOf(secondToken);\n\t\t \n\t\t \n\t\t\n\t\t\n\t\t\n\t\t// Process\n\t\tint sum = firstNumber + secondNumber;\n\n\t\t// Output by the helper class System.\n\n\t\tSystem.out.println(\"The sum of \" + firstNumber + \" and \" + secondNumber + \" is :\" + sum);\n\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tList<Integer> list = new ArrayList<>();\n\t\tint size = 0;\n\t\tint i = 0;\n\t\twhile (size < 1000000) {\n\t\t\tclear();\n\t\t\ti++;\n\t\t\tint candidate = i;\n\t\t\tboolean possible = true;\n\t\t\twhile (candidate != 0) {\n\t\t\t\tint num = candidate % 10;\n\t\t\t\tif (arr[num] != 0) {\n\t\t\t\t\tpossible = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarr[num]++;\n\t\t\t\tcandidate /= 10;\n\t\t\t}\n\t\t\tif (possible) {\n\t\t\t\tlist.add(i);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString input = br.readLine();\n\t\twhile (!input.equals(\"0\")) {\n\t\t\tint index = Integer.parseInt(input);\n\t\t\tsb.append(list.get(index-1)).append(System.lineSeparator());\n\t\t\tinput = br.readLine();\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}"
] | [
"0.644127",
"0.6437877",
"0.62973493",
"0.60717887",
"0.59765375",
"0.5963494",
"0.59364784",
"0.5929248",
"0.58900064",
"0.58420664",
"0.58124703",
"0.57847804",
"0.57502466",
"0.5748725",
"0.57397145",
"0.5684764",
"0.56734866",
"0.56648433",
"0.5656102",
"0.5651956",
"0.5642285",
"0.56220865",
"0.5596706",
"0.55754113",
"0.5563877",
"0.55571055",
"0.5532105",
"0.55279875",
"0.5527807",
"0.5526879",
"0.55267173",
"0.5525118",
"0.55215997",
"0.55034125",
"0.5502875",
"0.5496181",
"0.5483615",
"0.5468832",
"0.5467998",
"0.54654425",
"0.54499674",
"0.5447175",
"0.5432135",
"0.5423389",
"0.5415024",
"0.54047537",
"0.5391887",
"0.5391674",
"0.5381082",
"0.5371932",
"0.53604287",
"0.53317124",
"0.53281486",
"0.5310175",
"0.53043944",
"0.52957165",
"0.52896875",
"0.5288446",
"0.5272937",
"0.5257808",
"0.52560675",
"0.5254671",
"0.5247197",
"0.52446616",
"0.52385956",
"0.52268445",
"0.5223932",
"0.5217001",
"0.520923",
"0.5202059",
"0.51981694",
"0.5190722",
"0.5188516",
"0.5188078",
"0.5176538",
"0.51748216",
"0.5164857",
"0.51638955",
"0.51592225",
"0.5157081",
"0.51570064",
"0.51501864",
"0.51489836",
"0.5146623",
"0.51463485",
"0.5142092",
"0.51396155",
"0.5135279",
"0.51327217",
"0.5124849",
"0.51245135",
"0.5123122",
"0.5110227",
"0.5093796",
"0.50928104",
"0.50835174",
"0.508304",
"0.50824076",
"0.5080487",
"0.5078741",
"0.5078307"
] | 0.0 | -1 |
Private constructor save pool to database if database is empty save total score to database if database is empty save max score to database if database is empty | private DatabaseCustomAccess(Context context) {
helper = new SpokaneValleyDatabaseHelper(context);
saveInitialPoolLocation(); // save initial pools into database
saveInitialTotalScore(); // create total score in database
saveInitialGameLocation(); // create game location for GPS checking
LoadingDatabaseTotalScore();
LoadingDatabaseScores();
LoadingDatabaseGameLocation();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"private void LoadingDatabaseTotalScore() {\n\n\t\tCursor cursor = helper.getDataAll(TotalScoretableName);\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tString totalPoint = cursor.getString(POINT_TOTAL_SCORE_COLUMN);\n\t\t\t\n\t\t\ttotalScore = Integer.parseInt(totalPoint);\t\t\t\t\t// store total score from database to backup value\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public ScoreManager(Context context){\n db = new HighscoreDB(context);\n }",
"public SimpleDB() \n\t{\n\t\tcomparedToClass= new int[][] {{0,1,3,5,9,11,13,16,19,20,23},{0,0,0,0,0,0,0,0,0,0,0}};\n\t\tmaxGrade = new int [24];\n\t\tfor (int i = 0; i< maxGrade.length; i++) \n\t\t{\n\t\t\tmaxGrade[i] = 0;\n\t\t}\n\t\tpassRate.put(0,new Integer[]{125,290});\n\t\tpassRate.put(1,new Integer[] {436,580});\n\t\tpassRate.put(3,new Integer[] {713,580});\n\t\tpassRate.put(5,new Integer[] {570,500});\n\t\tpassRate.put(9,new Integer[] {480,580});\n\t\tpassRate.put(11,new Integer[] {1050,580});\n\t\tpassRate.put(13,new Integer[] {310,580});\n\t\tpassRate.put(16,new Integer[] {235,290});\n\t\tpassRate.put(19,new Integer[] {250,580});\n\t\tpassRate.put(20,new Integer[] {200,290});\n\t\tpassRate.put(23,new Integer[] {1000,1140});\n\t}",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"public SRWDatabasePool() {\n }",
"Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public void createCountModel (){\n System.out.println(gameNumber);\n for (int i = 0; i<gameNumber; i++){\n String winner = \"w\";\n int numOfstepsCompleted= 0;\n Connection conn = null;\n Statement stmt = null;\n try{\n //STEP 2: Register JDBC driver\n //System.out.println(\"Registered JDBC driver...\");\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //STEP 23: Open a connection\n //System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);//acceses the database specified by the url through entering in the username and password\n //System.out.println(\"Creating statement...\");\n stmt = conn.createStatement(); //access the database server and manipulate data in database\n String sql = \"SELECT * FROM EXPERIENCE_\"+(i);\n ResultSet rs1 = stmt.executeQuery(sql);\n // System.out.println(\"sweeeeeeeeeet....\");\n while (rs1.next()){//gets the winner and total number of stepsCompleted\n System.out.println(\".\");\n if (rs1.getString(3)==null||rs1.getInt(3)==-1){\n System.out.println(\"SWAGGGG!!\");\n winner = rs1.getString(2);\n numOfstepsCompleted = rs1.getInt(1);\n }\n }\n rs1.close();\n ResultSet rs = stmt.executeQuery(sql);\n while (rs.next()){//develops list of occurrences of specific moves\n //System.out.print(\"\\n\" + rs.getInt(1)+\"\\t\");\n //System.out.print(rs.getString(2)+\": \"+rs.getInt(3)+\" \" +rs.getInt(4));\n \n\n if (rs.getString(2).equals(winner)){ //records popularity of small squares for winner depending on the stage of game (first 3rd, second 3rd, or last third)\n System.out.println(\"IT'S ME!!!\\n\\n\\n\\n\\\\n\\n\\n\\n\");\n if (rs.getInt(1)<(int)numOfstepsCompleted/3)\n popSsquare.get(0).set(rs.getInt(4), popSsquare.get(0).get(rs.getInt(4))+1);\n if((rs.getInt(1)<(int)2*numOfstepsCompleted/3)&&(rs.getInt(1)>numOfstepsCompleted/3))\n popSsquare.get(1).set(rs.getInt(4), popSsquare.get(1).get(rs.getInt(4))+1);\n if(rs.getInt(1)>(int)2*numOfstepsCompleted/3)\n popSsquare.get(2).set(rs.getInt(4), popSsquare.get(2).get(rs.getInt(4))+1);\n }\n }\n rs.close();\n \n stmt.close();\n conn.close(); \n }catch(SQLException se){\n //Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e){\n //Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n //finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2){\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se){\n se.printStackTrace();\n }//end finally try\n }//end try\n }//end for\n \n }",
"private void saveInitialTotalScore() {\n\t\thelper.insertTotalScoreData(TotalScoretableName, totalScoreID, \"0\");\n\t}",
"public HighScore(){\n readFile();\n sortHighscores();\n }",
"public ScoreManager() {\n\t\tscore = 0;\n\t}",
"public Highscore() {\n scores = new ArrayList<Score>();\n }",
"public static ArrayList<ArrayList<ArrayList<Double>>> assignScoreToQueries() {\r\n\t\t\r\n\t\tArrayList<ArrayList<ArrayList<Double>>> allQueries = Queries.createQueries();\r\n\t\tArrayList<ArrayList<String>> dataset = ReadInDataset.finalDataset;\r\n\t\tint Counter = 0;\r\n\t\tDouble Score = 0.0;\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\r\n\t\tdf.setRoundingMode(RoundingMode.CEILING); // round up to 4 decimal places\r\n\t\t\r\n\t\t\r\n\t\t// initially assign to each query a score of 0\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) {\r\n\t\t\tArrayList<Double> zero = new ArrayList<Double>();\r\n\t\t\tzero.add(0.0);\r\n\t\t\tallQueries.get(i).add(zero);}\r\n\t\t\r\n\t\t// go through each query and check how many entries of the dataset it matches\r\n\t\t// with each match increase the score\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) { // for each query\r\n\t\t\tfor(int b=0; b < dataset.size(); b++) { // for each dataset\r\n\t\t\t\tCounter = 0; \r\n\t\t\t\tfor (int a=0; a < allQueries.get(i).size()-1; a++) { // for each query clause\r\n\t\t\t\t//check if the query criteria match the dataset and increase the Score accordingly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //this counter ensures that all query requirements are met in order to increase the score\r\n\t\t\t\t\tif (a != allQueries.get(i).size() - 1) {\t\t\t\t\t\t // ensure that Score entry is not involved in Query Matching\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// take min and max from query along with an entry from the dataset, convert to a double of 4 decimal places\r\n\t\t\t\t\t\tdouble minPoint1 = allQueries.get(i).get(a).get(0);\r\n\t\t\t\t\t\tString minPoint2 = df.format(minPoint1);\r\n\t\t\t\t\t\tdouble minPoint = Double.parseDouble(minPoint2);\r\n\t\t\t\t\t\tdouble maxPoint1 = allQueries.get(i).get(a).get(1);\r\n\t\t\t\t\t\tString maxPoint2 = df.format(maxPoint1);\r\n\t\t\t\t\t\tdouble maxPoint = Double.parseDouble(maxPoint2);\r\n\t\t\t\t\t\tdouble dataPoint1 = Double.parseDouble(dataset.get(b).get(a+1));\r\n\t\t\t\t\t\tString dataPoint2 = df.format(dataPoint1);\r\n\t\t\t\t\t\tdouble dataPoint = Double.parseDouble(dataPoint2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( dataPoint<= maxPoint && dataPoint >= minPoint) { Counter++; \r\n\t\t\t\t\t//\tSystem.out.println(\"min:\" + minPoint+\" max: \"+maxPoint+\" data: \"+dataPoint+ \" of Query: \" + b+ \"| Query Match!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {//System.out.println(minPoint+\" \"+maxPoint+\" \"+dataPoint+ \" of \" + b);\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\tif (Counter==(Queries.getDimensions())/2) { // if counter equals the dimensions of the query then increase score\r\n\t\t\t\t\tScore = allQueries.get(i).get(allQueries.get(i).size()-1).get(0);\r\n\t\t\t\t\tallQueries.get(i).get(allQueries.get(i).size()-1).set(0, Score+1.00); \r\n\t\t\t\t\t}}\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t//\tSystem.out.println(\"Score = \" + allQueries.get(i).get(allQueries.get(i).size()-1).get(0));\r\n\t\t}\t\r\n\t\treturn allQueries;\r\n\t}",
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"public Score()\n {\n // initialize instance variables\n score = 0;\n }",
"public static void initHighScoreLocal(Context mContext){\n\t\tObject db = Common.getObjFromInternalFile(mContext, Config.score_file_save);;\n\t\tif(db == null){\n\t\t\tint[] highScore = new int[5];\n\t\t\tfor(int i = 0; i < 5 ; i ++){\n\t\t\t\thighScore[i] = 0;\n\t\t\t}\n\t\t\tCommon.writeFileToInternal(mContext, Config.score_file_save, highScore);\n\t\t}\n\t}",
"@Override\r\n\tpublic void allScore() {\r\n\t\tallScore = new ArrayList<Integer>();\r\n\t\tallPlayer = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n \r\n String query = \"SELECT NAME_PLAYER, SUM(SCORE) AS 'SCORE'\" +\r\n \t\t\" FROM SINGLEPLAYERDB\" +\r\n \t\t\" GROUP BY NAME_PLAYER\" +\r\n \t\t\" ORDER BY SCORE DESC\" ;\r\n ResultSet rs = stmt.executeQuery(query);\r\n \r\n \r\n while (rs.next()) {\r\n \tallPlayer.add(rs.getString(1));\r\n \tallScore.add(Integer.parseInt(rs.getString(2)));\r\n }\r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}",
"public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}",
"@Override\n public void save(AllContainer con) {\n try {\n c = DBConncetion.getConnection();\n String sql = \"Update mainquestion \\n\" +\n \"Set answered_correct = ? , answered_incorrect = ?\\n , marked = ?\" +\n \"Where id = ?\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n for (Question q : con.getList()) {\n int marked = q.isMarked() ? 1 : 0;\n Stats stats = q.getStats();\n System.out.println(stats.getCorrectAnswered());\n pstmt.setString(1,String.valueOf(stats.getCorrectAnswered()));\n pstmt.setString(2,String.valueOf(stats.getWrongAnswered()));\n pstmt.setString(3,String.valueOf(marked));\n pstmt.setString(4,String.valueOf(q.getId()));\n pstmt.executeUpdate();\n }\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving: \" + e.getMessage());\n }\n }",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void save(Score obj) {\n\t\tiscoreDAO.save(obj);\r\n\t}",
"protected AnswerScore() {/* intentionally empty block */}",
"public void saveSingleton(String table_name, int n, int m, double p, HashMap<String, DescriptiveStatistics> stats) throws SQLException {\n // Add the number of goods.\n DescriptiveStatistics numberOfGoods = new DescriptiveStatistics();\n numberOfGoods.addValue(n);\n stats.put(\"n\", numberOfGoods);\n // Add the number of bidders.\n DescriptiveStatistics numberOfBidders = new DescriptiveStatistics();\n numberOfBidders.addValue(m);\n stats.put(\"m\", numberOfBidders);\n // Add the type of reward\n DescriptiveStatistics probabilityConnections = new DescriptiveStatistics();\n probabilityConnections.addValue(p);\n stats.put(\"p\", probabilityConnections);\n // Create and execute SQL statement.\n this.createAndExecuteSQLStatement(table_name, stats);\n }",
"@Override\n\tpublic void save(ConScore it) {\n\t\tthis.getHibernateTemplate().save(it);\n\t}",
"public SaveGame() {\n\t\tlives = 0;\n\t\tscore = 0;\n\t\tbrainX = 0;\n\t\tbrainY = 0;\n\t\tzombieX = 0;\n\t}",
"void setBestScore(double bestScore);",
"public static void calculateFitness(StrategyPool sp)\r\n\t{\r\n\t\tfor(int i = 0; i<sp.pool.size() ; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j <sp.pool.size() ; j++)\r\n\t\t\t{\r\n\t\t\t\tif(i == j)\r\n\t\t\t\t\t; //do nothing\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +i +\" against \" +j );\r\n\t\t\t\t\tStrategy p1 = sp.pool.get(i);\r\n\t\t\t\t\tStrategy p2 = sp.pool.get(j);\r\n\t\t\t\t\tint winner = 0;\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\t\tp2.addWinCount();\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\t//switch positions\r\n\t\t\t\t\tp2 = sp.pool.get(i);\r\n\t\t\t\t\tp1 = sp.pool.get(j);\r\n\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +j +\" against \" +i );\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\tp2.addWinCount();\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}\r\n\t\t}\r\n\t}",
"public Score() {\n this.date = new Date();\n this.name = null;\n this.score = 0;\n }",
"ScoreManager createScoreManager();",
"public DBPoolImpl()\n {\n }",
"public void doDataAddToDb() {\n String endScore = Integer.toString(pointsScore);\r\n String mLongestWordScore = Integer.toString(longestWordScore);\r\n String date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.US).format(new Date());\r\n Log.e(TAG, \"date\" + date);\r\n\r\n // creating a new user for the database\r\n User newUser = new User(userNameString, endScore, date, longestWord, mLongestWordScore); // creating a new user object to hold that data\r\n\r\n // add new node in database\r\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\r\n mDatabase.child(\"users\").child(userNameString).setValue(newUser);\r\n\r\n Log.e(TAG, \"pointsScore\" + pointsScore);\r\n Log.e(TAG, \"highestScore\" + highestScore);\r\n\r\n\r\n // if high score is achieved, send notification\r\n if (highestScore > pointsScore) {\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n sendMessageToNews();\r\n }\r\n }).start();\r\n }\r\n }",
"public Pool() {\n\t\t// inicializaDataSource();\n\t}",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"BruceScore() {}",
"public void saveStats() {\n this.saveStats(null);\n }",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"private void initPool() throws SQLException {\n\t\tint POOL_SIZE = 90;\n\t\tthis.connectionPool = new LinkedBlockingQueue<>(POOL_SIZE);\n\t\tfor(int i = 0; i < POOL_SIZE; i++) {\n\t\t\tConnection con = DriverManager.getConnection(dburl, user, password);\n\t\t\tconnectionPool.offer(con);\n\t\t}\n\t}",
"private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}",
"private void extractNewScoreBoard(){\n if (FileStorage.getInstance().fileNotExist(this, \"FinalScore1.ser\")){\n score = new Score();\n score.addScoreUser(user);\n FileStorage.getInstance().saveToFile(this.getApplicationContext(), score, \"FinalScore1.ser\");\n } else {\n score = (Score) FileStorage.getInstance().readFromFile(this, \"FinalScore1.ser\");\n score.insertTopFive(user);\n FileStorage.getInstance().saveToFile(this, score, \"FinalScore1.ser\");\n }\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"private void saveDBValues() {\r\n this.pl_DB.setParam(\"Hostname\", this.rhostfield.getText());\r\n this.pl_DB.setParam(\"Port\", this.rportfield.getText());\r\n this.pl_DB.setParam(\"Username\", this.ruserfield.getText());\r\n\r\n String pw = \"\";\r\n for (int i = 0; i < this.rpasswdfield.getPassword().length; i++) {\r\n pw += this.rpasswdfield.getPassword()[i];\r\n }\r\n this.pl_DB.setParam(\"Password\", pw);\r\n this.pl_DB.setParam(\"Database\", this.rdatabasefield.getText());\r\n this.pl_DB.setParam(\"nodeTableName\", this.rtablename1efield.getText());\r\n this.pl_DB.setParam(\"nodeColIDName\", this.colnodeIdfield.getText());\r\n this.pl_DB.setParam(\"nodeColLabelName\", this.colnodeLabelfield.getText());\r\n this.pl_DB.setParam(\"edgeTableName\", this.rtablename2efield.getText());\r\n this.pl_DB.setParam(\"edgeCol1Name\", this.coledge1field.getText());\r\n this.pl_DB.setParam(\"edgeCol2Name\", this.coledge2field.getText());\r\n this.pl_DB.setParam(\"edgeColWeightName\", this.colweightfield.getText());\r\n this.pl_DB.setParam(\"resultTableName\", this.otablenamefield.getText());\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }",
"Scoreboard saveScoreboard(Scoreboard scoreboard);",
"private DbManager() {\n \t\tquestions = new ArrayList<Question>();\n \t\tanswers = new ArrayList<Answer>();\n \t\tcomments = new ArrayList<Comment>();\n \t\tusers = new ArrayList<User>();\n \t\ttags = new ArrayList<String>();\n \t\tthis.userCounterIdCounter = 0;\n \t\tthis.questionIdCounter = 0;\n \t\tthis.answerIdCounter = 0;\n \t\tthis.commentIdCounter = 0;\n \t\treputations = new ArrayList[3];\n \t\treputations[0] = new ArrayList<User>();\n \t\treputations[1] = new ArrayList<Date>();\n \t\treputations[2] = new ArrayList<Integer>();\n \t}",
"public Scores() {\n list = new int[50];\n }",
"public ScoresDBManager(Context c){\n helper=new SQLHelper(c);\n }",
"public void dataAddAppInstance() {\n String endScore = Integer.toString(pointsScore);\r\n String mLongestWordScore = Integer.toString(longestWordScore);\r\n String date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.US).format(new Date());\r\n\r\n // creating a new user for the database\r\n User newUser = new User(userNameString, endScore, date, longestWord, mLongestWordScore); // creating a new user object to hold that data\r\n\r\n // add new node in database\r\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\r\n mDatabase.child(token).child(userNameString).setValue(newUser);\r\n\r\n // get this device's all time high score for comparison\r\n int highScore = getInt();\r\n\r\n // if high score is achieved, send notification\r\n if ( pointsScore > highScore) {\r\n setInt(\"high score\", pointsScore);\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n sendMessageToNews();\r\n }\r\n }).start();\r\n }\r\n }",
"private void setDefaultScores() {\n\t\tif (readPreference(GlobalModel.BESTSCORE_EASY) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_EASY);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_MEDIUM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_MEDIUM);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_HARD) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_HARD);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_CUSTOM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_CUSTOM);\n\t\t}\n\t}",
"public void insert() {\n String sqlquery = \"insert into SCORE (NICKNAME, LEVELS,HIGHSCORE, NUMBERKILL) values(?, ?, ?,?)\";\n try {\n ps = connect.prepareStatement(sqlquery);\n ps.setString(1, this.nickname);\n ps.setInt(2, this.level);\n ps.setInt(3, this.highscore);\n ps.setInt(4, this.numofKill);\n ps.executeUpdate();\n //JOptionPane.showMessageDialog(null, \"Saved\", \"Insert Successfully\", JOptionPane.INFORMATION_MESSAGE);\n System.out.println(\"Insert Successfully!\");\n ps.close();\n connect.close();\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n }",
"public void saveInitialScoretoDatabase_SkiGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, SkiID);\n\t}",
"public boolean evaluateDataDBHeavy() {\n // reset labels\n resetLabels();\n\n // create Map with player-name and count how often he participates\n Map<String, Integer> nameToPart = new HashMap<>();\n for (String playerName : playerNameList) {\n if (nameToPart.containsKey(playerName)) {\n nameToPart.put(playerName, nameToPart.get(playerName) + 1);\n } else {\n nameToPart.put(playerName, 1);\n }\n }\n\n // open conn\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n\n // get List with all games that finished (end_time != null) and have\n // the right number of each participant -> goes to totalGames\n String strSQL = \"SELECT max_turn.game, max_turn.turn, players.name, participants.winner FROM max_turn INNER JOIN participants ON max_turn.game = participants.game \" +\n \"INNER JOIN players ON participants.player = players.id \" +\n \"INNER JOIN games ON games.id = max_turn.game WHERE end_time IS NOT null GROUP BY max_turn.game \" +\n \"HAVING \";\n // add criteria of how often a player participates in a game in a loop (for every player)\n int counter = 0;\n for (Map.Entry<String, Integer> entry : nameToPart.entrySet()) {\n if (counter != 0)\n strSQL += \"AND \";\n strSQL += \"(SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player WHERE participants.game = max_turn.game AND players.name = '\";\n strSQL += entry.getKey() + \"') = \";\n strSQL += entry.getValue() + \" \";\n counter++;\n }\n // add criteria total amount of participants in game (numberOfParticipants)\n strSQL += \"AND (SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player \" +\n \"WHERE participants.game = max_turn.game) = \" + numberOfParticipants +\";\";\n // do select on db\n List<Map<String, Object>> resultList = dbAccess.selectSQL(strSQL);\n // check for dbError\n if(resultList == null){\n showAlertDBError();\n return false;\n }\n totalGames = resultList.size();\n\n\n // first new map to save wins - copy names from nameToPart\n nameToWins = new HashMap<>();\n for(Map.Entry<String, Integer> entry : nameToPart.entrySet()){\n nameToWins.put(entry.getKey(), 0);\n }\n\n // get list with winners and average turns - iterate through resultList of all games WITH A WINNER and the max turns\n strSQL = \"SELECT max_turn.game, max_turn.turn, players.name, participants.winner FROM max_turn INNER JOIN participants ON max_turn.game = participants.game \" +\n \"INNER JOIN players ON participants.player = players.id \" +\n \"INNER JOIN games ON games.id = max_turn.game WHERE end_time IS NOT null AND winner = 1 \" +\n \"HAVING \";\n // add criteria of how often a player participates in a game in a loop (for every player)\n counter = 0;\n for (Map.Entry<String, Integer> entry : nameToPart.entrySet()) {\n if (counter != 0)\n strSQL += \"AND \";\n strSQL += \"(SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player WHERE participants.game = max_turn.game AND players.name = '\";\n strSQL += entry.getKey() + \"') = \";\n strSQL += entry.getValue() + \" \";\n counter++;\n }\n // add criteria total amount of participants in game (numberOfParticipants)\n strSQL += \"AND (SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player \" +\n \"WHERE participants.game = max_turn.game) = \" + numberOfParticipants +\";\";\n // do select on db\n resultList = dbAccess.selectSQL(strSQL);\n // check for dbError\n if(resultList == null){\n showAlertDBError();\n return false;\n }\n\n // close conn\n dbAccess.closeConn();\n\n // iterate resultList with winners, write winners, sum up turns\n int turnSum = 0;\n for(Map<String, Object> row : resultList){\n String name = (String) row.get(\"name\");\n nameToWins.put(name, nameToWins.get(name) + 1);\n int maxTurn = (int) row.get(\"turn\");\n turnSum += maxTurn;\n }\n // until now nameToWins only holds winners - adding players without wins to the map with (with 0 as wins)\n for(Map.Entry<String, Integer> entry : nameToPart.entrySet()){\n if(!nameToWins.containsKey(entry.getKey()))\n nameToWins.put(entry.getKey(), 0);\n }\n\n // calculate games without winner\n int gamesWithWinner = resultList.size();\n gamesWithoutWinner = totalGames-gamesWithWinner;\n // calculate average turns\n if(gamesWithWinner > 0){\n averageTurns = Math.round(turnSum/gamesWithWinner);\n }else{\n averageTurns = 0;\n }\n // update gui and end\n updateGUI();\n return true;\n }",
"public static void createScore(){\n\t}",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"void setPoolNumber(int poolNumber);",
"public SPLGraph(GUI gui, double minimumDB, double maximumDB) {\r\n this.gui = gui;\r\n this.minimumDB = minimumDB;\r\n this.maximumDB = maximumDB;\r\n this.selecting = false;\r\n }",
"public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }",
"public Leaderboard() {\n filePath = new File(\"Files\").getAbsolutePath();\n highScores = \"scores\";\n\n topScores = new ArrayList<>();\n topName = new ArrayList<>();\n }",
"@Override\n\tpublic void loadScore() {\n\n\t}",
"public MaxPQ() {\n\t\tthis(1); \n\t}",
"public OptimismPessimismCalculator() {\n mostPositive = 0;\n mostPositiveDoc = null;\n mostNegative = 0;\n mostNegativeDoc = null;\n biggestDifference = 0;\n biggestDifferenceDoc = null;\n \n publisherOptimism = new HashMap<>();\n publisherPessimism = new HashMap<>();\n regionOptimism = new HashMap<>();\n regionPessimism = new HashMap<>();\n dayOptimism = new HashMap<>();\n dayPessimism = new HashMap<>();\n weekdayOptimism = new HashMap<>();\n weekdayPessimism = new HashMap<>();\n }",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public HighScore ()\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = 0;\n this.level = \"level 1\";\n }",
"public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }",
"public HighScoreTable(){\r\n\r\n\t}",
"public HighScore() {\n try {\n BufferedReader a = new BufferedReader(new FileReader(\"points.txt\"));\n BufferedReader b = new BufferedReader(new FileReader(\"names.txt\"));\n ArrayList<String> temp = new ArrayList(0);\n temp = createArray(a);\n names = createArray(b);\n a.close();\n b.close();\n for (String x : temp) {\n points.add(Integer.valueOf(x));\n }\n\n\n }catch (IOException e)\n {}\n\n }",
"public PricingModel(Game game) {\n this.game = game;\n this.currentPrice = SavingCard.INITIAL_COST;\n this.invokedCount = 0;\n \n\t}",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"@Override\n\tpublic void save(Score score) {\n\t\tSystem.out.println(\"Service中的save方法执行了...\");\n\t\t\n\n\t\tscoreDao.save(score);\n\t\t\n\t\t\n\t}",
"private void divideBest(Habitat habitat,Pool pool) {\n\t\tPool pool2 = new Pool();\r\n\t\t//Random rand2 = new Random();\r\n\t\t\r\n\t\t\r\n\t\tpool2.addUser(pool.getListOfUsers().get(0));\r\n\t\tpool.removeUser(pool.getListOfUsers().get(0));\r\n\t\t//int randomNum = rand2.nextInt(pool.getListOfUsers().size());\r\n\t\tUser user = Users.getNearestInList(pool2.getListOfUsers().get(0), pool.getListOfUsers()); \r\n\t\tpool2.addUser(user);\r\n\t\t//pool.removeUser(pool.getListOfUsers().get(randomNum));\r\n\t\tpool.removeUser(user);\r\n\t\t\r\n\t\tpool.buildRoutes();\r\n\t\tpool2.buildRoutes();\r\n\t\t\r\n\t\thabitat.addPool(pool2);\r\n\t\t\r\n\t}",
"public MySQLInnoDbMaxValueIncrementer() {\n\t}",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public QuestionsSave(int score) {\r\n initComponents();\r\n finalScore = score; \r\n file = new File(\"HighScores.xml\");\r\n highScores = null;\r\n\r\n Builder builder = new Builder();\r\n try {\r\n doc = builder.build(file);\r\n highScores = doc.getRootElement();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n //Get Elements\r\n scores = highScores.getChildElements();\r\n \r\n }",
"public void lPoolGoal(View view) {\n scoreForL_pool = scoreForL_pool + 1;\n displayForLpool(scoreForL_pool);\n }",
"public CalculateJobCosts() {\n\t\t//sc = new SimpleConnection();\n\t\t//conn = sc.getConnection();\n\t}",
"public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }",
"public void persistData(RatingData[] data) {\n //start by setting long_comp_result\n //TODO: maybe remove old_rating / vol and move to the record creation?\n String sqlStr = \"update long_comp_result set rated_ind = 1, \" +\n \"old_rating = (select rating from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"old_vol = (select vol from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"new_rating = ?, \" +\n \"new_vol = ? \" +\n \"where round_id = ? and coder_id = ?\";\n PreparedStatement psUpdate = null;\n PreparedStatement psInsert = null;\n \n try {\n psUpdate = conn.prepareStatement(sqlStr);\n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n psUpdate.executeUpdate();\n }\n \n psUpdate.close();\n //update algo_rating\n String updateSql = \"update algo_rating set rating = ?, vol = ?,\" +\n \" round_id = ?, num_ratings = num_ratings + 1 \" +\n \"where coder_id = ? and algo_rating_type_id = 3\";\n \n psUpdate = conn.prepareStatement(updateSql);\n \n String insertSql = \"insert into algo_rating (rating, vol, round_id, coder_id, algo_rating_type_id, num_ratings) \" +\n \"values (?,?,?,?,3,1)\";\n \n psInsert = conn.prepareStatement(insertSql);\n \n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n if(psUpdate.executeUpdate() == 0) {\n psInsert.clearParameters();\n psInsert.setInt(1, data[i].getRating());\n psInsert.setInt(2, data[i].getVolatility());\n psInsert.setInt(3, roundId);\n psInsert.setInt(4, data[i].getCoderID());\n psInsert.executeUpdate();\n }\n }\n \n psUpdate.close();\n psInsert.close();\n \n //mark the round as rated\n psUpdate = conn.prepareStatement(\"update round set rated_ind = 1 where round_id = ?\");\n psUpdate.setInt(1, roundId);\n psUpdate.executeUpdate();\n \n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n DBMS.close(psUpdate);\n DBMS.close(psInsert);\n }\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }",
"OMMPool getPool();",
"public void addBestelling(Bestelling bestelling) {\n\r\n DatabaseConnection connection = new DatabaseConnection();\r\n if(connection.openConnection())\r\n {\r\n // If a connection was successfully setup, execute the INSERT statement\r\n\r\n connection.executeSQLInsertStatement(\"INSERT INTO bestelling (`bestelId`, `tafelId`) VALUES(\" + bestelling.getId() + \",\" + bestelling.getTafelId() + \");\");\r\n\r\n for(Drank d : bestelling.getDranken()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO drank_bestelling (`DrankID`, `BestelId`, `hoeveelheid`) VALUES (\" + d.getDrankId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n for(Gerecht g : bestelling.getGerechten()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO gerecht_bestelling (`GerechtID`, `BestelId`, `hoeveelheid`) VALUES (\" + g.getGerechtId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n\r\n //Close DB connection\r\n connection.closeConnection();\r\n }\r\n\r\n }",
"public static void addingNewPlayer(){\r\n\t\t//hard code each score includng a total.\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Enter the name of the Player?\");\r\n\t\t\t\t\tString name = scan.next();\r\n\t\t\t\t\t\r\n\t\t\t//establishing the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//inserting the quries assign to the String variables\r\n\t\t\tString query=\"insert into \" + tableName + \" values ('\" + name +\"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\";\t\t\r\n\t\t\t\r\n\t\t\t//inserting the hard coded data into the table of the datbase\r\n\t\t\tstatement.execute(query);\r\n\t\t\t\r\n\t\t\t//closing the statement\r\n\t\t\tstatement.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t System.out.println(\"SQL Exception occurs\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public Bookstore() {\n books = new Book[MAXNUMOFBOOKS];\n totalbooks = 0;\n gross = 0.0;\n // Your code should go here\n }",
"public AbysswalkerGame(DataBase db) { this.db = db; }",
"private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }",
"private DatabaseWriteResult(UploadStrategy strategy) {\n savedEntries = new ArrayList<>(1000);\n databaseSize = -1L;\n error = null;\n uploadStrategy = strategy;\n }",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public BankDatabase() {\r\n accounts = new Account[3];\r\n Connection c = null;\r\n Statement stmt = null;\r\n try {\r\n Class.forName(\"org.postgresql.Driver\");\r\n c = DriverManager\r\n .getConnection(\"jdbc:postgresql://localhost:5432/ATM\",\r\n \"postgres\", \"0000\");\r\n c.setAutoCommit(false);\r\n stmt = c.createStatement();\r\n ResultSet rs = stmt.executeQuery( \"SELECT * FROM accounts;\" );\r\n var i = 0;\r\n while ( rs.next() ) {\r\n int theAccountNumber = rs.getInt(\"accountnumber\");\r\n int thePin = rs.getInt(\"pin\");\r\n double theAvailiableBalance = rs.getDouble(\"availiablebalance\");\r\n double theTotalBalance = rs.getDouble(\"totalbalance\");\r\n accounts[i] = new Account( theAccountNumber, thePin, theAvailiableBalance, theTotalBalance);\r\n i++;\r\n }\r\n rs.close();\r\n stmt.close();\r\n c.close();\r\n } catch ( Exception e ) {\r\n System.err.println( e.getClass().getName()+\": \"+ e.getMessage() );\r\n System.exit(0);\r\n }\r\n\r\n\r\n// accounts = new Account[2]; // just 2 accounts for testing\r\n// accounts[0] = new Account(12345, 54321, 1000.0, 1200.0);\r\n// accounts[1] = new Account(98765, 56789, 200.0, 200.0);\r\n }",
"void savePlayer(String playerIdentifier, int score, int popID) {\n //save the players top score and its population id\n Table playerStats = new Table();\n playerStats.addColumn(\"Top Score\");\n playerStats.addColumn(\"PopulationID\");\n TableRow tr = playerStats.addRow();\n tr.setFloat(0, score);\n tr.setInt(1, popID);\n\n Constants.processing.saveTable(playerStats, \"data/playerStats\" + playerIdentifier + \".csv\");\n\n //save players brain\n Constants.processing.saveTable(brain.NetToTable(), \"data/player\" + playerIdentifier + \".csv\");\n }",
"@Override\n\tpublic void insertScore() {\n\t\tString strNum = null;\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"학번을 입력하세요 (입력취소 : QUIT)\");\n\t\t\tSystem.out.print(\" >>\");\n\t\t\t strNum = scan.nextLine();\n\t\t\tif(strNum.equals(\"QUIT\")) {\n\t\t\t\tSystem.out.println(\"입력취소\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tInteger intNum = null;\n\t\t\ttry {\n\t\t\t\tintNum = Integer.valueOf(strNum);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tstrNum = String.format(\"%05d\", intNum);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tSystem.out.print(\">> 국어 : \");\n\t\tString strKor = scan.nextLine();\n\t\tInteger intKor = null;\n\t\ttry {\n\t\t\tintKor = Integer.valueOf(strKor);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\">> 영어 : \");\n\t\tString strEng = scan.nextLine();\n\t\tInteger intEng = null;\n\t\ttry {\n\t\t\tintEng = Integer.valueOf(strEng);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\">> 수학: \");\n\t\tString strMath = scan.nextLine();\n\t\tInteger intMath = null;\n\t\ttry {\n\t\t\tintMath = Integer.valueOf(strMath);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t}\n\t\t\n\t\tScoreVO vo = new ScoreVO();\n\t\tvo.setNum(strNum);\n\t\tvo.setKor(intKor);\n\t\tvo.setEng(intEng);\n\t\tvo.setMath(intMath);\n\t\tscoreList.add(vo);\n\t\tthis.printStudent();\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public GameLogic(){\n\t\tplayerPosition = new HashMap<Integer, int[]>();\n\t\tcollectedGold = new HashMap<Integer, Integer>();\n\t\tmap = new Map();\n\t}",
"public Scores(int score) {\r\n this.score = score;\r\n }",
"public DB()\n {\n super();\n top250 = new Movie[TOP_LENGTH];\n }",
"public MemManager( int poolSize )\n {\n\n this.poolSize = poolSize;\n memoryPool = new byte[poolSize];\n // creates a twoWayLinkedList that will store HashMaps defining the\n // blocks\n // of free space within our pool\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( 0, poolSize );\n freeBlockList = new TwoWayLinkedList<HashMap<Integer, Integer>>();\n // Initially adds the entire memory\n freeBlockList.add( freeBlock );\n\n }",
"public void setScore(int score) {this.score = score;}"
] | [
"0.61567926",
"0.58053714",
"0.57113117",
"0.57040673",
"0.5674966",
"0.5632094",
"0.5604236",
"0.5586849",
"0.55519813",
"0.5543797",
"0.54785925",
"0.5445065",
"0.5434559",
"0.54328763",
"0.5414064",
"0.5340924",
"0.5335145",
"0.5331311",
"0.5272377",
"0.52483743",
"0.52304125",
"0.52243835",
"0.52081144",
"0.5207562",
"0.51830316",
"0.5171687",
"0.5156903",
"0.5138013",
"0.5122239",
"0.5115034",
"0.5097819",
"0.50929874",
"0.50839305",
"0.50756985",
"0.50742084",
"0.50644726",
"0.50589526",
"0.5046461",
"0.503963",
"0.5039544",
"0.5030861",
"0.5030741",
"0.50224364",
"0.50158167",
"0.50066215",
"0.5005834",
"0.50010264",
"0.49966896",
"0.4967865",
"0.49626386",
"0.49567977",
"0.49498105",
"0.49442962",
"0.49364704",
"0.49344164",
"0.4934386",
"0.4923242",
"0.49028063",
"0.489189",
"0.4886458",
"0.48862785",
"0.48858577",
"0.48837173",
"0.4880465",
"0.48776516",
"0.48686117",
"0.4865655",
"0.4854696",
"0.4854684",
"0.4851389",
"0.48343593",
"0.4820858",
"0.48207775",
"0.48173216",
"0.48147106",
"0.48084214",
"0.4797949",
"0.47951233",
"0.47925824",
"0.4785899",
"0.47767386",
"0.4773523",
"0.47619674",
"0.4740042",
"0.47358352",
"0.47349367",
"0.47331867",
"0.4730021",
"0.47284633",
"0.4728361",
"0.47276834",
"0.47267443",
"0.4723451",
"0.4719646",
"0.47118634",
"0.4711202",
"0.4709974",
"0.46915773",
"0.46909076",
"0.4684973"
] | 0.5265032 | 19 |
register total score to database as 0 if total score table is empty | private void saveInitialTotalScore() {
helper.insertTotalScoreData(TotalScoretableName, totalScoreID, "0");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void LoadingDatabaseTotalScore() {\n\n\t\tCursor cursor = helper.getDataAll(TotalScoretableName);\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tString totalPoint = cursor.getString(POINT_TOTAL_SCORE_COLUMN);\n\t\t\t\n\t\t\ttotalScore = Integer.parseInt(totalPoint);\t\t\t\t\t// store total score from database to backup value\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"public void resetScore(){\n Set<String> keys = CalcScore.keySet();\n for(String key: keys){\n CalcScore.replace(key,0.0);\n }\n\n\n\n }",
"public void setScoreZero() {\n this.points = 10000;\n }",
"public int totalScore() {\n return 0;\n }",
"public void resetScore() {\n\t\tthis.score = 0;\n\t}",
"public void setTotalScore(Double totalScore) {\n this.totalScore = totalScore;\n }",
"public static void sumTotalScore() {\n totalScore += addRandomScore();;\n }",
"public ScoreManager() {\n\t\tscore = 0;\n\t}",
"public Score()\n {\n // initialize instance variables\n score = 0;\n }",
"@Override\r\n\tpublic int totalScore(GradeBean param) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}",
"public void deleteScore() {\n\t\tthis.score = 0;\n\t}",
"public Score() {\n this.date = new Date();\n this.name = null;\n this.score = 0;\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"public int getTotalScore(){\r\n return totalScore;\r\n }",
"public void newScore()\n {\n score.clear();\n }",
"public void resetScore();",
"public int getTotalScore() {\n\t\tLoadingDatabaseTotalScore();\n\t\treturn totalScore;\n\t}",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"public int getTotalScore(){\n return totalScore;\n }",
"public void addScore()\n {\n score += 1;\n }",
"public void reset() {\n\t\tscore = 0;\n\t}",
"@Test\n public void missingHighScoresTest() {\n database.createHighScoreTable(testTable);\n database.addHighScore(110, testTable);\n database.addHighScore(140, testTable);\n int[] scores = database.loadHighScores(testTable);\n assertEquals(0, scores[4]);\n assertEquals(0, scores[3]);\n assertEquals(0, scores[2]);\n assertEquals(110, scores[1]);\n assertEquals(140, scores[0]);\n database.clearTable(testTable);\n\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"@Override\n public int getScore() {\n return totalScore;\n }",
"public void reset()\n {\n currentScore = 0;\n }",
"public void initScore(@Nonnull Team team){\n\t\t\tif(this.scores.containsKey(team)){\r\n\t\t\t\tscores.put(team, Integer.valueOf(0));\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public int getTotalScore() {\r\n return totalScore;\r\n }",
"@Override\n\t\t\tpublic double computeScore(Shop arg0, Shop arg1) {\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n\t\t\tpublic double computeScore(Shop arg0, Shop arg1) {\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n\tpublic void checkScore() {\n\t\t\n\t}",
"public void rollBackTotal( int turnQuit )\n {\n totalScore -= turnScores[turnQuit];\n }",
"public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}",
"public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void addOneToScore() {\r\n score++;\r\n }",
"public void initScore(@Nonnull Team team){\r\n\r\n\t\t\tif(this.scores.containsKey(team)){\r\n\t\t\t\tscores.put(team, Integer.valueOf(0));\r\n\t\t\t}\r\n\t\t}",
"public void saveInitialScoretoDatabase_GreenacresGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, GreenacresID);\n\t}",
"public void addScore(int score);",
"public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}",
"public void resetScore() {\n this.myCurrentScoreInt = 0;\n this.myScoreLabel.setText(Integer.toString(this.myCurrentScoreInt));\n }",
"public void saveInitialScoretoDatabase_SkiGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, SkiID);\n\t}",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"public void countScore(int score)\n {\n scoreCounter.add(score);\n }",
"private static double getEmtpyScore(Game2048Board board) {\n double empty = 0;\n if (board.getEmptyTiles().size() < 4) {\n empty = (4 - board.getEmptyTiles().size());\n }\n return empty;\n }",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"public void addUpTotalScore(int CurrentScore) {\n\t\tCursor cursor = getDatabase().getTotalScoreData(TotalScoretableName,\n\t\t\t\ttotalScoreID);\n\n\t\tint currentTotalScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(POINT_TOTAL_SCORE_COLUMN));\n\t\t\tif (MaxScore_temp > currentTotalScore)\n\t\t\t\tcurrentTotalScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"total score is\" + MaxScore_temp + \" with ID : \"\n\t\t\t\t\t//+ totalScoreID);\n\t\t} // travel to database result\n\n\t\t// if(MaxScore < CurrentScore){\n\t\tlong RowIds = getDatabase().updateTotalScoreTable(TotalScoretableName,\n\t\t\t\ttotalScoreID, String.valueOf(CurrentScore + currentTotalScore));\n\t\t//if (RowIds == -1)\n\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t}",
"public Double getTotalScore() {\n return totalScore;\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String tot = dataSnapshot.getValue(String.class);\n Log.d(\"Jinx \", \"Value is: \" + tot);\n\n if(tot==null || tot.equals(null) || tot.equals(\"null\") || tot==\"null\"){\n tot=\"1\";\n }\n FirebaseDatabase database1 = FirebaseDatabase.getInstance();\n\n //Score\n DatabaseReference DataScore = database1.getReference(\"users/\" + uid + \"/data/\" + tot + \"/score\");\n DataScore.setValue(total);\n\n //Add Date & time\n DatabaseReference DataDate = database1.getReference(\"users/\" + uid + \"/data/\" + tot + \"/date\");\n DataDate.setValue(Date + \"/\" + Month + \"/\" + Year + \" @\" + Hour + \":\" + Min);\n\n //Add state\n DatabaseReference DataResult = database1.getReference(\"users/\" + uid + \"/data/\" + tot + \"/result\");\n DataResult.setValue(MState);\n\n int NTotal = Integer.parseInt(tot.toString());\n int NwTotal = NTotal + 1;\n String NewTotal = String.valueOf(NwTotal);\n\n //Add total\n DatabaseReference DataTotal = database1.getReference(\"users/\" + uid + \"/data/total\");\n DataTotal.setValue(NewTotal);\n\n\n }",
"void addScore(double score){\n\t\tsumScore+=score;\n\t\tnumScores++;\n\t\taverage = sumScore/numScores;\n\t}",
"public void saveInitialScoretoDatabase_DiscoveryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, DiscoveryID);\n\t}",
"public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }",
"public void saveInitialScoretoDatabase_AppleGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, AppleID);\n\t}",
"@Test\n public void zero() {\n \n BowlingGame bowlinggame = new BowlingGame();\n \n bowlinggame.getScore();\n assertEquals(0, bowlinggame.getScore());\n \n }",
"protected void checkScore () {\n if (mCurrentIndex == questions.length-1) {\n NumberFormat pct = NumberFormat.getPercentInstance();\n double result = (double) correct/questions.length;\n Toast res = new Toast(getApplicationContext());\n res.makeText(QuizActivity.this, \"Your score: \" + pct.format(result), Toast.LENGTH_LONG).show();\n correct = 0; // resets the score when you go back to first question.\n }\n }",
"public void setScore(int score) { this.score = score; }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"public void addQuiz(int score) {\n\t\tif (score < 0 || score > 100) {\n\t\t\tscore = 0;\n\t\t}\n\t\telse {\n\t\t\ttotalScore = totalScore + score;\n\t\t\tquizCount++;\n\t\t}\n\t\t}",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"public static long addNormalScore(Score score, Context context) {\n ContentValues values = new ContentValues();\n //add the value to key\n values.put(\"pseudo\", score.getPseudo());\n values.put(\"score\", score.getScore());\n //Insert object to BDD with ContentValues\n\n return getDatabase(context).insert(\"NormalScore\", null, values);\n }",
"public synchronized void resetScore() {\n score = 0;\n char2Type = -1;\n setScore();\n }",
"private void showTotalScoreOfTheSession(final Session finishedSession) {\n String totalScore = String.valueOf(finishedSession.get_session_total_score());\n if (totalScore != null) {\n txtTotalScore.setText(totalScore);\n } else {\n txtTotalScore.setText(\"N/A\");\n }\n }",
"public void setScore(double score) {\r\n this.score = score;\r\n }",
"public static void addScore(int _value){\n scoreCount += _value;\n scoreHUD.setText(String.format(Locale.getDefault(),\"%06d\", scoreCount));\n }",
"public int resetAllWords()\n\t{\n\t\t_db.delete(DBConstants.StatsTable.TABLENAME, null, null);\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBConstants.WordTable.DAILYGOALCOUNT_KEY, 0);\n\t\n\t\t//reset word data //commented out to set the daily goal back to 0 below...\n\t\treturn 0;//_db.update(DBConstants.WordTable.TABLENAME, values, null, null);\t\t\n\t}",
"@Override\n\tpublic void loadScore() {\n\n\t}",
"public void addToScore(int ammount){\n\t\tscore+=ammount;\n\t}",
"@Test\n public void addHighScoreTest() {\n database.createHighScoreTable(testTable);\n assertTrue(database.addHighScore(100, testTable));\n database.clearTable(testTable);\n\n }",
"public static void resetDieScore()\n {\n value_from_die = 0;\n }",
"protected void clearUpdateScores() {\n\t\tupdateScore.clear();\n\t}",
"public void setScore(Float score) {\n this.score = score;\n }",
"public void setScore(float score) {\n this.score = score;\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public double getTotalScore() {\n\t return this.totalScore;\n\t }",
"public static void incrementScore() {\n\t\tscore++;\n\t}",
"public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }",
"public TennisScoreSystem() {\n scoreA = 0;\n scoreB = 0;\n }",
"void setScore(long score);",
"@Override\n\tprotected double scoreFDSD(int arg0, int arg1) {\n\t\treturn 0;\n\t}",
"public void setScore(Double score) {\n this.score = score;\n }",
"@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}",
"public void setScores(BigDecimal scores) {\n this.scores = scores;\n }",
"public void setScore(int score) {this.score = score;}",
"public void rightScored()\n\t{\n\t\tscoreR++;\n\t}",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void addTestScore(int score){\n test_score.add(test_count,score);\n test_count++;\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void resetScore(View view) {\n scoreTeamA = 0;\n scoreTeamB = 0;\n displayForTeamA(0);\n displayForTeamB(0);\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }"
] | [
"0.6602953",
"0.65473795",
"0.6523328",
"0.6494208",
"0.6478222",
"0.6362069",
"0.6283852",
"0.6265544",
"0.62387437",
"0.6177953",
"0.6165046",
"0.6128991",
"0.612429",
"0.609682",
"0.607243",
"0.6062335",
"0.6049272",
"0.6042652",
"0.6039644",
"0.6032442",
"0.5982557",
"0.5960437",
"0.596002",
"0.590879",
"0.5898486",
"0.5885149",
"0.5882162",
"0.5880429",
"0.5879457",
"0.5873909",
"0.5843478",
"0.5843478",
"0.58264554",
"0.5818888",
"0.58172554",
"0.58078885",
"0.5802788",
"0.5798078",
"0.5774156",
"0.5770845",
"0.5762162",
"0.5749892",
"0.5739547",
"0.57351136",
"0.5731564",
"0.5723576",
"0.5719157",
"0.5717986",
"0.57142705",
"0.57077456",
"0.56941134",
"0.56873006",
"0.5681344",
"0.5680062",
"0.56780565",
"0.5671609",
"0.5656876",
"0.56488925",
"0.5646137",
"0.56447846",
"0.56312746",
"0.56244314",
"0.5613055",
"0.56069154",
"0.5596889",
"0.5578888",
"0.55770683",
"0.5574409",
"0.55726177",
"0.55712247",
"0.5556476",
"0.5546861",
"0.554405",
"0.55438995",
"0.55427325",
"0.55345803",
"0.55295813",
"0.5524411",
"0.5524232",
"0.5521627",
"0.5520345",
"0.55178976",
"0.5517554",
"0.55149573",
"0.55091184",
"0.55081064",
"0.5500769",
"0.5498487",
"0.5494725",
"0.5491426",
"0.54870474",
"0.54780525",
"0.54752886",
"0.54687655",
"0.5462874",
"0.5462874",
"0.5462044",
"0.5460727",
"0.5460727",
"0.5460727"
] | 0.778667 | 0 |
Return original database access | public SpokaneValleyDatabaseHelper getDatabase() {
return helper;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public Db_db currentDb(){return curDb_;}",
"<DB extends ODatabase> DB getUnderlying();",
"public ODatabaseInternal<?> db() {\n return ODatabaseRecordThreadLocal.INSTANCE.get().getDatabaseOwner();\n }",
"public String getDatabase();",
"Object getDB();",
"String getDatabase();",
"public abstract ODatabaseInternal<?> openDatabase();",
"Database getDataBase() {\n return database;\n }",
"ODatabaseInternal<?> getDatabaseOwner();",
"@Override\n public Database getDatabase() {\n return m_database;\n }",
"private void getDatabase(){\n\n }",
"public Database getDatabase() {\n return dbHandle;\n }",
"public String getDatabase()\n {\n return m_database; \n }",
"public String getDb() {\n return db;\n }",
"public String getDb() {\n return db;\n }",
"public Connection getConnection() throws DBAccessException;",
"public abstract String getDatabaseName();",
"public String getDB() {\n return database;\n }",
"private VirtuosoConnectionWrapper getDirtyConnection () throws DatabaseException {\n if (dirtyConnection == null) {\n \tdirtyConnection = VirtuosoConnectionFactory.createJDBCConnection(context.getDirtyDatabaseCredentials());\n \t}\n\t\treturn dirtyConnection;\n\t}",
"public DatabaseConnection getDatabaseConnection() {\n return query.getDatabaseConnection();\n }",
"private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public String getDatabase() {\n return this.database;\n }",
"public DB getDB() {\n return database;\n }",
"protected MongoDatabase getDB() {\n return mongoClient.getDatabase(\"comp391_yourusername\");\n }",
"public String getDB() {\n\t\treturn db;\r\n\t}",
"public DB getDB() {\n\treturn _db;\n }",
"public Driving getDB() {\n\t\treturn this.db;\n\t}",
"public DB getDatabase(){\n\t\treturn database;\n\t}",
"public DatabaseMeta getSharedDatabase( String name ) {\n return (DatabaseMeta) getSharedObject( DatabaseMeta.class.getName(), name );\n }",
"DatabaseConnector getConnector() {return db;}",
"public ResultSet getDatabase(){\n\t\tString join = \"select* from responses natural join projects\";\n\t\tPreparedStatement database = null;\n\t\ttry{\n\t\t\tdatabase = conn.prepareStatement(join);\n\t\t\tResultSet rs = database.executeQuery();\n\t\t\treturn rs;\n\t\t}catch (SQLException e){\n\t\t\treturn null;\n\t\t}\n\t}",
"public SDB getPrimaryDB() throws SqlJetException,IOException {\r\n\t\treturn getDB(getPrimaryDBID());\r\n\t}",
"public String getDatabase() {\r\n return Database;\r\n }",
"public Database getDatabase() {\n\t\treturn this.database;\n\t}",
"public abstract DbDAO AccessToDAO();",
"public static String getDatabase() {\r\n return database;\r\n }",
"@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}",
"public String getDatabase() {\r\n \t\treturn properties.getProperty(KEY_DATABASE);\r\n \t}",
"public DB returnDB(String database) {\r\n return mongo.getDB(database);\r\n }",
"private DB getDB() {\n\t\tServletContext context = this.getServletContext();\n\t\tsynchronized (context) {\n\t\t\tDB db = (DB)context.getAttribute(\"DB\");\n\t\t\tif(db == null) {\n\t\t\t\tdb = DBMaker.newFileDB(new File(\"db\")).closeOnJvmShutdown().make();\n\t\t\t\tcontext.setAttribute(\"DB\", db);\n\t\t\t}\n\t\t\tcheckAdminInDB(db);\n\t\t\tcheckCategoriaInDB(db);\n\t\t\treturn db;\n\t\t}\n\t}",
"public DatabaseClient getDb() {\n return db;\n }",
"@Override\n\tpublic JdbcConnectionAccess getJdbcConnectionAccess() {\n\t\tif ( jdbcConnectionAccess == null ) {\n\t\t\tif ( !factory.getSettings().getMultiTenancyStrategy().requiresMultiTenantConnectionProvider() ) {\n\t\t\t\tjdbcConnectionAccess = new NonContextualJdbcConnectionAccess(\n\t\t\t\t\t\tgetEventListenerManager(),\n\t\t\t\t\t\tfactory.getServiceRegistry().getService( ConnectionProvider.class )\n\t\t\t\t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjdbcConnectionAccess = new ContextualJdbcConnectionAccess(\n\t\t\t\t\t\tgetTenantIdentifier(),\n\t\t\t\t\t\tgetEventListenerManager(),\n\t\t\t\t\t\tfactory.getServiceRegistry().getService( MultiTenantConnectionProvider.class )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn jdbcConnectionAccess;\n\t}",
"protected abstract ODatabaseInternal<?> newDatabase();",
"public DBDef getCurrentDBDef() { return DBCurrent.getInstance().currentDBDef(); }",
"@Override\r\n @SuppressWarnings(\"empty-statement\")\r\n public Db_db selectDb(Db_db db)\r\n {\r\n Db_db returnValue = null;\r\n if(curDb_ != null && (curDb_.getName() == null ? db.getName() == null : curDb_.getName().equals(db.getName())))\r\n {\r\n returnValue = curDb_;\r\n }\r\n else\r\n {\r\n try\r\n {\r\n Connection newCon;\r\n if((newCon = this.connections_.get(db))!=null)\r\n {\r\n this.curDb_ = db;\r\n this.curConnection_ = newCon;\r\n returnValue = db;\r\n }\r\n else\r\n {\r\n if(setupConnection(db, Boolean.FALSE) != null)\r\n {\r\n returnValue = db;\r\n }\r\n }\r\n }catch(Exception e){};\r\n }\r\n \r\n return returnValue;\r\n }",
"@Override\n \t\t\t\tpublic JDBCConnectionCredentials getDirtyDatabaseCredentials() {\n \t\t\t\t\treturn new JDBCConnectionCredentials(\"jdbc:virtuoso://localhost:1112/UID=dba/PWD=dba\", \"dba\", \"dba\");\n \t\t\t\t}",
"public GraphDatabaseService GetDatabaseInstance() {\r\n\t\treturn _db;\r\n\t}",
"@Override \r\n protected Object determineCurrentLookupKey() {\n return DbContextHolder.getDbType(); \r\n }",
"public Database<T> getDatabase();",
"private DatabaseProvider getDatabaseProvider() {\n return new DatabaseProvider(\n System.getProperty(\"url\"),\n System.getProperty(\"user\"),\n System.getProperty(\"password\")\n );\n }",
"public String databaseName();",
"public interface DatabaseAccessor {\n\n Connection getConnection() throws SQLException;\n}",
"@Override\n public String getDatabaseName() {\n return mappings.getDatabaseName();\n }",
"protected abstract String getDatabaseID();",
"protected String getDatabaseName() {\n\t\treturn database;\n\t}",
"public DatabaseConnection newConnection();",
"public Connection getDbConnect() {\n return dbConnect;\n }",
"public ODatabaseDocumentTx db();",
"java.lang.String getDatabaseName();",
"java.lang.String getDatabaseName();",
"java.lang.String getDatabaseName();",
"java.lang.String getDatabaseName();",
"private String getPhysicalDbName() {\n String pdbName =TestConfiguration.getCurrent().getJDBCUrl();\n if (pdbName != null)\n pdbName=pdbName.substring(pdbName.lastIndexOf(\"oneuse\"),pdbName.length());\n else {\n // with JSR169, we don't *have* a protocol, and so, no url, and so\n // we'll have had a null.\n // But we know the name of the db is something like system/singleUse/oneuse#\n // So, let's see if we can look it up, if everything's been properly\n // cleaned, there should be just 1...\n pdbName = (String) AccessController.doPrivileged(new java.security.PrivilegedAction() {\n String filesep = getSystemProperty(\"file.separator\");\n public Object run() {\n File dbdir = new File(\"system\" + filesep + \"singleUse\");\n String[] list = dbdir.list();\n // Some JVMs return null for File.list() when the directory is empty\n if( list != null)\n {\n if(list.length > 1)\n {\n for( int i = 0; i < list.length; i++ )\n {\n if(list[i].indexOf(\"oneuse\")<0)\n continue;\n else\n {\n return list[i];\n }\n }\n // give up trying to be smart, assume it's 0\n return \"oneuse0\";\n }\n else\n return list[0];\n }\n return null;\n }\n });\n \n }\n return pdbName;\n }",
"public int dbId() { return dbId; }",
"public DatabaseManager getDatabase() {\n\t\treturn (db);\n\t}",
"private Connection dbConnection() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tConnection result = null;\t// holds the resulting connection\n\t\t\n\t\t// try to make the connection\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t\tresult = DriverManager.getConnection(CONNECTION_STRING);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t\t// return the resulting connection\n\t\treturn result;\n\t\t\n\t}",
"yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseSpec getDatabaseSpec();",
"public static DatabaseConnection getDb() {\n return db;\n }",
"public interface DBAccessInterface {\r\n\tpublic ConnectionPoolDataSource getDataSource () throws DBAccessException ;\r\n\t//public PooledConnection getDataSource () throws DBAccessException ;\r\n\tpublic Connection getConnection() throws DBAccessException;\r\n\tpublic void reconnect()throws DBAccessException;\r\n\tpublic void dbConnect()throws DBAccessException;\r\n\t\r\n}",
"public String getDbName();",
"public static DB getFakeConnection() {\n\t\treturn fakeConnection;\n\t}",
"public messages.Databaseinterface.DatabaseInterface getDatabase() {\n return database_;\n }",
"@Override\n public synchronized SQLiteDatabase getWritableDatabase() {\n \treturn super.getWritableDatabase();\n }",
"public int getDbType();",
"public String getDbTable() {return dbTable;}",
"private static MongoDatabase getDatabase(){\n\t\tint port_number = 27017;\n\t\tString host = \"localhost\";\n\n\t\tMongoClient mongoClient = new MongoClient(host, port_number);\n\t\treturn mongoClient.getDatabase(\"myDb\");\n\t}",
"public String getDBString();",
"public DBMaker readonly() {\n readonly = true;\n return this;\n }",
"public String getDatabaseUser();",
"protected Connection getConnectionDrive() throws SQLException {\n\t\treturn DriverManager.getConnection(settings.sqlConnectionString, settings.userName, settings.password);\n\t}",
"String getUserDatabaseFilePath();",
"public static DatabaseAccess getInstance(Context context){\n if(instance == null){\n instance=new DatabaseAccess(context);\n }\n return instance;\n }",
"protected DB getDb() throws UnknownHostException {\n return new Mongo(\"localhost\", MongoDBRule.MONGO_PORT).getDB(\"yawl\");\n }",
"java.lang.String getDatabaseId();",
"public interface CompiereDatabase\n{\n\t/**\n\t * Get Database Name\n\t * @return database short name\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get Database Description\n\t * @return database long name and version\n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Get Database Driver\n\t * @return Driver\n\t */\n\tpublic Driver getDriver();\n\n\n\t/**\n\t * Get Standard JDBC Port\n\t * @return standard port\n\t */\n\tpublic int getStandardPort();\n\n\t/**\n\t * Get Database Connection String\n\t * @param connection Connection Descriptor\n\t * @return connection String\n\t */\n\tpublic String getConnectionURL (CConnection connection);\n\n\t/**\n\t * Supports BLOB\n\t * @return true if BLOB is supported\n\t */\n\tpublic boolean supportsBLOB();\n\n\t/**\n\t * String Representation\n\t * @return info\n\t */\n\tpublic String toString();\n\n\t/**************************************************************************\n\t * Convert an individual Oracle Style statements to target database statement syntax\n\t *\n\t * @param oraStatement oracle statement\n\t * @return converted Statement\n\t * @throws Exception\n\t */\n\tpublic String convertStatement (String oraStatement);\n\n\t/**************************************************************************\n\t * Set the RowID\n\t * @param pstmt prepared statement\n\t * @param pos position\n\t * @param rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic void setRowID (PreparedStatement pstmt, int pos, Object rowID) throws SQLException;\n\n\t/**\n\t * Get rhe RowID\n\t * @param rs result set\n\t * @param pos position\n\t * @return rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic Object getRowID (ResultSet rs, int pos) throws SQLException;\n\n\t/**\n\t * Get RowSet\n\t * \t@param rs result set\n\t * @return RowSet\n\t * @throws SQLException\n\t */\n\tpublic RowSet getRowSet (ResultSet rs) throws SQLException;\n\n\t/**\n\t * \tGet Cached Connection on Server\n\t *\t@param connection info\n\t *\t@return connection or null\n\t */\n\tpublic Connection getCachedConnection (CConnection connection);\n\n\t/**\n\t * \tCreate DataSource (Client)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic DataSource createDataSource(CConnection connection);\n\n\t/**\n\t * \tCreate Pooled DataSource (Server)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic ConnectionPoolDataSource createPoolDataSource(CConnection connection);\n\n}",
"public interface CompiereDatabase\n{\n\t/**\n\t * Get Database Name\n\t * @return database short name\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get Database Description\n\t * @return database long name and version\n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Get Database Driver\n\t * @return Driver\n\t */\n\tpublic Driver getDriver();\n\n\n\t/**\n\t * Get Standard JDBC Port\n\t * @return standard port\n\t */\n\tpublic int getStandardPort();\n\n\t/**\n\t * Get Database Connection String\n\t * @param connection Connection Descriptor\n\t * @return connection String\n\t */\n\tpublic String getConnectionURL (CConnection connection);\n\n\t/**\n\t * Supports BLOB\n\t * @return true if BLOB is supported\n\t */\n\tpublic boolean supportsBLOB();\n\n\t/**\n\t * String Representation\n\t * @return info\n\t */\n\tpublic String toString();\n\n\t/**************************************************************************\n\t * Convert an individual Oracle Style statements to target database statement syntax\n\t *\n\t * @param oraStatement oracle statement\n\t * @return converted Statement\n\t * @throws Exception\n\t */\n\tpublic String convertStatement (String oraStatement);\n\n\t/**************************************************************************\n\t * Set the RowID\n\t * @param pstmt prepared statement\n\t * @param pos position\n\t * @param rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic void setRowID (PreparedStatement pstmt, int pos, Object rowID) throws SQLException;\n\n\t/**\n\t * Get rhe RowID\n\t * @param rs result set\n\t * @param pos position\n\t * @return rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic Object getRowID (ResultSet rs, int pos) throws SQLException;\n\n\t/**\n\t * Get RowSet\n\t * \t@param rs result set\n\t * @return RowSet\n\t * @throws SQLException\n\t */\n\tpublic RowSet getRowSet (ResultSet rs) throws SQLException;\n\n\t/**\n\t * \tGet Cached Connection on Server\n\t *\t@param connection info\n\t *\t@return connection or null\n\t */\n\tpublic Connection getCachedConnection (CConnection connection);\n\n\t/**\n\t * \tCreate DataSource (Client)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic DataSource createDataSource(CConnection connection);\n\n\t/**\n\t * \tCreate Pooled DataSource (Server)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic ConnectionPoolDataSource createPoolDataSource(CConnection connection);\n\n}",
"String getConnectionAlias();",
"String getConnectionAlias();",
"protected DatabaseSession getDbSession() {\n if(dbSession == null) {\n dbSession = getServerSession();\n }\n return dbSession;\n }",
"public DBInterface obre() throws SQLException {\n bd = helper.getWritableDatabase();\n return this;\n\n }",
"@Override\n\tpublic IngresoDAO getIngresoDAO() {\n\t\treturn new MySqlIngresoDAO();\n\t}",
"boolean isNewDatabase() {\n String sql = \"SELECT tbl_name FROM sqlite_master WHERE tbl_name=?\";\n\n return query(new QueryStatement<Boolean>(sql) {\n @Override\n public void prepare(PreparedStatement statement) throws SQLException {\n statement.setString(1, tableName);\n }\n\n @Override\n public Boolean processResults(ResultSet set) throws SQLException {\n return !set.next();\n }\n });\n }",
"@Override\n\tprotected SQLiteDatabase openWritableDb() {\n\t\treturn super.openWritableDb();\n\t}",
"public abstract boolean isDatabaseSet();",
"public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }",
"public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }",
"public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }",
"public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }",
"private static IOseeDatabaseService getDatabase() throws OseeDataStoreException {\n return ServiceUtil.getDatabaseService();\n }",
"public Connection getDatabaseConnection() {\n return con;\n }",
"public DBinterface open() throws SQLException {\r\n db = helper.getWritableDatabase();\r\n return this;\r\n }"
] | [
"0.69789624",
"0.69691145",
"0.68893254",
"0.6871199",
"0.6751734",
"0.6702033",
"0.6565402",
"0.6542995",
"0.641531",
"0.6375816",
"0.6356485",
"0.63465714",
"0.6341118",
"0.62810385",
"0.62810385",
"0.62638617",
"0.62543297",
"0.62525773",
"0.62266153",
"0.6216104",
"0.6180122",
"0.61682177",
"0.6166072",
"0.6166022",
"0.6164191",
"0.61608243",
"0.6158258",
"0.6156321",
"0.6140225",
"0.61365837",
"0.6133045",
"0.61320674",
"0.61176336",
"0.609522",
"0.6079803",
"0.6024349",
"0.60109305",
"0.5992627",
"0.597351",
"0.59656465",
"0.59604716",
"0.5956278",
"0.59516114",
"0.59500015",
"0.59464777",
"0.59273547",
"0.5901387",
"0.5900642",
"0.58874404",
"0.58513886",
"0.58441293",
"0.5837944",
"0.58343387",
"0.583402",
"0.5823234",
"0.5776445",
"0.5753489",
"0.5750668",
"0.57473713",
"0.57473713",
"0.57473713",
"0.57473713",
"0.57447225",
"0.57435447",
"0.5743317",
"0.5742945",
"0.57386285",
"0.57379675",
"0.5735465",
"0.573535",
"0.57334304",
"0.57323927",
"0.5717748",
"0.56824917",
"0.5654007",
"0.56506985",
"0.56313926",
"0.5627276",
"0.56225175",
"0.562122",
"0.56211644",
"0.5614475",
"0.5599977",
"0.5589634",
"0.55880535",
"0.55880535",
"0.5572026",
"0.5572026",
"0.55717653",
"0.5566445",
"0.5557378",
"0.5552136",
"0.5544606",
"0.5544002",
"0.55421704",
"0.55421704",
"0.55421704",
"0.55421704",
"0.5535333",
"0.55241376",
"0.5521725"
] | 0.0 | -1 |
filter and return all pool locations in pool locations table note : pool locations table contains coupons and pool locations | public ArrayList<poolLocation> getPoolList() {
LoadingDatabasePoolLocation();
ArrayList<poolLocation> tempLocationList = new ArrayList<poolLocation>();
// remove coupons
for (poolLocation location : POOL_LIST) {
if ((location.getTitle().equals(pool1ID)
|| location.getTitle().equals(pool2ID) || location
.getTitle().equals(pool3ID))
&& location.getIsCouponUsed() == false) // only return any pool without buying a coupon
tempLocationList.add(location);
}
return tempLocationList;
// return POOL_LIST;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getLocationAndCity(){\n\t\treturn jtemp.queryForList(\"SELECT location_id||city FROM locations\", String.class);\n\t}",
"@Query(\"select l from Location l where idLocation not in (select location.idLocation from LocationStore lo)\")\n List<Location> findAvailableLocation();",
"@Transactional\n\tpublic List<Location> listAllLocation() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Location> criteriaQuery = builder.createQuery(Location.class);\n\t\tRoot<Location> root = criteriaQuery.from(Location.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Location> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}",
"public static ArrayList<Location> GetAllLocations(){\n \n ArrayList<Location> Locations = new ArrayList<>();\n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM location\")){\n \n while(resultSet.next())\n {\n Location location = new Location();\n location.setCity(resultSet.getString(\"City\"));\n location.setCity(resultSet.getString(\"AirportCode\"));\n Locations.add(location);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Locations;\n }",
"@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}",
"@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}",
"List<String> locations();",
"public List<Location> searchLocations(String search) {\n Query query = entityManager.createQuery(\"select loc from Location loc where loc.code like :search or loc.name like :search or loc.shortName like :search order by loc.locationId\");\r\n query.setParameter(\"search\", \"%\" + search + \"%\");\r\n return query.getResultList();\r\n\t\t/*\r\n Session session = (Session) getEntityManager().getDelegate();\r\n Criteria crit = session.createCriteria(Location.class);\r\n // If this is not set in a hibernate many-to-many criteria query, we'll get multiple results of the same object\r\n crit.setResultTransformer(Criteria.ROOT_ENTITY);\r\n Criterion name = Restrictions.ilike(\"name\", \"%\" + search + \"%\");\r\n Criterion shortName = Restrictions.ilike(\"shortName\", \"%\" + search + \"%\");\r\n Criterion code = Restrictions.ilike(\"code\", \"%\" + search + \"%\");\r\n Criterion shortCode = Restrictions.ilike(\"shortCode\", \"%\" + search + \"%\");\r\n LogicalExpression orExpName = Restrictions.or(name,shortName);\r\n LogicalExpression orExpCode = Restrictions.or(code,shortCode);\r\n LogicalExpression orExpNameCode = Restrictions.or(orExpName,orExpCode);\r\n crit.add(orExpNameCode);\r\n return crit.list();\r\n */\r\n\t}",
"Collection<L> getLocations ();",
"public abstract List<LocationDto> freelocations(SlotDto slot);",
"List<Location> getLocations(String coverageType);",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public abstract java.util.Set getLocations();",
"@GetMapping(\"/locations\")\n public List<Location> getLocations(){\n return service.getAll();\n }",
"public ArrayList<poolLocation> getCouponList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> temp_CouponList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(coupon1ID)\n\t\t\t\t\t|| location.getTitle().equals(coupon2ID) || location\n\t\t\t\t\t.getTitle().equals(coupon3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == true)\t\t\t\t\t\t// only show coupons which are bought from the mall\n\t\t\t\ttemp_CouponList.add(location);\n\t\t}\n\n\t\treturn temp_CouponList;\n\t\t// return POOL_LIST;\n\t}",
"public List<StudyLocation> getStudyLocationsByLocId(Integer id) {\n\t\tSqlSession session = connectionFactory.sqlSessionFactory.openSession();\r\n\t\tStudyLocationMapper studyLocationMapper = session.getMapper(StudyLocationMapper.class);\r\n\t\ttry {\r\n\t\t\tStudyLocationExample example = new StudyLocationExample();\r\n\t\t\texample.createCriteria().andLocationidEqualTo(id);\r\n\t\t\tList<StudyLocation> studyLocations = studyLocationMapper.selectByExample(example);\r\n\t\t\treturn studyLocations;\r\n\t\t} finally {\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t}",
"public abstract List<LocationDto> searchLocationType(int loc_type_id);",
"protected abstract void getAllUniformLocations();",
"@Dimensional(designDocument = \"userGeo\", spatialViewName = \"byLocation\")\n List<User> findByLocationWithin(Box cityBoundingBox);",
"@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }",
"LocationsClient getLocations();",
"Map<UUID, Optional<Location>> getAllCurrentLocations();",
"public abstract List<LocationDto> viewAll();",
"public abstract List<LocationDto> searchBuilding(int Building_id);",
"public void filterLocations(double rad, double centerlat, double centerlng) {\n Location center = new Location(\"Center\");\n center.setLatitude(centerlat);\n center.setLongitude(centerlng);\n Location point = new Location(\"Point\");\n\n // New arraylist of filter things.\n filtered = new ArrayList<DiscoverTile>();\n\n // For loop calculate straight line distance between each tile object in database and center.\n for (int i = 0; i < Test.size(); i++) {\n //Log.d(TAG, \"onMapDialogFragmentInteraction: Rad is \" + rad);\n point.setLatitude(Test.get(i).getLat());\n point.setLongitude(Test.get(i).getLng());\n float distance = center.distanceTo(point);\n //Log.d(TAG, \"onMapDialogFragmentInteraction: distance is \" + distance);\n if (distance <= rad) {\n // Test.get(i) is in the radius. Show selection.\n filtered.add(Test.get(i));\n }\n }\n\n // Create a new tile fragment (separate from disoverTileFragment) called filteredTileFragment,\n // which contains the filtered tiles.\n filteredTileFragment = new DiscoverTileFragment();\n TFmode = useFTF;\n\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"KEY\", filtered);\n\n filteredTileFragment.setArguments(bundle);\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.discover_tilefragment, filteredTileFragment);\n //fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n\n\n }",
"public List<Shop> nearestShops(double lat, double lon, double distance) {\n List<Shop> allShops = shopRepository.findByLocationNear(new Point(lon,lat), new Distance(distance, Metrics.KILOMETERS));\n\n logger.info(\"Find \"+allShops.size()+\" shops within \"+distance+\"KM distance\");\n return allShops;\n }",
"Set<Location> extractLocations() {\n try {\n Set<Location> extracted = CharStreams.readLines(\n gazetteer,\n new ExtractLocations(populationThreshold)\n );\n\n // Raw population stats doesn't work great in the internet as-is. Calibrate for online activity\n calibrateWeight(extracted);\n\n return extracted;\n\n } catch (IOException e) {\n throw Throwables.propagate(e);\n }\n }",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;",
"@RequestMapping(\"/viewAllLocs\")\n\tpublic String getAllLocs(ModelMap map){\n\t\tList<Location> locList=service.getAllLocations();\n\t\tmap.addAttribute(\"locListObj\", locList);\n\t\treturn \"LocationData\";\n\t}",
"public List<LocationInfo> getAllLocation() {\n return allLocation;\n }",
"public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}",
"List<Location> selectByExample(LocationExample example);",
"public List<GeoRegionInner> locations() {\n return this.locations;\n }",
"@Override\n public List<Location> getAll() {\n\n List<Location> locations = new ArrayList<>();\n \n Query query = new Query(\"Location\");\n PreparedQuery results = ds.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n double lat = (double) entity.getProperty(\"lat\");\n double lng = (double) entity.getProperty(\"lng\");\n String title = (String) entity.getProperty(\"title\");\n String note = (String) entity.getProperty(\"note\");\n int voteCount = ((Long) entity.getProperty(\"voteCount\")).intValue();\n String keyString = KeyFactory.keyToString(entity.getKey()); \n // TODO: Handle situation when one of these properties is missing\n\n Location location = new Location(title, lat, lng, note, voteCount, keyString);\n locations.add(location);\n }\n return locations;\n }",
"public ArrayList<LocationDetail> getLocations() throws LocationException;",
"@Query(value = \"select * from movie_cinema join cinema c on c.id = movie_cinema.cinema_id join location l on c.location_id = l.id where l.name = ?1\",nativeQuery = true)\n List<MovieCinema> retrieveAllByLocationName(String locationName);",
"public ArrayList< LocationHandler >findNear ( double lat, double lon){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT \"+ table_location +\".*, \" +\n\t\t\t\t\"(( \" + lat +\" - \" + table_location+\".\"+ key_latitude +\") * (\" + lat +\" - \" + table_location+\".\"+ key_latitude +\") + \" +\n\t\t\t\t\"(\" + lon +\" - \" + table_location+\".\"+ key_longitude +\") * (\" + lon +\" - \" + table_location+\".\"+ key_longitude +\"))\" +\n\t\t\t\t\" AS distance \"+ \n\t\t\t\t\" FROM \" + table_location + \" LEFT JOIN \" + table_locationType + \" ON \" +\n\t\t\t\ttable_location +\".\"+key_type + \" = \" + table_locationType+ \".\" +key_base_id +\n\t\t\t\t\" ORDER BY distance\";\n\t\t//\t\t\t\t\t\" ORDER BY \" + \"ABS( \" + table_location +\".\" +key_latitude + \" - \" + lon + \") \" + \" AND \" \n\t\t//\t\t\t\t\t + \"ABS( \" + table_location +\".\"+ key_longitude + \" - \" + lat + \") \" + \" DESC\";\n\t\tLog.i(TAG, \"near \" + selectQuery);\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6));\n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tdb.close();\n\t\treturn locationList;\n\t}",
"public List<FavoriteLocation> queryAllLocations() {\n\t\tArrayList<FavoriteLocation> fls = new ArrayList<FavoriteLocation>(); \n\t\tCursor c = queryTheCursorLocation(); \n\t\twhile(c.moveToNext()){\n\t\t\tFavoriteLocation fl = new FavoriteLocation();\n\t\t\tfl._id = c.getInt(c.getColumnIndex(\"_id\"));\n\t\t\tfl.description = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_DES));\n\t\t\tfl.latitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LAT));\n\t\t\tfl.longitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LON));\n\t\t\tfl.street_info = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_STREET));\n\t\t\tfl.type = c.getInt(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY));\n\t\t\tbyte[] image_byte = c.getBlob(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_PIC)); \n\t\t\tfl.image = BitmapArrayConverter.convertByteArrayToBitmap(image_byte);\n\t\t\tfl.title = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_TITLE));\n\t\t\tfls.add(fl);\n\t\t}\n\t\t// close the cursor\n\t\tc.close();\n\t\treturn fls;\n\t}",
"private static String getKitchenIDListFromLocation(String city,String location, Integer cuisineId){\n\t\tString kitchenIds = \"\";\n\t\tArrayList<Integer> kitchenIdList = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tSQLKITCHENLIST:{\n\t\t\tConnection connection = null;\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tconnection = DBConnection.createConnection();\n\t\t\tString sql = \"select distinct fkd.kitchen_id \"\n\t\t\t\t\t+\" from fapp_kitchen_details fkd \"\n\t\t\t\t\t+\" join sa_area sa \"\n\t\t\t\t\t+\" on fkd.area_id = sa.area_id \" \n\t\t\t\t\t+\" join fapp_kitchen fk \"\n\t\t\t\t\t+\" on fk.kitchen_id = fkd.kitchen_id \"\n\t\t\t\t\t+\" where sa.area_id = \"\n\t\t\t\t\t+\" (select area_id from sa_area where area_name ILIKE ? and city_id = \"\n\t\t\t\t\t+\" (select city_id from sa_city where city_name ILIKE ?))\"\n\t\t\t\t\t+\" and fkd.cuisin_id = ? \"\n\t\t\t\t\t+\" and fk.is_active = 'Y'\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tpreparedStatement.setString(1, location);\n\t\t\t\tpreparedStatement.setString(2, city);\n\t\t\t\tpreparedStatement.setInt(3, cuisineId);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tkitchenIdList.add(resultSet.getInt(\"kitchen_id\"));\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tif(preparedStatement!=null){\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif(resultSet!=null){\n\t\t\t\t\tresultSet.close();\n\t\t\t\t}\n\t\t\t\tif(connection!=null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\tStringBuilder kitchenIdListBuilder = new StringBuilder();\n\t\tString temp = kitchenIdList.toString();\n\t\tString fb = temp.replace(\"[\", \"(\");\n\t\tString bb = fb.replace(\"]\", \")\");\n\t\tkitchenIdListBuilder.append(bb);\n\t\tkitchenIds = kitchenIdListBuilder.toString();\n\t\tSystem.out.println(\"KitchenIds -->\"+kitchenIds);\n\t\treturn kitchenIds;\n\t}",
"@GetMapping(\"/getAllLocation\")\n public ResponseEntity<List<LocationModel>> getAllLocation() {\n \n List<LocationModel> list = locationRepository.findAll();\n if (list.isEmpty()) {\n return new ResponseEntity<List<LocationModel>>(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity<List<LocationModel>>(list, HttpStatus.OK);\n }",
"public List<LocVo> selectLoc(String catname) {\n\t\treturn sqlSession.selectList(\"product.selectLoc\", catname);\n\t}",
"private List<IacucProtocolSpeciesStudyGroup> getLocationProcedureDetails(List<IacucProtocolSpeciesStudyGroup> iacucProtocolSpeciesStudyGroups, \n IacucProtocolStudyGroupLocation iacucProtocolStudyGroupLocation) {\n List<IacucProtocolSpeciesStudyGroup> locationProcedureDetails = new ArrayList<IacucProtocolSpeciesStudyGroup>();\n for(IacucProtocolSpeciesStudyGroup iacucProtocolSpeciesStudyGroup : iacucProtocolSpeciesStudyGroups) {\n HashSet<Integer> studyGroupProcedures = new HashSet<Integer>();\n List<IacucProtocolStudyGroupBean> responsibleProcedures = new ArrayList<IacucProtocolStudyGroupBean>();\n for(IacucProtocolStudyGroup iacucProtocolStudyGroup : iacucProtocolSpeciesStudyGroup.getIacucProtocolStudyGroups()) {\n if(studyGroupProcedures.add(iacucProtocolStudyGroup.getIacucProtocolStudyGroupHeaderId())) {\n IacucProtocolStudyGroupBean newIacucProtocolStudyGroupBean = getNewCopyOfStudyGroupBean(iacucProtocolStudyGroup.getIacucProtocolStudyGroupBean());\n if(isLocationResponsibleForProcedure(iacucProtocolStudyGroupLocation, iacucProtocolStudyGroup)) {\n newIacucProtocolStudyGroupBean.setProcedureSelected(true);\n newIacucProtocolStudyGroupBean.setNewProcedure(false);\n }\n responsibleProcedures.add(newIacucProtocolStudyGroupBean);\n }\n }\n iacucProtocolSpeciesStudyGroup.setResponsibleProcedures(responsibleProcedures);\n locationProcedureDetails.add(iacucProtocolSpeciesStudyGroup);\n }\n return locationProcedureDetails;\n }",
"void setLocationCells(ArrayList<String> loc){\r\n locationCells = loc;\r\n }",
"@PostMapping(\"/citiesbyname\")\n\tprivate List<Map<String, Object>> getCitiesByName(@Valid @RequestBody Location location) {\n\t\t\n\t\tprimeRealtyLogger.debug(LocationService.class, \"getCitiesByName() -> cityName: \" + location.getCityName() + \", stateCode: \" + location.getStateCode());\n\t\t\t\t\n\t\tList<Map<String, Object>> rows = new ArrayList<Map<String, Object>>();\n\t\tMap<String, Object> columns = new HashMap<String, Object>();\n\t\t\n\t\tif(location.getCityName()!= null && location.getCityName().length() >= 5) {\t\n\t\t\t\n\t\t\trows = locationDao.getCitiesByName(location.getCityName(), location.getStateCode());\n\t\t\t\n\t\t\tprimeRealtyLogger.debug(LocationService.class, \"getCitiesByName() -> databse fetch size: \" + rows.size());\n\t\t\t\t\t\n\t\t} else {\n\t\t\tcolumns.put(\"CityName\", \"minimum 5 characters required\");\n\t\t\tcolumns.put(\"StateCode\", null);\n\t\t\tcolumns.put(\"ZipCode\", null);\n\t\t\trows.add(columns);\n\t\t}\n\t\t\n\t\treturn rows;\n\t}",
"public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Set<Location> get_all_locations() {\n Set<Location> locations = new HashSet<Location>();\n try {\n Object obj = JsonUtil.getInstance().getParser().parse(this.text);\n JSONObject jsonObject = (JSONObject) obj;\n JSONArray array = (JSONArray) jsonObject.get(\"pictures\");\n Iterator<String> iterator = array.iterator();\n while (iterator.hasNext()) {\n locations.add(new Location(iterator.next()));\n }\n return locations;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public Cursor getAllLocationsLoc(){\n if (mDB != null)\n return mDB.query(LOCNODE_TABLE, new String[] { FIELD_ROW_ID, FIELD_NAME, FIELD_ADDY, FIELD_LAT , FIELD_LNG, FIELD_TIMESVISITED }, null, null, null, null, null);\n Cursor c = null;\n return c;\n }",
"public synchronized static List<Store> loadStoresNotAffectToLocation(Connection c) throws SQLException {\r\n //list of shop\r\n List<Store> listShop = new ArrayList<>();\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs = myStmt.executeQuery(\"select * from magasin where idMagasin not in (select Magasin_idMagasin from emplacement_has_magasin)\");\r\n //Loop which add a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int loyer = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int niveau = myRs.getInt(\"niveau\");\r\n String localisation = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store M = new Store(id, designation, description, loyer, surface, niveau, localisation, list);\r\n\r\n listShop.add(M);\r\n }\r\n myStmt.close();\r\n return listShop;\r\n\r\n }",
"public void searchAreaFull(Connection connection, String city, String state, int zip) throws SQLException{\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ? AND state = ? AND zip = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n setState(state);\n pStmt.setString(2, getState());\n setZip(zip);\n pStmt.setInt(3, getZip());\n\n try {\n\n System.out.println(\" Hotels in area:\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }",
"java.util.List<phaseI.Hdfs.DataNodeLocation> \n getLocationsList();",
"private Location pickLocation(List<Location> locations){\n\t\tList<Location> temp =new ArrayList<Location>(locations); \n\t\t\n\t\ttemp = filterOnAffordancesL(temp); //Easier to give a new list back and change ref.\n\t\tList<Location> aFiltered = new ArrayList<Location>(temp);\n\t\tif(isHomogenous(aFiltered)) return pickAccordingToPreference(temp);\n\t\t\n\t\tList<Location> hFiltered= new ArrayList<Location>(temp);; //hack\n\t\tif(CFG.isFilteredOnHabits()){\n\t\ttemp = filterOnHabitsL(temp);\n\t\thFiltered = new ArrayList<Location>(temp);\n\t\tif(hFiltered.isEmpty()) temp = new ArrayList<Location>(aFiltered); //Reroll if empty\n\t\telse if(isHomogenous(hFiltered)) return pickAccordingToPreference(temp);\n\t\t}\n\t\t\n\t\tif(CFG.isIntentional()){\n\t\ttemp = filterOnIntentionsL(temp);\n\t\tList<Location> iFiltered = new ArrayList<Location>(temp);\n\t\tif(iFiltered.isEmpty()){\n\t\t\ttemp = new ArrayList<Location>(hFiltered); //unique case where habits for non-prefered stuff'\n\t\t\tif(hFiltered.isEmpty()){\n\t\t\t\tSystem.out.println(\"This can't be\");\n\t\t\t\ttemp = new ArrayList<Location>(aFiltered);\n\t\t\t}\n\t\t}\n\t\t}\n\t\t\n\t\treturn pickAccordingToPreference(temp);\n\t}",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsResponse getBSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsRequest getBSLocationsRequest\n )\n ;",
"private ResultSet getSpatialQueryResults(final Connection conn, final SearchRegion region) throws SQLException {\n final Statement stmt = conn.createStatement();\n final double lx = region.getLx(), ly = region.getLy(), rx = region.getRx(), ry = region.getRy();\n\n //Careful about the precision of the float from string formatter\n final String spatial_query = String.format(\"SELECT * FROM item_location WHERE \"\n + \"MBRContains(GeomFromText('Polygon((%f %f, %f %f, %f %f, %f %f, %f %f))'), coord)\", \n lx, ly, lx, ry, rx, ry, rx, ly, lx, ly);\n return stmt.executeQuery(spatial_query);\n }",
"public List zipcodeWithSuppliersList() throws AdException {\r\n\t\t try {\r\n\t\t begin();\r\n\t\t Query q = getSession().createSQLQuery(\"select DISTINCT zipcode from Zipcode\");\r\n\t\t List list = q.list();\r\n\t\t commit();\r\n\t\t return list;\r\n\t\t } catch (HibernateException e) {\r\n\t\t rollback();\r\n\t\t throw new AdException(\"Could not list the zipcodes where suppliers are present \", e);\r\n\t\t }\r\n\t\t }",
"List<Place> findUnboundLocationPlaceholders();",
"private void cleanUpLocations(Long id) {\n// List<SingleNucleotidePolymorphism> snps =\n// singleNucleotidePolymorphismRepository.findByLocationsId(id);\n// List<GenomicContext> genomicContexts = genomicContextRepository.findByLocationId(id);\n List<SingleNucleotidePolymorphism> snps =\n singleNucleotidePolymorphismRepository.findIdsByLocationId(id);\n List<GenomicContext> genomicContexts = genomicContextRepository.findIdsByLocationId(id);\n\n if (snps.size() == 0 && genomicContexts.size() == 0) {\n locationRepository.delete(id);\n }\n }",
"private ArrayList<Integer> shortestLists(ArrayList<HashMap<Integer,Integer>> table, ArrayList<Integer> pool){\n ArrayList<Integer> subPool = new ArrayList<Integer>();\n int shortestEdgesElement = -1;\n for(int i = 0; i < pool.size(); i++){\n if(shortestEdgesElement < 0 || table.get(pool.get(i)).size() < shortestEdgesElement){\n shortestEdgesElement = table.get(pool.get(i)).size();\n }\n }\n\n for(int i = 0; i < pool.size(); i++){\n if(table.get(pool.get(i)).size() == shortestEdgesElement){\n subPool.add(pool.get(i));\n }\n }\n\n //This should never trigger, but just incase its here\n if(subPool.size() <= 0){\n return pool;\n }\n\n return subPool;\n }",
"public static ArrayList<XYCoord> findVisibleLocations(GameMap map, Unit viewer, boolean piercing)\n {\n return findVisibleLocations(map, viewer, viewer.x, viewer.y, piercing);\n }",
"public void searchArea(Connection connection, String city, String state, int zip) throws SQLException {\n\n ResultSet rs = null;\n PreparedStatement pStmt = null;\n String sql1 = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ?\";\n String sql2 = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE state = ?\";\n String sql3 = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE zip = ?\";\n\n // City and State combination:\n if (city != null && state != null){\n\n pStmt = connection.prepareStatement(sql1 + \" INTERSECT \" + sql2);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n setState(state);\n pStmt.setString(2, getState());\n }\n\n // City and ZIP combination:\n else if (city != null){\n\n pStmt = connection.prepareStatement(sql1 + \" INTERSECT \" + sql3);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n setZip(zip);\n pStmt.setInt(2, getZip());\n }\n\n // State and ZIP combination:\n else {\n\n pStmt = connection.prepareStatement(sql2 + \" INTERSECT \" + sql3);\n pStmt.clearParameters();\n\n setState(state);\n pStmt.setString(1, getState());\n setZip(zip);\n pStmt.setInt(2, getZip());\n }\n\n try {\n\n System.out.println(\" Hotels in area:\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n String result;\n\n while (rs.next()) {\n\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }",
"static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}",
"public List<EntityPropertyLocation> find();",
"public List<Location> getLocations() {\n\t\treturn locations;\n\t}",
"@GetMapping(path=\"/all\")\n public @ResponseBody Iterable<driverlocation> getAllUsers() {\n return locationRepository.findAll();\n }",
"public ArrayList< LocationHandler >getAllLocationFilter (String filter){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT * FROM \" + table_location + \" WHERE \" + key_name + \" LIKE + \" + \" '%\" + filter + \"%'\" + \" ORDER BY \" + key_date_entry; \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6));\n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tdb.close();\n\t\treturn locationList;\n\t}",
"public ArrayList<Location> getLocations() {\n return locations;\n }",
"public String[] getAllLocations() {\n // STUB: Return the list of source names\n return null;\n }",
"public ArrayList<Location> getDocks() {\n return locations.stream().filter(loc -> loc.getClass().getSimpleName().equals(\"Dock\")).collect(Collectors.toCollection(ArrayList::new));\n }",
"@FXML\n void loadComboBoxLocationValues() {\n ArrayList<Location> locations = LocationDAO.LocationSEL(-1);\n comboBoxLocation.getItems().clear();\n if (!locations.isEmpty())\n for (Location location : locations) {\n comboBoxLocation.getItems().addAll(location.getLocationID());\n }\n }",
"private void getLocations() {\n TripSave tripSave = TripHelper.tripOngoing();\n if (tripSave != null) {\n for (LocationSave locationSave : tripSave.getLocations()) {\n if (locationSave != null) {\n tripTabFragment.drawPolyLine(new LatLng(locationSave.getLatitude(), locationSave.getLongitude()));\n }\n }\n }\n }",
"public void storeSnpLocation(Map<String, Set<Location>> snpToLocations) {\n for (String snpRsId : snpToLocations.keySet()) {\n\n Set<Location> snpLocationsFromMapping = snpToLocations.get(snpRsId);\n\n // Check if the SNP exists\n SingleNucleotidePolymorphism snpInDatabase =\n singleNucleotidePolymorphismRepository.findByRsId(snpRsId);\n if(snpInDatabase == null){\n snpInDatabase =\n singleNucleotidePolymorphismQueryService.findByRsIdIgnoreCase(snpRsId);\n }\n\n if (snpInDatabase != null) {\n\n // Store all new location objects\n Collection<Location> newSnpLocations = new ArrayList<>();\n\n for (Location snpLocationFromMapping : snpLocationsFromMapping) {\n\n String chromosomeNameFromMapping = snpLocationFromMapping.getChromosomeName();\n if (chromosomeNameFromMapping != null) {\n chromosomeNameFromMapping = chromosomeNameFromMapping.trim();\n }\n\n Integer chromosomePositionFromMapping = snpLocationFromMapping.getChromosomePosition();\n// if (chromosomePositionFromMapping != null) {\n// chromosomePositionFromMapping = chromosomePositionFromMapping.trim();\n// }\n\n Region regionFromMapping = snpLocationFromMapping.getRegion();\n String regionNameFromMapping = null;\n if (regionFromMapping != null) {\n if (regionFromMapping.getName() != null) {\n regionNameFromMapping = regionFromMapping.getName().trim();\n }\n }\n\n // Check if location already exists\n Location existingLocation =\n locationRepository.findByChromosomeNameAndChromosomePositionAndRegionName(\n chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n\n if (existingLocation != null) {\n newSnpLocations.add(existingLocation);\n }\n // Create new location\n else {\n Location newLocation = locationCreationService.createLocation(chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n newSnpLocations.add(newLocation);\n }\n }\n\n // If we have new locations then link to snp and save\n if (newSnpLocations.size() > 0) {\n\n // Set new location details\n snpInDatabase.setLocations(newSnpLocations);\n // Update the last update date\n snpInDatabase.setLastUpdateDate(new Date());\n singleNucleotidePolymorphismRepository.save(snpInDatabase);\n }\n else {getLog().warn(\"No new locations to add to \" + snpRsId);}\n\n }\n\n // SNP doesn't exist, this should be extremely rare as SNP value is a copy\n // of the variant entered by the curator which\n // by the time mapping is started should already have been saved\n else {\n // TODO WHAT WILL HAPPEN FOR MERGED SNPS\n getLog().error(\"Adding location for SNP not found in database, RS_ID:\" + snpRsId);\n throw new RuntimeException(\"Adding location for SNP not found in database, RS_ID: \" + snpRsId);\n\n }\n\n }\n }",
"java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();",
"public List<String> locations() {\n return this.locations;\n }",
"@Override\n public ArrayList<ICatLocDetail> getLocalities() {\n return localities;\n }",
"@Override\n public Map<String,Map<String,Object>> getLocatedLocations() {\n Map<String,Map<String,Object>> result = new LinkedHashMap<String,Map<String,Object>>();\n Map<Location, Integer> counts = new EntityLocationUtils(mgmt()).countLeafEntitiesByLocatedLocations();\n for (Map.Entry<Location,Integer> count: counts.entrySet()) {\n Location l = count.getKey();\n Map<String,Object> m = MutableMap.<String,Object>of(\n \"id\", l.getId(),\n \"name\", l.getDisplayName(),\n \"leafEntityCount\", count.getValue(),\n \"latitude\", l.getConfig(LocationConfigKeys.LATITUDE),\n \"longitude\", l.getConfig(LocationConfigKeys.LONGITUDE)\n );\n result.put(l.getId(), m);\n }\n return result;\n }",
"public static void listGeolocations()\n {\n {\n JSONArray listGeolocations = new JSONArray();\n List<User> users = User.findAll();\n for (User user : users)\n {\n listGeolocations.add(Arrays.asList(user.firstName, user.latitude, user.longitude));\n }\n renderJSON(listGeolocations);\n }\n }",
"public Location[] getLocation() {\r\n return locations;\r\n }",
"public List<Map<String, AttributeValue>> findStations(Point point, Distance radiusInMeters) {\n GeoPoint centerPoint = new GeoPoint(point.getY(), point.getX());\n\n QueryRadiusRequest queryRadiusRequest = new QueryRadiusRequest(centerPoint, radiusInMeters.in(Metrics.KILOMETERS).getValue() * 1000);\n QueryRadiusResult queryRadiusResult = geoDataManager.queryRadius(queryRadiusRequest);\n\n return queryRadiusResult.getItem();\n }",
"public List<Place> getParkingAreas(Collection<String> servicesRequested) {\n\t\tList<Place> parkingAreasRequested = new ArrayList<Place>();\n\t\tfor(Place p: placesByUri.values()){\n\t\t\tboolean pIsParkingArea = p.getParkingArea() != null;\n\t\t\tif(pIsParkingArea){\n\t\t\t\tboolean hasServices = true;\n\t\t\t\tif(servicesRequested != null && !servicesRequested.isEmpty()){\n\t\t\t\t\thasServices = p.getParkingArea().getServicesId().getServiceId()\n\t\t\t\t\t\t\t .containsAll(\n\t\t\t\t\t\t\t \t\t servicesRequested\n\t\t\t\t\t\t\t );\t\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif(hasServices){\n\t\t\t\t\tparkingAreasRequested.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn parkingAreasRequested;\n\t}",
"public void getNearByPlaces(Location location, String searchQuery, boolean type){\n /**\n * If subscription is already active, then Un subscribe it.\n */\n if(nbpListSubscription != null && !nbpListSubscription.isUnsubscribed())\n nbpListSubscription.unsubscribe();\n\n nbpListSubscription = Observable.concat(\n fetchNearByPlaceFromRealm(),\n fetchNearByPlaceFromServer(location, searchQuery, type))\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n /**\n * TakeFirst will emit only when the condition is satisfied.\n * In this case, emit item from the source observable only when\n * the list is not null or when it has at least one element.\n */\n .takeFirst(new Func1<NearByPlaces, Boolean>() {\n @Override\n public Boolean call(NearByPlaces nearByPlaces) {\n return (nearByPlaces != null);\n }\n }).subscribe(new Action1<NearByPlaces>() {\n @Override\n public void call(NearByPlaces nearByPlaces) {\n NearByPlacesDS.this.nbpListPublishSubject.onNext(nearByPlaces);\n }\n },new Action1<Throwable>() {\n @Override\n public void call(Throwable error) {\n NearByPlacesDS.this.nbpListPublishSubject.onError(error);\n }\n });\n\n }",
"public ArrayList<Location> getLocations() {\n return this.imageLocs; \n }",
"@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}",
"@Override\r\n\tpublic ArrayList<SchoolValue> getValuesFiltered(Boolean searchByPcode, String pCode, Double radius, Boolean searchByDistrict, String district, Boolean searchByString, String search, Boolean searchByClassSize, int minSize, int maxSize) {\r\n\t\t// 3 preps here, for defensive coding (not bothering to search for something if it's null) and to fill latitude, longitude\r\n\t\t// pCode prep\r\n\t\tLatLong aLatLong = null;\r\n\t\tDouble latitude = 0.0;\r\n\t\tDouble longitude = 0.0;\r\n\t\tif (pCode != null) {\r\n\t\t\taLatLong = findLatLong(pCode);\r\n\t\t\tif (aLatLong != null) {\r\n\t\t\t\tlatitude = aLatLong.getLatitude();\r\n\t\t\t\tlongitude = aLatLong.getLongitude();\r\n\t\t\t} else {\r\n\t\t\t\tsearchByPcode = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsearchByPcode = false;\r\n\t\t}\r\n\t\t\r\n\t\t// district prep\r\n\t\tif (district == null)\r\n\t\t\tsearchByDistrict = false;\r\n\t\t\r\n\t\t// search prep\r\n\t\tif (search == null)\r\n\t\t\tsearchByString = false;\r\n\t\t\r\n\t\t// populate a list of districts \r\n\t\tArrayList<District> districts = BCDistricts.getInstance().getDistricts();\r\n\r\n\t\t// populate a list of schools from districts\r\n\t\tArrayList<School> schools = new ArrayList<School>();\r\n\t\tfor (int i = 0; i<districts.size();i++) {\r\n\t\t\tschools.addAll(districts.get(i).schools);\r\n\t\t}\r\n\t\t\r\n\t\t// populate a list of schoolvalues from schools, filtering\r\n\t\tArrayList<SchoolValue> schoolValues = new ArrayList<SchoolValue>();\r\n\t\t\r\n\t\tfor (int i = 0; i<schools.size();i++) {\r\n\t\t\tSchool school = schools.get(i);\r\n\t\t\t// (!searching || result) && (!searching || result) && (!searching || result)\r\n\t\t\t// T T => T, T F => F, F T => T, F F => T\r\n\t\t\t// for a filter component to pass, either we're not searching for something (ignore result)\r\n\t\t\t// or we are and result is true, thus (!searching || result) && (...) format\r\n\t\t\tif ((!searchByPcode || areWithinRange(latitude, longitude, school.getLat(), school.getLon(), radius)) && // TODO: EXTRACT TESTING METHOD\r\n\t\t\t\t(!searchByDistrict || stringMatchesTo(district, school.getDistrict().name)) &&\r\n\t\t\t\t(!searchByString || ( stringMatchesTo(search, school.getName()) ||\r\n\t\t\t\t\t\t\t\t\t\tstringMatchesTo(search, school.getLocation()) || \r\n\t\t\t\t\t\t\t\t\t\tstringMatchesTo(search, school.getDistrict().name))) &&\r\n\t\t\t\t(!searchByClassSize || ((school.getClassSize() >= minSize) && (school.getClassSize() <= maxSize)))) { \r\n\r\n\t\t\tschoolValues.add(school.getEquivSchoolValue());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: ADD SORTING\r\n\t\t}\r\n\t\t\r\n\t\treturn schoolValues;\r\n\t}",
"public abstract List<LocationDto> search_type_building\n (BuildingDto building, LocationTypeDto type);",
"@Test\r\n\tpublic void testLocationCircleQuery() {\r\n\t\tlog.debug(\"<<<<<<<<<<<<<<<<< testLocationCircleQuery >>>>>>>>>>>>>>>>>>>>\");\r\n\r\n\t\t/*\r\n\t\t * List<Location> locations = locationService.findByCityAndState(\r\n\t\t * \"Wheeling\", \"WV\");\r\n\t\t */\r\n\r\n\t\tList<Location> locations = locationService\r\n\t\t\t\t.findByCityAndStateAndZipCode(\"Wheeling\", \"WV\", \"26003\");\r\n\r\n\t\tlog.debug(\"List Size: \" + locations.size());\r\n\r\n\t\tassertNotNull(\"locations[0] was null.\", locations.get(0));\r\n\r\n\t\tassertEquals(\"City was not correct.\", \"Wheeling\", locations.get(0)\r\n\t\t\t\t.getCity());\r\n\t\tassertEquals(\"State was not correct.\", \"WV\", locations.get(0)\r\n\t\t\t\t.getState());\r\n\t\tassertEquals(\"ZipCode was not correct.\", \"26003\", locations.get(0)\r\n\t\t\t\t.getZipCode());\r\n\r\n\t\t// Used to troubleshoot Location Repo\r\n\t\t/*\r\n\t\t * DBObject query = new BasicDBObject(); query.put(\"city\", \"Wheeling\");\r\n\t\t * query.put(\"state\", \"WV\");\r\n\t\t * \r\n\t\t * DBObject fields = new BasicDBObject(); fields.put(\"_id\", 0);\r\n\t\t * fields.put(\"city\", 1); fields.put(\"state\", 2);\r\n\t\t * \r\n\t\t * DBCollection collection = this.mongoOps.getCollection(\"locations\");\r\n\t\t * DBCursor cursor = collection.find(query, fields);\r\n\t\t * \r\n\t\t * log.info(cursor.size()+\"\");\r\n\t\t * \r\n\t\t * log.info(cursor.toString());\r\n\t\t * \r\n\t\t * while (cursor.hasNext()) { log.info(cursor.next().toString()); }\r\n\t\t */\r\n\r\n\t\tList<Location> locales = this.locationService\r\n\t\t\t\t.findByGeoWithin(new Circle(locations.get(0).getLongitude(),\r\n\t\t\t\t\t\tlocations.get(0).getLatitude(), 1));\r\n\r\n\t\tfor (Location locale : locales) {\r\n\t\t\tlog.info(locale.toString());\r\n\t\t}\r\n\r\n\t\tassertEquals(\"City was not correct.\", \"Aliquippa\", locales.get(0)\r\n\t\t\t\t.getCity());\r\n\t\tassertEquals(\"City was not correct.\", \"Conway\", locales.get(19)\r\n\t\t\t\t.getCity());\r\n\r\n\t}",
"@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"private List<String> GetWarps(IPlayer owner)\r\n\t{\r\n\t\tif (owner == null)\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=1\");\r\n\t\telse\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=0 AND creator=?\", owner);\r\n\t}",
"public List<UtLocationDTO> findLocationByPartnerId(Long partnerId);",
"public ArrayList<Country> getCountryList() throws LocationException;",
"public ArrayList<Location> getLocations()\n {\n ArrayList<Location> locs = new ArrayList<>();\n for (int row = 0; row < squares.length; row++)\n {\n for (int col = 0; col < squares[0].length; col++)\n {\n locs.add(new Location(row,col));\n }\n }\n return locs;\n }",
"@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}",
"Location selectMoveLocation(ArrayList<Location> locs);",
"public ArrayList<Record> near()\n {\n int count = 0;\n ArrayList<Record> closest = new ArrayList<>();\n System.out.println(\"Community Centres that are 5km or less to your location are: \");\n for(Record i: cCentres)\n {\n //latitude and longitude for each centre\n double lat2 = Double.parseDouble(i.getValue(4));\n double lon2 = Double.parseDouble(i.getValue(3));\n ;\n //distance\n double dist = calcDist(lat2, lon2, cCentres);\n if(dist<=5)\n {\n System.out.println(i + \", Distance: \" + dist + \" km\");\n closest.add(i);\n }\n }\n return closest;\n }",
"public static JSONObject fetchlocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList(jsonObjectcity.getInt(\"cityid\"), false ));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}",
"@Override\n\tpublic List<Supplier> getAllSupplier() {\n\t\tString sql=\"SELECT * FROM supplier\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().query(sql, rowmapper);\n\t}",
"static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }",
"public int getLocationsCount() {\n return locations_.size();\n }",
"public static JSONObject fetchServinglocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList( jsonObjectcity.getInt(\"cityid\") , true));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}",
"public static ArrayList<XYCoord> findVisibleLocations(GameMap map, Unit viewer, int x, int y, boolean piercing)\n {\n ArrayList<XYCoord> viewables = new ArrayList<XYCoord>();\n\n if( map.isLocationValid(x, y) )\n {\n int range = (piercing)? viewer.model.visionRangePiercing : viewer.model.visionRange;\n // if it's a surface unit, give it the boost the terrain would provide\n if( viewer.model.isSurfaceUnit() )\n range += map.getEnvironment(x, y).terrainType.getVisionBoost();\n viewables.addAll(findVisibleLocations(map, new XYCoord(x, y), range, piercing));\n }\n \n return viewables;\n }",
"List<SkuAvailability> lookupSKUAvailabilityForLocation(List<Long> skuIds, Long locationId, boolean realTime);",
"Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );"
] | [
"0.56981605",
"0.5606174",
"0.5530822",
"0.54451233",
"0.54265475",
"0.53893685",
"0.5338083",
"0.53283334",
"0.53216183",
"0.5299121",
"0.5285976",
"0.52378476",
"0.5237326",
"0.51976687",
"0.51758796",
"0.5166731",
"0.51582295",
"0.50933224",
"0.5071048",
"0.5060776",
"0.5057778",
"0.5041662",
"0.50284696",
"0.5024226",
"0.50195014",
"0.50186783",
"0.5018149",
"0.49751452",
"0.49732715",
"0.49679375",
"0.4964018",
"0.49589506",
"0.4904808",
"0.49045414",
"0.48952678",
"0.48585275",
"0.48473743",
"0.48428267",
"0.4840151",
"0.4824561",
"0.48004037",
"0.47953662",
"0.4790335",
"0.47787306",
"0.4776995",
"0.47504076",
"0.47457469",
"0.47361207",
"0.47201577",
"0.4715459",
"0.47103482",
"0.47070947",
"0.47062314",
"0.46929577",
"0.46905053",
"0.46878996",
"0.4680309",
"0.4666324",
"0.46662432",
"0.46640572",
"0.46633887",
"0.46619266",
"0.4660165",
"0.46556038",
"0.4648493",
"0.46276295",
"0.4624406",
"0.4616511",
"0.46149147",
"0.46138692",
"0.46131426",
"0.4608665",
"0.4608125",
"0.46025717",
"0.46004346",
"0.45964068",
"0.45826554",
"0.45768666",
"0.4576375",
"0.4572768",
"0.45697188",
"0.4566555",
"0.4562792",
"0.45605844",
"0.4560269",
"0.45534062",
"0.45522186",
"0.45497316",
"0.4548328",
"0.45426965",
"0.45396748",
"0.45364705",
"0.4536395",
"0.45345792",
"0.45138934",
"0.45135915",
"0.45101762",
"0.45047975",
"0.4501471",
"0.45006928"
] | 0.6034294 | 0 |
filter and return coupon list note :pool locations table contains coupons and pool locations | public ArrayList<poolLocation> getCouponList() {
LoadingDatabasePoolLocation();
ArrayList<poolLocation> temp_CouponList = new ArrayList<poolLocation>();
// remove coupons
for (poolLocation location : POOL_LIST) {
if ((location.getTitle().equals(coupon1ID)
|| location.getTitle().equals(coupon2ID) || location
.getTitle().equals(coupon3ID))
&& location.getIsCouponUsed() == true) // only show coupons which are bought from the mall
temp_CouponList.add(location);
}
return temp_CouponList;
// return POOL_LIST;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<poolLocation> getPoolList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> tempLocationList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(pool1ID)\n\t\t\t\t\t|| location.getTitle().equals(pool2ID) || location\n\t\t\t\t\t.getTitle().equals(pool3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == false)\t\t\t\t\t// only return any pool without buying a coupon\n\t\t\t\ttempLocationList.add(location);\n\t\t}\n\n\t\treturn tempLocationList;\n\n\t\t// return POOL_LIST;\n\t}",
"java.util.List<hr.client.appuser.CouponCenter.AppCoupon> \n getCouponListList();",
"@Override\n\t/** Returns all Coupons of selected Company as an array list */\n\tpublic Collection<Coupon> getCouponsByCompany(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByCompanySQL = \"select * from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByCompanySQL);\n\t\t\t// Set Company ID variable that method received into prepared\n\t\t\t// statement\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"hr.client.appuser.CouponCenter.AppCoupon getCouponList(int index);",
"@Override\n public List<Map<String, Object>> selectCityCouponByCityId(\n Map<String, Object> map) {\n return dao.selectCityCouponByCityId(map);\n }",
"public List zipcodeWithSuppliersList() throws AdException {\r\n\t\t try {\r\n\t\t begin();\r\n\t\t Query q = getSession().createSQLQuery(\"select DISTINCT zipcode from Zipcode\");\r\n\t\t List list = q.list();\r\n\t\t commit();\r\n\t\t return list;\r\n\t\t } catch (HibernateException e) {\r\n\t\t rollback();\r\n\t\t throw new AdException(\"Could not list the zipcodes where suppliers are present \", e);\r\n\t\t }\r\n\t\t }",
"@Override\n\t/**\n\t * Returns all Coupons with price less than value method received as an\n\t * array list sorted descended\n\t */\n\tpublic Collection<Coupon> getCouponsByPrice(int price, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\n\t\t\tString getCouponsByPriceSQL = \"select * from coupon where price < ? and id in(select couponid from compcoupon where companyid = ?) order by price desc\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByPriceSQL);\n\t\t\t// Set price variable that method received into prepared statement\n\t\t\tpstmt.setInt(1, price);\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"public ArrayList<Coupon> getCompanyCoupons() throws SQLException {\r\n\t\tArrayList<Coupon> coupons = couponsDAO.getAllCoupons();\r\n\t\tArrayList<Coupon> coups = new ArrayList<>();\r\n\t\tfor (Coupon coupon : coupons) {\r\n\t\t\tif (companyID == coupon.getCompanyID())\r\n\t\t\t\tcoups.add(coupon);\r\n\t\t}\r\n\t\treturn coups;\r\n\t}",
"@Override\n\t/** Returns all Coupons as an array list */\n\tpublic Collection<Coupon> getAllCoupons() throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve all Coupons via prepared\n\t\t\t// statement\n\t\t\tString getAllCouponsSQL = \"select * from coupon\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getAllCouponsSQL);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"@Override\n\t/** Returns all Coupons of selected type as an array list */\n\tpublic Collection<Coupon> getCouponsByType(String coupType, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByTypeSQL = \"select * from coupon where type = ? and id in(select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByTypeSQL);\n\t\t\t// Set Coupon object type to coupType variable that method received\n\t\t\tpstmt.setString(1, coupType);\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"public Collection<Coupon> getCouponByType(CouponType type) throws DbException;",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Maps the coupon value to a key-value list of that coupons attributes.\")\n\n public Object getCoupons() {\n return coupons;\n }",
"public ArrayList<Coupon> getCoupons(ArrayList<Long> id) {\n\t\treturn couponRepository.getCoupons(id);\n\t}",
"int getCouponListCount();",
"public static List<Map<String,Object>> getData(){\n\t\tList<Map<String,Object>> coupons = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tMap<String,Object> ChoclateCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> MeatCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> ChkCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FruitCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnSalmon = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnCatish = new HashMap<String,Object>();\n\t\t\n\t\tChoclateCpn.put(\"sku\" , \"SKU001\");\n\t\tChoclateCpn.put(\"id\",\"100\");\n\t\tChoclateCpn.put(\"type\",\"GROC\");\n\t\tChoclateCpn.put(\"price\",12);\n\t\tChoclateCpn.put(\"amount\",2);\n\t\t\n\t\tMeatCpn.put(\"sku\" , \"SKU002\");\n\t\tMeatCpn.put(\"id\",\"101\");\n\t\tMeatCpn.put(\"type\",\"MT\");\n\t\tMeatCpn.put(\"price\",10);\n\t\tMeatCpn.put(\"amount\",2);\n\t\t\n\t\tChkCpn.put(\"sku\" , \"SKU003\");\n\t\tChkCpn.put(\"id\",\"103\");\n\t\tChkCpn.put(\"type\",\"MT\");\n\t\tChkCpn.put(\"price\",6);\n\t\tChkCpn.put(\"amount\",1);\n\t\t\n\t\tFruitCpn.put(\"sku\" , \"SKU004\");\n\t\tFruitCpn.put(\"id\",\"104\");\n\t\tFruitCpn.put(\"type\",\"FRUT\");\n\t\tFruitCpn.put(\"price\", 20);\n\t\tFruitCpn.put(\"amount\", 4);\n\t\t\n\t\tFishCpnSalmon.put(\"sku\" , \"SKU005\");\n\t\tFishCpnSalmon.put(\"id\",\"105\");\n\t\tFishCpnSalmon.put(\"type\",\"MT\");\n\t\tFishCpnSalmon.put(\"price\", 12);\n\t\tFishCpnSalmon.put(\"amount\", 2);\n\t\t\n\t\tFishCpnCatish.put(\"sku\" , \"SKU006\");\n\t\tFishCpnCatish.put(\"id\",\"106\");\n\t\tFishCpnCatish.put(\"type\",\"MT\");\n\t\tFishCpnCatish.put(\"price\", 5 );\n\t\tFishCpnCatish.put(\"amount\", 1.5 );\n\t\t\n\t\tcoupons.add( ChoclateCpn);\n\t\tcoupons.add( MeatCpn );\n\t\t\n\t\tcoupons.add( ChkCpn );\n\t\tcoupons.add( FruitCpn );\n\t\t\n\t\tcoupons.add( FishCpnSalmon );\n\t\tcoupons.add( FishCpnCatish );\n\t\t\n\t\treturn coupons;\n\t}",
"private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public Collection<Coupon> getAllCoupon() throws DbException;",
"public java.util.List<hr.client.appuser.CouponCenter.AppCoupon> getCouponListList() {\n return couponList_;\n }",
"public ArrayList<Coupon> getCompanyCoupons(Category category) throws SQLException {\r\n\t\tArrayList<Coupon> coupons = couponsDAO.getAllCoupons();\r\n\t\tArrayList<Coupon> coups = new ArrayList<>();\r\n\t\tfor (Coupon coupon : coupons) {\r\n\t\t\tif (companyID == coupon.getCompanyID())\r\n\t\t\t\tif (coupon.getCategory().equals(category))\r\n\t\t\t\t\tcoups.add(coupon);\r\n\t\t}\r\n\t\treturn coups;\r\n\t}",
"List<Location> getLocations(String coverageType);",
"@Repository\npublic interface CouponDao extends BaseDao<Coupon> {\n /**\n * 根据条件获取优惠券\n * @param serach\n * @return\n */\n List<Coupon> getCouponsBySearch(Coupon serach);\n}",
"public List<String> getLocationAndCity(){\n\t\treturn jtemp.queryForList(\"SELECT location_id||city FROM locations\", String.class);\n\t}",
"@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}",
"@Override\n\tpublic ArrayList<Coupon> getCouponByType(Coupon.CouponType type, Company c) throws CouponSystemException {\n\t\tConnection con = cp.getConnection(); // Get the connection\n\n\t\tCoupon coup = new Coupon();\n\t\tArrayList<Coupon> couponList = new ArrayList<>();\n\t\ttry (Statement st = con.createStatement();\n\t\t\t\tResultSet rs = st.executeQuery(\n\t\t\t\t\t\t\"SELECT coupon.* from company_coupon right join coupon on company_coupon.coupon_id = coupon.id where company_coupon.comp_id=\"\n\t\t\t\t\t\t\t\t+ c.getId() + \"and type= '\" + type + \"'\")) {\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tcoup = new Coupon(rs.getString(2), rs.getDate(3), rs.getDate(4), rs.getInt(5),\n\t\t\t\t\t\tCoupon.CouponType.valueOf(rs.getString(6)), rs.getString(7), rs.getDouble(8), rs.getString(9));\n\t\t\t\tcoup.setId(rs.getLong(1));\n\t\t\t\tcouponList.add(coup);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new CouponSystemException(\"can not read the coupons\", e);\n\t\t} finally {\n\t\t\tcp.returnConnection(con); // return the connection to the Connection pool\n\t\t}\n\t\treturn couponList;\n\t}",
"public final ArrayList<ProductCoupon> getCouponList() {\n return (ArrayList) this.couponList$delegate.getValue();\n }",
"public synchronized static List<String> loadStoresByProfile(Connection c, String profil, int lim) throws SQLException {\r\n List<String> filteredShopList = new ArrayList<>();\r\n //The query which selects all the shops\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops matching the profile\r\n ResultSet myRs = myStmt.executeQuery(\"select magasin.* from magasin, magasin_has_type, type where magasin.idMagasin = magasin_has_type.magasin_idMagasin and magasin_has_type.type_idtype = type.idType and type.designation LIKE '\" + profil +\"%' limit \"+ lim);\r\n //Loop which adds a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int rent = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int floor = myRs.getInt(\"niveau\");\r\n String localization = myRs.getString(\"localisation\");\r\n //liste type \r\n// Statement myStmt2 = c.createStatement();\r\n// //The query which selects all the shops.\r\n// ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n// List<TypeStore> list = new ArrayList<>();\r\n// while (myRs2.next()) {\r\n// int idtype = myRs2.getInt(\"idType\");\r\n// String designationType = myRs2.getString(\"designation\");\r\n// TypeStore T = new TypeStore(idtype, designationType);\r\n// list.add(T);\r\n// }\r\n filteredShopList.add(designation);\r\n }\r\n myStmt.close();\r\n return filteredShopList;\r\n }",
"List<Coupon> findAllByCategory(Category category);",
"List<ListObject> getSupplimentalCodeList();",
"public List<Coupon> getAllCoupons(double minPrice, double maxPrice, String typeName) {\n\t\tList<Coupon> coupons;\n\t\tif (typeName != null && !typeName.trim().isEmpty())\n\t\t\tcoupons = couponRepository.findActiveCouponsByParams(minPrice, maxPrice, typeName);\n\t\telse\n\t\t\tcoupons = couponRepository.findActiveCouponsByPriceRange(minPrice, maxPrice);\n\t\treturn Validations.VerifyNotEmpty(coupons);\n\t}",
"public Collection<Coupon> getCompanyCoupons() {\n return couponRepo.findCouponsByCompanyID(this.companyID);\n }",
"@Query(\"select l from Location l where idLocation not in (select location.idLocation from LocationStore lo)\")\n List<Location> findAvailableLocation();",
"@Override\n\tpublic HashSet<Coupon> getAllCoupon() throws ClassNotFoundException, SQLException, ParseException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\t\tHashSet<Coupon> collectionCoupon = new HashSet<Coupon>();\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_ALL_COUPON_ID);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tcollectionCoupon.add(getCoupon(resultSet.getLong(1)));\n\t\t}\n\t\tConnectionPool.getInstance().returnConnection(connection);\n\t\treturn collectionCoupon;\n\t}",
"@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}",
"List<Coupon> findByCategory(Category category);",
"public ArrayList<CategorySupplier> getCategorySupplierList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<CategorySupplier> list = new ArrayList<CategorySupplier>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblCategorySupplier.class);\n\t\t\tList<TblCategorySupplier> categorysuppliers = cr.list();\n\t\t\tif (categorysuppliers.size() > 0){\n\t\t\t\tfor (Iterator<TblCategorySupplier> iterator = categorysuppliers.iterator(); iterator.hasNext();){\n\t\t\t\t\tTblCategorySupplier tblcategorysupplier = iterator.next();\n\t\t\t\t\tCategorySupplier categorysupplier = new CategorySupplier();\n\t\t\t\t\tcategorysupplier.convertFromTable(tblcategorysupplier);\n\t\t\t\t\tlist.add(categorysupplier);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}",
"List<Coupon> findByCompanyId(int companyId);",
"public List<Location> searchLocations(String search) {\n Query query = entityManager.createQuery(\"select loc from Location loc where loc.code like :search or loc.name like :search or loc.shortName like :search order by loc.locationId\");\r\n query.setParameter(\"search\", \"%\" + search + \"%\");\r\n return query.getResultList();\r\n\t\t/*\r\n Session session = (Session) getEntityManager().getDelegate();\r\n Criteria crit = session.createCriteria(Location.class);\r\n // If this is not set in a hibernate many-to-many criteria query, we'll get multiple results of the same object\r\n crit.setResultTransformer(Criteria.ROOT_ENTITY);\r\n Criterion name = Restrictions.ilike(\"name\", \"%\" + search + \"%\");\r\n Criterion shortName = Restrictions.ilike(\"shortName\", \"%\" + search + \"%\");\r\n Criterion code = Restrictions.ilike(\"code\", \"%\" + search + \"%\");\r\n Criterion shortCode = Restrictions.ilike(\"shortCode\", \"%\" + search + \"%\");\r\n LogicalExpression orExpName = Restrictions.or(name,shortName);\r\n LogicalExpression orExpCode = Restrictions.or(code,shortCode);\r\n LogicalExpression orExpNameCode = Restrictions.or(orExpName,orExpCode);\r\n crit.add(orExpNameCode);\r\n return crit.list();\r\n */\r\n\t}",
"public List getGestionStockList(Map criteria);",
"@Override\n\tpublic List<SupplierView> getSupplierDistinctName() {\n\t\tString sql=\"SELECT DISTINCT(s.supplier_name) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"private static String getKitchenIDListFromLocation(String city,String location, Integer cuisineId){\n\t\tString kitchenIds = \"\";\n\t\tArrayList<Integer> kitchenIdList = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tSQLKITCHENLIST:{\n\t\t\tConnection connection = null;\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tconnection = DBConnection.createConnection();\n\t\t\tString sql = \"select distinct fkd.kitchen_id \"\n\t\t\t\t\t+\" from fapp_kitchen_details fkd \"\n\t\t\t\t\t+\" join sa_area sa \"\n\t\t\t\t\t+\" on fkd.area_id = sa.area_id \" \n\t\t\t\t\t+\" join fapp_kitchen fk \"\n\t\t\t\t\t+\" on fk.kitchen_id = fkd.kitchen_id \"\n\t\t\t\t\t+\" where sa.area_id = \"\n\t\t\t\t\t+\" (select area_id from sa_area where area_name ILIKE ? and city_id = \"\n\t\t\t\t\t+\" (select city_id from sa_city where city_name ILIKE ?))\"\n\t\t\t\t\t+\" and fkd.cuisin_id = ? \"\n\t\t\t\t\t+\" and fk.is_active = 'Y'\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tpreparedStatement.setString(1, location);\n\t\t\t\tpreparedStatement.setString(2, city);\n\t\t\t\tpreparedStatement.setInt(3, cuisineId);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tkitchenIdList.add(resultSet.getInt(\"kitchen_id\"));\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tif(preparedStatement!=null){\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif(resultSet!=null){\n\t\t\t\t\tresultSet.close();\n\t\t\t\t}\n\t\t\t\tif(connection!=null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\tStringBuilder kitchenIdListBuilder = new StringBuilder();\n\t\tString temp = kitchenIdList.toString();\n\t\tString fb = temp.replace(\"[\", \"(\");\n\t\tString bb = fb.replace(\"]\", \")\");\n\t\tkitchenIdListBuilder.append(bb);\n\t\tkitchenIds = kitchenIdListBuilder.toString();\n\t\tSystem.out.println(\"KitchenIds -->\"+kitchenIds);\n\t\treturn kitchenIds;\n\t}",
"public ArrayList<Country> getCountryList() throws LocationException;",
"public synchronized static List<Store> loadStores(Connection c, String profil) throws SQLException {\r\n List<Store> filteredShopList = new ArrayList<>();\r\n //The query which selects all the shops\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops matching the profile\r\n ResultSet myRs = myStmt.executeQuery(\"select magasin.* from magasin, magasin_has_type, type where magasin.idMagasin = magasin_has_type.magasin_idMagasin and magasin_has_type.type_idtype = type.idType and type.designation LIKE \" + profil);\r\n //Loop which adds a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int rent = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int floor = myRs.getInt(\"niveau\");\r\n String localization = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store s = new Store(id, designation, description, rent, surface, floor, localization, list);\r\n filteredShopList.add(s);\r\n }\r\n myStmt.close();\r\n return filteredShopList;\r\n }",
"@Override\n\t/**\n\t * Returns all Coupons with end date up to value method received as an array\n\t * list sorted descended\n\t */\n\tpublic Collection<Coupon> getCouponsByDate(Date date, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByEndDateSQL = \"select * from coupon where end_date < ? and id in(select couponid from compcoupon where companyid = ?) order by end_date desc\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByEndDateSQL);\n\t\t\t// Set date variable that method received into prepared statement\n\t\t\tpstmt.setDate(1, getSqlDate(date));\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"List<Coupon> findByCompanyIdAndCategory(int companyId, Category category);",
"@Override\n\tpublic List<BeanCoupon> loadAllUserCoupons(BeanUser u) throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"SELECT * FROM coupon WHERE coupon_id in\"\n\t\t\t\t\t+ \"(SELECT coupon_id FROM user_coupon WHERE user_id=?) \"\n\t\t\t\t\t+ \"and coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, u.getUser_id());\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\treturn result;\t\n\t}",
"public int getCouponListCount() {\n return couponList_.size();\n }",
"@Transactional\n\tpublic List<Location> listAllLocation() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Location> criteriaQuery = builder.createQuery(Location.class);\n\t\tRoot<Location> root = criteriaQuery.from(Location.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Location> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}",
"public ArrayList<Coupon> getCompanyCoupons(double maxPrice) throws SQLException {\r\n\t\tArrayList<Coupon> coupons = couponsDAO.getAllCoupons();\r\n\t\tArrayList<Coupon> coups = new ArrayList<>();\r\n\t\tfor (Coupon coupon : coupons) {\r\n\t\t\tif (companyID == coupon.getCompanyID())\r\n\t\t\t\tif (coupon.getPrice() <= maxPrice)\r\n\t\t\t\t\tcoups.add(coupon);\r\n\t\t}\r\n\t\treturn coups;\r\n\t}",
"@Override\n\tpublic List<Coupon> queryCoupon(String userID,String status) {\n\t\treturn lm.queryCoupon(userID,status);\n\t}",
"public synchronized static List<Store> loadStoresNotAffectToLocation(Connection c) throws SQLException {\r\n //list of shop\r\n List<Store> listShop = new ArrayList<>();\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs = myStmt.executeQuery(\"select * from magasin where idMagasin not in (select Magasin_idMagasin from emplacement_has_magasin)\");\r\n //Loop which add a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int loyer = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int niveau = myRs.getInt(\"niveau\");\r\n String localisation = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store M = new Store(id, designation, description, loyer, surface, niveau, localisation, list);\r\n\r\n listShop.add(M);\r\n }\r\n myStmt.close();\r\n return listShop;\r\n\r\n }",
"List getCompanies(OwnCodes ownCodes) throws PopulateDataException;",
"@Override\r\n\tpublic List<Map<String, String>> getShopClassList(Map<String, String> condition) {\n\t\treturn shopClassMapperSelf.getShopClassList(condition);\r\n\t}",
"@WebMethod public boolean findCoupon(String coupon);",
"@Override\r\n\tpublic List<CatelistDto> Getcatesearch(LocationDto locadto) throws Exception {\n\t\treturn searchdao.Getcatesearch(locadto);\r\n\t}",
"public ArrayList<Record> near()\n {\n int count = 0;\n ArrayList<Record> closest = new ArrayList<>();\n System.out.println(\"Community Centres that are 5km or less to your location are: \");\n for(Record i: cCentres)\n {\n //latitude and longitude for each centre\n double lat2 = Double.parseDouble(i.getValue(4));\n double lon2 = Double.parseDouble(i.getValue(3));\n ;\n //distance\n double dist = calcDist(lat2, lon2, cCentres);\n if(dist<=5)\n {\n System.out.println(i + \", Distance: \" + dist + \" km\");\n closest.add(i);\n }\n }\n return closest;\n }",
"public List<TcTipoNomina> getNominasValidasBenefComodin() {\n String nominasValidasBenefComodin = super.getQueryDefinition(\"nominasValidasBenefComodin\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(nominasValidasBenefComodin, namedParameters, new TcTipoNominasValidasBenefComodinAux());\n }",
"@GetMapping(\"/sys-coupon-classifies\")\n @Timed\n public List<SysCouponClassify> getAllSysCouponClassifies() {\n log.debug(\"REST request to get all SysCouponClassifies\");\n return sysCouponClassifyService.findAll();\n }",
"@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"public List<Coupon> getAllCouponsByCompany(long ownerId, boolean activeCoupons) {\n\t\tList<Coupon> companyCoupons = \n\t\t\t\tcouponRepository.findAllByOwnerIdAndIsActive(ownerId, activeCoupons);\n\t\treturn Validations.verifyNotNull(companyCoupons);\n\t}",
"public List<Shop> nearestShops(double lat, double lon, double distance) {\n List<Shop> allShops = shopRepository.findByLocationNear(new Point(lon,lat), new Distance(distance, Metrics.KILOMETERS));\n\n logger.info(\"Find \"+allShops.size()+\" shops within \"+distance+\"KM distance\");\n return allShops;\n }",
"@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }",
"public ArrayList<Country> getCountryPopulation() {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in each COUNTRY\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS dCountry, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dCountry \"; // population of people in each country\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country = new ArrayList<Country>();\n System.out.println(\"25. The population of people, people living in cities, and people not living in cities in each COUNTRY.\");\n System.out.println(\" Country | Country Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Name = rset.getString(\"dCountry\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population * 100) / (cnt.Population))) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"25. Failed to get country populations\");\n\n return null;\n }\n }",
"@Override\n\tpublic HashSet<Coupon> getCouponByType(CouponType couponType)\n\t\t\tthrows ClassNotFoundException, SQLException, ParseException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\t\tHashSet<Coupon> collectionCoupon = new HashSet<Coupon>();\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_ALL_COUPON_ID_BY_TYPE);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tcollectionCoupon.add(getCoupon(resultSet.getLong(1)));\n\t\t}\n\t\tConnectionPool.getInstance().returnConnection(connection);\n\t\treturn collectionCoupon;\n\t}",
"List<Country> listCountries();",
"public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }",
"@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}",
"public java.util.List<hr.client.appuser.CouponCenter.AppCoupon> getCouponListList() {\n if (couponListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(couponList_);\n } else {\n return couponListBuilder_.getMessageList();\n }\n }",
"public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }",
"List<RegionalClassifierEntity> getItsListOfRegions();",
"public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }",
"public List getFeriadoZona(Map criteria);",
"@GetMapping(\"/airports/bycountry/{place}\")\n List<Airport> some(@PathVariable String place) {\n List<Airport> selectedValues = ((List<Airport>)repository.findAll()).stream()\n .filter(airport -> airport.getIso_country()!=null)\n .filter(airport -> airport.getIso_country().equals(place))\n .collect(Collectors.toList());\n return selectedValues;\n }",
"@Query(value = \"SELECT coupons_id FROM customers_coupons ORDER BY coupons_id ASC\", nativeQuery = true)\n List<Integer> findByPopularity();",
"@Override\n protected List<MarketingCoupon> callInner(CommonQueryPageRequest<MarketingCouponReq> request) throws Exception {\n List<MarketingCoupon> marketingCoupons = marketingCouponMapper.queryCouponPage(request.getRequest());\n\n return marketingCoupons;\n }",
"public List<FavoriteLocation> queryAllLocations() {\n\t\tArrayList<FavoriteLocation> fls = new ArrayList<FavoriteLocation>(); \n\t\tCursor c = queryTheCursorLocation(); \n\t\twhile(c.moveToNext()){\n\t\t\tFavoriteLocation fl = new FavoriteLocation();\n\t\t\tfl._id = c.getInt(c.getColumnIndex(\"_id\"));\n\t\t\tfl.description = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_DES));\n\t\t\tfl.latitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LAT));\n\t\t\tfl.longitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LON));\n\t\t\tfl.street_info = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_STREET));\n\t\t\tfl.type = c.getInt(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY));\n\t\t\tbyte[] image_byte = c.getBlob(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_PIC)); \n\t\t\tfl.image = BitmapArrayConverter.convertByteArrayToBitmap(image_byte);\n\t\t\tfl.title = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_TITLE));\n\t\t\tfls.add(fl);\n\t\t}\n\t\t// close the cursor\n\t\tc.close();\n\t\treturn fls;\n\t}",
"public Collection<Integer> getExcludedServiceBrands();",
"@Override\n\tpublic List<Supplier> getAllSupplier() {\n\t\tString sql=\"SELECT * FROM supplier\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().query(sql, rowmapper);\n\t}",
"@Override\n public List<Object> getMiniChartCommStatusByLocation(\n Map<String, Object> condition) {\n return null;\n }",
"public String supplierList(SupplierDetails s);",
"public Collection<Coupon> getCompanyCoupons(Category category) {\n return couponRepo.findByCompanyIDAndCategory(this.companyID, category);\n }",
"private poolLocation getCouponLocation(int ID) {\n\t\tpoolLocation coupon = null;\n\t\tif (ID == 0) {\n\t\t\tcoupon = new poolLocation(coupon1ID, Coupon1Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon1ID));\n\t\t} else if (ID == 1) {\n\t\t\tcoupon = new poolLocation(coupon2ID, Coupon2Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon2ID));\n\t\t} else if (ID == 2) {\n\t\t\tcoupon = new poolLocation(coupon3ID, Coupon3Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon3ID));\n\t\t}\n\t\treturn coupon;\n\t}",
"List<City> getCityList(Integer countryId)throws EOTException;",
"@Override\n public List<Object> getMiniChartLocationByCommStatus(\n Map<String, Object> condition) {\n return null;\n }",
"List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);",
"public Collection<Integer> getIncludedServiceBrands();",
"public ArrayList<Country> getRegionPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n +\" FROM country\"\n +\" GROUP BY country.Region, country.Name, country.Code, country.Continent, country.Capital\"\n +\" ORDER BY country.Region, cPopulation DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"3. All the countries in a REGION organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital);\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"3. Failed to get city details\");\n return null;\n }\n }",
"List<Coupon> findByCompanyIdAndPriceLessThanEqual(int companyId, double price);",
"public static ArrayList<CustomerInfoBean> getCutomers_suggested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=3\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public HashMap<String, Integer> combineCountryPopList(Connection conn) {\n // Retrieve concrete list of countries and populations\n ConcreteStatService concreteClass = new ConcreteStatService();\n List<Pair<String, Integer>> concreteList = concreteClass.GetCountryPopulations();\n\n HashMap<String, Integer> databaseList = getDataBaseCountryPop(conn);\n\n // Combine Lists. If duplicate, use database data.\n for (int i = 0; i < concreteList.size(); i++) {\n String country = concreteList.get(i).getKey();\n if (!(databaseList.containsKey(country))) {\n if (country.equals(\"U.S.A.\") || country.equals(\"United States of America\")) {\n if ((!(databaseList.containsKey(\"U.S.A.\"))) && (!(databaseList.containsKey(\"United States of America\")))) {\n databaseList.put(country, concreteList.get(i).getValue());\n }\n } else {\n databaseList.put(country, concreteList.get(i).getValue());\n }\n }\n }\n\n return databaseList;\n }",
"public ArrayList<Country> getContinentPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" FROM country\"\n + \" GROUP BY country.Continent, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" ORDER BY country.Continent, cPopulation DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"2. All the countries in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital );\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"2. Failed to get country details\");\n return null;\n }\n }",
"List<String> locations();",
"public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }",
"public List<UserSupplier> completeSupplier(String query) {\n List<UserSupplier> userSuppliers = user.getUserSuppliers();\n\n List<UserSupplier> suppliers = new ArrayList<>();\n for (UserSupplier userSupplier : userSuppliers) {\n if (userSupplier.getSupplier().getLabel().startsWith(query)) {\n suppliers.add(userSupplier);\n }\n }\n return suppliers;\n }",
"public List<Brands> LoadAllBrands() {\n Brands brands = null;\n List<Brands> brandsList = new ArrayList<>();\n try {\n Connection connection = DBConnection.getConnectionToDatabase();\n // String sql = \"SELECT * FROM `humusam_root`.`Users` WHERE UserEmail=\" + email;\n String sql = \"SELECT * FROM `brands`\";\n Statement statment = connection.createStatement();\n ResultSet set = statment.executeQuery(sql);\n ListBrands(brandsList, set);\n } catch (SQLException exception) {\n System.out.println(\"sqlException in Application in LoadAllBrands Section : \" + exception);\n exception.printStackTrace();\n }\n\n return brandsList;\n }",
"public hr.client.appuser.CouponCenter.AppCoupon getCouponList(int index) {\n return couponList_.get(index);\n }",
"public static ArrayList<Location> GetAllLocations(){\n \n ArrayList<Location> Locations = new ArrayList<>();\n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM location\")){\n \n while(resultSet.next())\n {\n Location location = new Location();\n location.setCity(resultSet.getString(\"City\"));\n location.setCity(resultSet.getString(\"AirportCode\"));\n Locations.add(location);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Locations;\n }",
"public void getNearByPlaces(Location location, String searchQuery, boolean type){\n /**\n * If subscription is already active, then Un subscribe it.\n */\n if(nbpListSubscription != null && !nbpListSubscription.isUnsubscribed())\n nbpListSubscription.unsubscribe();\n\n nbpListSubscription = Observable.concat(\n fetchNearByPlaceFromRealm(),\n fetchNearByPlaceFromServer(location, searchQuery, type))\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n /**\n * TakeFirst will emit only when the condition is satisfied.\n * In this case, emit item from the source observable only when\n * the list is not null or when it has at least one element.\n */\n .takeFirst(new Func1<NearByPlaces, Boolean>() {\n @Override\n public Boolean call(NearByPlaces nearByPlaces) {\n return (nearByPlaces != null);\n }\n }).subscribe(new Action1<NearByPlaces>() {\n @Override\n public void call(NearByPlaces nearByPlaces) {\n NearByPlacesDS.this.nbpListPublishSubject.onNext(nearByPlaces);\n }\n },new Action1<Throwable>() {\n @Override\n public void call(Throwable error) {\n NearByPlacesDS.this.nbpListPublishSubject.onError(error);\n }\n });\n\n }",
"public List<Bank> getBankList(String name, String location) {\n\n return em.createQuery(getCriteriaQuery(name, location)).getResultList();\n }",
"public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }"
] | [
"0.6521482",
"0.5913454",
"0.569883",
"0.56545067",
"0.5622105",
"0.5597491",
"0.5543475",
"0.55069065",
"0.55063957",
"0.5484053",
"0.539288",
"0.5314025",
"0.53005266",
"0.52457184",
"0.5234415",
"0.5230944",
"0.5207787",
"0.5152656",
"0.5147692",
"0.5143841",
"0.51056755",
"0.50818115",
"0.50683415",
"0.5067097",
"0.50619394",
"0.50496787",
"0.5045769",
"0.5044606",
"0.50437814",
"0.5042652",
"0.50349796",
"0.501609",
"0.5007504",
"0.5003585",
"0.49926156",
"0.49838877",
"0.4966246",
"0.4962672",
"0.49520338",
"0.4950379",
"0.49482518",
"0.49437815",
"0.49218726",
"0.4918687",
"0.49074784",
"0.49012038",
"0.4900704",
"0.48543885",
"0.48517933",
"0.4845372",
"0.4842357",
"0.48416054",
"0.48371923",
"0.4826567",
"0.48179728",
"0.47974944",
"0.479433",
"0.47823095",
"0.4773707",
"0.47728905",
"0.47727007",
"0.47672462",
"0.47656214",
"0.47656047",
"0.47566518",
"0.4753279",
"0.47522295",
"0.47513273",
"0.4743929",
"0.474166",
"0.47392887",
"0.47382858",
"0.47301003",
"0.4729675",
"0.47292498",
"0.47289342",
"0.4727716",
"0.47142705",
"0.4712934",
"0.47127128",
"0.47080192",
"0.47072238",
"0.47038165",
"0.46966892",
"0.46946737",
"0.46918562",
"0.46895564",
"0.46838832",
"0.46827784",
"0.46741343",
"0.4673431",
"0.46722937",
"0.46718815",
"0.46661198",
"0.4661087",
"0.46588704",
"0.4655527",
"0.46483004",
"0.4647808",
"0.46475166"
] | 0.7296686 | 0 |
return arrayList of max scores for games | public ArrayList<gameModel> getScoreList() {
LoadingDatabaseScores();
return SCORE_LIST;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"public ArrayList<Double> getFiveHighestScore() {\n int size = scoreList.size();\n ArrayList<Double> fiveHighestList = new ArrayList<>();\n if (size <= 5) {\n for (Double score: scoreList) {\n fiveHighestList.add(score);\n }\n } else {\n for (int i = 0; i < 5; i++)\n fiveHighestList.add(scoreList.get(i));\n }\n return fiveHighestList;\n }",
"public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}",
"public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }",
"private static double getHighestScore (List<Double> inputScores) {\n\n\t\tCollections.sort(inputScores, Collections.reverseOrder());\n\n\t\treturn inputScores.get(0);\n\n\t}",
"public ArrayList<Configuration> choixMax()\r\n\t{\r\n\t\tArrayList<Configuration> Filles=ConfigurationsFilles();\r\n\t\tArrayList<Configuration> FillesMax = new ArrayList<>();\r\n\t\tif(Filles==null) return null;\r\n\t\tint max = Filles.get(0).maxscore;\r\n\t\tfor(Configuration c : Filles)\r\n\t\t{\r\n\t\t\tif(max == c.maxscore)\r\n\t\t\t{\r\n\t\t\t\tFillesMax.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn FillesMax;\r\n\t}",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"Integer getMaximumResults();",
"public static int singleGameTopScoringPlayer(int[][] scores, int g)\n {\n \n int index = 0;\n int row = 0;\n int max = scores[row][g]; //by default we assign the max value as the first value\n int nextrow = row + 1;\n \n while ( nextrow < scores.length) //total up the rows for that column\n {\n //compare if the max value is smaller than its successive value\n if (max < scores[nextrow][g])\n {\n max = scores[nextrow][g]; //if it is larger, then it becomes the new max value\n index = nextrow; //save the index in the variable called index\n }\n \n nextrow++;\n }\n \n return index;\n \n }",
"public List<PlayerRecord> display3() {\n List<PlayerRecord> l = new List<PlayerRecord>();\n int max = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n int c = curr.getWinninggoals();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = playerlist.next();\n }\n return l;\n }",
"private int mostNumOfCards(WarPlayer[] players) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < players.length; i++)\n if (players[i].getPoints() > players[max].getPoints())\n max = i;\n\n return max;\n }",
"java.util.List<Score>\n getScoresList();",
"public void findH()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] > high)\n high = scores[i][j];\n }\n }\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] == high)\n System.out.println(names[i] + \" had the highest score of \" + high);\n break;\n \n }\n \n }\n }",
"public List<PlayerTeam> display6() {\n List<PlayerTeam> l = new List<PlayerTeam>();\n List<PlayerTeam> all = build();\n int max = 0;\n PlayerTeam curr = all.first();\n while (curr != null) {\n int c = curr.getWinninggoals();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = all.next();\n }\n return l;\n }",
"private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}",
"private void calcMax(int[] data){\r\n for(int i=0; i<data.length; i++){\r\n if(data[i]>maxWert[i]){\r\n maxWert[i]=data[i];\r\n }\r\n }\r\n }",
"public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> l = new ArrayList<ScoreInfo>();\n l.addAll(this.highScores); //make a copy;\n return l;\n }",
"public String findHighestScorers() {\n ArrayList<String> names = new ArrayList<String>();\n String theirNames = \"\";\n int highest = findHighestScore();\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) == 0) {\n //note that each quiz taker's arraylist of scores is already sorted in descending order post-constructor\n boolean alreadyThere = false;\n for(String name: names) {\n if(name.equals(allQuizTakers.get(i).getName())) {\n alreadyThere = true;\n }\n }\n if (!alreadyThere) {\n theirNames += allQuizTakers.get(i).getName() + \" \";\n names.add(allQuizTakers.get(i).getName());\n }\n }\n }\n return theirNames;\n }",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public abstract double[] getMaximumValues(List<AbstractObjective> objectives, List<? extends Solution<?>> solutions) ;",
"public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0;\n int x = scores.size();\n if (x > max) {\n x = max;\n } \n while (i < x) {\n \t str += (i + 1) + \".\\t \" + scores.get(i).getNaam() + \"\\t\\t \" + scores.get(i).getScore() + \"\\n\";\n i++;\n }\n if(x == 0) str = \"No scores for \"+SlidePuzzleGUI.getRows()+\"x\"+SlidePuzzleGUI.getCols()+ \" puzzle!\";\n return str;\n }",
"public ArrayList<Tuple> getResults() {\n ArrayList<Tuple> result = new ArrayList<Tuple>();\n\n switch (this.ag) {\n case COUNT:\n if (!gb) {\n int res = 0;\n for (Tuple a : tupleList) {\n res++;\n }\n Tuple newTup = new Tuple(this.tdc);\n newTup.setField(0, new IntField(res));\n result.add(newTup);\n } else {\n for (Tuple ca : compareList) {\n int res = 0;\n for (Tuple tl : tupleList) {\n if (tl.equals(ca))\n res++;\n }\n Tuple newTup = new Tuple(this.tdc);\n newTup.setField(0, ca.getField(0));\n newTup.setField(1, new IntField(res));\n result.add(newTup);\n }\n }\n break;\n\n case MAX:\n if (!gb) {\n int max = Integer.MIN_VALUE;\n boolean whetherInt = false;\n String firstVal = \"\";\n\n if (tupleList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(0);\n firstVal = first.toString();\n }\n\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n StringField val = (StringField) tp.getField(0);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n\n\n } else {\n IntField intFl = new IntField(tp.getField(0).toByteArray());\n int actualVal = intFl.getValue();\n if (actualVal > max) {\n max = actualVal;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new IntField(max));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new StringField(firstVal));\n result.add(maxTup);\n }\n\n } else {\n int max = Integer.MIN_VALUE;\n boolean whetherInt = false;\n\n String firstVal = \"\";\n\n if (compareList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(1);\n firstVal = first.toString();\n }\n\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n if (valueb > max) {\n max = valueb;\n }\n }\n\n } else {\n StringField val = (StringField) b.getField(1);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1, new IntField(max));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1,new StringField(firstVal));\n result.add(maxTup);\n }\n }\n }\n break;\n case MIN:\n if (!gb) {\n int min = Integer.MAX_VALUE;\n boolean whetherInt = false;\n String firstVal = \"\";\n if (tupleList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(0);\n firstVal = first.toString();\n\n }\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n StringField val = (StringField) tp.getField(0);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == -1) { // if the new string is supposed to be lexicographically SMALLER than the cu\n // max, set the cur mIN to be the new\n firstVal = actualv;\n }\n\n } else {\n IntField intFl = new IntField(tp.getField(0).toByteArray());\n int actualVal = intFl.getValue();\n if (actualVal < min) {\n min = actualVal;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new IntField(min));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new StringField(firstVal));\n result.add(maxTup);\n }\n } else {\n int min = Integer.MAX_VALUE;\n boolean whetherInt = false;\n\n String firstVal = \"\";\n\n if (compareList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(1);\n firstVal = first.toString();\n\n }\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n\n\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n if (valueb > min) {\n min = valueb;\n }\n }\n } else {\n StringField val = (StringField) b.getField(1);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1, new IntField(min));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1,new StringField(firstVal));\n result.add(maxTup);\n }\n }\n }\n break;\n case AVG:\n int sum = 0;\n\n if (!gb) {\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n System.out.println(\"cannot call avg on string\");\n } else {\n int val = ((IntField) tp.getField(0)).getValue();\n sum += val;\n\n }\n\n\n }\n int avgValue = sum / tupleList.size();\n // not sure what the new tuple's pid and id should be\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, new IntField(avgValue));\n\n } else {\n // now it is group by avg\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n int sumt = 0;\n int ct = 0;\n if (aTp.equals(Type.STRING)) {\n System.out.println(\"cannot call avg on string\");\n\n } else {\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n sum += valueb;\n ct++;\n }\n } else {\n System.out.println(\"cannot call group by avg on string \");\n }\n }\n }\n int trueAvg = sum / ct;\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, a.getField(0));\n avgTup.setField(1, new IntField(trueAvg));\n result.add(avgTup);\n }\n }\n\n break;\n case SUM:\n int sumA = 0;\n if (!gb) {\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n System.out.println(\"cannot call sUM on string\");\n } else {\n int val = ((IntField) tp.getField(0)).getValue();\n sumA += val;\n }\n }\n\n // not sure what the new tuple's pid and id should be\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, new IntField(sumA));\n result.add(avgTup);\n\n } else {\n // now it is group by sum\n int sumt = 0;\n for (Tuple a : compareList) {\n sumt = 0;\n Type aTp = a.getDesc().getType(0);\n\n if (aTp.equals(Type.STRING)) {\n System.out.println(\"cannot call sum on string\");\n\n } else {\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n sumt += valueb;\n }\n\n } else {\n System.out.println(\"cannot call SUM on string \");\n }\n\n }\n }\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, a.getField(0));\n avgTup.setField(1, new IntField(sumt));\n if (!result.contains(avgTup)) {\n result.add(avgTup);\n }\n }\n\n }\n break;\n }// this is the closing for switch\n return result;\n }",
"public static List<Course> getCourseMaxAvrScr1(List<Course> courseList){\n return courseList.\n stream().\n sorted(Comparator.comparing(Course::getAverageScore).\n reversed()).limit(1).collect(Collectors.toList());\n }",
"public double getHighestGrade(){\n double highestGrade = 0;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()> highestGrade)\n highestGrade = students.get(i).getGrades();\n }// end for\n return highestGrade;\n }",
"@Override\n\tpublic List<Games> getMaxPriceView() {\n\t\treturn gameDAO.getMaxPrice();\n\t}",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }",
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public static int getMostMoney(String[] games, int[] time, int[] money){\n int l = time.length; //The lengths of the three lists should be same;\n int t = 120; //The total time\n int[] played = new int[l];\n int[][] val = new int[l][121];\n for(int i=1;i<l;i++){\n for(int j=1;j<121;j++){\n if(j<time[i]){\n val[i][j] = val[i-1][j];\n }else\n val[i][j]=Math.max(val[i-1][j],val[i-1][j-time[i]]+money[i]);\n }\n }\n for(int i = l-1;i>=1;i--){\n if(val[i][t] != val[i-1][t]){\n System.out.println(games[i]); //print the best combination of games\n t -= time[i];\n }\n }\n\n return val[l-1][120]; //In this question, Adam can earn $780 at most;\n }",
"public int[] getScores() {\n return this.scores;\n }",
"private ArrayList<WobblyScore> getWobblyLeaderboard() {\n ArrayList<WobblyScore> wobblyScores = new ArrayList<>();\n String json = DiscordUser.getWobbliesLeaderboard(codManager.getGameId());\n if(json == null) {\n return wobblyScores;\n }\n JSONArray scores = new JSONArray(json);\n for(int i = 0; i < scores.length(); i++) {\n wobblyScores.add(WobblyScore.fromJSON(scores.getJSONObject(i), codManager));\n }\n WobblyScore.sortLeaderboard(wobblyScores, true);\n return wobblyScores;\n }",
"@Override\n public ArrayList<Pair<String, Integer>> getLeaderBoard() throws IOException {\n ArrayList<Pair<String, Integer>> leaderboard = new ArrayList<>();\n\n String sql = \"SELECT playernick, max(score) AS score FROM sep2_schema.player_scores GROUP BY playernick ORDER BY score DESC;\";\n ArrayList<Object[]> result;\n String playernick = \"\";\n int score = 0;\n\n try {\n result = db.query(sql);\n\n for (int i = 0; i < result.size(); i++) {\n Object[] row = result.get(i);\n playernick = row[0].toString();\n score = (int) row[1];\n leaderboard.add(new Pair<>(playernick, score));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return leaderboard;\n }",
"public double[] getMax(){\n double[] max = new double[3];\n for (Triangle i : triangles) {\n double[] tempmax = i.maxCor();\n max[0] = Math.max( max[0], tempmax[0]);\n max[1] = Math.max( max[1], tempmax[1]);\n max[2] = Math.max( max[2], tempmax[2]);\n }\n return max;\n }",
"public int getMaximun(){\n int highGrade = grades[0]; //assumi que grades[0] é a maior nota\n //faz o loop pelo array de notas\n for(int grade: grades){\n //se a nota for maior que highGrade. atribui essa nota a highGrade\n if(grade > highGrade){\n highGrade = grade; //nota mais alta\n }\n }\n \n return highGrade;\n }",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}",
"public List<PlayerRecord> display2() {\n List<PlayerRecord> l = new List<PlayerRecord>();\n int max = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n int c = curr.getPenalties();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = playerlist.next();\n }\n return l;\n }",
"public ArrayList<Integer> max(int index)\n\t{\n\t\tArrayList<Integer> array2 = new ArrayList<Integer>();\n\t\tif(4*index + 3 >= size )\n\t\t{\n\t\t\tarray2.add(0);\n\t\t\treturn array2;\n\t\t}\n\n\t\tint maxIndex;\n\t\tint maxIndex2;\n\t\tint max = 0;\n\n\t\tif(4*index + 6 < size)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\t\tmaxIndex = grandChildMax(4*(index)+3, 4*index + 4);\n\t\t\t\tmaxIndex2 = grandChildMax(4*(index)+5, 4*index + 6);\n\t\t\t\tmax = grandChildMax(maxIndex, maxIndex2);\n\t\t\t\tarray2.add(max);\n\t\t\t\treturn array2;\n\t\t\t\n\t\t}\n\t\tif(4*index+5 < size)\n\t\t{\n\n\t\t\tmaxIndex = grandChildMax(4*(index)+3, 4*index + 4);\n\t\t\tmax = grandChildMax(maxIndex, 4*index+5);\n\t\t\tarray2.add(max);\n\t\t\treturn array2;\n\n\n\t\t}\n\t\tif(4*index+4 < size)\n\t\t{\n\t\t\t\tmaxIndex = grandChildMax(4*(index)+3, 4*(index)+4);\n\t\t\t\tmax = grandChildMax(maxIndex, 2*index+2);\n\n\t\t\t\tarray2.add(0, max) ;\n\t\t\t\tarray2.add(1, 0);\n\t\t\t\treturn array2;\n\t\t}\n\n\n\n\t\tif(4*index + 3 < size)\n\t\t{\n\t\t\t\tmax = grandChildMax(4*index+3, 2*index + 2);\n\t\t\t\tarray2.add(0, max) ;\n\t\t\t\tarray2.add(1, 0);\n\t\t\t\treturn array2;\n\t\t\t\n\t\t}\n\n\t\treturn array2;\n\n\t}",
"Score getScores(int index);",
"private int[] sauvegarde_scores() {\r\n\t\tint n = moteur_joueur.getJoueurs().length;\r\n\t\tint[] scores_precedents = new int[n];\r\n\t\t\t\t\r\n\t\tfor(int i = 0 ; i < n ; i++) {\r\n\t\t\tscores_precedents[i] = (int)moteur_joueur.getJoueurs()[i].getScore();\r\n\t\t}\r\n\t\t\r\n\t\treturn scores_precedents;\r\n\t}",
"public static rk getBestSolutionMax(ArrayList<rk> Sched) {\n\n rk best = Sched.get(0).copyOf();\n for (int i = 1; i < Sched.size(); i++) {\n rk S = Sched.get(i).copyOf();\n if (S.getFitness() > best.getFitness()) {\n\n best = S;\n }\n }\n return best;\n }",
"public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"private static int[] findMaxValues(int[] weightArr, int[] heightArr){\r\n int[] max = new int[3];\r\n for(int i = 0; i < weightArr.length; i++){\r\n if(weightArr[i] > max[0]){\r\n max[0] = weightArr[i];\r\n max[1] = heightArr[i];\r\n max[2] = i;\r\n }\r\n }\r\n\r\n return max;\r\n }",
"int getMaxResults();",
"public long getMaxTime(){\n long max;\n if(myPlaces_ra != null){\n // max variable set to the first time element in the array\n max = myPlaces_ra.get(0).getTime();\n\n for (int i = 0; i < myPlaces_ra.size(); i++) {\n //compare if the current is bigger than the one hold in the max variable\n if(myPlaces_ra.get(i).getTime() > max ){\n max = myPlaces_ra.get(i).getTime();\n\n }\n }\n Log.d(TAG, \"getMaxTime: \" + max);\n\n }else{\n Log.d(TAG, \"array is empty\");\n max = -1;\n return max;\n }\n return max;\n\n }",
"java.util.List<? extends ScoreOrBuilder>\n getScoresOrBuilderList();",
"public ArrayList<Highscore> getAllScore() {\n SQLiteDatabase db = this.getReadableDatabase();\n ArrayList<Highscore> arScore = new ArrayList<>();\n Cursor res = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n res.moveToFirst();\n while (!res.isAfterLast()) {\n\n arScore.add(new Highscore(res.getInt(res.getColumnIndex(\"score\")), res.getInt(res.getColumnIndex(\"_id\")), res.getString(res.getColumnIndex(\"challenge\"))));\n res.moveToNext();\n }\n res.close();\n db.close();\n\n return arScore;\n }",
"public static void maxWithSort(List<Integer> list){\n Optional<Integer> max = list.stream().sorted().reduce((x, y)->y);\n System.out.println(max);\n }",
"public static Player.PlayerTeam getWinningTeam(List<Player> players) {\n int sumForPaper = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.PAPER)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n int sumForRock = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.ROCK)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n int sumForScissors = players.stream()\n .filter(player -> player.getTeam() == Player.PlayerTeam.SCISSORS)\n .mapToInt(Player::getCurrentScore)\n .sum();\n\n Map<Player.PlayerTeam, Integer> finalList = new HashMap<>();\n finalList.put(Player.PlayerTeam.PAPER, sumForPaper);\n finalList.put(Player.PlayerTeam.ROCK, sumForRock);\n finalList.put(Player.PlayerTeam.SCISSORS, sumForScissors);\n\n int max = Collections.max(finalList.values());\n\n List<Player.PlayerTeam> collect = finalList.entrySet().stream()\n .filter(entry -> entry.getValue() == max)\n .map(entry -> entry.getKey())\n .collect(Collectors.toList());\n\n Player.PlayerTeam winningTeam = collect.get(0);\n\n return winningTeam;\n\n }",
"public List<PlayerRecord> display4() {\n List<PlayerRecord> l = new List<PlayerRecord>();\n int max = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n int c = curr.getShots();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = playerlist.next();\n }\n return l;\n }",
"public final void max() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t} else {\n\t\t\t\tpush(topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<HighScore> retrieveHighScoreRows(){\n db = helper.getReadableDatabase();\n ArrayList<HighScore> scoresRows = new ArrayList<>(); // To hold all scores for return\n\n // Get all scores rows, sorted by score value\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n\n while ( ! scoreCursor.isAfterLast() ) { // There are more scores\n // Create scores with result\n HighScore hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1), scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoresRows.add(hs); // Add high score to list\n scoreCursor.moveToNext();\n }\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n db.close();\n return scoresRows; // Return ArrayList of all scores\n }",
"public static int max() {\r\n\r\n\t\tint[] arr1 = ArrayMethods.get5();\r\n\t\tint[] arr2 = ArrayMethods.get5();\r\n\r\n\t\tint sum1 = 0;\r\n\t\tint sum2 = 0;\r\n\r\n\t\tint max = 0;\r\n\r\n\t\tfor (int num : arr1) {\r\n\t\t\tsum1 += num;\r\n\t\t}\r\n\t\tfor (int num : arr2) {\r\n\t\t\tsum2 += num;\r\n\t\t}\r\n\r\n\t\tif (sum1 > sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else if (sum1 == sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tmax = sum2;\r\n\t\t}\r\n\t\treturn max;\r\n\t}",
"String highscore(int max) {\r\n\t\tString str = highscoreToSortedMap().toString().replaceAll(\" \", \"\").replaceAll(\"}\", \"\").substring(1);\r\n\t\tString[] a = str.split(\",\");\r\n\t\tString result = \"\";\r\n\t\tif(a.length < max) { // wenn weniger als zehn Spieler im Highscore stehen\r\n\t\t\tfor(int i = 0; i < a.length; i++) { // ... werden je nach dem wie viele es sind an den String angehangen\r\n\t\t\t\tresult += a[i] + \",\";\r\n\t\t\t}\r\n\t\t} else { // wenn mehr als 10 Spieler im Highscore stehen\r\n\t\t\tfor(int i = 0; i < max; i++) { // werden nur die ersten zehn an den String angehangen\r\n\t\t\t\tresult += a[i] + \",\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@GetMapping(\"/scores/alltime\")\n\tpublic ResponseEntity<ArrayNode> getAllTimeTopScores() {\n\t\tArrayNode result = mapper.createArrayNode();\n\t\tList<Object[]> allScores = this.scoreRepo.findAllScores();\n\n\n\t\tfor (int i = 0; i < 10 && i < allScores.size(); i++) {\n\t\t\t// current userId and month score\n\t\t\tObject[] currScore = allScores.get(i);\n\t\t\t// One JSON object\n\t\t\tObjectNode score = mapper.createObjectNode();\n\t\t\t// Convert BigInteger to long and int\n\t\t\tlong userId = ((Number) currScore[0]).longValue();\n\t\t\tint monthScore = ((Number) currScore[1]).intValue();\n\t\t\tCustomUser user = this.userRepo.findById(userId);\n\t\t\tString username = user.getUsername();\n\n\t\t\tscore.put(\"rank\", i + 1);\n\t\t\tscore.put(\"username\", username);\n\t\t\tscore.put(\"user\", userId);\n\t\t\tscore.put(\"score\", monthScore);\n\t\t\tscore.put(\"picId\", user.getPicId());\n\t\t\t// add to result array of JSON objects\n\t\t\tresult.add(score);\n\t\t}\n\t\treturn ResponseEntity.ok().body(result);\n\t}",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"protected abstract List<Double> calcScores();",
"public Card getHighestCard() {\n Card rtrnCard = cardsPlayed[0];\n int i;\n int tempInt;\n int currentHighestRank = cardsPlayed[0].getIntValue();\n for(i = 0; i < cardsPlayed.length; i++){\n if(cardsPlayed[i].getSuit().equals(suit)){\n tempInt = cardsPlayed[i].getIntValue();\n if((currentHighestRank < tempInt)&&(!(cardsPlayed[i].equals(rtrnCard)))){\n rtrnCard = cardsPlayed[i];\n currentHighestRank = cardsPlayed[i].getIntValue();\n }\n }\n }\n return rtrnCard;\n }",
"public int findMax() {\n\t\tint max = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ( (int)data.get(count) > max)\n\t\t\t\tmax = (int)data.get(count);\n\t\treturn max;\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}",
"public Card getMax(ArrayList<Card> temp){\n Card c = new Card(-1, \"Default\");\n for(int i = 0; i < temp.size(); i++){\n if(c.getValue() < temp.get(i).getValue()){\n c.setCardSuit(temp.get(i).getSuit());\n c.setCardVal(temp.get(i).getValue());\n }\n }\n return c;\n }",
"public String getHighscores(){\r\n\t\tString returnString = \"\";\r\n\t\tList<Score> allScores = database.getAllScores(\"hard\");\r\n\t\t\r\n\t\t//loop through top 4 entries of table as obtained in the allScores list\r\n\t\tfor(int i = allScores.size()-1, j = 3; i>=0 && j>=0; j--, i--){\r\n\t\t\treturnString += String.valueOf(allScores.get(i).score + \" | \" + allScores.get(i).time + \"\\n\");\r\n\t\t}\r\n\t\treturn returnString;\r\n\t}",
"public int[] getHighScore() {\n return HighScore;\n }",
"public List<PlayerRecord> display1() {\n List<PlayerRecord> l = new List<PlayerRecord>();\n int max = 0;\n PlayerRecord curr = playerlist.first();\n\n while (curr != null) {\n int c = curr.getGoalscore() + curr.getAssists();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = playerlist.next();\n }\n return l;\n }",
"private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }",
"public double getBestScore();",
"public ResultSet getHighestScore(String map) {\n return query(SQL_SELECT_HIGHEST_SCORE, map);\n }",
"public static int max(ArrayList<Course> list) {\r\n\t\tint max;\r\n\t\tmax = 0;\r\n\t\tfor (Course course : list) {\r\n\t\t\tif (course.numberOfStudents > max) {\r\n\t\t\t\tmax = course.numberOfStudents;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn max;\r\n\t}",
"public static List<ScoreBean> sortDescending(List<ScoreBean> listScores) {\n Comparator<ScoreBean> comparator = new Comparator<ScoreBean>() {\n @Override\n public int compare(ScoreBean o1, ScoreBean o2) {\n return o2.getScore() - o1.getScore();\n }\n };\n Collections.sort(listScores, comparator);\n return listScores;\n }",
"public Jogo jogoComMaiorScore() {\r\n\t\tJogo jogoComMaiorScore = listaDeJogosComprados.get(0);\r\n\r\n\t\tfor (Jogo jogo : listaDeJogosComprados) {\r\n\t\t\tif (jogo.getMaiorScore() >= jogoComMaiorScore.getMaiorScore()) {\r\n\t\t\t\tjogoComMaiorScore = jogo;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn jogoComMaiorScore;\r\n\t}",
"ArrayList<Integer> getLeaderboardScores() {\r\n return leaderboardScores;\r\n }",
"void searchMax(ArrayList<SanPham> list);",
"public int _maxProfitAssignmentSortedCollectors(int[] difficulty, int[] profit, int[] worker) {\n int n = difficulty.length;\n int [][] dp = new int [n][2]; // difficulty, profit pair (dp)\n\n for (int idx = 0; idx < n; idx ++) {\n dp [idx][0] = difficulty [idx];\n dp [idx][1] = profit [idx];\n }\n\n Arrays.sort (dp, (a, b) -> a [0] - b [0]);\n\n // sort the collectors.\n Arrays.sort (worker);\n\n int ans = 0, best = 0, idx = 0;\n for (int w : worker) {\n // compute maxima and save it for next we well to build upon the max (best) seen so far.\n while (idx < n && w >= dp [idx][0]) { // increase difficulty slowly\n best = Math.max (best, dp [idx][1]);\n idx ++;\n }\n ans += best;\n }\n return ans;\n }",
"public java.util.List<Score> getScoresList() {\n if (scoresBuilder_ == null) {\n return java.util.Collections.unmodifiableList(scores_);\n } else {\n return scoresBuilder_.getMessageList();\n }\n }",
"public static MyStudent SecondHighest (List<MyStudent> list) {\n\t\t\t\n\t\t\treturn list.stream().sorted(Comparator.comparing(MyStudent::getScore)).skip(list.size()-2).findFirst().get();\n\t\t\t\n\t\t}",
"public static void exampleForEach_FindMaximum(int[] numbers) {\r\n\t\tint maxSoFar = numbers[0]; \r\n \r\n // for each loop \r\n for (int num : numbers) \r\n { \r\n if (num > maxSoFar) \r\n { \r\n maxSoFar = num; \r\n } \r\n } \r\n \r\n System.out.println(\"\\nThe highest score is \" + maxSoFar);\r\n\t}",
"public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }",
"public java.util.List<? extends ScoreOrBuilder>\n getScoresOrBuilderList() {\n if (scoresBuilder_ != null) {\n return scoresBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(scores_);\n }\n }",
"public static MyStudent studentWithHighest ( List<MyStudent> list) {\n\t\treturn list.stream().sorted(Comparator.comparing(MyStudent::getScore)).skip(list.size()-1).findFirst().get();\n\t}",
"public float max(Collection<Float> data){\r\n return Collections.max(data);\r\n }",
"private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}",
"private static int maxSubArrayGolden(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n // in case the result is negative.\n int max = Integer.MIN_VALUE;\n int sum = 0;\n for (int num : nums) {\n sum += num;\n max = Math.max(sum, max);\n sum = Math.max(sum, 0);\n }\n return max;\n }",
"@Override\n public Score getBest() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> bestScores = session.createQuery(\"FROM Score s WHERE s.value = (SELECT max(s.value) FROM Score s)\", Score.class)\n .list();\n\n session.close();\n\n return bestScores.isEmpty() ? new Score(0L) : bestScores.get(0);\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return null;\n }\n }",
"public long max() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] > result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find max of empty array\");\n\t\t}\n\t}",
"MaxIDs getMaxIds();",
"public List<Integer> largestValues(TreeNode root) {\n List<Integer> ans = new ArrayList<>();\n if(root == null) return ans;\n helper(root, ans, 0);\n return ans;\n }",
"public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }",
"public void endGame(Player[] players) { \n int[] ret = calculateScore(players);\n int playerWinnerIdx = 0;\n \n int maxScore = 0;\n for(int i = 0; i < ret.length; i++){\n if(ret[i] > maxScore){\n playerWinnerIdx = i;\n maxScore = ret[i];\n }\n }\n board.setWinningIdx(playerWinnerIdx);\n board.setIsGameEnd(true);\n }",
"public Double getHighestMainScore() {\n return highestMainScore;\n }",
"int max(){\r\n int auxMax = array[0];\r\n for (int i=1;i<array.length;i++){\r\n if(array[i] > auxMax){\r\n auxMax = array[i];\r\n }\r\n }\r\n return auxMax;\r\n }",
"public ArrayList<Double> getHighestFitnesses() { return highFitnesses; }",
"ScoreOrBuilder getScoresOrBuilder(\n int index);",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public int maxValue(List<List<Integer>> positions) {\n int value = 0;\n for (final List<Integer> values : positions) {\n final int temp = Collections.max(values).intValue();\n if (temp > value) {\n value = temp;\n }\n }\n return value;\n }",
"private int findMaxEvents(List<List<double[]>> timeLevel) {\n int max = 0;\n\n for(List<double[]> locations : timeLevel) {\n if (locations.size() > max) {\n max = locations.size();\n }\n }\n\n return max;\n }"
] | [
"0.6965215",
"0.6586461",
"0.65675145",
"0.6397097",
"0.63951784",
"0.6342545",
"0.6265612",
"0.6214683",
"0.60359883",
"0.60210127",
"0.6020737",
"0.5951405",
"0.59449774",
"0.59379077",
"0.5920799",
"0.59183",
"0.58798814",
"0.5860105",
"0.58469224",
"0.58468103",
"0.58459824",
"0.58308035",
"0.58120865",
"0.5784083",
"0.5782648",
"0.5780002",
"0.5762214",
"0.57601047",
"0.5742882",
"0.57396764",
"0.57269555",
"0.5717387",
"0.57148635",
"0.5703303",
"0.5703076",
"0.5701458",
"0.56953114",
"0.56836164",
"0.56821686",
"0.5662685",
"0.56594384",
"0.56513375",
"0.56431",
"0.5641758",
"0.56380576",
"0.5636333",
"0.5633476",
"0.5626675",
"0.5610291",
"0.55898577",
"0.55861497",
"0.557896",
"0.5576122",
"0.5572467",
"0.5568528",
"0.5566325",
"0.5556459",
"0.55546975",
"0.55543816",
"0.5533366",
"0.5530535",
"0.5518146",
"0.5506846",
"0.5504539",
"0.55042773",
"0.5504116",
"0.5500891",
"0.5496642",
"0.5494545",
"0.54922384",
"0.54861945",
"0.5482213",
"0.5481228",
"0.54801005",
"0.5470402",
"0.5463104",
"0.5456768",
"0.5452547",
"0.5451713",
"0.54508555",
"0.5448509",
"0.544587",
"0.5444593",
"0.5429309",
"0.54236007",
"0.54207945",
"0.54163843",
"0.5414935",
"0.5410199",
"0.54084164",
"0.5404926",
"0.54019445",
"0.53982264",
"0.539745",
"0.53933215",
"0.5391834",
"0.5391697",
"0.5390594",
"0.53880644",
"0.5385044"
] | 0.5524476 | 61 |
return arrayList of game locations | public ArrayList<gameLocation> getGameList() {
LoadingDatabaseGameLocation();
return GAME_LIST;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Location> getLocations()\n {\n ArrayList<Location> locs = new ArrayList<>();\n for (int row = 0; row < squares.length; row++)\n {\n for (int col = 0; col < squares[0].length; col++)\n {\n locs.add(new Location(row,col));\n }\n }\n return locs;\n }",
"List<String> locations();",
"ArrayList<Location> getMoveLocations();",
"public ArrayList<Integer[]> getMineLocations()\n {\n return mineLocations;\n }",
"public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}",
"public ArrayList<Location> getLocations() {\n return this.imageLocs; \n }",
"private List<LatLng> getCoordinates() {\n\n List<LatLng> list = new ArrayList<>();\n SharedPreferences.Editor editor = walkingSharedPreferences.edit();\n int size = walkingSharedPreferences.getInt(user.getUsername(), 0);\n for(int actual = 0; actual < size; actual++) {\n String pos = walkingSharedPreferences.getString(user.getUsername() + \"_\" + actual, \"\");\n editor.remove(user.getUsername() + \"_\" + actual);\n String[] splitPos = pos.split(\" \");\n LatLng latLng = new LatLng(Double.parseDouble(splitPos[LAT]), Double.parseDouble(splitPos[LNG]));\n list.add(latLng);\n }\n editor.remove(user.getUsername());\n editor.apply();\n return list;\n\n }",
"public Location[] getLocation() {\r\n return locations;\r\n }",
"public ArrayList<HexLocation> getShuffledLocations() {\n\t\t\n\t\tArrayList<HexLocation> locations = new ArrayList<>();\n\t\t\n\t\tHex[][] h = hexGrid.getHexes();\n\t\tlocations.add(h[4][1].getLocation());\n\t\tlocations.add(h[2][2].getLocation());\n\t\tlocations.add(h[5][2].getLocation());\n\t\tlocations.add(h[1][2].getLocation());\n\t\tlocations.add(h[4][3].getLocation());\n\t\tlocations.add(h[3][1].getLocation());\n\t\tlocations.add(h[3][4].getLocation());\n\t\tlocations.add(h[3][5].getLocation());\n\t\tlocations.add(h[5][1].getLocation());\n\t\tlocations.add(h[2][1].getLocation());\n\t\tlocations.add(h[5][3].getLocation());\n\t\tlocations.add(h[2][3].getLocation());\n\t\tlocations.add(h[4][2].getLocation());\n\t\tlocations.add(h[3][2].getLocation());\n\t\tlocations.add(h[4][4].getLocation());\n\t\tlocations.add(h[1][3].getLocation());\n\t\tlocations.add(h[3][3].getLocation());\n\t\tlocations.add(h[2][4].getLocation());\n\t\t\n\t\tCollections.shuffle(locations);\n\t\treturn locations;\n\t}",
"public List<Integer> pacmanLocation(){\n\n pacmanLocay.add(0);\n pacmanLocay.add(0);\n\n return pacmanLocay;\n }",
"public Set<Location> getPlayerLocations()\n\t{\n\t\tSet<Location> places = new HashSet<Location>();\n\t\tfor(Location place: playerLocations.values())\n\t\t{\n\t\t\tplaces.add(place);\n\t\t}\n\t\treturn places;\n\t}",
"Collection<L> getLocations ();",
"@NotNull\n\tjava.util.List<@NotNull Location> getSpawnLocations();",
"public ArrayList<Location> getLocations() {\n return locations;\n }",
"java.util.List<phaseI.Hdfs.DataNodeLocation> \n getLocationsList();",
"public Set<Location> get_all_locations() {\n Set<Location> locations = new HashSet<Location>();\n try {\n Object obj = JsonUtil.getInstance().getParser().parse(this.text);\n JSONObject jsonObject = (JSONObject) obj;\n JSONArray array = (JSONArray) jsonObject.get(\"pictures\");\n Iterator<String> iterator = array.iterator();\n while (iterator.hasNext()) {\n locations.add(new Location(iterator.next()));\n }\n return locations;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public ArrayList<GamePiece> getGamePiecesAtLocation(Location loc)\n\t{\n\t\tArrayList<GamePiece> pieceLocation = new ArrayList<GamePiece>();\n\t\tfor(String name: getPlayersAtLocation(loc))\n\t\t{\n\t\t\tpieceLocation.add(getPlayerGamePiece(name));\n\t\t}\n\t\treturn pieceLocation;\n\t}",
"public ArrayList<Location> getMoveLocations()\n {\n ArrayList<Location> locs = new ArrayList<Location>();\n ArrayList<Location> validLocations = getGrid().getValidAdjacentLocations(getLocation());\n for (Location neighborLoc : validLocations)\n {\n if (getGrid().get(neighborLoc) == null || getGrid().get(neighborLoc) instanceof AbstractPokemon || getGrid().get(neighborLoc) instanceof PokemonTrainer)\n locs.add(neighborLoc);\n }\n return locs;\n }",
"public Position[] getWinningPositions();",
"public ArrayList<Location> getEmptyLocations(){\n\n\t\tArrayList<Tile> emptyTiles = getEmptyTiles();\n\t\tArrayList<Location> emptyLocations = new ArrayList<Location>();\n\n\t\tfor (Tile t : emptyTiles) {\n\n\t\t\temptyLocations.add(t.getLocation());\n\t\t}\n\t\treturn emptyLocations;\n\t}",
"public List<Location> getLocations() {\n\t\treturn locations;\n\t}",
"public String[] getAllLocations() {\n // STUB: Return the list of source names\n return null;\n }",
"public static List<Location> generateLocations() {\n\t\tList<Location> locations = new ArrayList<Location>();\n\t\t\n\t\tfor(AREA area : AREA.values()) {\n\t\t\tLocation l = new Location(area);\n\t\t\t\n\t\t\tswitch (area) {\n\t\t\tcase Study:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Hall:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Lounge:\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Library:\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase BilliardRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase DiningRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Conservatory:\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Ballroom:\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Kitchen:\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase HW_SH:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tbreak;\n\t\t\tcase HW_HL:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tbreak;\n\t\t\tcase HW_SL:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tbreak;\n\t\t\tcase HW_HB:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LD:\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LB:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BD:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LC:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tbreak;\n\t\t\tcase HW_BB:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_DK:\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\tcase HW_CB:\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BK:\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlocations.add(l);\n\t\t}\n\t\t\n\t\treturn locations;\n\t}",
"public ArrayList<LocationDetail> getLocations() throws LocationException;",
"public abstract Location[] retrieveLocation();",
"public List<String> locations() {\n return this.locations;\n }",
"private ArrayList<Location> getCandidateLocations(Location origin)\n {\n ArrayList<Location> locs = new ArrayList<>();\n Piece p = getPiece(origin);\n if (p==null)\n return locs;\n switch (p.getType())\n {\n case QUEEN:case ROOK:case BISHOP:\n locs = getLocations();break;\n case KNIGHT:case PAWN:case KING:\n locs = getLocationsWithin(getLocation(p),2);\n }\n return locs;\n }",
"public ArrayList<Location> getAirports() {\n return locations.stream().filter(loc -> loc.getClass().getSuperclass().getSimpleName().equals(\"Airport\")).collect(Collectors.toCollection(ArrayList::new));\n }",
"public List<LocationInfo> getAllLocation() {\n return allLocation;\n }",
"public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n if (locationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(locations_);\n } else {\n return locationsBuilder_.getMessageList();\n }\n }",
"public ArrayList<Location> destinations()\n {\n ArrayList<Location> arr = new ArrayList<Location>();\n for(int i = 0; i < 360; i += 45)\n {\n sweep(arr, i);\n }\n return arr;\n }",
"public ArrayList<String> getPlayersAtLocation(Location loc)\n\t{\n\t\tSet<String> playerLocation = playerLocations.keySet();\n\t\tArrayList<String> player = new ArrayList<String>();\n\t\tfor (String name: playerLocation) \n\t\t{\n\t\t\tif(playerLocations.get(name) == loc)\n\t\t\t{\n\t\t\t\tplayer.add(name);\n\t\t\t}\n\t\t}\n\t\treturn player;\n\t}",
"public static ArrayList<Coords> getCoords() {\n System.out.println(\"aha1 \" + thing);\n ArrayList<Coords> result = new ArrayList<Coords>();\n if(thing.equals(\"Bay Ridge\")){\n result = BayRidgeData.getData();\n System.out.println(\"true\");\n }else if(thing.equals(\"BRCA Commons Area\")){\n result = CommonsData.getData();\n }else{\n result = null;\n }\n return result;\n// return BayRidgeData.getData();\n }",
"public List<FavoriteLocation> queryAllLocations() {\n\t\tArrayList<FavoriteLocation> fls = new ArrayList<FavoriteLocation>(); \n\t\tCursor c = queryTheCursorLocation(); \n\t\twhile(c.moveToNext()){\n\t\t\tFavoriteLocation fl = new FavoriteLocation();\n\t\t\tfl._id = c.getInt(c.getColumnIndex(\"_id\"));\n\t\t\tfl.description = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_DES));\n\t\t\tfl.latitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LAT));\n\t\t\tfl.longitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LON));\n\t\t\tfl.street_info = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_STREET));\n\t\t\tfl.type = c.getInt(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY));\n\t\t\tbyte[] image_byte = c.getBlob(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_PIC)); \n\t\t\tfl.image = BitmapArrayConverter.convertByteArrayToBitmap(image_byte);\n\t\t\tfl.title = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_TITLE));\n\t\t\tfls.add(fl);\n\t\t}\n\t\t// close the cursor\n\t\tc.close();\n\t\treturn fls;\n\t}",
"public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n return locations_;\n }",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation> \n getChunksLocationList();",
"public List<Location> getSpawns(){\n\t\treturn spawns;\n\t}",
"@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }",
"private static void getFighterCoordinateList()\n\t\tthrows IOException\n\t{\n\t\tgetUnitsCoordinateDict();\n\t\tfighter_coordinate_list = unit_coordinate_dict.get(\"Fighter\");\n\t}",
"public static ArrayList<Fighter> getFighterCoordinateObjectList()\n\t\tthrows IOException, SlickException\n\t{\n\t\tArrayList<Fighter> fighter_object_list = new ArrayList<Fighter>();\n\t\tgetFighterCoordinateList();\n\t\tfor(String[] a_set_of_coordinate : fighter_coordinate_list){\n\t\t\tdouble init_x = Double.parseDouble(a_set_of_coordinate[1]);\n\t\t\tdouble init_y = Double.parseDouble(a_set_of_coordinate[2]);\n\t\t\tfighter_object_list.add(new Fighter(init_x,init_y)); \n\t\t}\n\t\treturn fighter_object_list;\n\t}",
"public ArrayList<Item> getListItemFromLocationAll()\r\n\t{\r\n\t\tArrayList<Item> tempListItem = new ArrayList<Item>();\r\n\t\tfor(int i = 0; i < this.listLocation.size(); i++) \r\n\t\t{\r\n\t\t\tLocation tempLocation = this.listLocation.get(i);\r\n\t\t\ttempListItem.addAll(tempLocation.getListItem());\r\n\t\t}\r\n\t\treturn tempListItem;\r\n\t}",
"@Override\n\tpublic List<Location> getVertices() {\n\t\treturn locations;\n\t}",
"@Override\r\n\tpublic List<Coordinate> getPossibleLocations(Coordinate currentLocation) {\r\n\r\n\t\tList<Coordinate> possibleCoordinates = new ArrayList<Coordinate>();\r\n\t\tint x = currentLocation.getX();\r\n\t\tint y = currentLocation.getY();\r\n\t\twhile (x > 0 && y > 0) {\r\n\t\t\tx--;\r\n\t\t\ty--;\r\n\t\t\tpossibleCoordinates.add(new Coordinate(x, y));\r\n\t\t}\r\n\t\tx = currentLocation.getX();\r\n\t\ty = currentLocation.getY();\r\n\r\n\t\twhile (x < Board.SIZE - 1 && y < Board.SIZE - 1) {\r\n\t\t\tx++;\r\n\t\t\ty++;\r\n\t\t\tpossibleCoordinates.add(new Coordinate(x, y));\r\n\t\t}\r\n\r\n\t\tx = currentLocation.getX();\r\n\t\ty = currentLocation.getY();\r\n\r\n\t\twhile (x > 0 && y < Board.SIZE - 1) {\r\n\t\t\tx--;\r\n\t\t\ty++;\r\n\t\t\tpossibleCoordinates.add(new Coordinate(x, y));\r\n\t\t}\r\n\r\n\t\tx = currentLocation.getX();\r\n\t\ty = currentLocation.getY();\r\n\t\twhile (x < Board.SIZE - 1 && y > 0) {\r\n\t\t\tx++;\r\n\t\t\ty--;\r\n\t\t\tpossibleCoordinates.add(new Coordinate(x, y));\r\n\t\t}\r\n\t\treturn possibleCoordinates;\r\n\t}",
"List<String> getFarzones();",
"public String[] getGeoSystem();",
"public Cursor getAllLocationsLoc(){\n if (mDB != null)\n return mDB.query(LOCNODE_TABLE, new String[] { FIELD_ROW_ID, FIELD_NAME, FIELD_ADDY, FIELD_LAT , FIELD_LNG, FIELD_TIMESVISITED }, null, null, null, null, null);\n Cursor c = null;\n return c;\n }",
"public Point[] getLocation()\n {\n return shipLocation.clone();\n }",
"private List<BaseLocation> getExpectedBaseLocations() {\r\n final List<BaseLocation> baseLocations = new ArrayList<>();\r\n\r\n final Position position1 = new Position(3104, 3856, PIXEL);\r\n final Position center1 = new Position(3040, 3808, PIXEL);\r\n baseLocations.add(new BaseLocation(position1, center1, 13500, 5000, true, false, true));\r\n\r\n final Position position2 = new Position(2208, 3632, PIXEL);\r\n final Position center2 = new Position(2144, 3584, PIXEL);\r\n baseLocations.add(new BaseLocation(position2, center2, 9000, 5000, true, false, false));\r\n\r\n final Position position3 = new Position(640, 3280, PIXEL);\r\n final Position center3 = new Position(576, 3232, PIXEL);\r\n baseLocations.add(new BaseLocation(position3, center3, 13500, 5000, true, false, true));\r\n\r\n final Position position4 = new Position(2688, 2992, PIXEL);\r\n final Position center4 = new Position(2624, 2944, PIXEL);\r\n baseLocations.add(new BaseLocation(position4, center4, 9000, 5000, true, false, false));\r\n\r\n final Position position5 = new Position(1792, 2480, PIXEL);\r\n final Position center5 = new Position(1728, 2432, PIXEL);\r\n baseLocations.add(new BaseLocation(position5, center5, 12000, 0, true, true, false));\r\n\r\n final Position position6 = new Position(3200, 1776, PIXEL);\r\n final Position center6 = new Position(3136, 1728, PIXEL);\r\n baseLocations.add(new BaseLocation(position6, center6, 13500, 5000, true, false, true));\r\n\r\n final Position position7 = new Position(640, 1968, PIXEL);\r\n final Position center7 = new Position(576, 1920, PIXEL);\r\n baseLocations.add(new BaseLocation(position7, center7, 9000, 5000, true, false, false));\r\n\r\n final Position position8 = new Position(1792, 1808, PIXEL);\r\n final Position center8 = new Position(1728, 1760, PIXEL);\r\n baseLocations.add(new BaseLocation(position8, center8, 12000, 0, true, true, false));\r\n\r\n final Position position9 = new Position(2336, 560, PIXEL);\r\n final Position center9 = new Position(2272, 512, PIXEL);\r\n baseLocations.add(new BaseLocation(position9, center9, 13500, 5000, true, false, true));\r\n\r\n final Position position10 = new Position(3584, 720, PIXEL);\r\n final Position center10 = new Position(3520, 672, PIXEL);\r\n baseLocations.add(new BaseLocation(position10, center10, 9000, 5000, true, false, false));\r\n\r\n final Position position11 = new Position(544, 432, PIXEL);\r\n final Position center11 = new Position(480, 384, PIXEL);\r\n baseLocations.add(new BaseLocation(position11, center11, 13500, 5000, true, false, true));\r\n\r\n return baseLocations;\r\n }",
"public List<Location> neighbors (Location pos);",
"public float[] getLocation() {\n return llpoints;\n }",
"private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"public ArrayList<Location> getDocks() {\n return locations.stream().filter(loc -> loc.getClass().getSimpleName().equals(\"Dock\")).collect(Collectors.toCollection(ArrayList::new));\n }",
"public ArrayList<Country> getCountryList() throws LocationException;",
"public abstract java.util.Set getLocations();",
"public List<GeoRegionInner> locations() {\n return this.locations;\n }",
"protected abstract void getAllUniformLocations();",
"public ArrayList<Literal> atLocation(String agName){\r\n\t\tperceptModel = MapEnv.model;\r\n\t\tArrayList<Literal> atLoc = new ArrayList<Literal>();\r\n\t\tif(perceptModel != null && agName != null){\r\n\t\t\t//Initialise the Agent Variables\r\n\t\t\tFlag \t perceptFlag = perceptModel.flag;\r\n\t\t\tint \t id = perceptModel.getAgentID(agName);\r\n\t\t\tLocation lplayer = perceptModel.getAgPos(id); \r\n\r\n\t\t\t//Call the Literals for adding the Perceptions\r\n\t\t\tif(perceptModel.flag.agentCarrying == id){\r\n\t\t\t\tatLoc.add(hf);\r\n\t\t\t}\r\n\t if (lplayer.equals(perceptFlag.getFlagLoc()) && !perceptFlag.flagCarried){\r\n\t \tatLoc.add(af);\r\n\t } else if(perceptFlag.flagCarried && perceptFlag.agentCarrying != id){\r\n\t \tatLoc.add(ft);\r\n\t }\r\n\t if (lplayer.equals(getTeamBase(id)))\r\n\t \tatLoc.add(ab);\r\n\t return atLoc;\r\n\t\t} return null;\r\n\t}",
"public ArrayList<NewLocation> getMyPlaces_ra() {\n return myPlaces_ra;\n }",
"@Override\r\n\tpublic ArrayList<Gps> getAllGpsLocation() {\n\t\treturn null;\r\n\t}",
"public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation> getChunksLocationList() {\n if (chunksLocationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(chunksLocation_);\n } else {\n return chunksLocationBuilder_.getMessageList();\n }\n }",
"LiveData<List<Location>> getAllLocations() {\n return mAllLocations;\n }",
"public ArrayList<Location> getMilitaryAirports() {\n return getAirports().stream().filter(loc -> loc.getClass().getSimpleName().equals(\"MilitaryAirport\")).collect(Collectors.toCollection(ArrayList::new));\n }",
"@Override\n public List<Location> getAll() {\n\n List<Location> locations = new ArrayList<>();\n \n Query query = new Query(\"Location\");\n PreparedQuery results = ds.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n double lat = (double) entity.getProperty(\"lat\");\n double lng = (double) entity.getProperty(\"lng\");\n String title = (String) entity.getProperty(\"title\");\n String note = (String) entity.getProperty(\"note\");\n int voteCount = ((Long) entity.getProperty(\"voteCount\")).intValue();\n String keyString = KeyFactory.keyToString(entity.getKey()); \n // TODO: Handle situation when one of these properties is missing\n\n Location location = new Location(title, lat, lng, note, voteCount, keyString);\n locations.add(location);\n }\n return locations;\n }",
"@Override\r\n\tpublic ArrayList<Location> getSolutionAsListOfLocations(PWPSolutionInterface oSolution) {\n\r\n\t\tArrayList<Location> locationsList = new ArrayList<Location>();//create an arraylist of locations\r\n\t\t\r\n\t\tint[] solutions = oSolution.getSolutionRepresentation().getSolutionRepresentation(); //get the solutions as an array of integers, first from the PWPSolutionInterface and then from the SolutionRepresentationInterface\r\n\t\t\r\n\t\tfor (int i= 0 ; i < solutions.length ; i++) { //go through the array of integers and add each one to the arraylist using the getLocationforDelivery method from the PWPInstanceInterface class\r\n\t\t\tlocationsList.add(getLocationForDelivery(solutions[i]));\r\n\t\t}\r\n\r\n\t\treturn locationsList;\r\n\t\t\r\n\t}",
"public LiveData<List<PhotoData>> getGeoLocatedImages(){\n locationImages = mRepository.findGeoLocatedImages();\n\n return locationImages;\n }",
"Set<Location> extractLocations() {\n try {\n Set<Location> extracted = CharStreams.readLines(\n gazetteer,\n new ExtractLocations(populationThreshold)\n );\n\n // Raw population stats doesn't work great in the internet as-is. Calibrate for online activity\n calibrateWeight(extracted);\n\n return extracted;\n\n } catch (IOException e) {\n throw Throwables.propagate(e);\n }\n }",
"private void getLocations() {\n TripSave tripSave = TripHelper.tripOngoing();\n if (tripSave != null) {\n for (LocationSave locationSave : tripSave.getLocations()) {\n if (locationSave != null) {\n tripTabFragment.drawPolyLine(new LatLng(locationSave.getLatitude(), locationSave.getLongitude()));\n }\n }\n }\n }",
"public List<Position> getFoodPositions() {\n List<Position> positions = new ArrayList<>();\n\n for (int i = 0; i < amount; i++) {\n positions.add(foodPositions[i]);\n }\n return positions;\n }",
"public ArrayList<Location> getMoveLocations(Piece p)\n {\n Location loc = getLocation(p);\n ArrayList<Location> locs = getCandidateLocations(loc);\n if (p==null)\n return null;\n for (int i = 0; i < locs.size(); i++)\n {\n if (canMoveTo(p,locs.get(i))==ILLEGAL_MOVE)\n {\n locs.remove(i);\n i--;\n }\n else\n {\n Board b = new Board(this);\n b.movePiece(loc,locs.get(i));\n if (b.findKing(p.getColor())!=null&&b.inCheck(p.getColor()))\n {\n locs.remove(i);\n i--;\n }\n }\n }\n return locs;\n }",
"public String[] locationNames(){\n\t\tString[] s = new String[locations.length];\n\t\tfor(int i=0; i<locations.length; i++){\n\t\t\ts[i] = locations[i].toString();\n\t\t}\n\t\treturn s;\n\t\t//return Arrays.copyOf(locations, locations.length, String[].class);\n\t}",
"public static LocationId getLocationIds()\n {\n LocationId locnIds = new LocationId();\n IoTGateway.getGlobalStates().forEach(\n (locn,sv)->{\n locnIds.addId(locn);\n }\n );\n return locnIds;\n }",
"public List<Position> getPositions(){\r\n List<Position> listPosition = new ArrayList();\r\n int row=currentPosition.getRow(),column=currentPosition.getColumn();\r\n listPosition=getPositionFor(row, column, listPosition);\r\n return listPosition;\r\n }",
"public static void listGeolocations()\n {\n {\n JSONArray listGeolocations = new JSONArray();\n List<User> users = User.findAll();\n for (User user : users)\n {\n listGeolocations.add(Arrays.asList(user.firstName, user.latitude, user.longitude));\n }\n renderJSON(listGeolocations);\n }\n }",
"phaseI.Hdfs.DataNodeLocation getLocations(int index);",
"public static ArrayList<XYCoord> findVisibleLocations(GameMap map, Unit viewer, boolean piercing)\n {\n return findVisibleLocations(map, viewer, viewer.x, viewer.y, piercing);\n }",
"public java.util.List<EncounterLocation> location() {\n return getList(EncounterLocation.class, FhirPropertyNames.PROPERTY_LOCATION);\n }",
"public int[] getCoords() {\n return coords;\n }",
"public ArrayList<StartLocation> getAvailableStartLocs() {\r\n\t\treturn availableStartLocs;\r\n\t}",
"public abstract int[] getCoords();",
"public List<LatLng> getCoordinates() {\n return mCoordinates;\n }",
"public int[][] place(){\r\n\t\treturn coords(pos);\r\n\t}",
"@Override\n\tpublic ArrayList<BoardLocation> findLocation() {\n\t\treturn null;\n\t}",
"public ArrayList<Location> getPublicAirports() {\n return getAirports().stream().filter(loc -> loc.getClass().getSimpleName().equals(\"PublicAirport\")).collect(Collectors.toCollection(ArrayList::new));\n }",
"LocationsClient getLocations();",
"java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();",
"public ArrayList<Coordinates> getHeroesPositions (){\n\t\tArrayList<Coordinates> path = new ArrayList<>();\n\t\tArrayList<Coordinates> coordinatePieces = chessboard.getTurnPieces();\n\t\tArrayList<Coordinates> threats = getThreats();\n\n\t\tfor ( Coordinates c : threats ){\n\t\t\tpath.add(c); //aggiungo la posizione dell'avversario\n\t\t\tif ( !(chessboard.at(c) instanceof Knight) )\n\t\t\t\tpath.addAll(chessboard.at(c).getPath(c, chessboard.getTurnKing())); //tutte le posizione in cui può andare\n\t\t}\n\t\t\n\t\tArrayList<Coordinates> result = new ArrayList<>();\n\t\t\tfor ( Coordinates c : coordinatePieces )\n\t\t\t\tfor ( Coordinates to : path)\n\t\t\t\t\tif ( !(chessboard.at(c) instanceof King) && checkMove(c, to) )\n\t\t\t\t\t\tresult.add(to);\n\t\treturn result;\n\t}",
"List<LatLng> mo201i() throws RemoteException;",
"public java.util.List<? extends phaseI.Hdfs.DataNodeLocationOrBuilder> \n getLocationsOrBuilderList() {\n if (locationsBuilder_ != null) {\n return locationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(locations_);\n }\n }",
"public ArrayList<Building> getSavedDestinations() {\r\n\r\n ArrayList<Building> buildingsList = new ArrayList<Building>();\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_HISTORY);\r\n builder.setProjectionMap(mColumnMapHistory);\r\n\r\n builder.setTables(FTS_VIRTUAL_TABLE_HISTORY + \" INNER JOIN \" + BuildingDatabase.FTS_VIRTUAL_TABLE +\r\n \" ON \" + BUILDING_ID + \" = \" + BuildingDatabase.FTS_VIRTUAL_TABLE + \".\" + BaseColumns._ID);\r\n\r\n String[] columns = new String[] {\r\n BUILDING_ID, //building id\r\n BuildingDatabase.KEY_BUILDING, //name\r\n BuildingDatabase.KEY_DETAILS, //points\r\n };\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n columns, null, null, null, null, null);\r\n\r\n while (cursor.moveToNext()) {\r\n int building_id = cursor.getInt(cursor.getColumnIndex(BaseColumns._ID));\r\n String name = cursor.getString(cursor.getColumnIndex(BuildingDatabase.KEY_BUILDING));\r\n String content = cursor.getString(cursor.getColumnIndex(BuildingDatabase.KEY_DETAILS));\r\n List<Point> list = ParserUtils.buildingPointsParser(content);\r\n\r\n buildingsList.add(new Building(building_id, name, list));\r\n }\r\n\r\n Collections.reverse(buildingsList);\r\n return buildingsList;\r\n }",
"@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}",
"public List<PhotoLocation> loadSavedLocations(GoogleMap xMap) {\n List<PhotoLocation> list = mDb.locationModel().loadAllLocations();\n for (PhotoLocation each : list) {\n MarkerOptions m = new MarkerOptions();\n m.position(new LatLng(each.lat, each.lon));\n m.title(each.name);\n Marker marker = xMap.addMarker(m);\n marker.setTag(each.id);\n mMarkers.add(marker);\n }\n return list;\n }",
"public Cursor getAllLocations()\n\t{\n\t\treturn db.query(DATABASE_TABLE, new String[] {\n\t\t\t\tKEY_DATE,KEY_LAT,KEY_LNG},\n\t\t\t\tnull,null,null,null,null);\n\t}",
"public ArrayList<String> LocationInputStream() {\n ArrayList<String> locations = new ArrayList<String>();\n AssetManager assetManager = getAssets();\n\n try {\n// InputStream inputStream = getAssets().open(\"au_locations.txt\");\n InputStream inputStream = openFileInput(\"Locations.txt\");\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\n String location;\n\n while ((location = bufferedReader.readLine()) != null) {\n locations.add(location.toString());\n }\n bufferedReader.close();\n inputStreamReader.close();\n inputStream.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } return locations;\n }",
"public ArrayList<ArrayList<Pokemon>> getlistOfNeighborhoods()\n\t{\n\t\treturn ((ArrayList<ArrayList<Pokemon>>)(listOfNeighborhoods.clone()));\n\t}",
"public List<DataLocation> getOutputDataLocations(){\n\treturn defaultDataLocations();\n }",
"private int[] findHome() {\n int[] loc = new int[2];\n switch (playerNum) {\n case 0: //player RED's home\n loc[0] = 0;\n loc[1] = 0;\n break;\n case 1: //player YELLOW's home\n loc[0] = 6;\n loc[1] = 0;\n break;\n case 2: //player GREEN's home\n loc[0] = 6;\n loc[1] = 6;\n break;\n case 3: //player BLUE's home\n loc[0] = 0;\n loc[1] = 6;\n break;\n default:\n loc[0] = -1;\n loc[1] = -1;\n break;\n }\n return loc;\n }",
"public Position[] getPositions() {\n return _positions;\n }",
"@Override\n public Map<String,Map<String,Object>> getLocatedLocations() {\n Map<String,Map<String,Object>> result = new LinkedHashMap<String,Map<String,Object>>();\n Map<Location, Integer> counts = new EntityLocationUtils(mgmt()).countLeafEntitiesByLocatedLocations();\n for (Map.Entry<Location,Integer> count: counts.entrySet()) {\n Location l = count.getKey();\n Map<String,Object> m = MutableMap.<String,Object>of(\n \"id\", l.getId(),\n \"name\", l.getDisplayName(),\n \"leafEntityCount\", count.getValue(),\n \"latitude\", l.getConfig(LocationConfigKeys.LATITUDE),\n \"longitude\", l.getConfig(LocationConfigKeys.LONGITUDE)\n );\n result.put(l.getId(), m);\n }\n return result;\n }",
"@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}"
] | [
"0.7662291",
"0.7297666",
"0.7212381",
"0.7192795",
"0.71272177",
"0.6934707",
"0.68370533",
"0.67951584",
"0.6790293",
"0.6770006",
"0.6768162",
"0.6717556",
"0.6678903",
"0.6670269",
"0.66355914",
"0.6553941",
"0.6486367",
"0.64580524",
"0.64456654",
"0.6445335",
"0.6423031",
"0.6418886",
"0.6414741",
"0.63706845",
"0.6360238",
"0.63558865",
"0.628645",
"0.62820995",
"0.6272279",
"0.6262112",
"0.6251253",
"0.62416536",
"0.62278974",
"0.62077576",
"0.61985767",
"0.6180467",
"0.6168972",
"0.6144542",
"0.612102",
"0.61173093",
"0.6108723",
"0.61044693",
"0.61029416",
"0.60969126",
"0.60940033",
"0.6062056",
"0.6033699",
"0.6030845",
"0.60261565",
"0.60128707",
"0.60110795",
"0.59944725",
"0.59808165",
"0.59752536",
"0.59715575",
"0.59644055",
"0.5964172",
"0.59346294",
"0.5931705",
"0.5925154",
"0.5908303",
"0.5902929",
"0.59027016",
"0.58980507",
"0.589676",
"0.589172",
"0.587821",
"0.5877962",
"0.5875446",
"0.5874285",
"0.58731854",
"0.5869578",
"0.58498144",
"0.58451617",
"0.5841021",
"0.584015",
"0.5827521",
"0.5822737",
"0.5818815",
"0.58149564",
"0.5805896",
"0.57978624",
"0.5780075",
"0.577918",
"0.5778541",
"0.57777524",
"0.5777454",
"0.57644117",
"0.5762463",
"0.576144",
"0.57575226",
"0.575641",
"0.5743992",
"0.574245",
"0.57422936",
"0.57410806",
"0.5708676",
"0.570773",
"0.5706764",
"0.5705294"
] | 0.7398431 | 1 |
load total score from database,store to backup value and return it | public int getTotalScore() {
LoadingDatabaseTotalScore();
return totalScore;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void LoadingDatabaseTotalScore() {\n\n\t\tCursor cursor = helper.getDataAll(TotalScoretableName);\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tString totalPoint = cursor.getString(POINT_TOTAL_SCORE_COLUMN);\n\t\t\t\n\t\t\ttotalScore = Integer.parseInt(totalPoint);\t\t\t\t\t// store total score from database to backup value\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"public int getTotalScore(){\r\n return totalScore;\r\n }",
"private void saveInitialTotalScore() {\n\t\thelper.insertTotalScoreData(TotalScoretableName, totalScoreID, \"0\");\n\t}",
"public int getTotalScore(){\n return totalScore;\n }",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }",
"@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}",
"public int getTotalScore() {\r\n return totalScore;\r\n }",
"public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }",
"@Override\n\tpublic void loadScore() {\n\n\t}",
"public int getScore()\n {\n // put your code here\n return score;\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public static int getScore(){\n return score;\n }",
"@Override\n public int getScore() {\n return totalScore;\n }",
"public int totalScore() {\n return 0;\n }",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public Double getTotalScore() {\n return totalScore;\n }",
"int getScore();",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"private void extractNewScoreBoard(){\n if (FileStorage.getInstance().fileNotExist(this, \"FinalScore1.ser\")){\n score = new Score();\n score.addScoreUser(user);\n FileStorage.getInstance().saveToFile(this.getApplicationContext(), score, \"FinalScore1.ser\");\n } else {\n score = (Score) FileStorage.getInstance().readFromFile(this, \"FinalScore1.ser\");\n score.insertTopFive(user);\n FileStorage.getInstance().saveToFile(this, score, \"FinalScore1.ser\");\n }\n }",
"public int getScore()\n {\n return score; \n }",
"float getScore();",
"float getScore();",
"public static int getScore()\n {\n return score;\n }",
"public int getScore ()\r\n {\r\n\treturn score;\r\n }",
"public void getscores() {\n\t\tInputStream in = null;\n\t\t//String externalStoragePath= Environment.getExternalStorageDirectory()\n // .getAbsolutePath() + File.separator;\n\t\t\n try {\n \tAssetManager assetManager = this.getAssets();\n in = assetManager.open(\"score.txt\");\n \tSystem.out.println(\"getting score\");\n //in = new BufferedReader(new InputStreamReader(new FileInputStream(externalStoragePath + \"score.txt\")));\n \n \tGlobalVariables.topScore = Integer.parseInt(new BufferedReader(new InputStreamReader(in)).readLine());\n System.out.println(\"topscore:\"+GlobalVariables.topScore);\n \n\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (NumberFormatException e) {\n // :/ It's ok, defaults save our day\n \tSystem.out.println(\"numberformatexception score\");\n } finally {\n try {\n if (in != null)\n in.close();\n } catch (IOException e) {\n }\n }\n\t}",
"int getScoreValue();",
"@Override\r\n\tpublic void allScore() {\r\n\t\tallScore = new ArrayList<Integer>();\r\n\t\tallPlayer = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n \r\n String query = \"SELECT NAME_PLAYER, SUM(SCORE) AS 'SCORE'\" +\r\n \t\t\" FROM SINGLEPLAYERDB\" +\r\n \t\t\" GROUP BY NAME_PLAYER\" +\r\n \t\t\" ORDER BY SCORE DESC\" ;\r\n ResultSet rs = stmt.executeQuery(query);\r\n \r\n \r\n while (rs.next()) {\r\n \tallPlayer.add(rs.getString(1));\r\n \tallScore.add(Integer.parseInt(rs.getString(2)));\r\n }\r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore() { return score; }",
"public int score() {\n return score;\n }",
"@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}",
"public int getScore() {return score;}",
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"Float getScore();",
"public int getScore(){\n\t\treturn score;\n\t}",
"public int getScore(){\n\t\treturn score;\n\t}",
"public int getScore()\n {\n return score;\n }",
"public double getTotalScore() {\n\t return this.totalScore;\n\t }",
"public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"int getScore() {\n return score;\n }",
"public static int getScore()\n\t{\n\t\treturn score;\n\t}",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"private static int readScore() {\n try {\n fis = activity.openFileInput(scoreFileName);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis));\n String readLine = br.readLine();\n fis.close();\n br.close();\n Log.v(\"Setting score to: \", readLine);\n return Integer.parseInt(readLine);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0;\n }",
"public Long getScore() {\n return score;\n }",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\r\n \treturn score;\r\n }",
"public int getScore() {\n return score;\n }",
"private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"@Override\r\n\tpublic long getscore(Map<String, Object> map) {\n\t\tCustomer_judge_driver c= new Customer_judge_driver();\r\n\t\tlong sum =0;\r\n try{\r\n\t\t\t\r\n \t Long score = (Long)getSqlMapClientTemplate().queryForObject(c.getClass().getName()+\".selectscore\",map);\r\n \t if (score == null){\r\n \t\treturn sum;\r\n \t }\r\n \t sum = score;\r\n \t return sum;\r\n\t\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.out.println(\"数据连接失败,请检查数据服务是否开启\");\r\n\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t}\r\n\t}",
"public Integer getScore() {\r\n return score;\r\n }",
"public double getScore() {\r\n return score;\r\n }",
"public int getScore () {\n return mScore;\n }",
"public int getScore()\n {\n return currentScore;\n }",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int returnPoints()\n {\n return score ;\n }",
"public void rollBackTotal( int turnQuit )\n {\n totalScore -= turnScores[turnQuit];\n }",
"public long getScore() {\n return score_;\n }",
"public long getScore() {\n return score_;\n }",
"public static int ReadBestScore()\n {\n int best_score = -1;\n try \n {\n BufferedReader file = new BufferedReader(new FileReader(score_file_name));\n best_score = Integer.parseInt(file.readLine());\n file.close();\n } \n catch (Exception e) { SaveBestScore(0); }\n \n currentBestScore = best_score;\n return best_score;\n }",
"public Integer getScore() {\n return score;\n }",
"public int getScore(){\n return this.score;\n }",
"public int getScore() {\n return currentScore;\n }",
"public int getScore(){\n \treturn 100;\n }",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"@Override\r\n\tpublic double getStoredGazeScore() {\n\t\treturn this.gazeScore;\r\n\t}",
"public int getScore() {\n return getStat(score);\n }",
"public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }",
"public int getHomeScore();",
"public long getScore() {\n return score_;\n }",
"public long getScore() {\n return score_;\n }",
"@Override\n public int getScore() {\n return score;\n }",
"public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}",
"public int getScore()\n {\n return points + extras;\n }",
"public BigDecimal getScores() {\n return scores;\n }",
"void addScore(double score){\n\t\tsumScore+=score;\n\t\tnumScores++;\n\t\taverage = sumScore/numScores;\n\t}",
"public int getScore(){ return this.score; }",
"int score();",
"int score();",
"Float getAutoScore();",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public double getScore() {\r\n return mScore;\r\n }",
"public int currentHighscore() { \r\n \tFileReader readFile = null;\r\n \tBufferedReader reader = null;\r\n \ttry\r\n \t{\r\n \t\treadFile = new FileReader(\"src/p4_group_8_repo/scores.dat\");\r\n \t\treader = new BufferedReader(readFile);\r\n \t\treturn Integer.parseInt(reader.readLine());\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\treturn 0;\r\n \t}\r\n \tfinally\r\n \t{\r\n \t\ttry {\r\n \t\t\tif (reader != null)\r\n\t\t\t\treader.close();\r\n\t\t\t} catch (IOException e) {\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"private double getScore() {\n double score = 0;\n score += getRBAnswers(R.id.radiogroup1, R.id.radiobutton_answer12);\n score += getRBAnswers(R.id.radiogroup2, R.id.radiobutton_answer21);\n score += getRBAnswers(R.id.radiogroup3, R.id.radiobutton_answer33);\n score += getRBAnswers(R.id.radiogroup4, R.id.radiobutton_answer41);\n score += getCBAnswers();\n score += getTextAns();\n score = Math.round(score / .0006);\n score = score / 100;\n return score;\n }",
"public static void sumTotalScore() {\n totalScore += addRandomScore();;\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }"
] | [
"0.79513603",
"0.69218546",
"0.6701659",
"0.66986746",
"0.6654535",
"0.6617098",
"0.64648795",
"0.64648795",
"0.64648795",
"0.64648795",
"0.6441692",
"0.63711",
"0.6370792",
"0.63492846",
"0.63323724",
"0.63283515",
"0.63042253",
"0.6295351",
"0.62632793",
"0.6259657",
"0.61862886",
"0.6178673",
"0.61378384",
"0.61266553",
"0.61250985",
"0.6121263",
"0.6110325",
"0.6110325",
"0.6108546",
"0.6098671",
"0.60932827",
"0.608536",
"0.6071252",
"0.6067507",
"0.6067507",
"0.6061069",
"0.60450387",
"0.60446393",
"0.6042619",
"0.6033688",
"0.6020369",
"0.6019345",
"0.6017579",
"0.6017579",
"0.600436",
"0.59984183",
"0.5995847",
"0.59955466",
"0.5990865",
"0.59877354",
"0.59877354",
"0.59877354",
"0.5985684",
"0.59796405",
"0.59702194",
"0.59702194",
"0.5967874",
"0.5967874",
"0.5949287",
"0.59342223",
"0.59205145",
"0.5916099",
"0.59112984",
"0.5910732",
"0.591063",
"0.59089535",
"0.59084564",
"0.59084564",
"0.58983845",
"0.5896899",
"0.58951676",
"0.58951676",
"0.5894138",
"0.5893897",
"0.588105",
"0.58802587",
"0.58786654",
"0.5870801",
"0.5870801",
"0.5859276",
"0.5849882",
"0.584832",
"0.582719",
"0.5819336",
"0.5819336",
"0.58191854",
"0.58166933",
"0.5815346",
"0.580694",
"0.5804515",
"0.580451",
"0.58038837",
"0.58038837",
"0.5794648",
"0.5793771",
"0.5786807",
"0.5785789",
"0.57826525",
"0.5782039",
"0.57770616"
] | 0.6746242 | 2 |
load inital game locations if database pool location table is empty | private void saveInitialGameLocation() {
GAME_LIST = new ArrayList<gameLocation>();
for (int i = 0; i < NumGameLocation; i++) {
addNewGame(getGameLocation(i));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public void onLoad()\n {\n saveDefaultConfig();\n\n // Get the lobby name\n chatManager = new ChatManager(this);\n lobby = getConfig().getString(\"lobby\");\n\n // Loading up needed classes\n worldManager = new WorldManager(this);\n\n boolean backupsFound = false;\n\n File backupDir = new File(getDataFolder(), \"backups\");\n if (!backupDir.exists()) {\n getLogger().info(\"No backup directory found; creating one now.\");\n getLogger().info(\"Place world folders you want to reset from in '.../plugins/SkyblockWarriors/backups'\");\n backupDir.mkdirs();\n } else {\n for (File backup : backupDir.listFiles()) {\n if ((backup.isDirectory()) && (backup.listFiles().length != 0)) {\n backupsFound = true;\n }\n }\n\n if (backupsFound) {\n getLogger().info(\"Found backup folder, attempting to reset the world..\");\n // Resetting the world\n worldManager.resetWorld();\n } else {\n if (!getConfig().getBoolean(\"arena-setup\") == false) {\n getLogger().info(\"The plugin should be setup, please copy the world into the backup folder\");\n getLogger().info(\"so the plugin can reset the world on each restart!\");\n }\n }\n }\n }",
"void countries_init() throws SQLException {\r\n countries = DatabaseQuerySF.get_all_stations();\r\n }",
"private void loadLocations()\n {\n locationsPopUpMenu.getMenu().clear();\n\n ArrayList<String> locations = new ArrayList<>(locationDBManager.findSavedLocations());\n for (int i=0; i < locations.size(); i++)\n {\n locationsPopUpMenu.getMenu().add(locations.get(i));\n }\n }",
"public void loadStart()\n {\n score = 0;\n clear();\n HashMap<Location, State> start = gm.start();\n for (Location add : start.keySet())\n addToBoard(add, start.get(add));\n }",
"public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}",
"private void startUpPhase()\n\t{\n\t\tmap.distributeCountries(); /* Randomly split the countries between the players */\n\t\tArrayList<Player> remainingPlayers = new ArrayList<Player>(map.players);\n\t\t\n\t\tdo \n\t\t{\n\t\t\tIterator<Player> i = remainingPlayers.iterator();\n\t\t\t\n\t\t\twhile (i.hasNext()) \n\t\t\t{\n\t\t\t\tPlayer p = i.next();\n\t\t\t\tif(p.getArmies() == 0) \n\t\t\t\t{\n\t\t\t\t\ti.remove();\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tp.placeOneArmy();\n\t\t\t\t}\n\t\t\t}\n\t\t}while(remainingPlayers.size() != 0);\n\t}",
"private void testInitialization() {\r\n\r\n\r\n\t\tthis.myMapDB = MapDB.getInstance();\r\n\t\tthis.myClumpDB = ClumpDB.getInstance();\r\n\t}",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }",
"private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}",
"private void loadLocation() {\n\r\n\t\t_stateItems = new ArrayList<DropDownItem>();\r\n\t\t_stateAdapter = new DropDownAdapter(getActivity(), _stateItems);\r\n\t\tspin_state.setAdapter(_stateAdapter);\r\n\r\n\t\t_cityItems = new ArrayList<DropDownItem>();\r\n\t\t_cityAdapter = new DropDownAdapter(getActivity(), _cityItems);\r\n\t\tspin_city.setAdapter(_cityAdapter);\r\n\r\n\t\t_locationItems = new ArrayList<DropDownItem>();\r\n\t\t_locationAdapter = new DropDownAdapter(getActivity(), _locationItems);\r\n\t\tspin_location.setAdapter(_locationAdapter);\r\n\r\n\t\tnew StateAsync().execute(\"\");\r\n\r\n\t}",
"public void loadDisabledWorlds() {\n disabledWorlds = ConfigManager.getInstance().getDisabledWorlds();\n }",
"public void initMap(String path) {\n \tgameState = StateParser.makeGame(path);\n\t\tintel = gameState.getCtrlIntel();\t\n\t\tsnakes = gameState.getSnake();\n\t\tmap = gameState.getMap();\n }",
"public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }",
"public static void initGenerateOfflineTestData(){\n dbInstance = Database.newInstance();\n initPlayer();\n initMatches();\n }",
"public void initAndSetWorld() {\n\t\tHashMap<String, Location> gameWorld = new HashMap<String, Location>();\r\n\t\tthis.world = gameWorld;\r\n\t\t\r\n\t\t// CREATING AND ADDING LOCATIONS, LOCATION AND ITEM HASHES ARE AUTOMATICALLY SET BY CALLING CONSTRUCTOR\r\n\t\tLocation valley = new Location(\"valley\", \"Evalon Valley. A green valley with fertile soil.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(valley);\r\n\t\tLocation plains = new Location(\"plains\", \"West Plains. A desolate plain.\",\r\n\t\t\t\t\"You cannot go in that direction. There is nothing but dust over there.\",true);\r\n\t\tthis.addLocation(plains);\r\n\t\tLocation mountain = new Location(\"mountain\", \"Northern Mountains. A labyrinth of razor sharp rocks.\",\r\n\t\t\t\t\"You cannot go in that direction. The Mountain is not so easily climbed.\",true);\r\n\t\tthis.addLocation(mountain);\r\n\t\tLocation shore = new Location(\"shore\", \"Western Shore. The water is calm.\",\r\n\t\t\t\t\"You cannot go in that direction. There might be dangerous beasts in the water.\",true);\r\n\t\tthis.addLocation(shore);\r\n\t\tLocation woods = new Location(\"woods\", \"King's Forest. A bright forest with high pines.\",\r\n\t\t\t\t\"You cannot go in that direction. Be careful not to get lost in the woods.\",true);\r\n\t\tthis.addLocation(woods);\r\n\t\tLocation hills = new Location(\"hills\", \"Evalon hills.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(hills);\r\n\t\tLocation cave = new Location(\"cave\", \"Blood Cave. Few of those who venture here ever return.\",\r\n\t\t\t\t\"The air smells foul over there, better not go in that direction.\",true);\r\n\t\tthis.addLocation(cave);\r\n\t\tLocation innercave = new Location(\"innercave\", \"Blood Cave. This path must lead somewhere.\",\r\n\t\t\t\t\"Better not go over there.\",true);\r\n\t\t\r\n\t\tLocation westhills = new Location(\"westhills\", \"Thornhills. A great many trees cover the steep hills.\",\r\n\t\t\t\t\"You cannot go in that direction. Watch out for the thorny bushes.\",true);\r\n\t\tthis.addLocation(westhills);\r\n\t\t\r\n\t\tLocation lake = new Location(\"lake\", \"Evalon Lake. A magnificent lake with a calm body of water.\",\r\n\t\t\t\t\"You cannot go in that direction, nothing but fish over there.\",true);\r\n\t\tthis.addLocation(lake);\r\n\t\t\r\n\t\tLocation laketown = new Location(\"laketown\", \"Messny village. A quiet village with wooden houses and a dirt road.\",\r\n\t\t\t\t\"You cannot go in that direction, probably nothing interesting over there.\",true);\r\n\t\t\r\n\t\tLocation inn = new Room(\"inn\", \"Messny Inn. A small but charming inn in the centre of the village.\",\r\n\t\t\t\t\"You cannot go in that direction.\",false);\r\n\t\t\r\n\t\t// CONNECTING LOCATIONS\r\n\t\t// IT DOES NOT MATTER ON WHICH LOCATION THE METHOD ADDPATHS IS CALLED\r\n\t\tvalley.addPaths(valley, \"east\", plains, \"west\");\r\n\t\tvalley.addPaths(valley, \"north\", mountain, \"south\");\r\n\t\tvalley.addPaths(valley, \"west\", shore, \"east\");\r\n\t\tvalley.addPaths(valley, \"south\", woods, \"north\");\r\n\t\twoods.addPaths(woods, \"east\", hills, \"west\");\r\n\t\thills.addPaths(hills, \"south\", westhills, \"north\");\r\n\t\twesthills.addPaths(westhills, \"west\", lake, \"east\");\r\n\t\tlake.addPaths(woods, \"south\", lake, \"north\");\r\n\t\tlake.addPaths(lake, \"west\", laketown, \"east\");\r\n\t\tmountain.addPaths(mountain, \"cave\", cave, \"exit\");\r\n\t\tlaketown.addPaths(laketown, \"inn\", inn, \"exit\");\r\n\t\t\r\n\r\n\t\t\r\n\t\t// CREATE EMPTY ARMOR SET FOR GAME START AND UNEQUIPS\r\n\t\tBodyArmor noBodyArmor = new BodyArmor(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBodyArmor(noBodyArmor);\r\n\t\tBoots noBoots = new Boots(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBoots(noBoots);\r\n\t\tHeadgear noHeadgear = new Headgear(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultHeadgear(noHeadgear);\r\n\t\tGloves noGloves = new Gloves(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultGloves(noGloves);\r\n\t\tWeapon noWeapon = new Weapon(\"unarmored\", 0, 0, true, 5, false);\r\n\t\tthis.setDefaultWeapon(noWeapon);\r\n\t\t\r\n\t\tthis.getPlayer().setBodyArmor(noBodyArmor);\r\n\t\tthis.getPlayer().setBoots(noBoots);\r\n\t\tthis.getPlayer().setGloves(noGloves);\r\n\t\tthis.getPlayer().setHeadgear(noHeadgear);\r\n\t\tthis.getPlayer().setWeapon(noWeapon);\r\n\t\t\r\n\t\t\r\n\t\t// CREATING AND ADDING ITEMS TO PLAYER INVENTORY \r\n\t\tItem potion = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tthis.getPlayer().addItem(potion);\r\n\t\tWeapon sword = new Weapon(\"sword\", 10, 200, true, 10, false);\r\n\t\tvalley.addItem(sword);\r\n\t\t\r\n\t\tWeapon swordEvalon = new Weapon(\"EvalonianSword\", 15, 400, true, 1, 15, false);\r\n\t\thills.addItem(swordEvalon);\r\n\t\t\r\n\t\tPotion potion2 = new Potion(\"largepotion\", 2, 200, true, 25);\r\n\t\tPotion potion3 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tPotion potion4 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tlake.addItem(potion3);\r\n\t\tinn.addItem(potion4);\r\n\t\t\r\n\t\tItem potion5 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion6 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\twoods.addItem(potion6);\r\n\t\t\r\n\t\tPurse purse = new Purse(\"purse\",0,0,true,100);\r\n\t\tvalley.addItem(purse);\r\n\t\t\r\n\t\tChest chest = new Chest(\"chest\", 50, 100, false, 50);\r\n\t\tvalley.addItem(chest);\r\n\t\tchest.addItem(potion2);\r\n\t\t\r\n\t\tChest chest2 = new Chest(\"chest\", 10, 10, false, 20);\r\n\t\tinn.addItem(chest2);\r\n\t\t\r\n\t\t// ENEMY LOOT\r\n\t\tBodyArmor chestplate = new BodyArmor(\"chestplate\", 20, 200, true, 20);\r\n\t\t\r\n\t\t// ADDING NPC TO WORLD\r\n\t\tNpc innkeeper = new Npc(\"Innkeeper\", false, \"Hello, we have rooms available if you want to stay over night.\",true,1000);\r\n\t\tinn.addNpc(innkeeper);\r\n\t\t\r\n\t\tItem potion7 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion8 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tinnkeeper.addItem(potion7);\r\n\t\tinnkeeper.addItem(potion8);\r\n\t\t\r\n\t\tNpc villager = new Npc(\"Lumberjack\", false, \"Gotta get those logs back to the mill soon, but first a few pints at the inn!\",false,0);\r\n\t\tlaketown.addNpc(villager);\r\n\t\t\r\n\t\tEnemy enemy1 = new Enemy(\"Enemy\", true, \"Come at me!\", 50, chestplate, 200, 10);\r\n\t\tmountain.addNpc(enemy1);\r\n\t\t\r\n\t\tEnemyGuardian guardian = new EnemyGuardian(\"Guardian\", true, \"I guard this cave.\", 100, potion5, 600, 15, innercave, \"An entrance reveals itself behind the fallen Guardian.\", \"inwards\", \"entrance\");\r\n\t\tcave.addNpc(guardian);\r\n\t\t\r\n\t\t// ADDING SPAWNER TO WORLD\r\n\t\tthis.setNpcSpawner(new BanditSpawner()); \r\n\t\t\r\n\t\t// ADDING PLAYER TO THE WORLD\r\n\t\tthis.getPlayer().setLocation(valley);\r\n\t\t\r\n\t\t// QUEST\r\n\t\tQuest noquest = new Quest(\"noquest\",\"nodesc\",\"nocomp\",false,true,1000,0,0,0);\r\n\t\tthis.setCurrentQuest(noquest);\r\n\t\t\r\n\t\t\r\n\t\tQuest firstquest = new Quest(\"A New Journey\",\"Find the lost sword of Evalon.\",\"You have found the lost sword of Evalon!\",false,false,1,400,0,1);\r\n\t\t\r\n\t\tScroll scroll = new Scroll(\"Questscroll\",1,1,true,firstquest);\r\n\t\tmountain.addItem(scroll);\r\n\t\t\r\n\t\tSystem.out.println(\"All set up.\");\r\n\t}",
"public void init(final HashMap<String, String> info) {\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tloadVillage(info);\n\t\tsetDrawPos(0);\n\t\tsetDrawPos(1);\n\t\tcreateSpritesList();\n\t\texitName = infoMap.get(\"landname\");\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tint delay = 0;\n\t\tif (info.containsKey(\"delay\")) {\n\t\t\tdelay = Integer.parseInt(info.get(\"delay\"));\n\t\t}\n\t\tif (delay > 0) {\n\t\t\tfinal int delayLoading = delay;\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tValues.sleep(delayLoading);\n\t\t\t\t\tlogicLoading = false;\n\t\t\t\t}\n\t\t\t}.start();\n\t\t} else {\n\t\t\tlogicLoading = false;\n\t\t}\n\t}",
"private void locate() {\n possibleLocations[0][0] = false;\n possibleLocations[0][1] = false;\n possibleLocations[1][0] = false;\n do {\n location.randomGenerate();\n } while (!possibleLocations[location.y][location.x]);\n }",
"public void initializeLocations() {\n dataGraphLocation.setItems(FXCollections.observableArrayList(_locationData.getAll()));\n }",
"@Override\n\tpublic void init(GameContainer container) throws SlickException {\n\t\tloadWorld();\n\t\tTiles.loadTiles();\n\t}",
"public void init_lookup(){\n for(int i =0 ; i< MAX ; i++){\n lookup[i] =0;\n }\n }",
"public static void loadTiles() {\n\t\tTILE_SETS.put(\"grass\", TileSet.loadTileSet(\"plains\"));\n\t}",
"public void initGame() {\r\n Log.d(\"UT3\", \"init game\");\r\n mEntireBoard = new Tile(this);\r\n // Create all the tiles\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large] = new Tile(this);\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small] = new Tile(this);\r\n }\r\n mLargeTiles[large].setSubTiles(mSmallTiles[large]);\r\n }\r\n mEntireBoard.setSubTiles(mLargeTiles);\r\n\r\n // If the player moves first, set which spots are available\r\n mLastSmall = -1;\r\n mLastLarge = -1;\r\n setAvailableFromLastMove(mLastSmall);\r\n }",
"@PostConstruct\r\n public void init() {\n File database = new File(applicationProps.getGeodb());\r\n try {\r\n reader = new DatabaseReader.Builder(database).withCache(new CHMCache()).build();\r\n } catch (IOException e) {\r\n log.error(\"Error reading maxmind DB, \", e);\r\n }\r\n }",
"public void initializeGameRoom() {\n DatabaseReference game = database.getReference(gameCodeRef);\n game.child(\"NumberOfPlayers\").setValue(0);\n game.child(\"PlayersDoneBrainstorming\").setValue(0);\n game.child(\"PlayersDoneEliminating\").setValue(0);\n game.child(\"AllDoneBrainstorming\").setValue(false);\n game.child(\"AllDoneEliminating\").setValue(false);\n game.child(\"StartGame\").setValue(false);\n\n }",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"public void initArrayList()\n {\n\tSQLiteDatabase db = getWritableDatabase();\n\tCursor cursor = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n\tif (cursor.moveToFirst())\n\t{\n\t do\n\t {\n\t\tJacocDBLocation newLocation = new JacocDBLocation();\n\t\tnewLocation.setLocationName(cursor.getString(1));\n\t\tnewLocation.setRealLocation(new LocationBorder(new LatLng(cursor.getDouble(2), cursor.getDouble(3)), new LatLng(cursor.getDouble(4), cursor.getDouble(5))));\n\t\tnewLocation.setMapLocation(new LocationBorder(new LatLng(cursor.getInt(6), cursor.getInt(7)), new LatLng(cursor.getInt(8), cursor.getInt(9))));\n\t\tnewLocation.setHighSpectrumRange(cursor.getDouble(10));\n\t\tnewLocation.setLowSpectrumRange(cursor.getDouble(11));\n\n\t\t// adding the new Location to the collection\n\t\tlocationList.add(newLocation);\n\t }\n\t while (cursor.moveToNext()); // move to the next row in the DB\n\n\t}\n\tcursor.close();\n\tdb.close();\n }",
"public void initialize(Core coreModule, Location[][][] planetHolders)\r\n\t{\n\t\tfor(String k : database.keySet())\r\n\t\t{\r\n\t\t\tCreatureData d = database.get(k);\r\n\t\t\t\r\n\t\t\tif(d.hasMap)\r\n\t\t\t{\r\n\t\t\t\tLocation[][] planet = planetHolders[typeToIndex(d.habitat)];\r\n\t\t\t\t\r\n\t\t\t\tif(planet[d.habitatY-1][d.habitatX-1]!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tplanet[d.habitatY-1][d.habitatX-1].spawns.load(coreModule, d.name, d.spawnRate, d.human);\r\n\t\t\t\t\tplanet[d.habitatY-1][d.habitatX-1].hasCreature = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//give our creatures to our neighbors\r\n\t\tfor(String k : database.keySet())\r\n\t\t{\r\n\t\t\tCreatureData d = database.get(k);\r\n\t\t\t\r\n\t\t\tif(d.hasMap)\r\n\t\t\t{\r\n\t\t\t\tLocation[][] planet = planetHolders[typeToIndex(d.habitat)];\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=-1; i<2; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int j=-1; j<2; j++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(Math.abs(i)!=Math.abs(j))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(d.habitatY+i >= 1 && d.habitatY+i<=8 && d.habitatX+j >= 1 && d.habitatX+j<=16)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[d.habitatY+i-1][d.habitatX+j-1]!=null && planet[d.habitatY+i-1][d.habitatX+j-1].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[d.habitatY+i-1][d.habitatX+j-1].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatY+i < 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[0][16-(d.habitatX)]!=null && planet[0][16-(d.habitatX)].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[0][16-(d.habitatX)].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatY+i > 8)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[7][16-(d.habitatX)]!=null && planet[7][16-(d.habitatX)].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[7][16-(d.habitatX)].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatX+j < 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[d.habitatY+i-1][15]!=null && planet[d.habitatY+i-1][15].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[d.habitatY+i-1][15].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatX+j > 16)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[d.habitatY+i-1][0]!=null && planet[d.habitatY+i-1][0].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[d.habitatY+i-1][0].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\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}",
"@Override\n protected void initLocation() {\n }",
"private void initializeLandmarks()\n\t{\n\t\t// Do nothing if not set\n\t\tif (startingMinionPerArea == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check starting landmark for each area\n\t\tfor(Area area : board.getAreaList())\n\t\t{\n\t\t\tint number = area.getNumber();\n\t\t\tInteger minionCount = startingMinionPerArea.get(number);\n\t\t\tif (minionCount != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < minionCount; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(Player player : playerList)\n\t\t\t\t\t{\n\t\t\t\t\t\tarea.addMinion(player.removeMinion());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void buildLocations() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS locations (id TEXT, latitude\"\n + \" REAL, longitude REAL, name TEXT, PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }",
"private void initialiseMap(ArrayList<Sprite> allSprites){\n\t\tint x = (allSprites.get(0).getXOffset()*-2) + App.COLUMNS;\n\t\tint y = (allSprites.get(0).getYOffset()*-2) + App.ROWS;\n\t\t\n\t\tgameMap = new MapCell[x][y];\n\t\t\n\t\t//initialise the gameMap\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tfor( int j = 0; j < y; j++) {\n\t\t\t\tthis.gameMap[i][j] = new MapCell();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tprotected Cursor loadCursor() {\n\t\treturn DataManager.get().queryLocations();\n\t}",
"private void loadStateDatabase() {\n new Thread( new Runnable() {\n public void run() {\n try {\n loadStates();\n } catch ( final IOException e ) {\n throw new RuntimeException( e );\n }\n }\n }).start();\n }",
"public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}",
"public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"void loadStation() {\n\n // only do this if the station does not exist\n if (!stationExists) {\n\n station.setStatusCode(35); // open & unknown\n if (!\"\".equals(passkey)) { // ub02\n station.setPasskey(passkey); // ub02\n } // if (!\"\".equals(passkey)) // ub02\n\n if (dbg3) System.out.println(\"<br>loadStation: put station = \" + station);\n if (dbg4) System.out.println(\"<br>loadStation: put station = \" + station);\n try {\n station.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put station = \" + station);\n System.err.println(\"loadStation: put sql = \" + station.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"loadStation: sql = \" + station.getInsStr());\n\n //stationCount++;\n\n if (!\"\".equals(sfriGrid.getGridNo(\"\"))) {\n try {\n sfriGrid.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put sfriGrid = \" + sfriGrid);\n System.err.println(\"loadStation: put sql = \" + sfriGrid.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadStation: put sfriGrid = \" + sfriGrid);\n } // if (!\"\".equals(sfriGrid.getGridNo(\"\")))\n\n weatherIsLoaded = false;\n\n } // if (!stationExists)\n\n }",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }",
"protected final boolean loadMapping() {\r\n if (_loaded) { return false; }\r\n _loaded = true;\r\n return true;\r\n }",
"public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}",
"@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}",
"public void initializeAfterLoad(URL location) {\n \t\tthis.location = location;\n \t\tif (mapper == null)\n \t\t\tmapper = new Mapper();\n \t\tmapper.initialize(Activator.getContext(), mappingRules);\n \t}",
"public void loadStartingMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.testMap_grass); // used for IsInGrass\n this.id = 1;\n }",
"private boolean loadDatabase(){\n Input input = new Input();\n recipes = input.getDatabase();\n if(recipes == null){\n recipes = new ArrayList<>();\n return false;\n }\n return true;\n }",
"private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }",
"public void initializeGame() {\n speed = 75;\n ticks = 0;\n ticksTubes = 0;\n best = null;\n score = 0;\n\n //Make a new pool of birds based on the parameters set in the species'\n //genomes\n birds.clear();\n for (final Species species : Pool.species)\n for (final Genome genome : species.genomes) {\n genome.generateNetwork();\n birds.add(new Bird(species, genome));\n }\n tubes.clear();\n }",
"public void initialize(URL location, ResourceBundle resources) {\n\t\tloadAllPlayers();\n\t}",
"protected boolean initLocalData() {\n return true;\n }",
"private void setLocation(){\r\n\t\t//make the sql command\r\n\t\tString sqlCmd = \"INSERT INTO location VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"');\";\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tstmt.executeUpdate(sqlCmd);\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}",
"private void loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }",
"private static void mineInitialization(){\n\t\tfor (int m = 0; m < BOARD_SIZE; m++)\n\t\t{\n\t\t\tmX = RNG.nextInt(BOARD_SIZE);\n\t\t\tmY = RNG.nextInt(BOARD_SIZE);\n\t\t\tif(gameBoard[mX][mY].equals(Spaces.Empty))\n\t\t\t{\n\t\t\t\tgameBoard[mX][mY] = Spaces.Mine;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t}\n\t\t}\n\t}",
"public void load() {\n mapdb_ = DBMaker.newFileDB(new File(\"AllPoems.db\"))\n .closeOnJvmShutdown()\n .encryptionEnable(\"password\")\n .make();\n\n // open existing an collection (or create new)\n poemIndexToPoemMap_ = mapdb_.getTreeMap(\"Poems\");\n \n constructPoems();\n }",
"public void init() {\n\t\tTypedQuery<Personne> query = em.createQuery(\"SELECT p FROM Personne p\", Personne.class);\n\t\tList<Personne> clients = query.getResultList();\n\t\tif (clients.size()==0) {\n\t\t\tSqlUtils.executeFile(\"exemple.sql\", em);\n\t\t}\n\t}",
"private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }",
"protected void initCacheIfNeeded(@Nullable Level world) {\n if (!initialized) {\n initialized = true;\n initCache(recipeType.getRecipes(world));\n }\n }",
"private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }",
"private void loadMap(String path) {\n\t\ttry {\n\t\t\tfor(Player p : players)\tp.clear();\n\t\t\tmap.players = players;\n\t\t\tmap.setPlayerNumber(playerNumber);\n\t\t\tfor(Player p : map.players) {\n\t\t\t\tp.setMap(map);\n\t\t\t\tp.setArmies(map.getInitialArmiesNumber());\n\t\t\t}\n\t\t\tmap.setPlayerNumber(map.players.size());\n\t\t\tmap.load(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public World(){\r\n locations = new Location[3][3];\r\n for(int r=0; r<3; r+=1){\r\n for(int c=0; c<3; c+=1){\r\n locations[r][c] = new EmptyLocation(new Position(r,c), \"Nothing here to see.\");\r\n }\r\n }\r\n home = locations[0][0];\r\n players = new ArrayList<Player>();\r\n }",
"public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}",
"public void initialize() {\n for (Location apu : this.locations) {\n Node next = new Node(apu.toString());\n this.cells.add(next);\n }\n \n for (Node helper : this.cells) {\n Location next = (Location)this.locations.searchWithString(helper.toString()).getOlio();\n LinkedList<Target> targets = next.getTargets();\n for (Target finder : targets) {\n Node added = this.path.search(finder.getName());\n added.setCoords(finder.getX(), finder.getY());\n helper.addEdge(new Edge(added, finder.getDistance()));\n }\n }\n \n this.startCell = this.path.search(this.source);\n this.goalCell = this.path.search(this.destination);\n \n /**\n * Kun lähtö ja maali on asetettu, voidaan laskea jokaiselle solmulle arvio etäisyydestä maaliin.\n */\n this.setHeuristics();\n }",
"public void restoreFromDatabase() throws InitException {\r\n \t\r\n \tlong id = 0L;\r\n \twhile(true) {\r\n\t \tList<ServerJobInstanceMapping> mappingList = null;\r\n\t \ttry {\r\n\t\t\t\tmappingList = serverJobInstanceMappingAccess.loadByServer(serverConfig.getLocalAddress(), id);\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t\tthrow new InitException(\"[LivingTaskManager]: restoreFromDatabase error, localAddress:\" + serverConfig.getLocalAddress(), e);\r\n\t\t\t}\r\n\t \t\r\n\t \tif(CollectionUtils.isEmpty(mappingList)) {\r\n\t \t\tlogger.warn(\"[LivingTaskManager]: restoreFromDatabase mappingList is empty\");\r\n\t \t\treturn ;\r\n\t \t}\r\n\t \t\r\n\t \tid = ListUtil.acquireLastObject(mappingList).getId();\r\n\t \t\r\n\t \tinitAddJobInstance4IdMap(mappingList);\r\n \t}\r\n }",
"private MapLocation canUnloadAnywhere() {\r\n\t\tfor (Direction dir : navigation.allDirections) {\r\n\t\t\tMapLocation unloadLoc = myRC.getLocation().add(dir);\r\n\t\t\tif (myRC.canUnloadBlockToLocation(unloadLoc))\r\n\t\t\t\treturn unloadLoc;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }",
"private void initMapEngine() {\n String path = new File(m_activity.getExternalFilesDir(null), \".here-map-data\")\n .getAbsolutePath();\n // This method will throw IllegalArgumentException if provided path is not writable\n com.here.android.mpa.common.MapSettings.setDiskCacheRootPath(path);\n\n MapEngine.getInstance().init(new ApplicationContext(m_activity), new OnEngineInitListener() {\n @Override\n public void onEngineInitializationCompleted(Error error) {\n if (error == Error.NONE) {\n /*\n * Similar to other HERE Android SDK objects, the MapLoader can only be\n * instantiated after the MapEngine has been initialized successfully.\n */\n getMapPackages();\n } else {\n Log.e(TAG, \"Failed to initialize MapEngine: \" + error);\n new AlertDialog.Builder(m_activity).setMessage(\n \"Error : \" + error.name() + \"\\n\\n\" + error.getDetails())\n .setTitle(R.string.engine_init_error)\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n m_activity.finish();\n }\n }).create().show();\n }\n }\n });\n }",
"public void loadMap() {\n\n try {\n new File(this.mapName).mkdir();\n FileUtils.copyDirectory(\n new File(this.plugin.getDataFolder() + \"/maps/\" + this.mapName), new File(this.mapName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n WorldCreator wc = new WorldCreator(this.mapName);\n World world = wc.createWorld();\n world.setAutoSave(false);\n world.setPVP(false);\n world.setDifficulty(Difficulty.PEACEFUL);\n world.setGameRuleValue(\"doDaylightCycle\", \"false\");\n world.setGameRuleValue(\"mobGriefing\", \"false\");\n world.setGameRuleValue(\"doMobSpawning\", \"false\");\n world.setGameRuleValue(\"doFireTick\", \"false\");\n world.setGameRuleValue(\"keepInventory\", \"true\");\n world.setGameRuleValue(\"commandBlockOutput\", \"false\");\n world.setSpawnFlags(false, false);\n\n try {\n final JsonParser parser = new JsonParser();\n final FileReader reader =\n new FileReader(this.plugin.getDataFolder() + \"/maps/\" + this.mapName + \"/config.json\");\n final JsonElement element = parser.parse(reader);\n this.map = JumpyJumpMap.fromJson(element.getAsJsonObject());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public void initializeWallpaper() {\n \t// if database not set\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\t\n\t\tCursor cursor = db.query(EventDataSQLHelper.TABLE, null, null, null, null, null, null);\n\t\tstartManagingCursor(cursor);\n\t\twhile (cursor.moveToNext()) {\n\t\t\twallpapers.add(stringToNode(cursor.getString(1)));\n\t\t\tLog.d(\"Initialize\", \"Loading \" + cursor.getString(1));\n\t\t}\n\t\tcursor.close();\n\t\tdb.close();\n\t\tboolean empty = wallpapers.size() == 0;\n\t\tfillWallpaper();\n\t\tif (empty) {\n\t\t\tshowHelp(resetclick);\n\t\t} else {\n\t\t\tresetImages();\n\t\t}\n }",
"public void fetchRegions () {\n try {\n // try loading from geoserve\n this.regions = loadFromGeoserve();\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from geoserve\",\n e);\n try {\n if (this.regions == null) {\n // fall back to local cache\n this.regions = loadFromFile();\n }\n } catch (Exception e2) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from local file\",\n e);\n }\n }\n }",
"private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\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}",
"private void initializeSystemIfNull() {\n\t\tif (systemRepo.count() == 0) {\n\t\t\tPlaylistMetadataEntity se = new PlaylistMetadataEntity();\n\t\t\tse.setSecondsPlayed(0);\n\t\t\tse.setPositionInPlaylist(0);\n\t\t\tsystemRepo.save(se);\n\t\t}\n\t}",
"private Location generateRandomStartLocation() {\n\t\tif (!atLeastOneNonWallLocation()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"There is no free tile available for the player to be placed\");\n\t\t}\n\n\t\twhile (true) {\n\t\t\t// Generate a random location\n\t\t\tfinal Random random = new Random();\n\t\t\tfinal int randomRow = random.nextInt(this.map.getMapHeight());\n\t\t\tfinal int randomCol = random.nextInt(this.map.getMapWidth());\n\n\t\t\tfinal Location location = new Location(randomCol, randomRow);\n\n\t\t\tif (this.map.getMapCell(location).isWalkable()\n\t\t\t\t\t&& !otherPlayerOnTile(location, -1)) {\n\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\treturn location;\n\t\t\t}\n\t\t}\n\t}",
"@EventListener(ApplicationReadyEvent.class)\n\tpublic void loadData() {\n\t\tList<AppUser> allUsers = appUserRepository.findAll();\n\t\tList<Customer> allCustomers = customerRepository.findAll();\n\t\tList<Part> allPArts = partRepository.findAll();\n\n\t\tif (allUsers.size() == 0 && allCustomers.size() == 0 && allPArts.size() == 0) {\n\t\t\tSystem.out.println(\"Pre-populating the database with test data\");\n\n\t\t\tResourceDatabasePopulator resourceDatabasePopulator = new ResourceDatabasePopulator(\n\t\t\t\tfalse,\n\t\t\t\tfalse,\n\t\t\t\t\"UTF-8\",\n\t\t\t\tnew ClassPathResource(\"data.sql\"));\n\t\t\tresourceDatabasePopulator.execute(dataSource);\n\t\t}\n\t\tSystem.out.println(\"Application successfully started!\");\n\t}",
"public boolean initializeDB() {\n return false;\n }",
"private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }",
"@WorkerThread\n public void initStorage() {\n // Read some value from the Preferences to ensure it's in memory.\n getStoredOrigins();\n }",
"private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }",
"public void loadHotels();",
"public abstract void createEmptyMap(Game game, boolean[][] landMap);",
"public abstract void createEmptyMap(Game game, boolean[][] landMap);",
"private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }",
"private TETile[][] initialize() {\n int width = size.width;\n int height = size.height;\n world = new TETile[width][height];\n for (int w = 0; w < width; w++) {\n for (int h = 0; h < height; h++) {\n world[w][h] = Tileset.NOTHING;\n }\n }\n return world;\n }",
"public static void load(){\n\t\tinbattle=true;\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tScanner s=new Scanner(f);\n\t\t\tturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tString curr=s.next();\n\t\t\tif(curr.equals(\"WildTrainer:\"))\n\t\t\t\topponent=WildTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"EliteTrainer:\"))\n\t\t\t\topponent=EliteTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"Trainer:\"))\n\t\t\t\topponent=Trainer.readInTrainer(s);\n\t\t\tSystem.out.println(\"Initializing previous battle against \"+opponent.getName());\n\t\t\tcurr=s.next();\n\t\t\tallunits=new ArrayList<Unit>();\n\t\t\tpunits=new ArrayList<Unit>();\n\t\t\tounits=new ArrayList<Unit>();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tpunits.add(Unit.readInUnit(null,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Player Units\n\t\t\tcurr=s.next();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tounits.add(Unit.readInUnit(opponent,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Opponent Units\n\t\t\tallunits.addAll(punits);\n\t\t\tallunits.addAll(ounits);\n\t\t\tpriorities=new ArrayList<Integer>();\n\t\t\tint[] temp=GameData.readIntArray(s.nextLine());\n\t\t\tfor(int i:temp){\n\t\t\t\tpriorities.add(i);\n\t\t\t}\n\t\t\txpgains=GameData.readIntArray(s.nextLine());\n\t\t\tspikesplaced=s.nextBoolean();\n\t\t\tnumpaydays=s.nextInt();\n\t\t\tactiveindex=s.nextInt();\n\t\t\tactiveunit=getUnitByID(s.nextInt());\n\t\t\tweather=Weather.valueOf(s.next());\n\t\t\tweatherturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tbfmaker=new LoadExistingBattlefieldMaker(s);\n\t\t\tinitBattlefield();\n\t\t\tplaceExistingUnits();\n\t\t\tMenuEngine.initialize(new UnitMenu(activeunit));\n\t\t}catch(Exception e){e.printStackTrace();System.out.println(e.getCause().toString());}\n\t}",
"public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }",
"private void loadPersistedData() {\n IntegerRange storedAutoStartOnDisconnectDelayRange =\n AUTOSTART_ON_DISCONNECT_DELAY_RANGE_SETTING.load(mDeviceDict);\n if (storedAutoStartOnDisconnectDelayRange != null) {\n mPilotingItf.getAutoStartOnDisconnectDelay().updateBounds(storedAutoStartOnDisconnectDelayRange);\n }\n\n DoubleRange endingHoveringAltitudeRange = ENDING_HOVERING_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (endingHoveringAltitudeRange != null) {\n mPilotingItf.getEndingHoveringAltitude().updateBounds(endingHoveringAltitudeRange);\n }\n\n DoubleRange minAltitudeRange = MIN_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (minAltitudeRange != null) {\n mPilotingItf.getMinAltitude().updateBounds(minAltitudeRange);\n }\n\n applyPresets();\n }",
"void smem_init_db() throws SoarException, SQLException, IOException\n {\n smem_init_db(false);\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}",
"private void setUpOverview() {\n mapInstance = GameData.getInstance();\n //get reference locally for the database\n db = mapInstance.getDatabase();\n\n //retrieve the current player and the current area\n currentPlayer = mapInstance.getPlayer();\n\n }",
"private void loadGameFiles(){\n\t}",
"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}",
"public boolean initStore(String dbname) {\n return true;\n }",
"@Override\r\n\tpublic Map<Seat, SeatState> loadInitialState() {\n\t\t// return empty hashmap as we are not persisting states.\r\n\t\t//\r\n\t\treturn new HashMap<>();\r\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n entitymanager = DBConnection.getEntityManger();\n this.loadCombos();\n this.loadTime();\n this.setLocations();\n }",
"protected void initBoatMap() {}",
"private void initializeLocation() throws CoreException {\n \t\tif (location.toFile().exists()) {\n \t\t\tif (!location.toFile().isDirectory()) {\n \t\t\t\tString message = NLS.bind(CommonMessages.meta_notDir, location);\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, null));\n \t\t\t}\n \t\t}\n \t\t//try infer the device if there isn't one (windows)\n \t\tif (location.getDevice() == null)\n \t\t\tlocation = new Path(location.toFile().getAbsolutePath());\n \t\tcreateLocation();\n \t\tinitialized = true;\n \t}",
"private void loadAddressFromLatches(){\r\n horizontalTileCounter = horizontalTileLatch;\r\n verticalTileCounter = verticalTileLatch;\r\n horizontalNameCounter = horizontalNameLatch; // single bit\r\n verticalNameCounter = verticalNameLatch; // single bit\r\n fineVerticalCounter = fineVerticalLatch;\r\n }",
"Map<UUID, Optional<Location>> getAllCurrentLocations();",
"private void loadVillage(HashMap<String, String> info) {\n\t\tsuper.init(info);\n\t}"
] | [
"0.6900891",
"0.6582891",
"0.59991425",
"0.5994154",
"0.59824526",
"0.595195",
"0.59414876",
"0.58384144",
"0.58362067",
"0.5832965",
"0.5820695",
"0.5792407",
"0.57532895",
"0.5729984",
"0.5713808",
"0.5695983",
"0.56947297",
"0.56770307",
"0.5664909",
"0.5655705",
"0.565103",
"0.5631066",
"0.5617355",
"0.561734",
"0.56047744",
"0.5589142",
"0.55729014",
"0.55672294",
"0.55585086",
"0.55436474",
"0.5542595",
"0.5539471",
"0.5537737",
"0.5527879",
"0.5517828",
"0.5515153",
"0.55092984",
"0.5498848",
"0.54899263",
"0.5487999",
"0.5483059",
"0.54799664",
"0.54685724",
"0.546837",
"0.54506767",
"0.5433823",
"0.54301697",
"0.5422615",
"0.54145575",
"0.5414025",
"0.54082763",
"0.5394335",
"0.53869295",
"0.53852135",
"0.53848284",
"0.53663",
"0.53662926",
"0.535448",
"0.533757",
"0.53375626",
"0.5336438",
"0.53360754",
"0.53345627",
"0.5327231",
"0.53220314",
"0.5320757",
"0.53195375",
"0.5316899",
"0.5314872",
"0.53133035",
"0.53054816",
"0.5302044",
"0.529751",
"0.5292845",
"0.5291977",
"0.52802795",
"0.52763665",
"0.5266241",
"0.526612",
"0.525974",
"0.5258177",
"0.5258177",
"0.5252907",
"0.5249896",
"0.524682",
"0.52448386",
"0.52430606",
"0.52418834",
"0.5239264",
"0.5239149",
"0.5238973",
"0.52315694",
"0.5231361",
"0.52304685",
"0.522829",
"0.522638",
"0.52152425",
"0.52108675",
"0.5207106",
"0.5202044"
] | 0.6403243 | 2 |
load inital pool locations and coupons if database pool location table is empty | private void saveInitialPoolLocation() {
POOL_LIST = new ArrayList<poolLocation>();
for (int i = 0; i < NumPool; i++) {
addNewPool(getPoolLocation(i));
}
for (int i = 0; i < NumCoupon; i++) {
addNewPool(getCouponLocation(i));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"@PostConstruct\n public void initPool() {\n SpringHelper.setApplicationContext(applicationContext);\n if (!initialized) {\n try {\n final File configDirectory = ConfigDirectory.setupTestEnvironement(\"OGCRestTest\");\n final File dataDirectory2 = new File(configDirectory, \"dataCsw2\");\n dataDirectory2.mkdir();\n\n try {\n serviceBusiness.delete(\"csw\", \"default\");\n serviceBusiness.delete(\"csw\", \"intern\");\n } catch (ConfigurationException ex) {}\n\n final Automatic config2 = new Automatic(\"filesystem\", dataDirectory2.getPath());\n config2.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"default\", config2, null);\n\n writeProvider(\"meta1.xml\", \"42292_5p_19900609195600\");\n\n Automatic configuration = new Automatic(\"internal\", (String)null);\n configuration.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"intern\", configuration, null);\n\n initServer(null, null, \"api\");\n pool = GenericDatabaseMarshallerPool.getInstance();\n initialized = true;\n } catch (Exception ex) {\n Logger.getLogger(OGCRestTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"void countries_init() throws SQLException {\r\n countries = DatabaseQuerySF.get_all_stations();\r\n }",
"@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}",
"public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneCPConfig();\n\n // Setup the configuration\n config.setJdbcUrl(\"jdbc:mysql://cs304.c0mk5mvcjljr.us-west-2.rds.amazonaws.com/cs304\"); // jdbc url specific to your database, eg jdbc:mysql://127.0.0.1/yourdb\n config.setUsername(\"cs304\");\n config.setPassword(\"ubccs304\");\n config.setConnectionTestStatement(\"SELECT 1\");\n config.setConnectionTimeout(10, TimeUnit.SECONDS);\n config.setMinConnectionsPerPartition(5);\n config.setMaxConnectionsPerPartition(10);\n config.setPartitionCount(1);\n\n // Setup the connection pool\n _pool = new BoneCP(config);\n\n // Log\n LogManager.getLogger(DatabasePoolManager.class).info(\"Database configuration initialized\");\n }\n catch (Exception ex)\n {\n // Log\n LogManager.getLogger(DatabasePoolManager.class).fatal(\"Could not initialize Database configuration\", ex);\n }\n\n }",
"private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}",
"public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }",
"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 void initPool() throws SQLException {\n\t\tint POOL_SIZE = 90;\n\t\tthis.connectionPool = new LinkedBlockingQueue<>(POOL_SIZE);\n\t\tfor(int i = 0; i < POOL_SIZE; i++) {\n\t\t\tConnection con = DriverManager.getConnection(dburl, user, password);\n\t\t\tconnectionPool.offer(con);\n\t\t}\n\t}",
"private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"public void init() {\n\t\tTypedQuery<Personne> query = em.createQuery(\"SELECT p FROM Personne p\", Personne.class);\n\t\tList<Personne> clients = query.getResultList();\n\t\tif (clients.size()==0) {\n\t\t\tSqlUtils.executeFile(\"exemple.sql\", em);\n\t\t}\n\t}",
"private void fillPollsIfEmpty(ComboPooledDataSource cpds) throws SQLException {\n\t\tConnection con = cpds.getConnection();\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tpst = con.prepareStatement(\"SELECT * FROM POLLS\");\n\t\t\tResultSet resultSet = pst.executeQuery();\n\t\t\tif (!resultSet.next()) {\n\t\t\t\tfill(con, pst, Polls.getBandPoll(), PollOptions.getBandPollOptions());\n\t\t\t\tfill(con, pst, Polls.getMoviePoll(), PollOptions.getMoviePollOptions());\n\t\t\t}\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (pst != null) {\n\t\t\t\t\tpst.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ignorable) {\n\t\t\t}\n\t\t}\n\n\t}",
"public Pool() {\n\t\t// inicializaDataSource();\n\t}",
"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}",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n connection = DBConnect.getConnection();\n contractEndPicker.setValue(null);\n contractStartPicker.setValue(null);\n getCounselorInfo();\n\n }",
"public void initialize() {\n setThisFacility(null);\n loadData();\n initCols();\n\n }",
"@PostConstruct\r\n public void init() {\n File database = new File(applicationProps.getGeodb());\r\n try {\r\n reader = new DatabaseReader.Builder(database).withCache(new CHMCache()).build();\r\n } catch (IOException e) {\r\n log.error(\"Error reading maxmind DB, \", e);\r\n }\r\n }",
"private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }",
"void init() throws ConnectionPoolException {\r\n\t\tfreeConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\tbusyConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tfor(int i = 0; i < poolsize; i++){\r\n\t\t\t\tConnection connection = DriverManager.getConnection(url, user, password);\r\n\t\t\t\tfreeConnection.add(connection);\r\n\t\t\t}\r\n\t\t\tflag = true;\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_DB_DRIVER + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_DB_DRIVER);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_SQL + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_SQL);\r\n\t\t}\r\n\t}",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"@MemoryAnnotations.Initialisation\n public void pumpListInitialisation() {\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.onOffPumps.add(false);\n }\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.middlePoints.add(null);\n }\n }",
"private void testInitialization() {\r\n\r\n\r\n\t\tthis.myMapDB = MapDB.getInstance();\r\n\t\tthis.myClumpDB = ClumpDB.getInstance();\r\n\t}",
"private synchronized void init(){\n _2_zum_vorbereiten.addAll(spielzeilenRepo.find_B_ZurVorbereitung());\n _3_vorbereitet.addAll(spielzeilenRepo.find_C_Vorbereitet());\n _4_spielend.addAll(spielzeilenRepo.find_D_Spielend());\n }",
"abstract void initializeNeededData();",
"void init() throws ConnectionPoolDataSourceException;",
"private void initData() {\n requestServerToGetInformation();\n }",
"public void initData() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // number the loaderManager with mPage as may be requesting up to three lots of JSON for each tab\n loaderManager.initLoader(FETCH_STOCK_PICKING_LOADER_ID, null, loadStockPickingFromServerListener);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n View loadingIndicator = getView().findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n mEmptyStateTextView.setText(R.string.error_no_internet_connection);\n }\n }",
"public static boolean initDatasource() {\n // first we locate the driver\n String pgDriver = \"org.postgresql.Driver\";\n try {\n ls.debug(\"Looking for Class : \" + pgDriver);\n Class.forName(pgDriver);\n } catch (Exception e) {\n ls.fatal(\"Cannot find postgres driver (\" + pgDriver + \")in class path\", e);\n return false;\n }\n\n try{ \n String url = \"jdbc:postgresql://inuatestdb.cctm7tiltceo.us-west-2.rds.amazonaws.com:5432/inua?user=inua&password=jw8s0F4\";\n dsUnPooled =DataSources.unpooledDataSource(url);\n dsPooled = DataSources.pooledDataSource(dsUnPooled);\n \n poolInit = true;\n }\n catch (Exception e){ \n ls.fatal(\"SQL Exception\",e);\n System.out.println(\"initDataSource\" + e);\n return false;\n }\n \n return true;\n}",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"@PostConstruct\r\n public void init() {\r\n all.addAll(allFromDB());\r\n Collections.sort(all);\r\n }",
"public PoolNYCH() {\n\t\tinicializarDataSource();\n\t}",
"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}",
"@Override\n\t@Transactional\n\n\tpublic void initPlaces() {\n\t\tsalleRepository.findAll().forEach(salle->{\n\t\t\tfor(int i=0;i<salle.getNombrePlace();i++) {\n\t\t\tPlace place=new Place();\n\t\t\tplace.setNumero(i+1);\n\t\t\tplace.setSalle(salle);\n\t\t\tplaceRepository.save(place);\n\t\t\t}\n\t\t\t});\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n entitymanager = DBConnection.getEntityManger();\n this.loadCombos();\n this.loadTime();\n this.setLocations();\n }",
"void init() throws CouldNotInitializeConnectionPoolException;",
"private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"public void fetchRegions () {\n try {\n // try loading from geoserve\n this.regions = loadFromGeoserve();\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from geoserve\",\n e);\n try {\n if (this.regions == null) {\n // fall back to local cache\n this.regions = loadFromFile();\n }\n } catch (Exception e2) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from local file\",\n e);\n }\n }\n }",
"@EventListener(ApplicationReadyEvent.class)\n\tpublic void loadData() {\n\t\tList<AppUser> allUsers = appUserRepository.findAll();\n\t\tList<Customer> allCustomers = customerRepository.findAll();\n\t\tList<Part> allPArts = partRepository.findAll();\n\n\t\tif (allUsers.size() == 0 && allCustomers.size() == 0 && allPArts.size() == 0) {\n\t\t\tSystem.out.println(\"Pre-populating the database with test data\");\n\n\t\t\tResourceDatabasePopulator resourceDatabasePopulator = new ResourceDatabasePopulator(\n\t\t\t\tfalse,\n\t\t\t\tfalse,\n\t\t\t\t\"UTF-8\",\n\t\t\t\tnew ClassPathResource(\"data.sql\"));\n\t\t\tresourceDatabasePopulator.execute(dataSource);\n\t\t}\n\t\tSystem.out.println(\"Application successfully started!\");\n\t}",
"Map<String,DataSource> load(Set<String> existsDataSourceNames) throws Exception;",
"@Before\n public void init() {\n pool=ShardedJedisSentinelPoolSinglton.getPool();\n }",
"private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }",
"public void initializeLocations() {\n dataGraphLocation.setItems(FXCollections.observableArrayList(_locationData.getAll()));\n }",
"public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}",
"public void initialize() {\n if (factory == null || poolName == null)\n throw new IllegalStateException(\"Factory and Name must be set before pool initialization!\");\n if (initialized)\n throw new IllegalStateException(\"Cannot initialize more than once!\");\n initialized = true;\n permits = new FIFOSemaphore(maxSize);\n factory.poolStarted(this);\n lastGC = System.currentTimeMillis();\n //fill pool to min size\n fillToMin();\n /*\n int max = maxSize <= 0 ? minSize : Math.min(minSize, maxSize);\n Collection cs = new LinkedList();\n for(int i=0; i<max; i++)\n {\n cs.add(getObject(null));\n }\n while (Iterator i = cs.iterator(); i.hasNext();)\n {\n releaseObject(i.next());\n } // end of while ()\n */\n collector.addPool(this);\n }",
"public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }",
"private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}",
"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}",
"private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }",
"private void populateBranches() {\n\t\tStationsDTO[] station = null;\n\t\ttry {\n\t\t\tstation = handler.getAllBranches();\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoBranch.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}",
"public void init() {\n\t\t\n\t\t\n\t\tprepareGaborFilterBankConcurrent();\n\t\t\n\t\tprepareGaborFilterBankConcurrentEnergy();\n\t}",
"protected void initBoatMap() {}",
"public void initialize() {\n this.loadBidDetails();\n }",
"private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }",
"public void init(BeeDataSourceConfig config) throws SQLException {\r\n if (poolState.get() == POOL_UNINIT) {\r\n checkProxyClasses();\r\n if (config == null) throw new SQLException(\"Configuration can't be null\");\r\n poolConfig = config.check();//why need a copy here?\r\n\r\n poolName = !isBlank(config.getPoolName()) ? config.getPoolName() : \"FastPool-\" + poolNameIndex.getAndIncrement();\r\n commonLog.info(\"BeeCP({})starting....\", poolName);\r\n\r\n poolMaxSize = poolConfig.getMaxActive();\r\n connFactory = poolConfig.getConnectionFactory();\r\n connectionTestTimeout = poolConfig.getConnectionTestTimeout();\r\n connectionTester = new SQLQueryTester(poolConfig.isDefaultAutoCommit(), poolConfig.getConnectionTestSQL());\r\n defaultMaxWaitNanos = MILLISECONDS.toNanos(poolConfig.getMaxWait());\r\n delayTimeForNextClearNanos = MILLISECONDS.toNanos(poolConfig.getDelayTimeForNextClear());\r\n connectionTestInterval = poolConfig.getConnectionTestInterval();\r\n createInitConnections(poolConfig.getInitialSize());\r\n\r\n if (poolConfig.isFairMode()) {\r\n poolMode = \"fair\";\r\n transferPolicy = new FairTransferPolicy();\r\n conUnCatchStateCode = transferPolicy.getCheckStateCode();\r\n } else {\r\n poolMode = \"compete\";\r\n transferPolicy = new CompeteTransferPolicy();\r\n conUnCatchStateCode = transferPolicy.getCheckStateCode();\r\n }\r\n\r\n exitHook = new ConnectionPoolHook();\r\n Runtime.getRuntime().addShutdownHook(exitHook);\r\n borrowSemaphoreSize = poolConfig.getBorrowSemaphoreSize();\r\n borrowSemaphore = new Semaphore(borrowSemaphoreSize, poolConfig.isFairMode());\r\n idleSchExecutor.setKeepAliveTime(15, SECONDS);\r\n idleSchExecutor.allowCoreThreadTimeOut(true);\r\n idleCheckSchFuture = idleSchExecutor.scheduleAtFixedRate(new Runnable() {\r\n public void run() {// check idle connection\r\n closeIdleTimeoutConnection();\r\n }\r\n }, 1000, config.getIdleCheckTimeInterval(), TimeUnit.MILLISECONDS);\r\n\r\n registerJmx();\r\n commonLog.info(\"BeeCP({})has startup{mode:{},init size:{},max size:{},semaphore size:{},max wait:{}ms,driver:{}}\",\r\n poolName,\r\n poolMode,\r\n connArray.length,\r\n config.getMaxActive(),\r\n borrowSemaphoreSize,\r\n poolConfig.getMaxWait(),\r\n poolConfig.getDriverClassName());\r\n\r\n poolState.set(POOL_NORMAL);\r\n this.setDaemon(true);\r\n this.setName(\"PooledConnectionAdd\");\r\n this.start();\r\n } else {\r\n throw new SQLException(\"Pool has initialized\");\r\n }\r\n }",
"@PostConstruct\n\tpublic void init() {\n\t\tBufferedReader fileReader = null;\n\t\ttry {\n\t\t\tResource resource = resourceLoader.getResource(\"classpath:JetBlue_Airports.csv\");\n\t\t\tfileReader = new BufferedReader(new FileReader(resource.getFile()));\n\t\t\tairportList = CsvReaderUtil.formAirportList(fileReader);\n\t\t\tLOG.info(\"Loaded data from csv file on startup, total airports: {}\", airportList.size());\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Exception: \", e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileReader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLOG.error(\"Exception while closing csv file, exception: \", e);\n\t\t\t}\n\t\t}\n\t}",
"private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }",
"public static void initGenerateOfflineTestData(){\n dbInstance = Database.newInstance();\n initPlayer();\n initMatches();\n }",
"private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}",
"public void initRetrievalPlans() {\n for (RetrievalPlan retrievalPlan : this.getRetrievalPlans().values()) {\n retrievalPlan.init();\n }\n }",
"public static void rebuildPool() throws SQLException {\n // Close pool connections when plugin disables\n if (poolMgr != null) {\n poolMgr.dispose();\n }\n poolMgr = new GameModeInventoriesPoolManager(dataSource, 10);\n }",
"private void loadLocation() {\n\r\n\t\t_stateItems = new ArrayList<DropDownItem>();\r\n\t\t_stateAdapter = new DropDownAdapter(getActivity(), _stateItems);\r\n\t\tspin_state.setAdapter(_stateAdapter);\r\n\r\n\t\t_cityItems = new ArrayList<DropDownItem>();\r\n\t\t_cityAdapter = new DropDownAdapter(getActivity(), _cityItems);\r\n\t\tspin_city.setAdapter(_cityAdapter);\r\n\r\n\t\t_locationItems = new ArrayList<DropDownItem>();\r\n\t\t_locationAdapter = new DropDownAdapter(getActivity(), _locationItems);\r\n\t\tspin_location.setAdapter(_locationAdapter);\r\n\r\n\t\tnew StateAsync().execute(\"\");\r\n\r\n\t}",
"@SuppressWarnings({\"unchecked\"})\n private void loadDataFromOSM() {\n try {\n System.out.println(\">> Attempting to load data from OSM database...\");\n // Load JDBC driver and establish connection\n Class.forName(\"org.postgresql.Driver\");\n String url = \"jdbc:postgresql://localhost:5432/osm_austria\";\n mConn = DriverManager.getConnection(url, \"geo\", \"geo\");\n // Add geometry types to the connection\n PGConnection c = (PGConnection) mConn;\n c.addDataType(\"geometry\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGgeometry\"));\n c.addDataType(\"box2d\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGbox2d\"));\n\n // Create statement and execute query\n Statement s = mConn.createStatement();\n\n // Get boundary types\n String query = \"SELECT * FROM boundary_area AS a WHERE a.type IN (8001,8002,8003,8004);\";\n executeSQL(query, s);\n\n query = \"SELECT * FROM landuse_area AS a WHERE a.type IN (5001, 5002);\";\n executeSQL(query, s);\n\n /* // Get landuse types\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n\n // Get natural types\n query = \"SELECT * FROM natural_area AS a WHERE a.type IN (6001, 6002, 6005);\";\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n */\n\n s.close();\n mConn.close();\n } catch (Exception _e) {\n System.out.println(\">> Loading data failed!\\n\" + _e.toString());\n }\n\n }",
"public void initialize() {\n\n getStartUp();\n }",
"private void initDataLoader() {\n\t}",
"@Test\n\tpublic void testConnectionsExistOnPoolCreation() {\n\t\tAssert.assertTrue(pool.totalConnections() > 0); \n\t}",
"private void loadStateDatabase() {\n new Thread( new Runnable() {\n public void run() {\n try {\n loadStates();\n } catch ( final IOException e ) {\n throw new RuntimeException( e );\n }\n }\n }).start();\n }",
"public PostalCodeDataBase()\n {\n codeToCityMap = new HashMap<String, Set<String>>();\n // additional instance variable(s) to be initialized in part (b)\n }",
"@PostConstruct\r\n\t@Transactional\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\r\n\t\tFile two = new File( context.getRealPath(\"/variants\") );\r\n\t\t//System.out.println(two.getAbsolutePath());\r\n\t\tVariantManager.init(new File[]{two}, false);\r\n\t\t\r\n\t\tJdbcTemplate template = new JdbcTemplate(dataSource);\r\n\t\ttemplate.execute(\"create table if not exists UserConnection (userId varchar(255) not null,\tproviderId varchar(255) not null,\tproviderUserId varchar(255),\trank int not null,\tdisplayName varchar(255),\tprofileUrl varchar(512),\timageUrl varchar(512),\taccessToken varchar(255) not null,\t\t\t\t\tsecret varchar(255),\trefreshToken varchar(255),\texpireTime bigint,\tprimary key (userId(100), providerId(50), providerUserId(150)))\");\r\n\t\ttry{\r\n\t\t\ttemplate.execute(\"create unique index UserConnectionRank on UserConnection(userId, providerId, rank)\");\r\n\t\t}catch(BadSqlGrammarException e){\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//sf.openSession();\r\n\t\t\r\n//\t\tRowMapper<Object> rm = new RowMapper<Object>() {\r\n//\r\n// public Object mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n// DefaultLobHandler lobHandler = new DefaultLobHandler();\r\n// InputStream stream = lobHandler.getBlobAsBinaryStream(rs, \"turnStates\");\r\n// ObjectInputStream ois;\r\n//\t\t\t\ttry {\r\n//\t\t\t\t\tois = new ObjectInputStream(stream);\r\n//\t\t\t\t\tTurnState ts = (TurnState) ois.readObject();\r\n//\t\t\t\t\tint id = rs.getInt(\"World_id\");\r\n//\t\t\t\t\tgr.addTurnstate(id, ts);\r\n//\t\t\t\t} catch (IOException e) {\r\n//\t\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t} catch (ClassNotFoundException e) {\r\n//\t\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t}\r\n//\r\n// return null;\r\n// }\r\n// };\r\n\t\t\r\n\t\t\r\n//\t\ttemplate.query(\"SELECT * FROM World_turnStates\",rm);\r\n\t\t\r\n\t\t\r\n\t\tUserEntity.NULL_USER = us.getUserEntity(126);\r\n\t\t\r\n\t\tif (UserEntity.NULL_USER == null){\r\n\t\t\tUserEntity.NULL_USER = new UserEntity();\r\n\t\t\tUserEntity.NULL_USER.setId(126);\r\n\t\t\tUserEntity.NULL_USER.setUsername(\"EMPTY\");\r\n\t\t\tus.saveUser(UserEntity.NULL_USER);\r\n\t\t}\r\n\t\t\r\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\r\n\t}",
"void fetchStartHousesData();",
"private void initPerRequestState() {\n if (this.trendValueDao == null) {\n this.trendValueDao = new MetricTrendValueDataSource();\n }\n }",
"public void preComputeBestReplicaMapping() {\n Map<String, Map<String, Map<String, String>>> collectionToShardToCoreMapping = getZkClusterData().getCollectionToShardToCoreMapping();\n\n for (String collection : collectionNames) {\n Map<String, Map<String, String>> shardToCoreMapping = collectionToShardToCoreMapping.get(collection);\n\n for (String shard : shardToCoreMapping.keySet()) {\n Map<String, String> coreToNodeMap = shardToCoreMapping.get(shard);\n\n for (String core : coreToNodeMap.keySet()) {\n String currentCore = core;\n String node = coreToNodeMap.get(core);\n SolrCore currentReplica = new SolrCore(node, currentCore);\n try {\n currentReplica.loadStatus();\n //Ok this replica is the best. Let us just use that for all the cores\n fillUpAllCoresForShard(currentReplica, coreToNodeMap);\n break;\n } catch (Exception e) {\n logger.info(ExceptionUtils.getFullStackTrace(e));\n continue;\n }\n }\n shardToBestReplicaMapping.put(shard, coreToBestReplicaMappingByHealth);\n }\n\n }\n }",
"@PostConstruct\n public void init() {\n ColorDao colorDao = new ColorDao();\n colores = colorDao.consultarColores();\n }",
"private void loadVillage(HashMap<String, String> info) {\n\t\tsuper.init(info);\n\t}",
"private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }",
"public void initialize(Core coreModule, Location[][][] planetHolders)\r\n\t{\n\t\tfor(String k : database.keySet())\r\n\t\t{\r\n\t\t\tCreatureData d = database.get(k);\r\n\t\t\t\r\n\t\t\tif(d.hasMap)\r\n\t\t\t{\r\n\t\t\t\tLocation[][] planet = planetHolders[typeToIndex(d.habitat)];\r\n\t\t\t\t\r\n\t\t\t\tif(planet[d.habitatY-1][d.habitatX-1]!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tplanet[d.habitatY-1][d.habitatX-1].spawns.load(coreModule, d.name, d.spawnRate, d.human);\r\n\t\t\t\t\tplanet[d.habitatY-1][d.habitatX-1].hasCreature = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//give our creatures to our neighbors\r\n\t\tfor(String k : database.keySet())\r\n\t\t{\r\n\t\t\tCreatureData d = database.get(k);\r\n\t\t\t\r\n\t\t\tif(d.hasMap)\r\n\t\t\t{\r\n\t\t\t\tLocation[][] planet = planetHolders[typeToIndex(d.habitat)];\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=-1; i<2; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int j=-1; j<2; j++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(Math.abs(i)!=Math.abs(j))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(d.habitatY+i >= 1 && d.habitatY+i<=8 && d.habitatX+j >= 1 && d.habitatX+j<=16)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[d.habitatY+i-1][d.habitatX+j-1]!=null && planet[d.habitatY+i-1][d.habitatX+j-1].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[d.habitatY+i-1][d.habitatX+j-1].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatY+i < 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[0][16-(d.habitatX)]!=null && planet[0][16-(d.habitatX)].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[0][16-(d.habitatX)].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatY+i > 8)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[7][16-(d.habitatX)]!=null && planet[7][16-(d.habitatX)].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[7][16-(d.habitatX)].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatX+j < 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[d.habitatY+i-1][15]!=null && planet[d.habitatY+i-1][15].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[d.habitatY+i-1][15].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(d.habitatX+j > 16)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(planet[d.habitatY+i-1][0]!=null && planet[d.habitatY+i-1][0].danger_level > 0)\r\n\t\t\t\t\t\t\t\t\tplanet[d.habitatY+i-1][0].spawns.load(coreModule, d.name, (int)(d.spawnRate/10.0), d.human);\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}",
"private void init() {\n CoachData coachData = UserBuffer.getCoachSession();\n list = PlanFunction.searchPlanByCoachID(coachData.getID());\n this.update();\n }",
"private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }",
"public void init(final HashMap<String, String> info) {\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tloadVillage(info);\n\t\tsetDrawPos(0);\n\t\tsetDrawPos(1);\n\t\tcreateSpritesList();\n\t\texitName = infoMap.get(\"landname\");\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tint delay = 0;\n\t\tif (info.containsKey(\"delay\")) {\n\t\t\tdelay = Integer.parseInt(info.get(\"delay\"));\n\t\t}\n\t\tif (delay > 0) {\n\t\t\tfinal int delayLoading = delay;\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tValues.sleep(delayLoading);\n\t\t\t\t\tlogicLoading = false;\n\t\t\t\t}\n\t\t\t}.start();\n\t\t} else {\n\t\t\tlogicLoading = false;\n\t\t}\n\t}",
"private void init() throws UnknownHostException, RemoteException {\n\n FileApp.setMapper(this);\n predKey = 0;\n toDistribute = readNodeEntries();\n //System.out.println(\"Mapper.init() :: toDistribute=\"+toDistribute);\n }",
"protected boolean initLocalData() {\n return true;\n }",
"@PostConstruct\n public void initialize() {\n LOGGER.debug(\"In RequestsCatalogueBean initialize\");\n InputStream input = MethodHandles.lookup().lookupClass().\n getClassLoader().getResourceAsStream(REQUESTS_CATALOGUE_FILE);\n if (input == null) {\n LOGGER.error(\"Can't find Tool requests catalogue file\");\n throw new RuntimeException(\n \"Can't find Tool requests catalogue file.\");\n }\n JAXBContext jaxbContext;\n try {\n jaxbContext = JAXBContext.newInstance(PoolPartyRequests.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n poolPartyRequests =\n ((PoolPartyRequests) jaxbUnmarshaller.unmarshal(input)).\n getRequests();\n // Can't make up my mind whether to sort or not.\n // Leave unsorted for now.\n // Arrays.sort(poolPartyRequests);\n } catch (JAXBException e) {\n LOGGER.error(\"Exception while parsing requests catalogue\", e);\n return;\n }\n try {\n input.close();\n } catch (IOException e) {\n LOGGER.error(\"Exception while closing requests catalogue file\", e);\n return;\n }\n LOGGER.debug(\"Requests read: \" + poolPartyRequests.length);\n }",
"private void init() {\n clearCaches();\n }",
"@Before\r\n\tpublic void setup() {\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceLondon, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\r\n\t\t// H2Boostrap will create and insert the schema just once\r\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceNewYork, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\t}",
"void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }",
"protected void initialize() {\n this.locals = Common.calculateSegmentSize(Common.NUM_CORES);\n this.drvrs = Common.calculateSegmentSize(Common.NUM_CORES);\n reports = new ArrayList<>();\n }",
"@PostConstruct\n public void postConstruct() {\n for (DBMetadataRepository repository : dbMetadataRepositories) {\n repositoryMap.put(repository.getProvider(), repository);\n }\n }",
"private void initialize() { \n inbox = getDcopInfoProvider().getAllDcopSharedInformation().get(getRegionID());\n \n currentDcopRun = inbox.getAsynchronousMessage().getIteration();\n \n LOGGER.info(\"DCOP Run {} Region {} read inbox {}\",currentDcopRun, getRegionID(), inbox);\n \n summary = getDcopInfoProvider().getDcopResourceSummary();\n \n retrieveAggregateCapacity(summary);\n retrieveNeighborSetFromNetworkLink(summary);\n retrieveAllService(summary);\n \n LOGGER.info(\"DCOP Run {} Region {} has Region Capacity {}\", currentDcopRun, getRegionID(), getRegionCapacity());\n }",
"public void initAfterUnpersistence() {\n //From a legacy bundle\n if (sources == null) {\n sources = Misc.newList(getName());\n }\n super.initAfterUnpersistence();\n openData();\n }",
"void loadStation() {\n\n // only do this if the station does not exist\n if (!stationExists) {\n\n station.setStatusCode(35); // open & unknown\n if (!\"\".equals(passkey)) { // ub02\n station.setPasskey(passkey); // ub02\n } // if (!\"\".equals(passkey)) // ub02\n\n if (dbg3) System.out.println(\"<br>loadStation: put station = \" + station);\n if (dbg4) System.out.println(\"<br>loadStation: put station = \" + station);\n try {\n station.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put station = \" + station);\n System.err.println(\"loadStation: put sql = \" + station.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"loadStation: sql = \" + station.getInsStr());\n\n //stationCount++;\n\n if (!\"\".equals(sfriGrid.getGridNo(\"\"))) {\n try {\n sfriGrid.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put sfriGrid = \" + sfriGrid);\n System.err.println(\"loadStation: put sql = \" + sfriGrid.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadStation: put sfriGrid = \" + sfriGrid);\n } // if (!\"\".equals(sfriGrid.getGridNo(\"\")))\n\n weatherIsLoaded = false;\n\n } // if (!stationExists)\n\n }",
"public void init_lookup(){\n for(int i =0 ; i< MAX ; i++){\n lookup[i] =0;\n }\n }",
"private void initCoordLogic() throws SQLException {\n\t\tcoordUsuario = new CoordinadorUsuario();\n\t\tlogicaUsuario = new LogicaUsuario();\n\t\tcoordUsuario.setLogica(logicaUsuario);\n\t\tlogicaUsuario.setCoordinador(coordUsuario);\n\t\t/* Listados de ComboBox*/\n\t\trol = new RolVO();\n\t\templeado = new EmpleadoVO();\n\t}",
"public void init(){\n\t\tcontentInBank = new TreeMap<>();\n\t\tint bank=0;\n\t\tfor (int i = 0; i < MEMORY_ADDRESS_LIMIT; i++) {\n\t\t\tbank = i % numOfbank;\n\t\t\t\n\t\t\tif (contentInBank.get(bank) == null) {\n\t\t\t\tMap<Integer,Entry>con = new TreeMap<>();\n\t\t\t\tcon.put(i, new Entry(MemoryType.UNDEF,\"0\", i));\n\t\t\t\tcontentInBank.put(bank, con);\n\t\t\t} else {\n\t\t\t\tcontentInBank.get(bank).put(i, new Entry(MemoryType.UNDEF,\"0\", i));\t\n\t\t\t}\n\t\t}\n\t}",
"public void restoreFromDatabase() throws InitException {\r\n \t\r\n \tlong id = 0L;\r\n \twhile(true) {\r\n\t \tList<ServerJobInstanceMapping> mappingList = null;\r\n\t \ttry {\r\n\t\t\t\tmappingList = serverJobInstanceMappingAccess.loadByServer(serverConfig.getLocalAddress(), id);\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t\tthrow new InitException(\"[LivingTaskManager]: restoreFromDatabase error, localAddress:\" + serverConfig.getLocalAddress(), e);\r\n\t\t\t}\r\n\t \t\r\n\t \tif(CollectionUtils.isEmpty(mappingList)) {\r\n\t \t\tlogger.warn(\"[LivingTaskManager]: restoreFromDatabase mappingList is empty\");\r\n\t \t\treturn ;\r\n\t \t}\r\n\t \t\r\n\t \tid = ListUtil.acquireLastObject(mappingList).getId();\r\n\t \t\r\n\t \tinitAddJobInstance4IdMap(mappingList);\r\n \t}\r\n }",
"private static void initCityMapping() {\n try {\n log.info(\"initCityMapping start.....\");\n try {\n File dicFile = new File(\"/config/gj_city.json\");\n if (dicFile.exists()) {\n String dic = FileCopyUtils.copyToString(new InputStreamReader(\n new FileInputStream(dicFile),\n StandardCharsets.UTF_8));\n cityInfos = JSONObject.parseObject(dic, Map.class);\n }\n } catch (Exception e) {\n log.error(\"加载城市信息失败,{}\", e.getMessage(), e);\n e.printStackTrace();\n }\n log.info(\"initCityMapping end.....\");\n } catch (Exception e) {\n log.info(\"初始化城市字典数据失败!\", e);\n }\n }",
"private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}",
"public void initialize() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\tHPNUlilities.dumpLocalGraph(subNetwork, subNetFile);\n\t\t/* Create level file for the original graph */\n\t\tHPNUlilities.createLevelFile(codePath, oriGraphFile, oriLevel,\n\t\t\t\tglobalLevelFile, penaltyType, partitionSize);\n\n\t}",
"void init() {\n List<Artifact> artifacts = null;\n final List<RepositoryInfo> infos = RepositoryPreferences.getInstance().getRepositoryInfos();\n for (final RepositoryInfo info : infos) {\n if (info.isLocal()) {\n final File localrepo = new File(info.getRepositoryPath() + File.separator\n + DEFAULT_GID_PREFIX.replace('.', '/'));\n if (localrepo.exists()) {\n artifacts = resolveArtifacts(new File(info.getRepositoryPath()), localrepo);\n }\n }\n }\n\n if (artifacts == null) {\n artifacts = new ArrayList<Artifact>(1);\n }\n\n populateLocalTree(artifacts);\n populateAppPane(model.getApps());\n }",
"@PostConstruct\n protected void init() {\n // Look up the associated batch data\n job = batchService.findByInstanceId(jobContext.getInstanceId());\n }",
"private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}"
] | [
"0.72056216",
"0.6275722",
"0.6095738",
"0.59069353",
"0.5860973",
"0.5739522",
"0.5731178",
"0.5718716",
"0.56959736",
"0.56682587",
"0.56382805",
"0.5604956",
"0.55966634",
"0.55872786",
"0.557109",
"0.5569788",
"0.55469745",
"0.5543496",
"0.55270994",
"0.54949784",
"0.5490587",
"0.5477568",
"0.54603916",
"0.5435081",
"0.5425023",
"0.5421629",
"0.5406431",
"0.5378274",
"0.53778654",
"0.5377377",
"0.53750163",
"0.5334236",
"0.53340536",
"0.5332874",
"0.53301096",
"0.53297883",
"0.5325501",
"0.53236836",
"0.532138",
"0.52892375",
"0.5268826",
"0.52528083",
"0.5252594",
"0.5246417",
"0.522995",
"0.5223668",
"0.5215472",
"0.5205947",
"0.5200429",
"0.52000725",
"0.5198853",
"0.5194267",
"0.51941144",
"0.51938957",
"0.5186941",
"0.51690984",
"0.51680565",
"0.51603836",
"0.5156488",
"0.51554775",
"0.5152818",
"0.51499474",
"0.514738",
"0.5144609",
"0.5141358",
"0.5136845",
"0.5129913",
"0.5128436",
"0.5128002",
"0.51250374",
"0.5123385",
"0.5121016",
"0.5118455",
"0.5118449",
"0.51068825",
"0.5101166",
"0.5094065",
"0.508802",
"0.5085794",
"0.50842035",
"0.5078496",
"0.5072113",
"0.50710183",
"0.5070971",
"0.5067344",
"0.5064889",
"0.5064878",
"0.5058669",
"0.50505614",
"0.5044115",
"0.5035888",
"0.5034308",
"0.50295234",
"0.5027701",
"0.5023971",
"0.50220037",
"0.5018831",
"0.50170654",
"0.5011247",
"0.5011023"
] | 0.66360384 | 1 |
create poolLocation based on ID,generate thumbnail for each pool locations using ThumbNailFactory | private poolLocation getPoolLocation(int ID) {
poolLocation pool = null;
if (ID == 0) {
pool = new poolLocation(pool1ID, pool1Description, false,
ThumbNailFactory.create().getThumbNail(pool1ID));
} else if (ID == 1) {
pool = new poolLocation(pool2ID, pool2Description, false,
ThumbNailFactory.create().getThumbNail(pool2ID));
} else if (ID == 2) {
pool = new poolLocation(pool3ID, pool3Descrption, false,
ThumbNailFactory.create().getThumbNail(pool3ID));
}
return pool;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void GenerateImageArea(int id)\n\t{\n\t\tareaHeight += 190;\n\t\tHome.createArticle.setPreferredSize(new Dimension(800, areaHeight));\n\t\t\n\t\ti++;\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = i;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.anchor = GridBagConstraints.LINE_START;\n\t\tgbc.insets = new Insets(10, 0, 0, 0);\n\t\tHome.createArticle.add(imageButtons.get(id), gbc);\n\t\t\n\t\tgbc.gridx = 1;\n\t\tgbc.gridwidth = 3;\n\t\tgbc.weighty = 10;\n\t\tHome.createArticle.add(imageAreas.get(id), gbc);\n\t\t\n\t}",
"protected abstract void createPool();",
"private static Bitmap storeThumbnail(ContentResolver cr, Bitmap source, long id,\n float width, float height, int kind) {\n\n // create the matrix to scale it\n Matrix matrix = new Matrix();\n\n float scaleX = width / source.getWidth();\n float scaleY = height / source.getHeight();\n\n matrix.setScale(scaleX, scaleY);\n\n Bitmap thumb = Bitmap.createBitmap(source, 0, 0,\n source.getWidth(),\n source.getHeight(), matrix,\n true\n );\n\n ContentValues values = new ContentValues(4);\n values.put(Images.Thumbnails.KIND,kind);\n values.put(Images.Thumbnails.IMAGE_ID,(int)id);\n values.put(Images.Thumbnails.HEIGHT,thumb.getHeight());\n values.put(Images.Thumbnails.WIDTH,thumb.getWidth());\n\n Uri url = cr.insert(Images.Thumbnails.EXTERNAL_CONTENT_URI, values);\n\n try {\n OutputStream thumbOut = cr.openOutputStream(url);\n thumb.compress(Bitmap.CompressFormat.JPEG, 100, thumbOut);\n thumbOut.close();\n return thumb;\n } catch (FileNotFoundException ex) {\n return null;\n } catch (IOException ex) {\n return null;\n }\n\n }",
"private static final Bitmap storeThumbnail(\n ContentResolver cr,\n Bitmap source,\n long id,\n float width,\n float height,\n int kind) {\n\n // create the matrix to scale it\n Matrix matrix = new Matrix();\n\n float scaleX = width / source.getWidth();\n float scaleY = height / source.getHeight();\n\n matrix.setScale(scaleX, scaleY);\n\n Bitmap thumb = Bitmap.createBitmap(source, 0, 0,\n source.getWidth(),\n source.getHeight(), matrix,\n true\n );\n\n ContentValues values = new ContentValues(4);\n values.put(MediaStore.Images.Thumbnails.KIND, kind);\n values.put(MediaStore.Images.Thumbnails.IMAGE_ID, (int) id);\n values.put(MediaStore.Images.Thumbnails.HEIGHT, thumb.getHeight());\n values.put(MediaStore.Images.Thumbnails.WIDTH, thumb.getWidth());\n\n Uri url = cr.insert(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, values);\n\n try {\n OutputStream thumbOut = cr.openOutputStream(url);\n thumb.compress(Bitmap.CompressFormat.PNG, 100, thumbOut);\n thumbOut.close();\n return thumb;\n } catch (FileNotFoundException ex) {\n return null;\n } catch (IOException ex) {\n return null;\n }\n }",
"private void generateThumbnail(String identifier)\r\n {\r\n if (isStringNull(identifier)) { throw new IllegalArgumentException(String.format(\r\n Messagesl18n.getString(\"ErrorCodeRegistry.GENERAL_INVALID_ARG_NULL\"), \"Nodeidentifier\")); }\r\n\r\n try\r\n {\r\n UrlBuilder url = new UrlBuilder(OnPremiseUrlRegistry.getThumbnailUrl(session, identifier));\r\n url.addParameter(OnPremiseConstant.PARAM_AS, true);\r\n // Log.d(\"URL\", url.toString());\r\n\r\n // prepare json data\r\n JSONObject jo = new JSONObject();\r\n jo.put(OnPremiseConstant.THUMBNAILNAME_VALUE, RENDITION_THUMBNAIL);\r\n\r\n final JsonDataWriter formData = new JsonDataWriter(jo);\r\n\r\n // send and parse\r\n post(url, formData.getContentType(), new Output()\r\n {\r\n public void write(OutputStream out) throws IOException\r\n {\r\n formData.write(out);\r\n }\r\n }, ErrorCodeRegistry.DOCFOLDER_GENERIC);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(TAG, \"Generate Thumbnail : KO\");\r\n }\r\n }",
"protected static LinkedList<Location> generateLocations() {\n int i = 0;\n LinkedList<Location> list = new LinkedList<Location>();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ImagePacker gearImgs = new ImagePacker();\n\n try {\n gearImgs.readDirectory(new File(Objects.requireNonNull(classLoader.getResource(\"assets/gear-tiles\")).getPath()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (i = 0; i < GEARTILES; i++) {\n list.add(new Location(LocationType.GEAR).withImg(gearImgs.popImg()));\n }\n list.get((int)(Math.random()*list.size())).toggleStartingLoc();\n\n Image waterImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-tile.jpg\")).toString());\n for (i = 0; i < WATERTILES; i++) {\n list.add(new Location(LocationType.WELL).withImg(waterImg));\n }\n\n Image waterFakeImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-fake-tile.jpg\")).toString());\n for (i = 0; i < WATERFAKETILES; i++) {\n list.add(new Location(LocationType.MIRAGE).withImg(waterFakeImg));\n }\n\n //TODO: Finish images\n for (i = 0; i < LANDINGPADTILES; i++) {\n list.add(new Location(LocationType.LANDINGPAD).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/landing-pad.jpg\")).toString())));\n }\n for (i = 0; i < TUNNELTILES; i++) {\n list.add(new Location(LocationType.TUNNEL).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/tunnel.jpg\")).toString())));\n }\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-LR.jpg\")).toString())));\n\n return list;\n }",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"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 }",
"public void setPoolId(Long poolId);",
"private void createImageDescriptor(String id) {\n\t\timageDescriptors.put(id, imageDescriptorFromPlugin(PLUGIN_ID, \"icons/\" + id)); //$NON-NLS-1$\n\t}",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"public void generateImage(int imageId, int resolution){\n String openUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/\"+imageId+ \".jpg\";\n String saveUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/tmp\";\n String saveName=String.format(\"%d_%d\", imageId, resolution);\n ImageDeal imageDeal = new ImageDeal(openUrl, saveUrl, saveName, \"jpg\");\n try{\n imageDeal.mosaic((int)Math.floor(264/resolution));\n //Thread.currentThread().sleep(1000);\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.printf(\"Image: %d Resolution: %d was generated.\\n\", imageId, resolution);\n }",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public static byte[] createThumbnail(byte[] originalImage, int width, int height) throws Exception{\n Image image = Toolkit.getDefaultToolkit().createImage(originalImage);\r\n MediaTracker mediaTracker = new MediaTracker(new Container());\r\n mediaTracker.addImage(image, 0);\r\n mediaTracker.waitForID(0);\r\n // determine thumbnail size from WIDTH and HEIGHT\r\n //ancho y largo esto se puede sacar de algun fichero de configuracion\r\n int thumbWidth =width;\r\n int thumbHeight = height;\r\n double thumbRatio = (double)thumbWidth / (double)thumbHeight;\r\n int imageWidth = image.getWidth(null);\r\n int imageHeight = image.getHeight(null);\r\n double imageRatio = (double)imageWidth / (double)imageHeight;\r\n if (thumbRatio < imageRatio) {\r\n thumbHeight = (int)(thumbWidth / imageRatio);\r\n } else {\r\n thumbWidth = (int)(thumbHeight * imageRatio);\r\n }\r\n // draw original image to thumbnail image object and\r\n // scale it to the new size on-the-fly\r\n BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);\r\n Graphics2D graphics2D = thumbImage.createGraphics();\r\n graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);\r\n\r\n ByteArrayOutputStream baos= new ByteArrayOutputStream();\r\n ImageIO.write(thumbImage, \"jpeg\" /* \"png\" \"jpeg\" format desired, no \"gif\" yet. */, baos );\r\n baos.flush();\r\n byte[] thumbImageAsRawBytes= baos.toByteArray();\r\n baos.close();\r\n return thumbImageAsRawBytes;\r\n\r\n}",
"void setPoolId(java.lang.String poolId);",
"private static Pool setUpPool(String name, double volume, double temp,\n double pH, double nutrientCoefficient, GuppySet startingGuppies) {\n Pool pool = new Pool(name, volume, temp, pH, nutrientCoefficient);\n\n pool.addFish(startingGuppies.generateGuppies());\n\n return pool;\n }",
"private poolLocation getCouponLocation(int ID) {\n\t\tpoolLocation coupon = null;\n\t\tif (ID == 0) {\n\t\t\tcoupon = new poolLocation(coupon1ID, Coupon1Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon1ID));\n\t\t} else if (ID == 1) {\n\t\t\tcoupon = new poolLocation(coupon2ID, Coupon2Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon2ID));\n\t\t} else if (ID == 2) {\n\t\t\tcoupon = new poolLocation(coupon3ID, Coupon3Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon3ID));\n\t\t}\n\t\treturn coupon;\n\t}",
"@Override\n \t public URL getTileUrl(int x, int y, int zoom) {\n \t String s = String.format(\"http://my.image.server/images/%d/%d/%d.png\",\n \t zoom, x, y);\n\n \t if (!checkTileExists(x, y, zoom)) {\n \t return null;\n \t }\n\n \t try {\n \t return new URL(s);\n \t } catch (MalformedURLException e) {\n \t throw new AssertionError(e);\n \t }\n \t }",
"protected abstract void setupImages(Context context);",
"public Photo( long id, String title, String description, Date creationDate, Date modifiedDate, long width, long height, double weight, double latitude, double longitude, double altitude, String address )\n\t{\n\t\tthis.id = id;\n\t\tthis.title = title;\n\t\tthis.description = description;\n\t\tthis.creationDate = creationDate;\n\t\tthis.modifiedDate = modifiedDate;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.weight = weight;\n\t\tthis.latitude = latitude;\n\t\tthis.longitude = longitude;\n\t\tthis.altitude = altitude;\n\t\tthis.address = address;\n\t}",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"void createThumbNail(File inputFile, OutputStream outputStream,\n String format, int width, int height,\n ConversionCommand.CompressionQuality quality,\n ConversionCommand.SpeedHint speedHint) throws Exception;",
"public static String generateNormalImg(ImageHolder thumbnail, String targetAddr) {\n\t\tString realFileName = getRandomFileName();\r\n\t\tString extension = getFileExtension(thumbnail.getImageName());\r\n\t\tmakeDirPath(targetAddr);\r\n\t\tString relativeAddr = targetAddr + realFileName + extension;\r\n\t\t//System.out.println(relativeAddr);\r\n\t\tFile dest = new File(PathUtil.getImgBasePath() + relativeAddr);\r\n\t\ttry {\r\n\t\t\tThumbnails.of(thumbnail.getImage()).size(337,640)\r\n\t\t\t.watermark(Positions.BOTTOM_RIGHT,ImageIO.read(new File(basePath+\"/watermark.jpg\")),0.25f).outputQuality(0.9f).toFile(dest);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"创建缩略图失败:\" + e.toString());\r\n\t\t}\r\n\t\treturn relativeAddr;\r\n\t\t\r\n\t}",
"java.lang.String getPoolId();",
"public static void cheat() {\n\t\tlocations = new ArrayList<Location>();\n \tLocation temp = new Location();\n \ttemp.setLongitude(20.0);\n \ttemp.setLatitude(30.0);\n \tlocations.add(temp);\n \tLocation temp0 = new Location();\n \ttemp0.setLongitude(21.0);\n \ttemp0.setLatitude(30.0);\n \tlocations.add(temp0);\n \tLocation temp1 = new Location();\n \ttemp1.setLongitude(15.0);\n \ttemp1.setLatitude(40.0);\n \tlocations.add(temp1);\n \tLocation temp2 = new Location();\n \ttemp2.setLongitude(20.0);\n \ttemp2.setLatitude(30.1);\n \tlocations.add(temp2);\n \tLocation temp3 = new Location();\n \ttemp3.setLongitude(22.0);\n \ttemp3.setLatitude(33.1);\n \tlocations.add(temp3);\n \tLocation temp4 = new Location();\n \ttemp4.setLongitude(22.1);\n \ttemp4.setLatitude(33.0);\n \tlocations.add(temp4);\n \tLocation temp5 = new Location();\n \ttemp5.setLongitude(22.1);\n \ttemp5.setLatitude(33.2);\n \tlocations.add(temp5);\n\t\tList<PictureObject> pictures = new ArrayList<PictureObject>();\n\t\tint nbrOfLocations = locations.size();\n\t\tfor (int index = 0; index < nbrOfLocations; index++) {\n\t\t\tPicture pic = new Picture();\n\t\t\tpic.setLocation(locations.get(index));\n\t\t\tpictures.add(pic);\n\t\t}\n\t\tFiles.getInstance().setPictureList(pictures);\n\t}",
"private static String getImagePath(int size) {\n return \"images/umbrella\" + size + \".png\";\n }",
"void loadImages(int id_image, HouseRepository.GetImageFromHouseCallback callback);",
"private ImageSet createImages(String kind) {\n \t\tImageSet images = new ImageSet();\n \t\tImageDescriptor desc;\n \t\tdesc = getPredefinedImageDescriptor(kind);\n if (desc == null) {\n \t\t desc = TaskEditorManager.getInstance().getImageDescriptor(kind);\n }\n \t\tif (desc != null) {\t\t\n \t\t\timages.put(ICompositeCheatSheetTask.NOT_STARTED, desc.createImage());\n \t\t\t\n \t\t\tcreateImageWithOverlay(ICompositeCheatSheetTask.IN_PROGRESS, \n\t\t \"$nl$/icons/ovr16/task_in_progress.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\tcreateImageWithOverlay(ICompositeCheatSheetTask.SKIPPED, \n\t\t \"$nl$/icons/ovr16/task_skipped.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\tcreateImageWithOverlay(BLOCKED, \n\t\t \"$nl$/icons/ovr16/task_blocked.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\tcreateImageWithOverlay(ICompositeCheatSheetTask.COMPLETED, \n\t\t \"$nl$/icons/ovr16/task_complete.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\t\n \t\t}\n \t\treturn images;\n \t}",
"public void createImageSet() {\n\t\t\n\t\t\n\t\tString image_folder = getLevelImagePatternFolder();\n \n String resource = \"0.png\";\n ImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(\"navigable\", ii.getImage());\n\n\t}",
"public String createTempThumbnail(String fileId)\n\t\t\tthrows RPCIllegalArgumentException {\n\n\t\tString outputSufix = TEMPORAL_THUMB_PREXIF + fileId;\n\n\t\tString sourceFileName = Properties.REAL_TEMP_FILES_DIR + fileId;\n\n\t\tString destinyFileName = Properties.REAL_TEMP_FILES_DIR + outputSufix;\n\n\t\tImageMagickAPI.createThumb(sourceFileName, destinyFileName);\n\n\t\treturn Properties.WEB_TEMP_MEDIA_DIR + outputSufix;\n\n\t}",
"public static ContentValues findOrGenerateThumbnail(ContentValues timelapse){\n\t\t\n\t\tFile timelapse_dir = new File(timelapse.getAsString(SQLiteWrapper.COLUMN_DIRECTORY_PATH));\n\t\tLog.d(\"findOrGenerateThumbnail\",timelapse_dir.getAbsolutePath());\n\t\t// if the timelapse dir does not exist or is a file,\n\t\t// fixing the application state is beyond the scope of this method\n\t\t// TODO: for performance, remove this check \n\t\tif(!timelapse_dir.exists() || timelapse_dir.isFile())\n\t\t\treturn timelapse;\n\t\t\n\t\t// Make thumbnail folder if it doesn't exist\n\t\tFile thumbnail_dir = new File(timelapse_dir, TimeLapse.thumbnail_dir);\n\t if (! thumbnail_dir.exists()){\n\t if (! thumbnail_dir.mkdirs()){\n\t Log.d(TAG, \"failed to create thumbnail directory\");\n\t return timelapse;\n\t }\n\t }\n\t // Determine last image in TimeLapse dir and generate thumbnail if it doesn't exist\n\t\tFile[] children = timelapse_dir.listFiles(new imageFilter());\n\t\ttimelapse.put(SQLiteWrapper.COLUMN_IMAGE_COUNT, timelapse_dir.listFiles(new imageFilter()).length);\n\t\t// Generate thumbnail of last image and save to storage as \"./thumbnail_dir/XXXthumbnail_suffix.jpeg\"\n\t\tFile original = new File(timelapse_dir, timelapse.getAsString(SQLiteWrapper.COLUMN_IMAGE_COUNT) + \".jpeg\");\n\t\ttimelapse.put(SQLiteWrapper.COLUMN_LAST_IMAGE_PATH, original.getAbsolutePath()); \n\t\tBitmap thumbnail_bitmap = FileUtils.decodeSampledBitmapFromResource(original.getAbsolutePath(), TimeLapse.thumbnail_width, TimeLapse.thumbnail_height);\n\t\tFile thumbnail_file = new File(thumbnail_dir, timelapse.getAsString(SQLiteWrapper.COLUMN_IMAGE_COUNT)+ TimeLapse.thumbnail_suffix +\".jpeg\");\n\t\tif(!thumbnail_file.exists()){\n\t\t\tFileOutputStream out;\n\t\t\ttry {\n\t\t\t\tout = new FileOutputStream(thumbnail_file);\n\t\t\t\tthumbnail_bitmap.compress(Bitmap.CompressFormat.JPEG, 90, out);\n\t\t\t\ttimelapse.put(SQLiteWrapper.COLUMN_THUMBNAIL_PATH, thumbnail_file.getAbsolutePath()); \n\t\t\t\t//Log.d(\"Thumbnail\",\"TL \" + String.valueOf(timelapse.id) + \" thumb set to \" + timelapse.thumbnail_path);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// Not sure when this would happen...\n\t\t\t\t// FileOutputStream creates file if it doesn't exist (the intended case)\n\t\t\t\t// Maybe on permission denied...\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t//if thumbail exists, store it with TimeLapse\n\t\t\ttimelapse.put(SQLiteWrapper.COLUMN_THUMBNAIL_PATH, thumbnail_file.getAbsolutePath());\n\t\t}\n\t\t\n\t\treturn timelapse;\n\t}",
"@Override\n protected Bitmap doInBackground(String... id) {\n final String placeId = id[0];\n PlacePhotoMetadataResult result = Places.GeoDataApi\n .getPlacePhotos(this.googleApiClient, placeId).await();\n\n if (result.getStatus().isSuccess()) {\n PlacePhotoMetadataBuffer photoMetadataBuffer = result.getPhotoMetadata();\n int numberOfPhotos = photoMetadataBuffer.getCount();\n\n if (numberOfPhotos > 0 && !isCancelled()) {\n for (int i = 0; i < numberOfPhotos; i++) {\n publishProgress((i + 1) * 100 / numberOfPhotos);\n\n // Load the thumbnail from buffer to determine the aspect ratio\n PlacePhotoMetadata photoMetadata = photoMetadataBuffer.get(i);\n Bitmap thumbnail = photoMetadata.getScaledPhoto(\n this.googleApiClient, 160, 90).await().getBitmap();\n\n // Return the photo if the aspect ratio is unspecified,\n // i.e. aspect ratio is -1\n if (Math.abs(this.aspectRatio - -1d) < 0.0001) {\n Bitmap bitmap = photoMetadata.getScaledPhoto(\n this.googleApiClient, 1920, 1080).await().getBitmap();\n publishProgress(PROGRESS_FINISH);\n photoMetadataBuffer.release();\n return bitmap;\n }\n\n // Calculate the aspect ratio of the photo\n double aspectRatio = (double) thumbnail.getWidth() / (double) thumbnail.getHeight();\n\n // Return the photo if the aspect ratio matches the requirement\n if (Math.abs(this.aspectRatio - aspectRatio) < 0.01) {\n Bitmap bitmap = photoMetadata.getScaledPhoto(\n this.googleApiClient, 1920, 1080).await().getBitmap();\n photoMetadataBuffer.release();\n publishProgress(PROGRESS_FINISH);\n return bitmap;\n }\n }\n }\n photoMetadataBuffer.release();\n }\n publishProgress(PROGRESS_FINISH);\n return null;\n }",
"public MapGen()//Collect images, create Platform list, create grassy array and generate a random integer as the map wideness\n\t{\n\t\tblocksWide= ThreadLocalRandom.current().nextInt(32, 64 + 1);\n\t\tclouds=kit.getImage(\"Resources/SkyBackground.jpg\");\n\t\tdirt=kit.getImage(\"Resources/Dirt.png\");\n\t\tgrass[0]=kit.getImage(\"Resources/Grass.png\");\n\t\tgrass[1]=kit.getImage(\"Resources/Grass1.png\");\n\t\tgrass[2]=kit.getImage(\"Resources/Grass2.png\");\n\t\tplatforms=new ArrayList<Platform>();\n\t\tgrassy=new int[blocksWide];\n\t\tgrassT=new int[blocksWide];\n\t\tgenerateTerrain();\n\t\t\n\t\t\n\t\t\n\t}",
"public Long getPoolId();",
"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 setImageProvider(TileImageProvider tip)\n/* 71: */ {\n/* 72:118 */ this.mapPanel.setTileImageProvider(tip);\n/* 73: */ }",
"private DocumentVO createThumbImage(DocumentVO documentVO)\r\n\t\t\tthrows IOException{\r\n\t\tDocumentVO thumbDoc = new DocumentVO();\r\n\t\tthumbDoc = mapDocument(documentVO);\r\n\t\tString fileName = thumbDoc.getFileName();\r\n\t\tint extStart = fileName.lastIndexOf(Constants.DOT);\r\n\t\tString fileExtn = fileName.substring(extStart+1);\r\n\t\tString fileNameWithOutExtn = fileName.substring(0, extStart);\r\n\t\tStringBuilder newFileName = new StringBuilder(fileNameWithOutExtn);\r\n\t\tnewFileName.append(Constants.ThumbNail.THUMBNAIL_SUFFIX);\t\t\t\r\n\t\tnewFileName.append(Constants.DOT);\r\n\t\tnewFileName.append(fileExtn);\r\n\t\tthumbDoc.setFileName(newFileName.toString());\r\n\t\tif(null != thumbDoc.getBlobBytes()){\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\tthumbDoc.getBlobBytes(),Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\r\n\t\telse if(null != thumbDoc.getDocument()){\r\n\t\t\tbyte[] imageBytes = FileUtils.readFileToByteArray(thumbDoc.getDocument());\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\timageBytes,Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\t\t\r\n\t\tthumbDoc.setDocSize(new Long(thumbDoc.getBlobBytes().length));\r\n\t\tthumbDoc.setDocument(null);\r\n\t\treturn thumbDoc;\r\n\t}",
"public CompletionStage<Result> thumbnail(Long id) {\n models.Preset preset = models.Preset.find.byId(id); // find preset\n if (preset != null) {\n return preset.getThumbnail();\n }\n return null;\n }",
"private DocumentVO createThumbImage(DocumentVO documentVO)\r\n\t\tthrows IOException{\r\n\t\tDocumentVO thumbDoc = new DocumentVO();\r\n\t\tthumbDoc = mapDocument(documentVO);\r\n\t\tString fileName = thumbDoc.getFileName();\r\n\t\tint extStart = fileName.lastIndexOf(Constants.DOT);\r\n\t\tString fileExtn = fileName.substring(extStart+1);\r\n\t\tString fileNameWithOutExtn = fileName.substring(0, extStart);\r\n\t\tStringBuilder newFileName = new StringBuilder(fileNameWithOutExtn);\r\n\t\tnewFileName.append(Constants.ThumbNail.THUMBNAIL_SUFFIX);\t\t\t\r\n\t\tnewFileName.append(Constants.DOT);\r\n\t\tnewFileName.append(fileExtn);\r\n\t\tthumbDoc.setFileName(newFileName.toString());\r\n\t\tif(null != thumbDoc.getBlobBytes()){\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\tthumbDoc.getBlobBytes(),Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\r\n\t\telse if(null != thumbDoc.getDocument()){\r\n\t\t\tbyte[] imageBytes = FileUtils.readFileToByteArray(thumbDoc.getDocument());\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\timageBytes,Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\t\t\r\n\t\tthumbDoc.setDocSize(new Long(thumbDoc.getBlobBytes().length));\r\n\t\tthumbDoc.setDocument(null);\r\n\t\treturn thumbDoc;\r\n\t}",
"Builder addThumbnailUrl(URL value);",
"Render() {\n int imgNum;\n SampleModel sm = baseImage.getSampleModel(); // Set up the attributes for the new image.\n newImage = new TiledImage(baseImage.getMinX(),\n baseImage.getMinY(),\n (pixWidth * hTiles),\n (pixHeight * vTiles),\n baseImage.getTileGridXOffset(),\n baseImage.getTileGridYOffset(),\n baseImage.getSampleModel(),\n baseImage.getColorModel());\n RenderedImage smallImage; // Variable for holding the scaled down image to be placed in the large image.\n int tileArray[][] = new int[hTiles][vTiles]; // The array of how the tiles are arranged.\n // First, we select what tiles go where...\n for (int x = 0; x < hTiles; x++) { // Cycle through the image tiles, horizontally.\n for (int y = 0; y < vTiles; y++) { // Cycle through the image tiles, vertically.\n try {\n tileArray[x][y] = findBestFit(mapArray[x][y], tileArray, x, y); // Find the tile to go there.\n setCurr((x * vTiles) + y); // Update task stuff.\n setMsg(\"Choosing Image For Tile #\" + ((x * vTiles) + y));\n } catch (Exception e) {}\n }\n }\n\n setCurr(0); // Task stuff, for progress indicators...\n setMsg(\"Done Selecting Tiles... Generating Image\");\n\n // Next, we actually build the image based on the tiles we chose.\n for (int x = 0; x < hTiles; x++) { // Again, cycle horizonally,\n for (int y = 0; y < vTiles; y++) { // And vertically. ( for every tile in the image )\n try {\n smallImage = imageLoader.getRenderedImage(tileLibrary.get(tileArray[x][y]).getFileName()); // Load the image from the tile we selected.\n smallImage = imageOps.scale(smallImage, pixWidth, pixHeight); // Scale the image to the appropriate size.\n // Create a region of interest on the large image to paste the small image into.\n ROIShape myROI = new ROIShape(new Rectangle((x*pixWidth), (y*pixHeight), smallImage.getWidth(), smallImage.getHeight()));\n ParameterBlock pb = new ParameterBlock(); // Move the image to the appropriate spot...\n pb.addSource(smallImage);\n pb.add((float)(x*pixWidth));\n pb.add((float)(y*pixHeight));\n pb.add(new InterpolationNearest());\n smallImage = JAI.create(\"translate\", pb, null); // Do the translation.\n newImage.setData(smallImage.getData(), myROI); // Stick the tile image into the large image.\n setCurr((x * vTiles) + y); // Update task stuff.\n setMsg(\"Building Tile# \" + ((x * vTiles) + y));\n } catch (Exception e) {}\n }\n }\n setCurr(lengthOfTask); // Finish up the task stuff.\n setMsg(\"DONE!\");\n }",
"Receta getByIdWithImages(long id);",
"public String getThumbnailUrl();",
"private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }",
"private void createGridlet(int userID, int numGridlet)\n {\n int data = 500; // 500KB of data\n for (int i = 0; i < numGridlet; i++)\n {\n // Creates a Gridlet\n Gridlet gl = new Gridlet(i, data, data, data);\n gl.setUserID(userID);\n\n // add this gridlet into a list\n this.jobs.add(gl);\n }\n }",
"Builder addThumbnailUrl(String value);",
"protected abstract LoadBitmapImageTask<Entity> createNewLoadBitmapImageTask();",
"private ImageView[] createTiledWord(String tilesToCreate) {\n int count;\n int length = tilesToCreate.length();\n ImageView[] imagesViewList = new ImageView[length];\n for (count = 0; count < length; count++) {\n ImageView iv = new ImageView(this);\n iv.setImageResource(tileMap.getTile(tilesToCreate.charAt(count)));\n iv.setContentDescription(String.valueOf(tilesToCreate.charAt(count)));\n iv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View sender) {\n ImageView tile = (ImageView) sender;\n if (tile.getParent() == MainActivity.this.imageLayout) {\n MainActivity.this.imageLayout.removeView(tile);\n MainActivity.this.answerLayout.addView(tile);\n MainActivity.this.checkAnswer();\n\n } else {\n MainActivity.this.answerLayout.removeView(tile);\n MainActivity.this.imageLayout.addView(tile);\n MainActivity.this.convertAnswerString();\n }\n }\n });\n imagesViewList[count] = iv;\n }\n return imagesViewList;\n }",
"public void createImages(){\n for(String s : allPlayerMoves){\n String a = \"Left\";\n for(int i = 0; i < 2; i++) {\n ArrayList<Image> tempImg = new ArrayList();\n boolean done = false;\n int j = 1;\n while(!done){\n try{\n tempImg.add(ImageIO.read(new File(pathToImageFolder+s+a+j+\".png\")));\n j++;\n } catch (IOException ex) {\n done = true;\n }\n }\n String temp = s.replace(\"/\",\"\") + a;\n playerImages.put(temp, tempImg);\n a = \"Right\";\n }\n }\n imagesCreated = true;\n }",
"public void createPile(int id, String name) {\n\t\tif (mTable.get(id) != null) {\n\t\t\treturn; // There was already a pile there\n\t\t}\n\t\t// Check that the name is unique and that it\n\t\tif (pileNames.contains(name)) {\n\t\t\treturn;\n\t\t} else if (name.equals(\"Pile \" + pileNo)) {\n \t\t\tpileNo++;\n \t\t\tgs.setDefaultPileNo(pileNo);\n \t\t}\n\t\t// Make a new Pile object and set() it in the list\n \t\tmTable.set(id, new Pile(name));\n \t\tpileNames.add(name);\n \t\tsendUpdatedState();\n \t}",
"private void createHash() throws IOException\n\t{\n\t\tmap = new HashMap<String, ImageIcon>();\n\t\t\n\t\tfor(int i = 0; i < pokemonNames.length; i++)\n\t\t{\n\t\t\tmap.put(pokemonNames[i], new ImageIcon(getClass().getResource(fileLocations[i])));\n\t\t}\n\t}",
"private void initPoint() {\n\t\tfor (int i = 0; i < images.length; i++) {\r\n\t\t\tView view = new View(SnaDetailsActivity.this);\r\n\t\t\tparamsL.setMargins(YangUtils.dip2px(SnaDetailsActivity.this, 5), 0, 0, 0);\r\n\t\t\tview.setLayoutParams(paramsL);\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_03);\r\n\t\t\t} else {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_05);\r\n\t\t\t}\r\n\r\n\t\t\tviews.add(view);\r\n\t\t\tll_point.addView(view);\r\n\t\t}\r\n\t}",
"private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}",
"@Test\n public void testLookupPoolsProvidingProduct() {\n Product parentProduct = TestUtil.createProduct(\"1\", \"product-1\");\n Product childProduct = TestUtil.createProduct(\"2\", \"product-2\");\n productCurator.create(childProduct);\n productCurator.create(parentProduct);\n \n Set<String> productIds = new HashSet<String>();\n productIds.add(childProduct.getId());\n \n Pool pool = TestUtil.createPool(owner, parentProduct.getId(),\n productIds, 5);\n poolCurator.create(pool);\n \n \n List<Pool> results = poolCurator.listAvailableEntitlementPools(null, owner, \n childProduct.getId(), false);\n assertEquals(1, results.size());\n assertEquals(pool.getId(), results.get(0).getId());\n }",
"private ImageMappings() {}",
"private void placePhotosTask(String placeId) {\n new PhotoTask(imgPlaceDetail.getWidth(), imgPlaceDetail.getHeight()) {\n @Override\n protected void onPreExecute() {\n // Display a temporary image to show while bitmap is loading.\n imgPlaceDetail.setImageBitmap(getBitmapFromAssets(\"no_image_backdrop.png\"));\n //imgPlaceDetail.setImageResource(R.drawable.no_image_backdrop);\n //imgPlaceDetail.invalidate();\n\n }\n\n @Override\n protected void onPostExecute(AttributedPhoto attributedPhoto) {\n if (attributedPhoto != null) {\n // Photo has been loaded, display it.\n imgPlaceDetail.setImageBitmap(attributedPhoto.bitmap);\n // Display the attribution as HTML content if set.\n /*if (attributedPhoto.attribution == null) {\n mText.setVisibility(View.GONE);\n } else {\n mText.setVisibility(View.VISIBLE);\n mText.setText(Html.fromHtml(attributedPhoto.attribution.toString()));\n }\n*/\n }\n imgPlaceDetail.invalidate();\n }\n }.execute(placeId);\n }",
"HeroPool createHeroPool();",
"private void initThumbPixelMap() {\n LogUtil.info(TAG, \"initThumbPixelMap() begin\");\n if (mThumbDrawable == null) {\n return;\n }\n if (mThumbDrawable instanceof StateElement) {\n try {\n setThumbPixelMapValues();\n } catch (IllegalArgumentException e) {\n mThumbPixelMap = getPixelMapFromDrawable(mThumbDrawable, true);\n mPressedThumbPixelMap = mThumbPixelMap;\n }\n } else {\n mThumbPixelMap = getPixelMapFromResId(true, false);\n mPressedThumbPixelMap = mThumbPixelMap;\n }\n LogUtil.info(TAG, \"initThumbPixelMap() end\");\n }",
"@Override\r\n\tpublic void initTripPicture(Set<Trippicture> pictures, String basePath) {\n\t\tfor (Trippicture tp : pictures) {\r\n\t\t\tString path = basePath + \"image_cache\\\\\" + tp.getName();\r\n\t\t\tif (!new File(path).exists()) {\r\n\t\t\t\tUtils.getFile(tp.getData(), path);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void generatePuzzle(Resources res, int drawable_id) {\n\t\t/* Call generatePuzzle() to break the picture into 9 pieces and randomize their\n\t\t * positions and orientations. Convert the drawable to bitmap and send it */ \n\t\tArrayList<Piece> pieces = Helper.createPieces\n\t\t\t\t(BitmapFactory.decodeResource(this.getResources(), R.drawable.pic));\n\t\tif (pieces == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* Initialize jigsawPieces */\n\t\tjigsawPieces = new ArrayList<Piece>();\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tjigsawPieces.add(i, pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Copy the pieces from the 'pieces' array to jigsawPieces and sort it by currentPosition.\n\t\t * Note that the 'pieces' array is sorted by correctPosition*/\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\t/* Manipulate the array such that jigsawPieces stores pieces sorted by currentPosition */\n\t\t\tjigsawPieces.set(pieces.get(i).getPosition(), pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Assign the correct images to the ImageViews */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setImageBitmap(jigsawPieces.get(i).getImage());\n\t\t}\n\t\t\n\t\t/* Set the rows and columns for the GridLayout and add the individual ImageViews to it */\n\t\tdrawGridLayout();\n\t\t\n\t\t/* Set the complete flag to false to indicate that the puzzle is not solved */\n\t\tcomplete = false;\n\t\t\n\t\t/* Check if any of the pieces are already placed correctly by chance (or if the puzzle is already solved) */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tHelper.checkCompleteness(jigsawPieces.get(i), this);\n\t\t}\n\t}",
"public String getThumbnail();",
"public Building (Pixmap image,\n Location3D center,\n Dimension size,\n Sound sound,\n int playerID,\n int health,\n double buildTime) {\n super(image, center, size, sound, playerID, MAXHEALTH, buildTime);\n myRallyPoint = new Location3D(getWorldLocation().getX(), getWorldLocation().getY() + 150, 0);\n \n }",
"public void addNewPool(poolLocation pool) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getPoolLocationData(PooltableName,\n\t\t\t\tpool.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}",
"RenderedImage createScaledRendering(Long id, \n\t\t\t\t\tint w, \n\t\t\t\t\tint h, \n\t\t\t\t\tSerializableState hintsState) \n\tthrows RemoteException;",
"private String getResizeIcon(int i) {\r\n\t\t//Added images for each destination and updated the sizes of each picture so it is better looking.\r\n\t\tString image = \"\"; \r\n\t\tif (i==1){\r\n\t\t\timage = \"<html><body><img width= '800' height='500' src='\" + getClass().getResource(\"/resources/TestImage1.jpg\") + \"'</body></html>\";\r\n\t\t} else if (i==2){\r\n\t\t\t//By: James Willamor Wikimedia commons https://commons.wikimedia.org/wiki/File:Taino_Beach,_Grand_Bahama.jpg\r\n\t\t\timage = \"<html><body><img width= '800' height='500' src='\" + getClass().getResource(\"/resources/Taino_Beach,_Grand_Bahama.jpg\") + \"'</body></html>\";\r\n\t\t} else if (i==3){\r\n\t\t\t//By: MIKI Yoshihito Wikimedia commons \t\r\n\t\t\t//https://www.flickr.com/photos/mujitra/16892388692/in/photolist-m6k3hb-7CuR2s-7CuQZ7-m6jarH-m6itzF-m6iCoH-T1yahh-m6isDn-m6jda8-T1y8aS-S1te2R-RXVom9-SEt9Ey-RXVA11-rJHUCU-qMQi19-rJHKsj-qMQjf3-rGxqmE-rqvpNM-rGxuqG-rGxtBN-rsfwSW-rsfsUq-rJQ9xZ-qN3siH-bx211V-8w87tU\r\n\t\t\timage = \"<html><body><img width= '800' height='500' src='\" + getClass().getResource(\"/resources/Hilton_Niseko_Village.jpg\") + \"'</body></html>\";\r\n\t\t} else if (i==4){\r\n\t\t\t//By:florin_glontaru Wikimedia commons \thttp://www.panoramio.com/photo/41076639\r\n\t\t\timage = \"<html><body><img width= '800' height='500' src='\" + getClass().getResource(\"/resources/Sunset_at_Gerakini_beach,_Greece_-_panoramio.jpg\") + \"'</body></html>\";\r\n\t\t} else if (i==5){\r\n\t\t\t//By:Keith Pomakis Wikimedia commons https://commons.wikimedia.org/wiki/File:Cancun_Beach.jpg\r\n\t\t\timage = \"<html><body><img width= '800' height='500' src='\" + getClass().getResource(\"/resources/800px-Cancun_Beach.jpg\") + \"'</body></html>\";\r\n\t\t}\r\n\t\treturn image;\r\n\t}",
"private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int fuzzyPPD = ppd/2 ; fuzzyPPD > 1 ; fuzzyPPD /= 2){\t\t\t\t\n\t\t\t\tint ratio = ppd / fuzzyPPD;\n\t\t\t\t\n\t\t\t\t// A tile has 256 pixels on a side.\n\t\t\t\t// Using this method, we can't upscale data to be fuzzy if it's more than 256 times larger \n\t\t\t\t// than the area we are looking to fill. Upscaling data more than 16 times seems unlikely to provide\n\t\t\t\t// any real benefit to the user, so we will quit our search at this point\n\t\t\t\tif (ratio>16) break;\n\t\t\t\t\n\t\t\t\tString tileName = CacheManager.getTileName(\n\t\t\t\t\tsource.getName(), proj, fuzzyPPD,\n\t\t\t\t\ttile.getXtile()/ratio, tile.getYtile()/ratio,\n\t\t\t\t\tsource.hasNumericKeyword());\n\t\t\t\t\n\t\t\t\tBufferedImage tileImage = CacheManager.getTile(source, tileName);\n\t\t\t\t\n\t\t\t\tif (tileImage==null) {\t\t\t\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\tint xtileindex = tile.getXtile() % ratio;\n\t\t\t\tint ytileindex = ratio - (tile.getYtile() % ratio) - 1;\n\t\t\t\t\n\t\t\t\tdouble fuzzyxstep = MapRetriever.tiler.getPixelWidth() / ratio;\n\t\t\t\tdouble fuzzyystep = MapRetriever.tiler.getPixelHeight() / ratio;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttileImage = tileImage.getSubimage((int)(xtileindex * fuzzyxstep), (int)(ytileindex * fuzzyystep), (int)fuzzyxstep, (int)fuzzyystep);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t\tlog(\"xtileindex:\"+xtileindex+\" fuzzyxstep:\"+fuzzyxstep+\" ytileindex:\"+ytileindex+\" fuzzyystep:\"+fuzzyystep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong outputImageSize = (tileImage.getWidth()*ratio)*(tileImage.getHeight()*ratio);\n\t\t\t\tif (outputImageSize <= 0 || outputImageSize > Integer.MAX_VALUE){\n\t\t\t\t\tlog(\"Scaling tile from \"+fuzzyPPD+\" to \"+ppd+\" will result in image size overflow.\"+\n\t\t\t\t\t\t\t\" Stopping further search for lower PPDs for this tile.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttileImage = CacheManager.scaleImage(tileImage, ratio);\n\t\t\t\t\n\t\t\t\tmyRetriever.fuzzyResponse(tile, tileImage);\n\t\t\t}\t\t\t\t\t\t\n\t\t}",
"String getTileUrl(int zoom, int tilex, int tiley) throws IOException;",
"Source createDatasourceZ3950IdFile(Source ds, Provider prov) throws RepoxException;",
"private Map<String, List<String>> getAdvancedSamplePool(List<String> candidatePool, String malpediaPath) {\n\t\tMap<String, List<String>> samplePool = new HashMap<>();\n\t\tfor(String s: candidatePool) {\n\t\t\tString tmp = s.substring(malpediaPath.length() + 1);\n\t\t\tString family = tmp.substring(0, tmp.indexOf(\"/\")).replace('.', '_');\n\t\t\tString filename = tmp.substring(tmp.lastIndexOf(\"/\") + 1);\n\t\t\tif(!samplePool.containsKey(family)) {\n\t\t\t\tsamplePool.put(family, new ArrayList<>());\n\t\t\t\tsamplePool.get(family).add(family + \"/\" + filename);\n\t\t\t} else {\n\t\t\t\tList<String> tmpVector = samplePool.get(family);\n\t\t\t\ttmpVector.add(family + \"/\" + filename);\n\t\t\t\tsamplePool.put(family, tmpVector);\n\t\t\t}\n\t\t}\n\t\treturn samplePool;\n\t}",
"private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}",
"public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpFolder = new String(tmpBase + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n else {\r\n tmpFolder = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n m_sGrassTempMapsetFolder = tmpFolder;\r\n\r\n }",
"public static void createImages()\n {\n //Do if not done before\n if(!createdImages)\n {\n createdImages = true;\n for(int i=0; i<rightMvt.length; i++)\n {\n rightMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n leftMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n rightMvt[i].scale(rightMvt[i].getWidth()*170/100, rightMvt[i].getHeight()*170/100);\n leftMvt[i].scale(leftMvt[i].getWidth()*170/100, leftMvt[i].getHeight()*170/100);\n }\n for(int i=0; i<leftMvt.length; i++)\n {\n leftMvt[i].mirrorHorizontally();\n }\n for(int i=0; i<upMvt.length; i++)\n {\n upMvt[i] = new GreenfootImage(\"sniperEnemyUp\"+i+\".png\");\n downMvt[i] = new GreenfootImage(\"sniperEnemyDown\"+i+\".png\");\n upMvt[i].scale(upMvt[i].getWidth()*170/100, upMvt[i].getHeight()*170/100);\n downMvt[i].scale(downMvt[i].getWidth()*170/100, downMvt[i].getHeight()*170/100);\n }\n }\n }",
"private void createImageMap(final ValueMap properties) {\n if (!(properties.containsKey(\"imageMap\"))) {\n return;\n }\n try {\n final String mapDefinition = properties.get(\"imageMap\", \"\");\n if (StringUtils.isNotEmpty(mapDefinition)) {\n this.imageMap = ImageMap.fromString(mapDefinition);\n this.imageMapId = \"map_\" + Math.round(Math.random() * 2147483647.0D) + \"_\" + System.currentTimeMillis();\n }\n\n } catch (final IllegalArgumentException iae) {\n this.imageMap = null;\n this.imageMapId = null;\n }\n }",
"public static String getIconUrl(long id, String icon) {\n String url = \"http://pic.qiushibaike.com/system/avtnew/%s/%s/thumb/%s\";\n return String.format(url, id / 10000, id, icon);\n }",
"private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }",
"Processor(int id, WorkStealingThreadPool pool) {\n this.id = id;\n this.pool = pool;\n this.tasks = new ArrayDeque<Task>();\n }",
"public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }",
"void setNilPoolId();",
"public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }",
"private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }",
"public Hotspot(float x, float y, float width, float height, int id) {\r\n\t\tthis(x, y, width, height);\r\n\t\t_id = id;\r\n\t}",
"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 }",
"@Override\n\tpublic ProductGalleries cariProductImage(String id) {\n\t\treturn this.productGaleryRepository.findById(Long.parseLong(id)).get();\n\t}",
"void nodeCreate( long id );",
"public Thumbnail() {\n this(100, 100);\n }",
"protected void createThumbnail(int requestCode) {\n\n Bitmap bitmap = null;\n Bitmap thumbnail;\n if(requestCode == CHOOSE_PHOTO_REQUEST || requestCode == TAKE_PHOTO_REQUEST) {\n\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), mMediaUri);\n } catch (Exception e) {\n //handle exception here\n Toast.makeText(SendMessage.this,R.string.error_loading_thumbnail, Toast.LENGTH_LONG).show();\n Log.d(\"Vic\",\"Error loading thumbnail\" + e.toString());\n }\n int initialWidth = bitmap.getWidth();\n int initalHeight = bitmap.getHeight();\n int newWidth = 0;\n int newHeight = 0;\n\n //izchisliavame novite proporcii\n float ratio =(float) initialWidth / initalHeight;\n newWidth = 800 ;\n newHeight = (int) (800 * ratio) ;\n\n thumbnail = ThumbnailUtils.extractThumbnail(bitmap, newWidth, newHeight);\n\n } else { //ako ne e photo triabva da e video\n\n thumbnail = ThumbnailUtils.extractThumbnail(ThumbnailUtils.createVideoThumbnail(\n mMediaUri.getPath(), MediaStore.Images.Thumbnails.MINI_KIND), 800, 500);\n }\n\n ImageView imageViewForThumbnailPreview = (ImageView) findViewById(R.id.thumbnailPreview);\n\n\n imageViewForThumbnailPreview.setImageBitmap(thumbnail);\n if(thumbnail ==null) {\n //ako thumbnail e null zadavame default kartinka\n imageViewForThumbnailPreview.setImageResource(R.drawable.ic_action_picture);\n }\n }",
"public abstract T create() throws PoolException;",
"@Override\n public void generateThumbnail(File input, File output, String mimeType) throws RuntimeException { \n try {\n BufferedImage img = ImageIO.read(input);\n /* create transformation matrix */\n from.setRect(0, 0, img.getWidth(), img.getHeight());\n /* only copy if smaller */\n if (from.getWidth() < DEFAULT_WIDTH && from.getHeight() < DEFAULT_HEIGHT) {\n ImageIO.write(img, ImageUtil.hasAlpha(img) ? \"png\" : \"jpg\", output);\n } else {\n AffineUtils.createScaleTransfrom(from, to, true, imageTransform);\n /* transform source bounds and save only the real image part, save space */\n size.setLocation(from.getMaxX(), from.getMaxY());\n imageTransform.transform(size, size);\n /* create image subbuffer */\n BufferedImage subBuffer = new BufferedImage(\n (int) size.getX(), (int) size.getY(), BufferedImage.TYPE_3BYTE_BGR);\n /* transform into thumbnail buffer */\n Graphics2D g2d = subBuffer.createGraphics();\n try {\n /* smooth interpolation, scale more then 50% = bad quality */\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,\n RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n g2d.drawImage(img, imageTransform, null);\n } finally {\n g2d.dispose();\n }\n /* save thumbnail, if we have an alpha channel then save as png */\n ImageIO.write(subBuffer, ImageUtil.hasAlpha(subBuffer) ? \"png\" : \"jpg\", output);\n }\n } catch (Exception e) { \n throw new RuntimeException(\"can not generate thumbnail!\", e);\n }\n }",
"private void drawThumbnail()\n\t{\n\t\t int wCurrentWidth = mBackImage.getWidth();\n\t\t int wCurrentHeight = mBackImage.getHeight();\n\t\t \n \n float scaleWidth = ((float) mThumbnailWidth) / wCurrentWidth;\n float scaleHeight = ((float) mThumbnailHeight) / wCurrentHeight;\n Matrix matrix = new Matrix();\n matrix.postScale(scaleWidth, scaleHeight);\n // create the new Bitmap object\n Bitmap resizedBitmap = Bitmap.createBitmap(mBackImage, 0, 0 , wCurrentWidth, wCurrentHeight, matrix, true);\n \n Bitmap output = Bitmap.createBitmap(resizedBitmap.getWidth()+(2*cmColorPadding+2*cmBorderPadding), resizedBitmap.getHeight()+(2*cmColorPadding+2*cmBorderPadding), Config.ARGB_8888);\n Canvas canvas = new Canvas(output);\n \n final int wRectBorderLeft = 0;\n final int wRectColorLeft = wRectBorderLeft + cmBorderPadding;\n final int wRectThumbnailLeft = wRectColorLeft + cmColorPadding;\n final int wRectBorderTop = 0;\n final int wRectColorTop = wRectBorderTop + cmBorderPadding;\n final int wRectThumbnailTop = wRectColorTop + cmColorPadding;\n\n final int wRectThumbnailRight = wRectThumbnailLeft + resizedBitmap.getWidth();\t \n final int wRectColorRight = wRectThumbnailRight + cmColorPadding;\n final int wRectBorderRight = wRectColorRight + cmBorderPadding;\n final int wRectThumbnailBottom = wRectThumbnailTop + resizedBitmap.getHeight();\t \n final int wRectColorBottom = wRectThumbnailBottom + cmColorPadding;\n final int wRectBorderBottom = wRectColorBottom + cmBorderPadding;\n \n \n final int wThumbColor = 0xff424242;\n final int wBorderColor = 0xffBBBBBB;\n final Paint paint = new Paint();\n final Rect wThumbRectangle = new Rect(wRectThumbnailLeft, wRectThumbnailTop, wRectThumbnailRight, wRectThumbnailBottom);\n final Rect wColorRectangle = new Rect(wRectColorLeft, wRectColorTop, wRectColorRight, wRectColorBottom);\n final Rect wBorderRectangle = new Rect(wRectBorderLeft, wRectBorderTop, wRectBorderRight, wRectBorderBottom);\n final RectF wThumbRoundRectangle = new RectF(wThumbRectangle);\n final RectF wColorRoundRectangle = new RectF(wColorRectangle);\n final RectF wBorderRoundRectangle = new RectF(wBorderRectangle);\n final float roundPx = 3.0f;\n\n paint.setAntiAlias(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(wBorderColor);\n canvas.drawRoundRect(wBorderRoundRectangle, roundPx, roundPx, paint);\n paint.setColor(getLevelColor());\n canvas.drawRoundRect(wColorRoundRectangle, roundPx, roundPx, paint);\n paint.setColor(wThumbColor);\n canvas.drawRoundRect(wThumbRoundRectangle, roundPx, roundPx, paint);\n\n paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));\n canvas.drawBitmap(resizedBitmap, null, wThumbRectangle, paint);\n \n BitmapDrawable bmd = new BitmapDrawable(output);\n \n\t\t mCurrentImage.setImageDrawable(bmd);\n\t}",
"protected Map<String, URL> createMap(Collection<? extends IconRecord> records)\n {\n Map<String, URL> map = New.map(records.size());\n for (IconRecord record : records)\n {\n map.put(getPublicUrl(record.imageURLProperty().get()), record.imageURLProperty().get());\n }\n return map;\n }",
"private void initImageBitmaps(){\n imageUrls.add(\"https://i.redd.it/j6myfqglup501.jpg\");\n names.add(\"Rocky Mountains\");\n\n imageUrls.add(\"https://i.redd.it/0u1u2m73uoz11.jpg\");\n names.add(\"Mt. Baker, WA\");\n\n imageUrls.add(\"https://i.redd.it/xgd2lnk56mz11.jpg\");\n names.add(\"Falls Creek Falls, TN\");\n\n imageUrls.add(\"https://i.redd.it/o6jc7peiimz11.jpg\");\n names.add(\"Skogafoss, Iceland\");\n\n imageUrls.add(\"https://i.redd.it/zxd44dfbyiz11.jpg\");\n names.add(\"Black Forest, Germany\");\n\n imageUrls.add(\"https://www.mountainphotography.com/images/xl/20090803-Hermannsdalstinden-Sunset.jpg\");\n names.add(\"Lofoten Islands, Norway\");\n\n imageUrls.add(\"https://i.redd.it/6vdpsld78cz11.jpg\");\n names.add(\"Isle of Skye\");\n\n imageUrls.add(\"https://i.redd.it/i4xb66v5eyy11.jpg\");\n names.add(\"Lago di Carezza, Italy\");\n\n imageUrls.add(\"https://i.redd.it/ttl7f4pwhhy11.jpg\");\n names.add(\"Arches National Park, UT\");\n\n imageUrls.add(\"https://i.redd.it/mcsxhejtkqy11.jpg\");\n names.add(\"Northern Lights\");\n\n imageUrls.add(\"https://i.redd.it/0rhq46ve83z11.jpg\");\n names.add(\"Swiss Alps\");\n\n imageUrls.add(\"https://i.redd.it/0dfwwitwjez11.jpg\");\n names.add(\"Hunan, China\");\n\n //Initialize our recyclerView now that we have our images/names\n initRecyclerView();\n }",
"public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }",
"private Image createPlaceHolderArt(Display display, int width,\r\n int height, Color color) {\r\n Image img = new Image(display, width, height);\r\n GC gc = new GC(img);\r\n gc.setForeground(color);\r\n gc.drawLine(0, 0, width, height);\r\n gc.drawLine(0, height - 1, width, -1);\r\n gc.dispose();\r\n return img;\r\n }",
"public List<MapImage> convertMetdataToMapImages(PreparedQuery trackedMetadata) {\n List<MapImage> formLocationOptions = new ArrayList<>();\n for (Entity entity : trackedMetadata.asIterable()) {\n String location = (String) entity.getProperty(\"cityName\");\n double latitude = (double) entity.getProperty(\"latitude\");\n double longitude = (double) entity.getProperty(\"longitude\");\n\n formLocationOptions.add(new MapImage(latitude, longitude, location));\n }\n return formLocationOptions;\n }",
"private ProxyCreationResult createRepo( String trackingId, URL url, String name )\n throws IndyDataException\n {\n UrlInfo info = new UrlInfo( url.toExternalForm() );\n\n UserPass up = UserPass.parse( ApplicationHeader.authorization, httpRequest, url.getAuthority() );\n String baseUrl = getBaseUrl( url );\n\n logger.debug( \">>>> Create repo: trackingId=\" + trackingId + \", name=\" + name );\n ProxyCreationResult result = repoCreator.create( trackingId, name, baseUrl, info, up,\n LoggerFactory.getLogger( repoCreator.getClass() ) );\n ChangeSummary changeSummary =\n new ChangeSummary( ChangeSummary.SYSTEM_USER, \"Creating HTTProx proxy for: \" + info.getUrl() );\n\n RemoteRepository remote = result.getRemote();\n if ( remote != null )\n {\n storeManager.storeArtifactStore( remote, changeSummary, false, true, new EventMetadata() );\n }\n\n HostedRepository hosted = result.getHosted();\n if ( hosted != null )\n {\n storeManager.storeArtifactStore( hosted, changeSummary, false, true, new EventMetadata() );\n }\n\n Group group = result.getGroup();\n if ( group != null )\n {\n storeManager.storeArtifactStore( group, changeSummary, false, true, new EventMetadata() );\n }\n\n return result;\n }",
"private void addThreadPools(Supplier<ThreadPoolExecutor> batchPool,\n Supplier<ThreadPoolExecutor> metaPool) {\n batchPools.add(batchPool);\n metaPools.add(metaPool);\n }",
"public void initImage() {\n if (isInited())\n return;\n //获取大图的游标\n Cursor cursor = context.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, // 大图URI\n STORE_IMAGES, // 字段\n null, // No where clause\n null, // No where clause\n MediaStore.Images.Media.DATE_TAKEN + \" DESC\"); //根据时间升序\n Log.e(\"eeeeeeeeeeeeeeeeeee\", \"------cursor:\" + cursor);\n if (cursor == null)\n return;\n while (cursor.moveToNext()) {\n int id = cursor.getInt(0);//大图ID\n String path = cursor.getString(1);//大图路径\n LogTool.setLog(\"大图路径1\", path);\n File file = new File(path);\n //判断大图是否存在\n if (file.exists()) {\n //小图URI\n String thumbUri = getThumbnail(id, path);\n //获取大图URI\n String uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon().\n appendPath(Integer.toString(id)).build().toString();\n LogTool.setLog(\"大图路径2\", uri);\n if (Tools.isEmpty(uri))\n continue;\n if (Tools.isEmpty(thumbUri))\n thumbUri = uri;\n //获取目录名\n String folder = file.getParentFile().getName();\n String appFile = context.getResources().getString(R.string.app_name);\n if (!folder.equals(appFile)) {\n LocalFile localFile = new LocalFile();\n localFile.setPath(path);\n localFile.setOriginalUri(uri);\n localFile.setThumbnailUri(thumbUri);\n int degree = cursor.getInt(2);\n if (degree != 0) {\n degree = degree + 180;\n }\n localFile.setOrientation(360 - degree);\n\n\n paths.add(localFile);\n\n\n //判断文件夹是否已经存在\n if (folders.containsKey(folder)) {\n folders.get(folder).add(localFile);\n } else {\n List<LocalFile> files = new ArrayList<>();\n files.add(localFile);\n folders.put(folder, files);\n }\n }\n }\n }\n folders.put(\"所有图片\", paths);\n cursor.close();\n isRunning = false;\n }",
"private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }",
"public static void main(String[] args) throws IOException\n {\n String dataDir = RunExamples.getDataDir_Shapes();\n\n // Instantiate a Presentation class that represents the presentation file\n Presentation presentation = new Presentation(dataDir + \"HelloWorld.pptx\");\n try\n {\n // Create a full scale image\n BufferedImage bitmap = presentation.getSlides().get_Item(0).getShapes().get_Item(0).getThumbnail();\n // Save the image to disk in PNG format\n ImageIO.write(bitmap, \".png\", new File(dataDir + \"Shape_thumbnail_out.png\"));\n }\n finally\n {\n if (presentation != null) presentation.dispose();\n }\n //ExEnd:CreateShapeThumbnail\n }",
"@Override\n\tprotected BufferedImage getButtonImage(ArrayList<Double> phenotype, int width, int height,\n\t\t\tdouble[] inputMultipliers) {\n\t\tdouble[] doubleArray = ArrayUtil.doubleArrayFromList(phenotype);\n\t\tList<List<Integer>> level = levelListRepresentation(doubleArray);\n\t\t//sets the height and width for the rendered level to be placed on the button \n\t\tint width1 = LodeRunnerRenderUtil.RENDERED_IMAGE_WIDTH;\n\t\tint height1 = LodeRunnerRenderUtil.RENDERED_IMAGE_HEIGHT;\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\t//if we are using the mapping with 7 tiles, other wise use 6 tiles \n\t\t\t// ACTUALLY: We can have extra unused tiles in the image array. Easier to have one method that keeps them all around\n\t\t\t//\t\t\tif(Parameters.parameters.booleanParameter(\"lodeRunnerDistinguishesSolidAndDiggableGround\")){\n\t\t\tList<Point> emptySpaces = LodeRunnerGANUtil.fillEmptyList(level);\n\t\t\tRandom rand = new Random(Double.doubleToLongBits(doubleArray[0]));\n\t\t\tLodeRunnerGANUtil.setSpawn(level, emptySpaces, rand);\n\t\t\tif(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerSolutionPaths\")) {\n\t\t\t\tList<List<Integer>> originalLevel = ListUtil.deepCopyListOfLists(level);\n\t\t\t\tLodeRunnerState start = new LodeRunnerState(level);\n\t\t\t\t//\t\t\t\tSystem.out.println(level);\n\t\t\t\tSearch<LodeRunnerAction,LodeRunnerState> search = new AStarSearch<>(LodeRunnerState.manhattanToFarthestGold);\n\t\t\t\tHashSet<LodeRunnerState> mostRecentVisited = null;\n\t\t\t\tArrayList<LodeRunnerAction> actionSequence = null;\n\t\t\t\ttry {\n\t\t\t\t\t//tries to find a solution path to solve the level, tries as many time as specified by the last int parameter \n\t\t\t\t\t//represented by red x's in the visualization \n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(level);\n\t\t\t\t\t\tactionSequence = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).search(start, true, Parameters.parameters.integerParameter(\"aStarSearchBudget\"));\n\t\t\t\t\t} else if(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_TSP){\n\t\t\t\t\t\tPair<ArrayList<LodeRunnerAction>, HashSet<LodeRunnerState>> tspInfo = LodeRunnerTSPUtil.getFullActionSequenceAndVisitedStatesTSPGreedySolution(originalLevel);\n\t\t\t\t\t\tactionSequence = tspInfo.t1;\n\t\t\t\t\t\tmostRecentVisited = tspInfo.t2;\n\t\t\t\t\t\t//System.out.println(\"actionSequence: \"+ actionSequence);\n\t\t\t\t\t\t//System.out.println(\"mostRecentVisited: \"+mostRecentVisited);\n\t\t\t\t\t} \n\t\t\t\t\telse throw new IllegalArgumentException(\"Parameter is not either 1 or 0\");\n\t\t\t\t} catch(IllegalStateException e) {\n\t\t\t\t\tSystem.out.println(\"search exceeded computation budget\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch(OutOfMemoryError e) {\n\t\t\t\t\tSystem.out.println(\"search ran out of memory\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\t// Even if search fails, still try to get visited states.\n\t\t\t\t\t// Need this here because A* fails with Exception\n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//get all of the visited states, all of the x's are in this set but the white ones are not part of solution path \n\t\t\t\t\t\tmostRecentVisited = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).getVisited();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\t//visualizes the points visited with red and whit x's\n\t\t\t\t\timage = LodeRunnerState.vizualizePath(level,mostRecentVisited,actionSequence,start);\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerIceCreamYouVisualization\")) {\n\t\t\t\tBufferedImage[] iceCreamYouImages = LodeRunnerRenderUtil.loadIceCreamYouTiles(LodeRunnerRenderUtil.ICE_CREAM_YOU_TILE_PATH);\n\t\t\t\timage = LodeRunnerRenderUtil.createIceCreamYouImage(level, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_WIDTH, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_HEIGHT, iceCreamYouImages);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tBufferedImage[] images = LodeRunnerRenderUtil.loadImagesNoSpawnTwoGround(LodeRunnerRenderUtil.LODE_RUNNER_TILE_PATH); //all tiles \n\t\t\t\timage = LodeRunnerRenderUtil.createBufferedImage(level,width1,height1, images);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t}\n\t\treturn image;\n\t}"
] | [
"0.58369076",
"0.57349706",
"0.547172",
"0.5465385",
"0.53774965",
"0.5292429",
"0.5287357",
"0.5280541",
"0.52314556",
"0.5155057",
"0.5147453",
"0.5133492",
"0.50822103",
"0.5055234",
"0.5011644",
"0.49872026",
"0.49617362",
"0.49341312",
"0.49315363",
"0.49121472",
"0.49031606",
"0.48876035",
"0.48837855",
"0.4862177",
"0.4854266",
"0.48460403",
"0.4835807",
"0.4809786",
"0.47994608",
"0.47794273",
"0.47504207",
"0.47350824",
"0.47231618",
"0.47224292",
"0.47174394",
"0.47089863",
"0.4685856",
"0.4681792",
"0.4676969",
"0.46594888",
"0.46496683",
"0.46483234",
"0.46474794",
"0.46404177",
"0.46197438",
"0.46133727",
"0.46128902",
"0.46111852",
"0.46060908",
"0.4604144",
"0.45900592",
"0.45897093",
"0.4589398",
"0.45846218",
"0.45734707",
"0.45634237",
"0.45548895",
"0.45467344",
"0.4546273",
"0.45251408",
"0.45184284",
"0.45152786",
"0.45148173",
"0.450905",
"0.45041156",
"0.45029372",
"0.44943026",
"0.44929552",
"0.44919154",
"0.44904232",
"0.44840565",
"0.44813967",
"0.44791123",
"0.4473791",
"0.44652742",
"0.44590807",
"0.44585994",
"0.44465664",
"0.44239652",
"0.44223925",
"0.44191766",
"0.44158196",
"0.44145185",
"0.4395476",
"0.43928128",
"0.43925261",
"0.4388732",
"0.43885204",
"0.43858197",
"0.43847987",
"0.43779597",
"0.43739042",
"0.43691197",
"0.43653503",
"0.4357473",
"0.4353667",
"0.4349811",
"0.4347627",
"0.43389115",
"0.43363976"
] | 0.6187498 | 0 |
create coupons based on ID,generate thumbnail for each coupons using ThumbNailFactory for convenience, coupons use poolLocation class aslo | private poolLocation getCouponLocation(int ID) {
poolLocation coupon = null;
if (ID == 0) {
coupon = new poolLocation(coupon1ID, Coupon1Description, false,
ThumbNailFactory.create().getThumbNail(coupon1ID));
} else if (ID == 1) {
coupon = new poolLocation(coupon2ID, Coupon2Description, false,
ThumbNailFactory.create().getThumbNail(coupon2ID));
} else if (ID == 2) {
coupon = new poolLocation(coupon3ID, Coupon3Description, false,
ThumbNailFactory.create().getThumbNail(coupon3ID));
}
return coupon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void GenerateImageArea(int id)\n\t{\n\t\tareaHeight += 190;\n\t\tHome.createArticle.setPreferredSize(new Dimension(800, areaHeight));\n\t\t\n\t\ti++;\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = i;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.anchor = GridBagConstraints.LINE_START;\n\t\tgbc.insets = new Insets(10, 0, 0, 0);\n\t\tHome.createArticle.add(imageButtons.get(id), gbc);\n\t\t\n\t\tgbc.gridx = 1;\n\t\tgbc.gridwidth = 3;\n\t\tgbc.weighty = 10;\n\t\tHome.createArticle.add(imageAreas.get(id), gbc);\n\t\t\n\t}",
"public void addHQCopier(String id, double sheetCost, double monochromeCost,\n double colourCost, double hQPremium, double costSetup, int copySpeed);",
"protected abstract void createPool();",
"private static Pool setUpPool(String name, double volume, double temp,\n double pH, double nutrientCoefficient, GuppySet startingGuppies) {\n Pool pool = new Pool(name, volume, temp, pH, nutrientCoefficient);\n\n pool.addFish(startingGuppies.generateGuppies());\n\n return pool;\n }",
"public void generateImage(int imageId, int resolution){\n String openUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/\"+imageId+ \".jpg\";\n String saveUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/tmp\";\n String saveName=String.format(\"%d_%d\", imageId, resolution);\n ImageDeal imageDeal = new ImageDeal(openUrl, saveUrl, saveName, \"jpg\");\n try{\n imageDeal.mosaic((int)Math.floor(264/resolution));\n //Thread.currentThread().sleep(1000);\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.printf(\"Image: %d Resolution: %d was generated.\\n\", imageId, resolution);\n }",
"public void addPlainCopier(String id, double pageCost, double costSetup, \n int copySpeed);",
"public void addColourCopier(String id, double pageCost, int copySpeed, \n int maxJobSize);",
"private void createImageDescriptor(String id) {\n\t\timageDescriptors.put(id, imageDescriptorFromPlugin(PLUGIN_ID, \"icons/\" + id)); //$NON-NLS-1$\n\t}",
"@Test\n public void testLookupPoolsProvidingProduct() {\n Product parentProduct = TestUtil.createProduct(\"1\", \"product-1\");\n Product childProduct = TestUtil.createProduct(\"2\", \"product-2\");\n productCurator.create(childProduct);\n productCurator.create(parentProduct);\n \n Set<String> productIds = new HashSet<String>();\n productIds.add(childProduct.getId());\n \n Pool pool = TestUtil.createPool(owner, parentProduct.getId(),\n productIds, 5);\n poolCurator.create(pool);\n \n \n List<Pool> results = poolCurator.listAvailableEntitlementPools(null, owner, \n childProduct.getId(), false);\n assertEquals(1, results.size());\n assertEquals(pool.getId(), results.get(0).getId());\n }",
"public List<CatalogueCompatableResource> toResources(List<Catalogue> catalogueList,Long merchantNo,String cusLoyaltyId){\n List<CatalogueCompatableResource> catalogueCompatableResourcesList = new ArrayList<CatalogueCompatableResource>();\n\n\n\n\n\n for(Catalogue catalogue:catalogueList){\n\n Integer customerHasPoint =0;\n\n CatalogueCompatableResource catalogueCompatableResource =new CatalogueCompatableResource();\n\n catalogueCompatableResource.setCat_prd_no(catalogue.getCatProductNo()==null?0L:catalogue.getCatProductNo());\n\n String catPrdCategoryText =\"\";\n\n //for setting product category test\n if(catalogue.getCatCategory() !=null){\n\n int catCategory = catalogue.getCatCategory();\n\n //getting coded value for catcategory\n CodedValue codedValue = codedValueService.findByCdvIndexAndCdvCodeValue(CodedValueIndex.CATALOGUE_PRODUCT_CATEGORY,catCategory);\n\n if(codedValue !=null){\n\n catPrdCategoryText =codedValue.getCdvCodeLabel();\n }\n\n }\n\n\n\n catalogueCompatableResource.setCat_prd_category_text(catPrdCategoryText);\n\n catalogueCompatableResource.setCat_prd_category(catalogue.getCatCategory()==null?0:catalogue.getCatCategory());\n\n catalogueCompatableResource.setCat_prd_code(catalogue.getCatProductCode()==null?\"\":catalogue.getCatProductCode());\n\n catalogueCompatableResource.setCat_prd_desc(catalogue.getCatDescription() == null ? \"\" : catalogue.getCatDescription());\n\n catalogueCompatableResource.setCat_prd_long_desc(catalogue.getCatLongDescription()==null?\"\":catalogue.getCatLongDescription());\n\n\n\n // Check if the image exists\n Image image = catalogue.getImage();\n\n //get the imageUrl\n String imageUrl = environment.getProperty(\"IMAGE_PATH_URL\");\n\n\n //If the image is set, then we need to set the image path\n if ( image != null ) {\n\n // Get the image path\n String imagePath = imageService.getPathForImage(image, ImagePathType.MOBILE);\n\n // Set the imagePath\n catalogueCompatableResource.setCat_image(imageUrl + imagePath);\n\n\n }\n\n catalogueCompatableResource.setCat_image_id(catalogue.getCatProductImage()==null?0L:catalogue.getCatProductImage());\n\n catalogueCompatableResource.setCat_rwd_points(catalogue.getCatNumPoints()==null?0.0:catalogue.getCatNumPoints());\n\n catalogueCompatableResource.setCat_cash(catalogue.getCatPartialCash()==null?0.0:catalogue.getCatPartialCash());\n\n //find reward balance\n CustomerRewardBalance customerRewardBalance =customerRewardBalanceService.findByCrbLoyaltyIdAndCrbMerchantNoAndCrbRewardCurrency(cusLoyaltyId,merchantNo,catalogue.getCatRewardCurrencyId());\n\n if(customerRewardBalance !=null){\n\n Double rewardBalance = customerRewardBalance.getCrbRewardBalance();\n\n if(rewardBalance !=null){\n\n\n //check customer has balance if its true set 1 otherwise set o\n if(rewardBalance>=catalogue.getCatNumPoints()){\n\n customerHasPoint =1;\n }\n }\n\n catalogueCompatableResource.setCat_rwd_balance(rewardBalance==null?0.0:rewardBalance);\n\n\n\n\n }\n\n catalogueCompatableResource.setCat_rwd_currency(catalogue.getCatRewardCurrencyId()==null?0:catalogue.getCatRewardCurrencyId());\n\n //for setting merchant name\n Merchant merchant = merchantService.findByMerMerchantNo(merchantNo);\n\n if(merchant !=null){\n\n catalogueCompatableResource.setCat_merchant_name(merchant.getMerMerchantName()==null?\"\":merchant.getMerMerchantName());\n }\n\n\n catalogueCompatableResource.setCat_has_balance(customerHasPoint);\n\n catalogueCompatableResourcesList.add(catalogueCompatableResource);\n\n\n\n\n }\n\n\n return catalogueCompatableResourcesList;\n\n }",
"public Coupon(int id,String bid, String img, String det , String cat , double price , String exp) {\n\t\t\n\t\tsuper();\n\t\tsetId(id);\n\t\tsetBusiness_id(bid);\n\t\tsetImage(img);\n\t\tsetDetails(det);\n\t\tsetCategory(cat);\n\t\tsetPrice(price);\n\t\tsetExpiredate(exp);\n\t\tsetAvailable(true);\n\t}",
"Processor(int id, WorkStealingThreadPool pool) {\n this.id = id;\n this.pool = pool;\n this.tasks = new ArrayDeque<Task>();\n }",
"public void create() {\r\n for(int i=0; i< 50; i++){\r\n long id = (new Date()).getTime();\r\n Benefit newBeneficio = new Benefit();\r\n newBeneficio.setId(\"\"+id); \r\n newBeneficio.setCategory(\"almacenes \"+id);\r\n newBeneficio.setDescription(\"description \"+id);\r\n newBeneficio.setDiscount(i);\r\n newBeneficio.setStart_date(\"start_date \"+id);\r\n newBeneficio.setEnd_date(\"end_date \"+id);\r\n newBeneficio.setReview(\"review \"+id);\r\n newBeneficio.setTitle(\"title \"+id);\r\n newBeneficio.setLogo(\"logo \"+id);\r\n newBeneficio.setTwitter(\"twitter \"+id);\r\n newBeneficio.setFacebook(\"facebook \"+id);\r\n newBeneficio.setUrl(\"url \"+ id);\r\n \r\n Address address = new Address();\r\n address.setCity(\"Santiago \"+ id);\r\n address.setCountry(\"Santiago \"+ id);\r\n address.setLine_1(\"Linea 1 \"+ id);\r\n address.setLine_2(\"Linea 2 \"+ id);\r\n address.setLine_3(\"Linea 3 \"+ id);\r\n address.setPostcode(\"\" + id);\r\n address.setState(\"Region Metropolitana \"+ id);\r\n \r\n Location location = new Location();\r\n double[] cordenadas = {-77.99283,-33.9980};\r\n location.setCoordinates(cordenadas);\r\n location.setDistance(5.445);\r\n location.setType(\"Point\");\r\n \r\n Lobby lobby = new Lobby();\r\n lobby.setHours(\"HORA \"+ + id);\r\n \r\n newBeneficio = service.persist(newBeneficio);\r\n LOGGER.info(newBeneficio.toString());\r\n }\r\n }",
"private poolLocation getPoolLocation(int ID) {\n\t\tpoolLocation pool = null;\n\t\tif (ID == 0) {\n\t\t\tpool = new poolLocation(pool1ID, pool1Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(pool1ID));\n\t\t} else if (ID == 1) {\n\t\t\tpool = new poolLocation(pool2ID, pool2Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(pool2ID));\n\t\t} else if (ID == 2) {\n\t\t\tpool = new poolLocation(pool3ID, pool3Descrption, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(pool3ID));\n\t\t}\n\t\treturn pool;\n\t}",
"@Override\n\t/**\n\t * Returns all Coupons with price less than value method received as an\n\t * array list sorted descended\n\t */\n\tpublic Collection<Coupon> getCouponsByPrice(int price, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\n\t\t\tString getCouponsByPriceSQL = \"select * from coupon where price < ? and id in(select couponid from compcoupon where companyid = ?) order by price desc\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByPriceSQL);\n\t\t\t// Set price variable that method received into prepared statement\n\t\t\tpstmt.setInt(1, price);\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"private void addToBag1(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag1.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}",
"@Override\n\t/** Accepts Coupon ID and returns related Coupon object */\n\tpublic Coupon getCoupon(int id) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Creating Coupon object to fill it later with data from SQL query\n\t\t// result and for method to return it afterwards\n\t\tCoupon coupon = new Coupon();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupon via prepared statement\n\t\t\tString getCouponSQL = \"select * from coupon where id = ?\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponSQL);\n\t\t\t// Putting method accepted ID into SQL string\n\t\t\tpstmt.setInt(1, id);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// If query result has data (if Coupon has been found) do\n\t\t\tif (resCoup.next()) {\n\t\t\t\t// Set Coupon object ID to ID variable that method received\n\t\t\t\tcoupon.setId(id);\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// // Write retrieval success confirmation to the console\n\t\t\t\t// System.out.println(\"Coupon has been found successfully:\" +\n\t\t\t\t// coupon);\n\t\t\t} else {\n\t\t\t\t// If query result is empty (Coupon hasn't been found) throw\n\t\t\t\t// exception\n\t\t\t\tSystem.out.println(\"Coupon retrieve has been failed - Coupon ID not found\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return Coupon\n\t\treturn coupon;\n\t}",
"@Override\n\t/**\n\t * Accepts predefined Coupon object and writes it to Coupon table in the\n\t * database\n\t */\n\tpublic int createCoupon(Coupon coupon) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Defining Coupon ID variable to return\n\t\tint couponID = -1;\n\n\t\ttry {\n\t\t\t// Checking if Coupon title already exists in DB\n\t\t\t// PreparedStatement pstmt1 = null;\n\t\t\t// String nameExist = \"SELECT * FROM Coupon where Title = ?\";\n\t\t\t// pstmt1 = con.prepareStatement(nameExist);\n\t\t\t// pstmt1.setString(1, coupon.getTitle());\n\t\t\t// ResultSet result = pstmt1.executeQuery();\n\t\t\t// if (result.next()) {\n\t\t\t// System.out.println(\"Coupon title already exists in Database,\n\t\t\t// please choose another one.\");\n\t\t\t// } else {\n\n\t\t\t// Defining SQL string to insert Coupon via prepared statement\n\t\t\tString createCouponSQL = \"insert into coupon (title, start_date, end_date, expired, type, message, price, image) values (?,?,?,?,?,?,?,?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(createCouponSQL);\n\t\t\t// Fetching variables into SQL string via Coupon bean\n\t\t\tpstmt.setString(1, coupon.getTitle());\n\t\t\tpstmt.setDate(2, getSqlDate(coupon.getStart_date()));\n\t\t\tpstmt.setDate(3, getSqlDate(coupon.getEnd_date()));\n\t\t\tpstmt.setString(4, coupon.getExpired());\n\t\t\tpstmt.setString(5, coupon.getType());\n\t\t\tpstmt.setString(6, coupon.getMessage());\n\t\t\tpstmt.setInt(7, coupon.getPrice());\n\t\t\tpstmt.setString(8, coupon.getImage());\n\t\t\t// Executing prepared statement\n\t\t\tpstmt.executeUpdate();\n\t\t\tString fetchingID = \"select id from coupon where title = ? \";\n\t\t\tPreparedStatement pstmtID = con.prepareStatement(fetchingID);\n\t\t\tpstmtID.setString(1, coupon.getTitle());\n\t\t\tResultSet resCoupon = pstmtID.executeQuery();\n\t\t\tresCoupon.next();\n\t\t\t// Fetching newly created Coupon ID for a return\n\n\t\t\tcouponID = resCoupon.getInt(1);\n\t\t\tcoupon.setId(couponID);\n\t\t\t// Writing success confirmation to the console\n\t\t\tSystem.out.println(\"Coupon has been added successfully:\" + coupon);\n\n\t\t\t// }\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon writing into database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon creation has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t\t// Return Coupon ID for future use\n\t\treturn couponID;\n\t}",
"@Override\n\tpublic ProductGalleries cariProductImage(String id) {\n\t\treturn this.productGaleryRepository.findById(Long.parseLong(id)).get();\n\t}",
"public void createPile(int id, String name) {\n\t\tif (mTable.get(id) != null) {\n\t\t\treturn; // There was already a pile there\n\t\t}\n\t\t// Check that the name is unique and that it\n\t\tif (pileNames.contains(name)) {\n\t\t\treturn;\n\t\t} else if (name.equals(\"Pile \" + pileNo)) {\n \t\t\tpileNo++;\n \t\t\tgs.setDefaultPileNo(pileNo);\n \t\t}\n\t\t// Make a new Pile object and set() it in the list\n \t\tmTable.set(id, new Pile(name));\n \t\tpileNames.add(name);\n \t\tsendUpdatedState();\n \t}",
"public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }",
"public iAddCancion(int _id, String _miImagen) {\n this.id = _id;\n this.miImagen = _miImagen;\n initComponents();\n dameTodoAlbum(id);\n Image img = new ImageIcon(\"src/img/\"+miImagen).getImage();\n ImageIcon img2 = new ImageIcon(img.getScaledInstance(jLabelMiImagen.getWidth(), jLabelMiImagen.getHeight(), Image.SCALE_SMOOTH));\n\n jLabelMiImagen.setIcon(img2);\n }",
"public void setPoolId(Long poolId);",
"private Pool setUpSkookumchuk() {\n final int skookumchukVolume = 1000;\n final int skookumchukTemperature = 42;\n final double skookumchukPH = 7.9;\n final double skookumchukNutrientCoefficient = 0.9;\n final int skookumchukNumberOfGuppies = 100;\n final int skookumchukMinAge = 10;\n final int skookumchukMaxAge = 25;\n final double skookumchukMinHealthCoefficient = 0.5;\n final double skookumchukMaxHealthCoefficient = 0.8;\n\n GuppySet skookumchukGuppies = new GuppySet(skookumchukNumberOfGuppies,\n skookumchukMinAge, skookumchukMaxAge,\n skookumchukMinHealthCoefficient,\n skookumchukMaxHealthCoefficient);\n\n Pool skookumchuk = setUpPool(\"Skookumchuk\", skookumchukVolume,\n skookumchukTemperature, skookumchukPH,\n skookumchukNutrientCoefficient, skookumchukGuppies);\n\n return skookumchuk;\n }",
"private void crearGen(int id){\n Random random = new Random();\n int longitud = random.nextInt(6) + 5;\n\n random = null;\n\n Gen gen = new Gen(id, longitud);\n agregarGen(gen);\n }",
"public ArrayList<Coupon> getCoupons(ArrayList<Long> id) {\n\t\treturn couponRepository.getCoupons(id);\n\t}",
"public void updatePoolwithBoughtCoupon(String ID, boolean isgteCoupon) {\n\t\thelper.updatePoolLocationTable(PooltableName, ID,\n\t\t\t\tconvertToString(isgteCoupon));\n\t}",
"private void generateThumbnail(String identifier)\r\n {\r\n if (isStringNull(identifier)) { throw new IllegalArgumentException(String.format(\r\n Messagesl18n.getString(\"ErrorCodeRegistry.GENERAL_INVALID_ARG_NULL\"), \"Nodeidentifier\")); }\r\n\r\n try\r\n {\r\n UrlBuilder url = new UrlBuilder(OnPremiseUrlRegistry.getThumbnailUrl(session, identifier));\r\n url.addParameter(OnPremiseConstant.PARAM_AS, true);\r\n // Log.d(\"URL\", url.toString());\r\n\r\n // prepare json data\r\n JSONObject jo = new JSONObject();\r\n jo.put(OnPremiseConstant.THUMBNAILNAME_VALUE, RENDITION_THUMBNAIL);\r\n\r\n final JsonDataWriter formData = new JsonDataWriter(jo);\r\n\r\n // send and parse\r\n post(url, formData.getContentType(), new Output()\r\n {\r\n public void write(OutputStream out) throws IOException\r\n {\r\n formData.write(out);\r\n }\r\n }, ErrorCodeRegistry.DOCFOLDER_GENERIC);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(TAG, \"Generate Thumbnail : KO\");\r\n }\r\n }",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"HeroPool createHeroPool();",
"private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }",
"private void fillPaintingCarousel() {\n ImageButton buttonItem;\n\n for (int i = 0; i < Maria_sick.description.length; i++) {\n //STORE THE INDIVIDUAL PAINTINGS AS BUTTONS\n buttonItem = new ImageButton(this);\n\n\n Maria_story painting = new Maria_story(Maria_sick.description[i], Maria_sick.id[i]);\n\n //USE THE CONTENT DESCRIPTION PROPERTY TO STORE\n //PAINTING DATA\n\n buttonItem.setContentDescription(painting.getDescription());\n\n //LOAD THE PAINTING USING ITS UNIQUE ID\n\n buttonItem.setImageDrawable(getResources().getDrawable(\n painting.getId()));\n\n //SET AN ONCLICK LISTENER FOR THE IMAGE BUTTON\n buttonItem.setOnClickListener(displayPaintingInformation);\n\n //ADD THE IMAGE BUTTON TO THE SCROLLABLE LINEAR LIST\n mLinearList.addView(buttonItem);\n }\n }",
"@Override\n\tpublic void updateCoupon(long id, Coupon coupon)\n\t\t\tthrows ClassNotFoundException, SQLException, IOException, ParseException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_COUPON_BY_ID);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tif (id == resultSet.getInt(1)) {\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TITLE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_START_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getStartDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_END_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getEndDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_AMOUNT_BY_ID);\n\t\t\t\tstatement.setInt(1, coupon.getAmount());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TYPE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getType().toString());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_MESSAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getMessage());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_PRICE_BY_ID);\n\t\t\t\tstatement.setDouble(1, coupon.getPrice());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_IMAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getImage());\n\t\t\t\tstatement.setLong(2, id);\n\n\t\t\t\tSystem.out.println(\"Coupon updated successfull\");\n\t\t\t}\n\n\t\t}\n\t\tConnectionPool.getInstance().returnConnection(connection);\n\t}",
"public void generateCpnIDs() {\n\t\t// for all places, generate a cpnID\n\t\tIterator places = this.getPlaces().iterator();\n\t\twhile (places.hasNext()) {\n\t\t\tColoredPlace place = (ColoredPlace) places.next();\n\t\t\tplace.setCpnID(ManagerID.getNewID());\n\t\t}\n\t\t// for all transitions, generate a cpnID\n\t\tIterator transitions = this.getTransitions().iterator();\n\t\twhile (transitions.hasNext()) {\n\t\t\tColoredTransition transition = (ColoredTransition) transitions.next();\n\t\t\ttransition.setCpnID(ManagerID.getNewID());\n\t\t}\n\t}",
"@Override\n\t/** Returns all Coupons of selected type as an array list */\n\tpublic Collection<Coupon> getCouponsByType(String coupType, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByTypeSQL = \"select * from coupon where type = ? and id in(select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByTypeSQL);\n\t\t\t// Set Coupon object type to coupType variable that method received\n\t\t\tpstmt.setString(1, coupType);\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"public Pool(Creator<T> creator) {\n\t\tcount = spares = 0;\n\t\tthis.creator = creator;\n\t\tlist = new LinkedList<Pooled<T>>();\n\t}",
"Receta getByIdWithImages(long id);",
"public interface Factory {\n Cup productCup();\n Cover productCover();\n}",
"private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}",
"public void createPhilosophers() {\n\t\tphil1 = new Philosopher(1,stick1,stick2);\n\t\tphil2 = new Philosopher(2,stick2,stick3);\n\t\tphil3 = new Philosopher(3,stick3,stick4);\n\t\tphil4 = new Philosopher(4,stick4,stick5);\n\t\tphil5 = new Philosopher(5,stick5,stick1);\n\t}",
"@Override\n\tpublic void addProduitWithImage(Furniture p, UploadedFiles files) {\n\t\t\n\t}",
"@Override\n\t/** Returns all Coupons of selected Company as an array list */\n\tpublic Collection<Coupon> getCouponsByCompany(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByCompanySQL = \"select * from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByCompanySQL);\n\t\t\t// Set Company ID variable that method received into prepared\n\t\t\t// statement\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"private void addCrusherSoapstoneRecipes(Consumer<IFinishedRecipe> consumer, String basePath) {\n crushing(consumer, BYGBlocks.POLISHED_SOAPSTONE, BYGBlocks.SOAPSTONE, basePath + \"from_polished\");\n crushing(consumer, BYGBlocks.POLISHED_SOAPSTONE_SLAB, BYGBlocks.SOAPSTONE_SLAB, basePath + \"polished_slabs_to_slabs\");\n crushing(consumer, BYGBlocks.POLISHED_SOAPSTONE_STAIRS, BYGBlocks.SOAPSTONE_STAIRS, basePath + \"polished_stairs_to_stairs\");\n crushing(consumer, BYGBlocks.POLISHED_SOAPSTONE_WALL, BYGBlocks.SOAPSTONE_WALL, basePath + \"polished_walls_to_walls\");\n //Soapstone Bricks -> Polished Soapstone\n crushing(consumer, BYGBlocks.SOAPSTONE_BRICKS, BYGBlocks.POLISHED_SOAPSTONE, basePath + \"brick_to_polished\");\n crushing(consumer, BYGBlocks.SOAPSTONE_BRICK_SLAB, BYGBlocks.POLISHED_SOAPSTONE_SLAB, basePath + \"brick_slabs_to_polished_slabs\");\n crushing(consumer, BYGBlocks.SOAPSTONE_BRICK_STAIRS, BYGBlocks.POLISHED_SOAPSTONE_STAIRS, basePath + \"brick_stairs_to_polished_stairs\");\n crushing(consumer, BYGBlocks.SOAPSTONE_BRICK_WALL, BYGBlocks.POLISHED_SOAPSTONE_WALL, basePath + \"brick_walls_to_polished_walls\");\n //Soapstone Tile -> Soapstone Bricks\n crushing(consumer, BYGBlocks.SOAPSTONE_TILE, BYGBlocks.SOAPSTONE_BRICKS, basePath + \"tile_to_brick\");\n crushing(consumer, BYGBlocks.SOAPSTONE_TILE_SLAB, BYGBlocks.SOAPSTONE_BRICK_SLAB, basePath + \"tile_slabs_to_brick_slabs\");\n crushing(consumer, BYGBlocks.SOAPSTONE_TILE_STAIRS, BYGBlocks.SOAPSTONE_BRICK_STAIRS, basePath + \"tile_stairs_to_brick_stairs\");\n crushing(consumer, BYGBlocks.SOAPSTONE_TILE_WALL, BYGBlocks.SOAPSTONE_BRICK_WALL, basePath + \"tile_walls_to_brick_walls\");\n //Soapstone Pillar -> Soapstone\n ItemStackToItemStackRecipeBuilder.crushing(\n ItemStackIngredient.from(BYGBlocks.SOAPSTONE_PILLAR),\n new ItemStack(BYGBlocks.SOAPSTONE, 2)\n ).addCondition(modLoaded)\n .build(consumer, Mekanism.rl(basePath + \"from_pillar\"));\n }",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"void setPoolId(java.lang.String poolId);",
"private void crearDimensionContable()\r\n/* 201: */ {\r\n/* 202:249 */ this.dimensionContable = new DimensionContable();\r\n/* 203:250 */ this.dimensionContable.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 204:251 */ this.dimensionContable.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 205:252 */ this.dimensionContable.setNumero(getDimension());\r\n/* 206:253 */ verificaDimension();\r\n/* 207: */ }",
"private void createGridlet(int userID, int numGridlet)\n {\n int data = 500; // 500KB of data\n for (int i = 0; i < numGridlet; i++)\n {\n // Creates a Gridlet\n Gridlet gl = new Gridlet(i, data, data, data);\n gl.setUserID(userID);\n\n // add this gridlet into a list\n this.jobs.add(gl);\n }\n }",
"public Long getPoolId();",
"public interface Pool {\n public PooledConnection getConnection();\n\n public void createConnection(int ocunt);\n}",
"protected String getAdjacentFactoryID( String id ){\n return id;\n }",
"@Override\n\tpublic void createCoupon(Coupon coupon)\n\t\t\tthrows ClassNotFoundException, SQLException, ParseException, DuplicateNameException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\t\tboolean flag = true;\n\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_ALL_COUPON_TITLES);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tif (coupon.getTitle().equals(resultSet.getString(1))) {\n\t\t\t\tflag = false;\n\t\t\t\tConnectionPool.getInstance().returnConnection(connection);\n\t\t\t\tthrow new DuplicateNameException(\"Coupon title \" + coupon.getTitle() + \" is already exists\");\n\t\t\t}\n\t\t}\n\t\tif (flag) {\n\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.ADD_NEW_COUPON_TO_DB);\n\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\tstatement.setDate(2, StringDateConvertor.convert(coupon.getStartDate().toString()));\n\t\t\tstatement.setDate(3, StringDateConvertor.convert(coupon.getEndDate().toString()));\n\t\t\tstatement.setInt(4, coupon.getAmount());\n\t\t\tstatement.setString(5, coupon.getType().toString());\n\t\t\tstatement.setString(6, coupon.getMessage());\n\t\t\tstatement.setDouble(7, coupon.getPrice());\n\t\t\tstatement.setString(8, coupon.getImage());\n\t\t\tstatement.executeUpdate();\n\n\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.GET_COUPON_ID_BY_TITLE);\n\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\tResultSet thisCouponId = statement.executeQuery();\n\t\t\twhile (thisCouponId.next()) {\n\t\t\t\tthis.setCoupId(thisCouponId.getLong(1));\n\t\t\t}\n\n\t\t\tConnectionPool.getInstance().returnConnection(connection);\n\t\t\tSystem.out.println(\"Coupon added successfull\");\n\t\t}\n\n\t}",
"public PoolNYCH() {\n\t\tinicializarDataSource();\n\t}",
"public Civilisation(int id, String nameNullForRandom, Case firstCase, Color couleur, Ideologie ideologie, Regime regime, PolTerritoriale polT) {\r\n\t\t\r\n\t\tthis.id = id;\r\n\t\tthis.culture = new Basique();\r\n\t\tthis.ideologie = ideologie;\r\n\t\tthis.regimePolitique = regime;\r\n\t\tthis.couleur = new Color(couleur.getRed(), couleur.getGreen(), couleur.getBlue(), 150);\r\n\t\t//this.couleur = new Color(couleur.getRed(), couleur.getGreen(), couleur.getBlue());\r\n\t\tnom = (nameNullForRandom != null) ? nameNullForRandom : noms[(int)(Math.random()*noms.length)];\r\n\t\tpopulation = 10;\r\n\t\tpopulationColoniale = 0;\r\n\t\tproduction = 0;\r\n\t\teconomie = 0;\r\n\t\tinfluence = 0;\r\n\t\tarmee = 0;\r\n\t\tscienceLvl = 1;\r\n\t\tscience = 10; //decrementation de la science pour passer au lvl supp\r\n\t\tnourriture = 50;\r\n\t\tcaseOwned = new ArrayList<>();\r\n\t\tressourcesStrat = new ArrayList<>();\r\n\t\tressourcesAnimal = new ArrayList<>();\r\n\t\taggresiveWar = new ArrayList<>();\r\n\t\tdefensiveWar = new ArrayList<>();\r\n\t\tvoisins = checkVoisins();\r\n\t\tenFamine = false;\r\n\t\ttauxEducation = 0;\r\n\t\ttauxCroissance = 0.02; // =1x taux mondiale IRL\r\n\t\ttauxAccroissementScience = 1.2;\r\n\t\tbaseScience = 10;\r\n\t\tbaseBonheur = 10;\r\n\t\tbaseEfficaciteArmee = 1;\r\n\t\tnoteMinimale = firstCase.note();\r\n\t\taddCase(firstCase);\r\n\t\tfor(Case c : firstCase.getVoisinesLibres()) addCase(c);\r\n\t\timpactRegime();\r\n\t\tthis.politiqueTerritoriale = polT;\r\n\t\tcalculerBonheur();\r\n\t\tcalculerEffiArmee();\r\n\t\t\r\n\t}",
"static ArrayList<Piece> createPieces (Bitmap image) {\n\t\tint[] picSize = InitDisplay.getPicDimensions();\n\t\tint[] pieceSize = InitDisplay.getPieceDimensions();\n\t\t\n\t\t/* Scale the image to the dynamically calculated values */\n\t\tBitmap imageScaled = Bitmap.createScaledBitmap(image, picSize[WIDTH], picSize[HEIGHT], false);\n\t\t\n\t\t/* The imageScaled bitmap now contains the given image in scaled bitmap form. Break it and\n\t\t * assign it to [rows*cols] small Jigsaw pieces after randomizing their positions and orientations\n\t\t * The image is being broken into a 3x3 grid. i represents rows while j represents columns */\n\t\t\n\t\tArrayList<Piece> pieces = new ArrayList<Piece>(Play.NUM[TOTAL]);\n\t\tBitmap imgPiece = null;\n\t\tint offsetX = 0, offsetY = 0;\n\t\tint pos = 0;\n\t\t\n\t\tfor (int i=0; i<Play.NUM[COLS]; i++) {\n\t\t\t/* offsetX represents the x coordinate while offsetY represents the y coordinate */\n\t\t\toffsetX = 0; //start from (0,0)\n\t\t\tfor (int j=0; j<Play.NUM[ROWS]; j++) {\n\t\t\t\t/* Extract a specific area of the imageScaled bitmap and store it in imgPiece.\n\t\t\t\t * Coordinates for the extraction are specified using offsetX and offsetY */\n\t\t\t\timgPiece = Bitmap.createBitmap\n\t\t\t\t\t\t(imageScaled, offsetX, offsetY, pieceSize[WIDTH], pieceSize[HEIGHT]);\n\t\t\t\t\n\t\t\t\t/* Create a Jigsaw piece and add it to the pieces array */\n\t\t\t\tPiece piece = new Piece (imgPiece); //create a new piece with the extracted bitmap image\n\t\t\t\tpieces.add(pos, piece); //add the piece to the pieces array\n\t\t\t\t\n\t\t\t\toffsetX += pieceSize[WIDTH]; //move to the next x coordinate\n\t\t\t\tpos++;\n\t\t\t}\n\t\t\toffsetY += pieceSize[HEIGHT]; //move to the next y coordinate\n\t\t}\n\t\t\n\t\treturn pieces;\n\t}",
"void assignPainting(int chosenId, Integer id);",
"protected MarkupContainer newJunctionImage(MarkupContainer parent, final String id,\n\t\tfinal TreeNode node)\n\t{\n\t\treturn (MarkupContainer)new WebMarkupContainer(id)\n\t\t{\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t/**\n\t\t\t * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)\n\t\t\t */\n\t\t\t@Override\n\t\t\tprotected void onComponentTag(ComponentTag tag)\n\t\t\t{\n\t\t\t\tsuper.onComponentTag(tag);\n\n\t\t\t\tfinal String cssClassInner;\n\t\t\t\tif (node.isLeaf() == false)\n\t\t\t\t{\n\t\t\t\t\tcssClassInner = isNodeExpanded(node) ? \"minus\" : \"plus\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcssClassInner = \"corner\";\n\t\t\t\t}\n\n\t\t\t\tfinal String cssClassOuter = isNodeLast(node) ? \"junction-last\" : \"junction\";\n\n\t\t\t\tResponse response = RequestCycle.get().getResponse();\n\t\t\t\tresponse.write(\"<span class=\\\"\" + cssClassOuter + \"\\\"><span class=\\\"\" +\n\t\t\t\t\tcssClassInner + \"\\\"></span></span>\");\n\t\t\t}\n\t\t}.setRenderBodyOnly(true);\n\t}",
"public interface Generator {\n String prepareSql();\n\n String getTemplateName();\n\n String prepareCategorySql();\n\n String getExcludedProductIds();\n\n String getDiscounts();\n\n String fixImageUrl(String imageUrl);\n}",
"@Transactional\n\tprivate void generateEpicSet() {\n\t\tMinionCard sleeping = createMinionCard(\"Snooze\", 5, 34, 1, 7, \"zZ zZ zZ\",\n\t\t\t\t\"img/cardImg/EpicSet/SleepingCat.gif\");\n\t\tMinionCard dancing = createMinionCard(\"Dancing Chat\", 8, 12, 15, 6, \"Let's dance\",\n\t\t\t\t\"img/cardImg/EpicSet/DancingCat.gif\");\n\t\tMinionCard ridingChat = createMinionCard(\"Chat pilote\", 8, 8, 24, 7, \"Yhay\",\n\t\t\t\t\"img/cardImg/EpicSet/RidingCat.gif\");\n\t\tMinionCard beat = createMinionCard(\"Beat Chat\", 8, 24, 13, 8, \"Beat on the music\",\n\t\t\t\t\"img/cardImg/EpicSet/BeatCat.gif\");\n\t\tMinionCard winter = createMinionCard(\"Winter Chat\", 8, 8, 19, 6,\n\t\t\t\t\"Let the storm rage on, The cold never bothered me anyway\", \"img/cardImg/EpicSet/SuperCuteCat.jpg\");\n\t\tMinionCard padding = createMinionCard(\"Padding Chat\", 8, 22, 15, 8, \"My belly next, My belly next\",\n\t\t\t\t\"img/cardImg/EpicSet/Padding.gif\");\n\t\tMinionCard skatterA = createMinionCard(\"Grumpy Bat Lord\", 10, 20, 15, 8, \"Go my minions\",\n\t\t\t\t\"img/cardImg/EpicSet/BatLordCat.jpg\");\n\t\tMinionCard jedi = createMinionCard(\"Nia\", 10, 35, 5, 9, \"Nia Nia Nia Nia Nia\",\n\t\t\t\t\"img/cardImg/EpicSet/RainbowCat.gif\");\n\t\tMinionCard nia = createMinionCard(\"Chat Jedi\", 10, 34, 6, 9, \"Use the force Luke\",\n\t\t\t\t\"img/cardImg/EpicSet/catSaber.gif\");\n\t\tMinionCard gun = createMinionCard(\"Chatatatatata\", 10, 40, 5, 10, \"AHAHAHAHHAHAHAHAHA\",\n\t\t\t\t\"img/cardImg/EpicSet/GunCat.gif\");\n\t\tcardRepository.save(sleeping);\n\t\tcardRepository.save(dancing);\n\t\tcardRepository.save(beat);\n\t\tcardRepository.save(padding);\n\t\tcardRepository.save(ridingChat);\n\t\tcardRepository.save(winter);\n\t\tcardRepository.save(skatterA);\n\t\tcardRepository.save(jedi);\n\t\tcardRepository.save(nia);\n\t\tcardRepository.save(gun);\n\n\t}",
"private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }",
"void loadImages(int id_image, HouseRepository.GetImageFromHouseCallback callback);",
"public Pool() {\n\t\t// inicializaDataSource();\n\t}",
"private void addToBag2(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag2.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}",
"public void createGestionnaireMeubles(){\n this.gestionaireMeubles = new GestionaireMeubles(panneaux.cuisine);\n this.panneaux.leftPanel.getCtrl().bindTotalPrice(this.gestionaireMeubles.totalPricePanierProperty());\n }",
"@Transactional\n\tprivate void generateCatOverSet() {\n\t\tMinionCard turkey = createMinionCard(\"Chat Turkey\", 3, 6, 1, 1, \"Eat Me\",\n\t\t\t\t\"img/cardImg/CatOverSet/TurkeyCat.jpg\");\n\t\tMinionCard sushi = createMinionCard(\"Chat sushi\", 1, 8, 1, 1, \"Eat Me\", \"img/cardImg/CatOverSet/SushiCat.jpeg\");\n\t\tMinionCard mop = createMinionCard(\"Chat Mop\", 1, 5, 4, 1, \"No. Not the bucket\",\n\t\t\t\t\"img/cardImg/CatOverSet/Mop.jpg\");\n\t\tMinionCard clean = createMinionCard(\"Chat Clean\", 3, 7, 5, 2, \"Spot less\",\n\t\t\t\t\"img/cardImg/CatOverSet/CleanningCat.jpg\");\n\t\tMinionCard swim = createMinionCard(\"Chat Swim\", 4, 5, 6, 2, \"Dive in\", \"img/cardImg/CatOverSet/swimming.jpg\");\n\t\tMinionCard skatterA = createMinionCard(\"Chat Skater Trick\", 5, 10, 5, 3, \"Grab\",\n\t\t\t\t\"img/cardImg/CatOverSet/SkateBoardTrickCat.jpg\");\n\t\tMinionCard ariel = createMinionCard(\"Chariel\", 12, 9, 4, 4,\n\t\t\t\t\"Under the sea, Nobody beat us, Fry us and eat us, In fricassee\",\n\t\t\t\t\"img/cardImg/CatOverSet/MermaidCat.jpg\");\n\t\tMinionCard Chatraigner = createMinionCard(\"Chatraigner\", 10, 15, 5, 5, \"Food Food Food! Kill Food\",\n\t\t\t\t\"img/cardImg/CatOverSet/SpiderMonsterCat.jpeg\");\n\t\tcardRepository.save(turkey);\n\t\tcardRepository.save(sushi);\n\t\tcardRepository.save(swim);\n\t\tcardRepository.save(mop);\n\t\tcardRepository.save(clean);\n\t\tcardRepository.save(skatterA);\n\t\tcardRepository.save(ariel);\n\t\tcardRepository.save(Chatraigner);\n\n\t}",
"public interface PoolFactory<T> {\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @return the t\n\t */\n\tpublic T create();\n}",
"void createThumbNail(File inputFile, OutputStream outputStream,\n String format, int width, int height,\n ConversionCommand.CompressionQuality quality,\n ConversionCommand.SpeedHint speedHint) throws Exception;",
"public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }",
"public TrapTiles()\r\n {\r\n id = 604 ; \r\n }",
"void generatePuzzle(Resources res, int drawable_id) {\n\t\t/* Call generatePuzzle() to break the picture into 9 pieces and randomize their\n\t\t * positions and orientations. Convert the drawable to bitmap and send it */ \n\t\tArrayList<Piece> pieces = Helper.createPieces\n\t\t\t\t(BitmapFactory.decodeResource(this.getResources(), R.drawable.pic));\n\t\tif (pieces == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* Initialize jigsawPieces */\n\t\tjigsawPieces = new ArrayList<Piece>();\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tjigsawPieces.add(i, pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Copy the pieces from the 'pieces' array to jigsawPieces and sort it by currentPosition.\n\t\t * Note that the 'pieces' array is sorted by correctPosition*/\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\t/* Manipulate the array such that jigsawPieces stores pieces sorted by currentPosition */\n\t\t\tjigsawPieces.set(pieces.get(i).getPosition(), pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Assign the correct images to the ImageViews */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setImageBitmap(jigsawPieces.get(i).getImage());\n\t\t}\n\t\t\n\t\t/* Set the rows and columns for the GridLayout and add the individual ImageViews to it */\n\t\tdrawGridLayout();\n\t\t\n\t\t/* Set the complete flag to false to indicate that the puzzle is not solved */\n\t\tcomplete = false;\n\t\t\n\t\t/* Check if any of the pieces are already placed correctly by chance (or if the puzzle is already solved) */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tHelper.checkCompleteness(jigsawPieces.get(i), this);\n\t\t}\n\t}",
"private ChessPieceGUIFactory() {\r\n\r\n\t}",
"@Override\n\tpublic void insertSingleRecord(int id) {\n\t\tSystem.out.println(\"insrted >> \"+id);\n\t\tString sql = \"INSERT INTO OMNICEL (ID, NAME, IMAGE_URL, CATEGORY, LABELS, PRICES, DESCRIPTION) VALUES (?, ?, ?, ?, ?, ?, ?)\";\n\t\tint val = jdbcTemplate.update(sql, id, \"sj\", \"https://stackoverflow.com/users/8359623/papai-from-bekoail\", \"hot\", \"deo\", 4.4, \"demo\");\n\t\tSystem.out.println(\"value insrted :: \"+val);\n\t}",
"protected abstract void setupImages(Context context);",
"PoolDraw addDrawDetail(Pool pool, Integer numQuestions);",
"public interface MatingPoolInterface {\n\n\t/**\n\t * Fills the pool with rockets from the given list.\n\t * \n\t * @param rockets\n\t */\n\tvoid fillPool(List<RocketInterface> rockets);\n\n\t/**\n\t * Gets a random rocket from the pool.\n\t * \n\t * @return\n\t */\n\tRocketInterface getRandomRocket();\n\n\t/**\n\t * Sets the position of the rocket target.\n\t * \n\t * @param target\n\t */\n\tvoid setRocketTarget(Vector2 target);\n}",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"public RoundPieceFactory(Storage<Piece> storage) {\n super(storage);\n }",
"public void createCoupon(Coupon coupon) throws DbException;",
"java.lang.String getPoolId();",
"public static Block getInstance(short id, byte data) {\n switch (id) {\n case 5:\n return new WoodenPlank(data);\n case 6:\n return new Sapling(data);\n case 8:\n case 9:\n return new Water(id, data);\n case 10:\n case 11:\n return new Lava(id, data);\n case 17:\n return new Wood(data);\n case 18:\n return new Leaves(data);\n case 23:\n return new Dispenser(null, (byte) 0);\n case 24:\n return new Sandstone(data);\n case 26:\n return new Bed(data);\n case 27:\n return new PoweredRail(data);\n case 28:\n return new DetectorRail(data);\n case 29:\n case 33:\n return new Piston(id, data);\n case 31:\n return new TallGrass(data);\n case 34:\n return new PistonExtension(data);\n case 35:\n return new Wool(data);\n case 43:\n case 44:\n return new StoneSlab(id, data);\n case 50:\n return new Torch(data);\n case 51:\n return new Fire(data);\n case 53: // oak\n case 67: // cobble\n case 108: // brick\n case 109: // stonebrick\n case 114: // netherbrick\n case 128: // sandstone\n case 134: // spruce\n case 135: // birch\n case 136: // jungle\n case 156:\n return new Stair(id, data); // quartz\n case 54: // normal chest\n case 146:\n return new Chest(id); // trapped chest\n case 55:\n return new RedstoneWire(data);\n case 59:\n return new Crop((short) 59, data); // Wheat\n case 60:\n return new Farmland(data);\n case 61:\n case 62:\n return new Furnace(id, data);\n case 63:\n case 68:\n return new Sign(null, id, data);\n case 64:\n case 71:\n return new Door(id, data);\n case 78:\n return new SnowCover(data);\n case 65:\n return new Ladder(data);\n case 66:\n return new Rail(data);\n case 69:\n return new Lever(data);\n case 70:\n case 72:\n return new PressurePlate(id, data);\n case 75:\n case 76:\n return new RedstoneTorch(id, data);\n case 77:\n return new Button(id, data);\n case 84:\n return new Jukebox(data);\n case 86:\n return new Pumpkin(data);\n case 91:\n return new JackOLantern(data);\n case 92:\n return new Cake(data);\n case 93:\n case 94:\n return new RedstoneRepeater(id, data);\n case 96:\n return new TrapDoor(data);\n case 98:\n return new StoneBrick(data);\n case 99:\n case 100:\n return new HugeMushroom(id, data);\n case 104:\n case 105:\n return new Stem(id, data);\n case 106:\n return new Vines(data);\n case 107:\n return new FenceGate(data);\n case 115:\n return new NetherWart(data);\n case 117:\n return new BrewingStand();\n case 118:\n return new Cauldron(data);\n case 120:\n return new EndPortalFrame(data);\n case 123:\n case 124:\n return new RedstoneLamp(id);\n case 125:\n case 126:\n return new WoodenSlab(id, data);\n case 127:\n return new CocoaPod(data);\n case 130:\n return new EnderChest(data);\n case 131:\n return new TripwireHook(data);\n case 132:\n return new TripWire(data);\n case 137:\n return new CommandBlock();\n case 138:\n return new Beacon();\n case 139:\n return new CobblestoneWall(data);\n case 140:\n return new FlowerPot(data);\n case 141:\n return new Crop((short) 141, data); // Carrot\n case 142:\n return new Crop((short) 142, data); // Potato\n case 143:\n return new Button(id, data);\n case 144:\n return new MobHead((byte) 3, (byte) 8, null, data); // north facing human head - most data from tile entity\n case 145:\n return new Anvil(data);\n case 147:\n case 148:\n return new WeightedPressurePlate(id, data);\n case 154:\n return new Hopper(null, (byte) 0);\n case 155:\n return new QuartzBlock(data);\n case 157:\n return new ActivatorRail(data);\n case 158:\n return new Dropper(null, (byte) 0);\n default:\n return new Block(id, data);\n }\n }",
"public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}",
"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 }",
"int getPoolNumber();",
"public void createIsipship() {\r\n\t\tRandom randomGenerator = new Random();\r\n\t\tint posX = 840;\r\n\t\tint randomPosY = randomGenerator.nextInt(480); \r\n\t\tIsipEngineer isipEngineer = new IsipEngineer(posX, randomPosY);\r\n\t\tisipShips.add(isipEngineer);\r\n\t\t//rectangles.add(isipEngineer.r);\r\n\t}",
"public com.agbar.service.model.ImgImportadas create(long imageId);",
"void createPieceViews() {\n\t pieceViews = new ArrayList<ImageView>();\n\t for (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.add(new ImageView(this));\n\t\t}\n\t}",
"public EpicTargetItems(byte kingdomTemplateId) {\n/* 107 */ this.kingdomId = kingdomTemplateId;\n/* 108 */ loadAll();\n/* 109 */ MissionHelper.loadAll();\n/* */ }",
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void createNewClothing(int aArticle, int aSource, int aTarget, int... components) {\n/* 3446 */ AdvancedCreationEntry article = createAdvancedEntry(10016, aSource, aTarget, aArticle, false, false, 0.0F, true, false, 0, 10.0D, CreationCategories.CLOTHES);\n/* */ \n/* 3448 */ article.setColouringCreation(true);\n/* 3449 */ article.setFinalMaterial((byte)17);\n/* 3450 */ article.setUseTemplateWeight(true);\n/* 3451 */ int x = 1;\n/* 3452 */ for (int component : components)\n/* */ {\n/* 3454 */ article.addRequirement(new CreationRequirement(x++, component, 1, true));\n/* */ }\n/* */ }",
"Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);",
"public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);",
"public interface StoryFactory {\n Story createStory(Long id,String name, String tag, String text,long userId,byte[] image);\n\n}",
"private void addCrusherDaciteRecipes(Consumer<IFinishedRecipe> consumer, String basePath) {\n crushing(consumer, BYGBlocks.DACITE, BYGBlocks.DACITE_COBBLESTONE, basePath + \"to_cobblestone\");\n crushing(consumer, BYGBlocks.DACITE_SLAB, BYGBlocks.DACITE_COBBLESTONE_SLAB, basePath + \"slabs_to_cobblestone_slabs\");\n crushing(consumer, BYGBlocks.DACITE_STAIRS, BYGBlocks.DACITE_COBBLESTONE_STAIRS, basePath + \"stairs_to_cobblestone_stairs\");\n crushing(consumer, BYGBlocks.DACITE_WALL, BYGBlocks.DACITE_COBBLESTONE_WALL, basePath + \"walls_to_cobblestone_walls\");\n //Dacite Tile -> Dacite Bricks\n crushing(consumer, BYGBlocks.DACITE_TILE, BYGBlocks.DACITE_BRICKS, basePath + \"tile_to_brick\");\n crushing(consumer, BYGBlocks.DACITE_TILE_SLAB, BYGBlocks.DACITE_BRICK_SLAB, basePath + \"tile_slabs_to_brick_slabs\");\n crushing(consumer, BYGBlocks.DACITE_TILE_STAIRS, BYGBlocks.DACITE_BRICK_STAIRS, basePath + \"tile_stairs_to_brick_stairs\");\n crushing(consumer, BYGBlocks.DACITE_TILE_WALL, BYGBlocks.DACITE_BRICK_WALL, basePath + \"tile_walls_to_brick_walls\");\n //Dacite Bricks -> Dacite\n crushing(consumer, BYGBlocks.DACITE_BRICKS, BYGBlocks.DACITE, basePath + \"from_brick\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_SLAB, BYGBlocks.DACITE_SLAB, basePath + \"brick_slabs_to_slabs\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_STAIRS, BYGBlocks.DACITE_STAIRS, basePath + \"brick_stairs_to_stairs\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_WALL, BYGBlocks.DACITE_WALL, basePath + \"brick_walls_to_walls\");\n //Dacite Pillar -> Dacite\n ItemStackToItemStackRecipeBuilder.crushing(\n ItemStackIngredient.from(BYGBlocks.DACITE_PILLAR),\n new ItemStack(BYGBlocks.DACITE, 2)\n ).addCondition(modLoaded)\n .build(consumer, Mekanism.rl(basePath + \"from_pillar\"));\n }",
"public Coloca_imagen(){\n \n \n }",
"private void creationLooper(String meal_id, String[] r_ids) throws InterruptedException {\n int count = 1;\n for(String recipe : r_ids) {\n Thread.sleep(500);\n createMeal(meal_id,recipe,count);\n count++;\n }\n }",
"Dimension_hauteur createDimension_hauteur();",
"public PoliceIntimationDetail (java.lang.Integer id) {\n\t\tsuper(id);\n\t}",
"public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }",
"@Transactional\n\tprivate void generateGodSet() {\n\t\tMinionCard ex1 = createMinionCard(\"Chatton transcendent\", -2, 1 , 1 , -1, \"Utilise mon energie\",\"img/cardImg/godSet/glow.jpg\");\n\t\tMinionCard ex2 = createMinionCard(\"Reda EX\", -7, 1,1, -2, \"Oh la la.\",\"img/cardImg/godSet/Reda.png\");\n\t\tMinionCard ex3 = createMinionCard(\"François EX\", -12, 1, 1, -3, \"Aujourd'hui On a Oncle Bob\",\"img/cardImg/godSet/Francois.png\");\n\t\t\n\t\tcardRepository.save(ex1);\n\t\tcardRepository.save(ex2);\n\t\tcardRepository.save(ex3);\n\t\t\n\t}",
"private static Bitmap storeThumbnail(ContentResolver cr, Bitmap source, long id,\n float width, float height, int kind) {\n\n // create the matrix to scale it\n Matrix matrix = new Matrix();\n\n float scaleX = width / source.getWidth();\n float scaleY = height / source.getHeight();\n\n matrix.setScale(scaleX, scaleY);\n\n Bitmap thumb = Bitmap.createBitmap(source, 0, 0,\n source.getWidth(),\n source.getHeight(), matrix,\n true\n );\n\n ContentValues values = new ContentValues(4);\n values.put(Images.Thumbnails.KIND,kind);\n values.put(Images.Thumbnails.IMAGE_ID,(int)id);\n values.put(Images.Thumbnails.HEIGHT,thumb.getHeight());\n values.put(Images.Thumbnails.WIDTH,thumb.getWidth());\n\n Uri url = cr.insert(Images.Thumbnails.EXTERNAL_CONTENT_URI, values);\n\n try {\n OutputStream thumbOut = cr.openOutputStream(url);\n thumb.compress(Bitmap.CompressFormat.JPEG, 100, thumbOut);\n thumbOut.close();\n return thumb;\n } catch (FileNotFoundException ex) {\n return null;\n } catch (IOException ex) {\n return null;\n }\n\n }",
"public void chooseBrick(View v) {\n\n // do nothing if block is not available\n if (isBlockAvailable(map_id_to_bricks.get(v.getId()))) {\n\n TextView obj_text_view = (TextView) findViewById(R.id.ID_PlacementMode_BrickPreview_TextView);\n obj_text_view.setVisibility(View.INVISIBLE);\n\n if (objBrickPreview != null) {\n objBlockFactory.ReleaseBlock(objBrickPreview);\n objBrickPreview = null;\n b_brick_is_placeable = false;\n }\n\n ImageView img = (ImageView) findViewById(ID_PlacementMode_BrickPreview_ImageView);\n\n img.setRotation(0);\n img.setColorFilter(Color.GRAY);\n\n // disable drag and drop\n findViewById(ID_PlacementMode_BrickPreview_ImageView).setOnTouchListener(null);\n\n switch (v.getId()) {\n case R.id.ID_PlacementMode_1x1_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_quadrat_1x1);\n i_act_id = R.id.ID_PlacementMode_1x1_Brick_ImageButton;\n break;\n\n case R.id.ID_PlacementMode_2x2_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_quadrat_2x2);\n i_act_id = R.id.ID_PlacementMode_2x2_Brick_ImageButton;\n break;\n\n case R.id.ID_PlacementMode_I_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_i);\n i_act_id = R.id.ID_PlacementMode_I_Brick_ImageButton;\n break;\n\n case R.id.ID_PlacementMode_J_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_j);\n i_act_id = R.id.ID_PlacementMode_J_Brick_ImageButton;\n break;\n\n case R.id.ID_PlacementMode_L_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_l);\n i_act_id = R.id.ID_PlacementMode_L_Brick_ImageButton;\n break;\n\n case R.id.ID_PlacementMode_S_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_s);\n i_act_id = R.id.ID_PlacementMode_S_Brick_ImageButton;\n break;\n\n case R.id.ID_PlacementMode_T_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_t);\n i_act_id = R.id.ID_PlacementMode_T_Brick_ImageButton;\n break;\n\n case R.id.ID_PlacementMode_Z_Brick_ImageButton:\n img.setImageResource(R.drawable.vi_z);\n i_act_id = R.id.ID_PlacementMode_Z_Brick_ImageButton;\n break;\n\n default:\n break;\n }\n updateView();\n }\n\n }"
] | [
"0.5839425",
"0.5666421",
"0.5570192",
"0.54687613",
"0.5448112",
"0.5304718",
"0.52139014",
"0.5131949",
"0.5084653",
"0.5069662",
"0.5060349",
"0.5022487",
"0.50087",
"0.4994674",
"0.49616867",
"0.49484384",
"0.49362206",
"0.491595",
"0.4915051",
"0.489998",
"0.48959014",
"0.48739552",
"0.48325166",
"0.4828968",
"0.4824949",
"0.47835183",
"0.478209",
"0.4779886",
"0.4779433",
"0.47703645",
"0.47660923",
"0.47540134",
"0.47371733",
"0.4734255",
"0.47210672",
"0.47162473",
"0.46930432",
"0.4691086",
"0.4659302",
"0.4657886",
"0.46561643",
"0.46499288",
"0.46449903",
"0.46394718",
"0.46383998",
"0.46352246",
"0.4629096",
"0.4622373",
"0.46203586",
"0.46181008",
"0.46106762",
"0.46081766",
"0.4606968",
"0.46025187",
"0.46021202",
"0.45995504",
"0.4592424",
"0.4591319",
"0.45912543",
"0.4580412",
"0.45751655",
"0.45739225",
"0.45705453",
"0.45670244",
"0.45662862",
"0.45659888",
"0.45627308",
"0.45602039",
"0.45559484",
"0.45556426",
"0.45526513",
"0.45497373",
"0.4549308",
"0.45485374",
"0.45464632",
"0.4545758",
"0.45453396",
"0.45407772",
"0.45367026",
"0.45296076",
"0.45286593",
"0.45279893",
"0.4517372",
"0.45171246",
"0.45124468",
"0.45065862",
"0.45062795",
"0.4502146",
"0.45014843",
"0.45013946",
"0.44992736",
"0.4495922",
"0.44939154",
"0.4492857",
"0.44924906",
"0.4484844",
"0.44816527",
"0.44795084",
"0.44772366",
"0.44721633"
] | 0.5382186 | 5 |
create game locations based on ID,generate thumbnail for each coupons using ThumbNailFactory for convenience, coupons use poolLocation class aslo | private gameLocation getGameLocation(int ID) {
gameLocation game = null;
if (ID == 0) {
game = new gameLocation(AppleID, AppleDescription, false);
} else if (ID == 1) {
game = new gameLocation(DiscoveryID, DiscoveryDescription, false);
} else if (ID == 2) {
game = new gameLocation(PlantesFerryID, PlantesFerryDescription, false);
}else if (ID == 3) {
game = new gameLocation(GreenacresID, GreenacresDescription, false);
}
return game;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static LinkedList<Location> generateLocations() {\n int i = 0;\n LinkedList<Location> list = new LinkedList<Location>();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ImagePacker gearImgs = new ImagePacker();\n\n try {\n gearImgs.readDirectory(new File(Objects.requireNonNull(classLoader.getResource(\"assets/gear-tiles\")).getPath()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (i = 0; i < GEARTILES; i++) {\n list.add(new Location(LocationType.GEAR).withImg(gearImgs.popImg()));\n }\n list.get((int)(Math.random()*list.size())).toggleStartingLoc();\n\n Image waterImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-tile.jpg\")).toString());\n for (i = 0; i < WATERTILES; i++) {\n list.add(new Location(LocationType.WELL).withImg(waterImg));\n }\n\n Image waterFakeImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-fake-tile.jpg\")).toString());\n for (i = 0; i < WATERFAKETILES; i++) {\n list.add(new Location(LocationType.MIRAGE).withImg(waterFakeImg));\n }\n\n //TODO: Finish images\n for (i = 0; i < LANDINGPADTILES; i++) {\n list.add(new Location(LocationType.LANDINGPAD).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/landing-pad.jpg\")).toString())));\n }\n for (i = 0; i < TUNNELTILES; i++) {\n list.add(new Location(LocationType.TUNNEL).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/tunnel.jpg\")).toString())));\n }\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-LR.jpg\")).toString())));\n\n return list;\n }",
"private poolLocation getPoolLocation(int ID) {\n\t\tpoolLocation pool = null;\n\t\tif (ID == 0) {\n\t\t\tpool = new poolLocation(pool1ID, pool1Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(pool1ID));\n\t\t} else if (ID == 1) {\n\t\t\tpool = new poolLocation(pool2ID, pool2Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(pool2ID));\n\t\t} else if (ID == 2) {\n\t\t\tpool = new poolLocation(pool3ID, pool3Descrption, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(pool3ID));\n\t\t}\n\t\treturn pool;\n\t}",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"public static void cheat() {\n\t\tlocations = new ArrayList<Location>();\n \tLocation temp = new Location();\n \ttemp.setLongitude(20.0);\n \ttemp.setLatitude(30.0);\n \tlocations.add(temp);\n \tLocation temp0 = new Location();\n \ttemp0.setLongitude(21.0);\n \ttemp0.setLatitude(30.0);\n \tlocations.add(temp0);\n \tLocation temp1 = new Location();\n \ttemp1.setLongitude(15.0);\n \ttemp1.setLatitude(40.0);\n \tlocations.add(temp1);\n \tLocation temp2 = new Location();\n \ttemp2.setLongitude(20.0);\n \ttemp2.setLatitude(30.1);\n \tlocations.add(temp2);\n \tLocation temp3 = new Location();\n \ttemp3.setLongitude(22.0);\n \ttemp3.setLatitude(33.1);\n \tlocations.add(temp3);\n \tLocation temp4 = new Location();\n \ttemp4.setLongitude(22.1);\n \ttemp4.setLatitude(33.0);\n \tlocations.add(temp4);\n \tLocation temp5 = new Location();\n \ttemp5.setLongitude(22.1);\n \ttemp5.setLatitude(33.2);\n \tlocations.add(temp5);\n\t\tList<PictureObject> pictures = new ArrayList<PictureObject>();\n\t\tint nbrOfLocations = locations.size();\n\t\tfor (int index = 0; index < nbrOfLocations; index++) {\n\t\t\tPicture pic = new Picture();\n\t\t\tpic.setLocation(locations.get(index));\n\t\t\tpictures.add(pic);\n\t\t}\n\t\tFiles.getInstance().setPictureList(pictures);\n\t}",
"private poolLocation getCouponLocation(int ID) {\n\t\tpoolLocation coupon = null;\n\t\tif (ID == 0) {\n\t\t\tcoupon = new poolLocation(coupon1ID, Coupon1Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon1ID));\n\t\t} else if (ID == 1) {\n\t\t\tcoupon = new poolLocation(coupon2ID, Coupon2Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon2ID));\n\t\t} else if (ID == 2) {\n\t\t\tcoupon = new poolLocation(coupon3ID, Coupon3Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon3ID));\n\t\t}\n\t\treturn coupon;\n\t}",
"public MapGen()//Collect images, create Platform list, create grassy array and generate a random integer as the map wideness\n\t{\n\t\tblocksWide= ThreadLocalRandom.current().nextInt(32, 64 + 1);\n\t\tclouds=kit.getImage(\"Resources/SkyBackground.jpg\");\n\t\tdirt=kit.getImage(\"Resources/Dirt.png\");\n\t\tgrass[0]=kit.getImage(\"Resources/Grass.png\");\n\t\tgrass[1]=kit.getImage(\"Resources/Grass1.png\");\n\t\tgrass[2]=kit.getImage(\"Resources/Grass2.png\");\n\t\tplatforms=new ArrayList<Platform>();\n\t\tgrassy=new int[blocksWide];\n\t\tgrassT=new int[blocksWide];\n\t\tgenerateTerrain();\n\t\t\n\t\t\n\t\t\n\t}",
"public static void GenerateImageArea(int id)\n\t{\n\t\tareaHeight += 190;\n\t\tHome.createArticle.setPreferredSize(new Dimension(800, areaHeight));\n\t\t\n\t\ti++;\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = i;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.anchor = GridBagConstraints.LINE_START;\n\t\tgbc.insets = new Insets(10, 0, 0, 0);\n\t\tHome.createArticle.add(imageButtons.get(id), gbc);\n\t\t\n\t\tgbc.gridx = 1;\n\t\tgbc.gridwidth = 3;\n\t\tgbc.weighty = 10;\n\t\tHome.createArticle.add(imageAreas.get(id), gbc);\n\t\t\n\t}",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"void generatePuzzle(Resources res, int drawable_id) {\n\t\t/* Call generatePuzzle() to break the picture into 9 pieces and randomize their\n\t\t * positions and orientations. Convert the drawable to bitmap and send it */ \n\t\tArrayList<Piece> pieces = Helper.createPieces\n\t\t\t\t(BitmapFactory.decodeResource(this.getResources(), R.drawable.pic));\n\t\tif (pieces == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* Initialize jigsawPieces */\n\t\tjigsawPieces = new ArrayList<Piece>();\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tjigsawPieces.add(i, pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Copy the pieces from the 'pieces' array to jigsawPieces and sort it by currentPosition.\n\t\t * Note that the 'pieces' array is sorted by correctPosition*/\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\t/* Manipulate the array such that jigsawPieces stores pieces sorted by currentPosition */\n\t\t\tjigsawPieces.set(pieces.get(i).getPosition(), pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Assign the correct images to the ImageViews */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setImageBitmap(jigsawPieces.get(i).getImage());\n\t\t}\n\t\t\n\t\t/* Set the rows and columns for the GridLayout and add the individual ImageViews to it */\n\t\tdrawGridLayout();\n\t\t\n\t\t/* Set the complete flag to false to indicate that the puzzle is not solved */\n\t\tcomplete = false;\n\t\t\n\t\t/* Check if any of the pieces are already placed correctly by chance (or if the puzzle is already solved) */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tHelper.checkCompleteness(jigsawPieces.get(i), this);\n\t\t}\n\t}",
"private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }",
"public void createIsipship() {\r\n\t\tRandom randomGenerator = new Random();\r\n\t\tint posX = 840;\r\n\t\tint randomPosY = randomGenerator.nextInt(480); \r\n\t\tIsipEngineer isipEngineer = new IsipEngineer(posX, randomPosY);\r\n\t\tisipShips.add(isipEngineer);\r\n\t\t//rectangles.add(isipEngineer.r);\r\n\t}",
"public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"public TrapTiles()\r\n {\r\n id = 604 ; \r\n }",
"public Building (Pixmap image,\n Location3D center,\n Dimension size,\n Sound sound,\n int playerID,\n int health,\n double buildTime) {\n super(image, center, size, sound, playerID, MAXHEALTH, buildTime);\n myRallyPoint = new Location3D(getWorldLocation().getX(), getWorldLocation().getY() + 150, 0);\n \n }",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"public void init() {\r\n int width = img.getWidth();\r\n int height = img.getHeight();\r\n floor = new Floor(game, width, height);\r\n units = new ArrayList<Unit>();\r\n objects = new ArrayList<GameObject>();\r\n for (int y=0; y<height; y++) {\r\n for (int x=0; x<width; x++) {\r\n int rgb = img.getRGB(x,y);\r\n Color c = new Color(rgb);\r\n Tile t;\r\n if (c.equals(GRASS_COLOR)) {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_grass.png\");\r\n } else if (c.equals(STONE_COLOR)) {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_stone.png\");\r\n } else {\r\n /* Check all the surrounding tiles. Take a consensus for the underlying tile color. */\r\n int numGrass=0, numStone=0;\r\n for (int j=y-1; j<=y+1; j++) {\r\n for (int i=x-1; i<=x+1; i++) {\r\n if (i>=0 && i<img.getWidth() && j>=0 && j<img.getHeight() && !(i==x && j==y)) {\r\n int rgb2 = img.getRGB(i,j);\r\n Color c2 = new Color(rgb2);\r\n if (c2.equals(GRASS_COLOR)) numGrass++;\r\n else if (c2.equals(STONE_COLOR)) numStone++;\r\n }\r\n }\r\n }\r\n if (numGrass >= numStone) {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_grass.png\");\r\n } else {\r\n t = new Tile(game, new Posn(x,y), \"tile_48x24_stone.png\");\r\n }\r\n }\r\n floor.setTile(x, y, t);\r\n \r\n if (c.equals(TREE_COLOR)) {\r\n //objects.add(new GameObject(x,y))\r\n } else if (c.equals(WALL_COLOR)) {\r\n objects.add(new Wall(game, new Posn(x,y), \"wall_48x78_1.png\"));\r\n } else if (c.equals(WIZARD_COLOR)) {\r\n addWizard(x,y);\r\n } else if (c.equals(ZOMBIE_COLOR)) {\r\n addZombie(x,y);\r\n } else if (c.equals(BANDIT_COLOR)) {\r\n addBandit(x,y);\r\n } else if (c.equals(PLAYER_COLOR)) {\r\n game.getPlayerUnit().setPosn(new Posn(x,y));\r\n units.add(game.getPlayerUnit());\r\n }\r\n }\r\n }\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 }",
"private void addToBag1(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag1.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}",
"private void crearGen(int id){\n Random random = new Random();\n int longitud = random.nextInt(6) + 5;\n\n random = null;\n\n Gen gen = new Gen(id, longitud);\n agregarGen(gen);\n }",
"private void createShips() {\n //context,size, headLocation, bodyLocations\n Point point;\n Ship scout_One, scout_Two, cruiser, carrier, motherShip;\n if(player) {\n point = new Point(maxN - 1, 0); //row, cell\n scout_One = new Ship(1, point, maxN, \"Scout One\", player);\n ships.add(scout_One);\n point = new Point(maxN - 1, 1);\n scout_Two = new Ship(1, point, maxN, \"Scout Two\", player);\n ships.add(scout_Two);\n point = new Point(maxN - 2, 2);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n ships.add(cruiser);\n point = new Point(maxN - 2, 3);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n ships.add(carrier);\n point = new Point(maxN - 4, 5);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n ships.add(motherShip);\n\n }else{\n Random rand = new Random();\n int rowM = maxN-3;\n int colM = maxN -2;\n int row = rand.nextInt(rowM);\n int col = rand.nextInt(colM);\n point = new Point(row, col);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n updateOccupiedCells(motherShip.getBodyLocationPoints());\n ships.add(motherShip);\n\n rowM = maxN - 1;\n colM = maxN -1;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n updateOccupiedCells(carrier.getBodyLocationPoints());\n ships.add(carrier);\n checkIfOccupiedForSetShip(carrier, row, col, rowM, colM);\n\n\n rowM = maxN - 1;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n updateOccupiedCells(cruiser.getBodyLocationPoints());\n ships.add(cruiser);\n checkIfOccupiedForSetShip(cruiser, row, col, rowM, colM);\n\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_Two = new Ship(1, point, maxN, \"Scout_Two\", player);\n updateOccupiedCells(scout_Two.getBodyLocationPoints());\n ships.add(scout_Two);\n checkIfOccupiedForSetShip(scout_Two, row, col, rowM, colM);\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_One = new Ship(1, point, maxN, \"Scout_One\", player);\n updateOccupiedCells(scout_One.getBodyLocationPoints());\n ships.add(scout_One);\n checkIfOccupiedForSetShip(scout_One, row, col, rowM, colM);\n\n\n\n\n }\n //Need an algorithm to set enemy ship locations at random without overlaps\n }",
"static ArrayList<Piece> createPieces (Bitmap image) {\n\t\tint[] picSize = InitDisplay.getPicDimensions();\n\t\tint[] pieceSize = InitDisplay.getPieceDimensions();\n\t\t\n\t\t/* Scale the image to the dynamically calculated values */\n\t\tBitmap imageScaled = Bitmap.createScaledBitmap(image, picSize[WIDTH], picSize[HEIGHT], false);\n\t\t\n\t\t/* The imageScaled bitmap now contains the given image in scaled bitmap form. Break it and\n\t\t * assign it to [rows*cols] small Jigsaw pieces after randomizing their positions and orientations\n\t\t * The image is being broken into a 3x3 grid. i represents rows while j represents columns */\n\t\t\n\t\tArrayList<Piece> pieces = new ArrayList<Piece>(Play.NUM[TOTAL]);\n\t\tBitmap imgPiece = null;\n\t\tint offsetX = 0, offsetY = 0;\n\t\tint pos = 0;\n\t\t\n\t\tfor (int i=0; i<Play.NUM[COLS]; i++) {\n\t\t\t/* offsetX represents the x coordinate while offsetY represents the y coordinate */\n\t\t\toffsetX = 0; //start from (0,0)\n\t\t\tfor (int j=0; j<Play.NUM[ROWS]; j++) {\n\t\t\t\t/* Extract a specific area of the imageScaled bitmap and store it in imgPiece.\n\t\t\t\t * Coordinates for the extraction are specified using offsetX and offsetY */\n\t\t\t\timgPiece = Bitmap.createBitmap\n\t\t\t\t\t\t(imageScaled, offsetX, offsetY, pieceSize[WIDTH], pieceSize[HEIGHT]);\n\t\t\t\t\n\t\t\t\t/* Create a Jigsaw piece and add it to the pieces array */\n\t\t\t\tPiece piece = new Piece (imgPiece); //create a new piece with the extracted bitmap image\n\t\t\t\tpieces.add(pos, piece); //add the piece to the pieces array\n\t\t\t\t\n\t\t\t\toffsetX += pieceSize[WIDTH]; //move to the next x coordinate\n\t\t\t\tpos++;\n\t\t\t}\n\t\t\toffsetY += pieceSize[HEIGHT]; //move to the next y coordinate\n\t\t}\n\t\t\n\t\treturn pieces;\n\t}",
"private void createRandomGame() {\n ArrayList<int[]> usedCoordinates = new ArrayList<>();\n\n // make sure the board is empty\n emptyBoard();\n\n //find different coordinates\n while (usedCoordinates.size() < 25) {\n int[] temp = new int[]{randomNumberGenerator.generateInteger(size), randomNumberGenerator.generateInteger(size)};\n\n // default contains(arraylist) doesn't work because it compares hashcodes\n if (! contains(usedCoordinates, temp)) {\n usedCoordinates.add(temp);\n }\n }\n\n for (int[] usedCoordinate : usedCoordinates) {\n board.setSquare(usedCoordinate[0], usedCoordinate[1], randomNumberGenerator.generateInteger(size) + 1);\n }\n\n //save start locations\n startLocations = usedCoordinates;\n }",
"public void create(int [][] arr) {\n //default background image\n gc.drawImage(bg0, 0, 0);\n gc.drawImage(bg0, 1024,0);\n\n // traverses 2D array to creat map\n for(int i = 0; i < arr.length; i++) {\n for(int j = 0; j < arr[0].length; j++) {\n if(arr[i][j] == 0) {\n //blank space, for reference\n } else if(arr[i][j] == 1) { // make IndestructibleObject\n IndestructibleObject object = new IndestructibleObject(img0, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 2) { // make DestructibleObject\n DestructibleObject object = new DestructibleObject(img1, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 3) { // make power up\n PowerUpObject object = new PowerUpObject(img2, j*64+1, i*64, 1);\n powerList.add(object);\n } else if(arr[i][j] == 4) { // make power up\n PowerUpObject object = new PowerUpObject(img3, j*64+1, i*64, 2);\n powerList.add(object);\n } else if(arr[i][j] == 5) { // make power up\n PowerUpObject object = new PowerUpObject(img4, j*64+1, i*64, 3);\n powerList.add(object);\n } else if(arr[i][j] == 6) { // make power up\n PowerUpObject object = new PowerUpObject(img5, j*64+1, i*64, 4);\n powerList.add(object);\n }\n }\n }\n }",
"public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }",
"public void setBasicNewGameWorld()\r\n\t{\r\n\t\tlistCharacter = new ArrayList<Character>();\r\n\t\tlistRelationship = new ArrayList<Relationship>();\r\n\t\tlistLocation = new ArrayList<Location>();\r\n\t\t\r\n\t\t//Location;\r\n\t\t\r\n\t\tLocation newLocationCity = new Location();\r\n\t\tnewLocationCity.setToGenericCity();\r\n\t\tLocation newLocationDungeon = new Location();\r\n\t\tnewLocationDungeon.setToGenericDungeon();\r\n\t\tLocation newLocationForest = new Location();\r\n\t\tnewLocationForest.setToGenericForest();\r\n\t\tLocation newLocationJail = new Location();\r\n\t\tnewLocationJail.setToGenericJail();\r\n\t\tLocation newLocationPalace = new Location();\r\n\t\tnewLocationPalace.setToGenericPalace();\r\n\t\t\r\n\t\tlistLocation.add(newLocationCity);\r\n\t\tlistLocation.add(newLocationDungeon);\r\n\t\tlistLocation.add(newLocationForest);\r\n\t\tlistLocation.add(newLocationJail);\r\n\t\tlistLocation.add(newLocationPalace);\r\n\t\t\r\n\t\t\r\n\t\t//Item\r\n\t\tItem newItem = new Item();\r\n\t\t\r\n\t\tString[] type =\t\tnew String[]\t{\"luxury\"};\r\n\t\tString[] function = new String[]\t{\"object\"};\t\r\n\t\tString[] property = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900101,\"diamond\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationPalace.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"weapon\"};\r\n\t\tfunction = new String[]\t{\"equipment\"};\t\r\n\t\tproperty = new String[]\t{\"weapon\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(500101,\"dagger\", type, function, \"null\", property, 1, false);\t\t\r\n\t\tnewLocationJail.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\ttype =\t\tnew String[]\t{\"quest\"};\r\n\t\tfunction = new String[]\t{\"object\"};\t\r\n\t\tproperty = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900201,\"treasure_map\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationDungeon.addOrUpdateItem(newItem);\r\n\r\n\t\t\r\n\t\t////// Add very generic item (10+ items of same name)\r\n\t\t////// These item start ID at 100000\r\n\t\t\r\n\t\t//Add 1 berry\r\n\t\t//100000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"berry\"};\r\n\t\tnewItem.setNewItem(100101,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100103,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t*/\r\n\r\n\t\t\r\n\t\t//Add 2 poison_plant\r\n\t\t//101000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem.setNewItem(100201,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100202,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\r\n\t\t//player\r\n\t\tCharacter newChar = new Character(\"player\", 1, true,\"city\", 0, false);\r\n\t\tnewChar.setIsPlayer(true);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//UNIQUE NPC\r\n\t\tnewChar = new Character(\"mob_NPC_1\", 15, true,\"city\", 0, false);\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\t\t\r\n\t\tnewChar = new Character(\"king\", 20, true,\"palace\", 3, true);\r\n\t\tnewChar.addOccupation(\"king\");\r\n\t\tnewChar.addOccupation(\"noble\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\r\n\t\t//Mob character\r\n\t\tnewChar = new Character(\"soldier1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// REMOVE to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"soldier2\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"soldier3\", 20, true,\"palace\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//listLocation.add(newLocationCity);\r\n\t\t//listLocation.add(newLocationDungeon);\r\n\t\t//listLocation.add(newLocationForest);\r\n\t\t//listLocation.add(newLocationJail);\r\n\t\t//listLocation.add(newLocationPalace);\r\n\t\t\r\n\t\tnewChar = new Character(\"doctor1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addSkill(\"heal\");\r\n\t\tnewChar.addOccupation(\"doctor\");\r\n\t\tlistCharacter.add(newChar);\t\r\n\t\tnewChar = new Character(\"blacksmith1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"blacksmith\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"thief1\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"thief\");\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"unlock\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(300101,\"lockpick\", type, function, \"thief1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// Remove to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"messenger1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"messenger\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\tnewChar = new Character(\"miner1\", 20, true,\"dungeon\", 1, true);\r\n\t\tnewChar.addOccupation(\"miner\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"lumberjack1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"lumberjack\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewChar = new Character(\"scout1\", 20, true,\"forest\", 2, true);\r\n\t\tnewChar.addOccupation(\"scout\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"farmer1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"farmer\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"merchant1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addOccupation(\"merchant\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\t// Merchant Item\r\n\t\t//NPC item start at 50000\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200101,\"potion_poison\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"healing\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200201,\"potion_heal\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"cure_poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200301,\"antidote\", type, function, \"merchant1\", property, 1, false);\t\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\t//add merchant to List\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Relation\r\n\t\tRelationship newRelation = new Relationship();\r\n\t\tnewRelation.setRelationship(\"merchant1\", \"soldier1\", \"friend\");\r\n\t\tlistRelationship.add(newRelation);\r\n\t\t\r\n\t\t//\r\n\t\r\n\t}",
"public void createImages(){\n for(String s : allPlayerMoves){\n String a = \"Left\";\n for(int i = 0; i < 2; i++) {\n ArrayList<Image> tempImg = new ArrayList();\n boolean done = false;\n int j = 1;\n while(!done){\n try{\n tempImg.add(ImageIO.read(new File(pathToImageFolder+s+a+j+\".png\")));\n j++;\n } catch (IOException ex) {\n done = true;\n }\n }\n String temp = s.replace(\"/\",\"\") + a;\n playerImages.put(temp, tempImg);\n a = \"Right\";\n }\n }\n imagesCreated = true;\n }",
"public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }",
"public EpicTargetItems(byte kingdomTemplateId) {\n/* 107 */ this.kingdomId = kingdomTemplateId;\n/* 108 */ loadAll();\n/* 109 */ MissionHelper.loadAll();\n/* */ }",
"public void makeShips()\n\t{\n\t\t//The below is firstly to create the five ships \n\t\tint[] shipSizes= {2,3,3,4,5};\n\n\t\t//### Creating battleship to be put in the playerBattleShipsList\n\t\tfor (int x = 0; x < shipSizes.length; x ++) \n\t\t{\n\t\t\t//This creates a new battleship of size X from index's of shipSizes\n\t\t\tBattleShip newPlayerBattleShip = new BattleShip(shipSizes[x]);\n\n\t\t\t//This add the new battleship of size x (above) to a part in the array\n\t\t\tplayerBattleShipsList[x] = newPlayerBattleShip;\n\t\t}\n\n\t\t//### Creating battleship to be put in the aiBattleShipsList\n\n\t\tfor (int y = 0; y < shipSizes.length; y ++) \n\t\t{\n\t\t\t//This creates a new battleship of size X from index's of shipSizes\n\t\t\tBattleShip newAIBattleShip = new BattleShip(shipSizes[y]);\n\n\t\t\t//This add the new battleship of size x (above) to a part in the array\n\t\t\taiBattleShipsList[y] = newAIBattleShip;\n\t\t}\n\n\t}",
"private void addSpawnsToList()\n\t{\n\t\tSPAWNS.put(1, new ESSpawn(1, GraciaSeeds.DESTRUCTION, new Location(-245790,220320,-12104), new int[]{TEMPORARY_TELEPORTER}));\n\t\tSPAWNS.put(2, new ESSpawn(2, GraciaSeeds.DESTRUCTION, new Location(-249770,207300,-11952), new int[]{TEMPORARY_TELEPORTER}));\n\t\t//Energy Seeds\n\t\tSPAWNS.put(3, new ESSpawn(3, GraciaSeeds.DESTRUCTION, new Location(-248360,219272,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(4, new ESSpawn(4, GraciaSeeds.DESTRUCTION, new Location(-249448,219256,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(5, new ESSpawn(5, GraciaSeeds.DESTRUCTION, new Location(-249432,220872,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(6, new ESSpawn(6, GraciaSeeds.DESTRUCTION, new Location(-248360,220888,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(7, new ESSpawn(7, GraciaSeeds.DESTRUCTION, new Location(-250088,219256,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(8, new ESSpawn(8, GraciaSeeds.DESTRUCTION, new Location(-250600,219272,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(9, new ESSpawn(9, GraciaSeeds.DESTRUCTION, new Location(-250584,220904,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(10, new ESSpawn(10, GraciaSeeds.DESTRUCTION, new Location(-250072,220888,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(11, new ESSpawn(11, GraciaSeeds.DESTRUCTION, new Location(-253096,217704,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(12, new ESSpawn(12, GraciaSeeds.DESTRUCTION, new Location(-253112,217048,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(13, new ESSpawn(13, GraciaSeeds.DESTRUCTION, new Location(-251448,217032,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(14, new ESSpawn(14, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(15, new ESSpawn(15, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(16, new ESSpawn(16, GraciaSeeds.DESTRUCTION, new Location(-251416,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(17, new ESSpawn(17, GraciaSeeds.DESTRUCTION, new Location(-249752,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(18, new ESSpawn(18, GraciaSeeds.DESTRUCTION, new Location(-249736,217688,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(19, new ESSpawn(19, GraciaSeeds.DESTRUCTION, new Location(-252472,215208,-12120), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(20, new ESSpawn(20, GraciaSeeds.DESTRUCTION, new Location(-252552,216760,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(21, new ESSpawn(21, GraciaSeeds.DESTRUCTION, new Location(-253160,216744,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(22, new ESSpawn(22, GraciaSeeds.DESTRUCTION, new Location(-253128,215160,-12096), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(23, new ESSpawn(23, GraciaSeeds.DESTRUCTION, new Location(-250392,215208,-12120), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(24, new ESSpawn(24, GraciaSeeds.DESTRUCTION, new Location(-250264,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(25, new ESSpawn(25, GraciaSeeds.DESTRUCTION, new Location(-249720,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(26, new ESSpawn(26, GraciaSeeds.DESTRUCTION, new Location(-249752,215128,-12096), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(27, new ESSpawn(27, GraciaSeeds.DESTRUCTION, new Location(-250280,216760,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(28, new ESSpawn(28, GraciaSeeds.DESTRUCTION, new Location(-250344,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(29, new ESSpawn(29, GraciaSeeds.DESTRUCTION, new Location(-252504,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(30, new ESSpawn(30, GraciaSeeds.DESTRUCTION, new Location(-252520,216792,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(31, new ESSpawn(31, GraciaSeeds.DESTRUCTION, new Location(-242520,217272,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(32, new ESSpawn(32, GraciaSeeds.DESTRUCTION, new Location(-241432,217288,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(33, new ESSpawn(33, GraciaSeeds.DESTRUCTION, new Location(-241432,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(34, new ESSpawn(34, GraciaSeeds.DESTRUCTION, new Location(-242536,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(35, new ESSpawn(35, GraciaSeeds.DESTRUCTION, new Location(-240808,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(36, new ESSpawn(36, GraciaSeeds.DESTRUCTION, new Location(-240280,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(37, new ESSpawn(37, GraciaSeeds.DESTRUCTION, new Location(-240280,218952,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(38, new ESSpawn(38, GraciaSeeds.DESTRUCTION, new Location(-240792,218936,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(39, new ESSpawn(39, GraciaSeeds.DESTRUCTION, new Location(-239576,217240,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(40, new ESSpawn(40, GraciaSeeds.DESTRUCTION, new Location(-239560,216168,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(41, new ESSpawn(41, GraciaSeeds.DESTRUCTION, new Location(-237896,216152,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(42, new ESSpawn(42, GraciaSeeds.DESTRUCTION, new Location(-237912,217256,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(43, new ESSpawn(43, GraciaSeeds.DESTRUCTION, new Location(-237896,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(44, new ESSpawn(44, GraciaSeeds.DESTRUCTION, new Location(-239560,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(45, new ESSpawn(45, GraciaSeeds.DESTRUCTION, new Location(-239560,214984,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(46, new ESSpawn(46, GraciaSeeds.DESTRUCTION, new Location(-237896,215000,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(47, new ESSpawn(47, GraciaSeeds.DESTRUCTION, new Location(-237896,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(48, new ESSpawn(48, GraciaSeeds.DESTRUCTION, new Location(-239560,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(49, new ESSpawn(49, GraciaSeeds.DESTRUCTION, new Location(-239544,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(50, new ESSpawn(50, GraciaSeeds.DESTRUCTION, new Location(-237912,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(51, new ESSpawn(51, GraciaSeeds.DESTRUCTION, new Location(-237912,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(52, new ESSpawn(52, GraciaSeeds.DESTRUCTION, new Location(-237912,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(53, new ESSpawn(53, GraciaSeeds.DESTRUCTION, new Location(-239560,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(54, new ESSpawn(54, GraciaSeeds.DESTRUCTION, new Location(-239560,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(55, new ESSpawn(55, GraciaSeeds.DESTRUCTION, new Location(-241960,214536,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(56, new ESSpawn(56, GraciaSeeds.DESTRUCTION, new Location(-241976,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(57, new ESSpawn(57, GraciaSeeds.DESTRUCTION, new Location(-243624,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(58, new ESSpawn(58, GraciaSeeds.DESTRUCTION, new Location(-243624,214520,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(59, new ESSpawn(59, GraciaSeeds.DESTRUCTION, new Location(-241976,212808,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(60, new ESSpawn(60, GraciaSeeds.DESTRUCTION, new Location(-241960,212280,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(61, new ESSpawn(61, GraciaSeeds.DESTRUCTION, new Location(-243624,212264,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(62, new ESSpawn(62, GraciaSeeds.DESTRUCTION, new Location(-243624,212792,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(63, new ESSpawn(63, GraciaSeeds.DESTRUCTION, new Location(-243640,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(64, new ESSpawn(64, GraciaSeeds.DESTRUCTION, new Location(-243624,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(65, new ESSpawn(65, GraciaSeeds.DESTRUCTION, new Location(-241976,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(66, new ESSpawn(66, GraciaSeeds.DESTRUCTION, new Location(-241976,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(67, new ESSpawn(67, GraciaSeeds.DESTRUCTION, new Location(-241976,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(68, new ESSpawn(68, GraciaSeeds.DESTRUCTION, new Location(-241976,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(69, new ESSpawn(69, GraciaSeeds.DESTRUCTION, new Location(-243624,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(70, new ESSpawn(70, GraciaSeeds.DESTRUCTION, new Location(-243624,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(71, new ESSpawn(71, GraciaSeeds.DESTRUCTION, new Location(-241256,208664,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(72, new ESSpawn(72, GraciaSeeds.DESTRUCTION, new Location(-240168,208648,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(73, new ESSpawn(73, GraciaSeeds.DESTRUCTION, new Location(-240168,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(74, new ESSpawn(74, GraciaSeeds.DESTRUCTION, new Location(-241256,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(75, new ESSpawn(75, GraciaSeeds.DESTRUCTION, new Location(-239528,208648,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(76, new ESSpawn(76, GraciaSeeds.DESTRUCTION, new Location(-238984,208664,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(77, new ESSpawn(77, GraciaSeeds.DESTRUCTION, new Location(-239000,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(78, new ESSpawn(78, GraciaSeeds.DESTRUCTION, new Location(-239512,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(79, new ESSpawn(79, GraciaSeeds.DESTRUCTION, new Location(-245064,213144,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(80, new ESSpawn(80, GraciaSeeds.DESTRUCTION, new Location(-245064,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(81, new ESSpawn(81, GraciaSeeds.DESTRUCTION, new Location(-246696,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(82, new ESSpawn(82, GraciaSeeds.DESTRUCTION, new Location(-246696,213160,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(83, new ESSpawn(83, GraciaSeeds.DESTRUCTION, new Location(-245064,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(84, new ESSpawn(84, GraciaSeeds.DESTRUCTION, new Location(-245048,210904,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(85, new ESSpawn(85, GraciaSeeds.DESTRUCTION, new Location(-246712,210888,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(86, new ESSpawn(86, GraciaSeeds.DESTRUCTION, new Location(-246712,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(87, new ESSpawn(87, GraciaSeeds.DESTRUCTION, new Location(-245048,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(88, new ESSpawn(88, GraciaSeeds.DESTRUCTION, new Location(-245064,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(89, new ESSpawn(89, GraciaSeeds.DESTRUCTION, new Location(-246696,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(90, new ESSpawn(90, GraciaSeeds.DESTRUCTION, new Location(-246712,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(91, new ESSpawn(91, GraciaSeeds.DESTRUCTION, new Location(-245048,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(92, new ESSpawn(92, GraciaSeeds.DESTRUCTION, new Location(-245048,207288,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(93, new ESSpawn(93, GraciaSeeds.DESTRUCTION, new Location(-246696,207304,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(94, new ESSpawn(94, GraciaSeeds.DESTRUCTION, new Location(-246712,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(95, new ESSpawn(95, GraciaSeeds.DESTRUCTION, new Location(-244328,207272,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(96, new ESSpawn(96, GraciaSeeds.DESTRUCTION, new Location(-243256,207256,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(97, new ESSpawn(97, GraciaSeeds.DESTRUCTION, new Location(-243256,205624,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(98, new ESSpawn(98, GraciaSeeds.DESTRUCTION, new Location(-244328,205608,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(99, new ESSpawn(99, GraciaSeeds.DESTRUCTION, new Location(-242616,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(100, new ESSpawn(100, GraciaSeeds.DESTRUCTION, new Location(-242104,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(101, new ESSpawn(101, GraciaSeeds.DESTRUCTION, new Location(-242088,205624,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(102, new ESSpawn(102, GraciaSeeds.DESTRUCTION, new Location(-242600,205608,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\t// Seed of Annihilation\n\t\tSPAWNS.put(103, new ESSpawn(103, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184519,183007,-10456), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(104, new ESSpawn(104, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184873,181445,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(105, new ESSpawn(105, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180962,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(106, new ESSpawn(106, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185321,181641,-10448), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(107, new ESSpawn(107, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184035,182775,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(108, new ESSpawn(108, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185433,181935,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(109, new ESSpawn(109, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183309,183007,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(110, new ESSpawn(110, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181886,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(111, new ESSpawn(111, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180392,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(112, new ESSpawn(112, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183793,183239,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(113, new ESSpawn(113, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184245,180848,-10464), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(114, new ESSpawn(114, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-182704,183761,-10528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(115, new ESSpawn(115, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184705,181886,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(116, new ESSpawn(116, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184304,181076,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(117, new ESSpawn(117, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183596,180430,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(118, new ESSpawn(118, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184422,181038,-10480), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(119, new ESSpawn(119, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181543,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(120, new ESSpawn(120, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184398,182891,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(121, new ESSpawn(121, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182848,-10584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(122, new ESSpawn(122, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178104,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(123, new ESSpawn(123, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177274,182284,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(124, new ESSpawn(124, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177772,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(125, new ESSpawn(125, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181532,180364,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(126, new ESSpawn(126, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181802,180276,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(127, new ESSpawn(127, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,180444,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(128, new ESSpawn(128, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182190,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(129, new ESSpawn(129, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177357,181908,-10576), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(130, new ESSpawn(130, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178747,179534,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(131, new ESSpawn(131, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,179534,-10392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(132, new ESSpawn(132, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178853,180094,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(133, new ESSpawn(133, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181937,179660,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(134, new ESSpawn(134, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-180992,179572,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(135, new ESSpawn(135, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185552,179252,-10368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(136, new ESSpawn(136, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178913,-10400), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(137, new ESSpawn(137, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184768,178348,-10312), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(138, new ESSpawn(138, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178574,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(139, new ESSpawn(139, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185062,178913,-10384), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(140, new ESSpawn(140, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181397,179484,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(141, new ESSpawn(141, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181667,179044,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(142, new ESSpawn(142, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185258,177896,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(143, new ESSpawn(143, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183506,176570,-10280), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(144, new ESSpawn(144, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183719,176804,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(145, new ESSpawn(145, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183648,177116,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(146, new ESSpawn(146, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183932,176492,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(147, new ESSpawn(147, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183861,176570,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(148, new ESSpawn(148, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183790,175946,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(149, new ESSpawn(149, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178641,179604,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(150, new ESSpawn(150, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178959,179814,-10432), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(151, new ESSpawn(151, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176367,178456,-10376), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(152, new ESSpawn(152, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175845,177172,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(153, new ESSpawn(153, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175323,177600,-10248), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(154, new ESSpawn(154, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174975,177172,-10216), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(155, new ESSpawn(155, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176019,178242,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(156, new ESSpawn(156, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174801,178456,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(157, new ESSpawn(157, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185648,183384,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(158, new ESSpawn(158, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186740,180908,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(159, new ESSpawn(159, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185297,184658,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(160, new ESSpawn(160, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185697,181601,-15488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(161, new ESSpawn(161, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186684,182744,-15536), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(162, new ESSpawn(162, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184908,183384,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(163, new ESSpawn(163, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185572,-15784), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(164, new ESSpawn(164, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185796,182616,-15608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(165, new ESSpawn(165, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184970,184385,-15648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(166, new ESSpawn(166, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185995,180809,-15512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(167, new ESSpawn(167, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182872,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(168, new ESSpawn(168, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185624,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(169, new ESSpawn(169, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184486,185774,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(170, new ESSpawn(170, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186496,184112,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(171, new ESSpawn(171, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184232,185976,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(172, new ESSpawn(172, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185673,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(173, new ESSpawn(173, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185733,184203,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(174, new ESSpawn(174, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185079,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(175, new ESSpawn(175, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184803,180710,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(176, new ESSpawn(176, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186293,180413,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(177, new ESSpawn(177, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182936,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(178, new ESSpawn(178, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184356,180611,-15496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(179, new ESSpawn(179, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185375,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(180, new ESSpawn(180, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184867,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(181, new ESSpawn(181, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180553,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(182, new ESSpawn(182, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180422,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(183, new ESSpawn(183, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181863,181138,-15120), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(184, new ESSpawn(184, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181732,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(185, new ESSpawn(185, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180684,180397,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(186, new ESSpawn(186, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-182256,180682,-15112), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(187, new ESSpawn(187, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,179492,-15392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(188, new ESSpawn(188, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(189, new ESSpawn(189, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186028,178856,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(190, new ESSpawn(190, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185224,179068,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(191, new ESSpawn(191, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(192, new ESSpawn(192, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(193, new ESSpawn(193, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180619,178855,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(194, new ESSpawn(194, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180255,177892,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(195, new ESSpawn(195, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185804,176472,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(196, new ESSpawn(196, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184580,176370,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(197, new ESSpawn(197, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184308,176166,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(198, new ESSpawn(198, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-183764,177186,-15304), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(199, new ESSpawn(199, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180801,177571,-15144), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(200, new ESSpawn(200, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184716,176064,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(201, new ESSpawn(201, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184444,175452,-15296), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(202, new ESSpawn(202, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,177464,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(203, new ESSpawn(203, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,178213,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(204, new ESSpawn(204, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-179982,178320,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(205, new ESSpawn(205, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176925,177757,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(206, new ESSpawn(206, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176164,179282,-15720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(207, new ESSpawn(207, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,177613,-15800), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(208, new ESSpawn(208, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175418,178117,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(209, new ESSpawn(209, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176103,177829,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(210, new ESSpawn(210, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175966,177325,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(211, new ESSpawn(211, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174778,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(212, new ESSpawn(212, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,178261,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(213, new ESSpawn(213, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176038,179192,-15736), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(214, new ESSpawn(214, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175660,179462,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(215, new ESSpawn(215, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175912,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(216, new ESSpawn(216, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175156,180182,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(217, new ESSpawn(217, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182059,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(218, new ESSpawn(218, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175590,181478,-15640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(219, new ESSpawn(219, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174510,181561,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(220, new ESSpawn(220, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182391,-15688), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(221, new ESSpawn(221, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174105,182806,-15672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(222, new ESSpawn(222, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174645,182806,-15712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(223, new ESSpawn(223, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214962,182403,-10992), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(224, new ESSpawn(224, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-215019,182493,-11000), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(225, new ESSpawn(225, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211374,180793,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(226, new ESSpawn(226, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211198,180661,-11680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(227, new ESSpawn(227, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213097,178936,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(228, new ESSpawn(228, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213517,178936,-12712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(229, new ESSpawn(229, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214105,179191,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(230, new ESSpawn(230, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213769,179446,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(231, new ESSpawn(231, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214021,179344,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(232, new ESSpawn(232, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210582,180595,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(233, new ESSpawn(233, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210934,180661,-11696), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(234, new ESSpawn(234, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207058,178460,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(235, new ESSpawn(235, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207454,179151,-11368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(236, new ESSpawn(236, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207422,181365,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(237, new ESSpawn(237, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207358,180627,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(238, new ESSpawn(238, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207230,180996,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(239, new ESSpawn(239, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208515,184160,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(240, new ESSpawn(240, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207613,184000,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(241, new ESSpawn(241, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208597,183760,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(242, new ESSpawn(242, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206710,176142,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(243, new ESSpawn(243, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206361,178136,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(244, new ESSpawn(244, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206178,178630,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(245, new ESSpawn(245, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205738,178715,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(246, new ESSpawn(246, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206442,178205,-12648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(247, new ESSpawn(247, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206585,178874,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(248, new ESSpawn(248, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206073,179366,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(249, new ESSpawn(249, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206009,178628,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(250, new ESSpawn(250, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206155,181301,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(251, new ESSpawn(251, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206595,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(252, new ESSpawn(252, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(253, new ESSpawn(253, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181471,-12640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(254, new ESSpawn(254, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206974,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(255, new ESSpawn(255, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206304,175130,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(256, new ESSpawn(256, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206886,175802,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(257, new ESSpawn(257, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207238,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(258, new ESSpawn(258, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,174857,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(259, new ESSpawn(259, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,175039,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(260, new ESSpawn(260, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205976,174584,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(261, new ESSpawn(261, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207367,184320,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(262, new ESSpawn(262, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219002,180419,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(263, new ESSpawn(263, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,182790,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(264, new ESSpawn(264, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,183343,-12600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(265, new ESSpawn(265, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186247,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(266, new ESSpawn(266, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186083,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(267, new ESSpawn(267, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-217574,185796,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(268, new ESSpawn(268, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219178,181051,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(269, new ESSpawn(269, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220171,180313,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(270, new ESSpawn(270, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219293,183738,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(271, new ESSpawn(271, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219381,182553,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(272, new ESSpawn(272, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219600,183024,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(273, new ESSpawn(273, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219940,182680,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(274, new ESSpawn(274, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219260,183884,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(275, new ESSpawn(275, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219855,183540,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(276, new ESSpawn(276, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218946,186575,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(277, new ESSpawn(277, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219882,180103,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(278, new ESSpawn(278, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219266,179787,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(279, new ESSpawn(279, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178337,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(280, new ESSpawn(280, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,179875,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(281, new ESSpawn(281, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,180021,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(282, new ESSpawn(282, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219989,179437,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(283, new ESSpawn(283, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219078,178298,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(284, new ESSpawn(284, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218684,178954,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(285, new ESSpawn(285, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219089,178456,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(286, new ESSpawn(286, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220266,177623,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(287, new ESSpawn(287, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178025,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(288, new ESSpawn(288, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219142,177044,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(289, new ESSpawn(289, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219690,177895,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(290, new ESSpawn(290, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219754,177623,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(291, new ESSpawn(291, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218791,177830,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(292, new ESSpawn(292, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218904,176219,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(293, new ESSpawn(293, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218768,176384,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(294, new ESSpawn(294, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177626,-11320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(295, new ESSpawn(295, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177792,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(296, new ESSpawn(296, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219880,175901,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(297, new ESSpawn(297, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219210,176054,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(298, new ESSpawn(298, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219850,175991,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(299, new ESSpawn(299, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219079,175021,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(300, new ESSpawn(300, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218812,174229,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(301, new ESSpawn(301, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218723,174669,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\t//@formatter:on\n\t}",
"private static Pool setUpPool(String name, double volume, double temp,\n double pH, double nutrientCoefficient, GuppySet startingGuppies) {\n Pool pool = new Pool(name, volume, temp, pH, nutrientCoefficient);\n\n pool.addFish(startingGuppies.generateGuppies());\n\n return pool;\n }",
"void makeDragon() {\n new BukkitRunnable() {\n int i = 555;\n\n @Override\n public void run() {\n Set<BlockData> set = create.get(i);\n for (BlockData blockData : set) {\n blockData.setBlock();\n }\n\n i++;\n if (i > 734) {\n cancel();\n }\n }\n }.runTaskTimer(Main.plugin, 0, 2);\n // Location end = new Location(Bukkit.getWorld(\"world\"), 3, 254, 733);\n }",
"public AgentMovementLocation loadAgentMoventImages(String id);",
"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 }",
"public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }",
"public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n } catch (MultiplePlayersException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (pcs != null) {\r\n pcs = pcs.stream().filter(pc -> campaign.getPcs().stream().anyMatch(\r\n campaignPc -> campaignPc.getId().equalsIgnoreCase(pc.getId())\r\n )).collect(Collectors.toList());\r\n\r\n for (Pc pc : pcs) {\r\n SortedMap<String, String> items = getTileItems(pc);\r\n Tile tile = new Tile(pc.getId(), pc.getName(), items);\r\n tile.setOnMouseClicked(mouseEvent -> {\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), tile.getObjectId());\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n parentController.updateSession(sessionService.getCurrentSession());\r\n parentController.switchView();\r\n });\r\n tilePane.getChildren().add(tile);\r\n }\r\n }\r\n }",
"private void addToBag2(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag2.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}",
"public void createPieces(){ \n\t\tfor(int x = 0; x<BOARD_LENGTH; x++){\n\t\t\tfor(int y = 0; y<BOARD_LENGTH; y++){ \n\t\t\t\tif(CHESS_MAP[x][y] != (null)){\n\t\t\t\t\tswitch (CHESS_MAP[x][y]){\n\t\t\t\t\tcase KING:\n\t\t\t\t\t\tpieces[pieceCounter] = new King(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUEEN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Queen(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BISHOP:\n\t\t\t\t\t\tpieces[pieceCounter] = new Bishop(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KNIGHT:\n\t\t\t\t\t\tpieces[pieceCounter] = new Knight(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PAWN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Pawn(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ROOK:\n\t\t\t\t\t\tpieces[pieceCounter] = new Rook(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} \n\t\t\t\t\tsetPieceIconAndName(x, y, CHESS_MAP[x][y]); \t\n\t\t\t\t\tpieceCounter++;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}",
"private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }",
"public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }",
"private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}",
"public ArrayList<Target> getAlienPlaces(BlipModel model)\r\n/* 434: */ {\r\n/* 435:515 */ int angle = (int)model.getAngle();\r\n/* 436:516 */ float x = model.getX() - 0.5F;\r\n/* 437:517 */ float y = model.getY() - 0.5F;\r\n/* 438: */ \r\n/* 439:519 */ ArrayList<Target> targets = new ArrayList();\r\n/* 440:521 */ if (checkAlienPlacementTile(x, y)) {\r\n/* 441:523 */ targets.add(new Target(x, y));\r\n/* 442: */ }\r\n/* 443:525 */ if (checkAlienPlacementTile(x, y + 1.0F)) {\r\n/* 444:527 */ targets.add(new Target(x, y + 1.0F));\r\n/* 445: */ }\r\n/* 446:529 */ if (checkAlienPlacementTile(x, y - 1.0F)) {\r\n/* 447:531 */ targets.add(new Target(x, y - 1.0F));\r\n/* 448: */ }\r\n/* 449:533 */ if (checkAlienPlacementTile(x + 1.0F, y)) {\r\n/* 450:535 */ targets.add(new Target(x + 1.0F, y));\r\n/* 451: */ }\r\n/* 452:537 */ if (checkAlienPlacementTile(x - 1.0F, y)) {\r\n/* 453:539 */ targets.add(new Target(x - 1.0F, y));\r\n/* 454: */ }\r\n/* 455:541 */ if (checkAlienPlacementTile(x + 1.0F, y + 1.0F)) {\r\n/* 456:543 */ targets.add(new Target(x + 1.0F, y + 1.0F));\r\n/* 457: */ }\r\n/* 458:545 */ if (checkAlienPlacementTile(x - 1.0F, y + 1.0F)) {\r\n/* 459:547 */ targets.add(new Target(x - 1.0F, y + 1.0F));\r\n/* 460: */ }\r\n/* 461:549 */ if (checkAlienPlacementTile(x + 1.0F, y - 1.0F)) {\r\n/* 462:551 */ targets.add(new Target(x + 1.0F, y - 1.0F));\r\n/* 463: */ }\r\n/* 464:553 */ if (checkAlienPlacementTile(x - 1.0F, y - 1.0F)) {\r\n/* 465:555 */ targets.add(new Target(x - 1.0F, y - 1.0F));\r\n/* 466: */ }\r\n/* 467:558 */ return targets;\r\n/* 468: */ }",
"public void createPile(int id, String name) {\n\t\tif (mTable.get(id) != null) {\n\t\t\treturn; // There was already a pile there\n\t\t}\n\t\t// Check that the name is unique and that it\n\t\tif (pileNames.contains(name)) {\n\t\t\treturn;\n\t\t} else if (name.equals(\"Pile \" + pileNo)) {\n \t\t\tpileNo++;\n \t\t\tgs.setDefaultPileNo(pileNo);\n \t\t}\n\t\t// Make a new Pile object and set() it in the list\n \t\tmTable.set(id, new Pile(name));\n \t\tpileNames.add(name);\n \t\tsendUpdatedState();\n \t}",
"private void createInstances()\n {\n Room EnchantedForest, IdyllicGlade, GumdropHill, DenseWoods, VolcanoHell, SecretHotSpring, MagmaChamber, MysteriousCloud, SkyParadise, Cirrostratus, Nimbostratus, Stratocumulus, WaterTemple, Whirlpool, EyeoftheStorm, BossQuarters, Portal;\n \n random = new Random();\n allrooms = new ArrayList<Room>();\n \n // create the rooms providing an ID to be passed into the room constructor\n EnchantedForest = new EnchantedForestRoom();\n allrooms.add(EnchantedForest);\n IdyllicGlade = new IdyllicGladeRoom();\n allrooms.add(IdyllicGlade);\n GumdropHill = new GumdropHillRoom();\n allrooms.add(GumdropHill);\n DenseWoods = new DenseWoodsRoom();\n allrooms.add(DenseWoods);\n VolcanoHell = new VolcanoHellRoom();\n allrooms.add(VolcanoHell);\n SecretHotSpring = new SecretHotSpringRoom();\n allrooms.add(SecretHotSpring);\n MagmaChamber = new MagmaChamberRoom();\n allrooms.add(MagmaChamber);\n MysteriousCloud = new MysteriousCloudRoom();\n allrooms.add(MysteriousCloud);\n SkyParadise = new SkyParadiseRoom();\n allrooms.add(SkyParadise);\n Cirrostratus = new CirrostratusRoom();\n allrooms.add(Cirrostratus);\n Nimbostratus = new NimbostratusRoom();\n allrooms.add(Nimbostratus);\n Stratocumulus = new StratocumulusRoom();\n allrooms.add(Stratocumulus);\n WaterTemple = new WaterTempleRoom();\n allrooms.add(WaterTemple);\n Whirlpool = new WhirlpoolRoom();\n allrooms.add(Whirlpool);\n EyeoftheStorm = new EyeoftheStormRoom();\n allrooms.add(EyeoftheStorm);\n BossQuarters = new BossQuartersRoom(); \n allrooms.add(BossQuarters);\n Portal = new PortalRoom();\n \n \n // initialise room exits, items and creatures\n EnchantedForest.setExit(\"east\", IdyllicGlade);\n EnchantedForest.setExit(\"west\", GumdropHill);\n EnchantedForest.setExit(\"south\", DenseWoods);\n \n IdyllicGlade.setExit(\"west\", EnchantedForest);\n \n GumdropHill.setExit(\"down\", EnchantedForest);\n GumdropHill.setExit(\"up\", MysteriousCloud);\n\n DenseWoods.setExit(\"north\", EnchantedForest);\n DenseWoods.setExit(\"south\", VolcanoHell);\n \n MagmaChamber.setExit(\"north\",VolcanoHell);\n \n VolcanoHell.setExit(\"east\", SecretHotSpring);\n VolcanoHell.setExit(\"north\", DenseWoods);\n VolcanoHell.setExit(\"west\", MysteriousCloud);\n VolcanoHell.setExit(\"south\", MagmaChamber);\n \n SecretHotSpring.setExit(\"west\", VolcanoHell);\n \n MysteriousCloud.setExit(\"west\", VolcanoHell);\n MysteriousCloud.setExit(\"in\", Portal);\n MysteriousCloud.setExit(\"up\", SkyParadise);\n \n SkyParadise.setExit(\"down\", MysteriousCloud);\n SkyParadise.setExit(\"up\", Cirrostratus);\n SkyParadise.setExit(\"east\", Nimbostratus);\n \n Cirrostratus.setExit(\"north\", SkyParadise);\n Cirrostratus.setExit(\"down\", WaterTemple);\n \n Nimbostratus.setExit(\"west\", SkyParadise);\n Nimbostratus.setExit(\"east\", Stratocumulus);\n \n Stratocumulus.setExit(\"west\", Nimbostratus);\n Stratocumulus.setExit(\"down\", WaterTemple);\n \n WaterTemple.setExit(\"up\",Stratocumulus);\n WaterTemple.setExit(\"high\", Cirrostratus);\n WaterTemple.setExit(\"down\", Whirlpool);\n WaterTemple.setExit(\"in\", BossQuarters);\n \n Whirlpool.setExit(\"up\", WaterTemple);\n Whirlpool.setExit(\"down\", EyeoftheStorm);\n \n EyeoftheStorm.setExit(\"up\", Whirlpool);\n EyeoftheStorm.setExit(\"in\", BossQuarters);\n \n BossQuarters.setExit(\"out\", WaterTemple);\n \n currentRoom = EnchantedForest; \n }",
"public void findImages() {\n URL imgURL = ImageLoader.class.getResource(\"/BackgroundMenu.jpg\");\n this.backgroundImages.put(MenuP.TITLE, loadImage(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/backgroundGame.png\");\n this.backgroundImages.put(ArenaView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/gameOver.jpg\");\n this.backgroundImages.put(GameOverView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Player.png\");\n this.entityImages.put(ID.PLAYER, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Enemy1.png\");\n this.entityImages.put(ID.BASIC_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/boss.png\");\n this.entityImages.put(ID.BOSS_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/meteorBrown_big1.png\");\n this.entityImages.put(ID.METEOR, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/BlueBullet.png\");\n this.bulletImages.put(new Pair<>(ID.PLAYER_BULLET, ID.PLAYER), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/redBullet.png\");\n this.entityImages.put(ID.ENEMY_BULLET, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_FireBoost.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Freeze.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL)); \n \n imgURL = ImageLoader.class.getResource(\"/powerup_Health.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.HEALTH), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Shield.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.SHIELD), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/bulletSpeedUp.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadEffect(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Explosion.png\");\n this.AnimationsEffect.put(new Pair<>(ID.EFFECT, SpecialEffectT.EXPLOSION), loadEffect(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/freeze.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL));\n }",
"public void Define() {\n manager = new Manager(); // Initialize other classes\n save = new Save();\n store = new Store();\n menu = new Menu();\n postgame = new PostGame();\n\n map = new ImageIcon(\"res/map.png\").getImage(); // Load background image\n \t\n \n // Load the track image\n track = new ImageIcon(\"res/TrackCorner.png\").getImage(); // Initialize the track image file\n \n // Load images for the towers\n tileset_towers[0] = new ImageIcon(\"res/redlasertower.png\").getImage();\n tileset_towers[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_towers[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n \n // Load images for the indicators\n tileset_indicators[0] = new ImageIcon(\"res/button.png\").getImage();\n tileset_indicators[1] = new ImageIcon(\"res/money.png\").getImage();\n tileset_indicators[2] = new ImageIcon(\"res/heart.png\").getImage();\n \n // Load images for the buttons\n tileset_buttons[0] = new ImageIcon(\"res/redLaserTower.png\").getImage();\n tileset_buttons[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_buttons[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n tileset_buttons[3] = new ImageIcon(\"res/trash.png\").getImage();\n \n // Load images for the solider\n tileset_soldier[0] = new ImageIcon(\"res/enemyD1.png\").getImage();\n tileset_soldier[1] = new ImageIcon(\"res/enemyD2.png\").getImage();\n \n tileset_soldier[2] = new ImageIcon(\"res/enemyR1.png\").getImage();\n tileset_soldier[3] = new ImageIcon(\"res/enemyR2.png\").getImage();\n \n tileset_soldier[4] = new ImageIcon(\"res/enemyL1.png\").getImage();\n tileset_soldier[5] = new ImageIcon(\"res/enemyL2.png\").getImage();\n \n tileset_soldier[6] = new ImageIcon(\"res/enemyU1.png\").getImage();\n tileset_soldier[7] = new ImageIcon(\"res/enemyU2.png\").getImage();\n \n // Save the configuration of the track\n save.loadSave(new File(\"save/mission.txt\"));\n save.loadHighScore();\n \n // Initialize enemy objects\n for(int i = 0; i < enemies.length; i++) {\n \tenemies[i] = new Enemy();\n }\n \n }",
"@Override\n\tprotected BufferedImage getButtonImage(ArrayList<Double> phenotype, int width, int height,\n\t\t\tdouble[] inputMultipliers) {\n\t\tdouble[] doubleArray = ArrayUtil.doubleArrayFromList(phenotype);\n\t\tList<List<Integer>> level = levelListRepresentation(doubleArray);\n\t\t//sets the height and width for the rendered level to be placed on the button \n\t\tint width1 = LodeRunnerRenderUtil.RENDERED_IMAGE_WIDTH;\n\t\tint height1 = LodeRunnerRenderUtil.RENDERED_IMAGE_HEIGHT;\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\t//if we are using the mapping with 7 tiles, other wise use 6 tiles \n\t\t\t// ACTUALLY: We can have extra unused tiles in the image array. Easier to have one method that keeps them all around\n\t\t\t//\t\t\tif(Parameters.parameters.booleanParameter(\"lodeRunnerDistinguishesSolidAndDiggableGround\")){\n\t\t\tList<Point> emptySpaces = LodeRunnerGANUtil.fillEmptyList(level);\n\t\t\tRandom rand = new Random(Double.doubleToLongBits(doubleArray[0]));\n\t\t\tLodeRunnerGANUtil.setSpawn(level, emptySpaces, rand);\n\t\t\tif(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerSolutionPaths\")) {\n\t\t\t\tList<List<Integer>> originalLevel = ListUtil.deepCopyListOfLists(level);\n\t\t\t\tLodeRunnerState start = new LodeRunnerState(level);\n\t\t\t\t//\t\t\t\tSystem.out.println(level);\n\t\t\t\tSearch<LodeRunnerAction,LodeRunnerState> search = new AStarSearch<>(LodeRunnerState.manhattanToFarthestGold);\n\t\t\t\tHashSet<LodeRunnerState> mostRecentVisited = null;\n\t\t\t\tArrayList<LodeRunnerAction> actionSequence = null;\n\t\t\t\ttry {\n\t\t\t\t\t//tries to find a solution path to solve the level, tries as many time as specified by the last int parameter \n\t\t\t\t\t//represented by red x's in the visualization \n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(level);\n\t\t\t\t\t\tactionSequence = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).search(start, true, Parameters.parameters.integerParameter(\"aStarSearchBudget\"));\n\t\t\t\t\t} else if(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_TSP){\n\t\t\t\t\t\tPair<ArrayList<LodeRunnerAction>, HashSet<LodeRunnerState>> tspInfo = LodeRunnerTSPUtil.getFullActionSequenceAndVisitedStatesTSPGreedySolution(originalLevel);\n\t\t\t\t\t\tactionSequence = tspInfo.t1;\n\t\t\t\t\t\tmostRecentVisited = tspInfo.t2;\n\t\t\t\t\t\t//System.out.println(\"actionSequence: \"+ actionSequence);\n\t\t\t\t\t\t//System.out.println(\"mostRecentVisited: \"+mostRecentVisited);\n\t\t\t\t\t} \n\t\t\t\t\telse throw new IllegalArgumentException(\"Parameter is not either 1 or 0\");\n\t\t\t\t} catch(IllegalStateException e) {\n\t\t\t\t\tSystem.out.println(\"search exceeded computation budget\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch(OutOfMemoryError e) {\n\t\t\t\t\tSystem.out.println(\"search ran out of memory\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\t// Even if search fails, still try to get visited states.\n\t\t\t\t\t// Need this here because A* fails with Exception\n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//get all of the visited states, all of the x's are in this set but the white ones are not part of solution path \n\t\t\t\t\t\tmostRecentVisited = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).getVisited();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\t//visualizes the points visited with red and whit x's\n\t\t\t\t\timage = LodeRunnerState.vizualizePath(level,mostRecentVisited,actionSequence,start);\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerIceCreamYouVisualization\")) {\n\t\t\t\tBufferedImage[] iceCreamYouImages = LodeRunnerRenderUtil.loadIceCreamYouTiles(LodeRunnerRenderUtil.ICE_CREAM_YOU_TILE_PATH);\n\t\t\t\timage = LodeRunnerRenderUtil.createIceCreamYouImage(level, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_WIDTH, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_HEIGHT, iceCreamYouImages);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tBufferedImage[] images = LodeRunnerRenderUtil.loadImagesNoSpawnTwoGround(LodeRunnerRenderUtil.LODE_RUNNER_TILE_PATH); //all tiles \n\t\t\t\timage = LodeRunnerRenderUtil.createBufferedImage(level,width1,height1, images);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t}\n\t\treturn image;\n\t}",
"public static List<Location> generateLocations() {\n\t\tList<Location> locations = new ArrayList<Location>();\n\t\t\n\t\tfor(AREA area : AREA.values()) {\n\t\t\tLocation l = new Location(area);\n\t\t\t\n\t\t\tswitch (area) {\n\t\t\tcase Study:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Hall:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Lounge:\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Library:\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase BilliardRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase DiningRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Conservatory:\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Ballroom:\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Kitchen:\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase HW_SH:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tbreak;\n\t\t\tcase HW_HL:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tbreak;\n\t\t\tcase HW_SL:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tbreak;\n\t\t\tcase HW_HB:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LD:\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LB:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BD:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LC:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tbreak;\n\t\t\tcase HW_BB:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_DK:\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\tcase HW_CB:\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BK:\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlocations.add(l);\n\t\t}\n\t\t\n\t\treturn locations;\n\t}",
"private void prepare()\n {\n Block block = new Block(10);\n addObject(block,372,150);\n Wall wall = new Wall();\n addObject(wall,52,167);\n Wall wall2 = new Wall();\n addObject(wall2,160,167);\n Wall wall3 = new Wall();\n addObject(wall3,550,167);\n Wall wall4 = new Wall();\n addObject(wall4,650,167);\n Wall wall5 = new Wall();\n addObject(wall5,750,167);\n block.setLocation(306,171);\n Robot robot = new Robot();\n addObject(robot,48,51);\n Pizza pizza = new Pizza();\n addObject(pizza,550,60);\n Pizza pizza2 = new Pizza();\n addObject(pizza2,727,53);\n Pizza pizza3 = new Pizza();\n addObject(pizza3,364,303);\n Pizza pizza4 = new Pizza();\n addObject(pizza4,224,400);\n Pizza pizza5 = new Pizza();\n addObject(pizza5,622,395);\n ScorePanel scorePanel = new ScorePanel();\n addObject(scorePanel,106,525);\n Home home = new Home();\n addObject(home,717,521);\n\n block.setLocation(344,173);\n pizza3.setLocation(394,297);\n Pizza pizza6 = new Pizza();\n addObject(pizza6,711,265);\n Pizza pizza7 = new Pizza();\n addObject(pizza7,68,276);\n\n }",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}",
"public void generateImage(int imageId, int resolution){\n String openUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/\"+imageId+ \".jpg\";\n String saveUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/tmp\";\n String saveName=String.format(\"%d_%d\", imageId, resolution);\n ImageDeal imageDeal = new ImageDeal(openUrl, saveUrl, saveName, \"jpg\");\n try{\n imageDeal.mosaic((int)Math.floor(264/resolution));\n //Thread.currentThread().sleep(1000);\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.printf(\"Image: %d Resolution: %d was generated.\\n\", imageId, resolution);\n }",
"public StoneSummon() {\n// ArrayList<BufferedImage> images = SprssssssaasssssaddddddddwiteUtils.loadImages(\"\"\n createStones();\n\n }",
"public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}",
"private void fillImageMap() {\n Image shipImage;\n try {\n shipImage = ImageIO.read(getClass().getResource(\"img/patrol_boat.png\"));\n imageMap.put(ShipType.PATROL_BOAT, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/patrol_boat_sunken.png\"));\n imageMap.put(ShipType.PATROL_BOAT_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_horizontal.gif\"));\n imageMap.put(ShipType.CRUISER_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_horizontal_sunken.gif\"));\n imageMap.put(ShipType.CRUISER_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_vertical.gif\"));\n imageMap.put(ShipType.CRUISER_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_vertical_sunken.gif\"));\n imageMap.put(ShipType.CRUISER_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_horizontal.gif\"));\n imageMap.put(ShipType.SUBMARINE_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_horizontal_sunken.gif\"));\n imageMap.put(ShipType.SUBMARINE_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_vertical.gif\"));\n imageMap.put(ShipType.SUBMARINE_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_vertical_sunken.gif\"));\n imageMap.put(ShipType.SUBMARINE_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_horizontal.gif\"));\n imageMap.put(ShipType.BATTLESHIP_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_horizontal_sunken.gif\"));\n imageMap.put(ShipType.BATTLESHIP_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_vertical.gif\"));\n imageMap.put(ShipType.BATTLESHIP_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_vertical_sunken.gif\"));\n imageMap.put(ShipType.BATTLESHIP_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_horizontal.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_horizontal_sunken.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_vertical.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_vertical_sunken.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_VERTICAL_SUNKEN, shipImage);\n } catch(IOException e) {\n e.printStackTrace();\n }\n }",
"public static void loadImages(){\n\t\tsetPath(main.getShop().inventory.getEquipID());\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"res/world/bg.png\"));\n\t\t\tterrain = ImageIO.read(new File(\"res/world/solids.png\"));\n\t\t\t// Character and Armour\n\t\t\tcharacters = ImageIO.read(new File(\"res/world/char3.png\"));\n\t\t\tcharactersHead =ImageIO.read(new File(\"res/world/charhead\"+path[0]+\".png\"));\n\t\t\tcharactersTop = ImageIO.read(new File(\"res/world/chartop\"+path[2]+\".png\"));\n\t\t\tcharactersShoulder = ImageIO.read(new File(\"res/world/charshoulders\"+path[3]+\".png\"));\n\t\t\tcharactersHand = ImageIO.read(new File(\"res/world/charhands\"+path[5]+\".png\"));\n\t\t\tcharactersBottom = ImageIO.read(new File(\"res/world/charbottom\"+path[8]+\".png\"));\n\t\t\tcharactersShoes = ImageIO.read(new File(\"res/world/charshoes\"+path[9]+\".png\"));\n\t\t\tcharactersBelt = ImageIO.read(new File(\"res/world/charBelt\"+path[4]+\".png\"));\n\n\t\t\tweaponBow = ImageIO.read(new File(\"res/world/bow.png\"));\n\t\t\tweaponArrow = ImageIO.read(new File(\"res/world/arrow.png\"));\n\t\t\tweaponSword = ImageIO.read(new File(\"res/world/sword.png\"));\n\t\t\titems = ImageIO.read(new File(\"res/world/items.png\"));\n\t\t\tnpc = ImageIO.read(new File(\"res/world/npc.png\"));\n\t\t\thealth = ImageIO.read(new File(\"res/world/health.png\"));\n\t\t\tenemies = ImageIO.read(new File(\"res/world/enemies.png\"));\n\t\t\tcoin = ImageIO.read(new File(\"res/world/coin.png\"));\n\t\t\tmana = ImageIO.read(new File(\"res/world/mana.gif\"));\n\t\t\tarrowP = ImageIO.read(new File(\"res/world/arrowP.png\"));\n\t\t\tbutton = ImageIO.read(new File(\"res/world/button.png\"));\n\t\t\tblood = ImageIO.read(new File(\"res/world/blood.png\"));\n\t\t\tarrowDisp = ImageIO.read(new File(\"res/world/arrowDisp.png\"));\n\t\t\tboss1 = ImageIO.read(new File(\"res/world/boss1.png\"));\n\t\t\tmagic = ImageIO.read(new File(\"res/world/magic.png\"));\n\t\t\tmainMenu = ImageIO.read(new File(\"res/world/MainMenu.png\"));\n\t\t\tinstructions = ImageIO.read(new File(\"res/world/instructions.png\"));\n\t\t\trespawn = ImageIO.read(new File(\"res/world/respawn.png\"));\n\t\t\tinventory = ImageIO.read(new File(\"res/world/inventory.png\"));\n shop = ImageIO.read(new File(\"res/world/shop.png\"));\n dizzy = ImageIO.read(new File(\"res/world/dizzy.png\"));\n pet = ImageIO.read(new File(\"res/world/pet.png\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Loading Images\");\n\t\t}\n\t}",
"public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }",
"private void createGWBuildings()\n\t{\n\t\t//Generate block 0 (50x50)\n\t\t//(7,7)-(57,57)\n\t\tmakeBlocker0();\n\n\t\t//Generate block 1 (50x50)\n\t\t//(64,7)-(114,57)\n\t\tmakeSEH();\n\t\tmakeFullBright();\n\t\tmakeKennedy();\n\t\tmakeMunson();\n\n\t\t//Generate block 2 (80x50)\n\t\t//(121,7)-(201,57)\n\t\tmakeAcademicCenter();\n\t\tmakeRomePhilips();\n\t\tmakeDistrict();\n\t\tmakeMarvin();\n\t\tmakeLafayette();\n\n\t\t//Generate block 3 (65x50)\n\t\t//(208,7)-(273,57)\n\t\tmake2000Penn();\n\t\tmakeSMPA();\n\t\tmakeBlocker3();\n\n\t\t//Generate block 4 (63x50)\n\t\t//(280,7)-(343,57)\n\t\tmakeBlocker4();\n\n\t\t//Generate block 5 (50x60)\n\t\t//(7,64)-(57,124)\n\t\tmakeAmsterdam();\n\t\tmakeHealWell();\n\t\tmakeBlocker5();\n\n\t\t//Generate block 6 (50x60)\n\t\t//(64,64)-(114,124)\n\t\tmakeTompkins();\n\t\tmakeMadison();\n\t\tmakeDuquesAndFunger();\n\n\t\t//Generate block 7 (80x60)\n\t\t//(121,64)-(201,124)\n\t\tmakeGelman();\n\t\tmakeLisner();\n\t\tmakeStaughton();\n\t\tmakeMonroe();\n\n\t\t//Generate block 8 (65x60)\n\t\t//(208,64)-(273,124)\n\t\tmakeCorcoran();\n\t\tmakeLawSchool();\n\t\tmakeLisnerHall();\n\t\tmakeTextileMuseum();\n\n\t\t//Generate block 9 (63x60)\n\t\t//(280,64)-(343,124)\n\t\tmakeBlocker9();\n\n\t\t//Generate block 10 (50x50)\n\t\t//(7,131)-(57,181)\n\t\tmakeShenkman();\n\t\tmakeBlocker10();\n\n\t\t//Generate block 11 (50x50)\n\t\t//(64,131)-(114,181)\n\t\tmakeTownHouses();\n\t\tmakeSmithCenter();\n\n\t\t//Generate block 12 (80x50)\n\t\t//(121,131)-(201,181)\n\t\tmakeSouthHall();\n\t\tmakeGuthridge();\n\t\tmakeBlocker12();\n\n\t\t//Generate block 13 (65x50)\n\t\t//(208,131)-(273,181)\n\t\tmakeBlocker13();\n\t\tmakeFSK();\n\t\tmakePatomac();\n\n\t\t//Generate block 14 (63x50)\n\t\t//(280,131)-(343,181)\n\t\tmakeBlocker14();\n\n\t\t//Generate block 15 (50x57)\n\t\t//(7,188)-(57,245)\n\t\tmakeBlocker15();\n\n\t\t//Generate block 16 (50x57)\n\t\t//(64,188)-(114,245)\n\t\tmakeIHouse();\n\t\tmakeBlocker16();\n\n\t\t//Generate block 17 (80x57)\n\t\t//(121,188)-(201,245)\n\t\tmakeBlocker17();\n\t\tmakeDakota();\n\n\t\t//Generate block 18 (65x57)\n\t\t//(208,188)-(273,245)\n\t\tmakeBlocker18();\n\n\t\t//Generate block 19 (63x57)\n\t\t//(280,188)-(343,245)\n\t\tmakeBlocker19();\n\t\tmakeElliot();\n\t\tmakeThurston();\n\t}",
"private void placeAllShips()\n {\n \t\n \t//place 2 aircrafts\n \tfor(int n = 0; n < 2; n++){\n \trandomRow = rnd.nextInt(10); //get random integer from 0-9\n \trandomCol = rnd.nextInt(10);//get random integer from 0-9\n \trandomDir = rnd.nextInt(2);//get random integer from 0-1\n \twhile(!checkOverlap(randomRow,randomCol,AIRCRAFT_CARRIER_LENGTH)){ //check if random integers overlap existing ones\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \t//place aircraft if no overlap\n \tfor(int i = randomRow; i <randomRow + AIRCRAFT_CARRIER_LENGTH ; i++){\n \t\tfor(int j = randomCol; j < randomCol + AIRCRAFT_CARRIER_LENGTH; ++j){\n \t\t\tif(randomDir == DIRECTION_RIGHT)\n \t\t\t\tgrid[i][randomCol] = SHIP;\n \t\t\tif(randomDir == DIRECTION_DOWN)\n \t\t\t\tgrid[randomRow][j] = SHIP;\n \t\t\t}\n \t\t}\n \t}\n \t\n \t\n \t//place battleship\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,BATTLESHIP_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i <randomRow + BATTLESHIP_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + BATTLESHIP_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\t\n \t//place destroyer\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,DESTROYER_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + DESTROYER_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + DESTROYER_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\t\n \t//place submarine\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,SUBMARINE_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + SUBMARINE_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + SUBMARINE_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\n \t//place patrol\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,PATROL_BOAT_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + PATROL_BOAT_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + PATROL_BOAT_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\n }",
"private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }",
"public void addHQCopier(String id, double sheetCost, double monochromeCost,\n double colourCost, double hQPremium, double costSetup, int copySpeed);",
"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}",
"private Pool setUpGamelin() {\n final int gamelinVolume = 4300;\n final int gamelinTemperature = 37;\n final double gamelinPH = 7.5;\n final double gamelinNutrientCoefficient = 1.0;\n final int gamelinNumberOfGuppies = 30;\n final int gamelinMinAge = 15;\n final int gamelinMaxAge = 49;\n final double gamelinMinHealthCoefficient = 0.0;\n final double gamelinMaxHealthCoefficient = 1.0;\n\n GuppySet gamelinGuppies = new GuppySet(gamelinNumberOfGuppies,\n gamelinMinAge, gamelinMaxAge, gamelinMinHealthCoefficient,\n gamelinMaxHealthCoefficient);\n\n Pool gamelin = setUpPool(\"Gamelin\", gamelinVolume, gamelinTemperature,\n gamelinPH, gamelinNutrientCoefficient, gamelinGuppies);\n\n return gamelin;\n }",
"public void buildLocations() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS locations (id TEXT, latitude\"\n + \" REAL, longitude REAL, name TEXT, PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }",
"public void createImageSet() {\n\t\t\n\t\t\n\t\tString image_folder = getLevelImagePatternFolder();\n \n String resource = \"0.png\";\n ImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(\"navigable\", ii.getImage());\n\n\t}",
"void createNewContinent(Point2D location, Dimension2D size);",
"private String getRef(int id)\n {\n if (id == 0)\n {\n return \"Sprites/Tile0.gif\";\n }\n else if (id == 1)\n {\n return \"Sprites/PlayerBack.gif\";\n }\n else if (id == 2)\n {\n return \"Sprites/PlayerFront.gif\";\n }\n else if (id == 3)\n {\n return \"Sprites/PlayerLeft.gif\";\n }\n else if (id == 4)\n {\n return \"Sprites/PlayerRight.gif\";\n }\n else if (id == 5)\n {\n return \"Sprites/PlayerBackRun.gif\";\n }\n else if (id == 6)\n {\n return \"Sprites/PlayerFrontRun.gif\";\n }\n else if (id == 7)\n {\n return \"Sprites/PlayerLeftRun.gif\";\n }\n else if (id == 8)\n {\n return \"Sprites/PlayerRightRun.gif\";\n }\n else if (id == 9)\n {\n return \"Sprites/PlayerBackAttack.gif\";\n }\n else if (id == 10)\n {\n return \"Sprites/PlayerFrontKnife.gif\";\n }\n else if (id == 11)\n {\n return \"Sprites/PlayerLeftKnife.gif\";\n }\n else if (id == 12)\n {\n return \"Sprites/PlayerRightKnife.gif\";\n }\n else if (id == 13)\n {\n return \"Sprites/PlayerFrontPistol.gif\";\n }\n else if (id == 14)\n {\n return \"Sprites/PlayerLeftPistol.gif\";\n }\n else if (id == 15)\n {\n return \"Sprites/PlayerRightPistol.gif\";\n }\n else if (id == 16)\n {\n return \"Sprites/PlayerFrontAR.gif\";\n }\n else if (id == 17)\n {\n return \"Sprites/PlayerLeftAR.gif\";\n }\n else if (id == 18)\n {\n return \"Sprites/PlayerRightAR.gif\";\n }\n else if (id == 19)\n {\n return \"Sprites/LightGuardBack.gif\";\n }\n else if (id == 20)\n {\n return \"Sprites/LightGuardFront.gif\";\n }\n else if (id == 21)\n {\n return \"Sprites/LightGuardLeft.gif\";\n }\n else if (id == 22)\n {\n return \"Sprites/LightGuardRight.gif\";\n }\n else if (id == 23)\n {\n return \"Sprites/LightGuardBackRun.gif\";\n }\n else if (id == 24)\n {\n return \"Sprites/LightGuardFrontRun.gif\";\n }\n else if (id == 25)\n {\n return \"Sprites/LightGuardLeftRun.gif\";\n }\n else if (id == 26)\n {\n return \"Sprites/LightGuardRightRun.gif\";\n }\n else if (id == 27)\n {\n return \"Sprites/MediumGuardBack.gif\";\n }\n else if (id == 28)\n {\n return \"Sprites/MediumGuardFront.gif\";\n }\n else if (id == 29)\n {\n return \"Sprites/MediumGuardLeft.gif\";\n }\n else if (id == 30)\n {\n return \"Sprites/MediumGuardRight.gif\";\n }\n else if (id == 31)\n {\n return \"Sprites/MediumGuardBackRun.gif\";\n }\n else if (id == 32)\n {\n return \"Sprites/MediumGuardFrontRun.gif\";\n }\n else if (id == 33)\n {\n return \"Sprites/MediumGuardLeftRun.gif\";\n }\n else if (id == 34)\n {\n return \"Sprites/MediumGuardRightRun.gif\";\n }\n else if (id == 35)\n {\n return \"Sprites/HeavyGuardBack.gif\";\n }\n else if (id == 36)\n {\n return \"Sprites/HeavyGuardFront.gif\";\n }\n else if (id == 37)\n {\n return \"Sprites/HeavyGuardLeft.gif\";\n }\n else if (id == 38)\n {\n return \"Sprites/HeavyGuardRight.gif\";\n }\n else if (id == 39)\n {\n return \"Sprites/HeavyGuardBackRun.gif\";\n }\n else if (id == 40)\n {\n return \"Sprites/HeavyGuardFrontRun.gif\";\n }\n else if (id == 41)\n {\n return \"Sprites/HeavyGuardLeftRun.gif\";\n }\n else if (id == 42)\n {\n return \"Sprites/HeavyGuardRightRun.gif\";\n }\n else if (id == 43)\n {\n return \"Sprites/water1.jpg\"; //was Water.gif\n }\n else if (id == 44)\n {\n return \"Sprites/sand.jpg\"; //was Sand.gif\n }\n else if (id == 45)\n {\n return \"Sprites/tallgrass.png\"; //was TallGrass.gif\n }\n else if (id == 46)\n {\n return \"Sprites/gate.gif\";\n }\n else if (id == 47)\n {\n return \"Sprites/tree.gif\";\n }\n else if (id == 48)\n {\n return \"Sprites/bricks.gif\";\n }\n else if (id == 49)\n {\n return \"Sprites/HorizontalPipes.gif\";\n }\n else if (id == 50)\n {\n return \"Sprites/VerticalPipes.gif\";\n }\n else if (id == 51)\n {\n return \"Sprites/Concrete2.gif\";\n }\n else if (id == 52)\n {\n return \"Sprites/RockWall.gif\";\n }\n else if (id == 53)\n {\n return \"Sprites/SimpleConcrete.gif\";\n }\n else if (id == 54)\n {\n return \"Sprites/DryWall.gif\";\n }\n else if (id == 55)\n {\n return \"Sprites/IndoorFloorTile.gif\";\n }\n else if (id == 56)\n {\n return \"Sprites/woodfloor.png\";\n }\n else if (id == 57)\n {\n return \"Sprites/Door.gif\";\n }\n else if (id == 58)\n {\n return \"Sprites/SecurityDoor.gif\";\n }\n else if (id == 59)\n {\n return \"Sprites/SecurityDoorOpen.gif\";\n }\n else if (id == 60)\n {\n return \"Sprites/VerticalRoadCenter.gif\";\n }\n else if (id == 61)\n {\n return \"Sprites/HorizontalRoadCenter.gif\";\n }\n else if (id == 62)\n {\n return \"Sprites/HorizontalRoadSideLeft.gif\";\n }\n else if (id == 63)\n {\n return \"Sprites/HorizontalRoadSideRight.gif\";\n }\n else if (id == 64)\n {\n return \"Sprites/VerticalRoadSideLeft.gif\";\n }\n else if (id == 65)\n {\n return \"Sprites/VerticalRoadSideRight.gif\";\n }\n else if (id == 66)\n {\n return \"Sprites/RoadSideLowerLeftCorner.gif\";\n }\n else if (id == 67)\n {\n return \"Sprites/RoadSideLowerRightCorner.gif\";\n }\n else if (id == 68)\n {\n return \"Sprites/RoadSideUpperLeftCorner.gif\";\n }\n else if (id == 69)\n {\n return \"Sprites/RoadSideUpperRightCorner.gif\";\n }\n else if (id == 70)\n {\n return \"Sprites/HealthKit.gif\";\n }\n else if (id == 71)\n {\n return \"Sprites/Pistol.png\";\n }\n else if (id == 72)\n {\n return \"Sprites/Silencer.gif\";\n }\n else if (id == 73)\n {\n return \"Sprites/AR.png\";\n }\n else if (id == 74)\n {\n return \"Sprites/Ammo.gif\";\n }\n else if (id == 75)\n {\n return \"Sprites/Cardkey1.gif\";\n }\n else if (id == 76)\n {\n return \"Sprites/Cardkey2.gif\";\n }\n else if (id == 77)\n {\n return \"Sprites/Cardkey3.gif\";\n }\n else if (id == 78)\n {\n return \"Sprites/grass.jpg\"; //Was Grass.gif\n }\n else if (id == 79)\n {\n return \"Sprites/snow.jpg\"; //Was Snow.gif\n }\n else if (id == 80)\n {\n return \"Sprites/fancyfloor2.png\";\n }\n else if (id == 81)\n {\n return \"Sprites/IndoorFloorTile3.gif\";\n }\n else if (id == 82)\n {\n return \"Sprites/whitetiles.png\";\n }\n else if (id == 83)\n {\n return \"Sprites/water2.jpg\"; //Was NightWater.gif\n }\n else if (id == 84)\n {\n return \"Sprites/grass2.jpg\"; //Was NightSand.gif\n }\n else if (id == 85)\n {\n return \"Sprites/LadderUp.gif\";\n }\n else if (id == 86)\n {\n return \"Sprites/LadderDown.gif\";\n }\n else if (id == 87)\n {\n return \"Sprites/ShadowTrail.gif\"; //Was WaterTrail.gif\n }\n else if (id == 88)\n {\n return \"Sprites/PlayerBackCrawl.gif\";\n }\n else if (id == 89)\n {\n return \"Sprites/PlayerFrontCrawl.gif\";\n }\n else if (id == 90)\n {\n return \"Sprites/PlayerLeftCrawl.gif\";\n }\n else if (id == 91)\n {\n return \"Sprites/PlayerRightCrawl.gif\";\n }\n else if (id == 92)\n {\n return \"Sprites/PlayerBackCrawling.gif\";\n }\n else if (id == 93)\n {\n return \"Sprites/PlayerFrontCrawling.gif\";\n }\n else if (id == 94)\n {\n return \"Sprites/PlayerLeftCrawling.gif\";\n }\n else if (id == 95)\n {\n return \"Sprites/PlayerRightCrawling.gif\";\n }\n else if (id == 96)\n {\n return \"Sprites/BoosterPack.gif\";\n }\n else if (id == 97)\n {\n return \"Sprites/desert.jpg\"; //was DesertGround.gif\n }\n else if (id == 98)\n {\n return \"Sprites/duct.png\";\n }\n else if (id == 99)\n {\n return \"Sprites/pinetreetop.png\";\n }\n else if (id == 100)\n {\n return \"Sprites/pinetreebottom.png\";\n }\n else if (id == 101)\n {\n return \"Sprites/PalmTreeTop.png\";\n }\n else if (id == 102)\n {\n return \"Sprites/PalmTreeBottom.png\";\n }\n else if (id == 103)\n {\n return \"Sprites/streetlight_left_top.gif\";\n }\n else if (id == 104)\n {\n return \"Sprites/streetlight_left_bottom.gif\";\n }\n else if (id == 105)\n {\n return \"Sprites/streetlight_right_top.gif\";\n }\n else if (id == 106)\n {\n return \"Sprites/streetlight_right_bottom.gif\";\n }\n else if (id == 107)\n {\n return \"Sprites/Crate.gif\";\n }\n else if (id == 108)\n {\n return \"Sprites/Bloodstain.gif\";\n }\n else if (id == 109)\n {\n return \"Sprites/DarkSolid.gif\";\n }\n else if (id == 110)\n {\n return \"Sprites/SubTopLeft.gif\";\n }\n else if (id == 111)\n {\n return \"Sprites/SubTopRight.gif\";\n }\n else if (id == 112)\n {\n return \"Sprites/computer.png\";\n }\n else if (id == 113)\n {\n return \"Sprites/NoseCone.gif\";\n }\n else if (id == 114)\n {\n return \"Sprites/MissileSegment.gif\";\n }\n else if (id == 115)\n {\n return \"Sprites/LeftFin.gif\";\n }\n else if (id == 116)\n {\n return \"Sprites/MiddleFin.gif\";\n }\n else if (id == 117)\n {\n return \"Sprites/RightFin.gif\";\n }\n else if (id == 118)\n {\n return \"Sprites/fancyfloor.png\";\n }\n else if (id == 119)\n {\n return \"Sprites/Boss1Back.gif\";\n }\n else if (id == 120)\n {\n return \"Sprites/Boss1Front.gif\";\n }\n else if (id == 121)\n {\n return \"Sprites/Boss1Left.gif\";\n }\n else if (id == 122)\n {\n return \"Sprites/Boss1Right.gif\";\n }\n else if (id == 123)\n {\n return \"Sprites/Boss1BackRun.gif\";\n }\n else if (id == 124)\n {\n return \"Sprites/Boss1FrontRun.gif\";\n }\n else if (id == 125)\n {\n return \"Sprites/Boss1LeftRun.gif\";\n }\n else if (id == 126)\n {\n return \"Sprites/Boss1RightRun.gif\";\n }\n else if (id == 127)\n {\n return \"Sprites/Boss2Back.gif\";\n }\n else if (id == 128)\n {\n return \"Sprites/Boss2Front.gif\";\n }\n else if (id == 129)\n {\n return \"Sprites/Boss2Left.gif\";\n }\n else if (id == 130)\n {\n return \"Sprites/Boss2Right.gif\";\n }\n else if (id == 131)\n {\n return \"Sprites/Boss2BackRun.gif\";\n }\n else if (id == 132)\n {\n return \"Sprites/Boss2FrontRun.gif\";\n }\n else if (id == 133)\n {\n return \"Sprites/Boss2LeftRun.gif\";\n }\n else if (id == 134)\n {\n return \"Sprites/Boss2RightRun.gif\";\n }\n else if (id == 135)\n {\n return \"Sprites/Boss3Back.gif\";\n }\n else if (id == 136)\n {\n return \"Sprites/Boss3Front.gif\";\n }\n else if (id == 137)\n {\n return \"Sprites/Boss3Left.gif\";\n }\n else if (id == 138)\n {\n return \"Sprites/Boss3Right.gif\";\n }\n else if (id == 139)\n {\n return \"Sprites/Boss3BackRun.gif\";\n }\n else if (id == 140)\n {\n return \"Sprites/Boss3FrontRun.gif\";\n }\n else if (id == 141)\n {\n return \"Sprites/Boss3LeftRun.gif\";\n }\n else if (id == 142)\n {\n return \"Sprites/Boss3RightRun.gif\";\n }\n else if (id == 143)\n {\n return \"Sprites/IndoorFloorTile5.gif\";\n }\n else if (id == 144)\n {\n return \"Sprites/IndoorFloorTile6.gif\";\n }\n else if (id == 145)\n {\n return \"Sprites/bed1.png\";\n }\n else if (id == 146)\n {\n return \"Sprites/bed2.png\";\n }\n else if (id == 147)\n {\n return \"Sprites/chair.png\";\n }\n else if (id == 148)\n {\n return \"Sprites/desk.png\";\n }\n else if (id == 149)\n {\n return \"Sprites/desk2.png\";\n }\n else if (id == 150)\n {\n return \"Sprites/computer_slacker.png\";\n }\n else if (id == 151)\n {\n return \"Sprites/computer_slacker2.png\";\n }\n else if (id == 152)\n {\n return \"Sprites/conferencedeskbottom.png\";\n }\n else if (id == 153)\n {\n return \"Sprites/conferencedesktop.png\";\n }\n else if (id == 154)\n {\n return \"Sprites/fancycarpet.png\";\n }\n else if (id == 155)\n {\n return \"Sprites/hpainting.png\";\n }\n else if (id == 156)\n {\n return \"Sprites/painting.gif\";\n }\n else if (id == 157)\n {\n return \"Sprites/fancywall.gif\";\n }\n else if (id == 158)\n {\n return \"Sprites/locker.gif\";\n }\n else if (id == 159)\n {\n return \"Sprites/computer2.gif\";\n }\n else if (id == 160)\n {\n return \"Sprites/crate2.gif\";\n }\n else if (id == 161)\n {\n return \"Sprites/tombstone.gif\";\n }\n else if (id == 162)\n {\n return \"Sprites/Scientist1Back.gif\";\n }\n else if (id == 163)\n {\n return \"Sprites/Scientist1Front.gif\";\n }\n else if (id == 164)\n {\n return \"Sprites/Scientist1Left.gif\";\n }\n else if (id == 165)\n {\n return \"Sprites/Scientist1Right.gif\";\n }\n else if (id == 166)\n {\n return \"Sprites/Scientist1BackRun.gif\";\n }\n else if (id == 167)\n {\n return \"Sprites/Scientist1FrontRun.gif\";\n }\n else if (id == 168)\n {\n return \"Sprites/Scientist1LeftRun.gif\";\n }\n else if (id == 169)\n {\n return \"Sprites/Scientist1RightRun.gif\";\n }\n else if (id == 170)\n {\n return \"Sprites/Scientist2Back.gif\";\n }\n else if (id == 171)\n {\n return \"Sprites/Scientist2Front.gif\";\n }\n else if (id == 172)\n {\n return \"Sprites/Scientist2Left.gif\";\n }\n else if (id == 173)\n {\n return \"Sprites/Scientist2Right.gif\";\n }\n else if (id == 174)\n {\n return \"Sprites/Scientist2BackRun.gif\";\n }\n else if (id == 175)\n {\n return \"Sprites/Scientist2FrontRun.gif\";\n }\n else if (id == 176)\n {\n return \"Sprites/Scientist2LeftRun.gif\";\n }\n else if (id == 177)\n {\n return \"Sprites/Scientist2RightRun.gif\";\n }\n else if (id == 178)\n {\n return \"Sprites/StoveTop.gif\";\n }\n else if (id == 179)\n {\n return \"Sprites/chemlab.png\";\n }\n else if (id == 180)\n {\n return \"Sprites/GlassWall.gif\";\n }\n else if (id == 181)\n {\n return \"Sprites/Bullet.gif\";\n }\n else if (id == 182)\n {\n return \"Sprites/RadarFree.gif\";\n }\n else if (id == 183)\n {\n return \"Sprites/RadarObstacle.gif\";\n }\n else if (id == 184)\n {\n return \"Sprites/RadarPlayer.gif\";\n }\n else if (id == 185)\n {\n return \"Sprites/RadarNPC.gif\";\n }\n else if (id == 186)\n {\n return \"Sprites/cactus.png\";\n }\n else if (id == 187)\n {\n return \"Sprites/garagedoor.gif\";\n }\n else if (id == 188)\n {\n return \"Sprites/PlayerFrontSMG.gif\";\n }\n else if (id == 189)\n {\n return \"Sprites/PlayerLeftSMG.gif\";\n }\n else if (id == 190)\n {\n return \"Sprites/PlayerRightSMG.gif\";\n }\n else if (id == 191)\n {\n return \"Sprites/Grenade.gif\";\n }\n else if (id == 192)\n {\n return \"Sprites/RadarObjective.gif\";\n }\n else if (id == 193)\n {\n return \"Sprites/Explosion2.gif\";\n }\n else if (id == 194)\n {\n return \"Sprites/PlayerFrontShotgun.gif\";\n }\n else if (id == 195)\n {\n return \"Sprites/PlayerLeftShotgun.gif\";\n }\n else if (id == 196)\n {\n return \"Sprites/PlayerRightShotgun.gif\";\n }\n else if (id == 197)\n {\n return \"Sprites/CameraUp.gif\";\n }\n else if (id == 198)\n {\n return \"Sprites/CameraDown.gif\";\n }\n else if (id == 199)\n {\n return \"Sprites/CameraLeft.gif\";\n }\n else if (id == 200)\n {\n return \"Sprites/CameraRight.gif\";\n }\n else if (id == 201)\n {\n return \"Sprites/Cardkey4.gif\";\n }\n else if (id == 202)\n {\n return \"Sprites/Cardkey5.gif\";\n }\n else if (id == 203)\n {\n return \"Sprites/NVG.gif\";\n }\n else if (id == 204)\n {\n return \"Sprites/Gasmask.gif\";\n }\n else if (id == 205)\n {\n return \"Sprites/SMG.png\";\n }\n else if (id == 206)\n {\n return \"Sprites/Shotgun.gif\";\n }\n else if (id == 207)\n {\n return \"Sprites/BodyArmor.gif\";\n }\n else if (id == 208)\n {\n return \"Sprites/bookcase.png\";\n }\n else if (id == 209)\n {\n return \"Sprites/GrassWall.png\";\n }\n else if (id == 210)\n {\n return \"Sprites/tank00.png\";\n }\n else if (id == 211)\n {\n return \"Sprites/tank10.png\";\n }\n else if (id == 212)\n {\n return \"Sprites/tank20.png\";\n }\n else if (id == 213)\n {\n return \"Sprites/tank01.png\";\n }\n else if (id == 214)\n {\n return \"Sprites/tank11.png\";\n }\n else if (id == 215)\n {\n return \"Sprites/tank21.png\";\n }\n else if (id == 216)\n {\n return \"Sprites/tank02.png\";\n }\n else if (id == 217)\n {\n return \"Sprites/tank12.png\";\n }\n else if (id == 218)\n {\n return \"Sprites/tank22.png\";\n }\n else if (id == 219)\n {\n return \"Sprites/tankbarrel.png\";\n }\n else if (id == 220)\n {\n return \"Sprites/HorizontalStairs.gif\";\n }\n else if (id == 221)\n {\n return \"Sprites/VerticalStairs.gif\";\n }\n else if (id == 222)\n {\n return \"Sprites/Objective1.gif\";\n }\n else if (id == 223)\n {\n return \"Sprites/Objective2.gif\";\n }\n else if (id == 224)\n {\n return \"Sprites/Objective3.gif\";\n }\n else if (id == 225)\n {\n return \"Sprites/Objective4.gif\";\n }\n else if (id == 226)\n {\n return \"Sprites/Boss4Back.gif\";\n }\n else if (id == 227)\n {\n return \"Sprites/Boss4Front.gif\";\n }\n else if (id == 228)\n {\n return \"Sprites/Boss4Left.gif\";\n }\n else if (id == 229)\n {\n return \"Sprites/Boss4Right.gif\";\n }\n else if (id == 230)\n {\n return \"Sprites/Boss4BackRun.gif\";\n }\n else if (id == 231)\n {\n return \"Sprites/Boss4FrontRun.gif\";\n }\n else if (id == 232)\n {\n return \"Sprites/Boss4LeftRun.gif\";\n }\n else if (id == 233)\n {\n return \"Sprites/Boss4RightRun.gif\";\n }\n else if (id == 234)\n {\n return \"Sprites/nhBack.gif\";\n }\n else if (id == 235)\n {\n return \"Sprites/nhFront.gif\";\n }\n else if (id == 236)\n {\n return \"Sprites/nhLeft.gif\";\n }\n else if (id == 237)\n {\n return \"Sprites/nhRight.gif\";\n }\n else if (id == 238)\n {\n return \"Sprites/nhBackRun.gif\";\n }\n else if (id == 239)\n {\n return \"Sprites/nhFrontRun.gif\";\n }\n else if (id == 240)\n {\n return \"Sprites/nhLeftRun.gif\";\n }\n else if (id == 241)\n {\n return \"Sprites/nhRightRun.gif\";\n }\n else if (id == 242)\n {\n return \"Sprites/Boss0Back.gif\";\n }\n else if (id == 243)\n {\n return \"Sprites/Boss0Front.gif\";\n }\n else if (id == 244)\n {\n return \"Sprites/Boss0Left.gif\";\n }\n else if (id == 245)\n {\n return \"Sprites/Boss0Right.gif\";\n }\n else if (id == 246)\n {\n return \"Sprites/Boss0BackRun.gif\";\n }\n else if (id == 247)\n {\n return \"Sprites/Boss0FrontRun.gif\";\n }\n else if (id == 248)\n {\n return \"Sprites/Boss0LeftRun.gif\";\n }\n else if (id == 249)\n {\n return \"Sprites/Boss0RightRun.gif\";\n }\n else if (id == 250)\n {\n return \"Sprites/Wristwatch.gif\";\n }\n else if (id == 251)\n {\n return \"Sprites/LocationObjective.gif\";\n }\n else if (id == 252){return \"Sprites/stonewall.png\";}\n else if (id == 253){return \"Sprites/stonewall2.png\";}\n else if (id == 254){return \"Sprites/water3.jpg\";}\n else if (id == 255){return \"Sprites/crimescene.gif\";}\n else if (id == 256){return \"Sprites/woodfloor2.jpg\";}\n else if (id == 257){return \"Sprites/fancycarpet2.png\";}\n else if (id == 258){return \"Sprites/surrogate1.gif\";}\n else if (id == 259){return \"Sprites/surrogate2.gif\";}\n else if (id == 260){return \"Sprites/surrogate3.gif\";}\n else if (id == 261){return \"Sprites/female_ally_back.gif\";}\n else if (id == 262){return \"Sprites/female_ally_front.gif\";}\n else if (id == 263){return \"Sprites/female_ally_left.gif\";}\n else if (id == 264){return \"Sprites/female_ally_right.gif\";}\n else if (id == 265){return \"Sprites/female_ally_back_run.gif\";}\n else if (id == 266){return \"Sprites/female_ally_front_run.gif\";}\n else if (id == 267){return \"Sprites/female_ally_left_run.gif\";}\n else if (id == 268){return \"Sprites/female_ally_right_run.gif\";}\n else if (id == 269){return \"Sprites/female_ally_back_workout.gif\";}\n else if (id == 270){return \"Sprites/female_ally_front_workout.gif\";}\n else if (id == 271){return \"Sprites/female_ally_left_workout.gif\";}\n else if (id == 272){return \"Sprites/female_ally_right_workout.gif\";}\n else if (id == 273){return \"Sprites/female_ally_back_run_workout.gif\";}\n else if (id == 274){return \"Sprites/female_ally_front_run_workout.gif\";}\n else if (id == 275){return \"Sprites/female_ally_left_run_workout.gif\";}\n else if (id == 276){return \"Sprites/female_ally_right_run_workout.gif\";}\n else if (id == 277){return \"Sprites/Mutant1Back.gif\";}\n else if (id == 278){return \"Sprites/Mutant1Front.gif\";}\n else if (id == 279){return \"Sprites/Mutant1Left.gif\";}\n else if (id == 280){return \"Sprites/Mutant1Right.gif\";}\n else if (id == 281){return \"Sprites/Mutant1BackRun.gif\";}\n else if (id == 282){return \"Sprites/Mutant1FrontRun.gif\";}\n else if (id == 283){return \"Sprites/Mutant1LeftRun.gif\";}\n else if (id == 284){return \"Sprites/Mutant1RightRun.gif\";}\n else if (id == 285){return \"Sprites/Mutant2Back.gif\";}\n else if (id == 286){return \"Sprites/Mutant2Front.gif\";}\n else if (id == 287){return \"Sprites/Mutant2Left.gif\";}\n else if (id == 288){return \"Sprites/Mutant2Right.gif\";}\n else if (id == 289){return \"Sprites/Mutant2BackRun.gif\";}\n else if (id == 290){return \"Sprites/Mutant2FrontRun.gif\";}\n else if (id == 291){return \"Sprites/Mutant2LeftRun.gif\";}\n else if (id == 292){return \"Sprites/Mutant2RightRun.gif\";}\n else if (id == 293){return \"Sprites/mine.gif\";}\n else if (id == 294){return \"Sprites/laser_horizontal.gif\";}\n else if (id == 295){return \"Sprites/laser_vertical.gif\";}\n else if (id == 296){return \"Sprites/MineDetector.gif\";}\n else if (id == 297){return \"Sprites/white.gif\";}\n else if (id == 298){return \"Sprites/borderbox.gif\";}\n\n else if (id == 299){return \"Sprites/metalboxtop1.gif\";}\n else if (id == 300){return \"Sprites/metalboxbottom1.gif\";}\n else if (id == 301){return \"Sprites/hshadow1.gif\";}\n else if (id == 302){return \"Sprites/vshadow1.gif\";}\n else if (id == 303){return \"Sprites/cshadow1.gif\";}\n else if (id == 304){return \"Sprites/vconeup.gif\";}\n else if (id == 305){return \"Sprites/vconedown.gif\";}\n else if (id == 306){return \"Sprites/vconeleft.gif\";}\n else if (id == 307){return \"Sprites/vconeright.gif\";}\n else if (id == 308){return \"Sprites/RoadCornerLeft.gif\";}\n else if (id == 309){return \"Sprites/RoadCornerRight.gif\";}\n\n else if (id == 310){return \"Sprites/Woman1Back.gif\";}\n else if (id == 311){return \"Sprites/Woman1Front.gif\";}\n else if (id == 312){return \"Sprites/Woman1Left.gif\";}\n else if (id == 313){return \"Sprites/Woman1Right.gif\";}\n else if (id == 314){return \"Sprites/Woman1BackRun.gif\";}\n else if (id == 315){return \"Sprites/Woman1FrontRun.gif\";}\n else if (id == 316){return \"Sprites/Woman1LeftRun.gif\";}\n else if (id == 317){return \"Sprites/Woman1RightRun.gif\";}\n\n else if (id == 318){return \"Sprites/Woman2Back.gif\";}\n else if (id == 319){return \"Sprites/Woman2Front.gif\";}\n else if (id == 320){return \"Sprites/Woman2Left.gif\";}\n else if (id == 321){return \"Sprites/Woman2Right.gif\";}\n else if (id == 322){return \"Sprites/Woman2BackRun.gif\";}\n else if (id == 323){return \"Sprites/Woman2FrontRun.gif\";}\n else if (id == 324){return \"Sprites/Woman2LeftRun.gif\";}\n else if (id == 325){return \"Sprites/Woman2RightRun.gif\";}\n\n else if (id == 326){return \"Sprites/Woman3Back.gif\";}\n else if (id == 327){return \"Sprites/Woman3Front.gif\";}\n else if (id == 328){return \"Sprites/Woman3Left.gif\";}\n else if (id == 329){return \"Sprites/Woman3Right.gif\";}\n else if (id == 330){return \"Sprites/Woman3BackRun.gif\";}\n else if (id == 331){return \"Sprites/Woman3FrontRun.gif\";}\n else if (id == 332){return \"Sprites/Woman3LeftRun.gif\";}\n else if (id == 333){return \"Sprites/Woman3RightRun.gif\";}\n\n else if (id == 334){return \"Sprites/chief_back.gif\";}\n else if (id == 335){return \"Sprites/chief_front.gif\";}\n else if (id == 336){return \"Sprites/chief_left.gif\";}\n else if (id == 337){return \"Sprites/chief_right.gif\";}\n else if (id == 338){return \"Sprites/chief_back_run.gif\";}\n else if (id == 339){return \"Sprites/chief_front_run.gif\";}\n else if (id == 340){return \"Sprites/chief_left_run.gif\";}\n else if (id == 341){return \"Sprites/chief_right_run.gif\";}\n\n else if (id == 342){return \"Sprites/un_guy_back.gif\";}\n else if (id == 343){return \"Sprites/un_guy_front.gif\";}\n else if (id == 344){return \"Sprites/un_guy_left.gif\";}\n else if (id == 345){return \"Sprites/un_guy_right.gif\";}\n else if (id == 346){return \"Sprites/un_guy_back_run.gif\";}\n else if (id == 347){return \"Sprites/un_guy_front_run.gif\";}\n else if (id == 348){return \"Sprites/un_guy_left_run.gif\";}\n else if (id == 349){return \"Sprites/un_guy_right_run.gif\";}\n\n else if (id == 350){return \"Sprites/SpecialGuardBack.gif\";}\n else if (id == 351){return \"Sprites/SpecialGuardFront.gif\";}\n else if (id == 352){return \"Sprites/SpecialGuardLeft.gif\";}\n else if (id == 353){return \"Sprites/SpecialGuardRight.gif\";}\n else if (id == 354){return \"Sprites/SpecialGuardBackRun.gif\";}\n else if (id == 355){return \"Sprites/SpecialGuardFrontRun.gif\";}\n else if (id == 356){return \"Sprites/SpecialGuardLeftRun.gif\";}\n else if (id == 357){return \"Sprites/SpecialGuardRightRun.gif\";}\n\n else if (id == 358){return \"Sprites/truck00.png\";}\n else if (id == 359){return \"Sprites/truck10.png\";}\n else if (id == 360){return \"Sprites/truck20.png\";}\n else if (id == 361){return \"Sprites/truck01.png\";}\n else if (id == 362){return \"Sprites/truck11.png\";}\n else if (id == 363){return \"Sprites/truck21.png\";}\n else if (id == 364){return \"Sprites/truck02.png\";}\n else if (id == 365){return \"Sprites/truck12.png\";}\n else if (id == 366){return \"Sprites/truck22.png\";}\n\n else if (id == 367){return \"Sprites/FireExtinguisher.gif\";}\n else if (id == 368){return \"Sprites/c4.gif\";}\n\n else if (id == 369){return \"Sprites/RoadCornerLeft2.gif\";}\n else if (id == 370){return \"Sprites/RoadCornerRight2.gif\";}\n\n else if (id == 371){return \"Sprites/painting2.gif\";}\n else if (id == 372){return \"Sprites/painting3.gif\";}\n else if (id == 373){return \"Sprites/painting4.gif\";}\n else if (id == 374){return \"Sprites/painting5.gif\";}\n\n else if (id == 375){return \"Sprites/snowparticle.gif\";}\n else if (id == 376){return \"Sprites/rainparticle.gif\";}\n\n else if (id == 377){return \"Sprites/airventclosed.gif\";}\n else if (id == 378){return \"Sprites/airventopen.gif\";}\n\n else if (id == 379){return \"Sprites/wateredgetop.png\";}\n else if (id == 380){return \"Sprites/wateredgebottom.png\";}\n else if (id == 381){return \"Sprites/wateredgeleft.png\";}\n else if (id == 382){return \"Sprites/wateredgeright.png\";}\n else if (id == 383){return \"Sprites/wateredgetopleft.png\";}\n else if (id == 384){return \"Sprites/wateredgetopright.png\";}\n else if (id == 385){return \"Sprites/wateredgebottomleft.png\";}\n else if (id == 386){return \"Sprites/wateredgebottomright.png\";}\n else if (id == 387){return \"Sprites/wateredgetopleftjunction.png\";}\n else if (id == 388){return \"Sprites/wateredgetoprightjunction.png\";}\n else if (id == 389){return \"Sprites/wateredgebottomleftjunction.png\";}\n else if (id == 390){return \"Sprites/wateredgebottomrightjunction.png\";}\n\n else if (id == 391){return \"Sprites/bathroom.png\";}\n\n else if (id == 392){return \"Sprites/treetop.png\";}\n else if (id == 393){return \"Sprites/treebottom.png\";}\n else if (id == 394){return \"Sprites/darktreetop.png\";}\n else if (id == 395){return \"Sprites/darktreebottom.png\";}\n \n else if (id == 396){return \"Sprites/cliff_face.png\";}\n else if (id == 397){return \"Sprites/cliff_left.png\";}\n else if (id == 398){return \"Sprites/cliff_right.png\";}\n else if (id == 399){return \"Sprites/cliff_cornerleft.png\";}\n else if (id == 400){return \"Sprites/cliff_cornerright.png\";}\n else if (id == 401){return \"Sprites/cliff_cornerupperleft.png\";}\n else if (id == 402){return \"Sprites/cliff_cornerupperright.png\";}\n else if (id == 403){return \"Sprites/cliff_face.png\";}\n else if (id == 404){return \"Sprites/GrassWallBottom.png\";}\n\n else if (id == 405){return \"Sprites/oldman_back.gif\";}\n else if (id == 406){return \"Sprites/oldman_front.gif\";}\n else if (id == 407){return \"Sprites/oldman_left.gif\";}\n else if (id == 408){return \"Sprites/oldman_right.gif\";}\n else if (id == 409){return \"Sprites/oldman_back_run.gif\";}\n else if (id == 410){return \"Sprites/oldman_front_run.gif\";}\n else if (id == 411){return \"Sprites/oldman_left_run.gif\";}\n else if (id == 412){return \"Sprites/oldman_right_run.gif\";}\n\n else if (id == 413){return \"Sprites/crippleBack.gif\";}\n else if (id == 414){return \"Sprites/crippleFront.gif\";}\n else if (id == 415){return \"Sprites/crippleLeft.gif\";}\n else if (id == 416){return \"Sprites/crippleRight.gif\";}\n else if (id == 417){return \"Sprites/crippleBackRun.gif\";}\n else if (id == 418){return \"Sprites/crippleFrontRun.gif\";}\n else if (id == 419){return \"Sprites/crippleLeftRun.gif\";}\n else if (id == 420){return \"Sprites/crippleRightRun.gif\";}\n\n else if (id == 421){return \"Sprites/scientist_female_back.gif\";}\n else if (id == 422){return \"Sprites/scientist_female_front.gif\";}\n else if (id == 423){return \"Sprites/scientist_female_left.gif\";}\n else if (id == 424){return \"Sprites/scientist_female_right.gif\";}\n else if (id == 425){return \"Sprites/scientist_female_back_run.gif\";}\n else if (id == 426){return \"Sprites/scientist_female_front_run.gif\";}\n else if (id == 427){return \"Sprites/scientist_female_left_run.gif\";}\n else if (id == 428){return \"Sprites/scientist_female_right_run.gif\";}\n\n else if (id == 429){return \"Sprites/EvaBack.gif\";}\n else if (id == 430){return \"Sprites/EvaFront.gif\";}\n else if (id == 431){return \"Sprites/EvaLeft.gif\";}\n else if (id == 432){return \"Sprites/EvaRight.gif\";}\n else if (id == 433){return \"Sprites/EvaBackRun.gif\";}\n else if (id == 434){return \"Sprites/EvaFrontRun.gif\";}\n else if (id == 435){return \"Sprites/EvaLeftRun.gif\";}\n else if (id == 436){return \"Sprites/EvaRightRun.gif\";}\n\n else if (id == 437){return \"Sprites/man_back.gif\";}\n else if (id == 438){return \"Sprites/man_front.gif\";}\n else if (id == 439){return \"Sprites/man_left.gif\";}\n else if (id == 440){return \"Sprites/man_right.gif\";}\n else if (id == 441){return \"Sprites/man_back_run.gif\";}\n else if (id == 442){return \"Sprites/man_front_run.gif\";}\n else if (id == 443){return \"Sprites/man_left_run.gif\";}\n else if (id == 444){return \"Sprites/man_right_run.gif\";}\n\n else if (id == 445){return \"Sprites/stairs_left_down.png\";}\n else if (id == 446){return \"Sprites/stairs_right_up.png\";}\n else if (id == 447){return \"Sprites/stairs_right_down.png\";}\n else if (id == 448){return \"Sprites/stairs_left_up.png\";}\n else if (id == 449){return \"Sprites/m1911a1.png\";}\n else if (id == 450){return \"Sprites/usp.png\";}\n else if (id == 451){return \"Sprites/fmk3.png\";}\n else if (id == 452){return \"Sprites/p90.png\";}\n else if (id == 453){return \"Sprites/m16.png\";}\n else if (id == 454){return \"Sprites/fara83.png\";}\n else if (id == 455){return \"Sprites/m4.png\";}\n else if (id == 456){return \"Sprites/sa08.png\";}\n else if (id == 457){return \"Sprites/spas12.png\";}\n else if (id == 458){return \"Sprites/saiga12.png\";}\n\n else if (id == 459){return \"Sprites/JuggernautBack.gif\";}\n else if (id == 460){return \"Sprites/JuggernautFront.gif\";}\n else if (id == 461){return \"Sprites/JuggernautLeft.gif\";}\n else if (id == 462){return \"Sprites/JuggernautRight.gif\";}\n else if (id == 463){return \"Sprites/JuggernautBackRun.gif\";}\n else if (id == 464){return \"Sprites/JuggernautFrontRun.gif\";}\n else if (id == 465){return \"Sprites/JuggernautLeftRun.gif\";}\n else if (id == 466){return \"Sprites/JuggernautRightRun.gif\";}\n\n else if (id == 467){return \"Sprites/Juggernaut2Back.gif\";}\n else if (id == 468){return \"Sprites/Juggernaut2Front.gif\";}\n else if (id == 469){return \"Sprites/Juggernaut2Left.gif\";}\n else if (id == 470){return \"Sprites/Juggernaut2Right.gif\";}\n else if (id == 471){return \"Sprites/Juggernaut2BackRun.gif\";}\n else if (id == 472){return \"Sprites/Juggernaut2FrontRun.gif\";}\n else if (id == 473){return \"Sprites/Juggernaut2LeftRun.gif\";}\n else if (id == 474){return \"Sprites/Juggernaut2RightRun.gif\";}\n \n else if (id == 475){return \"Sprites/female_ally_back_swim.gif\";}\n else if (id == 476){return \"Sprites/female_ally_front_swim.gif\";}\n else if (id == 477){return \"Sprites/female_ally_left_swim.gif\";}\n else if (id == 478){return \"Sprites/female_ally_right_swim.gif\";}\n else if (id == 479){return \"Sprites/female_ally_back_run_swim.gif\";}\n else if (id == 480){return \"Sprites/female_ally_front_run_swim.gif\";}\n else if (id == 481){return \"Sprites/female_ally_left_run_swim.gif\";}\n else if (id == 482){return \"Sprites/female_ally_right_run_swim.gif\";}\n\n else if (id == 483){return \"Sprites/GunCameraUp.png\";}\n else if (id == 484){return \"Sprites/GunCameraDown.png\";}\n else if (id == 485){return \"Sprites/GunCameraLeft.png\";}\n else if (id == 486){return \"Sprites/GunCameraRight.png\";}\n\n else if (id == 487){return \"Sprites/drone_up.png\";}\n else if (id == 488){return \"Sprites/drone_down.png\";}\n else if (id == 489){return \"Sprites/drone_left.png\";}\n else if (id == 490){return \"Sprites/drone_right.png\";}\n\n else if (id == 491){return \"Sprites/gun_drone_up.png\";}\n else if (id == 492){return \"Sprites/gun_drone_down.png\";}\n else if (id == 493){return \"Sprites/gun_drone_left.png\";}\n else if (id == 494){return \"Sprites/gun_drone_right.png\";}\n\n else if (id == 495){return \"Sprites/boat00.png\";}\n else if (id == 496){return \"Sprites/boat10.png\";}\n else if (id == 497){return \"Sprites/boat20.png\";}\n\n else if (id == 498){return \"Sprites/boat01.png\";}\n else if (id == 499){return \"Sprites/boat11.png\";}\n else if (id == 500){return \"Sprites/boat21.png\";}\n\n else if (id == 501){return \"Sprites/boat02.png\";}\n else if (id == 502){return \"Sprites/boat12.png\";}\n else if (id == 503){return \"Sprites/boat22.png\";}\n\n else if (id == 504){return \"Sprites/boat03.png\";}\n else if (id == 505){return \"Sprites/boat13.png\";}\n else if (id == 506){return \"Sprites/boat23.png\";}\n\n else if (id == 507){return \"Sprites/boat04.png\";}\n else if (id == 508){return \"Sprites/boat14.png\";}\n else if (id == 509){return \"Sprites/boat24.png\";}\n\n else if (id == 510){return \"Sprites/explosives.png\";}\n\n else if (id == 511){return \"Sprites/roof.png\";}\n else if (id == 512){return \"Sprites/roof2.png\";}\n else if (id == 513){return \"Sprites/roof3.png\";}\n else if (id == 514){return \"Sprites/roof4.png\";}\n\n else if (id == 515){return \"Sprites/window.png\";}\n else if (id == 516){return \"Sprites/window_dark.png\";}\n else if (id == 517){return \"Sprites/window_light.png\";}\n\n else if (id == 518){return \"Sprites/explosives2.png\";}\n else if (id == 519){return \"Sprites/lava.png\";}\n \n else if (id == 520){return \"Sprites/ghost_back.png\";}\n else if (id == 521){return \"Sprites/ghost_front.png\";}\n else if (id == 522){return \"Sprites/ghost_left.png\";}\n else if (id == 523){return \"Sprites/ghost_right.png\";}\n else if (id == 524){return \"Sprites/ghost_back_run.png\";}\n else if (id == 525){return \"Sprites/ghost_front_run.png\";}\n else if (id == 526){return \"Sprites/ghost_left_run.png\";}\n else if (id == 527){return \"Sprites/ghost_right_run.png\";}\n\n else if (id == 528){return \"Sprites/c4Objective.png\";}\n else if (id == 529){return \"Sprites/c4group.png\";}\n\n else if (id == 530){return \"Sprites/hitler_back.gif\";}\n else if (id == 531){return \"Sprites/hitler_front.gif\";}\n else if (id == 532){return \"Sprites/hitler_left.gif\";}\n else if (id == 533){return \"Sprites/hitler_right.gif\";}\n else if (id == 534){return \"Sprites/hitler_back_run.gif\";}\n else if (id == 535){return \"Sprites/hitler_front_run.gif\";}\n else if (id == 536){return \"Sprites/hitler_left_run.gif\";}\n else if (id == 537){return \"Sprites/hitler_right_run.gif\";}\n\n else if (id == 538){return \"Sprites/MutantBossBack.gif\";}\n else if (id == 539){return \"Sprites/MutantBossFront.gif\";}\n else if (id == 540){return \"Sprites/MutantBossLeft.gif\";}\n else if (id == 541){return \"Sprites/MutantBossRight.gif\";}\n else if (id == 542){return \"Sprites/MutantBossBackRun.gif\";}\n else if (id == 543){return \"Sprites/MutantBossFrontRun.gif\";}\n else if (id == 544){return \"Sprites/MutantBossLeftRun.gif\";}\n else if (id == 545){return \"Sprites/MutantBossRightRun.gif\";}\n\n else if (id == 546){return \"Sprites/patient_female.png\";}\n else if (id == 547){return \"Sprites/patient_female2.png\";}\n else if (id == 548){return \"Sprites/patient_male.png\";}\n else if (id == 549){return \"Sprites/patient_male2.png\";}\n else if (id == 550){return \"Sprites/patient_male_hitler.png\";}\n\n else if (id == 551){return \"Sprites/dockedge.png\";}\n else if (id == 552){return \"Sprites/ak104u.png\";}\n else if (id == 553){return \"Sprites/g18.png\";}\n else if (id == 554){return \"Sprites/m3a1sd.png\";}\n else if (id == 555){return \"Sprites/mp7sd.png\";}\n else if (id == 556){return \"Sprites/m1911a1custom.png\";}\n\n else if (id == 557){return \"Sprites/dockedge_left.png\";}\n else if (id == 558){return \"Sprites/dockedge_right.png\";}\n else if (id == 559){return \"Sprites/dockstairs.png\";}\n\n return \"Sprites/Tile0.gif\";\n\n }",
"private void initialize(int index) {\n\t\tthis.NW = new Point((int) this.getCoarseGrainedMinX(), (int) this.getCoarseGrainedMinY());\n\t\tthis.NE = new Point((int) this.getCoarseGrainedMaxX(), (int) this.getCoarseGrainedMinY());\n\t\tthis.SW = new Point((int) this.getCoarseGrainedMinX(), (int) this.getCoarseGrainedMaxY());\n\t\tthis.SE = new Point((int) this.getCoarseGrainedMaxX(), (int) this.getCoarseGrainedMaxY());\n\t\tswitch (this.type) {\n\t\tcase (TownTile.GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.WALL):\n\t\t\tthis.addImageWithBoundingBox(ResourceManager.getImage(DogWarriors.wallImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.EXIT_ROAD):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.roadImages[index]));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.EXIT_GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f, 16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.ROAD):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.roadImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.SHRUB):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.worldImages[index]), \n\t\t\t\t\tnew Vector(0.0f, -16.0f));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f, 16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.CAT_GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tbreak;\n\t\t}\n\t}",
"public void addRandoms() {\n //Add random boulders on tiles that aren't Lava\n int tileNumber;\n int selector;\n Tile t;\n String tileTexture;\n Random random = new Random();\n SquareVector playerPos = getPlayerEntity().getPosition();\n int tileCount = GameManager.get().getWorld().getTiles().size();\n AbstractWorld world = GameManager.get().getWorld();\n int randIndex;\n\n for (int i = 0; i < 20; i++) {\n //Get respective volcano tile (5 <= Lava tiles Index <= 8\n do {\n randIndex = random.nextInt(tileCount);\n t = world.getTile(randIndex);\n } while (t.getCoordinates().isCloseEnoughToBeTheSame(playerPos));\n\n tileTexture = t.getTextureName();\n tileNumber = Integer.parseInt(tileTexture.split(\"_\")[1]);\n\n selector = random.nextInt(2);\n if (tileNumber < 5 && tileNumber > 1 && selector == 1 && !t.hasParent()) {\n entities.add(new Rock(t, true));\n } else if (t != null && (tileNumber == 3 || tileNumber == 4) &&\n selector == 0 && !t.hasParent()) {\n entities.add(new VolcanoBurningTree(t, true));\n } else {\n i--;\n }\n }\n }",
"protected abstract void createPool();",
"public Boite(String path, int x_de_base, int y_de_base, int id) {\r\n \tRandom r = new Random();\r\n \tint valeur = 1 + r.nextInt(3 - 1);\r\n \tthis.value = valeur;\r\n \tthis.s= new Sprite(path);\r\n\tImageIcon im_mun = new ImageIcon(s.getImage().getScaledInstance(50,50,Image.SCALE_DEFAULT));\r\n\ts.setImageIcon(im_mun);\r\n\ts.setImage(im_mun);\r\n \tthis.coordonneX= x_de_base;\r\n \tthis.coordonneY= y_de_base;\r\n \tthis.hb = new Hitbox(this);\r\n \tthis.id = id; // Numero du perso tue dans l'arraylist AfficherPersonnage\r\n \tafficher = 0;\r\n }",
"public void generate() {\n\t\tLocation location0 = new Location();\n\t\tlocation0.setAddress(\"Zhong Nan Hai\");\n\n\t\tlocation0.setLatitude(0.0);\n\t\tlocation0.setLongitude(0.0);\n;\n\t\tTestDriver.locationList.add(location0);\n\t\t\n\t\t\n\t\tLocation location1 = new Location();\n\t\tlocation1.setAddress(\"Tian An Men\");\n\t\tlocation1.setLatitude(0.1);\n\t\tlocation1.setLongitude(0.1);\n\n\t\tTestDriver.locationList.add(location1);\n\t\t\n\t\t\n\t\tLocation location2 = new Location();\n\t\tlocation2.setAddress(\"White House\");\n\t\tlocation2.setLatitude(100.21);\n\t\tlocation2.setLongitude(102.36);\n\t\tTestDriver.locationList.add(location2);\n\t}",
"public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }",
"private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}",
"private RandomLocationGen() {}",
"public void createPhilosophers() {\n\t\tphil1 = new Philosopher(1,stick1,stick2);\n\t\tphil2 = new Philosopher(2,stick2,stick3);\n\t\tphil3 = new Philosopher(3,stick3,stick4);\n\t\tphil4 = new Philosopher(4,stick4,stick5);\n\t\tphil5 = new Philosopher(5,stick5,stick1);\n\t}",
"public void SpiritBomb()\r\n {\r\n\r\n\t \r\n\t\tLocation loc = new Location(userRow+1, userCol);\r\n\t\tLocation loc1 = new Location(userRow+1, userCol1);\r\n\t\tLocation loc2 = new Location(userRow+1, userCol2);\r\n\t\tLocation loc3 = new Location(userRow+1, userCol3);\r\n\t\t\r\n\t\tLocation loc4 = new Location(userRow, userCol);\r\n\t\tLocation loc5 = new Location(userRow, userCol1);\r\n\t\tLocation loc6 = new Location(userRow, userCol2);\r\n\t\tLocation loc7 = new Location(userRow, userCol3);\r\n\t\t\r\n\t\tLocation loc8 = new Location(userRow-1, userCol);\r\n\t\tLocation loc9 = new Location(userRow-1, userCol1);\r\n\t\tLocation loc10 = new Location(userRow-1, userCol2);\r\n\t\tLocation loc11 = new Location(userRow-1, userCol3);\r\n\t\t\r\n\t\tLocation loc12 = new Location(userRow-2, userCol);\r\n\t\tLocation loc13= new Location(userRow-2, userCol1);\r\n\t\tLocation loc14 = new Location(userRow-2, userCol2);\r\n\t\tLocation loc15 = new Location(userRow-2, userCol3);\r\n\r\n\t \r\n\r\n\r\n\r\n\t\t\r\n\t\tLocation base1 = new Location(userRow,0);\r\n\t\t\r\n\t\t\tgrid.setImage(base1, \"FSpiritHold.png\");\r\n\t\t\t\r\n\t\tfor(int a = 0; a<9; a++) {\r\n\t\tif(userCol>0 && userCol3 !=15 && userCol2!=15 && userCol1!=15 && userCol!=15 && userRow>0)\r\n\t\t{\r\n\t\r\n\t\t\t Location next101 = new Location(userRow+1,userCol);\r\n\t\t\t Location next102 = new Location(userRow+1,userCol1);\r\n\t\t\t Location next103 = new Location(userRow+1,userCol2);\r\n\t\t\t Location next104 = new Location(userRow+1,userCol3);\r\n\r\n\t\t\t\tLocation next201 = new Location(userRow,userCol);\r\n\t\t\t\tLocation next202 = new Location(userRow,userCol1);\r\n\t\t\t\tLocation next203 = new Location(userRow,userCol2);\r\n\t\t\t\tLocation next204 = new Location(userRow,userCol3);\r\n\t\t\t\t\r\n\t\t\t\tLocation next301 = new Location(userRow-1,userCol);\r\n\t\t\t\tLocation next302 = new Location(userRow-1,userCol1);\r\n\t\t\t\tLocation next303 = new Location(userRow-1,userCol2);\r\n\t\t\t\tLocation next304 = new Location(userRow-1,userCol3);\r\n\t\t\t\t\r\n\t\t\t Location next401 = new Location(userRow-2,userCol);\r\n\t\t\t Location next402 = new Location(userRow-2,userCol1);\r\n\t\t\t Location next403 = new Location(userRow-2,userCol2);\r\n\t\t\t Location next404 = new Location(userRow-2,userCol3);\r\n\t\t\t userCol+=1;\r\n\t\t\t userCol1+=1;\r\n\t\t\t\tuserCol2+=1;\r\n\t\t\t\tuserCol3+=1;\r\n\t\t\t grid.setImage(next101, \"SB401.png\");\r\n\t\t\t grid.setImage(loc1, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next102, \"SB402.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next103, \"SB403.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next104, \"SB404.png\");\r\n\t\t\t grid.setImage(loc3, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next201, \"SB301.png\");\r\n\t\t\t grid.setImage(loc4, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next202, \"SB302.png\");\r\n\t\t\t grid.setImage(loc5, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next203, \"SB303.png\");\r\n\t\t\t grid.setImage(loc6, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next204, \"SB304.png\");\r\n\t\t\t grid.setImage(loc7, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next301, \"SB201.png\");\r\n\t\t\t grid.setImage(loc8, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next302, \"SB202.png\");\r\n\t\t\t grid.setImage(loc9, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next303, \"SB203.png\");\r\n\t\t\t grid.setImage(loc10, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next304, \"SB204.png\");\r\n\t\t\t grid.setImage(loc11, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next401, \"SB101.png\");\r\n\t\t\t grid.setImage(loc12, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next402, \"SB102.png\");\r\n\t\t\t grid.setImage(loc13, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next403, \"SB103.png\");\r\n\t\t\t grid.setImage(loc14, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next404, \"SB104.png\");\r\n\t\t\t grid.setImage(loc15, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n }\r\n }",
"private void createPlayers(LogicEngine in_logicEngine)\r\n\t{\n\t\tfor(int i=0 ; i < 4 ;i++)\r\n\t\t{\r\n\t\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/tinyship.png\",(LogicEngine.rect_Screen.getWidth()/2) - (32*i) + 64,50,20);\r\n\t\t\tship.i_animationFrame=0;\r\n\t\t\tship.i_animationFrameSizeWidth=16;\r\n\t\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\tship.allegiance = GameObject.ALLEGIANCES.PLAYER;\r\n\t\t\tship.collisionHandler = new PlayerCollision(ship);\r\n\t\t\tship.stepHandlers.add(new PlayerStep(i,ship));\r\n\t\t\tship.shotHandler = new StraightLineShot(\"data/\"+GameRenderer.dpiFolder+\"/bullet.png\",7.0f,new Vector2d(0,9));\r\n\t\t\t\r\n\t\t\tship.stepHandlers.add(new AnimateRollStep());\r\n\t\t\t\t\r\n\t\t\tship.str_name = \"player\";\r\n\t\t\t\r\n\t\t\tship.c_Color = new Color(1.0f,1.0f,1.0f,1.0f);\r\n\t\t\t\r\n\t\t\tship.v.setMaxForce(3);\r\n\t\t\tship.v.setMaxVel(20.0);\r\n\t\t\tin_logicEngine.objectsPlayers.add(ship);\r\n\t\t\t\r\n\t\t\t//double firing speed on hell\r\n\t\t\tif(Difficulty.isHard())\r\n\t\t\t\tship.shootEverySteps = (int) (ship.shootEverySteps * 0.75); \r\n\t\t\t\r\n\t\t\t//for each advantage if it is enabled apply it\r\n\t\t\tfor(int j=Advantage.b_advantages.length-1 ;j>=0;j--)\r\n\t\t\t\tif(Advantage.b_advantages[j])\r\n\t\t\t\t\tAdvantage.applyAdvantageToShip(j,ship,i,in_logicEngine);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"private void createHash() throws IOException\n\t{\n\t\tmap = new HashMap<String, ImageIcon>();\n\t\t\n\t\tfor(int i = 0; i < pokemonNames.length; i++)\n\t\t{\n\t\t\tmap.put(pokemonNames[i], new ImageIcon(getClass().getResource(fileLocations[i])));\n\t\t}\n\t}",
"public Hotspot(float x, float y, float width, float height, int id) {\r\n\t\tthis(x, y, width, height);\r\n\t\t_id = id;\r\n\t}",
"@Override\n protected void generateTiles() {\n }",
"private void createImageDescriptor(String id) {\n\t\timageDescriptors.put(id, imageDescriptorFromPlugin(PLUGIN_ID, \"icons/\" + id)); //$NON-NLS-1$\n\t}",
"private void initializeShippingPoints() {\n shipping_points = new ShippingPoint[num_shipping_points];\n \n int x_size = 8;\n int y_size = 8;\n int[][] grid = new int[x_size][y_size]; //keeps track of which locations are taken\n //so no two ShippingPoints have the same location\n \n int x = 0;\n int y = 0;\n \n for(int i = 0; i < num_shipping_points; i++)\n {\n x = (int)(Math.random() * x_size);\n y = (int)(Math.random() * y_size);\n while(grid[x][y] != 0) {\n x = (int)(Math.random() * x_size);\n y = (int)(Math.random() * y_size);\n }\n grid[x][y] = 1;\n if(i % 4 == 0) { //be careful -- probably won't work in the general case\n Supplier supplier = new Supplier(x, y, i);\n shipping_points[i] = supplier;\n }\n else {\n Customer customer = new Customer(x, y, i);\n shipping_points[i] = customer;\n }\n }\n \n if(eight_shipping_points) {\n //for 8 shipping points\n shipping_points[0].setPosition(4, 0);\n shipping_points[1].setPosition(8, 0);\n shipping_points[2].setPosition(8, 4);\n shipping_points[3].setPosition(8, 8);\n shipping_points[4].setPosition(4, 8);\n shipping_points[5].setPosition(0, 8);\n shipping_points[6].setPosition(0, 4);\n shipping_points[7].setPosition(0, 0);\n }\n \n else {\n //for 20 shipping points\n /**/shipping_points[0].setPosition(4,0);\n shipping_points[1].setPosition(8, 0);\n shipping_points[2].setPosition(12, 0);\n shipping_points[3].setPosition(16, 0);\n shipping_points[4].setPosition(20, 0);\n shipping_points[5].setPosition(20, 4);\n shipping_points[6].setPosition(20, 8);\n shipping_points[7].setPosition(20, 12);\n shipping_points[8].setPosition(20, 16);\n shipping_points[9].setPosition(20, 20);\n shipping_points[10].setPosition(16, 20);\n shipping_points[11].setPosition(12, 20);\n shipping_points[12].setPosition(8, 20);\n shipping_points[13].setPosition(4, 20);\n shipping_points[14].setPosition(0, 20);\n shipping_points[15].setPosition(0, 16);\n shipping_points[16].setPosition(0, 12);\n shipping_points[17].setPosition(0, 8);\n shipping_points[18].setPosition(0, 4);\n shipping_points[19].setPosition(0, 0);/**/\n }\n \n displayShippingPoints();\n }",
"public static void createImages()\n {\n //Do if not done before\n if(!createdImages)\n {\n createdImages = true;\n for(int i=0; i<rightMvt.length; i++)\n {\n rightMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n leftMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n rightMvt[i].scale(rightMvt[i].getWidth()*170/100, rightMvt[i].getHeight()*170/100);\n leftMvt[i].scale(leftMvt[i].getWidth()*170/100, leftMvt[i].getHeight()*170/100);\n }\n for(int i=0; i<leftMvt.length; i++)\n {\n leftMvt[i].mirrorHorizontally();\n }\n for(int i=0; i<upMvt.length; i++)\n {\n upMvt[i] = new GreenfootImage(\"sniperEnemyUp\"+i+\".png\");\n downMvt[i] = new GreenfootImage(\"sniperEnemyDown\"+i+\".png\");\n upMvt[i].scale(upMvt[i].getWidth()*170/100, upMvt[i].getHeight()*170/100);\n downMvt[i].scale(downMvt[i].getWidth()*170/100, downMvt[i].getHeight()*170/100);\n }\n }\n }",
"private void cleanUpLocations(Long id) {\n// List<SingleNucleotidePolymorphism> snps =\n// singleNucleotidePolymorphismRepository.findByLocationsId(id);\n// List<GenomicContext> genomicContexts = genomicContextRepository.findByLocationId(id);\n List<SingleNucleotidePolymorphism> snps =\n singleNucleotidePolymorphismRepository.findIdsByLocationId(id);\n List<GenomicContext> genomicContexts = genomicContextRepository.findIdsByLocationId(id);\n\n if (snps.size() == 0 && genomicContexts.size() == 0) {\n locationRepository.delete(id);\n }\n }",
"@Override\n\tpublic void populateMap(CityWorldGenerator generator, PlatMap platmap) {\n\t\tgetSchematics(generator).populate(generator, platmap);\n\t\t\n\t\t// random fluff!\n\t\tOdds platmapOdds = platmap.getOddsGenerator();\n\t\tShapeProvider shapeProvider = generator.shapeProvider;\n\t\tint waterDepth = ParkLot.getWaterDepth(platmapOdds);\n\t\t\n\t\t// backfill with buildings and parks\n\t\tfor (int x = 0; x < PlatMap.Width; x++) {\n\t\t\tfor (int z = 0; z < PlatMap.Width; z++) {\n\t\t\t\tPlatLot current = platmap.getLot(x, z);\n\t\t\t\tif (current == null) {\n\t\t\t\t\t\n\t\t\t\t\t//TODO I need to come up with a more elegant way of doing this!\n\t\t\t\t\tif (generator.settings.includeBuildings) {\n\n\t\t\t\t\t\t// what to build?\n\t\t\t\t\t\tboolean buildPark = platmapOdds.playOdds(oddsOfParks);\n\t\t\t\t\t\tif (buildPark)\n\t\t\t\t\t\t\tcurrent = getPark(generator, platmap, platmapOdds, platmap.originX + x, platmap.originZ + z, waterDepth);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcurrent = getBackfillLot(generator, platmap, platmapOdds, platmap.originX + x, platmap.originZ + z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// see if the previous chunk is the same type\n\t\t\t\t\t\tPlatLot previous = null;\n\t\t\t\t\t\tif (x > 0 && current.isConnectable(platmap.getLot(x - 1, z))) {\n\t\t\t\t\t\t\tprevious = platmap.getLot(x - 1, z);\n\t\t\t\t\t\t} else if (z > 0 && current.isConnectable(platmap.getLot(x, z - 1))) {\n\t\t\t\t\t\t\tprevious = platmap.getLot(x, z - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if there was a similar previous one then copy it... maybe\n\t\t\t\t\t\tif (previous != null && !shapeProvider.isIsolatedLotAt(platmap.originX + x, platmap.originZ + z, oddsOfIsolatedLots)) {\n\t\t\t\t\t\t\tcurrent.makeConnected(previous);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// 2 by 2 at a minimum if at all possible\n\t\t\t\t\t\t} else if (!buildPark && x < PlatMap.Width - 1 && z < PlatMap.Width - 1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// is there room?\n\t\t\t\t\t\t\tPlatLot toEast = platmap.getLot(x + 1, z);\n\t\t\t\t\t\t\tPlatLot toSouth = platmap.getLot(x, z + 1);\n\t\t\t\t\t\t\tPlatLot toSouthEast = platmap.getLot(x + 1, z + 1);\n\t\t\t\t\t\t\tif (toEast == null && toSouth == null && toSouthEast == null) {\n\t\t\t\t\t\t\t\ttoEast = current.newLike(platmap, platmap.originX + x + 1, platmap.originZ + z);\n\t\t\t\t\t\t\t\ttoEast.makeConnected(current);\n\t\t\t\t\t\t\t\tplatmap.setLot(x + 1, z, toEast);\n\n\t\t\t\t\t\t\t\ttoSouth = current.newLike(platmap, platmap.originX + x, platmap.originZ + z + 1);\n\t\t\t\t\t\t\t\ttoSouth.makeConnected(current);\n\t\t\t\t\t\t\t\tplatmap.setLot(x, z + 1, toSouth);\n\n\t\t\t\t\t\t\t\ttoSouthEast = current.newLike(platmap, platmap.originX + x + 1, platmap.originZ + z + 1);\n\t\t\t\t\t\t\t\ttoSouthEast.makeConnected(current);\n\t\t\t\t\t\t\t\tplatmap.setLot(x + 1, z + 1, toSouthEast);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// remember what we did\n\t\t\t\t\tif (current != null)\n\t\t\t\t\t\tplatmap.setLot(x, z, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// validate each lot\n\t\tfor (int x = 0; x < PlatMap.Width; x++) {\n\t\t\tfor (int z = 0; z < PlatMap.Width; z++) {\n\t\t\t\tPlatLot current = platmap.getLot(x, z);\n\t\t\t\tif (current != null) {\n\t\t\t\t\tPlatLot replacement = current.validateLot(platmap, x, z);\n\t\t\t\t\tif (replacement != null)\n\t\t\t\t\t\tplatmap.setLot(x, z, replacement);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}",
"public void createPowerUps (int low, int high, int h, int w) {\n int num = (int) (random (low, high + 1));\n for (int i = 0; i < num; i++) {\n int x = ((int) random((width/pixelSize))) * pixelSize;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n if (getLocation(x, y).getType() == LocationType.AIR) {\n powerUps.add (new PowerUp (x, y, w, h));\n }\n }\n}",
"public void constructGraph(){\r\n\t\tmyGraph = new Graph();\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tmyGraph.addVertex(allSpots[i]);\r\n\t\t}\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tint th = i;\r\n\t\t\twhile(th%6!=0) {\r\n\t\t\t\tth--;\r\n\t\t\t}\r\n\t\t\tfor(int h=th;h<=th+5;h++) {\r\n\t\t\t\tif(h!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[h])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[h]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint tv=i;\r\n\t\t\twhile(tv-6>0) {\r\n\t\t\t\ttv=tv-6;\r\n\t\t\t}\r\n\t\t\tfor(int v=tv;v<36; v=v+6) {\r\n\t\t\t\tif(v!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[v])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[v]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Add verticies that store the Spot objects\r\n\t\t//Add edges to connect spots that share a property along an orthogonal direction\r\n\r\n\t\t//This is the ONLY time it is ok to iterate the array.\r\n\t\t\r\n\t\t//myGraph.addVert(...);\r\n\t\t//myGraph.addEdge(...);\r\n\t}",
"public Fruit(int id,GpsPoint GpsLocation,int value , Map map)\n\t{\n\t\tthis._id=id;\n\t\tthis._GPS=GpsLocation;\n\t\tthis._value=value;\n\t\t_GPSConvert = new Point3D(GpsLocation.getLon(),GpsLocation.getLat(),GpsLocation.getAlt());\n\t\tthis._PixelLocation = new Pixel(_GPSConvert, map);\n\t\tEatenTime = 0 ;\n\t}",
"public static void placeShips (Game game) {\n\t\t\n\t\tint dir, x, y, length, width;\n\t\tint[] shipDim;\n\t\tboolean[] success = new boolean[shipSizes.length];\n\t\t\n\t\tfor (int i = 0; i < shipSizes.length; i++) {\n\t\t\tsuccess[i] = false;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < shipSizes.length; i++) {\n\t\t\t\n\t\t\t// If an attempted ship location is invalid (off-screen or overlapping another ship) then success[i] will be false so it tries again.\n\t\t\twhile (success[i] == false) {\n\t\t\t\tdir = rnd.nextInt(2);\n\t\t\t\tx = rnd.nextInt(Config.BOARD_LENGTH);\n\t\t\t\ty = rnd.nextInt(Config.BOARD_WIDTH);\n\t\t\t\tshipDim = shipSizes[i];\n\t\t\t\tif (dir == 0) {\n\t\t\t\t\t// Across.\n\t\t\t\t\tlength = shipDim[0];\n\t\t\t\t\twidth = shipDim[1];\n\t\t\t\t} else {\n\t\t\t\t\t// Down.\n\t\t\t\t\tlength = shipDim[1];\n\t\t\t\t\twidth = shipDim[0];\n\t\t\t\t}\n\n\t\t\t\tShip ship = new Ship(i*10+5,length,width); // IDs will be 5, 15, 25, etc.\n\t\t\t\tsuccess[i] = game.addShip(ship, x, y);\n\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}",
"private void loadParkingLots() {\n ParkingLot metrotown = new ParkingLot(\"Metrotown\", 4);\n ParkingLot pacificcenter = new ParkingLot(\"PacificCenter\", 5);\n\n for (int i = 0; i < 3; i++) {\n metrotown.addParkingSpot(new ParkingSpot(\"M\" + i, \"medium\", 5));\n pacificcenter.addParkingSpot(new ParkingSpot(\"PC\" + i, \"large\", 4));\n }\n\n parkinglots.add(metrotown);\n parkinglots.add(pacificcenter);\n }",
"private void checkImage(int id, GraphicsContext gc)\n {\n switch (id)\n {\n case 1:\n drawImage(gc, \"/images/wandel.png\", 0, 0);\n drawImage(gc, \"/images/hero_onder.png\", 5, 5);\n break;\n case 2:\n drawImage(gc, \"/images/wandel.png\", 0, 0);\n break;\n case 3:\n drawImage(gc, \"/images/doel.png\", 0, 0);\n break;\n case 4:\n drawImage(gc, \"/images/muur.png\", 0, 0);\n break;\n case 5:\n drawImage(gc, \"/images/wandel.png\", 0, 0);\n drawImage(gc, \"/images/kist.png\", 5, 5);\n break;\n }\n }",
"public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}",
"private void buildMapArea(MapBuilderBase mapBuilder) {\n\t\tmap = new Tile[width][height];\n\n\t\tthis.name = mapBuilder.buildMap(map);\n\t\tupdateValues();\n\n\t\t// TODO: pathfinding precalculations?\n\n\t\t// Log.debug(\"Calculating path maps...\");\n\t\t// pointGraph = new PointGraph();\n\t\t// for (int x = 0; x < width; x++) {\n\t\t// for (int y = 0; y < height; y++) {\n\t\t// if (getTileAt(x, y).isPassable)\n\t\t// pointGraph.addVertex(new Vertex(new Point(x, y)));\n\t\t// }\n\t\t// }\n\t\t// pointGraph.calculateEdges();\n\t\t// Log.debug(\"done\");\n\t}",
"void Setup(int type){\r\n\t\t/*Rock Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\tif (id == 1){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = 0.0f*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = -2f/64f*Tile.TILEHEIGHT;\r\n\t\t\tthis.width = Tile.TILEWIDTH;\r\n\t\t\tthis.height = Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int)((4f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int)((15f / 64f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((56f / 64f) * Tile.TILEWIDTH) ;\r\n\t\t\tbounds.height = (int)((36f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Tree Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 2){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (-2 + 9f/64f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-3 - 32f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 5*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 5*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) ((128f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((240f/64f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Table Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 3){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (9f/64f - .2f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-40f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 1.f*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.10f*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (Tile.TILEHEIGHT/5.3f);\r\n\t\t\tbounds.y = (int) (.75*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Toilet Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 4){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (13f/64f - .2f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-70f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 1.f*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.10f*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (Tile.TILEHEIGHT/5.65f);\r\n\t\t\tbounds.y = (int) (1.3*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Chair Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 5){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (13f/64f - .2f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-70f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (Tile.TILEHEIGHT/5.65f);\r\n\t\t\tbounds.y = (int) (1.3*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Bush Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 6){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (13f/64f - .6f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-70f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 2*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (.55f*Tile.TILEHEIGHT);\r\n\t\t\tbounds.y = (int) (1.5*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((40f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Sunflower Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 7) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.1f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-.2f - 32f / 64f) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 1.5f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 1.5f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((32f / 64f ) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((32f / 64f + .6f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((32f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((32f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Pumpkin Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 8) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.85f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-144f / 64f +.4f) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 2.75f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.75f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((64f / 64f -.1f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((140f / 64f-.3f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((64f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((64f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Watermelon Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 9) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.85f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-144f / 64f +.4f) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 2.75f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.75f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((64f / 64f -.1f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((140f / 64f-.3f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((64f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((64f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Corn Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 10) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.45f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-80f / 64f ) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 2f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((64f / 64f -.3f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((80f / 64f +.1f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((32f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((64f / 64f - .2f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\t\r\n\t}",
"public void buildPathes() {\n\n for (Fruit fruit :game.getFruits()) {\n\n GraphNode.resetCounterId();\n changePlayerPixels();\n addBlocksVertices();\n Point3D fruitPixels = new Point3D(fruit.getPixels()[0],fruit.getPixels()[1]);\n GraphNode fruitNode = new GraphNode(fruitPixels);\n vertices.add(fruitNode);\n Target target = new Target(fruitPixels, fruit);\n\n //find the neigbours\n BFS();\n\n // build the grpah\n buildGraph(target);\n }\n }",
"private void populateLevel() {\n\t\t// Make the ragdoll\n\t\tragdoll = new RagdollModel(DOLL_POS.x, DOLL_POS.y);\n\t\tragdoll.setDrawScale(scale.x,scale.y);\n\t\tragdoll.setPartTextures(bodyTextures);\n\t\tragdoll.getBubbleGenerator().setTexture(bubbleTexture);\n\t\taddObject(ragdoll);\n\n\t\t// Create ground pieces\n\t\tPolygonObstacle obj;\n\t\tobj = new PolygonObstacle(WALL1, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall1\");\n\t\taddObject(obj);\n\n\t\tobj = new PolygonObstacle(WALL2, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall2\");\n\t\taddObject(obj);\n\n\t\tselector = new ObstacleSelector(world);\n\t\tselector.setTexture(crosshairTexture);\n\t\tselector.setDrawScale(scale);\n\t\t\n\t\t/*\n\t\tBodyDef groundDef = new BodyDef();\n\t\tgroundDef.type = BodyDef.BodyType.StaticBody;\n\t\tEdgeShape groundShape = new EdgeShape();\n\t\tgroundShape.set(-500.0f, 0.0f, 500.0f, 0.0f);\n\t\tground = world.createBody(groundDef);\n\t\tground.createFixture(groundShape,0);\n\t\t*/\n\t}"
] | [
"0.6468217",
"0.5989509",
"0.5987685",
"0.59249336",
"0.5720493",
"0.5687623",
"0.5683606",
"0.56170326",
"0.5524302",
"0.54560834",
"0.53920805",
"0.5360635",
"0.5305748",
"0.5293404",
"0.52710974",
"0.5251545",
"0.51943696",
"0.5183492",
"0.51685417",
"0.51590157",
"0.51313674",
"0.5127055",
"0.51086366",
"0.50991035",
"0.508599",
"0.508343",
"0.5077702",
"0.50765324",
"0.50497556",
"0.5047866",
"0.5046918",
"0.50390387",
"0.5038989",
"0.5037586",
"0.5024357",
"0.50161695",
"0.50090086",
"0.50087065",
"0.5005736",
"0.5000365",
"0.49895293",
"0.49835786",
"0.49813914",
"0.4978563",
"0.497792",
"0.4976606",
"0.4969723",
"0.4951249",
"0.49501055",
"0.49487394",
"0.4948439",
"0.49401084",
"0.49389866",
"0.49368915",
"0.49366271",
"0.4929077",
"0.49277866",
"0.4910715",
"0.49093533",
"0.49091548",
"0.48917553",
"0.48914614",
"0.4889017",
"0.48812798",
"0.48800573",
"0.48720592",
"0.48702896",
"0.4870028",
"0.48683652",
"0.4865647",
"0.4860133",
"0.48550364",
"0.48521563",
"0.48485684",
"0.48462445",
"0.48444593",
"0.48363128",
"0.4832669",
"0.48170263",
"0.48133916",
"0.48113117",
"0.48111564",
"0.48086947",
"0.4807918",
"0.48075917",
"0.4805359",
"0.48045194",
"0.48017815",
"0.48001295",
"0.47999156",
"0.4797202",
"0.47831744",
"0.4781168",
"0.47798178",
"0.47718978",
"0.47715378",
"0.47714132",
"0.47630376",
"0.47521225",
"0.47515342"
] | 0.50572145 | 28 |
Custom access to pool location database table : add new pool locations or coupons to pool location table | public void addNewPool(poolLocation pool) {
// add to database here
Cursor checking_avalability = helper.getPoolLocationData(PooltableName,
pool.getTitle());
if (checking_avalability == null) {
POOL_LIST.add(pool);
long RowIds = helper.insertPoolLocation(PooltableName,
pool.getTitle(), pool.getDescription(),
convertToString(pool.getIsCouponUsed()));
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
} else if (checking_avalability.getCount() == 0) { // checking twice to make sure it will not miss
POOL_LIST.add(pool);
long RowIds = helper.insertPoolLocation(PooltableName,
pool.getTitle(), pool.getDescription(),
convertToString(pool.getIsCouponUsed()));
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"public static void AddLocation(Location location){\n\ttry (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT City, AirportCode from Location\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateString(\"City\", location.getCity());\n resultSet.updateString(\"AirportCode\", location.getAirportCode());\n resultSet.insertRow();\n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n }",
"public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }",
"private void setLocation(){\r\n\t\t//make the sql command\r\n\t\tString sqlCmd = \"INSERT INTO location VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"');\";\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tstmt.executeUpdate(sqlCmd);\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}",
"static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}",
"@Override\n public boolean addNewLocation(JacocDBLocation toAdd)\n {\n\tlocationList.add(toAdd);\n\n\treturn writeLocationObjectToDB(toAdd);\n }",
"public void buildLocations() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS locations (id TEXT, latitude\"\n + \" REAL, longitude REAL, name TEXT, PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }",
"public void storeSnpLocation(Map<String, Set<Location>> snpToLocations) {\n for (String snpRsId : snpToLocations.keySet()) {\n\n Set<Location> snpLocationsFromMapping = snpToLocations.get(snpRsId);\n\n // Check if the SNP exists\n SingleNucleotidePolymorphism snpInDatabase =\n singleNucleotidePolymorphismRepository.findByRsId(snpRsId);\n if(snpInDatabase == null){\n snpInDatabase =\n singleNucleotidePolymorphismQueryService.findByRsIdIgnoreCase(snpRsId);\n }\n\n if (snpInDatabase != null) {\n\n // Store all new location objects\n Collection<Location> newSnpLocations = new ArrayList<>();\n\n for (Location snpLocationFromMapping : snpLocationsFromMapping) {\n\n String chromosomeNameFromMapping = snpLocationFromMapping.getChromosomeName();\n if (chromosomeNameFromMapping != null) {\n chromosomeNameFromMapping = chromosomeNameFromMapping.trim();\n }\n\n Integer chromosomePositionFromMapping = snpLocationFromMapping.getChromosomePosition();\n// if (chromosomePositionFromMapping != null) {\n// chromosomePositionFromMapping = chromosomePositionFromMapping.trim();\n// }\n\n Region regionFromMapping = snpLocationFromMapping.getRegion();\n String regionNameFromMapping = null;\n if (regionFromMapping != null) {\n if (regionFromMapping.getName() != null) {\n regionNameFromMapping = regionFromMapping.getName().trim();\n }\n }\n\n // Check if location already exists\n Location existingLocation =\n locationRepository.findByChromosomeNameAndChromosomePositionAndRegionName(\n chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n\n if (existingLocation != null) {\n newSnpLocations.add(existingLocation);\n }\n // Create new location\n else {\n Location newLocation = locationCreationService.createLocation(chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n newSnpLocations.add(newLocation);\n }\n }\n\n // If we have new locations then link to snp and save\n if (newSnpLocations.size() > 0) {\n\n // Set new location details\n snpInDatabase.setLocations(newSnpLocations);\n // Update the last update date\n snpInDatabase.setLastUpdateDate(new Date());\n singleNucleotidePolymorphismRepository.save(snpInDatabase);\n }\n else {getLog().warn(\"No new locations to add to \" + snpRsId);}\n\n }\n\n // SNP doesn't exist, this should be extremely rare as SNP value is a copy\n // of the variant entered by the curator which\n // by the time mapping is started should already have been saved\n else {\n // TODO WHAT WILL HAPPEN FOR MERGED SNPS\n getLog().error(\"Adding location for SNP not found in database, RS_ID:\" + snpRsId);\n throw new RuntimeException(\"Adding location for SNP not found in database, RS_ID: \" + snpRsId);\n\n }\n\n }\n }",
"public void InsertPlace(iconnectionpool connectionPool, String id_user, String id_place, String ip){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement();\n String datesubmit=new java.text.SimpleDateFormat(\"yyyy-MM-dd-hh-mm-ss\").format(new java.util.Date());\n String sql=\"insert into similarplaces(id_user,id_place,ip_submit,datesubmit)values(N'\"+id_user+\"',N'\"+id_place+\"',N'\"+ip+\"',N'\"+datesubmit+\"')\";\n stmt.executeUpdate(sql);\n \n }catch(Exception e){}\n }",
"private void addLocationToDatabase(Location location){\n if(recordLocations){\n JourneyLocation journeyLocation = new JourneyLocation(currentJourneyId, new LatLng(location.getLatitude(), location.getLongitude()), System.currentTimeMillis());\n interactor.addLocation(journeyLocation);\n }\n }",
"@Override\n\tpublic void storeLocations(long fleetId, AreaType areaType) throws DBConnectException, LocationRepositoryException {\n\t\tConnection connection = null;\n\t\ttry {\n\t\t\tconnection = DBConnector.getConnection(url);\n\t\t\t\n\t\t\tdelete(connection, fleetId, areaType);\n\t\t\t\n\t\t\tPreparedStatement ps = null;\n\t\t\tResultSet rs = null;\n\t\t\tString sql = \"SELECT id, LocationName, SpeedLimit, IsSafe, SequenceNo, latitude, longitude \"+\n\t\t\t\t\t\t \"FROM LocationsImport \"+\n\t\t\t\t\t\t \"WHERE AreaType = ? \"+\n\t\t\t\t\t\t \"ORDER BY LocationName, SequenceNo \";\n\t\t\ttry {\n\t\t\t\tps = connection.prepareStatement(sql);\n\t\t\t\tint i = 1;\n\t\t\t\tps.setString(i,areaType.name);\n\t\t\t\trs = ps.executeQuery();\n\t\t\t\tLocation currentLocation = null;\n\t\t\t\t\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\ti = 1;\n\t\t\t\t\tlong id = rs.getLong(i++);\n\t\t\t\t\tString locationName = rs.getString(i++);\n\t\t\t\t\tBigDecimal speedLimit = rs.getBigDecimal(i++);\n\t\t\t\t\tboolean isSafe = rs.getInt(i++)==1;\n\t\t\t\t\tint sequenceNo = rs.getInt(i++);\n\t\t\t\t\tBigDecimal latitude = rs.getBigDecimal(i++);\n\t\t\t\t\tBigDecimal longitude = rs.getBigDecimal(i++);\n\t\t\t\t\tif (currentLocation == null || !currentLocation.isSameAs(locationName)) { // Location has changed\n\t\t\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentLocation = new Location(id, areaType, locationName, sequenceNo, speedLimit, isSafe, latitude, longitude);\n\t\t\t\t\t\tlogger.log(Level.INFO,\"Started new location \"+locationName);\n\t\t\t\t\t} else {\t// This is another point in the existing currentLocation. Make sure the sequenceNo makes sense, otherwise reject it\n\t\t\t\t\t\tif (currentLocation.isNextInSequence(sequenceNo)) {\n\t\t\t\t\t\t\tcurrentLocation.add(sequenceNo, latitude,longitude);\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Added to location \"+locationName+\" sequenceNo \"+sequenceNo+\" number of points \"+currentLocation.getNumberOfPoints());\n\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\tcurrentLocation.markAsBad(\"Incorrect sequence number \"+sequenceNo+\" - it should have been 1 more than \"+currentLocation.getSequenceNo());\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Incorrect sequenceNo \"+sequenceNo+\" for location \"+locationName+\" it should have been \"+currentLocation.getSequenceNo()+\"+1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tString msg = \"Unable to select the locations to import for AreaType \"+areaType+\" using sql \"+sql+\" : SQLException \"+ex.getMessage();\n\t\t\t\tlogger.log(Level.SEVERE,msg,ex);\n\t\t\t\tthrow new LocationRepositoryException(msg,ex);\n\t\t\t} finally {\t\t\n\t\t\t\tif (rs != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trs.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\trs = null;\n\t\t\t\t}\n\t\t\t\tif (ps != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\tps = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (Throwable th) {\n\t\t\t\t}\n\t\t\t\tconnection = null;\n\t\t\t}\n\t\t}\n\t}",
"private void addAdmin() {\n try (Connection connection = this.getConnection();\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(INIT.GET_ADMIN.toString())) {\n if (!rs.next()) {\n int address_id = 0;\n st.executeUpdate(INIT.ADD_ADMIN_ADDRESS.toString(), Statement.RETURN_GENERATED_KEYS);\n try (ResultSet rs1 = st.getGeneratedKeys()) {\n if (rs1.next()) {\n address_id = rs1.getInt(1);\n }\n }\n try (PreparedStatement ps = connection.prepareStatement(INIT.ADD_ADMIN.toString())) {\n ps.setInt(1, address_id);\n ps.execute();\n }\n }\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n\n }",
"void insertSelective(VRpWkLocationGprsCs record);",
"private void register_to_data_table() {\n\n\t\t\tfinal DataClient dc = this.task.data_client;\n\t\t\tfinal Transaction tx = dc.beginTransaction();\n\n\t\t\tfinal String repoid = this.op_repo;\n\t\t\tString uid = this.op_user;\n\n\t\t\tAliasDAO alias_dao = new AliasDAO(dc);\n\t\t\tuid = alias_dao.findUser(uid);\n\n\t\t\tRepoDTM repoinfo = dc.get(uid, RepoDTM.class);\n\t\t\tif (repoinfo == null) {\n\t\t\t\trepoinfo = new RepoDTM();\n\t\t\t\tdc.insert(uid, repoinfo);\n\t\t\t}\n\n\t\t\tMap<String, RepoItem> tab = repoinfo.getTable();\n\t\t\tif (tab.containsKey(repoid)) {\n\t\t\t\tString msg = \"the repo with name [%s] exists.\";\n\t\t\t\tmsg = String.format(msg, repoid);\n\t\t\t\tthrow new SnowflakeException(msg);\n\t\t\t}\n\n\t\t\tURI location = this.repo.getComponentContext().getURI();\n\n\t\t\tRepoItem item = new RepoItem();\n\t\t\titem.setName(repoid);\n\t\t\titem.setLocation(location.toString());\n\t\t\titem.setDescriptor(this.getRepoDescriptorId().toString());\n\t\t\ttab.put(repoid, item);\n\n\t\t\tdc.update(repoinfo);\n\n\t\t\ttx.commit();\n\n\t\t}",
"public void addLocation(LocationHandler locationHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, locationHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, locationHandlerArray.date_entry);\n\t\tvalues.put ( key_latitude, locationHandlerArray.longitude);\n\t\tvalues.put ( key_longitude, locationHandlerArray.latitude);\n\t\tvalues.put ( key_name, locationHandlerArray.name);\n\t\tvalues.put ( key_type, locationHandlerArray.type);\n\t\tvalues.put ( key_search_tag, locationHandlerArray.getSearchTag());\n\t\tvalues.put ( key_amountables, locationHandlerArray.getAmountables());\n\t\tvalues.put ( key_description, locationHandlerArray.getDescription());\n\t\tvalues.put ( key_best_seller, locationHandlerArray.getBestSeller());\n\t\tvalues.put ( key_web_site, locationHandlerArray.getWebsite());\n\t\tlong addLog = db.insert( table_location, null, values);\n\t\tLog.i(TAG, \"add data : \" + addLog);\n\t\tdb.close();\n\t}",
"void insert(VRpWkLocationGprsCs record);",
"public void UpdatePlace(iconnectionpool connectionPool, String id_user, String id_place, String ip, String id_similar_place){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement();\n String datesubmit=new java.text.SimpleDateFormat(\"yyyy-MM-dd-hh-mm-ss\").format(new java.util.Date());\n String sql=\"update similarplaces set id_similar_place='\"+id_similar_place+\"', dateupdate='\"+datesubmit+\"', ip_update='\"+ip+\"' where id_user='\"+id_user+\"' and id_place='\"+id_place+\"'\";\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }",
"public void initArrayList()\n {\n\tSQLiteDatabase db = getWritableDatabase();\n\tCursor cursor = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n\tif (cursor.moveToFirst())\n\t{\n\t do\n\t {\n\t\tJacocDBLocation newLocation = new JacocDBLocation();\n\t\tnewLocation.setLocationName(cursor.getString(1));\n\t\tnewLocation.setRealLocation(new LocationBorder(new LatLng(cursor.getDouble(2), cursor.getDouble(3)), new LatLng(cursor.getDouble(4), cursor.getDouble(5))));\n\t\tnewLocation.setMapLocation(new LocationBorder(new LatLng(cursor.getInt(6), cursor.getInt(7)), new LatLng(cursor.getInt(8), cursor.getInt(9))));\n\t\tnewLocation.setHighSpectrumRange(cursor.getDouble(10));\n\t\tnewLocation.setLowSpectrumRange(cursor.getDouble(11));\n\n\t\t// adding the new Location to the collection\n\t\tlocationList.add(newLocation);\n\t }\n\t while (cursor.moveToNext()); // move to the next row in the DB\n\n\t}\n\tcursor.close();\n\tdb.close();\n }",
"private void mockUpDB() {\n locationDBAdapter.insertLocationData(\n \"ChIJd0UHJHcw2jARVTHgHdgUyrk\",\n \"Baan Thong Luang\",\n \"https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png\",\n \"https://maps.google.com/maps/contrib/101781857378275784222/photos\",\n \"CmRSAAAAEegLHnt03YODdRQ658VBWtIhOoz3TjUAj1oVqQIlLq0DkfSttuS-SQ3aOLBBbuFdwKbpkbsrFzMWghgyZeRD-n5rshknOXv6p5Xo3bdYr5FMOUGCy-6f6LYRy1PN9cKOEhBuj-7Dc5fBhX_38N_Sn7OPGhTBRgFIvThYstd7e8naYNPMUS2rTQ\",\n \"GOOGLE\",\n \"236/10 Wualai Road Tumbon Haiya, CHIANG MAI\",\n 18.770709,\n 98.978078,\n 0.0);\n\n }",
"private void saveLocations(){\n\n final LocationsDialog frame = this;\n WorkletContext context = WorkletContext.getInstance();\n\n LocationsTableModel model = (LocationsTableModel) locationsTable.getModel();\n final HashMap<Integer, Location> dirty = model.getDirty();\n\n\n for(Integer id : dirty.keySet()) {\n Location location = dirty.get(id);\n\n\n if (!Helper.insert(location, \"Locations\", context)) {\n System.out.print(\"insert failed!\");\n }\n\n }// end for\n\n model.refresh();\n\n }",
"int insertSelective(Location record);",
"private void AddLocation () {\n Location mLocation = new Location();\n mLocation.SetId(1);\n mLocation.SetName(\"Corner Bar\");\n mLocation.SetEmail(\"contact.email.com\");\n mLocation.SetAddress1(\"1234 1st Street\");\n mLocation.SetAddress2(\"\");\n mLocation.SetCity(\"Minneapolis\");\n mLocation.SetState(\"MN\");\n mLocation.SetZip(\"55441\");\n mLocation.SetPhone(\"612-123-4567\");\n mLocation.SetUrl(\"www.cornerbar.com\");\n\n ParseACL acl = new ParseACL();\n\n // Give public read access\n acl.setPublicReadAccess(true);\n mLocation.setACL(acl);\n\n // Save the post\n mLocation.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n\n }\n });\n }",
"@Override\n\tpublic Location uploadLocation(final Location location) {\n\t\t// datasource is used to connect with database\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t\n\t\t// Check if provided headUnitId is registered or not\n\t\tString sql = \"select count(1) from headunit where headunit_id = ? \";\n\n\t\tint result = jdbcTemplate.queryForObject(sql, new Object[] { location.getHeadunit_id() }, Integer.class);\n\t\t\n\t\tif (result > 0) {\n\t\t\n\t\t\t// if headUnitId is registered, upload location details\n\t\t\tfinal PreparedStatementCreator psc = new PreparedStatementCreator() {\n\t\t\t\t@Override\n\t\t\t\tpublic PreparedStatement createPreparedStatement(final Connection connection) throws SQLException {\n\t\t\t\t\tfinal PreparedStatement ps = connection.prepareStatement(\n\t\t\t\t\t\t\t\"INSERT INTO location(headunit_id,latitude,longitude,altitude,address,createddate) \"\n\t\t\t\t\t\t\t\t\t+ \"Values (?,?,?,?,?,?)\",\n\t\t\t\t\t\t\tStatement.RETURN_GENERATED_KEYS);\n\t\t\t\t\t// set parameters\n\t\t\t\t\tps.setLong(Utility.LOC_HUID_INDEX, location.getHeadunit_id());\n\t\t\t\t\tps.setFloat(Utility.LOC_LAT_INDEX, location.getLatitude());\n\t\t\t\t\tps.setFloat(Utility.LOC_LOGT_INDEX, location.getLongitude());\n\t\t\t\t\tps.setFloat(Utility.LOC_ALT_INDEX, location.getAltitude());\n\t\t\t\t\tps.setString(Utility.LOC_ADD_INDEX, location.getAddress());\n\t\t\t\t\tps.setTimestamp(Utility.LOC_CDT_INDEX, getCurrentDate());\n\n\t\t\t\t\treturn ps;\n\t\t\t\t}\n\t\t\t};\n\t\t\t// return auto generated locationID\n\t\t\tfinal KeyHolder holder = new GeneratedKeyHolder();\n\n\t\t\tjdbcTemplate.update(psc, holder);\n\n\t\t\tfinal long locationid = holder.getKey().longValue();\n\t\t\tif (locationid > 0) {\n\t\t\t\t// set message, status\n\t\t\t\tlocation.setLocation_id(locationid);\n\t\t\t\tlocation.setStatus(true);\n\t\t\t\tlocation.setMessage(\"NEW LOCATION RECORD UPLOADED FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t\t}\n\t\t\tlogger.info(\"NEW LOCATION RECORD UPLOADED FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t\t\n\t\t\t//Send GCM notification\n\t\t\t//call function for the same\n\t\t\tsendGCMNotificationForNewLocation(location.getHeadunit_id(), location);\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\t// given headUnitId is not registered, set status and message\n\t\t\tlocation.setStatus(false);\n\t\t\tlocation.setMessage(\"NO DATA FOUND FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t\tlogger.info(\"NO DATA FOUND FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t}\n\n\t\treturn location;\n\t}",
"public void insertGestionStock(Map criteria);",
"public int persist(Connection conn) throws SQLException {\r\n\t\t\r\n\t\t// Start transaction\r\n\t\tconn.setAutoCommit(false);\r\n\r\n\t\ttry {\r\n\t\t\t// Check if exists\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(\r\n\t\t\t\t\t\"select c_bpartner_location_id, c_location_id from c_bpartner_location where ad_client_id=? and customeraddressid=?\");\r\n\t\t\tps.setInt(1, adClientId);\r\n\t\t\tps.setString(2, customerAddressId);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tint tmpPartnerLocationId = 0;\r\n\t\t\tint tmpLocationId = 0;\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\ttmpPartnerLocationId = rs.getInt(1);\r\n\t\t\t\ttmpLocationId = rs.getInt(2);\r\n\t\t\t}\r\n\t\t\tpartnerLocationId=tmpPartnerLocationId;\r\n\t\t\tif (locationId==0 && tmpLocationId>0)\r\n\t\t\t\tlocationId = tmpLocationId;\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\t\r\n\t\t\t// Update / insert location first\r\n\t\t\tint c = 1;\r\n\t\t\tps = conn.prepareStatement(tmpLocationId==0 ? insertSqlLocation : updateSqlLocation);\r\n\t\t\tps.setInt(c++, adOrgId);\r\n\t\t\tps.setInt(c++, adClientId);\r\n\t\t\tps.setString(c++, address1);\r\n\t\t\tps.setString(c++, address2);\r\n\t\t\tps.setString(c++, address3);\r\n\t\t\tps.setString(c++, address4);\r\n\t\t\tps.setString(c++, city);\r\n\t\t\tps.setString(c++, postal);\r\n\t\t\tps.setString(c++, countryCode);\r\n\t\t\tif (locationId>0)\r\n\t\t\t\tps.setInt(c++, locationId);\r\n\t\t\tps.executeUpdate();\r\n\t\t\tps.close();\r\n\t\t\t\r\n\t\t\t// Get last id\r\n\t\t\tif (tmpLocationId==0) {\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\trs = stmt.executeQuery(\"select currval('c_location_sq')\");\r\n\t\t\t\tif (rs.next())\r\n\t\t\t\t\tlocationId = rs.getInt(1);\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tc = 1;\r\n\t\t\tps = conn.prepareStatement(tmpPartnerLocationId>0 ? updateSql : insertSql);\r\n\t\t\tps.setInt(c++, adOrgId);\r\n\t\t\tps.setInt(c++, adClientId);\r\n\t\t\tps.setInt(c++, partnerId);\r\n\t\t\tps.setString(c++, name);\r\n\t\t\tps.setString(c++, phone);\r\n\t\t\tps.setString(c++, (isBillTo ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, (isShipTo ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, (isPayFrom ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, (isRemitTo ? \"Y\" : \"N\"));\r\n\t\t\tps.setInt(c++, locationId);\r\n\t\t\tps.setString(c++, (isActive ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, customerAddressId);\r\n\t\t\tif (partnerLocationId>0) {\r\n\t\t\t\tps.setInt(c++, partnerLocationId);\r\n\t\t\t}\r\n\t\t\tint result = ps.executeUpdate();\r\n\t\t\tps.close();\r\n\r\n\t\t\t// Get last id\r\n\t\t\tif (tmpPartnerLocationId==0) {\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\trs = stmt.executeQuery(\"select currval('c_bpartner_location_sq')\");\r\n\t\t\t\tif (rs.next())\r\n\t\t\t\t\tpartnerLocationId = rs.getInt(1);\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tconn.commit();\r\n\t\t\t\r\n\t\t\treturn result;\r\n\t\t} catch (SQLException se) {\r\n\t\t\tconn.rollback();\r\n\t\t\tthrow se;\r\n\t\t} finally {\r\n\t\t\tconn.setAutoCommit(false);\r\n\t\t}\r\n\t}",
"public void addBankDDLocation() {\n\t\t System.out.println(\"the value of country\"+this.countryId);\n\t\t System.out.println(\"the map value is\"+mapCountryList.get(this.countryId));\n\t\t System.out.println(\"dDAgent :\"+ dDAgent +\"the map value is\"+mapAgentList.get(new BigDecimal(this.dDAgent)));\n\t\t try {\n\t\t AddBankDDPrintLocBean addBankDDPrintLocBean = new AddBankDDPrintLocBean(mapCountryList.get(this.countryId),this.dDAgent,this.dDPrintLocation,this.countryId,this.stateId,this.districtId,this.cityId,this.bankBranchId,mapAgentList.get(new BigDecimal(this.dDAgent)));\n\t\t bankDdPrintLocationList.add(addBankDDPrintLocBean);\n\t\t }catch(NullPointerException npexp) {\n\t\t\t System.out.println(\"null pointer exception is occured\");\n\t\t\t npexp.printStackTrace();\n\t\t }catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t setRenderDDDataTable(true);\n\t\t setBankBranchId(null);\n\t\t setBankId(null);\n\t\t setCountryId(null);\n\t\t setStateId(null);\n\t\t setDistrictId(null);\n\t\t setCityId(null);\n\t\t setdDAgent(\"\");\n\t\t setdDPrintLocation(\"\");\n\t\t setRenderDdprintLocation(false);\n\t }",
"private void addToDB(String CAlias, String CPwd, String CFirstName,\n String CLastName, String CStreet, String CZipCode, String CCity,\n String CEmail)\n {\n con.driverMysql();\n con.dbConnect();\n \n try \n {\n sqlStatement=con.getDbConnection().createStatement();\n sqlString=\"INSERT INTO customer (CAlias, CFirstName, CLastName, CPwd, \"\n + \"CStreetHNr, CZipCode, CCity, CEmail, CAccessLevel)\"\n + \" VALUES\"\n + \"('\" + CAlias + \"', '\" + CFirstName + \"', '\" + CLastName\n + \"', '\" + CPwd + \"', '\" + CStreet + \"', '\" \n + CZipCode + \"', '\" + CCity + \"', '\" + CEmail + \"', 1);\";\n \n sqlStatement.executeUpdate(sqlString);\n sqlString=null;\n con.getDbConnection().close();\n } \n catch (Exception ex) \n {\n error=ex.toString();\n }\n }",
"int insert(Location record);",
"Long addLocation(String cityName, double lat, double lon, double wlat, double wlon) {\n\n Long locationId = 100L;\n\n // First, check if the location with this city name exists in the db\n Cursor locationCursor = mContext.getContentResolver().query(\n WeatherContract.LocationEntry.CONTENT_URI,\n new String[]{WeatherContract.LocationEntry._ID},\n WeatherContract.LocationEntry.COLUMN_WEATHER_CITY + \" = ?\",\n new String[]{cityName},\n null);\n\n if (locationCursor != null &&locationCursor.moveToFirst()) {\n int locationIdIndex = locationCursor.getColumnIndex(WeatherContract.LocationEntry._ID);\n locationId = locationCursor.getLong(locationIdIndex);\n } else {\n ContentValues locationValues = new ContentValues();\n\n locationValues.put(WeatherContract.LocationEntry.COLUMN_WEATHER_CITY, cityName);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_STARTING_COORD_LAT, lat);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_STARTING_COORD_LON, lon);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_WEATHER_COORD_LAT, wlat);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_WEATHER_COORD_LON, wlon);\n\n // Finally, insert location data into the database.\n Uri insertedUri = mContext.getContentResolver().insert(\n WeatherContract.LocationEntry.CONTENT_URI,\n locationValues\n );\n\n // The resulting URI contains the ID for the row. Extract the locationId from the Uri.\n locationId = ContentUris.parseId(insertedUri);\n\n }\n Log.d(LOG_TAG,\"LOCATION_ID =\" + locationId);\n locationCursor.close();\n return locationId;\n }",
"private void addPositions() {\n Object[] newRow = new Object[6];\n TicketPriceListPosition selectedPosition = (TicketPriceListPosition) ticketPriceListPositionJComboBox.getSelectedItem();\n newRow[0] = selectedPosition.getDay().getName();\n newRow[1] = selectedPosition.getDiscountGroup().getName();\n newRow[2] = selectedPosition.getDaytime().getName();\n newRow[3] = selectedPosition.getAttractionType().getName();\n newRow[4] = selectedPosition.getPrice();\n newRow[5] = selectedPosition.getId();\n this.tableModel.addRow(newRow);\n this.choosenPositionTable = new JTable(this.tableModel);\n ticketPriceListPositionController.createTicketPriceListPosition(\n selectedPosition.getPrice(),\n ticketPriceList.getId(),\n selectedPosition.getDay().getId(),\n selectedPosition.getDiscountGroup().getId(),\n selectedPosition.getDaytime().getId(),\n selectedPosition.getAttractionType().getId()\n );\n JOptionPane.showMessageDialog(null, \"Position has been successfully added to price list!\");\n }",
"public void addSubLocation(SubLocationHandler subLocationHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, subLocationHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, subLocationHandlerArray.date_entry);\n\t\tvalues.put ( key_name, subLocationHandlerArray.name);\n\t\tvalues.put ( key_longitude, subLocationHandlerArray.longitude);\n\t\tvalues.put ( key_latitude, subLocationHandlerArray.latitude);\n\t\tvalues.put ( key_location_id, subLocationHandlerArray.location_id);\n\t\tdb.insert( table_subLocation, null, values);\n\t\tdb.close();\n\t}",
"private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public static int addUser_Admin(String Fullname, String cnic, int location,\r\n\t\t\tString city, String area, String Phone) {\r\n\r\n\t\tString query = \"insert into salesman(salesman_name,salesman_cnic,salesman_district,salesman_address,salesman_phone_no,salesman_basic_sallery,salesman_date_join)\"\r\n\t\t\t\t+ \"Values('\"\r\n\t\t\t\t+ Fullname\r\n\t\t\t\t+ \"','\"\r\n\t\t\t\t+ cnic\r\n\t\t\t\t+ \"','\"\r\n\t\t\t\t+ location\r\n\t\t\t\t+ \"','\"\r\n\t\t\t\t+ city\r\n\t\t\t\t+ \"','\"\r\n\t\t\t\t+ area\r\n\t\t\t\t+ \"','\"\r\n\t\t\t\t+ Phone\r\n\t\t\t\t+ \"','CURDATE()');\";\r\n\t\tSystem.out.println(\"Query : \" + query);\r\n\r\n\t\tint row = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tst = con.createStatement();\r\n\t\t\trow = st.executeUpdate(query);\r\n\t\t\tif (row > 0) {\r\n\t\t\t\tSystem.out.println(\"Data is inserted\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Data is not inserted\");\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn row;\r\n\t}",
"public static void addPosition (String poiname, String datetime, String latitude, String lontitude) {\n\t\ttry {\n\t\t\tint\tpoi_id = storage.createPoi(poiname, latitude, lontitude, 1, databox_id);\n\t\t\tint poiext_status = storage.createPoiExt(\"locate_time\", datetime);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t}",
"public static ArrayList<Location> GetAllLocations(){\n \n ArrayList<Location> Locations = new ArrayList<>();\n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM location\")){\n \n while(resultSet.next())\n {\n Location location = new Location();\n location.setCity(resultSet.getString(\"City\"));\n location.setCity(resultSet.getString(\"AirportCode\"));\n Locations.add(location);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Locations;\n }",
"int insert(TbCities record);",
"public ArrayList<poolLocation> getPoolList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> tempLocationList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(pool1ID)\n\t\t\t\t\t|| location.getTitle().equals(pool2ID) || location\n\t\t\t\t\t.getTitle().equals(pool3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == false)\t\t\t\t\t// only return any pool without buying a coupon\n\t\t\t\ttempLocationList.add(location);\n\t\t}\n\n\t\treturn tempLocationList;\n\n\t\t// return POOL_LIST;\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();",
"public void setRouteCapacaties(ArrayList theCommodities, int aCapacity){ \n //construct sql query\n String theCapacityEnquiery = \"select commodity from route_capacity where route = \"+id+\";\";\n ResultSet theExistingCapcacaties = NRFTW_Trade.dBQuery(theCapacityEnquiery);\n ArrayList theExisitingCapacityStrings = new ArrayList(); \n try{\n //unpack results\n while(theExistingCapcacaties.next()){\n \n theExisitingCapacityStrings.add(theExistingCapcacaties.getString(1));\n }\n }catch(SQLException ex){\n System.out.println(ex);\n }\n //make sure existing capacaties use set rather than insert queries \n //itterate through the existing capacaties\n //for each, write a \"Set\" query\n //delete relevent comodity from the Commodities\n String theCapacityUpdateQuery = \"update route_capacity set rate = \"+aCapacity+\" where route = \"+id+\" and commodity in('\";\n String theCapacityInsertQuery = \"insert into route_capacity(route, commodity, rate) values \";\n int insertCount = 0;\n int updateCount = 0;\n // for each commodity\n for(Iterator<Commodity> commodityItterator = theCommodities.iterator(); commodityItterator.hasNext();){\n Commodity aCommodity = commodityItterator.next();\n if(theExisitingCapacityStrings.contains(aCommodity.theName)){\n if(updateCount > 0){\n theCapacityUpdateQuery += \",'\";\n }\n theCapacityUpdateQuery += aCommodity.theName+\"'\";\n updateCount = updateCount+1;\n }else{\n if(insertCount > 0){\n theCapacityInsertQuery += \",\";\n }\n theCapacityInsertQuery += \"(\"+id+\",'\"+aCommodity.theName+\"',\"+aCapacity+\")\";\n insertCount = insertCount+1; \n }\n }\n theCapacityInsertQuery += \";\";\n theCapacityUpdateQuery += \");\";\n if(insertCount >0){\n NRFTW_Trade.dBUpdate(theCapacityInsertQuery);\n }\n if(updateCount >0){\n NRFTW_Trade.dBUpdate(theCapacityUpdateQuery);\n }\n // insert line in route_capacaties\n //update db\n }",
"private void UploadtoServerSavedLocaiton() {\n\t\tCursor c = database.rawQuery(\"SELECT * from locations \", null);\r\n\t\tString mName = null, mPolygon = null;\r\n\t\tbyte[] blob;\r\n\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tmName = c.getString(c.getColumnIndex(\"name\"));\r\n\t\t\t\t\tblob = c.getBlob(c.getColumnIndex(\"polygon\"));\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmPolygon = new String(blob, \"UTF-8\");\r\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tUploadSavedLocationtoServer(mName, mPolygon);\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t\tif (mResponse.contains(\"Success\")) {\r\n\t\t\t\t// Success alert\r\n\t\t\t\tmaTitle = \"Success\";\r\n\t\t\t\tmaMessage = \"Field added successfully\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t\tuploadarraylist = new ArrayList<String>();\r\n\t\t\t\tmyList = new ArrayList<LatLng>();\r\n\t\t\t\tdatabase.execSQL(\"delete from locations\");\r\n\t\t\t\tSystem.err.println(\"database empty\");\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// Failure Alert\r\n\t\t\t\tmaTitle = \"Failure\";\r\n\t\t\t\tmaMessage = \"Error in adding field\\nTry again\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.close();\r\n\r\n\t}",
"public void addLocationInfo(LocationInfoHandler locationInfoHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, locationInfoHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, locationInfoHandlerArray.date_entry);\n\t\tvalues.put ( key_content, locationInfoHandlerArray.content);\n\t\tvalues.put ( key_title, locationInfoHandlerArray.title);\n\t\tvalues.put ( key_location_id, locationInfoHandlerArray.location_id);\n\t\tvalues.put ( key_image, convertToByte(locationInfoHandlerArray.image));\n\t\tdb.insert( table_locationInfo, null, values);\n\t\tdb.close();\n\t}",
"public int addStorageplace (Storageplace pStorageplace){\r\n\t List<Storageplace> storageplaceList = getAll();\r\n\t boolean storageplaceExists = false;\r\n\t for(Storageplace storageplace: storageplaceList){\r\n\t if(storageplace.getStorageplaceName() == pStorageplace.getStorageplaceName()){\r\n\t \t storageplaceExists = true;\r\n\t break;\r\n\t }\r\n\t }\t\t\r\n\t if(!storageplaceExists){\r\n\t \t storageplaceList.add(pStorageplace);\r\n\t // Setup query\r\n\t String query = \"INSERT INTO storageplace(storageplace_name) VALUE(?);\";\r\n\t Connection conn = Database.connectMariaDb();\r\n\t try {\r\n\t\t\t\t// Setup statement\r\n\t\t\t\t PreparedStatement stmt = conn.prepareStatement(query);\r\n\t\t\t\t // Set values\r\n\t\t\t\tstmt.setString(1, pStorageplace.getStorageplaceName());\t\t\t\t\t\t\r\n\t\t\t\t// Execute statement\r\n\t\t\t\tstmt.executeUpdate();\t\t\t\t\r\n\t\t\t\t// Closing statement and connection\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tDatabase.mariaDbClose();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tSystem.err.println(\"An SQL exception occured when trying to add a record to storageplace \" + e.getMessage());\r\n\t\t\t\treturn 0;\r\n\t\t\t}\t\t \r\n\t return 1;\r\n\t }\r\n\t return 0;\r\n\t }",
"private void addGeoData(String key, double lat, double lon)\n {\n String type=\"\";\n if(mType=='E')\n type=\"Events/\";\n else if(mType=='G')\n type=\"Groups/\";\n\n DatabaseReference placeRef= database.getReference(type+mEntityID+\"/places\");\n GeoFire geoFire= new GeoFire(placeRef);\n geoFire.setLocation(key,new GeoLocation(lat,lon));\n\n }",
"private void linkHotelAddress(Connection connection) throws SQLException {\n\n String sql = \"INSERT INTO Hotel_Address VALUES (?, ?, ?, ?, ?)\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n pStmt.setString(1, getHotelName());\n pStmt.setInt(2, getBranchID());\n pStmt.setString(3, getCity());\n pStmt.setString(4, getState());\n pStmt.setInt(5, getZip());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally { pStmt.close(); }\n }",
"public static void worldLocsInsert(Player player) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tLocation pLoc = player.getLocation();\n\t\t\tint x = pLoc.getBlockX();\n\t\t\tint y = pLoc.getBlockY();\n\t\t\tint z = pLoc.getBlockZ();\n\t\t\tUUID uuid = player.getUniqueId();\n\n\t\t\t/* This is easier... */\n\t\t\tst.executeUpdate(\"DELETE FROM worldlocs WHERE uuid='\" + uuid + \"';\");\n\t\t\tst.executeUpdate(\"INSERT INTO worldlocs(uuid, x, y, z) VALUES ('\" + uuid + \"', '\" + x + \"', '\" + y + \"', '\" + z + \"');\");\n\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}",
"@Override\n public void migrate(OccupiedLocations ols) {\n for (Population pop:ols.copyList()) {\n setCoordinate(pop.getCoordinate());\n\n Population migrating_pop = pop.collectMigrants(getRate());\n if (migrating_pop.getSize() > 0) {\n migrating_pop.setCoordinate(getPicker().pick());\n migrating_pop.setResource(0.0);\n\n // alter *actual* populations\n ols.addOrMix(migrating_pop);\n }\n }\n }",
"public void updatePoolwithBoughtCoupon(String ID, boolean isgteCoupon) {\n\t\thelper.updatePoolLocationTable(PooltableName, ID,\n\t\t\t\tconvertToString(isgteCoupon));\n\t}",
"public Integer addLocation(Location loc) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(loc);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return id;\n }",
"private boolean writeLocationObjectToDB(JacocDBLocation toAdd)\n {\n\tSQLiteDatabase db = this.getWritableDatabase();\n\n\tContentValues values = new ContentValues();\n\tvalues.put(this.LOCATION_NAME, toAdd.getLocationName());\n\tvalues.put(this.NE_REAL_LAT, toAdd.getRealLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_REAL_LNG, toAdd.getRealLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_REAL_LAT, toAdd.getRealLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_REAL_LNG, toAdd.getRealLocation().getSouthWest().getLng());\n\tvalues.put(this.NE_MAP_LAT, toAdd.getMapLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_MAP_LNG, toAdd.getMapLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_MAP_LAT, toAdd.getMapLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_MAP_LNG, toAdd.getMapLocation().getSouthWest().getLng());\n\tvalues.put(this.HIGH_SPEC, toAdd.getHighSpectrumRange());\n\tvalues.put(this.LOW_SPEC, toAdd.getLowSpectrumRange());\n\n\tdb.insert(TABLE_NAME, null, values);\n\tdb.close(); // Closing database connection\n\n\treturn true;\n }",
"private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }",
"void insertSelective(VRpDyLocationBh record);",
"public static void UpdateLocation(Location location){\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT City, AirportCode from Location WHERE AirportCode = '\" + location.getAirportCode() + \"'\")){\n \n resultSet.absolute(1);\n resultSet.updateString(\"City\", location.getCity());\n resultSet.updateString(\"AirportCode\", location.getAirportCode());\n resultSet.updateRow();\n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n }",
"public void add_location() {\n if (currentLocationCheckbox.isChecked()) {\n try {\n CurrentLocation locationListener = new CurrentLocation();\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null) {\n int latitude = (int) (location.getLatitude() * 1E6);\n int longitude = (int) (location.getLongitude() * 1E6);\n currentLocation = new GeoPoint(latitude, longitude);\n }\n } catch (SecurityException e) {\n e.printStackTrace();\n }\n } else {\n currentLocation = null;\n }\n\n }",
"public void addPoolMap(PoolMap poolMap){\n\n\t\tpoolMaps.add(poolMap);\n\t}",
"@Insert\n boolean upsertLocation(SpacecraftLocationOverTime reading);",
"gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Loc addNewLoc();",
"public abstract void updateLocation(Location location, String newLocationName, int newLocationCapacity);",
"public abstract void updateLocations();",
"protected void updateCustomTables(HttpServletRequest request, Db db)\n {\n\t String strain = getServerItemValue(ItemType.STRAIN);\n\t if(bNewStrain)\n\t {\n\t\t\tCode.info(\"Updating custom table record for strain \" + strain);\n\t\t\tsetMessage(\"Successfully imported new strain(s)\");\n\t\t\t\n\n\t\t\tArrayList<String> params = new ArrayList<String>();\n\t\t params.add(strain);\n\t\t params.add(getServerItemValue(\"StrainName\"));\n\t\t params.add(getStrainType());\n\t\t params.add(getServerItemValue(ItemType.PROJECT));\n\t\t params.add(getServerItemValue(DataType.NOTEBOOK_REF));\n\t\t params.add(getServerItemValue(DataType.COMMENT));\n\t\t params.add(getTranId() + \"\");\n\t\t \n\t\t String sql = \"spMet_InsertStrain\";\n\t\t \n\t\t db.getHelper().callStoredProc(db, sql, params, false, true);\n\t\t \n\n\t\t \t // set multiple location values from rowset\t\n\t\t // warning: relies on specific 'location index' (position in LinxML)\n\t\t \n\t\t //lets get the straintype\n\t\t String strainType = getStrainType(strain);\n\t\t //long strainTypeId = dbHelper.getAppValueIdAsLong(\"StrainType\", strainType, null, false, true, this, db);\n\t\t List<String> locations = new ArrayList<String>();\n\t\t if(bHaveFile)\n\t\t {\n\t\t \t //locations should be set in the dom\n\t\t \t locations = getServerItemValues(\"Location\");\n\t\t }\n\t\t else\n\t\t {\n\t\t \t TableDataMap rowMap = new TableDataMap(request, ROWSET);\n\t\t\t int numRows = rowMap.getRowcount();\n\t\t\t //do we have the correct number of locations\n\t\t\t if(numRows != this.getLocationRowCount())\n\t\t\t \t throw new LinxUserException(\"Invalid number of freezer locations. This task expects \" \n\t\t\t \t\t\t + getLocationRowCount() + \" rows.\");\n\t\t\t\t for(int rowIdx = 1; rowIdx <= numRows; rowIdx++)\n\t\t\t\t {\n\t\t\t\t\t String location = (String)rowMap.getValue(rowIdx, COLUMN_LOCATION);\n\t\t\t\t\t if(location.indexOf(\":\") < 1)\n\t\t\t\t\t {\n\t\t\t\t\t\t throw new LinxUserException(\"Please provide a location in the format FRZ:BOX:POS,\"\n\t\t\t\t\t\t\t\t + \" then try again.\");\n\t\t\t\t\t }\n\t\t\t\t\t locations.add(location);\n\t\t\t\t }\n\t\t }\n\t\t\t //if we're here we have all of the locations\n\t\t if(locations.size() != getLocationRowCount())\n\t\t \t throw new LinxUserException(\"Invalid number of freezer locations. This task expects \" \n\t\t \t\t\t + getLocationRowCount() + \" rows.\");\n\t\t int rowIdx = 1;\n\t\t for(String location : locations)\n\t\t {\n\t\t \t String[] alLocs = location.split(\":\");\n\t\t\t\t String freezer = alLocs[0];\n\t\t\t\t String box = alLocs[1];\n\t\t\t\t String coord = alLocs[2];\n\t\t\t\t \n\t\t\t\t try\n\t\t\t\t {\n\t\t\t\t\t int idxLastColon = location.lastIndexOf(':');\n\t\t\t\t\t String pos = location.substring(idxLastColon + 1);\n\t\t\t\t\t //now lets zero pad the position\n\t\t\t\t\t if(pos.length() < 2)\n\t\t\t\t\t {\n\t\t\t\t\t\t pos = zeroPadPosition(pos);\n\t\t\t\t\t\t coord = pos;\n\t\t\t\t\t\t location = location.substring(0,idxLastColon) + \":\" + pos;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t catch(Exception ex)\n\t\t\t\t {\n\t\t\t\t\t throw new LinxUserException(\"Unable to parse location [\" + location + \"]: \" + ex.getMessage());\n\t\t\t\t }\n\t\t\t\t String boxType = box.substring(0,box.length() - 2);\n\t\t\t\t String transferPlan = strainType + \" Freezer \" + freezer + \" Box \" + boxType;\n\t\t\t\t String transferPlanId = db.getHelper().getDbValue(\"exec spMet_getTransferPlanId '\" \n\t\t\t\t\t + transferPlan + \"','\" + coord + \"'\", db);\n\n\t\t\t\t \n\t\t\t\t params.clear();\n\t\t\t\t params.add(strain);\n\t\t\t\t params.add(freezer); \n\t\t\t\t params.add(box);\n\t\t\t\t params.add(coord);\n\t\t\t\t params.add(rowIdx+\"\"); //location index\n\t\t\t\t params.add(strainType);\n\t\t\t\t params.add(transferPlanId);\n\t\t\t\t params.add(getTranId()+\"\");\n\t\t\t\t\n\t\t \t sql = \"spEMRE_insertStrainLocation\";\n\t\t\t\t dbHelper.callStoredProc(db, sql, params, false, true);\n\t\t\t\t rowIdx++;\n\t\t\t }// next loc index \n\t\t\t // at exit, have updated strain locations\n\t }\n\t\n\t else\n\t {\n\t \t//sql = \"spMet_UpdateStrain\";\n\t\t\t//setMessage(\"Successfully updated strain \" + strain);\n\t \t//as of June 2010 v1.11.0 do not allow updating of existing strain information\n\t \t//only allow updating of comments.\n\t\t \n\t\t String comment = getServerItemValue(DataType.COMMENT);\n\t\t if(WtUtils.isNullOrBlank(comment))\n\t\t {\n\t\t\t throw new LinxUserException(\"Only comments are allowed to be updated if the strain already exists. Please enter comments and try again.\");\n\t\t }\n\t\t else\n\t\t {\n\t\t\t String strainId = dbHelper.getItemId(strain, ItemType.STRAIN, db);\n\t\t\t String sql = \"spEMRE_updateStrainComment \" + strainId + \",'\" + comment + \"'\";\n\t\t\t dbHelper.executeSQL(sql, db);\n\t\t\t setMessage(\"Successfully updated strain '\" + strain + \"' comments.\");\n\t\t }\n\t }\n \n\t \t \n }",
"@Override\n\tpublic void insertIntoSupplier(Supplier supplier) {\n\t\tString sql=\"INSERT INTO supplier \"+\" (supplier_id, supplier_name, supplier_type, permanent_address, temporary_address, email ,image) SELECT ?,?,?,?,?,?\";\n getJdbcTemplate().update(sql, new Object[] {supplier.getSupplierId(), supplier.getSupplierName(), supplier.getSupplierType(), supplier.getPermanentAddress(), supplier.getTemporaryAddress(),supplier.getEmail() ,supplier.getImage()});\n\t}",
"public static void pushRouteToDatabase() {\n Database database = Database.getInstance();\n long distance = calculateTotalDistance(LocationService.getLocationPoints());\n long time = stopStart.getStopTime() - stopStart.getStartTime();\n database.addToDailyDistance(distance);\n database.addToDailyTime(time);\n }",
"public void addLocationToComboBox() throws Exception{}",
"int insertSelective(TbCities record);",
"void insert(VRpDyLocationBh record);",
"public static void candidate_add()\n {\n Alert a;\n //run sql query\n try\n {\n ResultSet r = con.createStatement().executeQuery(\"select * from candidates\");\n while (r.next())\n {\n //create objects and put in hashmap\n Candidate can=new Candidate(r.getString(\"candidate_id\"),r.getString(\"candidate_name\"),r.getString(\"nic\"),r.getString(\"party_id\"),r.getString(\"party_name\"),r.getString(\"address\"),r.getString(\"tel_no\"),r.getInt(\"age\"));\n allCandidates.put(r.getString(\"candidate_id\"),can);\n }\n }\n catch(Exception ex)\n {\n a = new Alert(AlertType.ERROR);\n a.setContentText(ex.getMessage());\n a.show();\n }\n }",
"public void addtoDB(String plate,String date,double km,ObservableList<Service> serv){\n \n plate = convertToDBForm(plate);\n \n try {\n stmt = conn.createStatement();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n if(!checkTableExists(plate)){ \n try {\n stmt.execute(\"CREATE TABLE \" + plate + \"(DATA VARCHAR(12),QNT DOUBLE,DESC VARCHAR(50),PRICE DOUBLE,KM DOUBLE);\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n for(int i=0;i<serv.size();i++){\n \n double qnt = serv.get(i).getQnt();\n String desc = serv.get(i).getDesc();\n double price = serv.get(i).getPrice();\n \n try {\n stmt.executeUpdate(\"INSERT INTO \" + plate + \" VALUES('\" + date + \"',\" + Double.toString(qnt) + \",'\" + desc + \"',\" + Double.toString(price) + \",\" + Double.toString(km) + \");\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n try {\n stmt.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }",
"public void addVendor_Scheme_Plan_Map() {\n\t\tboolean flg = false;\n\n\t\ttry {\n\n\t\t\tvspmDAO = new Vendor_Scheme_Plan_MapDAO();\n\t\t\tflg = vspmDAO.saveVendor_Scheme_Plan_Map(vspm);\n\t\t\tif (flg) {\n\t\t\t\tvspm = new Vendor_Scheme_Plan_Map();\n\t\t\t\tMessages.addGlobalInfo(\"New mapping has been added!\");\n\t\t\t} else {\n\t\t\t\tMessages.addGlobalInfo(\"Failed to add new mapping! Please try again later.\");\n\t\t\t}\n\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t} finally {\n\t\t\tvspmDAO = null;\n\t\t}\n\t}",
"com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints addNewScans();",
"private void insertStateAndCity(final UserLocation userLocation) {\r\n final String siteId = userLocation.getSiteId();\r\n final String buildingId = userLocation.getBuildingId();\r\n \r\n if (StringUtil.notNullOrEmpty(siteId) || StringUtil.notNullOrEmpty(buildingId)) {\r\n // Find the state and city id's for this location.\r\n final Building filter = new Building();\r\n filter.setSiteId(siteId);\r\n filter.setBuildingId(buildingId);\r\n final List<Building> buildings = this.spaceService.getBuildings(filter);\r\n if (!buildings.isEmpty()) {\r\n userLocation.setStateId(buildings.get(0).getStateId());\r\n userLocation.setCityId(buildings.get(0).getCityId());\r\n }\r\n }\r\n }",
"void setLocationCells(ArrayList<String> loc){\r\n locationCells = loc;\r\n }",
"void insertOrUpdate(StockList stockList) throws Exception;",
"void addLocation(Location location) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, location.getName()); // assign location name\n values.put(KEY_CATEGORY, location.getCategory()); // religion\n values.put(KEY_DESCRIPTION, location.getDescription()); // description\n values.put(KEY_LATITUDE, location.getLatitude());\n values.put(KEY_LONGITUDE, location.getLongitude());\n\n // Inserting Row\n db.insert(TABLE_LOCATIONS, null, values);\n db.close(); // Closing database connection\n }",
"public void getParking() throws SQLException{\n ResultSet rs = Datasource.getInstance().openParking();\n while(rs.next()){\n this.parking.add(rs.getString(\"town\"));\n }\n }",
"public interface LocativeService {\n public List<Locative> getAll();\n public Locative add(Locative locative);\n public Locative update(Locative locative);\n public Locative findById(int id);\n public void delete(int id);\n /*public List<Locative> findByProperty(Property property);\n public List<Locative> findByCity(City city);*/\n public double garanty(int id);\n // public List<Locative> getLocativeNotInContrat();\n public int countLocative();\n public List<Locative> export(int cpt, HttpServletRequest request);\n}",
"private void updateTargetProductGeocoding() {\n }",
"public AddressSetView addToView(ProgramLocation loc);",
"public void addBestelling(Bestelling bestelling) {\n\r\n DatabaseConnection connection = new DatabaseConnection();\r\n if(connection.openConnection())\r\n {\r\n // If a connection was successfully setup, execute the INSERT statement\r\n\r\n connection.executeSQLInsertStatement(\"INSERT INTO bestelling (`bestelId`, `tafelId`) VALUES(\" + bestelling.getId() + \",\" + bestelling.getTafelId() + \");\");\r\n\r\n for(Drank d : bestelling.getDranken()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO drank_bestelling (`DrankID`, `BestelId`, `hoeveelheid`) VALUES (\" + d.getDrankId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n for(Gerecht g : bestelling.getGerechten()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO gerecht_bestelling (`GerechtID`, `BestelId`, `hoeveelheid`) VALUES (\" + g.getGerechtId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n\r\n //Close DB connection\r\n connection.closeConnection();\r\n }\r\n\r\n }",
"public void insert(){\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n \n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\n \"jdbc:mysql://localhost:3306/process_checkout\",\"root\",\"\"\n );\n \n String query = \"INSERT INTO area (name) VALUES (?)\";\n \n PreparedStatement preparedStmt = conn.prepareStatement(query);\n preparedStmt.setString(1, name);\n preparedStmt.execute();\n \n }catch(SQLException e){\n \n } catch (ClassNotFoundException ex) {\n \n }finally{\n try {\n if(rs != null)rs.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(ps != null)ps.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(conn != null)conn.close();\n } catch (SQLException e) {\n /* ignored */ }\n }\n \n }",
"static public void set_country_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3), Edit_row_window.selected[0].getText(4), \n\t\t\t\tEdit_row_window.selected[0].getText(5), Edit_row_window.selected[0].getText(6)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_locations l, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.location_id=l.id and lc.country_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\" from curr_places_locations l \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"location name\", \"rating\", \"population\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"LOCATIONS\";\n\t}",
"public void setLocationDao(LocationDAO dao) { _locationData = dao; }",
"public void setPoolId(Long poolId);",
"public Triplet add(Triplet t) throws DAOException;",
"int insert(Shipping record);",
"public boolean AddToDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t //add info to database\n\t\t\tString query = \"INSERT INTO Housing(name, address, phone_number, year_built, price, housing_uid, \"\n\t\t\t\t\t+ \"max_residents, catagory) \"\n\t\t\t\t\t+ \"VALUES('\"+name+\"', '\"+address+\"', '\"+phoneNumber+\"', '\"+yearBuilt+\"', '\"+price+\"', \"\n\t\t\t\t\t+ \"'\"+uid+\"', '\"+maxResidents+\"', '\"+catagory+\"')\"; \n\t\t\t\n\t\t\tint insertResult = con.stmt.executeUpdate(query);\n\t\t\tif(insertResult > 0)\n\t\t\t{\n\t\t\t\tSystem.out.println (\"Housing added to database.\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println (\"Housing NOT added to database.\");\n\t\t\t}\n\t\t\t\n\t\t\t//get housing id\n\t\t\tquery = \"SELECT h_id FROM Housing WHERE name ='\"+name+\"' AND address ='\"+address+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\thid = rs.getInt(\"h_id\"); \n\t\t\t}\n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\t\n\t\t\t//set up keywords\n\t\t\tif (keywords.size() > 0)\n\t\t\t{\n\t\t\t\tAddKeywords(); \n\t\t\t}\n\t\t\t\n\t\t\tif(openDates.size() > 0)\n\t\t\t{\n\t\t\t\tAddAvailableDates(); \n\t\t\t}\n\t\t\t\n\t\t\treturn true; \n\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic void addPIN(PINDTO pin) {\n\t\ttry{\n\t\t\tPreparedStatement stmnt = connection.prepareStatement(\"INSERT INTO TBL_PIN(PIN, URL) VALUES(?, ?)\");\n\t\t\tstmnt.setInt(1, pin.getPIN());\n\t\t\tstmnt.setString(2, pin.getURL());\n\t\t\t\n\t\t\tint n = stmnt.executeUpdate();\n\t\t if (n != 1)//remember to catch the exceptions\n\t\t \t throw new DataAccessException(\"Did not insert one row into database\");\n\t\t } catch (SQLException e) {\n\t\t throw new DataAccessException(\"Unable to execute query; \" + e.getMessage(), e);\n\t\t } finally {\n\t\t if (connection != null) {\n\t\t try {\n\t\t \t connection.close();//and close the connections etc\n\t\t \t\t } catch (SQLException e1) { //if not close properly\n\t\t e1.printStackTrace();\n\t\t }\n\t\t }\n\t\t }\n\t}",
"public static Boolean saveUserDetils(Integer orderId,String city, String location,\n\t\t\tString pincode, ArrayList<OrderItems> orderItemList,\n\t\t\tString deliveryZone,String deliveryAddress,String instruction){\n\t\tBoolean success = false;\n\n\t\ttry {\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\t//connection.setAutoCommit(false);\n\t\t\t//String latLongs[] = getLatLongPositions(flatNo+\" \"+streetName+\" \"+landmark+\" \"+location+\" \"+city+\" \"+pincode);\n\t\t\t// System.out.println(\"---Customer's Latitude: \"+latLongs[0]+\" ----and Longitude: \"+latLongs[1]);\n\t\t\t//Double deliveryLatitude = Double.parseDouble(latLongs[0]);\n\t\t\t//Double deliveryLongitude = Double.parseDouble(latLongs[1]);\n\t\t\tBoolean kitchenAssigned = false , orderedQuantityIsValid = false;\n\t\t\tInteger nearestKitchenId, nextNearestKitchenId;\n\t\t\tSQL:{\n\t\t\t\tPreparedStatement preparedStatement= null;\n\t\t\t\tint rows ;\n\t\t\t\t/*String sql = \"INSERT INTO fapp_order_user_details( \"\n\t\t\t +\" order_id, order_by, flat_no, street_name, landmark, delivery_location, city, pincode, delivery_latitude,delivery_longitude) \"\n\t\t\t +\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);\";*/\n\t\t\t\t/*String sql = \"INSERT INTO fapp_order_user_details( \"\n\t\t\t +\" order_id, order_by, flat_no, street_name, landmark, delivery_location, city, pincode,deliveryZone, deliveryAddress, instruction) \"\n\t\t\t +\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);\";*/\n\t\t\t\tString sql = \"INSERT INTO fapp_order_user_details( \"\n\t\t\t\t\t\t+\" order_id, delivery_location, city, pincode,delivery_zone, delivery_address, instruction) \"\n\t\t\t\t\t\t+\" VALUES (?, ?, ?, ?, ?, ?, ?);\";\n\t\t\t\ttry {\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\t\tpreparedStatement.setInt(1, orderId);\n\t\t\t\t\t/*preparedStatement.setString(2, name);\n\t\t\t\t\t\tpreparedStatement.setString(3, flatNo);\n\t\t\t\t\t\tpreparedStatement.setString(4, streetName);\n\t\t\t\t\t\tif(landmark!=null){\n\t\t\t\t\t\t\tpreparedStatement.setString(5, landmark);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tpreparedStatement.setNull(5, Types.NULL);\n\t\t\t\t\t\t}*/\n\n\t\t\t\t\tpreparedStatement.setString(2, location);\n\t\t\t\t\tif(city!=null){\n\t\t\t\t\t\tpreparedStatement.setString(3, city); \n\t\t\t\t\t}else{\n\t\t\t\t\t\tpreparedStatement.setString(3, \"Kolkata\"); \n\t\t\t\t\t}\n\t\t\t\t\tpreparedStatement.setString(4, pincode);\n\t\t\t\t\t//preparedStatement.setDouble(9, deliveryLatitude);\n\t\t\t\t\t//preparedStatement.setDouble(10, deliveryLongitude);\n\t\t\t\t\tif(deliveryZone!=null){\n\t\t\t\t\t\tif(deliveryZone.equalsIgnoreCase(\"New town\")){\n\t\t\t\t\t\t\tpreparedStatement.setString(5,\"New Town (kolkata)\");\n\t\t\t\t\t\t}else if(deliveryZone.equalsIgnoreCase(\"Saly lake\")){\n\t\t\t\t\t\t\tpreparedStatement.setString(5, \"Salt Lake City\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tpreparedStatement.setString(5, toCamelCase(deliveryZone));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tpreparedStatement.setNull(5, Types.NULL);\n\t\t\t\t\t}\n\t\t\t\t\tif(deliveryAddress!=null){\n\t\t\t\t\t\tpreparedStatement.setString(6, deliveryAddress);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tpreparedStatement.setNull(6, Types.NULL);\n\t\t\t\t\t}\n\t\t\t\t\tif(instruction!=null){\n\t\t\t\t\t\tpreparedStatement.setString(7, instruction);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tpreparedStatement.setNull(7, Types.NULL);\n\t\t\t\t\t}\n\n\t\t\t\t\trows = preparedStatement.executeUpdate();\n\n\t\t\t\t\tif(rows>0){\n\t\t\t\t\t\tsuccess = true;\n\n\t\t\t\t\t\tSystem.out.println(\"User Details inserted:\"+success);\n\n\t\t\t\t\t\t/*\tnearestKitchenId = getNearestKitchenId(deliveryLatitude, deliveryLongitude);\n\t\t\t\t\t\t\tSystem.out.println(\"Nearest KitchenId- - - >\"+nearestKitchenId);\n\t\t\t\t\t\t\tif(isExcessQuantity(getUserQuantity(orderItemList), getkitchenStock(nearestKitchenId, orderItemList))){\n\t\t\t\t\t\t\t//if user quantity excess with nearest kitchen then find next nearest kitchen\n\t\t\t\t\t\t\t\tSystem.out.println(\"Order id->\"+orderId+\" is rejected from \"+nearestKitchenId+\" as quantity exceeds...\");\n\t\t\t\t\t\t\t\t\tnextNearestKitchenId = getNextNearestKitchenId(nearestKitchenId);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Next nearest KitchenId->\"+nextNearestKitchenId);\n\t\t\t\t\t\t\t\t\tif(isExcessQuantity(getUserQuantity( orderItemList), getkitchenStock(nextNearestKitchenId, orderItemList))){\n\n\t\t\t\t\t\t\t\t\t\torderedQuantityIsValid = false;\n\n\t\t\t\t\t\t\t\t\t\tkitchenAssigned = false;\n\n\t\t\t\t\t\t\t\t\t\tsuccess = false;\n\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Again Order id->\"+orderId+\" is rejected from \"+nextNearestKitchenId+\" as quantity exceeds...\");\n\n\t\t\t\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t\t\t\torderedQuantityIsValid = true;\n\n\t\t\t\t\t\t\t\t\t\tkitchenAssigned = orderAssignToKitchen(orderId, nextNearestKitchenId);\n\n\t\t\t\t\t\t\t\t\t\tsuccess = true;\n\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Order id->\"+orderId+\" is assigned to \"+nextNearestKitchenId+\" as quantity NOT exceeds...\");\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t\t\torderedQuantityIsValid = true;\n\n\t\t\t\t\t\t\t\t\tkitchenAssigned = orderAssignToKitchen(orderId, nearestKitchenId);\n\n\t\t\t\t\t\t\t\t\tsuccess = true;\n\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Order id->\"+orderId+\" is assigned to \"+nearestKitchenId+\" as quantity NOT exceeds...\");\n\n\t\t\t\t\t\t\t\t} */\n\t\t\t\t\t\t//getkitchenStock(nearestKitchenId, orderItemList);\n\n\t\t\t\t\t}\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tconnection.rollback();\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\t//\tconnection.setAutoCommit(true);\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\tif(success){\n\t\t\tSystem.out.println(\"User details successfully inserted!\");\n\t\t}\n\t\treturn success;\n\t}",
"int insert(ParkCurrent record);",
"public interface IdbLocation {\n\n Location createLocation(int _id, String _name); //throws DBException;\n Location setLocation(int _id, String _name);\n boolean deleteLocation(int _id);\n\n static Location getLocation(int _id) {\n return new Location();\n }\n\n static HashMap<Integer, Location> getLocations() { // <id_Location, Location object itself>\n return new HashMap<Integer, Location>();\n }\n \n}",
"public interface LoanApplyAddressService {\n\n void insertLoanApplyPersonInfo(UserAddressAndCompanyReq userAddressAndCompanyReq,Integer uid);\n\n}",
"public static void rebuildPool() throws SQLException {\n // Close pool connections when plugin disables\n if (poolMgr != null) {\n poolMgr.dispose();\n }\n poolMgr = new GameModeInventoriesPoolManager(dataSource, 10);\n }",
"public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.OrganizationPositionList addNewOrganizationPositionList();",
"public long addLoc(String location) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_LOC_NAME, location); \n return db.insert(DATABASE_TABLE_LOC, null, initialValues);\n }",
"public void commitToPutAllCities() throws SQLException {\n \t\tstreetDAO.commit();\n \t}",
"void add_collab_prnc() {\n\t\ttry {\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select id from utilisateur where username=\"+'\"'+login_class.UsernameLog+'\"';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\tsimple_users_select_list_id.add(res.getInt(\"id\"));\n\t\t\t}\n\t\t\tjdbc.setConnection().close();\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}",
"@Override\n\tpublic void insertSanCtn(Map<String, String> params) throws SQLException {\n\t\t\n\t}",
"int insertSelective(AddressMinBalanceBean record);",
"@GET\n @Path(\"/points/{user}/{pool}/{increment}\")\n public Response incrementPool(\n @Context HttpServletRequest request \n ,@Context HttpServletResponse response\n ,@Context ServletContext servletContext\n ,@PathParam(\"user\") String user\n ,@PathParam(\"pool\") String pool\n ,@PathParam(\"increment\") String increment\n ){\n try{\n Database2 db=Database2.get();\n db.increment(pool, user, Integer.valueOf(increment), null).save();\n db.save();\n return Response.status(200).entity(\"{\\\"status\\\":\\\"DONE\\\"}\").build();\n }catch(Exception e){\n return Response.status(500).entity(\"{\\\"status\\\":\\\"ERROR\\\",\\\"message\\\":\\\"\"+e.getMessage()+\"\\\"}\").build(); \n }\n }"
] | [
"0.65160996",
"0.6200774",
"0.6002989",
"0.5883878",
"0.58476394",
"0.5834624",
"0.57751167",
"0.5745849",
"0.5742014",
"0.56307656",
"0.56278616",
"0.560656",
"0.546503",
"0.5464927",
"0.54231393",
"0.5394",
"0.53786063",
"0.5272472",
"0.52685773",
"0.5255019",
"0.5241982",
"0.5203945",
"0.51910174",
"0.5147759",
"0.5147732",
"0.5136135",
"0.5133251",
"0.513158",
"0.5092925",
"0.5055429",
"0.50538355",
"0.5053575",
"0.5053495",
"0.50376433",
"0.5015834",
"0.50120854",
"0.50116384",
"0.5010695",
"0.50084853",
"0.49905473",
"0.49827158",
"0.49787137",
"0.49719146",
"0.49713403",
"0.4967939",
"0.4964643",
"0.4962872",
"0.49619317",
"0.49456203",
"0.49441066",
"0.4926713",
"0.49152038",
"0.4911134",
"0.49090022",
"0.49080753",
"0.49037373",
"0.4897713",
"0.48977068",
"0.48873994",
"0.4885588",
"0.4884369",
"0.48801354",
"0.4876955",
"0.4843823",
"0.48284078",
"0.4817429",
"0.48127103",
"0.4812243",
"0.4802272",
"0.47979373",
"0.47967058",
"0.47912797",
"0.47896913",
"0.47893578",
"0.4783225",
"0.47807166",
"0.47781798",
"0.47737834",
"0.47681308",
"0.47520122",
"0.47477868",
"0.4743225",
"0.4742379",
"0.4741176",
"0.4740017",
"0.4733464",
"0.47300148",
"0.47265425",
"0.47203138",
"0.4713275",
"0.47127235",
"0.47120404",
"0.47078836",
"0.4707472",
"0.47045356",
"0.47041684",
"0.47031295",
"0.46998867",
"0.46959856",
"0.4695229"
] | 0.70339966 | 0 |
Custom access to game location database table : add new game locations to game location table | public void addNewGame(gameLocation game) {
// add to database here
Cursor checking_avalability = helper.getGameLocationData(GamelocationTableName,
game.getTitle());
if (checking_avalability == null) {
GAME_LIST.add(game);
long RowIds = helper.insertGameLocation(GamelocationTableName,
game.getTitle(), game.getDescription(),
convertToString(game.getIsCouponUsed()));
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
} else if (checking_avalability.getCount() == 0) { // checking twice to make sure it will not miss
GAME_LIST.add(game);
long RowIds = helper.insertGameLocation(GamelocationTableName,
game.getTitle(), game.getDescription(),
convertToString(game.getIsCouponUsed())); // reuse method
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addLocationToDatabase(Location location){\n if(recordLocations){\n JourneyLocation journeyLocation = new JourneyLocation(currentJourneyId, new LatLng(location.getLatitude(), location.getLongitude()), System.currentTimeMillis());\n interactor.addLocation(journeyLocation);\n }\n }",
"public static void AddLocation(Location location){\n\ttry (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT City, AirportCode from Location\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateString(\"City\", location.getCity());\n resultSet.updateString(\"AirportCode\", location.getAirportCode());\n resultSet.insertRow();\n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n }",
"private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"private void setLocation(){\r\n\t\t//make the sql command\r\n\t\tString sqlCmd = \"INSERT INTO location VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"');\";\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tstmt.executeUpdate(sqlCmd);\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}",
"@Insert\n boolean upsertLocation(SpacecraftLocationOverTime reading);",
"int insert(Location record);",
"public void addLocation(LocationHandler locationHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, locationHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, locationHandlerArray.date_entry);\n\t\tvalues.put ( key_latitude, locationHandlerArray.longitude);\n\t\tvalues.put ( key_longitude, locationHandlerArray.latitude);\n\t\tvalues.put ( key_name, locationHandlerArray.name);\n\t\tvalues.put ( key_type, locationHandlerArray.type);\n\t\tvalues.put ( key_search_tag, locationHandlerArray.getSearchTag());\n\t\tvalues.put ( key_amountables, locationHandlerArray.getAmountables());\n\t\tvalues.put ( key_description, locationHandlerArray.getDescription());\n\t\tvalues.put ( key_best_seller, locationHandlerArray.getBestSeller());\n\t\tvalues.put ( key_web_site, locationHandlerArray.getWebsite());\n\t\tlong addLog = db.insert( table_location, null, values);\n\t\tLog.i(TAG, \"add data : \" + addLog);\n\t\tdb.close();\n\t}",
"public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }",
"public void buildLocations() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS locations (id TEXT, latitude\"\n + \" REAL, longitude REAL, name TEXT, PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }",
"public static void pushRouteToDatabase() {\n Database database = Database.getInstance();\n long distance = calculateTotalDistance(LocationService.getLocationPoints());\n long time = stopStart.getStopTime() - stopStart.getStartTime();\n database.addToDailyDistance(distance);\n database.addToDailyTime(time);\n }",
"private void saveLocations(){\n\n final LocationsDialog frame = this;\n WorkletContext context = WorkletContext.getInstance();\n\n LocationsTableModel model = (LocationsTableModel) locationsTable.getModel();\n final HashMap<Integer, Location> dirty = model.getDirty();\n\n\n for(Integer id : dirty.keySet()) {\n Location location = dirty.get(id);\n\n\n if (!Helper.insert(location, \"Locations\", context)) {\n System.out.print(\"insert failed!\");\n }\n\n }// end for\n\n model.refresh();\n\n }",
"public static void worldLocsInsert(Player player) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tLocation pLoc = player.getLocation();\n\t\t\tint x = pLoc.getBlockX();\n\t\t\tint y = pLoc.getBlockY();\n\t\t\tint z = pLoc.getBlockZ();\n\t\t\tUUID uuid = player.getUniqueId();\n\n\t\t\t/* This is easier... */\n\t\t\tst.executeUpdate(\"DELETE FROM worldlocs WHERE uuid='\" + uuid + \"';\");\n\t\t\tst.executeUpdate(\"INSERT INTO worldlocs(uuid, x, y, z) VALUES ('\" + uuid + \"', '\" + x + \"', '\" + y + \"', '\" + z + \"');\");\n\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}",
"int insertSelective(Location record);",
"void insert(VRpWkLocationGprsCs record);",
"private void mockUpDB() {\n locationDBAdapter.insertLocationData(\n \"ChIJd0UHJHcw2jARVTHgHdgUyrk\",\n \"Baan Thong Luang\",\n \"https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png\",\n \"https://maps.google.com/maps/contrib/101781857378275784222/photos\",\n \"CmRSAAAAEegLHnt03YODdRQ658VBWtIhOoz3TjUAj1oVqQIlLq0DkfSttuS-SQ3aOLBBbuFdwKbpkbsrFzMWghgyZeRD-n5rshknOXv6p5Xo3bdYr5FMOUGCy-6f6LYRy1PN9cKOEhBuj-7Dc5fBhX_38N_Sn7OPGhTBRgFIvThYstd7e8naYNPMUS2rTQ\",\n \"GOOGLE\",\n \"236/10 Wualai Road Tumbon Haiya, CHIANG MAI\",\n 18.770709,\n 98.978078,\n 0.0);\n\n }",
"@Override\n public boolean addNewLocation(JacocDBLocation toAdd)\n {\n\tlocationList.add(toAdd);\n\n\treturn writeLocationObjectToDB(toAdd);\n }",
"@Override\n\tpublic void storeLocations(long fleetId, AreaType areaType) throws DBConnectException, LocationRepositoryException {\n\t\tConnection connection = null;\n\t\ttry {\n\t\t\tconnection = DBConnector.getConnection(url);\n\t\t\t\n\t\t\tdelete(connection, fleetId, areaType);\n\t\t\t\n\t\t\tPreparedStatement ps = null;\n\t\t\tResultSet rs = null;\n\t\t\tString sql = \"SELECT id, LocationName, SpeedLimit, IsSafe, SequenceNo, latitude, longitude \"+\n\t\t\t\t\t\t \"FROM LocationsImport \"+\n\t\t\t\t\t\t \"WHERE AreaType = ? \"+\n\t\t\t\t\t\t \"ORDER BY LocationName, SequenceNo \";\n\t\t\ttry {\n\t\t\t\tps = connection.prepareStatement(sql);\n\t\t\t\tint i = 1;\n\t\t\t\tps.setString(i,areaType.name);\n\t\t\t\trs = ps.executeQuery();\n\t\t\t\tLocation currentLocation = null;\n\t\t\t\t\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\ti = 1;\n\t\t\t\t\tlong id = rs.getLong(i++);\n\t\t\t\t\tString locationName = rs.getString(i++);\n\t\t\t\t\tBigDecimal speedLimit = rs.getBigDecimal(i++);\n\t\t\t\t\tboolean isSafe = rs.getInt(i++)==1;\n\t\t\t\t\tint sequenceNo = rs.getInt(i++);\n\t\t\t\t\tBigDecimal latitude = rs.getBigDecimal(i++);\n\t\t\t\t\tBigDecimal longitude = rs.getBigDecimal(i++);\n\t\t\t\t\tif (currentLocation == null || !currentLocation.isSameAs(locationName)) { // Location has changed\n\t\t\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentLocation = new Location(id, areaType, locationName, sequenceNo, speedLimit, isSafe, latitude, longitude);\n\t\t\t\t\t\tlogger.log(Level.INFO,\"Started new location \"+locationName);\n\t\t\t\t\t} else {\t// This is another point in the existing currentLocation. Make sure the sequenceNo makes sense, otherwise reject it\n\t\t\t\t\t\tif (currentLocation.isNextInSequence(sequenceNo)) {\n\t\t\t\t\t\t\tcurrentLocation.add(sequenceNo, latitude,longitude);\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Added to location \"+locationName+\" sequenceNo \"+sequenceNo+\" number of points \"+currentLocation.getNumberOfPoints());\n\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\tcurrentLocation.markAsBad(\"Incorrect sequence number \"+sequenceNo+\" - it should have been 1 more than \"+currentLocation.getSequenceNo());\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Incorrect sequenceNo \"+sequenceNo+\" for location \"+locationName+\" it should have been \"+currentLocation.getSequenceNo()+\"+1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tString msg = \"Unable to select the locations to import for AreaType \"+areaType+\" using sql \"+sql+\" : SQLException \"+ex.getMessage();\n\t\t\t\tlogger.log(Level.SEVERE,msg,ex);\n\t\t\t\tthrow new LocationRepositoryException(msg,ex);\n\t\t\t} finally {\t\t\n\t\t\t\tif (rs != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trs.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\trs = null;\n\t\t\t\t}\n\t\t\t\tif (ps != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\tps = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (Throwable th) {\n\t\t\t\t}\n\t\t\t\tconnection = null;\n\t\t\t}\n\t\t}\n\t}",
"public void storeSnpLocation(Map<String, Set<Location>> snpToLocations) {\n for (String snpRsId : snpToLocations.keySet()) {\n\n Set<Location> snpLocationsFromMapping = snpToLocations.get(snpRsId);\n\n // Check if the SNP exists\n SingleNucleotidePolymorphism snpInDatabase =\n singleNucleotidePolymorphismRepository.findByRsId(snpRsId);\n if(snpInDatabase == null){\n snpInDatabase =\n singleNucleotidePolymorphismQueryService.findByRsIdIgnoreCase(snpRsId);\n }\n\n if (snpInDatabase != null) {\n\n // Store all new location objects\n Collection<Location> newSnpLocations = new ArrayList<>();\n\n for (Location snpLocationFromMapping : snpLocationsFromMapping) {\n\n String chromosomeNameFromMapping = snpLocationFromMapping.getChromosomeName();\n if (chromosomeNameFromMapping != null) {\n chromosomeNameFromMapping = chromosomeNameFromMapping.trim();\n }\n\n Integer chromosomePositionFromMapping = snpLocationFromMapping.getChromosomePosition();\n// if (chromosomePositionFromMapping != null) {\n// chromosomePositionFromMapping = chromosomePositionFromMapping.trim();\n// }\n\n Region regionFromMapping = snpLocationFromMapping.getRegion();\n String regionNameFromMapping = null;\n if (regionFromMapping != null) {\n if (regionFromMapping.getName() != null) {\n regionNameFromMapping = regionFromMapping.getName().trim();\n }\n }\n\n // Check if location already exists\n Location existingLocation =\n locationRepository.findByChromosomeNameAndChromosomePositionAndRegionName(\n chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n\n if (existingLocation != null) {\n newSnpLocations.add(existingLocation);\n }\n // Create new location\n else {\n Location newLocation = locationCreationService.createLocation(chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n newSnpLocations.add(newLocation);\n }\n }\n\n // If we have new locations then link to snp and save\n if (newSnpLocations.size() > 0) {\n\n // Set new location details\n snpInDatabase.setLocations(newSnpLocations);\n // Update the last update date\n snpInDatabase.setLastUpdateDate(new Date());\n singleNucleotidePolymorphismRepository.save(snpInDatabase);\n }\n else {getLog().warn(\"No new locations to add to \" + snpRsId);}\n\n }\n\n // SNP doesn't exist, this should be extremely rare as SNP value is a copy\n // of the variant entered by the curator which\n // by the time mapping is started should already have been saved\n else {\n // TODO WHAT WILL HAPPEN FOR MERGED SNPS\n getLog().error(\"Adding location for SNP not found in database, RS_ID:\" + snpRsId);\n throw new RuntimeException(\"Adding location for SNP not found in database, RS_ID: \" + snpRsId);\n\n }\n\n }\n }",
"void insertSelective(VRpWkLocationGprsCs record);",
"public long addLoc(String location) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_LOC_NAME, location); \n return db.insert(DATABASE_TABLE_LOC, null, initialValues);\n }",
"private void AddLocation () {\n Location mLocation = new Location();\n mLocation.SetId(1);\n mLocation.SetName(\"Corner Bar\");\n mLocation.SetEmail(\"contact.email.com\");\n mLocation.SetAddress1(\"1234 1st Street\");\n mLocation.SetAddress2(\"\");\n mLocation.SetCity(\"Minneapolis\");\n mLocation.SetState(\"MN\");\n mLocation.SetZip(\"55441\");\n mLocation.SetPhone(\"612-123-4567\");\n mLocation.SetUrl(\"www.cornerbar.com\");\n\n ParseACL acl = new ParseACL();\n\n // Give public read access\n acl.setPublicReadAccess(true);\n mLocation.setACL(acl);\n\n // Save the post\n mLocation.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n\n }\n });\n }",
"public Integer addLocation(Location loc) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(loc);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return id;\n }",
"public void addSubLocation(SubLocationHandler subLocationHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, subLocationHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, subLocationHandlerArray.date_entry);\n\t\tvalues.put ( key_name, subLocationHandlerArray.name);\n\t\tvalues.put ( key_longitude, subLocationHandlerArray.longitude);\n\t\tvalues.put ( key_latitude, subLocationHandlerArray.latitude);\n\t\tvalues.put ( key_location_id, subLocationHandlerArray.location_id);\n\t\tdb.insert( table_subLocation, null, values);\n\t\tdb.close();\n\t}",
"public boolean insertData(String name , Double longitude , Double latitude , String address, int time , int gameLevel) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(COL_2 , name);\n contentValues.put(COL_3 , longitude);\n contentValues.put(COL_4 , latitude);\n contentValues.put(COL_5 , address);\n contentValues.put(COL_6 , time);\n contentValues.put(KEY_GAME_LEVEL , gameLevel);\n long result = db.insert(TABLE_NAME , null , contentValues);\n if(result == -1)\n return false;\n else\n return true;\n }",
"void addLocation(Location location) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, location.getName()); // assign location name\n values.put(KEY_CATEGORY, location.getCategory()); // religion\n values.put(KEY_DESCRIPTION, location.getDescription()); // description\n values.put(KEY_LATITUDE, location.getLatitude());\n values.put(KEY_LONGITUDE, location.getLongitude());\n\n // Inserting Row\n db.insert(TABLE_LOCATIONS, null, values);\n db.close(); // Closing database connection\n }",
"private void UploadtoServerSavedLocaiton() {\n\t\tCursor c = database.rawQuery(\"SELECT * from locations \", null);\r\n\t\tString mName = null, mPolygon = null;\r\n\t\tbyte[] blob;\r\n\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tmName = c.getString(c.getColumnIndex(\"name\"));\r\n\t\t\t\t\tblob = c.getBlob(c.getColumnIndex(\"polygon\"));\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmPolygon = new String(blob, \"UTF-8\");\r\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tUploadSavedLocationtoServer(mName, mPolygon);\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t\tif (mResponse.contains(\"Success\")) {\r\n\t\t\t\t// Success alert\r\n\t\t\t\tmaTitle = \"Success\";\r\n\t\t\t\tmaMessage = \"Field added successfully\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t\tuploadarraylist = new ArrayList<String>();\r\n\t\t\t\tmyList = new ArrayList<LatLng>();\r\n\t\t\t\tdatabase.execSQL(\"delete from locations\");\r\n\t\t\t\tSystem.err.println(\"database empty\");\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// Failure Alert\r\n\t\t\t\tmaTitle = \"Failure\";\r\n\t\t\t\tmaMessage = \"Error in adding field\\nTry again\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.close();\r\n\r\n\t}",
"public void addLocationInfo(LocationInfoHandler locationInfoHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, locationInfoHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, locationInfoHandlerArray.date_entry);\n\t\tvalues.put ( key_content, locationInfoHandlerArray.content);\n\t\tvalues.put ( key_title, locationInfoHandlerArray.title);\n\t\tvalues.put ( key_location_id, locationInfoHandlerArray.location_id);\n\t\tvalues.put ( key_image, convertToByte(locationInfoHandlerArray.image));\n\t\tdb.insert( table_locationInfo, null, values);\n\t\tdb.close();\n\t}",
"public void initArrayList()\n {\n\tSQLiteDatabase db = getWritableDatabase();\n\tCursor cursor = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n\tif (cursor.moveToFirst())\n\t{\n\t do\n\t {\n\t\tJacocDBLocation newLocation = new JacocDBLocation();\n\t\tnewLocation.setLocationName(cursor.getString(1));\n\t\tnewLocation.setRealLocation(new LocationBorder(new LatLng(cursor.getDouble(2), cursor.getDouble(3)), new LatLng(cursor.getDouble(4), cursor.getDouble(5))));\n\t\tnewLocation.setMapLocation(new LocationBorder(new LatLng(cursor.getInt(6), cursor.getInt(7)), new LatLng(cursor.getInt(8), cursor.getInt(9))));\n\t\tnewLocation.setHighSpectrumRange(cursor.getDouble(10));\n\t\tnewLocation.setLowSpectrumRange(cursor.getDouble(11));\n\n\t\t// adding the new Location to the collection\n\t\tlocationList.add(newLocation);\n\t }\n\t while (cursor.moveToNext()); // move to the next row in the DB\n\n\t}\n\tcursor.close();\n\tdb.close();\n }",
"private boolean writeLocationObjectToDB(JacocDBLocation toAdd)\n {\n\tSQLiteDatabase db = this.getWritableDatabase();\n\n\tContentValues values = new ContentValues();\n\tvalues.put(this.LOCATION_NAME, toAdd.getLocationName());\n\tvalues.put(this.NE_REAL_LAT, toAdd.getRealLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_REAL_LNG, toAdd.getRealLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_REAL_LAT, toAdd.getRealLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_REAL_LNG, toAdd.getRealLocation().getSouthWest().getLng());\n\tvalues.put(this.NE_MAP_LAT, toAdd.getMapLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_MAP_LNG, toAdd.getMapLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_MAP_LAT, toAdd.getMapLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_MAP_LNG, toAdd.getMapLocation().getSouthWest().getLng());\n\tvalues.put(this.HIGH_SPEC, toAdd.getHighSpectrumRange());\n\tvalues.put(this.LOW_SPEC, toAdd.getLowSpectrumRange());\n\n\tdb.insert(TABLE_NAME, null, values);\n\tdb.close(); // Closing database connection\n\n\treturn true;\n }",
"private void addGeoData(String key, double lat, double lon)\n {\n String type=\"\";\n if(mType=='E')\n type=\"Events/\";\n else if(mType=='G')\n type=\"Groups/\";\n\n DatabaseReference placeRef= database.getReference(type+mEntityID+\"/places\");\n GeoFire geoFire= new GeoFire(placeRef);\n geoFire.setLocation(key,new GeoLocation(lat,lon));\n\n }",
"public void setBasicNewGameWorld()\r\n\t{\r\n\t\tlistCharacter = new ArrayList<Character>();\r\n\t\tlistRelationship = new ArrayList<Relationship>();\r\n\t\tlistLocation = new ArrayList<Location>();\r\n\t\t\r\n\t\t//Location;\r\n\t\t\r\n\t\tLocation newLocationCity = new Location();\r\n\t\tnewLocationCity.setToGenericCity();\r\n\t\tLocation newLocationDungeon = new Location();\r\n\t\tnewLocationDungeon.setToGenericDungeon();\r\n\t\tLocation newLocationForest = new Location();\r\n\t\tnewLocationForest.setToGenericForest();\r\n\t\tLocation newLocationJail = new Location();\r\n\t\tnewLocationJail.setToGenericJail();\r\n\t\tLocation newLocationPalace = new Location();\r\n\t\tnewLocationPalace.setToGenericPalace();\r\n\t\t\r\n\t\tlistLocation.add(newLocationCity);\r\n\t\tlistLocation.add(newLocationDungeon);\r\n\t\tlistLocation.add(newLocationForest);\r\n\t\tlistLocation.add(newLocationJail);\r\n\t\tlistLocation.add(newLocationPalace);\r\n\t\t\r\n\t\t\r\n\t\t//Item\r\n\t\tItem newItem = new Item();\r\n\t\t\r\n\t\tString[] type =\t\tnew String[]\t{\"luxury\"};\r\n\t\tString[] function = new String[]\t{\"object\"};\t\r\n\t\tString[] property = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900101,\"diamond\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationPalace.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"weapon\"};\r\n\t\tfunction = new String[]\t{\"equipment\"};\t\r\n\t\tproperty = new String[]\t{\"weapon\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(500101,\"dagger\", type, function, \"null\", property, 1, false);\t\t\r\n\t\tnewLocationJail.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\ttype =\t\tnew String[]\t{\"quest\"};\r\n\t\tfunction = new String[]\t{\"object\"};\t\r\n\t\tproperty = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900201,\"treasure_map\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationDungeon.addOrUpdateItem(newItem);\r\n\r\n\t\t\r\n\t\t////// Add very generic item (10+ items of same name)\r\n\t\t////// These item start ID at 100000\r\n\t\t\r\n\t\t//Add 1 berry\r\n\t\t//100000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"berry\"};\r\n\t\tnewItem.setNewItem(100101,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100103,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t*/\r\n\r\n\t\t\r\n\t\t//Add 2 poison_plant\r\n\t\t//101000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem.setNewItem(100201,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100202,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\r\n\t\t//player\r\n\t\tCharacter newChar = new Character(\"player\", 1, true,\"city\", 0, false);\r\n\t\tnewChar.setIsPlayer(true);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//UNIQUE NPC\r\n\t\tnewChar = new Character(\"mob_NPC_1\", 15, true,\"city\", 0, false);\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\t\t\r\n\t\tnewChar = new Character(\"king\", 20, true,\"palace\", 3, true);\r\n\t\tnewChar.addOccupation(\"king\");\r\n\t\tnewChar.addOccupation(\"noble\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\r\n\t\t//Mob character\r\n\t\tnewChar = new Character(\"soldier1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// REMOVE to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"soldier2\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"soldier3\", 20, true,\"palace\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//listLocation.add(newLocationCity);\r\n\t\t//listLocation.add(newLocationDungeon);\r\n\t\t//listLocation.add(newLocationForest);\r\n\t\t//listLocation.add(newLocationJail);\r\n\t\t//listLocation.add(newLocationPalace);\r\n\t\t\r\n\t\tnewChar = new Character(\"doctor1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addSkill(\"heal\");\r\n\t\tnewChar.addOccupation(\"doctor\");\r\n\t\tlistCharacter.add(newChar);\t\r\n\t\tnewChar = new Character(\"blacksmith1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"blacksmith\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"thief1\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"thief\");\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"unlock\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(300101,\"lockpick\", type, function, \"thief1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// Remove to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"messenger1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"messenger\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\tnewChar = new Character(\"miner1\", 20, true,\"dungeon\", 1, true);\r\n\t\tnewChar.addOccupation(\"miner\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"lumberjack1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"lumberjack\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewChar = new Character(\"scout1\", 20, true,\"forest\", 2, true);\r\n\t\tnewChar.addOccupation(\"scout\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"farmer1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"farmer\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"merchant1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addOccupation(\"merchant\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\t// Merchant Item\r\n\t\t//NPC item start at 50000\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200101,\"potion_poison\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"healing\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200201,\"potion_heal\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"cure_poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200301,\"antidote\", type, function, \"merchant1\", property, 1, false);\t\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\t//add merchant to List\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Relation\r\n\t\tRelationship newRelation = new Relationship();\r\n\t\tnewRelation.setRelationship(\"merchant1\", \"soldier1\", \"friend\");\r\n\t\tlistRelationship.add(newRelation);\r\n\t\t\r\n\t\t//\r\n\t\r\n\t}",
"static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}",
"public void insertMovesToDB(String gameType, Vector<Moves> allMovesForAGame) {\n int lastIndex = 0;\n try {\n\n DriverManager.registerDriver(new com.mysql.cj.jdbc.Driver());\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/xogames\", \"root\", \"Jrqr541&\");\n\n PreparedStatement pstmt = con.prepareStatement(\"INSERT INTO games(gameType) VALUE (?)\");\n pstmt.setString(1, gameType);\n int rowsAffected = pstmt.executeUpdate();\n pstmt.close();\n\n Statement stmt = con.createStatement();\n String queryString = new String(\"SELECT MAX(ID) FROM games\");\n ResultSet rs = stmt.executeQuery(queryString);\n\n while (rs.next()) {\n lastIndex = rs.getInt(1);\n }\n\n stmt.close();\n\n for (Moves move : allMovesForAGame) {\n\n PreparedStatement pstmt1 = con.prepareStatement(\"INSERT INTO steps(player,x,y,ID,step,finalState) VALUE (?,?,?,?,?,?)\");\n if (move.isPlayer()) {\n pstmt1.setInt(1, 1);\n } else {\n pstmt1.setInt(1, 0);\n }\n pstmt1.setInt(2, move.getX());\n pstmt1.setInt(3, move.getY());\n pstmt1.setInt(4, lastIndex);\n pstmt1.setInt(5, move.getStep());\n pstmt1.setInt(6, move.getFinalState());\n\n int rowsAffected1 = pstmt1.executeUpdate();\n pstmt1.close();\n\n }\n con.close();\n // System.out.println(\"elmafrood kda closed\");\n } catch (SQLException ex) {\n System.out.println(\"error in executing insert in toDB fn in SinglePlayerController 2 \" + ex);\n // ex.printStackTrace();\n }\n\n }",
"private void saveInitialGameLocation() {\n\n\t\tGAME_LIST = new ArrayList<gameLocation>();\n\n\t\tfor (int i = 0; i < NumGameLocation; i++) {\n\t\t\taddNewGame(getGameLocation(i));\n\t\t}\n\t}",
"private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }",
"void insert(VRpDyLocationBh record);",
"void insertLocation(Location location) {\n WeatherAppRoomDatabase.databaseWriteExecutor.execute(() -> mLocationDao.insertLocation(location));\n }",
"public static void deathBanLocsInsert(Player player) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tLocation pLoc = player.getLocation();\n\t\t\tint x = pLoc.getBlockX();\n\t\t\tint y = pLoc.getBlockY();\n\t\t\tint z = pLoc.getBlockZ();\n\t\t\tUUID uuid = player.getUniqueId();\n\n\t\t\t/* This is easier... */\n\t\t\tst.executeUpdate(\"DELETE FROM deathbanlocs WHERE uuid='\" + uuid + \"';\");\n\t\t\tst.executeUpdate(\"INSERT INTO deathbanlocs(uuid, x, y, z) VALUES ('\" + uuid + \"', '\" + x + \"', '\" + y + \"', '\" + z + \"');\");\n\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}",
"public boolean addLocationData (LocationData locationData) //ADD\n\t{\n\t\tContentValues contentValues = new ContentValues();\n\t\tcontentValues.put(COLUMN_LOCATION_NAME, locationData.getLocationName());\n\n\n\t\tlong result = db.insert(TABLE_LOCATION, null, contentValues);\n\t\tdb.close();\n\n\t\t//Notifying if transaction was successful \n\t\tif(result == -1)return false;\n\t\telse return true;\n\n\t}",
"private void linkPlayersToDB(@Nullable Game game) {\n if (game == null) {\n throw new IllegalArgumentException(\"game should not be null.\");\n }\n\n gamesRef.child(game.getId())\n .child(DATABASE_GAME_PLAYERS)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n List<Player> newData = snapshot.getValue(new GenericTypeIndicator<List<Player>>() {\n });\n if (newData != null) {\n game.setPlayers(newData, true);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.e(TAG, \"failed \" + error.getMessage());\n }\n });\n }",
"public void addLocationInfo(locationInfo alocationInfo)\n {\n ContentValues values= new ContentValues();\n values.put(COL_place, alocationInfo.getPlace());\n values.put(COL_URL, alocationInfo.getUrl());\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n db.insert(TBL_locations, null, values);\n db.close();\n }",
"void insertSelective(VRpDyLocationBh record);",
"public void updateLoc()\n {\n driverLoc = new ParseGeoPoint(driverLocCord.latitude, driverLocCord.longitude);\n ParseUser.getCurrentUser().put(\"Location\", driverLoc);\n ParseUser.getCurrentUser().saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e==null){\n Toast.makeText(getApplicationContext(), \"Location Updated\", Toast.LENGTH_SHORT).show();\n }\n else{\n\n Toast.makeText(getApplicationContext(), \"Error in Location Update\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n });\n\n\n populate();\n\n }",
"Long addLocation(String cityName, double lat, double lon, double wlat, double wlon) {\n\n Long locationId = 100L;\n\n // First, check if the location with this city name exists in the db\n Cursor locationCursor = mContext.getContentResolver().query(\n WeatherContract.LocationEntry.CONTENT_URI,\n new String[]{WeatherContract.LocationEntry._ID},\n WeatherContract.LocationEntry.COLUMN_WEATHER_CITY + \" = ?\",\n new String[]{cityName},\n null);\n\n if (locationCursor != null &&locationCursor.moveToFirst()) {\n int locationIdIndex = locationCursor.getColumnIndex(WeatherContract.LocationEntry._ID);\n locationId = locationCursor.getLong(locationIdIndex);\n } else {\n ContentValues locationValues = new ContentValues();\n\n locationValues.put(WeatherContract.LocationEntry.COLUMN_WEATHER_CITY, cityName);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_STARTING_COORD_LAT, lat);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_STARTING_COORD_LON, lon);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_WEATHER_COORD_LAT, wlat);\n locationValues.put(WeatherContract.LocationEntry.COLUMN_WEATHER_COORD_LON, wlon);\n\n // Finally, insert location data into the database.\n Uri insertedUri = mContext.getContentResolver().insert(\n WeatherContract.LocationEntry.CONTENT_URI,\n locationValues\n );\n\n // The resulting URI contains the ID for the row. Extract the locationId from the Uri.\n locationId = ContentUris.parseId(insertedUri);\n\n }\n Log.d(LOG_TAG,\"LOCATION_ID =\" + locationId);\n locationCursor.close();\n return locationId;\n }",
"int updateByPrimaryKey(Location record);",
"@Override @Transactional\n public Game createGame(LocalDate date, LocalTime time, String venue, String location, Set<UserAccount> users) {\n Game game = new Game(date, time, venue, location, users);\n gameDataAccess.save(game);\n return game;\n }",
"public LocationEntity saveLocation(LocationDetail locationDetail) throws LocationException;",
"public abstract void updateLocations();",
"public void addMine()\n {\n int randomRow = random.nextInt(rows);\n int randomColumn = random.nextInt(columns);\n Integer[] randomLocation = {randomRow, randomColumn};\n\n while (mineLocations.contains(randomLocation))\n {\n randomRow = random.nextInt(rows);\n randomColumn = random.nextInt(columns);\n randomLocation[0] = randomRow;\n randomLocation[1] = randomColumn;\n }\n\n mineLocations.add(randomLocation);\n }",
"public static long updateClimbLogData(String routeName, boolean locationIsNew, String locationName, int locationId, int ascentType, int gradeType, int gradeNumber, long date, int firstAscent, int gpsCode, double latitude, double longitude, int rowID, Context mContext) {\n\n // Gets the database in write mode\n //Create handler to connect to SQLite DB\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n // Load existing location data\n Bundle climbDataBundle = EditClimbLoadEntry(rowID, mContext);\n int existingLocationId = climbDataBundle.getInt(\"outputLocationId\");\n Bundle locationDataBundle = LocationLoadEntry(locationId, mContext);\n int locationClimbCountCurrent = locationDataBundle.getInt(\"outputClimbCount\");\n int locationIsGpsCurrent = locationDataBundle.getInt(\"outputIsGps\");\n String locationNameCurrent = locationDataBundle.getString(\"outputLocationName\");\n\n //Check if updated location is the same as old\n if (existingLocationId == locationId) {\n Log.i(\"DBRW\", \"existingLocationId == locationId = true\");\n // check if existing has no GPS and whether GPS is being saved\n if (locationIsGpsCurrent == DatabaseContract.IS_GPS_FALSE && gpsCode == DatabaseContract.IS_GPS_TRUE) {\n Log.i(\"DBRW\", \"locationIsGpsCurrent == DatabaseContract.IS_GPS_FALSE && gpsCode == DatabaseContract.IS_GPS_TRUE = true\");\n // If \"yes\", update location data\n //TODO: Ask user if they even want to store the new gps data\n ContentValues updatedLocationValues = new ContentValues();\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_ISGPS, gpsCode); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLATITUDE, latitude); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLONGITUDE, longitude); // Updated\n String whereClause = DatabaseContract.LocationListEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(locationId)};\n database.update(DatabaseContract.LocationListEntry.TABLE_NAME, updatedLocationValues, whereClause, whereValue);\n\n } else if (locationIsGpsCurrent == DatabaseContract.IS_GPS_TRUE && gpsCode == DatabaseContract.IS_GPS_TRUE) {\n // if \"no\" warn user that will nto overwrite existing saved GPS data\n //TODO: give the user a choice about whether they want to overwrite the data or not\n Log.i(\"DBRW\", \"locationIsGpsCurrent == DatabaseContract.IS_GPS_TRUE && gpsCode == DatabaseContract.IS_GPS_TRUE = true\");\n Toast.makeText(mContext, \"GPS data already stored will not be overwritten.\", Toast.LENGTH_SHORT).show();\n }\n } else if (locationIsNew) {\n // if location is a new location, create a new location in the DB\n Log.i(\"DBRW\", \"locationIsNew = true\");\n ContentValues newLocationValues = new ContentValues(); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_LOCATIONNAME, locationName); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_CLIMBCOUNT, 1); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_ISGPS, gpsCode); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLATITUDE, latitude); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLONGITUDE, longitude); // Updated\n locationId = (int) database.insert(DatabaseContract.LocationListEntry.TABLE_NAME, null, newLocationValues);\n } else if (!locationIsNew && existingLocationId != locationId) {\n // if location is neither new, nor the old (i.e. picked a different one from the list\n incrementLocationClimbCount(existingLocationId, -1, mContext);\n incrementLocationClimbCount(locationId, 1, mContext);\n }\n\n // Create a ContentValues object where column names are the keys,\n ContentValues values = new ContentValues();\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_DATE, date);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_NAME, routeName);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_GRADETYPECODE, gradeType);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_GRADECODE, gradeNumber);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_ASCENTTYPECODE, ascentType);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_LOCATION, locationId);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_FIRSTASCENTCODE, firstAscent);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_ISCLIMB, DatabaseContract.IS_CLIMB);\n\n String whereClauseFive = DatabaseContract.ClimbLogEntry._ID + \"=?\";\n String[] whereValueFive = {String.valueOf(rowID)};\n\n long newRowId = database.update(DatabaseContract.ClimbLogEntry.TABLE_NAME, values, whereClauseFive, whereValueFive);\n database.close();\n return newRowId;\n\n }",
"public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }",
"int insert(Destinations record);",
"public interface IdbLocation {\n\n Location createLocation(int _id, String _name); //throws DBException;\n Location setLocation(int _id, String _name);\n boolean deleteLocation(int _id);\n\n static Location getLocation(int _id) {\n return new Location();\n }\n\n static HashMap<Integer, Location> getLocations() { // <id_Location, Location object itself>\n return new HashMap<Integer, Location>();\n }\n \n}",
"public static ArrayList<Location> GetAllLocations(){\n \n ArrayList<Location> Locations = new ArrayList<>();\n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM location\")){\n \n while(resultSet.next())\n {\n Location location = new Location();\n location.setCity(resultSet.getString(\"City\"));\n location.setCity(resultSet.getString(\"AirportCode\"));\n Locations.add(location);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Locations;\n }",
"int insert(SrHotelRoomInfo record);",
"public static void UpdateLocation(Location location){\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT City, AirportCode from Location WHERE AirportCode = '\" + location.getAirportCode() + \"'\")){\n \n resultSet.absolute(1);\n resultSet.updateString(\"City\", location.getCity());\n resultSet.updateString(\"AirportCode\", location.getAirportCode());\n resultSet.updateRow();\n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n }",
"public String addOpponent(int playerId1, int playerId2) throws SQLException{\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tint insert = 0;\n\t\t\n\t\tconn = getDataSource().getConnection();\n\n\t\tString opponentMappingExistsQuery = \"SELECT count(1) mappingcount from opponent where (player1 = ? and player2 = ?) or (player1 = ? and player2 = ?)\";\n\t\tps = conn.prepareStatement(opponentMappingExistsQuery);\n\t\tps.setInt(1, playerId1);\n\t\tps.setInt(2, playerId2);\n\t\tps.setInt(3, playerId2);\n\t\tps.setInt(4, playerId1);\n\t\tResultSet rs = ps.executeQuery();\n\t\tint mappingCount = 0;\n\t\twhile (rs.next()) {\n\t\t\tmappingCount = rs.getInt(\"mappingcount\");\n\t\t\tSystem.out.println(\"Mapping Count:\"+ mappingCount);\t\t\t\n\t\t}\n\t\t\n\t\tif(mappingCount == 0){\n\t\t\tString sql = \"insert into opponent\"\n\t\t\t\t\t+ \"(player1, player2) values(?,?)\";\n\n\t\t\t\tps = conn.prepareStatement(sql);\n\t\t\t\tps.setInt(1, playerId1);\n\t\t\t\tps.setInt(2, playerId2);\n\t\t\t\tinsert = ps.executeUpdate();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tps.close();\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn \"mapping created\";\n\n\t\t}else{\n\t\t\treturn \"mapping exists\";\n\t\t}\n\t\t\t\n\t}",
"private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }",
"Location selectMoveLocation(ArrayList<Location> locs);",
"private void upgradeMapViewsToColumns()\r\n {\r\n String sql =\r\n \"insert into mapview_columns(mapviewid, sort_order, dimension) \" +\r\n \"select mapviewid, 0, 'dx' \" +\r\n \"from mapview mv \" +\r\n \"where not exists (\" +\r\n \"select mc.mapviewid \" +\r\n \"from mapview_columns mc \" +\r\n \"where mv.mapviewid = mc.mapviewid)\";\r\n\r\n executeSql( sql );\r\n }",
"public List<Long> createLocations(List<Location> locations) {\n\n String sql = \"insert into mdm.location(\" +\n \"location_name) values(\" +\n \":\" + \"location_name\" +\n \")\";\n\n List<Long> locationIds = new ArrayList<>(locations.size());\n\n locations.forEach(location -> {\n SqlParameterSource sqlParameterSource = buildSqlParamSourceFromLocation(location);\n KeyHolder keyHolder = new GeneratedKeyHolder();\n namedParameterJdbcTemplate.update(sql, sqlParameterSource, keyHolder, new String[]{COLUMN_NAME_LOCATION_DB_ID});\n locationIds.add(keyHolder.getKey().longValue());\n });\n\n return locationIds;\n\n }",
"public boolean addLocation(FavoriteLocation fl){\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_DES, fl.description);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LAT, fl.latitude);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LON, fl.longitude);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_STREET, fl.street_info);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY, fl.type); \n\t\t\n\t\tif(fl.image!=null){\n\t\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_PIC, BitmapArrayConverter.convertBitmapToByteArray(fl.image));\n\t\t}\n\t\t\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_TITLE, fl.title);\n\t\t// Insert the new row, returning the primary key value of the new row\n\t\tlong newRowId;\n\t\tnewRowId = db.insert(\n\t\t\t\t\tDBEntryContract.LocationEntry.TABLE_NAME,\n\t\t\t\t\tnull,\n\t\t\t\t\tvalues);\n\t\t\n\t\tif (newRowId != -1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean AddToDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t //add info to database\n\t\t\tString query = \"INSERT INTO Housing(name, address, phone_number, year_built, price, housing_uid, \"\n\t\t\t\t\t+ \"max_residents, catagory) \"\n\t\t\t\t\t+ \"VALUES('\"+name+\"', '\"+address+\"', '\"+phoneNumber+\"', '\"+yearBuilt+\"', '\"+price+\"', \"\n\t\t\t\t\t+ \"'\"+uid+\"', '\"+maxResidents+\"', '\"+catagory+\"')\"; \n\t\t\t\n\t\t\tint insertResult = con.stmt.executeUpdate(query);\n\t\t\tif(insertResult > 0)\n\t\t\t{\n\t\t\t\tSystem.out.println (\"Housing added to database.\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println (\"Housing NOT added to database.\");\n\t\t\t}\n\t\t\t\n\t\t\t//get housing id\n\t\t\tquery = \"SELECT h_id FROM Housing WHERE name ='\"+name+\"' AND address ='\"+address+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\thid = rs.getInt(\"h_id\"); \n\t\t\t}\n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\t\n\t\t\t//set up keywords\n\t\t\tif (keywords.size() > 0)\n\t\t\t{\n\t\t\t\tAddKeywords(); \n\t\t\t}\n\t\t\t\n\t\t\tif(openDates.size() > 0)\n\t\t\t{\n\t\t\t\tAddAvailableDates(); \n\t\t\t}\n\t\t\t\n\t\t\treturn true; \n\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}",
"public int addStorageplace (Storageplace pStorageplace){\r\n\t List<Storageplace> storageplaceList = getAll();\r\n\t boolean storageplaceExists = false;\r\n\t for(Storageplace storageplace: storageplaceList){\r\n\t if(storageplace.getStorageplaceName() == pStorageplace.getStorageplaceName()){\r\n\t \t storageplaceExists = true;\r\n\t break;\r\n\t }\r\n\t }\t\t\r\n\t if(!storageplaceExists){\r\n\t \t storageplaceList.add(pStorageplace);\r\n\t // Setup query\r\n\t String query = \"INSERT INTO storageplace(storageplace_name) VALUE(?);\";\r\n\t Connection conn = Database.connectMariaDb();\r\n\t try {\r\n\t\t\t\t// Setup statement\r\n\t\t\t\t PreparedStatement stmt = conn.prepareStatement(query);\r\n\t\t\t\t // Set values\r\n\t\t\t\tstmt.setString(1, pStorageplace.getStorageplaceName());\t\t\t\t\t\t\r\n\t\t\t\t// Execute statement\r\n\t\t\t\tstmt.executeUpdate();\t\t\t\t\r\n\t\t\t\t// Closing statement and connection\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tDatabase.mariaDbClose();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tSystem.err.println(\"An SQL exception occured when trying to add a record to storageplace \" + e.getMessage());\r\n\t\t\t\treturn 0;\r\n\t\t\t}\t\t \r\n\t return 1;\r\n\t }\r\n\t return 0;\r\n\t }",
"private void updateLocation(){\r\n\t\t//UPDATE location SET longitude = double, latitude = double WHERE userName = userName\r\n\t\tString sqlCmd = \"UPDATE location SET longitude = \" + commandList.get(2) + \", latitude = \"\r\n\t\t\t\t+ commandList.get(3) + \" WHERE userName = '\" + commandList.get(1) + \"';\";\r\n\t\tSystem.out.println(sqlCmd);\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tint changed = stmt.executeUpdate(sqlCmd);\r\n\t\t\tif(changed == 0){//if no updates were made (changed = 0) \r\n\t\t\t\terror = true;//error\r\n\t\t\t\tout.println(\"No user found\");//error message\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}",
"int insert(TDictAreas record);",
"public void addLocation(LocationLocal location) {\n java.util.Set locationsCol = getLocations();\n locationsCol.add(location);\n }",
"@PostMapping(\"/locations\")\n public Location addLocation(@RequestBody Location location){\n\n location.setId(0);\n\n service.saveItem(location);\n\n return location;\n }",
"public static void addPosition (String poiname, String datetime, String latitude, String lontitude) {\n\t\ttry {\n\t\t\tint\tpoi_id = storage.createPoi(poiname, latitude, lontitude, 1, databox_id);\n\t\t\tint poiext_status = storage.createPoiExt(\"locate_time\", datetime);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t}",
"int insert(Shipping record);",
"private void addSeatToDatabase(Seat seat) throws SQLException {\n\n\t\tseatdb.storeToDatabase(seat);\n\t}",
"private DatabaseCustomAccess(Context context) {\n\t\thelper = new SpokaneValleyDatabaseHelper(context);\n\n\t\tsaveInitialPoolLocation(); // save initial pools into database\n\t\tsaveInitialTotalScore(); // create total score in database\n\t\tsaveInitialGameLocation(); // create game location for GPS checking\n\t\tLoadingDatabaseTotalScore();\n\t\tLoadingDatabaseScores();\n\t\tLoadingDatabaseGameLocation();\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.OrganizationPositionList addNewOrganizationPositionList();",
"Integer insertBannerPosition(BannerPosition record) throws SQLException;",
"@Override\n\tpublic Location uploadLocation(final Location location) {\n\t\t// datasource is used to connect with database\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t\n\t\t// Check if provided headUnitId is registered or not\n\t\tString sql = \"select count(1) from headunit where headunit_id = ? \";\n\n\t\tint result = jdbcTemplate.queryForObject(sql, new Object[] { location.getHeadunit_id() }, Integer.class);\n\t\t\n\t\tif (result > 0) {\n\t\t\n\t\t\t// if headUnitId is registered, upload location details\n\t\t\tfinal PreparedStatementCreator psc = new PreparedStatementCreator() {\n\t\t\t\t@Override\n\t\t\t\tpublic PreparedStatement createPreparedStatement(final Connection connection) throws SQLException {\n\t\t\t\t\tfinal PreparedStatement ps = connection.prepareStatement(\n\t\t\t\t\t\t\t\"INSERT INTO location(headunit_id,latitude,longitude,altitude,address,createddate) \"\n\t\t\t\t\t\t\t\t\t+ \"Values (?,?,?,?,?,?)\",\n\t\t\t\t\t\t\tStatement.RETURN_GENERATED_KEYS);\n\t\t\t\t\t// set parameters\n\t\t\t\t\tps.setLong(Utility.LOC_HUID_INDEX, location.getHeadunit_id());\n\t\t\t\t\tps.setFloat(Utility.LOC_LAT_INDEX, location.getLatitude());\n\t\t\t\t\tps.setFloat(Utility.LOC_LOGT_INDEX, location.getLongitude());\n\t\t\t\t\tps.setFloat(Utility.LOC_ALT_INDEX, location.getAltitude());\n\t\t\t\t\tps.setString(Utility.LOC_ADD_INDEX, location.getAddress());\n\t\t\t\t\tps.setTimestamp(Utility.LOC_CDT_INDEX, getCurrentDate());\n\n\t\t\t\t\treturn ps;\n\t\t\t\t}\n\t\t\t};\n\t\t\t// return auto generated locationID\n\t\t\tfinal KeyHolder holder = new GeneratedKeyHolder();\n\n\t\t\tjdbcTemplate.update(psc, holder);\n\n\t\t\tfinal long locationid = holder.getKey().longValue();\n\t\t\tif (locationid > 0) {\n\t\t\t\t// set message, status\n\t\t\t\tlocation.setLocation_id(locationid);\n\t\t\t\tlocation.setStatus(true);\n\t\t\t\tlocation.setMessage(\"NEW LOCATION RECORD UPLOADED FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t\t}\n\t\t\tlogger.info(\"NEW LOCATION RECORD UPLOADED FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t\t\n\t\t\t//Send GCM notification\n\t\t\t//call function for the same\n\t\t\tsendGCMNotificationForNewLocation(location.getHeadunit_id(), location);\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\t// given headUnitId is not registered, set status and message\n\t\t\tlocation.setStatus(false);\n\t\t\tlocation.setMessage(\"NO DATA FOUND FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t\tlogger.info(\"NO DATA FOUND FOR HEAD UNIT ID :\" + location.getHeadunit_id());\n\t\t}\n\n\t\treturn location;\n\t}",
"@Test\n public void testUpdateLocation() {\n\n Location loc1 = new Location();\n loc1.setLocationName(\"Mommas House\");\n loc1.setDescription(\"Like it says\");\n loc1.setAddress(\"123 nunya Ave\");\n loc1.setCity(\"Hometown\");\n loc1.setLatitude(123.456);\n loc1.setLongitude(123.456);\n\n locDao.addLocation(loc1);\n\n loc1.setLocationName(\"Poppas House\");\n\n locDao.updateLocation(loc1);\n\n Location testLoc = locDao.getLocationById(loc1.getLocationId());\n\n assertEquals(loc1, testLoc);\n\n }",
"private void addAdmin() {\n try (Connection connection = this.getConnection();\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(INIT.GET_ADMIN.toString())) {\n if (!rs.next()) {\n int address_id = 0;\n st.executeUpdate(INIT.ADD_ADMIN_ADDRESS.toString(), Statement.RETURN_GENERATED_KEYS);\n try (ResultSet rs1 = st.getGeneratedKeys()) {\n if (rs1.next()) {\n address_id = rs1.getInt(1);\n }\n }\n try (PreparedStatement ps = connection.prepareStatement(INIT.ADD_ADMIN.toString())) {\n ps.setInt(1, address_id);\n ps.execute();\n }\n }\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n\n }",
"public boolean addFriend(Neighbor requestedTo){\n boolean isAdded=false;\n try{\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"Username\", requestedTo.getInstanceName());\n values.put(\"deviceID\", requestedTo.getDeviceAddress());\n values.put(\"IP\", requestedTo.getIpAddress().getHostAddress());\n Log.i(TAG,\"Adding.. \"+requestedTo.getDeviceAddress());\n isAdded=database.insert(\"Friend\", null, values)>0;\n dbH.close();\n\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return isAdded;\n }",
"Builder addLocationCreated(Place value);",
"int insert(Country record);",
"int insertSelective(SrHotelRoomInfo record);",
"public int updateLocation(LocationHandler locationHandlerArray) {\n\t\tSQLiteDatabase db = this.getWritableDatabase(); \n\t\tContentValues values = new ContentValues(); \n\t\tvalues.put ( key_id, locationHandlerArray.id);\n\t\tvalues.put ( key_base_id, locationHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, locationHandlerArray.date_entry);\n\t\tvalues.put ( key_longitude, locationHandlerArray.longitude);\n\t\tvalues.put ( key_latitude, locationHandlerArray.latitude);\n\t\tvalues.put ( key_name, locationHandlerArray.name);\n\t\tvalues.put ( key_type, locationHandlerArray.type);\n\t\treturn db.update( table_location, values, key_base_id + \" =? \" ,\n\t\t\t\tnew String []{ String.valueOf(locationHandlerArray.getId())});\n\t}",
"Location selectByPrimaryKey(Integer locationId);",
"public void addBestelling(Bestelling bestelling) {\n\r\n DatabaseConnection connection = new DatabaseConnection();\r\n if(connection.openConnection())\r\n {\r\n // If a connection was successfully setup, execute the INSERT statement\r\n\r\n connection.executeSQLInsertStatement(\"INSERT INTO bestelling (`bestelId`, `tafelId`) VALUES(\" + bestelling.getId() + \",\" + bestelling.getTafelId() + \");\");\r\n\r\n for(Drank d : bestelling.getDranken()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO drank_bestelling (`DrankID`, `BestelId`, `hoeveelheid`) VALUES (\" + d.getDrankId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n for(Gerecht g : bestelling.getGerechten()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO gerecht_bestelling (`GerechtID`, `BestelId`, `hoeveelheid`) VALUES (\" + g.getGerechtId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n\r\n //Close DB connection\r\n connection.closeConnection();\r\n }\r\n\r\n }",
"public static long writeClimbLogData(String routeName, boolean locationIsNew, String locationName, int locationId, int ascentType, int gradeType, int gradeNumber, long date, int firstAscent, int gpsCode, double latitude, double longitude, Context mContext) {\n // TODO: If using an existing location: if no GP data stored, but GPS data passed - check if user wants to update the database or not. If has GPS data, ask if user wants to change the existing GPS data.\n\n //Gets the database in write mode\n //Create handler to connect to SQLite DB\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n long locationRowId = 0;\n\n if (locationIsNew) {\n ContentValues locationValues = new ContentValues(); // Updated\n locationValues.put(DatabaseContract.LocationListEntry.COLUMN_LOCATIONNAME, locationName); // Updated\n locationValues.put(DatabaseContract.LocationListEntry.COLUMN_CLIMBCOUNT, 1); // Updated\n locationValues.put(DatabaseContract.LocationListEntry.COLUMN_ISGPS, gpsCode); // Updated\n locationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLATITUDE, latitude); // Updated\n locationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLONGITUDE, longitude); // Updated\n locationRowId = database.insert(DatabaseContract.LocationListEntry.TABLE_NAME, null, locationValues);\n } else {\n Bundle locationDataBundle = LocationLoadEntry(locationId, mContext);\n locationName = locationDataBundle.getString(\"outputLocationName\");\n gpsCode = locationDataBundle.getInt(\"outputIsGps\");\n latitude = locationDataBundle.getDouble(\"outputGpsLatitude\");\n longitude = locationDataBundle.getDouble(\"outputGpsLongitude\");\n int currentClimbCount = locationDataBundle.getInt(\"outputClimbCount\");\n currentClimbCount++;\n ContentValues updatedLocationValues = new ContentValues();\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_LOCATIONNAME, locationName); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_CLIMBCOUNT, currentClimbCount); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_ISGPS, gpsCode); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLATITUDE, latitude); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLONGITUDE, longitude); // Updated\n String whereClause = DatabaseContract.LocationListEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(locationId)};\n database.update(DatabaseContract.LocationListEntry.TABLE_NAME, updatedLocationValues, whereClause, whereValue);\n locationRowId = locationId;\n }\n\n\n // Create a ContentValues object where column names are the keys,\n ContentValues values = new ContentValues();\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_DATE, date);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_NAME, routeName);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_GRADETYPECODE, gradeType);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_GRADECODE, gradeNumber);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_ASCENTTYPECODE, ascentType);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_LOCATION, (int) locationRowId);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_FIRSTASCENTCODE, firstAscent);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_ISCLIMB, DatabaseContract.IS_CLIMB);\n\n long newRowId = database.insert(DatabaseContract.ClimbLogEntry.TABLE_NAME, null, values);\n database.close();\n return newRowId;\n\n }",
"int insert(HotelType record);",
"public long addCells(String location_id, int lac, int cellid) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_CELL_LOCATION, location_id);\n initialValues.put(KEY_CELL_LAC, lac);\n initialValues.put(KEY_CELL_CELLID, cellid);\n return db.insert(DATABASE_TABLE_CELL, null, initialValues);\n }",
"public void testUpdateLocation() {\n ContentValues values = TestDB.getLocationContentValues();\n\n Uri locationUri = mContext.getContentResolver().\n insert(ResultContract.LocationEntry.CONTENT_URI, values);\n long locationRowId = ContentUris.parseId(locationUri);\n\n // Verify we got a row back.\n assertTrue(locationRowId != -1);\n Log.d(LOG_TAG, \"New row id: \" + locationRowId);\n\n ContentValues updatedValues = new ContentValues(values);\n updatedValues.put(ResultContract.LocationEntry._ID, locationRowId);\n updatedValues.put(ResultContract.LocationEntry.COLUMN_CITY_NAME, \"Santa's Village\");\n\n int count = mContext.getContentResolver().update(\n ResultContract.LocationEntry.CONTENT_URI, updatedValues, ResultContract.LocationEntry._ID + \"= ?\",\n new String[] { Long.toString(locationRowId)});\n\n assertEquals(count, 1);\n\n // A cursor is your primary interface to the query results.\n Cursor cursor = mContext.getContentResolver().query(\n ResultContract.LocationEntry.buildLocationUri(locationRowId),\n null,\n null, // Columns for the \"where\" clause\n null, // Values for the \"where\" clause\n null // sort order\n );\n\n TestDB.validateCursor(updatedValues, cursor);\n\n cursor.close();\n }",
"gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Loc addNewLoc();",
"private void updateDatabase( ) {\n\t\tList<Site> siteList = readRemoteData( );\n\n\t\t// Open the database\n\t\tEcoDatabaseHelper helper = new EcoDatabaseHelper(context_);\n\t\tSQLiteDatabase database = helper.getWritableDatabase();\n\n\t\t// Delete the current records\n\t\thelper.dropAndCreate(database);\n\n\t\t// Insert new ones\n\t\tnotifyListenersNumSites( siteList.size() );\n\t\tint siteIndex = 1;\n\n\t\t// Insert each site\n\t\tfor( Site site : siteList ) {\n\t\t\t// Add the site to the database\n\t\t\tContentValues cv = new ContentValues();\n\t\t\tcv.put(EcoDatabaseHelper.SITE_NAME, site.getName());\n\t\t\tcv.put(EcoDatabaseHelper.SITE_DESCRIPTION, site.getDescription());\n\t\t\tcv.put(EcoDatabaseHelper.SITE_TYPE, site.getType());\n\t\t\tcv.put(EcoDatabaseHelper.SITE_LINK, site.getLink());\n\t\t\tcv.put(EcoDatabaseHelper.SITE_LATITUDE, site.getLatitude());\n\t\t\tcv.put(EcoDatabaseHelper.SITE_LONGITUDE, site.getLongitude());\n\t\t\tcv.put(EcoDatabaseHelper.SITE_ICON, site.getIcon());\n\n\t\t\tif( database.insert(EcoDatabaseHelper.TABLE_SITES, null, cv) == -1 ) {\n\t\t\t\tLog.w(getClass( ).getCanonicalName(), \"Failed to insert record\" );\n\t\t\t}\n\n\t\t\t// Notify the listeners\n\t\t\tnotifyListenersSiteIndex( siteIndex );\n\t\t\t++siteIndex;\n\t\t}\n\t\tdatabase.close();\n\t}",
"int insert(SysTeam record);",
"org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();",
"public int persist(Connection conn) throws SQLException {\r\n\t\t\r\n\t\t// Start transaction\r\n\t\tconn.setAutoCommit(false);\r\n\r\n\t\ttry {\r\n\t\t\t// Check if exists\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(\r\n\t\t\t\t\t\"select c_bpartner_location_id, c_location_id from c_bpartner_location where ad_client_id=? and customeraddressid=?\");\r\n\t\t\tps.setInt(1, adClientId);\r\n\t\t\tps.setString(2, customerAddressId);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tint tmpPartnerLocationId = 0;\r\n\t\t\tint tmpLocationId = 0;\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\ttmpPartnerLocationId = rs.getInt(1);\r\n\t\t\t\ttmpLocationId = rs.getInt(2);\r\n\t\t\t}\r\n\t\t\tpartnerLocationId=tmpPartnerLocationId;\r\n\t\t\tif (locationId==0 && tmpLocationId>0)\r\n\t\t\t\tlocationId = tmpLocationId;\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\t\r\n\t\t\t// Update / insert location first\r\n\t\t\tint c = 1;\r\n\t\t\tps = conn.prepareStatement(tmpLocationId==0 ? insertSqlLocation : updateSqlLocation);\r\n\t\t\tps.setInt(c++, adOrgId);\r\n\t\t\tps.setInt(c++, adClientId);\r\n\t\t\tps.setString(c++, address1);\r\n\t\t\tps.setString(c++, address2);\r\n\t\t\tps.setString(c++, address3);\r\n\t\t\tps.setString(c++, address4);\r\n\t\t\tps.setString(c++, city);\r\n\t\t\tps.setString(c++, postal);\r\n\t\t\tps.setString(c++, countryCode);\r\n\t\t\tif (locationId>0)\r\n\t\t\t\tps.setInt(c++, locationId);\r\n\t\t\tps.executeUpdate();\r\n\t\t\tps.close();\r\n\t\t\t\r\n\t\t\t// Get last id\r\n\t\t\tif (tmpLocationId==0) {\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\trs = stmt.executeQuery(\"select currval('c_location_sq')\");\r\n\t\t\t\tif (rs.next())\r\n\t\t\t\t\tlocationId = rs.getInt(1);\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tc = 1;\r\n\t\t\tps = conn.prepareStatement(tmpPartnerLocationId>0 ? updateSql : insertSql);\r\n\t\t\tps.setInt(c++, adOrgId);\r\n\t\t\tps.setInt(c++, adClientId);\r\n\t\t\tps.setInt(c++, partnerId);\r\n\t\t\tps.setString(c++, name);\r\n\t\t\tps.setString(c++, phone);\r\n\t\t\tps.setString(c++, (isBillTo ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, (isShipTo ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, (isPayFrom ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, (isRemitTo ? \"Y\" : \"N\"));\r\n\t\t\tps.setInt(c++, locationId);\r\n\t\t\tps.setString(c++, (isActive ? \"Y\" : \"N\"));\r\n\t\t\tps.setString(c++, customerAddressId);\r\n\t\t\tif (partnerLocationId>0) {\r\n\t\t\t\tps.setInt(c++, partnerLocationId);\r\n\t\t\t}\r\n\t\t\tint result = ps.executeUpdate();\r\n\t\t\tps.close();\r\n\r\n\t\t\t// Get last id\r\n\t\t\tif (tmpPartnerLocationId==0) {\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\trs = stmt.executeQuery(\"select currval('c_bpartner_location_sq')\");\r\n\t\t\t\tif (rs.next())\r\n\t\t\t\t\tpartnerLocationId = rs.getInt(1);\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tconn.commit();\r\n\t\t\t\r\n\t\t\treturn result;\r\n\t\t} catch (SQLException se) {\r\n\t\t\tconn.rollback();\r\n\t\t\tthrow se;\r\n\t\t} finally {\r\n\t\t\tconn.setAutoCommit(false);\r\n\t\t}\r\n\t}",
"public void addLocation(Location location)\n {\n locationLst.add(location);\n }",
"private void updateSessionDetailsInDB(GlusterGeoRepSession session) {\n for (GlusterGeoRepSessionDetails sessDetails : session.getSessionDetails()) {\n sessDetails.setSessionId(session.getId());\n }\n getGeoRepDao().saveOrUpdateDetailsInBatch(session.getSessionDetails());\n }",
"void addDeviceLocation(DeviceLocation deviceLocation) throws DeviceDetailsMgtException;",
"public long insertjourneydata(String User, String Mode, double StartLat, double StartLong , String Interimlocation, double EndLat, double EndLong, double Maxspeed, long Duration, double Distance , long StartTime, long EndTime )\n {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_USER, User);\n initialValues.put(KEY_MODE, Mode);\n initialValues.put(KEY_STARTLAT, StartLat);\n initialValues.put(KEY_STARTLONG, StartLong);\n initialValues.put(KEY_INTERIMLOCATION, Interimlocation);\n initialValues.put(KEY_ENDLAT, EndLat);\n initialValues.put(KEY_ENDLONG, EndLong);\n initialValues.put(KEY_MAXSPEED, Maxspeed);\n initialValues.put(KEY_DURATION, Duration);\n initialValues.put(KEY_DISTANCE, Distance);\n initialValues.put(KEY_STARTTIME, StartTime);\n initialValues.put(KEY_ENDTIME, EndTime);\n\n\n return db.insert(DATABASE_TABLE2, null, initialValues);\n }",
"public int addHome(UUID uuid, String name, Location loc){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Create new HomePoint and write it to Map\r\n\t\tif(!map.containsKey(uniqhome)){\r\n\t\t\tmap.put(uniqhome, loc.getWorld().getName() + \";\" + loc.getX() + \";\" + loc.getY() + \";\" + loc.getZ() + \";\" + loc.getYaw() + \";\" + loc.getPitch());\r\n\t\t} else {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\t//Save Map\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(homeFileLocation));\r\n\t\t\toos.writeObject(map);\r\n\t\t\toos.flush();\r\n\t\t\toos.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 2;\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}",
"private void insertStateAndCity(final UserLocation userLocation) {\r\n final String siteId = userLocation.getSiteId();\r\n final String buildingId = userLocation.getBuildingId();\r\n \r\n if (StringUtil.notNullOrEmpty(siteId) || StringUtil.notNullOrEmpty(buildingId)) {\r\n // Find the state and city id's for this location.\r\n final Building filter = new Building();\r\n filter.setSiteId(siteId);\r\n filter.setBuildingId(buildingId);\r\n final List<Building> buildings = this.spaceService.getBuildings(filter);\r\n if (!buildings.isEmpty()) {\r\n userLocation.setStateId(buildings.get(0).getStateId());\r\n userLocation.setCityId(buildings.get(0).getCityId());\r\n }\r\n }\r\n }",
"public void add_location() {\n if (currentLocationCheckbox.isChecked()) {\n try {\n CurrentLocation locationListener = new CurrentLocation();\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null) {\n int latitude = (int) (location.getLatitude() * 1E6);\n int longitude = (int) (location.getLongitude() * 1E6);\n currentLocation = new GeoPoint(latitude, longitude);\n }\n } catch (SecurityException e) {\n e.printStackTrace();\n }\n } else {\n currentLocation = null;\n }\n\n }"
] | [
"0.6753755",
"0.65530276",
"0.64657164",
"0.63597965",
"0.62261605",
"0.61528015",
"0.61268765",
"0.6104394",
"0.6098643",
"0.6072621",
"0.6030124",
"0.6004719",
"0.59915704",
"0.59763837",
"0.5965077",
"0.59465665",
"0.5880224",
"0.58726496",
"0.58703077",
"0.5844585",
"0.58092225",
"0.57721925",
"0.5740465",
"0.57312936",
"0.57197154",
"0.5711342",
"0.5664957",
"0.56612265",
"0.5642921",
"0.5608951",
"0.55774134",
"0.554286",
"0.553491",
"0.55330324",
"0.55080366",
"0.54815614",
"0.5469299",
"0.54650205",
"0.5448",
"0.5422556",
"0.53978574",
"0.53872263",
"0.53493154",
"0.5339304",
"0.53359455",
"0.53231084",
"0.5315359",
"0.53070104",
"0.5306893",
"0.5304731",
"0.5302878",
"0.5302131",
"0.5291339",
"0.5284651",
"0.5280234",
"0.5276046",
"0.52735764",
"0.5254035",
"0.5229975",
"0.522935",
"0.5225762",
"0.5224467",
"0.52233255",
"0.52206445",
"0.5207113",
"0.52041894",
"0.5191299",
"0.5169211",
"0.5166198",
"0.51659274",
"0.51376104",
"0.51375014",
"0.5133535",
"0.5131702",
"0.5127152",
"0.51115507",
"0.5111302",
"0.510933",
"0.5109288",
"0.5101885",
"0.5096809",
"0.50953317",
"0.50878125",
"0.507987",
"0.50775063",
"0.5060374",
"0.5058251",
"0.5051765",
"0.50485843",
"0.504181",
"0.5037263",
"0.5034991",
"0.50312895",
"0.502234",
"0.50127894",
"0.5011652",
"0.5010995",
"0.5005354",
"0.5004734",
"0.5001975"
] | 0.67986834 | 0 |
convert boolean to string 0 or 1 0 :not used 1: used | private String convertToString(boolean isUsed) {
if (isUsed)
return "1";
return "0";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toBooleanValueString(boolean bool) {\n \t\treturn bool ? \"1\" : \"0\";\n \t}",
"public static String booleanToString(boolean val){\n return val ? \"1\" : \"0\";\n }",
"private String boolToIntString(boolean bool) {\n return bool ? \"1\" : \"0\";\n }",
"private String booleanToString(final boolean bool) {\n\t\tString returnString = null;\n\t\tif(bool) { returnString = \"Yes\"; } else { returnString = \"No\"; }\n\t\treturn returnString;\n\t}",
"public static String toString(boolean value) {\n return value ? \"true\" : \"false\";\n }",
"public String toString() { return this.booleanValue; }",
"private String convertBoolean(boolean booToConv) {\n\t\tString convText = \"\";\n\t\tif (booToConv) {\n\t\t\tconvText = \"Yes\";\n\t\t} else {\n\t\t\tconvText = \"No\";\n\t\t}\n\t\treturn convText;\n\t}",
"public String toString(){\n \tif(state){\n\t\treturn (\"1\");\n\t }\n\t else{\n\t\t return(\"0\");\n\t }\n }",
"public static My_String valueOf(boolean b) {\n return new FastMyString(true);\n }",
"public static String arrayToString(boolean[] a){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i])\n\t\t\t\toutput=output+\"1\";\n\t\t\telse\n\t\t\t\toutput=output+\"0\";\n\t\t}\n\t\treturn output;\n\t}",
"protected String getBooleanValueText(String value) {\n if (value.equals(Boolean.TRUE.toString())) {\n return getTrue();\n } else if (value.equals(Boolean.FALSE.toString())) {\n return getFalse();\n } else {\n // If it is neither true nor false it is must be an expression.\n return value;\n }\n }",
"public Value restrictToStrBoolNum() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.object_labels = r.getters = r.setters = null;\n r.flags &= STR | BOOL | NUM;\n return canonicalize(r);\n }",
"String getBooleanExpression(boolean flag);",
"boolean getBoolValue();",
"boolean getBoolValue();",
"org.apache.xmlbeans.XmlBoolean xgetString();",
"boolean getString();",
"public String getBooleanTrueValue() {\n\t\treturn ( _sBooleanTrueValue != null ? _sBooleanTrueValue : \"\" );\n\t}",
"@OperationMeta(opType = OperationType.FUNCTION)\n public static String toString(boolean b0) {\n return String.valueOf(b0);\n }",
"public String getValue(Boolean b) {\n return (b == null) ? null : b.toString();\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 String toString()\n\t{\n\t\tString binary = \"\"; //string to store the binary number\n\t\t\n\t\t//loops through each of the bit positions\n\t\tfor (int i=binaryCode.length-1; i>=0; i--)\n\t\t{\n\t\t\t\n\t\t\t//checks the value of the bit\n\t\t\tif (binaryCode[i]==false)\n\t\t\t{\n\t\t\t\t//if the boolean is false, then the bit is a 0\n\t\t\t\tbinary+=\"0\";\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t//since there are only two states, if it is not 0, then it is 1\n\t\t\t\tbinary+=\"1\";\t\t\n\t\t\t}\n\t\t}\t\t\n\t\t//returns the binary number as a string\n\t\treturn binary;\n\t}",
"protected String getFalse() {\n return \"false\";\n }",
"private boolean convertToBoolean (String s) {\n return (\"1\".equalsIgnoreCase(s)\n || \"yes\".equalsIgnoreCase(s)\n || \"true\".equalsIgnoreCase(s)\n || \"on\".equalsIgnoreCase(s)\n || \"y\".equalsIgnoreCase(s)\n || \"t\".equalsIgnoreCase(s));\n }",
"public String getBoolput() {\n return boolput;\n }",
"void writeBool(boolean value);",
"@Override\n\t\tpublic Boolean convert(String s) {\n\t\t\tString value = s.toLowerCase();\n\t\t\tif (\"true\".equals(value) || \"1\".equals(value) /* || \"yes\".equals(value) || \"on\".equals(value) */) {\n\t\t\t\treturn Boolean.TRUE;\n\t\t\t}\n\t\t\telse if (\"false\".equals(value) || \"0\".equals(value) /* || \"no\".equals(value) || \"off\".equals(value) */) {\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Can not parse to boolean type of value: \" + s);\n\t\t\t}\n\t\t}",
"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 }",
"public static String wheelchairboolean(boolean access) \n {\n String option;\n if (access == true) {\n option = \" yes \";\n }\n else {\n option = \" no \";\n }\n return option;\n \n }",
"@Test\n\tpublic void testBooleanToString() {\n\n\t\t// forwards for yes and no\n\t\tAssert.assertEquals(converter.convertReverse(false), \"No\");\n\t\tAssert.assertEquals(converter.convertReverse(true), \"Yes\");\n\n\t}",
"String byteOrBooleanWrite();",
"public static MyString2 valueOf(boolean b) {\n\t\tif (b == true) {\n\t\t\treturn new MyString2(\"true\");\n\t\t} else {\n\t\t\treturn new MyString2(\"false\");\n\t\t}\n\t}",
"String getBooleanTrueExpression();",
"public String checkflag( String string){\n if(test){\n return string;\n }\n else{\n test = true;\n string = string + '_';\n return string;\n }\n }",
"public static Value makeBool(boolean b) {\n if (b)\n return theBoolTrue;\n else\n return theBoolFalse;\n }",
"@Test\n public void testReflectionBoolean() {\n Boolean b;\n b = Boolean.TRUE;\n assertEquals(this.toBaseString(b) + \"[value=true]\", ToStringBuilder.reflectionToString(b));\n b = Boolean.FALSE;\n assertEquals(this.toBaseString(b) + \"[value=false]\", ToStringBuilder.reflectionToString(b));\n }",
"private String changestatus(String string) {\n\t\tString changestatustemp;\r\n\t\tif (string.equals(\"0\")) {\r\n\t\t\tchangestatustemp = \"1\";\r\n\t\t} else {\r\n\t\t\tchangestatustemp = \"0\";\r\n\t\t}\r\n\t\treturn changestatustemp;\r\n\t}",
"private String changestatus(String string) {\n\t\tString changestatustemp;\r\n\t\tif (string.equals(\"0\")) {\r\n\t\t\tchangestatustemp = \"1\";\r\n\t\t} else {\r\n\t\t\tchangestatustemp = \"0\";\r\n\t\t}\r\n\t\treturn changestatustemp;\r\n\t}",
"public String getName() {\n return \"sdo_boolean\";\n }",
"public static String toString(java.lang.Boolean value) {\n if (value == null) {\n return null;\n } else {\n return toString(value.booleanValue());\n }\n }",
"public Object bool(String value) {\r\n if (value == null) return null;\r\n return isOracle() ? Integer.valueOf((isTrue(value) ? 1 : 0)) :\r\n Boolean.valueOf(isTrue(value));\r\n }",
"public static String toString(boolean[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (array[i])\r\n\t\t\t\tstr += \"1\" + \"\";\r\n\t\t\telse\r\n\t\t\t\tstr += \"0\" + \"\";\r\n\t\treturn str + \"]\";\r\n\t}",
"boolean getValue();",
"public Boolean toBool(){\n\t\tString s = txt().trim();\n\t\tBoolean i;\n\t\ttry{\n\t\t\ti = Boolean.parseBoolean(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn i;\t\n\t}",
"String getZero_or_one();",
"public abstract boolean read_boolean();",
"String bsToStr(BitSet bs){\n String s = \"\";\n for(int i=0; i<bitsetLen; i++){\n if(bs.get(i) == true)\n s += '1';\n else\n s += '0';\n }\n \n return new StringBuilder(s).reverse().toString();\n }",
"private boolean getBoolean(String paramString, boolean paramBoolean) {\n }",
"@Test\n\tpublic void testStringToBoolean() {\n\n\t\t// forwards for yes and no\n\t\tAssert.assertEquals(converter.convertForward(\"Yes\"), new Boolean(true));\n\t\tAssert.assertEquals(converter.convertForward(\"No\"), new Boolean(false));\n\n\t}",
"public String getBooleanFalseValue() {\n\t\treturn ( _sBooleanFalseValue != null ? _sBooleanFalseValue : \"\" );\n\t}",
"private void serializeBoolean(final Boolean value, final StringBuffer buffer)\n {\n buffer.append(\"b:\");\n buffer.append(value.booleanValue() ? 1 : 0);\n buffer.append(';');\n }",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"@Override\n protected ImpValue plusStr(StringValue sv) {\n return vf.makeStr(sv.getStrValue() + this.boolValue.toString());\n }",
"boolean readBoolean();",
"public boolean getBoolean(String name)\r\n {\r\n if( \"true\".equals(getString(name)) )\r\n return true;\r\n else\r\n return false;\r\n }",
"public String toString()\n\t{\n\t\tString result = new String();\n\t\tfor (boolean bit : bits)\n\t\t{\n\t\t\tif (bit) result += '1';\n\t\t\telse result += '0';\n\t\t}\n\t\treturn result;\n\t}",
"String getBooleanFalseExpression();",
"public String getOutputFlag();",
"public String visit(BooleanType n, LLVMRedux argu) {\n return \"i1\";\n }",
"boolean booleanOf();",
"abstract public boolean getAsBoolean();",
"static void log(Boolean s) {\n System.out.println(String.valueOf(true));\n }",
"boolean getBoolean();",
"boolean getBoolean();",
"Boolean getCompletelyCorrect();",
"private static boolean stringToBoolean(String value) {\n if (value.equals(\"1\")) {\n return true;\n }\n else {\n return false;\n }\n }",
"private static int toInt(boolean b) {\n return b ? 1 : 0;\n }",
"public String getBooltax() {\n return booltax;\n }",
"public String getIsFlag() {\r\n return isFlag;\r\n }",
"public Boolean asBoolean();",
"public abstract void getBooleanImpl(String str, boolean z, Resolver<Boolean> resolver);",
"public static String asString(boolean result, Lang lang) {\n Objects.requireNonNull(lang);\n ByteArrayOutputStream output = new ByteArrayOutputStream(1000);\n ResultsWriter.create()\n .lang(lang)\n .build()\n .write(output, result);\n return StrUtils.fromUTF8bytes(output.toByteArray());\n }",
"public String visit(TrueLiteral n, LLVMRedux argu) throws Exception {\n return \"true\";\n }",
"public String getType() {\r\n\t\treturn \"boolean\";\r\n\t}",
"public boolean getBoolean(String name)\n/* */ {\n/* 845 */ return getBoolean(name, false);\n/* */ }",
"private void saveBoolean(String paramString, boolean paramBoolean) {\n }",
"static public boolean boolForString(String s) {\n return ERXValueUtilities.booleanValue(s);\n }",
"public boolean getValue();",
"public static boolean string2boolean(String str) {\r\n \tif (Constants.FALSE.equals(str)) {\r\n \t\treturn false;\r\n \t} else {\r\n \t\treturn true;\r\n \t}\r\n }",
"public static String IF(boolean bool, String s1, String s2) {\n return bool\n ? s1\n : s2;\n }",
"public void write(boolean b) {\n write(b ? 1 : 0);\n }",
"void setString(boolean string);",
"public boolean isProcessed() \n{\nObject oo = get_Value(\"Processed\");\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"public static void main(String[] args) {\n\r\n\r\n\t\t boolean value = true;\r\n\r\n\t\t value = false;\r\n\r\n\t\t System.out.println(\"The value for the Boolean variable is : \"+ value);\r\n\t\r\n\r\n}",
"public boolean getBoolean(String name, boolean defaultValue)\n/* */ {\n/* 862 */ String value = getString(name);\n/* 863 */ if (value == null) {\n/* 864 */ return defaultValue;\n/* */ }\n/* 866 */ return (value.equals(\"1\")) || (value.toLowerCase().equals(\"true\"));\n/* */ }",
"public boolean getBoolean(){\r\n try{return kd.getJSONObject(ug).getBoolean(udn);}\r\n catch(JSONException e){return false;}\r\n }",
"public String visit(FalseLiteral n, LLVMRedux argu) throws Exception {\n return \"false\";\n }",
"int boolToInt(boolean a) {\n return Boolean.compare(a, false);\n }",
"public boolean getBoolean(final String key) {\n String s = removeByteOrderMark(get(key));\n if (s == null) return false;\n s = s.toLowerCase(Locale.ROOT);\n return s.equals(\"true\") || s.equals(\"on\") || s.equals(\"1\");\n }",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"boolean hasBoolValue();",
"void writeBoolean(boolean v) throws IOException;",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"public static void main(String[] args) {\n\n double a = 'A';\n String AB = String.valueOf(a);\n System.out.println(AB);\n double BA = Double.parseDouble(AB);\n System.out.println(BA);\n\n long b = '1';\n String ABC = String.valueOf(b);\n System.out.println(ABC);\n long CBA = Long.parseLong(ABC);\n System.out.println(CBA);\n\n boolean C1 = true;\n String display = String.valueOf(C1);\n System.out.println(display);\n boolean C2 = Boolean.parseBoolean(display);\n System.out.println(C2);\n\n }",
"private native void Df1_Write_Boolean(String plcAddress,boolean value) throws Df1LibraryNativeException;",
"String byteOrBooleanRead();",
"public final void addAsString(boolean in)\n\t{\n\t\tif (in)\n\t\t{\n\t\t\tthis.add(BoolToString_True);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.add(BoolToString_False);\n\t\t}\n\t}",
"String getFlag() {\n return String.format(\"-T%d\", this.value);\n }",
"public int getTrueValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start getTrueValue Method ***************/\n\n // Return true value\n return trueValue;\n\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }"
] | [
"0.79704577",
"0.78736806",
"0.78626543",
"0.7444193",
"0.687232",
"0.67840254",
"0.6780229",
"0.66835266",
"0.64518774",
"0.64000446",
"0.63624704",
"0.6360203",
"0.6339673",
"0.6327172",
"0.6327172",
"0.6314372",
"0.62201667",
"0.62053955",
"0.61636126",
"0.61635053",
"0.6134332",
"0.611303",
"0.60844",
"0.6023403",
"0.60129726",
"0.59975183",
"0.59928787",
"0.5991659",
"0.59847754",
"0.59659314",
"0.59561384",
"0.594561",
"0.59376734",
"0.5926333",
"0.591295",
"0.5890506",
"0.58850485",
"0.58850485",
"0.58707434",
"0.58601224",
"0.5841256",
"0.582703",
"0.58159864",
"0.5815269",
"0.580829",
"0.58063155",
"0.57989144",
"0.5790721",
"0.57801247",
"0.5761461",
"0.5751949",
"0.5746922",
"0.57441145",
"0.5701975",
"0.56746787",
"0.56586456",
"0.5658237",
"0.5658123",
"0.5649339",
"0.56451505",
"0.5635211",
"0.5618194",
"0.5609139",
"0.5609139",
"0.559768",
"0.55955094",
"0.55948997",
"0.5585641",
"0.5577782",
"0.5560503",
"0.5543601",
"0.5536943",
"0.5534771",
"0.55208695",
"0.55170614",
"0.5497301",
"0.5481411",
"0.54785573",
"0.5477267",
"0.5477267",
"0.5445674",
"0.54429334",
"0.5436337",
"0.5427436",
"0.542441",
"0.5409398",
"0.53950465",
"0.5389676",
"0.53771764",
"0.5371389",
"0.5371317",
"0.5370067",
"0.5369159",
"0.5361153",
"0.5359092",
"0.53583014",
"0.5354477",
"0.535406",
"0.5352493",
"0.53459114"
] | 0.77244127 | 3 |
load total score from database | private void LoadingDatabaseTotalScore() {
Cursor cursor = helper.getDataAll(TotalScoretableName);
while (cursor.moveToNext()) {
// loading each element from database
String ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);
String totalPoint = cursor.getString(POINT_TOTAL_SCORE_COLUMN);
totalScore = Integer.parseInt(totalPoint); // store total score from database to backup value
} // travel to database result
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }",
"public int getTotalScore() {\n\t\tLoadingDatabaseTotalScore();\n\t\treturn totalScore;\n\t}",
"@Override\n\tpublic void loadScore() {\n\n\t}",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"@Override\r\n\tpublic void allScore() {\r\n\t\tallScore = new ArrayList<Integer>();\r\n\t\tallPlayer = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n \r\n String query = \"SELECT NAME_PLAYER, SUM(SCORE) AS 'SCORE'\" +\r\n \t\t\" FROM SINGLEPLAYERDB\" +\r\n \t\t\" GROUP BY NAME_PLAYER\" +\r\n \t\t\" ORDER BY SCORE DESC\" ;\r\n ResultSet rs = stmt.executeQuery(query);\r\n \r\n \r\n while (rs.next()) {\r\n \tallPlayer.add(rs.getString(1));\r\n \tallScore.add(Integer.parseInt(rs.getString(2)));\r\n }\r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}",
"public int getTotalScore(){\r\n return totalScore;\r\n }",
"public int getTotalScore(){\n return totalScore;\n }",
"private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public int getTotalScore() {\r\n return totalScore;\r\n }",
"@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}",
"@Override\r\n\tpublic long getscore(Map<String, Object> map) {\n\t\tCustomer_judge_driver c= new Customer_judge_driver();\r\n\t\tlong sum =0;\r\n try{\r\n\t\t\t\r\n \t Long score = (Long)getSqlMapClientTemplate().queryForObject(c.getClass().getName()+\".selectscore\",map);\r\n \t if (score == null){\r\n \t\treturn sum;\r\n \t }\r\n \t sum = score;\r\n \t return sum;\r\n\t\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.out.println(\"数据连接失败,请检查数据服务是否开启\");\r\n\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t}\r\n\t}",
"public int totalScore() {\n return 0;\n }",
"@Override\n public int getScore() {\n return totalScore;\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public void getscores() {\n\t\tInputStream in = null;\n\t\t//String externalStoragePath= Environment.getExternalStorageDirectory()\n // .getAbsolutePath() + File.separator;\n\t\t\n try {\n \tAssetManager assetManager = this.getAssets();\n in = assetManager.open(\"score.txt\");\n \tSystem.out.println(\"getting score\");\n //in = new BufferedReader(new InputStreamReader(new FileInputStream(externalStoragePath + \"score.txt\")));\n \n \tGlobalVariables.topScore = Integer.parseInt(new BufferedReader(new InputStreamReader(in)).readLine());\n System.out.println(\"topscore:\"+GlobalVariables.topScore);\n \n\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (NumberFormatException e) {\n // :/ It's ok, defaults save our day\n \tSystem.out.println(\"numberformatexception score\");\n } finally {\n try {\n if (in != null)\n in.close();\n } catch (IOException e) {\n }\n }\n\t}",
"public Double getTotalScore() {\n return totalScore;\n }",
"private void saveInitialTotalScore() {\n\t\thelper.insertTotalScoreData(TotalScoretableName, totalScoreID, \"0\");\n\t}",
"public int getScore()\n {\n // put your code here\n return score;\n }",
"float getScore();",
"float getScore();",
"double calculateScore(String documentId);",
"@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}",
"int getScore();",
"public double getTotalScore() {\n\t return this.totalScore;\n\t }",
"public static void sumTotalScore() {\n totalScore += addRandomScore();;\n }",
"int getScoresCount();",
"public int getScore() { return score; }",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public static int getScore(){\n return score;\n }",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic int totalScore(GradeBean param) {\n\t\treturn 0;\r\n\t}",
"public int getScore() {return score;}",
"public int getScore(){\n\t\treturn score;\n\t}",
"public int getScore(){\n\t\treturn score;\n\t}",
"protected abstract void calcScores();",
"public int getScore ()\r\n {\r\n\treturn score;\r\n }",
"float getTotalCost() throws SQLException;",
"Float getScore();",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore()\n {\n return score; \n }",
"public int score() {\n return score;\n }",
"int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\r\n \treturn score;\r\n }",
"public int getScore()\n {\n return score;\n }",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"public Long getScore() {\n return score;\n }",
"public BigDecimal getScores() {\n return scores;\n }",
"public int getScore()\n {\n return points + extras;\n }",
"public static int getScore()\n {\n return score;\n }",
"@Override\n\tpublic void readScore() {\n\t\t\n\t}",
"@Override\n\tpublic void readScore() {\n\t\t\n\t}",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"int getScoreValue();",
"public void displayDBScores(){\n\t\tCursor c = db.getScores();\n\t\tif(c!=null) {\n\t\t\tc.moveToFirst();\n\t\t\twhile(!c.isAfterLast()){\n\t\t\t\tdisplayScore(c.getString(0),c.getInt(1));\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\t\t\tc.close();\n\t\t}\n\t}",
"public int getScore(){\n \treturn 100;\n }",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"@Override\n\tpublic int findCounts(Score score) {\n\t\treturn scoreDao.findCounts(score);\n\t}",
"public int getScore() {\n return getStat(score);\n }",
"public int getScore(){\n return this.score;\n }",
"@Override\n public int getScore() {\n return score;\n }",
"public Integer getScore() {\r\n return score;\r\n }",
"public abstract float getScore();",
"public Integer getScore() {\n return score;\n }",
"private static int readScore() {\n try {\n fis = activity.openFileInput(scoreFileName);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis));\n String readLine = br.readLine();\n fis.close();\n br.close();\n Log.v(\"Setting score to: \", readLine);\n return Integer.parseInt(readLine);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0;\n }",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"int score();",
"int score();",
"public static int getScore()\n\t{\n\t\treturn score;\n\t}",
"public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}",
"public double getScore() {\r\n return score;\r\n }",
"public long getScore() {\n return score_;\n }",
"public long getScore() {\n return score_;\n }",
"void addScore(double score){\n\t\tsumScore+=score;\n\t\tnumScores++;\n\t\taverage = sumScore/numScores;\n\t}",
"public int getScore () {\n return mScore;\n }",
"public int getScore() {\n return this.score;\n }",
"public float loadsPerGame() {\n if (totalGames() == 0) return 0;\n float res = (float) loads / (float) (totalGames());\n return Math.round(res * 10) / 10f;\n }",
"public String getScoreTotalDataId() {\n return scoreTotalDataId;\n }",
"public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore(){ return this.score; }",
"public static int readScore() {\n try {\n Scanner diskScanner = new Scanner(new File(\"input.txt\"));\n while (diskScanner.hasNextLine()) {\n System.out.println(diskScanner.nextLine());\n }\n diskScanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return 0;\n }",
"public void setTotalScore(Double totalScore) {\n this.totalScore = totalScore;\n }",
"public int queryTotal() {\n\t\treturn this.studentMaper.queryTotal();\r\n\t}",
"@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}",
"public void loadScores() {\n try {\n File f = new File(filePath, highScores);\n if(!f.isFile()){\n createSaveData();\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n\n topScores.clear();\n topName.clear();\n\n String[] scores = reader.readLine().split(\"-\");\n String[] names = reader.readLine().split(\"-\");\n\n for (int i =0; i < scores.length; i++){\n topScores.add(Integer.parseInt(scores[i]));\n topName.add(names[i]);\n }\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public int getScore() {\r\n\t\treturn score;\r\n\t}",
"public int getScore() {\r\n\t\treturn score;\r\n\t}",
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"public long getScore() {\n return score_;\n }"
] | [
"0.6909831",
"0.68779504",
"0.68537074",
"0.6843691",
"0.6705346",
"0.66957664",
"0.6645696",
"0.66108906",
"0.64479715",
"0.6418834",
"0.63403463",
"0.6337954",
"0.6317671",
"0.62993956",
"0.62993956",
"0.62993956",
"0.62993956",
"0.625706",
"0.61554897",
"0.61431944",
"0.61249834",
"0.6095081",
"0.6095081",
"0.60771006",
"0.6051586",
"0.6049696",
"0.6044897",
"0.5994178",
"0.5988881",
"0.5986388",
"0.5972919",
"0.5972919",
"0.5971785",
"0.5952421",
"0.5950293",
"0.5927443",
"0.5925249",
"0.5925249",
"0.5915436",
"0.5904858",
"0.5900046",
"0.58738077",
"0.58680487",
"0.58680487",
"0.58680487",
"0.58645666",
"0.5864507",
"0.5861582",
"0.58605975",
"0.58605975",
"0.58586437",
"0.58528334",
"0.5851953",
"0.58498156",
"0.584768",
"0.5827307",
"0.5825459",
"0.58214724",
"0.58169943",
"0.58169943",
"0.58158416",
"0.58158416",
"0.58056974",
"0.5804653",
"0.57994217",
"0.57953376",
"0.57953376",
"0.57939136",
"0.57879734",
"0.5773433",
"0.57701695",
"0.57666725",
"0.57623744",
"0.57526755",
"0.5749372",
"0.5740945",
"0.5740945",
"0.574013",
"0.574013",
"0.5738642",
"0.5733483",
"0.57285887",
"0.57269484",
"0.57269484",
"0.57245016",
"0.5724193",
"0.57219684",
"0.57193774",
"0.5718384",
"0.57183224",
"0.5682436",
"0.56812876",
"0.56760865",
"0.56745297",
"0.565574",
"0.56487244",
"0.5646784",
"0.5646784",
"0.56456006",
"0.5640937"
] | 0.835875 | 0 |
load max score table to SCORE_LIST array list. create new arrayList every time it is called to make sure list is uptodate limit call due to memory cost | private void LoadingDatabaseScores() {
Cursor cursor = helper.getDataAll(ScoretableName);
// id_counter = cursor.getCount();
SCORE_LIST = new ArrayList<gameModel>();
while (cursor.moveToNext()) {
// loading each element from database
String ID = cursor.getString(ID_MAXSCORE_COLUMN);
String Score = cursor.getString(SCORE_MAXSCORE_COLUMN);
SCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),
ThumbNailFactory.create().getThumbNail(ID)));
} // travel to database result
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"public ArrayList<HighScore> retrieveHighScoreRows(){\n db = helper.getReadableDatabase();\n ArrayList<HighScore> scoresRows = new ArrayList<>(); // To hold all scores for return\n\n // Get all scores rows, sorted by score value\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n\n while ( ! scoreCursor.isAfterLast() ) { // There are more scores\n // Create scores with result\n HighScore hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1), scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoresRows.add(hs); // Add high score to list\n scoreCursor.moveToNext();\n }\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n db.close();\n return scoresRows; // Return ArrayList of all scores\n }",
"@Override\n\tpublic void loadScore() {\n\n\t}",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public Scores() {\n list = new int[50];\n }",
"public ScoreList(){\r\n\t\tnumItems = 0;\r\n\t\tscoreList = new Score[100];\r\n\t}",
"public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }",
"public ArrayList<Highscore> getAllScore() {\n SQLiteDatabase db = this.getReadableDatabase();\n ArrayList<Highscore> arScore = new ArrayList<>();\n Cursor res = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n res.moveToFirst();\n while (!res.isAfterLast()) {\n\n arScore.add(new Highscore(res.getInt(res.getColumnIndex(\"score\")), res.getInt(res.getColumnIndex(\"_id\")), res.getString(res.getColumnIndex(\"challenge\"))));\n res.moveToNext();\n }\n res.close();\n db.close();\n\n return arScore;\n }",
"public ArrayList<gameModel> getScoreList() {\n\t\tLoadingDatabaseScores();\n\t\treturn SCORE_LIST;\n\t}",
"public void loadScores() {\n try {\n File f = new File(filePath, highScores);\n if(!f.isFile()){\n createSaveData();\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n\n topScores.clear();\n topName.clear();\n\n String[] scores = reader.readLine().split(\"-\");\n String[] names = reader.readLine().split(\"-\");\n\n for (int i =0; i < scores.length; i++){\n topScores.add(Integer.parseInt(scores[i]));\n topName.add(names[i]);\n }\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public HighScoresTable(int size) {\n this.highScores = new LinkedList<ScoreInfo>();\n this.capacity = size;\n }",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"private void LoadingDatabaseTotalScore() {\n\n\t\tCursor cursor = helper.getDataAll(TotalScoretableName);\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tString totalPoint = cursor.getString(POINT_TOTAL_SCORE_COLUMN);\n\t\t\t\n\t\t\ttotalScore = Integer.parseInt(totalPoint);\t\t\t\t\t// store total score from database to backup value\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"private void readScores() {\n final List<Pair<String, Integer>> list = new LinkedList<>();\n try (DataInputStream in = new DataInputStream(new FileInputStream(this.file))) {\n while (true) {\n /* reads the name of the player */\n final String name = in.readUTF();\n /* reads the score of the relative player */\n final Integer score = Integer.valueOf(in.readInt());\n list.add(new Pair<String, Integer>(name, score));\n }\n } catch (final Exception ex) {\n }\n this.sortScores(list);\n /* if the list was modified by the cutting method i need to save it */\n if (this.cutScores(list)) {\n this.toSave = true;\n }\n this.list = Optional.of(list);\n\n }",
"java.util.List<Score>\n getScoresList();",
"public Highscore() {\n scores = new ArrayList<Score>();\n }",
"Score getScores(int index);",
"@SqlQuery(\"select * from PLAYERSTATS order by SCORE DESC FETCH FIRST 10 ROWS ONLY\")\n List<PlayerStats> findScoreHighScores();",
"public void setScores(ArrayList<Integer> scores) { this.scores = scores; }",
"public void addToTable() {\n\n\n if (this.highScoresTable.getRank(this.scoreBoard.getScoreCounter().getValue()) <= this.highScoresTable.size()) {\n DialogManager dialog = this.animationRunner.getGui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\");\n\n this.highScoresTable.add(new ScoreInfo(name, this.scoreBoard.getScoreCounter().getValue()));\n File highScoresFile = new File(\"highscores.txt\");\n try {\n this.highScoresTable.save(highScoresFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }",
"public List<Highscore> getTopTen(Context context){\n highscore = db.getTopTen();\n return highscore;\n }",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"@Override\r\n\tpublic void allScore() {\r\n\t\tallScore = new ArrayList<Integer>();\r\n\t\tallPlayer = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n \r\n String query = \"SELECT NAME_PLAYER, SUM(SCORE) AS 'SCORE'\" +\r\n \t\t\" FROM SINGLEPLAYERDB\" +\r\n \t\t\" GROUP BY NAME_PLAYER\" +\r\n \t\t\" ORDER BY SCORE DESC\" ;\r\n ResultSet rs = stmt.executeQuery(query);\r\n \r\n \r\n while (rs.next()) {\r\n \tallPlayer.add(rs.getString(1));\r\n \tallScore.add(Integer.parseInt(rs.getString(2)));\r\n }\r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public void loadScoreFile() {\n try {\n inputStream = new ObjectInputStream(new FileInputStream(HIGHSCORE_FILE));\n scores = (ArrayList<Score>) inputStream.readObject();\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } catch (ClassNotFoundException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"public void resize(int max) {\r\n\t\tSet<Language> keys = getDb().keySet();\r\n\t\tSystem.out.println(keys);\r\n\t\tfor(Language lang : keys) {\r\n\t\t\tMap<Integer,LanguageEntry> top = getTop(max,lang);\r\n\t\t\tgetDb().put(lang,top);\r\n\t\t}\r\n\t}",
"public LinkedList<HighScore> getHighScores(){\r\n\t\tLinkedList<HighScore> list = new LinkedList<HighScore>();\r\n\t\ttry{\r\n\t\t\t//Sorting by Score column\r\n\t\t ResultSet rs = statement.executeQuery(\"select * from Highscores ORDER BY Score DESC\");\r\n\t\t while(rs.next()){\r\n\t\t String username = rs.getString(\"Nickname\"); \r\n\t\t int userScore = rs.getInt(\"Score\"); \r\n\t\t HighScore userHighScore = new HighScore(username,userScore);\r\n\t\t list.add(userHighScore);\r\n\t\t \r\n\t\t }\r\n\t\t }\r\n\t\t\tcatch (Exception e){\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\treturn list;\r\n\t}",
"public Scores[] dbSorter(int score, String name){\n\n\n Scores s1 = new Scores(score, name); // makes the current score and name into a score object\n\n db.addScore(s1);\n Scores[] scoreList = db.getAllScores(); // gets score list from main activity\n scoreList = db.sortScores(scoreList);\n Log.i(\"Scores count\", Integer.toString(db.getScoresCount()));\n\n return scoreList;\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"public HighScoresTable(int size) {\n this.size = size;\n this.scoreInfoList = scoreInfoList;\n }",
"@Test\n public void missingHighScoresTest() {\n database.createHighScoreTable(testTable);\n database.addHighScore(110, testTable);\n database.addHighScore(140, testTable);\n int[] scores = database.loadHighScores(testTable);\n assertEquals(0, scores[4]);\n assertEquals(0, scores[3]);\n assertEquals(0, scores[2]);\n assertEquals(110, scores[1]);\n assertEquals(140, scores[0]);\n database.clearTable(testTable);\n\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public HighScore[] getHighScores()\n\t{\n\t\tif (!new File(\"HighScores.dat\").exists())\n\t\t\tinitializeFile();\n\t\ttry \n\t\t{\n\t\t\tObjectInputStream o=new ObjectInputStream(new FileInputStream(\"HighScores.dat\"));\n\t\t\tHighScore[] h=(HighScore[]) o.readObject();\n\t\t\treturn h;\n\t\t} catch (IOException e) {e.printStackTrace();} \n\t\tcatch (ClassNotFoundException e) {e.printStackTrace();}\n\t\treturn null;\n\t}",
"private static double getHighestScore (List<Double> inputScores) {\n\n\t\tCollections.sort(inputScores, Collections.reverseOrder());\n\n\t\treturn inputScores.get(0);\n\n\t}",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"protected abstract List<Double> calcScores();",
"private static void populateLftMax(List<Integer> lftMax) {\n\t\tint curMax=-1;\n\t\tfor(int i= 0;i<lis.size();i++) {\n\t\t\tlftMax.add(curMax);\n\t\t\tif(lis.get(i) > curMax )\n\t\t\t\tcurMax= Math.max(curMax, lis.get(i));\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t}\n\t\t\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"public static HighScoresTable loadFromFile(File filename) {\n HighScoresTable newScoresTable = new HighScoresTable(4);\n ObjectInputStream inputStream = null;\n try {\n inputStream = new ObjectInputStream(new FileInputStream(filename));\n List<ScoreInfo> scoreFromFile = (List<ScoreInfo>) inputStream.readObject();\n if (scoreFromFile != null) {\n //scoreFromFile.clear();\n newScoresTable.scoreInfoList.addAll(scoreFromFile);\n }\n } catch (FileNotFoundException e) { // Can't find file to open\n System.err.println(\"Unable to find file: \" + filename);\n //return scoresTable;\n } catch (ClassNotFoundException e) { // The class in the stream is unknown to the JVM\n System.err.println(\"Unable to find class for object in file: \" + filename);\n //return scoresTable;\n } catch (IOException e) { // Some other problem\n System.err.println(\"Failed reading object\");\n e.printStackTrace(System.err);\n //return scoresTable;\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException e) {\n System.err.println(\"Failed closing file: \" + filename);\n }\n }\n return newScoresTable;\n\n\n }",
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }",
"private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }",
"public ArrayList<UserData> getHighScoreList() {\n\n setRead();\n\n String[] columns = {\n SQLConstants.Entries._ID,\n SQLConstants.Entries.HIGHSCORES_NAME,\n SQLConstants.Entries.HIGHSCORE_SCORE\n };\n\n Cursor queryCursor = db.query(\n SQLConstants.Entries.TABLE_NAME,\n columns,\n null,\n null,\n null,\n null,\n SQLConstants.Entries.HIGHSCORE_SCORE + \" DESC\"\n );\n\n ArrayList<UserData> userData = new ArrayList<>();\n while (queryCursor.moveToNext()) {\n UserData user = new UserData();\n user.setName(queryCursor.getString(queryCursor.getColumnIndexOrThrow(SQLConstants.Entries.HIGHSCORES_NAME)));\n user.setScore(queryCursor.getInt(queryCursor.getColumnIndexOrThrow(SQLConstants.Entries.HIGHSCORE_SCORE)));\n\n userData.add(user);\n }\n\n queryCursor.close();\n\n return userData;\n }",
"private static void populateRgtMax(List<Integer> rgtMax) {\n\t\tint curMax=-1;\n\t\tfor(int i= lis.size()-1;i>=0;i--) {\n\t\t\trgtMax.add(curMax);\n\t\t\tif(lis.get(i) > curMax )\n\t\t\t\tcurMax= Math.max(curMax, lis.get(i));\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t}\n\t\tCollections.reverse(rgtMax);\n\t\t\n\t}",
"public List<Highscore> getHighscore(Context context){\n highscore = db.getHighscore();\n return highscore;\n }",
"@Override\n public Score getBest() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> bestScores = session.createQuery(\"FROM Score s WHERE s.value = (SELECT max(s.value) FROM Score s)\", Score.class)\n .list();\n\n session.close();\n\n return bestScores.isEmpty() ? new Score(0L) : bestScores.get(0);\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return null;\n }\n }",
"@Override\n\tpublic List<Score> getRandomScoreList() {\n\t\treturn scoreDao.getRandomScoreList();\n\t}",
"public ArrayList<Configuration> choixMax()\r\n\t{\r\n\t\tArrayList<Configuration> Filles=ConfigurationsFilles();\r\n\t\tArrayList<Configuration> FillesMax = new ArrayList<>();\r\n\t\tif(Filles==null) return null;\r\n\t\tint max = Filles.get(0).maxscore;\r\n\t\tfor(Configuration c : Filles)\r\n\t\t{\r\n\t\t\tif(max == c.maxscore)\r\n\t\t\t{\r\n\t\t\t\tFillesMax.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn FillesMax;\r\n\t}",
"public static void initHighScoreLocal(Context mContext){\n\t\tObject db = Common.getObjFromInternalFile(mContext, Config.score_file_save);;\n\t\tif(db == null){\n\t\t\tint[] highScore = new int[5];\n\t\t\tfor(int i = 0; i < 5 ; i ++){\n\t\t\t\thighScore[i] = 0;\n\t\t\t}\n\t\t\tCommon.writeFileToInternal(mContext, Config.score_file_save, highScore);\n\t\t}\n\t}",
"private static void fillMaxArray() {\n int maxIndex = 0;\n int maxCount = 0;\n for (int n = 0; n < LIMIT; n++) {\n if (COUNT[n] > maxCount) {\n maxIndex = n;\n maxCount = COUNT[n];\n }\n COUNT[n] = maxIndex;\n }\n //System.err.println(Arrays.toString(COUNT));\n }",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"public int getHighscoreMaxSize() {\n \t\treturn 20;\n \t}",
"private void setUpHighscoreList() {\n highscores = fileManager.getHighscoresFromFile();\n\n tableData = new String[highscores.size()][2];\n int index = 0;\n for(String i: highscores.keySet()) {\n tableData[index][0] = i;\n tableData[index][1] = highscores.get(i).toString();\n index++;\n }\n\n highscoreTable = new JTable(tableData, columns) {\n private static final long serialVersionUID = 1L;\n\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n\n };\n highscoreTable.setFocusable(false);\n highscoreTable.setCellSelectionEnabled(false);\n highscoreTable.getTableHeader().setReorderingAllowed(false);\n highscoreTable.setFillsViewportHeight(true);\n highscoreTable.setDragEnabled(false);\n highscorePane = new JScrollPane(highscoreTable);\n\n rootPanel.add(highscorePane, BorderLayout.CENTER);\n }",
"int getMaxRecords();",
"private List<Integer> loadTestNumbers(ArrayList<Integer> arrayList) {\n for (int i = 1; i <= timetablepro.TimetablePro.MAX_TIMETABLE; i++) {\n arrayList.add(i);\n }\n return arrayList;\n }",
"public ArrayList<Double> getFiveHighestScore() {\n int size = scoreList.size();\n ArrayList<Double> fiveHighestList = new ArrayList<>();\n if (size <= 5) {\n for (Double score: scoreList) {\n fiveHighestList.add(score);\n }\n } else {\n for (int i = 0; i < 5; i++)\n fiveHighestList.add(scoreList.get(i));\n }\n return fiveHighestList;\n }",
"public java.util.List<Score> getScoresList() {\n return scores_;\n }",
"private ArrayList<WobblyScore> getWobblyLeaderboard() {\n ArrayList<WobblyScore> wobblyScores = new ArrayList<>();\n String json = DiscordUser.getWobbliesLeaderboard(codManager.getGameId());\n if(json == null) {\n return wobblyScores;\n }\n JSONArray scores = new JSONArray(json);\n for(int i = 0; i < scores.length(); i++) {\n wobblyScores.add(WobblyScore.fromJSON(scores.getJSONObject(i), codManager));\n }\n WobblyScore.sortLeaderboard(wobblyScores, true);\n return wobblyScores;\n }",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public List<GameData> getTopTen(Collection<GameData> listOfData, String difficulty){\n\t\t\n\t\tlogger.info(\"Top List on \" + difficulty + \" created.\");\t\n\t\t\n\t\tList<GameData> tempList = listOfData.stream()\n\t\t\t\t\t\t\t\t\t.filter(d -> d.getDifficulty().equals(difficulty))\n\t\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t\tif(tempList.size()>=10) {\n\t\t\treturn tempList.stream()\n\t\t\t\t\t.sorted((d1,d2) -> d2.getFinalScore() - d1.getFinalScore())\n\t\t\t\t\t.collect(Collectors.toList()).subList(0, 10);\n\t\t} else {\n\t\t\treturn tempList.stream()\n\t\t\t\t\t.sorted((d1,d2) -> d2.getFinalScore() - d1.getFinalScore())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t}\t\n\t}",
"private void loadHighScore() {\n this.myHighScoreInt = 0;\n \n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) { \n FileReader in = null;\n BufferedReader br = null;\n try {\n in = new FileReader(higheScoreFilePath.toString());\n br = new BufferedReader(in);\n String scoreAsString = br.readLine();\n if (scoreAsString != null) {\n scoreAsString = scoreAsString.trim();\n this.myHighScoreInt = Integer.parseInt(scoreAsString);\n }\n } catch (final FileNotFoundException e) {\n emptyFunc();\n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n if (in != null) {\n in.close();\n }\n if (br != null) {\n br.close();\n }\n } catch (final IOException e) { \n emptyFunc();\n } \n } else {\n try {\n f.createNewFile();\n } catch (final IOException e) {\n return;\n }\n }\n }",
"public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> l = new ArrayList<ScoreInfo>();\n l.addAll(this.highScores); //make a copy;\n return l;\n }",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public java.util.List<Score> getScoresList() {\n if (scoresBuilder_ == null) {\n return java.util.Collections.unmodifiableList(scores_);\n } else {\n return scoresBuilder_.getMessageList();\n }\n }",
"void setBestScore(double bestScore);",
"@Override\n public List<Score> getAll() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> scores = session.createQuery(\"FROM Score s ORDER BY s.value DESC\", Score.class)\n .setMaxResults(MAX_RESULTS)\n .list();\n\n session.close();\n\n return scores;\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return ImmutableList.of();\n }\n }",
"public HighScores(){\r\n\t\tHighScores objRead = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// lendo o arquivo de melhores pontuacoes\r\n\t\t\tFileInputStream fis = new FileInputStream(highScoresFilename);\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\tobjRead = (HighScores) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (Exception e){\r\n\t\t\t// caso o arquivo nao possa ser lido\r\n\t\t\tobjRead = null;\r\n\t\t} finally {\r\n\t\t\tif (objRead != null){\r\n\t\t\t\tthis.scoreNumber = objRead.scoreNumber;\r\n\t\t\t\tthis.highScores = objRead.highScores;\r\n\t\t\t} else {\r\n\t\t\t\tthis.highScores = new Score[scoreNumber];\r\n\t\t\t\tfor (int i = 0; i < scoreNumber; i++)\r\n\t\t\t\t\thighScores[i] = new Score(\"\", Integer.MIN_VALUE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected abstract void calcScores();",
"@Override\n public ArrayList<Pair<String, Integer>> getLeaderBoard() throws IOException {\n ArrayList<Pair<String, Integer>> leaderboard = new ArrayList<>();\n\n String sql = \"SELECT playernick, max(score) AS score FROM sep2_schema.player_scores GROUP BY playernick ORDER BY score DESC;\";\n ArrayList<Object[]> result;\n String playernick = \"\";\n int score = 0;\n\n try {\n result = db.query(sql);\n\n for (int i = 0; i < result.size(); i++) {\n Object[] row = result.get(i);\n playernick = row[0].toString();\n score = (int) row[1];\n leaderboard.add(new Pair<>(playernick, score));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return leaderboard;\n }",
"public static void main(String[] args) {\n File file = new File(\"ratings.tsv\");\n ArrayList<MovieRating> rl = new ArrayList<MovieRating>();\n\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] tkns = line.split(\"\\\\t\"); // tabs separate tokens\n MovieRating nr = new MovieRating(tkns[0], tkns[1], tkns[2]);\n rl.add(nr);\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int minVotes = 1;\n int numRecords = 1;\n Scanner input = new Scanner(System.in);\n while (true) {\n\n MaxHeap<MovieRating> myHeap = new MaxHeap<MovieRating>();\n\n for(int i = 0; i < rl.size(); i++) {\n myHeap.insert(rl.get(i));\n }\n\n System.out.println();\n System.out.println(\"Enter minimum vote threshold and number of records:\");\n minVotes = input.nextInt();\n numRecords = input.nextInt();\n if (minVotes * numRecords == 0)\n break;\n long startTime = System.currentTimeMillis();\n\n /* Fill in code to determine the top numRecords movies that have at least\n * minVotes votes. For each record mr, in decreasing order of average rating,\n * execute a System.out.println(mr).\n * Do not sort the movie list!\n */\n int counter = 0;\n for (int i = 0; i < rl.size(); i++) {\n MovieRating temp = myHeap.removemax();\n if(temp.getVotes() > minVotes){\n System.out.println(temp.toString());\n counter++;\n }\n if(counter >= numRecords){\n break;\n }\n }\n\n System.out.println();\n long readTime = System.currentTimeMillis();\n System.out.println(\"Time: \"+(System.currentTimeMillis()-startTime)+\" ms\");\n }\n }",
"public void updateHighscores(ArrayList<Player> tableContent) {\n // Add scores to table\n for (Player p : tableContent) {\n view.getHomePanel().getTableModel().addRow(playerToObjArray(p));\n }\n }",
"ArrayList<Integer> getLeaderboardScores() {\r\n return leaderboardScores;\r\n }",
"public int maxNumber(){\n int highest = 0;\n ArrayList<String> currentFileList = null;\n for (String word : hashWords.keySet()) {\n currentFileList= hashWords.get(word);\n int currentNum = currentFileList.size();\n if (currentNum > highest) {\n highest = currentNum;\n }\n // System.out.println(\"currentFileList \" + currentFileList +\"highest num = \"+ highest );\n }\n \n return highest;\n /*for (ArrayList s : hashWords.values()){\n if (s.size() > maxSize) {\n maxSize = s.size();\n }\n }\n return maxSize;*/\n }",
"public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }",
"public ResultSet getHighestScore(String map) {\n return query(SQL_SELECT_HIGHEST_SCORE, map);\n }",
"public void load(File filename) throws IOException {\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n HighScoresTable table = (HighScoresTable) ois.readObject();\n ois.close();\n this.capacity = table.size();\n this.highScores = table.getHighScores();\n } catch (IOException e) {\n throw e;\n } catch (ClassNotFoundException e2) {\n System.out.println(e2);\n this.capacity = HighScoresTable.DEFAULT_CAPACITY;\n this.highScores.clear();\n System.out.println(\"table has been cleared. new size is: \" + HighScoresTable.DEFAULT_CAPACITY);\n }\n }",
"public void displayDBScores(){\n\t\tCursor c = db.getScores();\n\t\tif(c!=null) {\n\t\t\tc.moveToFirst();\n\t\t\twhile(!c.isAfterLast()){\n\t\t\t\tdisplayScore(c.getString(0),c.getInt(1));\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\t\t\tc.close();\n\t\t}\n\t}",
"public ArrayList<QuakeEntry> getLargest( ArrayList<QuakeEntry> quakeData, int howMany ) {\n\t\t\n\t\tArrayList<QuakeEntry> ret = new ArrayList<QuakeEntry>();\n\t\tArrayList<QuakeEntry> workingCopy = new ArrayList<QuakeEntry>( quakeData );\n\t\t\n\t\tfor( int i = 0; i < howMany; ++i ) {\n\t\t\tint indexOfLargest = this.indexOfLargest( workingCopy );\n\t\t\tret.add( workingCopy.get( indexOfLargest ) );\n\t\t\tworkingCopy.remove( indexOfLargest );\n\t\t}\n\t\t\n\t\treturn ret;\n\t}",
"private void readObject(java.io.ObjectInputStream stream)\r\n throws IOException, ClassNotFoundException {\r\n scoreNumber = stream.readInt();\r\n highScores = new Score[scoreNumber];\r\n \r\n for (int i = 0; i < scoreNumber; i++)\r\n \thighScores[i] = (Score) stream.readObject();\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void loadScores(final String worldName) {\n\t\tFile file = Hello.getPlugin().getServer().getWorldContainer();\n\t\tFile worldFolder = new File(file, worldName);\n\t\tFile path = new File(worldFolder, PERSISTANCE_FILE);\n\t\t\n\t\t//if Highscore doesn't exist, don't try loading it \n\t\tif (!path.exists()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tReader reader = Files.newReader(path, Charset.defaultCharset());\n\t\t\n\t\t\n\t\t\tYaml yaml = new Yaml(YamlSerializable.YAML_OPTIONS);\t\n\t\t\t\n\t\t\tMap<String, Object> values = (Map<String, Object>) yaml.load(reader);\n\t\t\t\n\t\t\tList<Map<String, Object>> entries = (List<Map<String, Object>>) values.get(KEY_SCORES);\n\t\t\tfor (Map<String, Object> scoreMap : entries) {\n\t\t\t\tHighscoreEntry entry = new HighscoreEntry();\n\t\t\t\ttry {\n\t\t\t\t\tentry.setup(new PersistenceMap(scoreMap));\n\t\t\t\t} catch (PersistenceException e) {\n\t\t\t\t\tSystem.out.println(\"persistance exception in highscore\");\n\t\t\t\t}\n\t\t\t\tscores.add(entry);\n\t\t\t}\n\t\t\tCollections.sort(scores);\n\t\t\tSystem.out.println(\"sort\");\n\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void getscores() {\n\t\tInputStream in = null;\n\t\t//String externalStoragePath= Environment.getExternalStorageDirectory()\n // .getAbsolutePath() + File.separator;\n\t\t\n try {\n \tAssetManager assetManager = this.getAssets();\n in = assetManager.open(\"score.txt\");\n \tSystem.out.println(\"getting score\");\n //in = new BufferedReader(new InputStreamReader(new FileInputStream(externalStoragePath + \"score.txt\")));\n \n \tGlobalVariables.topScore = Integer.parseInt(new BufferedReader(new InputStreamReader(in)).readLine());\n System.out.println(\"topscore:\"+GlobalVariables.topScore);\n \n\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (NumberFormatException e) {\n // :/ It's ok, defaults save our day\n \tSystem.out.println(\"numberformatexception score\");\n } finally {\n try {\n if (in != null)\n in.close();\n } catch (IOException e) {\n }\n }\n\t}",
"public void updateScores() {\n ArrayList<String> temp = new ArrayList<>();\n File f = new File(Const.SCORE_FILE);\n if (!f.exists())\n try {\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n FileReader reader = null;\n try {\n reader = new FileReader(Const.SCORE_FILE);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line = null;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n temp.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String[][] res = new String[temp.size()][];\n\n for (int i = 0; i < temp.size() ; i++) {\n res[i] = temp.get(i).split(\":\");\n }\n try {\n bufferedReader.close();\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n scores = res;\n }",
"public abstract Score[] getScore();",
"private Boolean cutScores(List<Pair<String, Integer>> list2) {\n final boolean modified;\n if (list2.size() > this.maxScores) {\n modified = true;\n } else {\n modified = false;\n }\n while (list2.size() > this.maxScores) {\n list2.remove(this.maxScores);\n }\n return modified;\n\n }",
"public static ArrayList<ArrayList<ArrayList<Double>>> assignScoreToQueries() {\r\n\t\t\r\n\t\tArrayList<ArrayList<ArrayList<Double>>> allQueries = Queries.createQueries();\r\n\t\tArrayList<ArrayList<String>> dataset = ReadInDataset.finalDataset;\r\n\t\tint Counter = 0;\r\n\t\tDouble Score = 0.0;\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\r\n\t\tdf.setRoundingMode(RoundingMode.CEILING); // round up to 4 decimal places\r\n\t\t\r\n\t\t\r\n\t\t// initially assign to each query a score of 0\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) {\r\n\t\t\tArrayList<Double> zero = new ArrayList<Double>();\r\n\t\t\tzero.add(0.0);\r\n\t\t\tallQueries.get(i).add(zero);}\r\n\t\t\r\n\t\t// go through each query and check how many entries of the dataset it matches\r\n\t\t// with each match increase the score\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) { // for each query\r\n\t\t\tfor(int b=0; b < dataset.size(); b++) { // for each dataset\r\n\t\t\t\tCounter = 0; \r\n\t\t\t\tfor (int a=0; a < allQueries.get(i).size()-1; a++) { // for each query clause\r\n\t\t\t\t//check if the query criteria match the dataset and increase the Score accordingly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //this counter ensures that all query requirements are met in order to increase the score\r\n\t\t\t\t\tif (a != allQueries.get(i).size() - 1) {\t\t\t\t\t\t // ensure that Score entry is not involved in Query Matching\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// take min and max from query along with an entry from the dataset, convert to a double of 4 decimal places\r\n\t\t\t\t\t\tdouble minPoint1 = allQueries.get(i).get(a).get(0);\r\n\t\t\t\t\t\tString minPoint2 = df.format(minPoint1);\r\n\t\t\t\t\t\tdouble minPoint = Double.parseDouble(minPoint2);\r\n\t\t\t\t\t\tdouble maxPoint1 = allQueries.get(i).get(a).get(1);\r\n\t\t\t\t\t\tString maxPoint2 = df.format(maxPoint1);\r\n\t\t\t\t\t\tdouble maxPoint = Double.parseDouble(maxPoint2);\r\n\t\t\t\t\t\tdouble dataPoint1 = Double.parseDouble(dataset.get(b).get(a+1));\r\n\t\t\t\t\t\tString dataPoint2 = df.format(dataPoint1);\r\n\t\t\t\t\t\tdouble dataPoint = Double.parseDouble(dataPoint2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( dataPoint<= maxPoint && dataPoint >= minPoint) { Counter++; \r\n\t\t\t\t\t//\tSystem.out.println(\"min:\" + minPoint+\" max: \"+maxPoint+\" data: \"+dataPoint+ \" of Query: \" + b+ \"| Query Match!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {//System.out.println(minPoint+\" \"+maxPoint+\" \"+dataPoint+ \" of \" + b);\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\tif (Counter==(Queries.getDimensions())/2) { // if counter equals the dimensions of the query then increase score\r\n\t\t\t\t\tScore = allQueries.get(i).get(allQueries.get(i).size()-1).get(0);\r\n\t\t\t\t\tallQueries.get(i).get(allQueries.get(i).size()-1).set(0, Score+1.00); \r\n\t\t\t\t\t}}\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t//\tSystem.out.println(\"Score = \" + allQueries.get(i).get(allQueries.get(i).size()-1).get(0));\r\n\t\t}\t\r\n\t\treturn allQueries;\r\n\t}",
"public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }",
"public HighScoreTable(){\r\n\r\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }",
"private void extractNewScoreBoard(){\n if (FileStorage.getInstance().fileNotExist(this, \"FinalScore1.ser\")){\n score = new Score();\n score.addScoreUser(user);\n FileStorage.getInstance().saveToFile(this.getApplicationContext(), score, \"FinalScore1.ser\");\n } else {\n score = (Score) FileStorage.getInstance().readFromFile(this, \"FinalScore1.ser\");\n score.insertTopFive(user);\n FileStorage.getInstance().saveToFile(this, score, \"FinalScore1.ser\");\n }\n }",
"public static List<Course> getCourseMaxAvrScr1(List<Course> courseList){\n return courseList.\n stream().\n sorted(Comparator.comparing(Course::getAverageScore).\n reversed()).limit(1).collect(Collectors.toList());\n }",
"public void setMaxResults(int val) throws HibException;",
"int getMaxResults();",
"public static List<ScoreBean> sortDescending(List<ScoreBean> listScores) {\n Comparator<ScoreBean> comparator = new Comparator<ScoreBean>() {\n @Override\n public int compare(ScoreBean o1, ScoreBean o2) {\n return o2.getScore() - o1.getScore();\n }\n };\n Collections.sort(listScores, comparator);\n return listScores;\n }",
"Integer getMaximumResults();",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public void populateList(){\n\t\tfor (int i = 0; i < 10; i++){\n\t\t\tscoreList.add(-1);\t\t\t\n\t\t\tnameList.add(\"\");\n\t\t}\n\t\tint i=0; \n\t\ttry {\n\t\t\tScanner results = new Scanner(new File(\"results.txt\"));\n\t\t\twhile (results.hasNext()){\n\t\t\t\tnameList.set(i, results.next());\n\t\t\t\tscoreList.set(i, results.nextInt());\n\t\t\t\ti++;\n\t\t\t}\n\t\t} catch (FileNotFoundException e1){\n\t\t\te1.printStackTrace();\n\t\t}\n\t}"
] | [
"0.6235224",
"0.6058891",
"0.590366",
"0.58682036",
"0.5825921",
"0.57619536",
"0.57223374",
"0.571854",
"0.5696727",
"0.56897783",
"0.5682994",
"0.5648582",
"0.56165963",
"0.55666536",
"0.55612624",
"0.55372715",
"0.5526743",
"0.5524891",
"0.55095166",
"0.5507436",
"0.5499834",
"0.54888934",
"0.54847157",
"0.5476106",
"0.54676497",
"0.54470915",
"0.54449713",
"0.5413411",
"0.53989637",
"0.538614",
"0.537938",
"0.537683",
"0.53663594",
"0.53483856",
"0.53413236",
"0.5337306",
"0.5324236",
"0.53164375",
"0.5311932",
"0.5309144",
"0.5301789",
"0.5297897",
"0.52963895",
"0.52949136",
"0.5274831",
"0.52642727",
"0.52602607",
"0.52455646",
"0.52391326",
"0.52285624",
"0.52136195",
"0.52114743",
"0.52113813",
"0.52017134",
"0.51839876",
"0.5177232",
"0.51768565",
"0.5175363",
"0.51573396",
"0.5145558",
"0.5135028",
"0.51300377",
"0.5109434",
"0.5107758",
"0.50970083",
"0.50952995",
"0.50934565",
"0.50865024",
"0.50828576",
"0.50784653",
"0.50668085",
"0.5051794",
"0.5045691",
"0.5041266",
"0.5034524",
"0.5024199",
"0.5018606",
"0.50148416",
"0.50016457",
"0.4994389",
"0.4990186",
"0.4986201",
"0.49842542",
"0.4981483",
"0.49799398",
"0.49738368",
"0.49728093",
"0.49726832",
"0.49716103",
"0.49679863",
"0.49652714",
"0.4961419",
"0.49605775",
"0.49603492",
"0.4955759",
"0.4947058",
"0.4939181",
"0.49373877",
"0.49337015",
"0.49333882"
] | 0.7349569 | 0 |
load pool locations and coupons to LOOK_LIST array list. create new arrayList every time it is called to make sure list is uptodate limit call due to memory cost | private void LoadingDatabasePoolLocation() {
Cursor cursor = helper.getDataAll(PooltableName);
// id_counter = cursor.getCount();
POOL_LIST.clear();
while (cursor.moveToNext()) {
// loading each element from database
String ID = cursor.getString(ID_POOL_LCOATION_COLUMN);
String Description = cursor
.getString(DESCRIPTION_POOL_LCOATION_COLUMN);
String isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);
POOL_LIST.add(new poolLocation(ID, Description,
isUsed(isCouponUsed), ThumbNailFactory.create()
.getThumbNail(ID)));
} // travel to database result
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"private void loadLists() {\n }",
"void fillPool(List<RocketInterface> rockets);",
"public static void loadAllAdditionalCachedObjectList() {\n\n\t\t// TODO Completar cuando sea necesario.\n\n\t}",
"private PotCollection loadPotList(){\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n int sizeOfPotList = preferences.getInt(SHAREDPREF_ITEM_POTLIST_SIZE, 0);\n for(int i = 0; i<sizeOfPotList; i++){\n Log.i(\"serving calculator\", \"once\");\n String potName = preferences.getString(SHAREDPREF_ITEM_POTLIST_NAME+i, \"N\");\n int potWeight = preferences.getInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, 0);\n Pot tempPot = new Pot(potName, potWeight);\n potList.addPot(tempPot);\n }\n return potList;\n }",
"private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }",
"public ArrayList<poolLocation> getPoolList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> tempLocationList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(pool1ID)\n\t\t\t\t\t|| location.getTitle().equals(pool2ID) || location\n\t\t\t\t\t.getTitle().equals(pool3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == false)\t\t\t\t\t// only return any pool without buying a coupon\n\t\t\t\ttempLocationList.add(location);\n\t\t}\n\n\t\treturn tempLocationList;\n\n\t\t// return POOL_LIST;\n\t}",
"private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"private void readPools(String bucketToFind) throws ConfigurationException {\n // the intent with this method is to encapsulate all of the walking of URIs\n // and populating an internal object model of the configuration to one place\n for (URI baseUri : baseList) {\n try {\n // get and parse the response from the current base uri\n URLConnection baseConnection = urlConnBuilder(null, baseUri);\n String base = readToString(baseConnection);\n if (\"\".equals(base)) {\n getLogger().warn(\"Provided URI \" + baseUri + \" has an empty response... skipping\");\n continue;\n }\n Map<String, Pool> pools = this.configurationParser.parseBase(base);\n\n // check for the default pool name\n if (!pools.containsKey(DEFAULT_POOL_NAME)) {\n getLogger().warn(\"Provided URI \" + baseUri + \" has no default pool... skipping\");\n continue;\n }\n // load pools\n for (Pool pool : pools.values()) {\n URLConnection poolConnection = urlConnBuilder(baseUri, pool.getUri());\n String poolString = readToString(poolConnection);\n configurationParser.loadPool(pool, poolString);\n URLConnection poolBucketsConnection = urlConnBuilder(baseUri, pool.getBucketsUri());\n String sBuckets = readToString(poolBucketsConnection);\n Map<String, Bucket> bucketsForPool = configurationParser.parseBuckets(sBuckets);\n pool.replaceBuckets(bucketsForPool);\n\n }\n // did we find our bucket?\n boolean bucketFound = false;\n for (Pool pool : pools.values()) {\n if (pool.hasBucket(bucketToFind)) {\n bucketFound = true;\n\t\t\tbreak;\n }\n }\n if (bucketFound) {\n for (Pool pool : pools.values()) {\n for (Map.Entry<String, Bucket> bucketEntry : pool.getROBuckets().entrySet()) {\n this.buckets.put(bucketEntry.getKey(), bucketEntry.getValue());\n }\n }\n this.loadedBaseUri = baseUri;\n return;\n }\n } catch (ParseException e) {\n\t\tgetLogger().warn(\"Provided URI \" + baseUri + \" has an unparsable response...skipping\", e);\n\t\tcontinue;\n } catch (IOException e) {\n\t\tgetLogger().warn(\"Connection problems with URI \" + baseUri + \" ...skipping\", e);\n\t\tcontinue;\n }\n\t throw new ConfigurationException(\"Configuration for bucket \" + bucketToFind + \" was not found.\");\n }\n }",
"private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }",
"OMMPool getPool();",
"ManagePool(List DefaultList,List AllocList)\r\n\t{\r\n\t\tthis.DefaultList = DefaultList;\r\n\t\tthis.AllocList = AllocList;\r\n\t}",
"private void initPool() throws SQLException {\n\t\tint POOL_SIZE = 90;\n\t\tthis.connectionPool = new LinkedBlockingQueue<>(POOL_SIZE);\n\t\tfor(int i = 0; i < POOL_SIZE; i++) {\n\t\t\tConnection con = DriverManager.getConnection(dburl, user, password);\n\t\t\tconnectionPool.offer(con);\n\t\t}\n\t}",
"public void loadHotels();",
"private void loadData() {\n this.financeDataList = new ArrayList<>();\n }",
"private static void buildList() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (connection == null || connection.isClosed()) \r\n\t\t\t\tconnection = DataSourceManager.getConnection();\r\n\t\t\t\r\n\t\t\tstatement = connection.prepareStatement(LOAD_ALL);\r\n\t \tresultset = statement.executeQuery();\r\n\t \t\r\n\t \tgroups = getCollectionFromResultSet(resultset);\r\n\t \tresultset.close();\r\n\t statement.close();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException | SQLException e) {\r\n\t\t\tlog.fatal(e.toString());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}",
"private void loadParkingLots() {\n ParkingLot metrotown = new ParkingLot(\"Metrotown\", 4);\n ParkingLot pacificcenter = new ParkingLot(\"PacificCenter\", 5);\n\n for (int i = 0; i < 3; i++) {\n metrotown.addParkingSpot(new ParkingSpot(\"M\" + i, \"medium\", 5));\n pacificcenter.addParkingSpot(new ParkingSpot(\"PC\" + i, \"large\", 4));\n }\n\n parkinglots.add(metrotown);\n parkinglots.add(pacificcenter);\n }",
"private void initList() {\n\n }",
"void loadComics(final int limit);",
"public void loadAllLists(){\n }",
"public void initialize() {\n if (factory == null || poolName == null)\n throw new IllegalStateException(\"Factory and Name must be set before pool initialization!\");\n if (initialized)\n throw new IllegalStateException(\"Cannot initialize more than once!\");\n initialized = true;\n permits = new FIFOSemaphore(maxSize);\n factory.poolStarted(this);\n lastGC = System.currentTimeMillis();\n //fill pool to min size\n fillToMin();\n /*\n int max = maxSize <= 0 ? minSize : Math.min(minSize, maxSize);\n Collection cs = new LinkedList();\n for(int i=0; i<max; i++)\n {\n cs.add(getObject(null));\n }\n while (Iterator i = cs.iterator(); i.hasNext();)\n {\n releaseObject(i.next());\n } // end of while ()\n */\n collector.addPool(this);\n }",
"protected abstract void initCache(List<RECIPE> recipes);",
"public static LinkedList<Genome> loadGenePool()\n {\n LinkedList<Genome> genomes = new LinkedList<>();\n File folder = new File(GenoFile.GENE_POOL_LOCATION);\n\n File[] files = folder.listFiles();\n\n if (files != null)\n {\n for (int i = 0; i < files.length; i++)\n {\n if (files[i].isFile() && files[i].getName().endsWith(\".geno\"))\n {\n Genome genome = GenoFile.readGenomeFromPool(files[i].getName());\n if (genome != null)\n {\n genomes.add(genome);\n }\n }\n }\n }\n return genomes;\n }",
"public static void rebuildPool() throws SQLException {\n // Close pool connections when plugin disables\n if (poolMgr != null) {\n poolMgr.dispose();\n }\n poolMgr = new GameModeInventoriesPoolManager(dataSource, 10);\n }",
"private void pullBikes() {\n try {\n if (!connected) {\n this.reconnectSupplier();\n }\n\n synchronized (this.writeLock) {\n if (!this.dataVersion.equals(supplier.getDataVersion())) {\n DataPatch<ArrayList<Bike>> dataPatch = supplier.getNewBikes(dataVersion);\n for (Bike bike : dataPatch.getData()) {\n cache.put(bike.getItemNumber(), bike);\n }\n dataVersion = dataPatch.getDataVersion();\n }\n }\n } catch (RemoteException e) {\n System.out.println(\"Cannot load new bikes from supplier, keep using cached data\");\n e.printStackTrace();\n connected = false; // connection lost so remove reference to supplier, reacquire later\n }\n }",
"private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }",
"protected abstract void createPool();",
"private void loadData() {\n RetrofitHelper.getInstance().getNearbyItems(new Observer<MainItemListBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(MainItemListBean mainItemListBean) {\n if (refreshLayout.getState() == RefreshState.Refreshing) {\n dataBeans.clear();\n }\n dataBeans.addAll(mainItemListBean.getData());\n if (dataBeans.isEmpty()) {\n emptyView.setVisibility(View.VISIBLE);\n } else {\n emptyView.setVisibility(View.GONE);\n }\n adapter.setData(dataBeans);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n endLoading();\n }\n\n @Override\n public void onComplete() {\n endLoading();\n }\n }, longitude, latitude, maxDistance, page, category);\n }",
"private static void load(List<Opinion> opinionList) {\n System.out.println(\"Loading...\");\n clearDB();\n opinionDAO.openConnection();\n if (opinionDAO.dbDropped) {\n opinionDAO.createTables();\n }\n opinionList.forEach(opinion -> opinionDAO.insertOpinion(opinion));\n System.out.println(opinionList.size() + \" opinions loaded to database.\");\n opinionDAO.closeConnection();\n }",
"protected void preDisply(List allData) {\n }",
"private void readConstantPool() throws IOException, ClassFormatException {\n constant_pool = new ConstantPool(dataInputStream);\n }",
"public OpenHashSet(float upperLoadFactor, float lowerLoadFactor) {\n super(upperLoadFactor, lowerLoadFactor);\n openHashSetArray = new OpenHashSetList[INITIAL_CAPACITY];\n\n for (int i=0 ; i<this.capacity() ; i++)\n openHashSetArray[i]=new OpenHashSetList();\n }",
"public void loadList(String name){\n }",
"@MemoryAnnotations.Initialisation\n public void pumpListInitialisation() {\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.onOffPumps.add(false);\n }\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.middlePoints.add(null);\n }\n }",
"private ArrayList<ArrayList<String>> initArrArrList(ArrayList<String> packetNames) throws FileNotFoundException, IOException {\n ArrayList<ArrayList<String>> arrList=new ArrayList();\n LoadAndSave las=new LoadAndSave();\n for(int x=0;x<packetNames.size();x++) {\n las.load(packetNames.get(x));\n arrList.add(las.loader1);\n arrList.add(las.loader2);\n }\n return arrList;\n \n }",
"public void loadInfo(){\n list=control.getPrgList();\n refreshpsTextField(list.size());\n populatepsListView();\n }",
"protected abstract void loadItemsInternal();",
"public void createOnlyLBPolicy(){\n\t\t\n\t\tIterator<CacheObject> ican = cacheList.iterator();\n\t\t\n\t\tint objcounter = 0;\n\t\t\n\t\twhile(ican.hasNext() && objcounter < (OBJ_FOR_REQ)){\n\t\t\t\n\t\t\tobjcounter ++;\n\t\t\tCacheObject tempCacheObject = ican.next();\n\t\t\tIterator<ASServer> itm = manager.getASServers().values().iterator();\n\t\t\twhile(itm.hasNext()){\n\t\t\t\t\n\t\t\t\tASServer as = itm.next();\n\t\t\t\tif(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey) == null){\n\t\t\t\t\t//System.out.println(\"Mapping Map is NULL\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tArrayList<String> urllist = new ArrayList<String>(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey));\n\t\t\t\tIterator<String> iurl = urllist.iterator();\n\t\t\t\twhile(iurl.hasNext()){\n\t\t\t\t\tString url = iurl.next();\n\t\t\t\t\tif(!urlList.contains(url)){\n\t\t\t\t\t\turlList.add(url);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint urlcounter = 0;\n\t\tint urllistsize = urlList.size();\n\t\tCollection<String> it1 = serverList.keySet();\n\t\tArrayList<String> server = new ArrayList<String>(it1);\n\t\t\n\t\twhile(urlcounter < urllistsize){\n\t\t\t\n\t\t\tString serId = server.get( (urlcounter) % NO_SERVERS );\n\t\t\tthis.currentLBPolicy.mapUrlToServers(urlList.get(urlcounter++), Analyser.resolveHost(serId));\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------------LBPolicy start---------------\");\n//\t\tSystem.out.println(currentLBPolicy);\n//\t\t\n\t\tSystem.out.println(\"Number of entries in LBPolicy are: \" + currentLBPolicy.policyMap.size() );\n//\t\n\t\tSystem.out.println(\"------------LBPolicy end-----------------\");\n\t\t/*\n\t\tif(mLogger.isInfoEnabled()){\n\t\t\tmLogger.log(Priority.INFO, \"LBPolicy being printed\");\n\t\tmLogger.log(Priority.INFO, \":\" + this.currentLBPolicy);\n\t\t\n\t}\n\t\t*/\n\t}",
"void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}",
"private Map<String, List<String>> getAdvancedSamplePool(List<String> candidatePool, String malpediaPath) {\n\t\tMap<String, List<String>> samplePool = new HashMap<>();\n\t\tfor(String s: candidatePool) {\n\t\t\tString tmp = s.substring(malpediaPath.length() + 1);\n\t\t\tString family = tmp.substring(0, tmp.indexOf(\"/\")).replace('.', '_');\n\t\t\tString filename = tmp.substring(tmp.lastIndexOf(\"/\") + 1);\n\t\t\tif(!samplePool.containsKey(family)) {\n\t\t\t\tsamplePool.put(family, new ArrayList<>());\n\t\t\t\tsamplePool.get(family).add(family + \"/\" + filename);\n\t\t\t} else {\n\t\t\t\tList<String> tmpVector = samplePool.get(family);\n\t\t\t\ttmpVector.add(family + \"/\" + filename);\n\t\t\t\tsamplePool.put(family, tmpVector);\n\t\t\t}\n\t\t}\n\t\treturn samplePool;\n\t}",
"@Override\n\tpublic List<Item> loadItems(int start, int count) {\n\t\treturn null;\n\t}",
"private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }",
"private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationFile);\n\t\t//accountList = (ArrayList<BankAccount>) readObject(accountFile);\n\t\t\n\t\t//read from database to assign array lists\n\t\temployeeList = (ArrayList<Employee>)employeeDao.readAll();\n\t\tcustomerList = (ArrayList<Customer>)customerDao.readAll();\n\t\taccountList = (ArrayList<BankAccount>) accountDao.readAll();\n\t\tapplicationList = (ArrayList<Application>)applicationDao.readAll();\n\t\t\n\t\tassignBankAccounts();\n\t}",
"private void prepareArrayLits(){\t\n\t\tprogressDialog_1 = ProgressDialog.show(SlyThemesActivity.this, \"\",Constants.PROCESSING_REQUEST);\n\n\t\tadapter = new ListViewNewRestaurantAdapter(this, itemList);\n\t\tlistview.setAdapter(adapter);\n\t\tprogressDialog_1.dismiss();\n\t}",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"public void updateVillagePools(){\r\n\t\tCollections.shuffle(this.marketPool);\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.setMarketPool(this.marketPool);\r\n\t\t}\r\n\t}",
"public List<CaptureTask> loadTaskToTaskPool(int poolSize) {\n\t\treturn null;\r\n\t}",
"private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }",
"private static Computer[] loadComputers(ArrayList<String> OSList, int infect) {\n Computer[] computers = new Computer[OSList.size()];\n\n for (int i = 0; i < OSList.size(); i++) {\n computers[i] = new Computer(OSList.get(i), random);\n }\n computers[infect - 1].infect();\n\n return computers;\n }",
"public static void cheat() {\n\t\tlocations = new ArrayList<Location>();\n \tLocation temp = new Location();\n \ttemp.setLongitude(20.0);\n \ttemp.setLatitude(30.0);\n \tlocations.add(temp);\n \tLocation temp0 = new Location();\n \ttemp0.setLongitude(21.0);\n \ttemp0.setLatitude(30.0);\n \tlocations.add(temp0);\n \tLocation temp1 = new Location();\n \ttemp1.setLongitude(15.0);\n \ttemp1.setLatitude(40.0);\n \tlocations.add(temp1);\n \tLocation temp2 = new Location();\n \ttemp2.setLongitude(20.0);\n \ttemp2.setLatitude(30.1);\n \tlocations.add(temp2);\n \tLocation temp3 = new Location();\n \ttemp3.setLongitude(22.0);\n \ttemp3.setLatitude(33.1);\n \tlocations.add(temp3);\n \tLocation temp4 = new Location();\n \ttemp4.setLongitude(22.1);\n \ttemp4.setLatitude(33.0);\n \tlocations.add(temp4);\n \tLocation temp5 = new Location();\n \ttemp5.setLongitude(22.1);\n \ttemp5.setLatitude(33.2);\n \tlocations.add(temp5);\n\t\tList<PictureObject> pictures = new ArrayList<PictureObject>();\n\t\tint nbrOfLocations = locations.size();\n\t\tfor (int index = 0; index < nbrOfLocations; index++) {\n\t\t\tPicture pic = new Picture();\n\t\t\tpic.setLocation(locations.get(index));\n\t\t\tpictures.add(pic);\n\t\t}\n\t\tFiles.getInstance().setPictureList(pictures);\n\t}",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"private void loadCachedLabTestCollection()\n {\n cachedFacilityList = new HashMap<Object,Object>();\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n cachedLabTest= (ArrayList<Object> ) convertToSRTLabTestDT(dao.getAllOrderedTests());\n\n //load cachedFacilityList\n Iterator<Object> iter = cachedLabTest.iterator();\n while(iter.hasNext()){\n SRTLabTestDT srtLabTestDT = (SRTLabTestDT)iter.next();\n if(srtLabTestDT.getLaboratoryId()!= null ){\n this.addToCachedFacilityList(srtLabTestDT.getLaboratoryId(),srtLabTestDT);\n }// end if labId !=null\n }//end while\n\n }",
"@Override\n\tpublic synchronized StorageOperationResponse<GetStoragePoolsResponse> getStoragePools(\n\t\t\tGetStoragePoolsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: request:\" + request, null);\n\t\tGetStoragePoolsResponse payload = new GetStoragePoolsResponse();\n\t\tArrayList<StoragePool> storagePools = new ArrayList<StoragePool>();\n\t\tList<String> zones = null;\n\t\t BlockLimits blockLimits=openstackClient.getBlockStorageLimits();\n\t\t long totalSpaceGB=blockLimits.getAbsolute().getMaxTotalVolumeGigabytes();\n\t\t long usedSpaceGB=blockLimits.getAbsolute().getTotalGigabytesUsed();\n\t\t \n\t\tif (request.storageSystemId != null) {\n\t\t\tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\ttry {\n\t\t\t\tzones = openstackClient.listAvailabilityZones(region);\n\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t\t}\n\t\t\n\t\t\tfor (String zone:zones) {\n\t\t\t\tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId, totalSpaceGB, usedSpaceGB));\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t if (request.storagePoolIds == null || request.storagePoolIds.isEmpty()) {\n\t\t\t return StorageAdapterImplHelper.createFailedResponse(\"Bad request: both storageSystemId and storagePoolIds are null\", GetStoragePoolsResponse.class); \n\t\t }\n\t\t try {\n \n\t\t\t String zone = null;\n\t\t\t String region = null;\t\t \n\t\t\t for (String poolId:request.storagePoolIds) {\n\t\t\t\tif (poolId == null || poolId.indexOf(':') == -1) {\n\t\t\t\t\tstoragePools.add(null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tzone = openstackClient.getOpenstackId(poolId);\n\t\t\t\tregion = openstackClient.getRegion(poolId);\n\t\t\t\t if (zone.equals(OpenstackConstants.Openstack_POOL_SNAPSHOTS)) {\n\t\t\t\t\t storagePools.add(OpenstackAdapterUtil.createStoragePool(OpenstackConstants.Openstack_POOL_SNAPSHOTS, region, accountId,totalSpaceGB, usedSpaceGB));\n\t\t\t\t } else {\n\t\t\t\t zones = openstackClient.listAvailabilityZones(region);\n\t\t\t\t if (zones.contains(zone)) {\n\t\t\t\t \tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId,totalSpaceGB, usedSpaceGB));\t\n\t\t\t\t\t} else {\n\t\t\t\t storagePools.add(null);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t }\n\t\t \n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: pools found: \" + storagePools.size() + \" pools: \" + storagePools , null);\n\t\tpayload.storagePools = storagePools;\n\t\tStorageOperationResponse<GetStoragePoolsResponse> response = new StorageOperationResponse<GetStoragePoolsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\t}",
"public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }",
"private void loadCarListings() {\r\n try {\r\n cars = Reader.readCars(new File(CARLISTINGS_FILE));\r\n } catch (IOException e) {\r\n cars = new Cars();\r\n }\r\n }",
"private ArrayList<Object> loadCache() {\n if (cachedLabTest == null)\n {\n cachedLabTest = getOrderedTestCollection();\n return cachedLabTest;\n }\n else\n {\n return cachedLabTest;\n }\n }",
"public void initArrayList()\n {\n\tSQLiteDatabase db = getWritableDatabase();\n\tCursor cursor = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n\tif (cursor.moveToFirst())\n\t{\n\t do\n\t {\n\t\tJacocDBLocation newLocation = new JacocDBLocation();\n\t\tnewLocation.setLocationName(cursor.getString(1));\n\t\tnewLocation.setRealLocation(new LocationBorder(new LatLng(cursor.getDouble(2), cursor.getDouble(3)), new LatLng(cursor.getDouble(4), cursor.getDouble(5))));\n\t\tnewLocation.setMapLocation(new LocationBorder(new LatLng(cursor.getInt(6), cursor.getInt(7)), new LatLng(cursor.getInt(8), cursor.getInt(9))));\n\t\tnewLocation.setHighSpectrumRange(cursor.getDouble(10));\n\t\tnewLocation.setLowSpectrumRange(cursor.getDouble(11));\n\n\t\t// adding the new Location to the collection\n\t\tlocationList.add(newLocation);\n\t }\n\t while (cursor.moveToNext()); // move to the next row in the DB\n\n\t}\n\tcursor.close();\n\tdb.close();\n }",
"void loadResults(ArrayList<Comic> results, int totalItems);",
"private synchronized void init(){\n _2_zum_vorbereiten.addAll(spielzeilenRepo.find_B_ZurVorbereitung());\n _3_vorbereitet.addAll(spielzeilenRepo.find_C_Vorbereitet());\n _4_spielend.addAll(spielzeilenRepo.find_D_Spielend());\n }",
"public void initImages(ArrayList<Produit> l) {\r\n\r\n if (l.size() > 0) {\r\n loadImage1(l.get(0).getImg_url());\r\n \r\n }\r\n\r\n if (l.size() > 1) {\r\n loadImage2(l.get(1).getImg_url());\r\n }\r\n\r\n if (l.size() > 2) {\r\n loadImage3(l.get(2).getImg_url());\r\n \r\n }\r\n\r\n if (l.size() > 3) {\r\n loadImage4(l.get(3).getImg_url());\r\n \r\n }\r\n\r\n if (l.size() > 4) {\r\n loadImage5(l.get(4).getImg_url());\r\n \r\n }\r\n\r\n if (l.size() > 5) {\r\n loadImage6(l.get(5).getImg_url());\r\n \r\n }\r\n\r\n }",
"public void init() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tfor(BusinessCategoryList categoryList : BusinessCategoryList.values()) {\n\t\t\tString[] names = categoryList.getValues().split(\",\");\n\t\t\tfor(String name : names) {\n\t\t\t\tget(name);\n\t\t\t}\n\t\t}\n\t\t\n\t\tlog.debug(\"Dirty hack completed in {} ms.\", System.currentTimeMillis() - startTime);\n\t}",
"private void loadCombos() throws Exception {\r\n\t\titemsBranchOffices = new ArrayList<SelectItem>();\r\n\t\titemsFarms = new ArrayList<SelectItem>();\r\n\t\tList<Farm> farmsCurrent = farmDao.farmsList();\r\n\t\tif (farmsCurrent != null) {\r\n\t\t\tfor (Farm farm : farmsCurrent) {\r\n\t\t\t\titemsFarms\r\n\t\t\t\t\t\t.add(new SelectItem(farm.getIdFarm(), farm.getName()));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@PostConstruct\n public void initPool() {\n SpringHelper.setApplicationContext(applicationContext);\n if (!initialized) {\n try {\n final File configDirectory = ConfigDirectory.setupTestEnvironement(\"OGCRestTest\");\n final File dataDirectory2 = new File(configDirectory, \"dataCsw2\");\n dataDirectory2.mkdir();\n\n try {\n serviceBusiness.delete(\"csw\", \"default\");\n serviceBusiness.delete(\"csw\", \"intern\");\n } catch (ConfigurationException ex) {}\n\n final Automatic config2 = new Automatic(\"filesystem\", dataDirectory2.getPath());\n config2.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"default\", config2, null);\n\n writeProvider(\"meta1.xml\", \"42292_5p_19900609195600\");\n\n Automatic configuration = new Automatic(\"internal\", (String)null);\n configuration.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"intern\", configuration, null);\n\n initServer(null, null, \"api\");\n pool = GenericDatabaseMarshallerPool.getInstance();\n initialized = true;\n } catch (Exception ex) {\n Logger.getLogger(OGCRestTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void loadList() {\n // Run the query.\n nodes = mDbNodeHelper.getNodeListData();\n }",
"public void beginLoad(int libraryCount);",
"@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}",
"@Override\n\tpublic final List<Thing42orNull<K, D>> getPoolAsList() {\n\t\treturn this.pool;\n\t}",
"private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}",
"public void addPool(ArrayList al) {\n\tsynchronized (al) {\n\t for (int i = 0; i < al.size(); i++) {\n\t\taddProcessor((TaskProcessorHandle)al.get(i));\n\t }\n\t}\n }",
"private void loadList(List<Integer> expectedList) {\n expectedList.clear();\n for (int i = 0; i < Constants.WINDOW_SIZE; i++)\n expectedList.add(i);\n }",
"private void initializeLists() {\n\t\tif (tiles == null) {\n\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t} else {\n\t\t\t// Be sure to clean up old tiles\n\t\t\tfor (int i = 0; i < tiles.size(); i++) {\n\t\t\t\ttiles.get(i).freeBitmap();\n\t\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t\t}\n\t\t}\n\t\ttileViews = new ArrayList<TileView>(gridSize * gridSize);\n\t\ttableRow = new ArrayList<TableRow>(gridSize);\n\n\t\tfor (int row = 0; row < gridSize; row++) {\n\t\t\ttableRow.add(new TableRow(context));\n\t\t}\n\n\t}",
"private synchronized void getpickuplist() {\n\n if (Utility.isConnectingToInternet(getActivity())) {\n if (mGpsTracker.canGetLocation()) {\n if (Utility.ischeckvalidLocation(mGpsTracker)) {\n try {\n disableEmptyView();\n setUpDummyPickUpAdapter();\n Map<String, String> param = new HashMap<>();\n if (!AppConstants.isGestLogin(getActivity())) {\n param.put(\"iduser\", SharedPref.getInstance().getStringVlue(getActivity(), userId));\n param.put(\"latitude\", \"\" + mGpsTracker.getLatitude());\n param.put(\"longitude\", \"\" + mGpsTracker.getLongitude());\n } else {\n param.put(\"iduser\", \"0\");\n param.put(\"latitude\", \"\" + mGpsTracker.getLatitude());\n param.put(\"longitude\", \"\" + mGpsTracker.getLongitude());\n if (AppConstants.getGender(getActivity()) != null && AppConstants.getGender(getActivity()) != \"\") {\n param.put(\"gender_pref\", AppConstants.getGender(getActivity()));\n } else {\n param.put(\"gender_pref\", \"Both\");\n }\n\n if (AppConstants.getRadius(getActivity()) != null && AppConstants.getRadius(getActivity()) != \"\") {\n param.put(\"radius_limit\", AppConstants.getRadius(getActivity()));\n } else {\n param.put(\"radius_limit\", \"100\");\n }\n }\n\n\n // param.put(\"iduser\", \"\" + SharedPref.getInstance().getIntVlue(getActivity(), USER_TYPE));\n if (!isRefresh) {\n progressWheel.setVisibility(View.VISIBLE);\n progressWheel.startAnimation();\n }\n btn_buddyup.setEnabled(false);\n btn_pickup.setEnabled(false);\n if (!AppConstants.isGestLogin(getActivity())) {\n RequestHandler.getInstance().stringRequestVolley(getActivity(), AppConstants.getBaseUrl(SharedPref.getInstance().getBooleanValue(getActivity(), isStaging)) + pickuplist, param, this, 1);\n } else {\n RequestHandler.getInstance().stringRequestVolley(getActivity(), AppConstants.getBaseUrl(SharedPref.getInstance().getBooleanValue(getActivity(), isStaging)) + \"pickuplist_guest\", param, this, 1);\n\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"Error on PickUp List\", \"\" + e.toString());\n }\n } else {\n mGpsTracker.showInvalidLocationAlert();\n }\n } else {\n showSettingsAlert(PICKUPUPREQUESTCODE);\n }\n } else {\n showNoInternetEmptyView();\n Utility.showInternetError(getActivity());\n }\n }",
"private void loadData(List<String> pathList)\n {\n Log.e(TAG, \"loadData() called pathList=\" + pathList.toString());\n for (int i = 0; i < pathList.size(); i++)\n {\n String path = pathList.get(i);\n ArrayList<String> thisPathDataList = new ArrayList<String>();\n mDataMap.put(path, loadDataImp(path, thisPathDataList));\n }\n\n }",
"protected long[] loadIndex() throws IOException {\n checkBase();\n log.debug(String.format(\"Loading indexes for pool '%s' at location '%s'\", poolName, location));\n if (!location.exists()) {\n throw new IOException(String.format(\"The folder '%s' for pool '%s' does not exist\", location, poolName));\n }\n\n FileInputStream indexIn = new FileInputStream(new File(location, poolName + INDEX_POSTFIX));\n BufferedInputStream indexBuf = new BufferedInputStream(indexIn);\n ObjectInputStream index = new ObjectInputStream(indexBuf);\n int version = index.readInt();\n if (version != VERSION) {\n throw new IOException(String.format(\n \"The version for the pool '%s' at location '%s' was %d. This loader only supports version %d\", \n poolName, location, version, VERSION));\n }\n int size = index.readInt();\n log.debug(String.format(\"Starting load of %d index data (longs)\", size));\n long[] indexData = new long[size];\n long feedback = Math.max(size / 100, 1);\n Profiler profiler = new Profiler();\n profiler.setExpectedTotal(size);\n for (int i = 0; i < size; i++) {\n if (i % feedback == 0) {\n if (log.isTraceEnabled()) {\n log.trace(\"Loaded \" + i + \"/\" + size + \" index values. ETA: \" + profiler.getETAAsString(true));\n }\n }\n indexData[i] = index.readLong();\n }\n log.trace(\"loadIndex: Closing streams\");\n index.close();\n indexBuf.close();\n indexIn.close();\n log.debug(String.format(\"Finished loading of %d index data from pool '%s' at location '%s' in %s\", \n size, poolName, location, profiler.getSpendTime()));\n return indexData;\n }",
"public void populateGlobalHotspots() {\n\t\tnew Thread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tairlineData = DataLookup.airlineStats();\n\t\t\t\tairportData = DataLookup.airportStats();\n\t\t\t\tmHandler.post(new Runnable(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsetHotspotListData();\n\t\t\t\t\t}});\n\t\t\t}}).start();\n\t}",
"private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }",
"private void loadPortals(List<String> list) {\n\t\tList<String> currentPortals = m_PortalList.getItems();\r\n\t\tfor(String portal : list){\r\n\t\t\tif(!currentPortals.contains(portal)){\r\n\t\t\t\t//Load the corresponding datasets from the database into the categorizer and into the tableview\r\n\t\t\t\ttry {\r\n\t\t\t\t\tm_Categorizer.loadPortal(portal);\r\n\t\t\t\t\tm_data.addAll(m_Categorizer.Datasets());\r\n\t\t\t\t} catch (StorageException e) {\r\n\t\t\t\t\tAlert error = new Alert(AlertType.ERROR, \"Cannot connect to database!\");\r\n\t\t\t\t\terror.showAndWait();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t//Add the portal to the listview\r\n\t\t\t\tcurrentPortals.add(portal);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Reset label for number of datasets\r\n\t\tm_numDatasetsLabel.setText(m_Categorizer.Datasets().size() + \" Datasets loaded.\");\r\n\t\t//Refresh statistics window\r\n\t\tm_StatisticsWindow.refresh();\r\n\t\t//update filter choicebox\r\n\t\tupdateFilterChoiceBox();\r\n\t}",
"@Override\n protected void loadData() {\n setUpLoadingViewVisibility(true);\n callImageList = RetrofitGenerator.createService(ApiService.class)\n .getAllPubImage();\n callImageList.enqueue(callbackImageList);\n }",
"private void refreshList() {\n if (loadStepsTask != null) {\n loadStepsTask.cancel(false);\n }\n loadStepsTask = new LoadStepsTask(this, dbManager);\n loadStepsTask.execute();\n }",
"protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}",
"private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }",
"public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }",
"public Pool() {\n\t\t// inicializaDataSource();\n\t}",
"void init() throws ConnectionPoolException {\r\n\t\tfreeConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\tbusyConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tfor(int i = 0; i < poolsize; i++){\r\n\t\t\t\tConnection connection = DriverManager.getConnection(url, user, password);\r\n\t\t\t\tfreeConnection.add(connection);\r\n\t\t\t}\r\n\t\t\tflag = true;\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_DB_DRIVER + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_DB_DRIVER);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_SQL + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_SQL);\r\n\t\t}\r\n\t}",
"public void loadPlaces(Map<String, String> queryMap){\n showProgressBar();\n\n call = foursquareApiService.getPlaces(queryMap);\n call.enqueue(new Callback<SearchResult>() {\n @Override\n public void onResponse(Call<SearchResult> call, Response<SearchResult> response) {\n hideProgressBar();\n\n ResponseList rl = response.body().getResponseList();\n placeArrayList = (ArrayList<Place>) rl.getPlaceList();\n placesListAdapter = new PlacesListAdapter(MainActivity.this,R.layout.activity_main_places_list_item,placeArrayList, MainActivity.this);\n recyclerViewPlacesList.setLayoutManager(new LinearLayoutManager(MainActivity.this));\n recyclerViewPlacesList.setAdapter(placesListAdapter);\n placesListAdapter.notifyDataSetChanged();\n\n Log.d(\"Array Size\", String.valueOf( placeArrayList.size()));\n Log.d(\"Success\",String.valueOf(response.code()));\n }\n\n @Override\n public void onFailure(Call<SearchResult> call, Throwable t) {\n Log.d(\"Fail\", \"Fail\");\n }\n });\n }",
"public void setLoadItems(String borrowedFileName) \n\t{\n\t\trecordCount = RESET_VALUE;\n\n\t\ttry \n\t\t{\n\t\t\tScanner infile = new Scanner(new FileInputStream(borrowedFileName));\n\n\t\t\twhile(infile.hasNext() == true && recordCount < MAX_ITEMS) \n\t\t\t{\n\t\t\t\titemIDs[recordCount] = infile.nextInt();\n\t\t\t\titemNames[recordCount] = infile.next(); \n\t\t\t\titemPrices[recordCount] = infile.nextDouble(); \n\t\t\t\tinStockCounts[recordCount] = infile.nextInt();\n\t\t\t\trecordCount++;\n\t\t\t}\n\n\t\t\tinfile.close();\n\n\t\t\t//sort parallel arrays by itemID\n\t\t\tsetBubbleSort();\n\n\t\t}//END try\n\n\t\tcatch(IOException ex) \n\t\t{\n\t\t\trecordCount = NOT_FOUND;\n\t\t}\n\t}",
"@Override\n\tpublic void loadBonusCannons() {\n\t\t\n\t}",
"private void loadCrimes(LatLng Loc){\n //create a new instance of parser class. Parser class queries Data.octo.dc.gov for crime data\n mParser = new Parser();\n\n //try and parse data\n try {\n mParser.parse(getResources().getAssets().open(DATA, 0));\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //get the data from the parser and stores in TreeSet\n mCrimesList= mParser.nearestCrimes(Loc.latitude, Loc.longitude, mRadius);\n\n //Loop through and plot crimes\n List<Address> address;\n int i = 1;\n\n //iterate through crimes and querey google to get latitude and longitude of particular addresses\n for(Crime c: mCrimesList){\n try {\n address = mGeocoder.getFromLocationName(c.address ,1,\n mBounds[0], mBounds[1],mBounds[2], mBounds[3]);\n if(address == null || address.size() == 0){\n Log.i(TAG, \"***Crime:\" + c.offense + \" @ \" + c.address + \" NOT PLOTTED\");\n /*Crimes with addresses that can't be found are added to bad crimes list\n to be removed */\n mBadCrimesList.add(c);\n Log.i(TAG, mBadCrimesList.toString());\n if(i<=MAX_CRIMES) {\n continue;\n }else{\n removeBadCrimes();\n return;\n }\n }\n LatLng coor = new LatLng(address.get(0).getLatitude(), address.get(0).getLongitude());\n\n //Create pin\n Marker crime_marker = mMap.addMarker(new MarkerOptions()\n .position(coor));\n\n //this put geofence around crime points. Team decided to comment out to remove clutter\n /*Circle crime_circle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(coor.latitude, coor.longitude))\n .radius(CIRCLE_SIZE)\n .strokeColor(Color.RED)\n .fillColor(RED_COLOR));\n c.circle = crime_circle;*/\n\n\n //crime object gets reference to its own pin\n c.marker = crime_marker;\n if(c.marker == null){\n Log.i(TAG, \"null marker\");\n }\n if(c.circle == null){\n Log.i(TAG, \"null circle\");\n }\n c.Lat = coor.latitude;\n c.Long = coor.longitude;\n\n //start out crime by being invisible\n c.setVisable(false);\n Log.i(TAG, \"Crime:\" + c.offense + \" @ \" + c.address + \" PLOTTED\");\n }catch(IOException e){\n //catch any issue that google throws\n Log.i(TAG, \"I/O EXCEPTION while plotting crime\");\n mBadCrimesList.add(c);\n continue;\n }\n i++;\n if(i > MAX_CRIMES ){\n removeBadCrimes();\n return;\n }\n }\n\n }",
"public ArrayList<poolLocation> getCouponList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> temp_CouponList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(coupon1ID)\n\t\t\t\t\t|| location.getTitle().equals(coupon2ID) || location\n\t\t\t\t\t.getTitle().equals(coupon3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == true)\t\t\t\t\t\t// only show coupons which are bought from the mall\n\t\t\t\ttemp_CouponList.add(location);\n\t\t}\n\n\t\treturn temp_CouponList;\n\t\t// return POOL_LIST;\n\t}",
"private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }",
"private void initializeStorageProxies()\n {\n Vector deviceList = new Vector();\n nGetDevices(deviceList);\n int handle = 0;\n int status = 0;\n int deviceCount = deviceList.size();\n if (log.isDebugEnabled())\n {\n log.debug(\" Device List Count :\" + deviceCount);\n }\n for (int deviceListCount = 0; deviceListCount < deviceCount; deviceListCount++)\n {\n handle = ((Integer) deviceList.elementAt(deviceListCount)).intValue();\n status = nGetStatus(handle);\n StorageProxy storageProxy = createStorageProxy(handle, status);\n storageProxyHolder.put(new Integer(handle), storageProxy);\n }\n }",
"private void loadJokeList() {\n long lastJokeTimeStamp = TodayJokeRecorder.getInstance(getContext()).getTimeStamp();\n //load local jokes\n if (!TimeUtil.isAfterDays(System.currentTimeMillis(), lastJokeTimeStamp)) {\n List<JuheJokeBean.ResultBean> resultBeanList = TodayJokeRecorder.getInstance(getContext())\n .getResultBeanList();\n jokeBeanList.clear();\n jokeBeanList.addAll(resultBeanList);\n jokeAdapter.notifyDataSetChanged();\n } else {\n JuHeGenerator.getJuHeJoke(getContext(), new Callback<JuheJokeBean>() {\n @Override\n public void onResponse(Call<JuheJokeBean> call, Response<JuheJokeBean> response) {\n Timber.e(response.body().toString());\n if (!response.isSuccessful() || response.body() == null\n || response.body().getError_code() != 0) {\n ToastUtil.showCommonWrong(getContext());\n return;\n }\n jokeBeanList.clear();\n jokeBeanList.addAll(response.body().getResult());\n jokeAdapter.notifyDataSetChanged();\n //save jokes to local\n TodayJokeRecorder.getInstance(getContext()).setTimeStamp(System.currentTimeMillis());\n TodayJokeRecorder.getInstance(getContext()).setJokeResultBeanList(jokeBeanList);\n }\n\n @Override\n public void onFailure(Call<JuheJokeBean> call, Throwable t) {\n Timber.e(\"error: %s\", t.getMessage());\n ToastUtil.showCommonWrong(getContext());\n }\n });\n }\n }",
"private void loadLoreEntries() {\n entryIDMap = new ConcurrentHashMap<>();\n entryIDThreads = new ThreadGroup(\"entryIDThreads\");\n\n for (int i = 0; i < bookSelectionData.size(); i++) {\n\n final String entryName = bookSelectionData.get(i).getBookName();\n final long entryID = bookSelectionData.get(i).getBookID();\n\n new Thread(entryIDThreads, new Runnable() {\n @Override\n public void run() {\n try {\n ArrayList<Long> arraylist = new ArrayList<>();\n arraylist.add(entryID);\n DataAccessObject_LoreBookSelectionDefinition node = database.getDao().getPresentationNodeById(arraylist).get(0);\n JsonObject json = node.getJson();\n JsonArray entryNodes = json.getAsJsonObject(\"children\").getAsJsonArray(\"records\");\n\n long[] ID = new long[entryNodes.size()];\n for (int j = 0; j < entryNodes.size(); j++) {\n JsonObject entry = (JsonObject) entryNodes.get(j);\n long hash = Long.parseLong(entry.get(\"recordHash\").getAsString());\n ID[j] = convertHash(hash);\n }\n entryIDMap.put(entryName, ID);\n } catch (Exception ignored) {\n }\n }\n }).start();\n }\n }",
"public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\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//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }",
"public void addNewPool(poolLocation pool) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getPoolLocationData(PooltableName,\n\t\t\t\tpool.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}",
"private void prepareTheList()\n {\n int count = 0;\n for (String imageName : imageNames)\n {\n RecyclerUtils pu = new RecyclerUtils(imageName, imageDescription[count] ,images[count]);\n recyclerUtilsList.add(pu);\n count++;\n }\n }",
"private void init() {\n CoachData coachData = UserBuffer.getCoachSession();\n list = PlanFunction.searchPlanByCoachID(coachData.getID());\n this.update();\n }",
"private synchronized int[] getLookupCache(String name) {\n if (this.lookupCacheURLs != null && (lookupCacheEnabled ^ 1) == 0) {\n int[] cache = getLookupCacheForClassLoader(this.lookupCacheLoader, name);\n if (cache != null && cache.length > 0) {\n int maxindex = cache[cache.length - 1];\n if (!ensureLoaderOpened(maxindex)) {\n if (DEBUG_LOOKUP_CACHE) {\n System.out.println(\"Expanded loaders FAILED \" + this.loaders.size() + \" for maxindex=\" + maxindex);\n }\n }\n }\n }\n }"
] | [
"0.67758185",
"0.6421077",
"0.62841666",
"0.6103787",
"0.5980011",
"0.5958889",
"0.5902488",
"0.5767983",
"0.57356584",
"0.57113194",
"0.56755716",
"0.5653752",
"0.55823416",
"0.5557195",
"0.55547684",
"0.5553654",
"0.550503",
"0.54611945",
"0.5457868",
"0.54515016",
"0.5449294",
"0.54421085",
"0.54365426",
"0.5418629",
"0.54168016",
"0.53954345",
"0.5393483",
"0.53925925",
"0.53856796",
"0.5372982",
"0.5364972",
"0.53416026",
"0.53351194",
"0.53349936",
"0.53201634",
"0.5319845",
"0.530843",
"0.5302744",
"0.5291951",
"0.529027",
"0.52900714",
"0.5280502",
"0.52774054",
"0.52599055",
"0.5245406",
"0.5242371",
"0.5232412",
"0.5220977",
"0.52064794",
"0.5202118",
"0.52020013",
"0.51916414",
"0.51816255",
"0.5181453",
"0.517672",
"0.51645476",
"0.5163945",
"0.5154305",
"0.5149433",
"0.5149224",
"0.514505",
"0.51395553",
"0.5135451",
"0.51233554",
"0.5118226",
"0.51157445",
"0.50987583",
"0.50966275",
"0.5070927",
"0.5067801",
"0.50639737",
"0.50618917",
"0.5057726",
"0.50568765",
"0.50555307",
"0.505205",
"0.5048897",
"0.50482816",
"0.5045055",
"0.5044622",
"0.5044416",
"0.50407684",
"0.50301546",
"0.50282353",
"0.50268465",
"0.5024983",
"0.50192016",
"0.5017121",
"0.50101626",
"0.50079274",
"0.50051993",
"0.5002318",
"0.500029",
"0.49894917",
"0.49809983",
"0.4977276",
"0.4973415",
"0.49659547",
"0.4959552",
"0.49488634"
] | 0.7254692 | 0 |
load game locations to GAME_LIST array list. create new arrayList every time it is called to make sure list is uptodate limit call due to memory cost | private void LoadingDatabaseGameLocation() {
Cursor cursor = helper.getDataAll(GamelocationTableName);
// id_counter = cursor.getCount();
GAME_LIST.clear();
while (cursor.moveToNext()) {
// loading each element from database
String ID = cursor.getString(ID_GAME_LCOATION_COLUMN);
String Description = cursor
.getString(DESCRIPTION_GAME_LCOATION_COLUMN);
String isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);
GAME_LIST.add(new gameLocation(ID, Description,
isUsed(isGameVisited)));
Log.d(TAG, "game ID : "+ ID);
} // travel to database result
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveInitialGameLocation() {\n\n\t\tGAME_LIST = new ArrayList<gameLocation>();\n\n\t\tfor (int i = 0; i < NumGameLocation; i++) {\n\t\t\taddNewGame(getGameLocation(i));\n\t\t}\n\t}",
"public ArrayList<gameLocation> getGameList() {\n\t\tLoadingDatabaseGameLocation();\n\t\treturn GAME_LIST;\n\t}",
"private void loadGameFiles(){\n\t}",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"private void loadOldGame() {\n String[] moveList = readFile().split(\"\");\n Long seed = getSeedFromLoad(moveList);\n String[] moves = getMoves(moveList).split(\"\");\n\n ter.initialize(WIDTH, HEIGHT, 0, -3);\n GameWorld world = new GameWorld(seed);\n for (int x = 0; x < WIDTH; x += 1) {\n for (int y = 0; y < HEIGHT; y += 1) {\n world.world[x][y] = Tileset.NOTHING;\n }\n }\n world.buildManyRandomSq();\n GameWorld.Position pos = randomAvatarPosition(world);\n world.world[pos.x][pos.y] = Tileset.AVATAR;\n for (String s: moves) {\n if (validMove(world, s.charAt(0))) {\n move(s.charAt(0), world);\n }\n }\n String senit = \"\";\n for (int i = 0; i < moveList.length; i++) {\n senit += moveList[i];\n }\n ter.renderFrame(world.world);\n playGame(world, senit);\n }",
"public void gameInitialize() {\n this.world = new BufferedImage(GameConstants.GAME_SCREEN_WIDTH,\n GameConstants.GAME_SCREEN_HEIGHT,\n BufferedImage.TYPE_3BYTE_BGR);\n\n gameObjs = new ArrayList<>();\n try {\n background = (BufferedImage)Resource.getHashMap().get(\"wallpaper\");\n /*\n * note class loaders read files from the out folder (build folder in Netbeans) and not the\n * current working directory.\n */\n InputStreamReader isr = new InputStreamReader(Objects.requireNonNull(RainbowReef.class.getClassLoader().getResourceAsStream(\"map/map1\")));\n BufferedReader mapReader = new BufferedReader(isr);\n\n String row = mapReader.readLine();\n if (row == null) {\n throw new IOException(\"nothing here\");\n }\n String[] mapInfo = row.split(\"\\t\");\n int numCols = Integer.parseInt(mapInfo[0]);\n int numRows = Integer.parseInt(mapInfo[1]);\n for (int curRow = 0; curRow < numRows; curRow++){\n row = mapReader.readLine();\n mapInfo = row.split(\"\\t\");\n for(int curCol = 0; curCol< numCols; curCol++){\n switch (mapInfo[curCol]) {\n case \"2\" -> {\n UnbreakableWall sowall = new UnbreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"SolidBlock\"));\n gameObjs.add(sowall);\n }\n case \"3\" -> {\n BreakableWall pwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"PinkBlock\"));\n gameObjs.add(pwall);\n }\n case \"4\" -> {\n BreakableWall ywall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"YellowBlock\"));\n gameObjs.add(ywall);\n }\n case \"5\" -> {\n BreakableWall rwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"RedBlock\"));\n gameObjs.add(rwall);\n }\n case \"6\" -> {\n BreakableWall gwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"GreenBlock\"));\n gameObjs.add(gwall);\n }\n case \"7\" -> {\n Health health = new Health(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"HealthBlock\"));\n gameObjs.add(health);\n }\n case \"8\" -> {\n BulletBlock bigbullet = new BulletBlock(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"BulletBlock\"));\n gameObjs.add(bigbullet);\n }\n case \"9\" -> {\n Goblin bl = new Goblin(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"Goblin\"));\n gameObjs.add(bl);\n }\n }\n }\n }\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n }\n\n Katch t1 = new Katch(290, 440, 0, 0, 0, (BufferedImage) Resource.getHashMap().get(\"Katch\"));\n KatchControl tc1 = new KatchControl(t1, KeyEvent.VK_D, KeyEvent.VK_A, KeyEvent.VK_SPACE);\n this.setBackground(Color.BLACK);\n this.lf.getJf().addKeyListener(tc1);\n this.gameObjs.add(t1);\n\n }",
"private void loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }",
"public void loadGame() {\n game.loadGame();\n }",
"protected void newPlayerList() {\n int len = getPlayerCount();\n mPlayerStartList = new PlayerStart[ len ];\n for(int i = 0; i < len; i++) {\n mPlayerStartList[i] = new PlayerStart( 0.f, 0.f );\n }\n }",
"public synchronized List<Game> getGameList() {\n return games;\n }",
"private void loadPlayersIntoQueueOfTurns() {\n if(roundNumber == 1) eventListener.addEventObject(new RoundEvent(EventNamesConstants.GameStarted));\n if(gameDescriptor.getPlayersList() != null) {\n playersTurns.addAll(gameDescriptor.getPlayersList());\n }\n else\n System.out.println(\"NULL\");\n }",
"public void run()\r\n\t{\r\n\t\tArrayList<ArrayList<PointOnBoard>> ArrayOfArrays = new ArrayList<>();//ArrayList of ArrayLists /player movement lasts till those lists aren't empty\r\n\t\tboolean[][] visitedArray = new boolean[sizeY][sizeX];\r\n\t\tfor(int i=0;i<sizeY;i++)\r\n\t\t\tfor(int j=0;j<sizeX;j++) visitedArray[i][j] = false;\r\n\t\tvisitedArray[playerPositionY][playerPositionX] = true; // array of visited field / made so player doesn't have to access the same field twice\r\n\t\t\r\n\t\t\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tArrayOfArrays.add(new ArrayList<PointOnBoard>());\r\n\t\t\tfor(int i=-1;i<2;i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j=-1;j<2;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tint y = playerPositionY+i;\r\n\t\t\t\t\tint x = playerPositionX+j;\r\n\t\t\t\t\tArrayList<PointOnBoard> tempArray =ArrayOfArrays.get(ArrayOfArrays.size()-1);\r\n\t\t\t\t\tif(playerPositionY+i>=0&&playerPositionX+j>=0&&playerPositionY+i<sizeY&&playerPositionX+j<sizeX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tField tempField = fieldArray[playerPositionY+i][playerPositionX+j];\r\n\t\t\t\t\t\tint state=1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\toStream.writeInt(x);\r\n\t\t\t\t\t\t\toStream.writeInt(y);\r\n\t\t\t\t\t\t\tstate = iStream.readInt();\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttempField.setState(state);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tPointOnBoard tempPoint = new PointOnBoard(x,y,tempField.getState(),tempField);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(visitedArray[y][x]==false&&tempField.getState()==1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttempArray.add(tempPoint);\r\n\t\t\t\t\t\t\tvisitedArray[y][x]=true;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Its working we are looking for fields\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tArrayList<PointOnBoard> tempArray =ArrayOfArrays.get(ArrayOfArrays.size()-1);\r\n\t\t\tif(tempArray.isEmpty())\r\n\t\t\t{\r\n\t\t\t\tArrayOfArrays.remove(ArrayOfArrays.size()-1);\r\n\t\t\t\ttempArray =ArrayOfArrays.get(ArrayOfArrays.size()-1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(tempArray.size()!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tPointOnBoard tempPoint = tempArray.get(0);\r\n\t\t\t\t\tboard.makePlayer(tempPoint.getX(), tempPoint.getY());\r\n\t\t\t\t\tplayerPositionX = tempPoint.getX();\r\n\t\t\t\t\tplayerPositionY = tempPoint.getY();\r\n\t\t\t\t\ttempArray.remove(0);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tif(tempArray.isEmpty())\r\n\t\t\t\t{\r\n\t\t\t\t\tArrayOfArrays.remove(ArrayOfArrays.size()-1);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\tif(ArrayOfArrays.isEmpty())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"My Work is Done!!!!!!!!!!!!!!!!!\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t}",
"private ArrayList<ArrayList<String>> initArrArrList(ArrayList<String> packetNames) throws FileNotFoundException, IOException {\n ArrayList<ArrayList<String>> arrList=new ArrayList();\n LoadAndSave las=new LoadAndSave();\n for(int x=0;x<packetNames.size();x++) {\n las.load(packetNames.get(x));\n arrList.add(las.loader1);\n arrList.add(las.loader2);\n }\n return arrList;\n \n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void init()\n\t{\n\t\tscore = 0;\n\t\tlives = 3;\n\t\tgameTime = 0;\n\n\t\t\t/*initialize an array of array lists\n\t\t\tfor storing game objects currently in world\t\t\t\n\t\t\tAsteroids: index 0\n\t\t\tPlayer ship: index 1\n\t\t\tNon player ship: index 2\n\t\t\tenemy missile: index 3\n\t\t\tfriendly missile: index 4\n\t\t\tSpace station: index 5\n\t\t\t*/\t\t\n\t\t\tgameObj = new ArrayList[6];\n\t\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t\t{\n\t\t\t\tgameObj[i] = new ArrayList<GameObject>();\n\t\t\t}\n\t}",
"private void loadGame() {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tArrayList<String> data = new ArrayList<String>();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showOpenDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\r\n\t\tif (file != null) {\r\n\t\t\tmyFileReader fileReader = new myFileReader(file);\r\n\t\t\ttry {\r\n\t\t\t\tdata = fileReader.getFileContents();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// TODO: allow writing of whose turn it is!\r\n\t\t\tParser parse = new Parser();\r\n\t\t\tint tempBoard[][] = parse.parseGameBoard(data);\r\n\t\t\tgameBoard = new GameBoardModel(tempBoard, parse.isBlackTurn(), parse.getBlackScore(), parse.getRedScore());\r\n\t\t}\r\n\t}",
"private void loadLists() {\n }",
"private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }",
"@Override\n public void loadGame() {\n\n }",
"private void load() {\n //Stopping all animations\n gameController.animGrid.cancelAnimations();\n\n for (int xx = 0; xx < gameController.grid.field.length; xx++) {\n for (int yy = 0; yy < gameController.grid.field[0].length; yy++) {\n int value = (int) SharedPreferenceUtil.get(this, xx + \"_\" + yy, -1);\n if (value > 0) {\n gameController.grid.field[xx][yy] = new Tile(xx, yy, value);\n } else if (value == 0) {\n gameController.grid.field[xx][yy] = null;\n }\n\n int undoValue = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, -1);\n if (undoValue > 0) {\n gameController.grid.undoField[xx][yy] = new Tile(xx, yy, undoValue);\n } else if (value == 0) {\n gameController.grid.undoField[xx][yy] = null;\n }\n }\n }\n\n gameController.currentScore = (int) SharedPreferenceUtil.get(this, SpConstant.SCORE, gameController.currentScore);\n gameController.historyHighScore = (int) SharedPreferenceUtil.get(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n gameController.lastScore = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n gameController.canUndo = (boolean) SharedPreferenceUtil.get(this, SpConstant.CAN_UNDO, gameController.canUndo);\n gameController.gameState = (int) SharedPreferenceUtil.get(this, SpConstant.GAME_STATE, gameController.gameState);\n gameController.lastGameState = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n gameController.isAudioEnabled = (boolean) SharedPreferenceUtil.get(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n\n }",
"static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }",
"public void setHotelList(File[] myList, int myNumber, File[] myFolders, int myFolderNumber, ArrayList<Entrance> hotelEntrances){\r\n\t\t\t\tsubfolders = myFolders;\r\n\t\t\t\tfolderNumber = myFolderNumber;\r\n\t\t\t\thotelNumber = myNumber;\r\n\t\t\t\thotelList = null;\r\n\t\t\t\thotelList = new File[hotelNumber];\r\n\t\t\t\thotelList = myList;\r\n\t\t\t\thotels.clear();\r\n\t\t\t\tArrayList<Entrance> thisHotelEntrances = new ArrayList<Entrance>();\r\n\t\t\t\tgameHotelItems.clear();\r\n\t\t\t\tgameHotels.removeAll();\r\n\t\t\t\tfor(int i=0; i<hotelNumber; i++){\r\n\t\t\t\t\tString str = hotelList[i].getName(); \r\n\t List<String> niceList = Arrays.asList(str.split(\"\\\\.\"));\r\n\t for(int j=0; j<hotelEntrances.size(); j++){\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getLeftNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getRightNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getUpNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t \tif(((MovementSquare)help_square[hotelEntrances.get(j).getI()][hotelEntrances.get(j).getJ()]).getDownNeighbour().equals(niceList.get(0))){\r\n\t \t\tthisHotelEntrances.add(hotelEntrances.get(j));\r\n\t \t\tcontinue;\r\n\t \t}\r\n\t }\r\n\t int maxBuildingLevel = findMaxLevel(i);\r\n\t\t\t\t\tHotel newHotel = new Hotel(help_square, niceList.get(0), thisHotelEntrances, maxBuildingLevel);\r\n\t\t\t\t\thotels.add(newHotel);\r\n\t\t\t\t\tsetHotelsPopUp(i);\r\n\t\t\t\t\tthisHotelEntrances.clear();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void fileReadGameHistory(String filename)\n {\n \t//ArrayList<GameObject> gameObject = new ArrayList<>();\n\t\tFileReader file = null;\n\t\ttry {\n\t\t\tfile = new FileReader(filename);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(filename);\n\t\tBufferedReader br = new BufferedReader(file);\n\t\tString s = \"\";\n\t\ttry\n\t\t{\n\t\t\twhile((s = br.readLine()) != null )\n\t\t\t{\n\t\t\t\tString[] prop1 = s.split(\"#\");\n\t\t\t\tSystem.out.println(prop1[0] + \" fgdfsgfds \" + prop1[1]);\n\t\t\t\tString indexOfList = prop1[0];\n\t\t\t\tString[] prop2 = prop1[1].split(\",\");\n\t\t\t\tString[] prop3;\n\t\t\t\tString[] prop4 = indexOfList.split(\";\");\n\t\t\t\t//gameObject.add(new GameObject(indexOfList));\n\t\t\t\tcount = count +1;\n\t\t\t\texistCount = existCount + 1;\n\t\t\t\tif (indexOfList.charAt(0) == 's')//when this line is data of a swimming game\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(prop4[0]);\n\t\t\t\t\tgames.add(new Swimming(prop4[1],\"Swimming\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'c')//when this line is data of a cycling game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Cycling(prop4[1],\"Cycling\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'r')//when this line is data of a running game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Running(prop4[1],\"Running\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void getGameList() {\n try {\n write(\"get gamelist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:getGameList\");\n }\n }",
"@Override\n\tpublic List<Game> getGameList() {\n\t\treturn null;\n\t}",
"private void loadLocations()\n {\n locationsPopUpMenu.getMenu().clear();\n\n ArrayList<String> locations = new ArrayList<>(locationDBManager.findSavedLocations());\n for (int i=0; i < locations.size(); i++)\n {\n locationsPopUpMenu.getMenu().add(locations.get(i));\n }\n }",
"public List<Game> getGameList() {\n return gameList;\n }",
"private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }",
"public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }",
"public void loadGame(String p_FileName) {\n GameEngine l_GE = d_GameSaveLoad.runLoadGame(p_FileName);\n if (Objects.nonNull(l_GE)) {\n this.d_LoadedMap = l_GE.getD_LoadedMap();\n this.d_CurrentPlayer = l_GE.getD_CurrentPlayer();\n this.d_PlayerList = l_GE.getD_PlayerList();\n this.d_Console = l_GE.getD_Console();\n this.d_MapEditor = l_GE.getD_MapEditor();\n this.d_AdminCommandsBuffer = l_GE.getD_AdminCommandsBuffer();\n this.d_OrderBuffer = l_GE.getD_OrderBuffer();\n this.d_OrderStrBuffer = l_GE.getD_OrderStrBuffer();\n this.d_LogEntryBuffer = l_GE.getD_LogEntryBuffer();\n this.d_CurrentPhase = l_GE.getD_CurrentPhase();\n this.d_PreMapLoadPhase = l_GE.getD_PreMapLoadPhase();\n this.d_PostMapEditLoadPhase = l_GE.getD_PostMapEditLoadPhase();\n this.d_StartupPhase = l_GE.getD_StartupPhase();\n this.d_IssueOrdersPhase = l_GE.getD_IssueOrdersPhase();\n this.d_ExecuteOrdersPhase = l_GE.getD_ExecuteOrdersPhase();\n this.d_GameOverPhase = l_GE.getD_GameOverPhase();\n this.d_GameSaveLoad = l_GE.getD_GameSaveLoad();\n }\n }",
"private void addSpawnsToList()\n\t{\n\t\tSPAWNS.put(1, new ESSpawn(1, GraciaSeeds.DESTRUCTION, new Location(-245790,220320,-12104), new int[]{TEMPORARY_TELEPORTER}));\n\t\tSPAWNS.put(2, new ESSpawn(2, GraciaSeeds.DESTRUCTION, new Location(-249770,207300,-11952), new int[]{TEMPORARY_TELEPORTER}));\n\t\t//Energy Seeds\n\t\tSPAWNS.put(3, new ESSpawn(3, GraciaSeeds.DESTRUCTION, new Location(-248360,219272,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(4, new ESSpawn(4, GraciaSeeds.DESTRUCTION, new Location(-249448,219256,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(5, new ESSpawn(5, GraciaSeeds.DESTRUCTION, new Location(-249432,220872,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(6, new ESSpawn(6, GraciaSeeds.DESTRUCTION, new Location(-248360,220888,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(7, new ESSpawn(7, GraciaSeeds.DESTRUCTION, new Location(-250088,219256,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(8, new ESSpawn(8, GraciaSeeds.DESTRUCTION, new Location(-250600,219272,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(9, new ESSpawn(9, GraciaSeeds.DESTRUCTION, new Location(-250584,220904,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(10, new ESSpawn(10, GraciaSeeds.DESTRUCTION, new Location(-250072,220888,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(11, new ESSpawn(11, GraciaSeeds.DESTRUCTION, new Location(-253096,217704,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(12, new ESSpawn(12, GraciaSeeds.DESTRUCTION, new Location(-253112,217048,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(13, new ESSpawn(13, GraciaSeeds.DESTRUCTION, new Location(-251448,217032,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(14, new ESSpawn(14, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(15, new ESSpawn(15, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(16, new ESSpawn(16, GraciaSeeds.DESTRUCTION, new Location(-251416,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(17, new ESSpawn(17, GraciaSeeds.DESTRUCTION, new Location(-249752,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(18, new ESSpawn(18, GraciaSeeds.DESTRUCTION, new Location(-249736,217688,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(19, new ESSpawn(19, GraciaSeeds.DESTRUCTION, new Location(-252472,215208,-12120), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(20, new ESSpawn(20, GraciaSeeds.DESTRUCTION, new Location(-252552,216760,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(21, new ESSpawn(21, GraciaSeeds.DESTRUCTION, new Location(-253160,216744,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(22, new ESSpawn(22, GraciaSeeds.DESTRUCTION, new Location(-253128,215160,-12096), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(23, new ESSpawn(23, GraciaSeeds.DESTRUCTION, new Location(-250392,215208,-12120), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(24, new ESSpawn(24, GraciaSeeds.DESTRUCTION, new Location(-250264,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(25, new ESSpawn(25, GraciaSeeds.DESTRUCTION, new Location(-249720,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(26, new ESSpawn(26, GraciaSeeds.DESTRUCTION, new Location(-249752,215128,-12096), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(27, new ESSpawn(27, GraciaSeeds.DESTRUCTION, new Location(-250280,216760,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(28, new ESSpawn(28, GraciaSeeds.DESTRUCTION, new Location(-250344,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(29, new ESSpawn(29, GraciaSeeds.DESTRUCTION, new Location(-252504,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(30, new ESSpawn(30, GraciaSeeds.DESTRUCTION, new Location(-252520,216792,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(31, new ESSpawn(31, GraciaSeeds.DESTRUCTION, new Location(-242520,217272,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(32, new ESSpawn(32, GraciaSeeds.DESTRUCTION, new Location(-241432,217288,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(33, new ESSpawn(33, GraciaSeeds.DESTRUCTION, new Location(-241432,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(34, new ESSpawn(34, GraciaSeeds.DESTRUCTION, new Location(-242536,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(35, new ESSpawn(35, GraciaSeeds.DESTRUCTION, new Location(-240808,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(36, new ESSpawn(36, GraciaSeeds.DESTRUCTION, new Location(-240280,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(37, new ESSpawn(37, GraciaSeeds.DESTRUCTION, new Location(-240280,218952,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(38, new ESSpawn(38, GraciaSeeds.DESTRUCTION, new Location(-240792,218936,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(39, new ESSpawn(39, GraciaSeeds.DESTRUCTION, new Location(-239576,217240,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(40, new ESSpawn(40, GraciaSeeds.DESTRUCTION, new Location(-239560,216168,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(41, new ESSpawn(41, GraciaSeeds.DESTRUCTION, new Location(-237896,216152,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(42, new ESSpawn(42, GraciaSeeds.DESTRUCTION, new Location(-237912,217256,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(43, new ESSpawn(43, GraciaSeeds.DESTRUCTION, new Location(-237896,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(44, new ESSpawn(44, GraciaSeeds.DESTRUCTION, new Location(-239560,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(45, new ESSpawn(45, GraciaSeeds.DESTRUCTION, new Location(-239560,214984,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(46, new ESSpawn(46, GraciaSeeds.DESTRUCTION, new Location(-237896,215000,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(47, new ESSpawn(47, GraciaSeeds.DESTRUCTION, new Location(-237896,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(48, new ESSpawn(48, GraciaSeeds.DESTRUCTION, new Location(-239560,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(49, new ESSpawn(49, GraciaSeeds.DESTRUCTION, new Location(-239544,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(50, new ESSpawn(50, GraciaSeeds.DESTRUCTION, new Location(-237912,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(51, new ESSpawn(51, GraciaSeeds.DESTRUCTION, new Location(-237912,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(52, new ESSpawn(52, GraciaSeeds.DESTRUCTION, new Location(-237912,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(53, new ESSpawn(53, GraciaSeeds.DESTRUCTION, new Location(-239560,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(54, new ESSpawn(54, GraciaSeeds.DESTRUCTION, new Location(-239560,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(55, new ESSpawn(55, GraciaSeeds.DESTRUCTION, new Location(-241960,214536,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(56, new ESSpawn(56, GraciaSeeds.DESTRUCTION, new Location(-241976,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(57, new ESSpawn(57, GraciaSeeds.DESTRUCTION, new Location(-243624,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(58, new ESSpawn(58, GraciaSeeds.DESTRUCTION, new Location(-243624,214520,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(59, new ESSpawn(59, GraciaSeeds.DESTRUCTION, new Location(-241976,212808,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(60, new ESSpawn(60, GraciaSeeds.DESTRUCTION, new Location(-241960,212280,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(61, new ESSpawn(61, GraciaSeeds.DESTRUCTION, new Location(-243624,212264,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(62, new ESSpawn(62, GraciaSeeds.DESTRUCTION, new Location(-243624,212792,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(63, new ESSpawn(63, GraciaSeeds.DESTRUCTION, new Location(-243640,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(64, new ESSpawn(64, GraciaSeeds.DESTRUCTION, new Location(-243624,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(65, new ESSpawn(65, GraciaSeeds.DESTRUCTION, new Location(-241976,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(66, new ESSpawn(66, GraciaSeeds.DESTRUCTION, new Location(-241976,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(67, new ESSpawn(67, GraciaSeeds.DESTRUCTION, new Location(-241976,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(68, new ESSpawn(68, GraciaSeeds.DESTRUCTION, new Location(-241976,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(69, new ESSpawn(69, GraciaSeeds.DESTRUCTION, new Location(-243624,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(70, new ESSpawn(70, GraciaSeeds.DESTRUCTION, new Location(-243624,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(71, new ESSpawn(71, GraciaSeeds.DESTRUCTION, new Location(-241256,208664,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(72, new ESSpawn(72, GraciaSeeds.DESTRUCTION, new Location(-240168,208648,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(73, new ESSpawn(73, GraciaSeeds.DESTRUCTION, new Location(-240168,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(74, new ESSpawn(74, GraciaSeeds.DESTRUCTION, new Location(-241256,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(75, new ESSpawn(75, GraciaSeeds.DESTRUCTION, new Location(-239528,208648,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(76, new ESSpawn(76, GraciaSeeds.DESTRUCTION, new Location(-238984,208664,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(77, new ESSpawn(77, GraciaSeeds.DESTRUCTION, new Location(-239000,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(78, new ESSpawn(78, GraciaSeeds.DESTRUCTION, new Location(-239512,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(79, new ESSpawn(79, GraciaSeeds.DESTRUCTION, new Location(-245064,213144,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(80, new ESSpawn(80, GraciaSeeds.DESTRUCTION, new Location(-245064,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(81, new ESSpawn(81, GraciaSeeds.DESTRUCTION, new Location(-246696,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(82, new ESSpawn(82, GraciaSeeds.DESTRUCTION, new Location(-246696,213160,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(83, new ESSpawn(83, GraciaSeeds.DESTRUCTION, new Location(-245064,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(84, new ESSpawn(84, GraciaSeeds.DESTRUCTION, new Location(-245048,210904,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(85, new ESSpawn(85, GraciaSeeds.DESTRUCTION, new Location(-246712,210888,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(86, new ESSpawn(86, GraciaSeeds.DESTRUCTION, new Location(-246712,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(87, new ESSpawn(87, GraciaSeeds.DESTRUCTION, new Location(-245048,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(88, new ESSpawn(88, GraciaSeeds.DESTRUCTION, new Location(-245064,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(89, new ESSpawn(89, GraciaSeeds.DESTRUCTION, new Location(-246696,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(90, new ESSpawn(90, GraciaSeeds.DESTRUCTION, new Location(-246712,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(91, new ESSpawn(91, GraciaSeeds.DESTRUCTION, new Location(-245048,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(92, new ESSpawn(92, GraciaSeeds.DESTRUCTION, new Location(-245048,207288,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(93, new ESSpawn(93, GraciaSeeds.DESTRUCTION, new Location(-246696,207304,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(94, new ESSpawn(94, GraciaSeeds.DESTRUCTION, new Location(-246712,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(95, new ESSpawn(95, GraciaSeeds.DESTRUCTION, new Location(-244328,207272,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(96, new ESSpawn(96, GraciaSeeds.DESTRUCTION, new Location(-243256,207256,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(97, new ESSpawn(97, GraciaSeeds.DESTRUCTION, new Location(-243256,205624,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(98, new ESSpawn(98, GraciaSeeds.DESTRUCTION, new Location(-244328,205608,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(99, new ESSpawn(99, GraciaSeeds.DESTRUCTION, new Location(-242616,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(100, new ESSpawn(100, GraciaSeeds.DESTRUCTION, new Location(-242104,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(101, new ESSpawn(101, GraciaSeeds.DESTRUCTION, new Location(-242088,205624,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(102, new ESSpawn(102, GraciaSeeds.DESTRUCTION, new Location(-242600,205608,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\t// Seed of Annihilation\n\t\tSPAWNS.put(103, new ESSpawn(103, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184519,183007,-10456), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(104, new ESSpawn(104, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184873,181445,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(105, new ESSpawn(105, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180962,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(106, new ESSpawn(106, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185321,181641,-10448), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(107, new ESSpawn(107, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184035,182775,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(108, new ESSpawn(108, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185433,181935,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(109, new ESSpawn(109, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183309,183007,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(110, new ESSpawn(110, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181886,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(111, new ESSpawn(111, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180392,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(112, new ESSpawn(112, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183793,183239,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(113, new ESSpawn(113, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184245,180848,-10464), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(114, new ESSpawn(114, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-182704,183761,-10528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(115, new ESSpawn(115, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184705,181886,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(116, new ESSpawn(116, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184304,181076,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(117, new ESSpawn(117, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183596,180430,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(118, new ESSpawn(118, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184422,181038,-10480), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(119, new ESSpawn(119, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181543,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(120, new ESSpawn(120, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184398,182891,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(121, new ESSpawn(121, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182848,-10584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(122, new ESSpawn(122, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178104,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(123, new ESSpawn(123, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177274,182284,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(124, new ESSpawn(124, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177772,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(125, new ESSpawn(125, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181532,180364,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(126, new ESSpawn(126, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181802,180276,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(127, new ESSpawn(127, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,180444,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(128, new ESSpawn(128, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182190,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(129, new ESSpawn(129, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177357,181908,-10576), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(130, new ESSpawn(130, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178747,179534,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(131, new ESSpawn(131, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,179534,-10392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(132, new ESSpawn(132, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178853,180094,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(133, new ESSpawn(133, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181937,179660,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(134, new ESSpawn(134, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-180992,179572,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(135, new ESSpawn(135, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185552,179252,-10368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(136, new ESSpawn(136, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178913,-10400), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(137, new ESSpawn(137, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184768,178348,-10312), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(138, new ESSpawn(138, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178574,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(139, new ESSpawn(139, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185062,178913,-10384), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(140, new ESSpawn(140, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181397,179484,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(141, new ESSpawn(141, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181667,179044,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(142, new ESSpawn(142, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185258,177896,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(143, new ESSpawn(143, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183506,176570,-10280), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(144, new ESSpawn(144, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183719,176804,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(145, new ESSpawn(145, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183648,177116,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(146, new ESSpawn(146, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183932,176492,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(147, new ESSpawn(147, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183861,176570,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(148, new ESSpawn(148, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183790,175946,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(149, new ESSpawn(149, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178641,179604,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(150, new ESSpawn(150, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178959,179814,-10432), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(151, new ESSpawn(151, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176367,178456,-10376), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(152, new ESSpawn(152, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175845,177172,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(153, new ESSpawn(153, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175323,177600,-10248), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(154, new ESSpawn(154, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174975,177172,-10216), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(155, new ESSpawn(155, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176019,178242,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(156, new ESSpawn(156, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174801,178456,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(157, new ESSpawn(157, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185648,183384,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(158, new ESSpawn(158, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186740,180908,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(159, new ESSpawn(159, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185297,184658,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(160, new ESSpawn(160, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185697,181601,-15488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(161, new ESSpawn(161, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186684,182744,-15536), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(162, new ESSpawn(162, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184908,183384,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(163, new ESSpawn(163, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185572,-15784), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(164, new ESSpawn(164, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185796,182616,-15608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(165, new ESSpawn(165, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184970,184385,-15648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(166, new ESSpawn(166, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185995,180809,-15512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(167, new ESSpawn(167, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182872,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(168, new ESSpawn(168, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185624,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(169, new ESSpawn(169, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184486,185774,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(170, new ESSpawn(170, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186496,184112,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(171, new ESSpawn(171, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184232,185976,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(172, new ESSpawn(172, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185673,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(173, new ESSpawn(173, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185733,184203,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(174, new ESSpawn(174, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185079,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(175, new ESSpawn(175, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184803,180710,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(176, new ESSpawn(176, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186293,180413,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(177, new ESSpawn(177, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182936,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(178, new ESSpawn(178, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184356,180611,-15496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(179, new ESSpawn(179, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185375,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(180, new ESSpawn(180, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184867,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(181, new ESSpawn(181, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180553,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(182, new ESSpawn(182, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180422,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(183, new ESSpawn(183, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181863,181138,-15120), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(184, new ESSpawn(184, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181732,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(185, new ESSpawn(185, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180684,180397,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(186, new ESSpawn(186, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-182256,180682,-15112), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(187, new ESSpawn(187, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,179492,-15392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(188, new ESSpawn(188, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(189, new ESSpawn(189, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186028,178856,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(190, new ESSpawn(190, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185224,179068,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(191, new ESSpawn(191, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(192, new ESSpawn(192, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(193, new ESSpawn(193, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180619,178855,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(194, new ESSpawn(194, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180255,177892,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(195, new ESSpawn(195, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185804,176472,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(196, new ESSpawn(196, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184580,176370,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(197, new ESSpawn(197, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184308,176166,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(198, new ESSpawn(198, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-183764,177186,-15304), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(199, new ESSpawn(199, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180801,177571,-15144), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(200, new ESSpawn(200, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184716,176064,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(201, new ESSpawn(201, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184444,175452,-15296), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(202, new ESSpawn(202, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,177464,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(203, new ESSpawn(203, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,178213,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(204, new ESSpawn(204, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-179982,178320,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(205, new ESSpawn(205, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176925,177757,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(206, new ESSpawn(206, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176164,179282,-15720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(207, new ESSpawn(207, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,177613,-15800), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(208, new ESSpawn(208, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175418,178117,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(209, new ESSpawn(209, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176103,177829,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(210, new ESSpawn(210, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175966,177325,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(211, new ESSpawn(211, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174778,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(212, new ESSpawn(212, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,178261,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(213, new ESSpawn(213, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176038,179192,-15736), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(214, new ESSpawn(214, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175660,179462,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(215, new ESSpawn(215, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175912,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(216, new ESSpawn(216, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175156,180182,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(217, new ESSpawn(217, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182059,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(218, new ESSpawn(218, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175590,181478,-15640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(219, new ESSpawn(219, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174510,181561,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(220, new ESSpawn(220, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182391,-15688), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(221, new ESSpawn(221, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174105,182806,-15672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(222, new ESSpawn(222, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174645,182806,-15712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(223, new ESSpawn(223, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214962,182403,-10992), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(224, new ESSpawn(224, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-215019,182493,-11000), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(225, new ESSpawn(225, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211374,180793,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(226, new ESSpawn(226, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211198,180661,-11680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(227, new ESSpawn(227, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213097,178936,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(228, new ESSpawn(228, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213517,178936,-12712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(229, new ESSpawn(229, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214105,179191,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(230, new ESSpawn(230, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213769,179446,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(231, new ESSpawn(231, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214021,179344,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(232, new ESSpawn(232, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210582,180595,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(233, new ESSpawn(233, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210934,180661,-11696), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(234, new ESSpawn(234, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207058,178460,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(235, new ESSpawn(235, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207454,179151,-11368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(236, new ESSpawn(236, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207422,181365,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(237, new ESSpawn(237, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207358,180627,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(238, new ESSpawn(238, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207230,180996,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(239, new ESSpawn(239, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208515,184160,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(240, new ESSpawn(240, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207613,184000,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(241, new ESSpawn(241, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208597,183760,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(242, new ESSpawn(242, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206710,176142,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(243, new ESSpawn(243, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206361,178136,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(244, new ESSpawn(244, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206178,178630,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(245, new ESSpawn(245, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205738,178715,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(246, new ESSpawn(246, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206442,178205,-12648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(247, new ESSpawn(247, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206585,178874,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(248, new ESSpawn(248, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206073,179366,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(249, new ESSpawn(249, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206009,178628,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(250, new ESSpawn(250, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206155,181301,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(251, new ESSpawn(251, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206595,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(252, new ESSpawn(252, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(253, new ESSpawn(253, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181471,-12640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(254, new ESSpawn(254, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206974,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(255, new ESSpawn(255, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206304,175130,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(256, new ESSpawn(256, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206886,175802,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(257, new ESSpawn(257, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207238,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(258, new ESSpawn(258, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,174857,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(259, new ESSpawn(259, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,175039,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(260, new ESSpawn(260, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205976,174584,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(261, new ESSpawn(261, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207367,184320,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(262, new ESSpawn(262, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219002,180419,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(263, new ESSpawn(263, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,182790,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(264, new ESSpawn(264, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,183343,-12600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(265, new ESSpawn(265, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186247,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(266, new ESSpawn(266, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186083,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(267, new ESSpawn(267, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-217574,185796,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(268, new ESSpawn(268, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219178,181051,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(269, new ESSpawn(269, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220171,180313,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(270, new ESSpawn(270, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219293,183738,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(271, new ESSpawn(271, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219381,182553,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(272, new ESSpawn(272, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219600,183024,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(273, new ESSpawn(273, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219940,182680,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(274, new ESSpawn(274, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219260,183884,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(275, new ESSpawn(275, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219855,183540,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(276, new ESSpawn(276, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218946,186575,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(277, new ESSpawn(277, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219882,180103,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(278, new ESSpawn(278, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219266,179787,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(279, new ESSpawn(279, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178337,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(280, new ESSpawn(280, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,179875,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(281, new ESSpawn(281, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,180021,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(282, new ESSpawn(282, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219989,179437,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(283, new ESSpawn(283, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219078,178298,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(284, new ESSpawn(284, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218684,178954,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(285, new ESSpawn(285, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219089,178456,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(286, new ESSpawn(286, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220266,177623,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(287, new ESSpawn(287, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178025,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(288, new ESSpawn(288, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219142,177044,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(289, new ESSpawn(289, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219690,177895,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(290, new ESSpawn(290, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219754,177623,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(291, new ESSpawn(291, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218791,177830,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(292, new ESSpawn(292, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218904,176219,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(293, new ESSpawn(293, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218768,176384,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(294, new ESSpawn(294, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177626,-11320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(295, new ESSpawn(295, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177792,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(296, new ESSpawn(296, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219880,175901,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(297, new ESSpawn(297, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219210,176054,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(298, new ESSpawn(298, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219850,175991,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(299, new ESSpawn(299, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219079,175021,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(300, new ESSpawn(300, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218812,174229,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(301, new ESSpawn(301, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218723,174669,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\t//@formatter:on\n\t}",
"public static void cheat() {\n\t\tlocations = new ArrayList<Location>();\n \tLocation temp = new Location();\n \ttemp.setLongitude(20.0);\n \ttemp.setLatitude(30.0);\n \tlocations.add(temp);\n \tLocation temp0 = new Location();\n \ttemp0.setLongitude(21.0);\n \ttemp0.setLatitude(30.0);\n \tlocations.add(temp0);\n \tLocation temp1 = new Location();\n \ttemp1.setLongitude(15.0);\n \ttemp1.setLatitude(40.0);\n \tlocations.add(temp1);\n \tLocation temp2 = new Location();\n \ttemp2.setLongitude(20.0);\n \ttemp2.setLatitude(30.1);\n \tlocations.add(temp2);\n \tLocation temp3 = new Location();\n \ttemp3.setLongitude(22.0);\n \ttemp3.setLatitude(33.1);\n \tlocations.add(temp3);\n \tLocation temp4 = new Location();\n \ttemp4.setLongitude(22.1);\n \ttemp4.setLatitude(33.0);\n \tlocations.add(temp4);\n \tLocation temp5 = new Location();\n \ttemp5.setLongitude(22.1);\n \ttemp5.setLatitude(33.2);\n \tlocations.add(temp5);\n\t\tList<PictureObject> pictures = new ArrayList<PictureObject>();\n\t\tint nbrOfLocations = locations.size();\n\t\tfor (int index = 0; index < nbrOfLocations; index++) {\n\t\t\tPicture pic = new Picture();\n\t\t\tpic.setLocation(locations.get(index));\n\t\t\tpictures.add(pic);\n\t\t}\n\t\tFiles.getInstance().setPictureList(pictures);\n\t}",
"public static void LoadSpritesIntoArray() {\r\n\t\t// Get all nodes for the settings\r\n\t\t// Node main = document.getElementById(\"main\");\r\n\t\t// Node textures = document.getElementById(\"textures\");\r\n\t\t// NodeList nList = document.getElementsByTagName(\"TexturePath\");\r\n\r\n\t\t// for (Element texPath : texturePathElements) {\r\n\t\t// System.out.println(texPath.getAttribute(\"name\") + \" \" +\r\n\t\t// texPath.getAttribute(\"name\"));\r\n\t\t// sprites.add(new Sprite(texPath.getAttribute(\"name\"),\r\n\t\t// texPath.getAttribute(\"path\")));\r\n\t\t// }\r\n\r\n\t\tsprites = ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game\");\r\n\r\n\t\t/*\r\n\t\t * This method i got from a stack overflow question\r\n\t\t * https://stackoverflow.com/questions/22610526/how-to-append-elements-\r\n\t\t * at-the-end-of-arraylist-in-java\r\n\t\t */\r\n\t\tint endOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_HUD\"));\r\n\t\tendOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_Custom\"));\r\n\t\tSystem.out.println(endOfList);\r\n\r\n\t\tfor (Element el : texturePathElements) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsprites.add(new Sprite(el.getAttribute(\"name\"), el.getAttribute(\"path\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tisTexturesDone = true;\r\n\t}",
"private void placeRooms() {\n if (roomList.size() == 0) {\n throw new IllegalArgumentException(\"roomList must have rooms\");\n }\n // This is a nice cool square\n map = new int[MAP_SIZE][MAP_SIZE];\n\n for (Room room : roomList) {\n assignPosition(room);\n }\n }",
"public void loadStart()\n {\n score = 0;\n clear();\n HashMap<Location, State> start = gm.start();\n for (Location add : start.keySet())\n addToBoard(add, start.get(add));\n }",
"public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }",
"public static void load(){\n\t\tinbattle=true;\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tScanner s=new Scanner(f);\n\t\t\tturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tString curr=s.next();\n\t\t\tif(curr.equals(\"WildTrainer:\"))\n\t\t\t\topponent=WildTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"EliteTrainer:\"))\n\t\t\t\topponent=EliteTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"Trainer:\"))\n\t\t\t\topponent=Trainer.readInTrainer(s);\n\t\t\tSystem.out.println(\"Initializing previous battle against \"+opponent.getName());\n\t\t\tcurr=s.next();\n\t\t\tallunits=new ArrayList<Unit>();\n\t\t\tpunits=new ArrayList<Unit>();\n\t\t\tounits=new ArrayList<Unit>();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tpunits.add(Unit.readInUnit(null,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Player Units\n\t\t\tcurr=s.next();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tounits.add(Unit.readInUnit(opponent,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Opponent Units\n\t\t\tallunits.addAll(punits);\n\t\t\tallunits.addAll(ounits);\n\t\t\tpriorities=new ArrayList<Integer>();\n\t\t\tint[] temp=GameData.readIntArray(s.nextLine());\n\t\t\tfor(int i:temp){\n\t\t\t\tpriorities.add(i);\n\t\t\t}\n\t\t\txpgains=GameData.readIntArray(s.nextLine());\n\t\t\tspikesplaced=s.nextBoolean();\n\t\t\tnumpaydays=s.nextInt();\n\t\t\tactiveindex=s.nextInt();\n\t\t\tactiveunit=getUnitByID(s.nextInt());\n\t\t\tweather=Weather.valueOf(s.next());\n\t\t\tweatherturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tbfmaker=new LoadExistingBattlefieldMaker(s);\n\t\t\tinitBattlefield();\n\t\t\tplaceExistingUnits();\n\t\t\tMenuEngine.initialize(new UnitMenu(activeunit));\n\t\t}catch(Exception e){e.printStackTrace();System.out.println(e.getCause().toString());}\n\t}",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"private void createRandomGame() {\n ArrayList<int[]> usedCoordinates = new ArrayList<>();\n\n // make sure the board is empty\n emptyBoard();\n\n //find different coordinates\n while (usedCoordinates.size() < 25) {\n int[] temp = new int[]{randomNumberGenerator.generateInteger(size), randomNumberGenerator.generateInteger(size)};\n\n // default contains(arraylist) doesn't work because it compares hashcodes\n if (! contains(usedCoordinates, temp)) {\n usedCoordinates.add(temp);\n }\n }\n\n for (int[] usedCoordinate : usedCoordinates) {\n board.setSquare(usedCoordinate[0], usedCoordinate[1], randomNumberGenerator.generateInteger(size) + 1);\n }\n\n //save start locations\n startLocations = usedCoordinates;\n }",
"private void reload() {\n if (running == false) {\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.entrySet().forEach((pair) -> {\n IPlayer player = pair.getValue();\n try {\n player.setPoints(0);\n player.resetStrategy();\n addNewAgent(player, player.getStrategy());\n } catch (RemoteException ex) {\n Logger.getLogger(ServerFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n\n }\n\n }",
"public void loadGame() {\n\t\tmanager.resumeGame();\n\t}",
"private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }",
"public void initializePlayers(){\r\n allPlayers = new ArrayList<Player>();\r\n currentPlayerIndex = 0;\r\n Player redPlayer = new Player(1, new Location(2, 2), Color.RED);\r\n Player bluePlayer = new Player(2, new Location(4, 2), Color.BLUE);\r\n Player whitePlayer = new Player(3, new Location(2, 4), Color.WHITE);\r\n Player yellowPlayer = new Player(4, new Location(4, 4), Color.YELLOW);\r\n allPlayers.add(redPlayer);\r\n allPlayers.add(bluePlayer);\r\n allPlayers.add(whitePlayer);\r\n allPlayers.add(yellowPlayer);\r\n }",
"public void InitGame(){\n System.out.format(\"New game initiated ...\");\n Game game = new Game(client_List);\n SetGame(game);\n }",
"public ArrayList<GamePiece> getGamePiecesAtLocation(Location loc)\n\t{\n\t\tArrayList<GamePiece> pieceLocation = new ArrayList<GamePiece>();\n\t\tfor(String name: getPlayersAtLocation(loc))\n\t\t{\n\t\t\tpieceLocation.add(getPlayerGamePiece(name));\n\t\t}\n\t\treturn pieceLocation;\n\t}",
"public void initArrayList()\n {\n\tSQLiteDatabase db = getWritableDatabase();\n\tCursor cursor = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n\tif (cursor.moveToFirst())\n\t{\n\t do\n\t {\n\t\tJacocDBLocation newLocation = new JacocDBLocation();\n\t\tnewLocation.setLocationName(cursor.getString(1));\n\t\tnewLocation.setRealLocation(new LocationBorder(new LatLng(cursor.getDouble(2), cursor.getDouble(3)), new LatLng(cursor.getDouble(4), cursor.getDouble(5))));\n\t\tnewLocation.setMapLocation(new LocationBorder(new LatLng(cursor.getInt(6), cursor.getInt(7)), new LatLng(cursor.getInt(8), cursor.getInt(9))));\n\t\tnewLocation.setHighSpectrumRange(cursor.getDouble(10));\n\t\tnewLocation.setLowSpectrumRange(cursor.getDouble(11));\n\n\t\t// adding the new Location to the collection\n\t\tlocationList.add(newLocation);\n\t }\n\t while (cursor.moveToNext()); // move to the next row in the DB\n\n\t}\n\tcursor.close();\n\tdb.close();\n }",
"public void initGame() {\r\n Log.d(\"UT3\", \"init game\");\r\n mEntireBoard = new Tile(this);\r\n // Create all the tiles\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large] = new Tile(this);\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small] = new Tile(this);\r\n }\r\n mLargeTiles[large].setSubTiles(mSmallTiles[large]);\r\n }\r\n mEntireBoard.setSubTiles(mLargeTiles);\r\n\r\n // If the player moves first, set which spots are available\r\n mLastSmall = -1;\r\n mLastLarge = -1;\r\n setAvailableFromLastMove(mLastSmall);\r\n }",
"private void loadList(List<Integer> expectedList) {\n expectedList.clear();\n for (int i = 0; i < Constants.WINDOW_SIZE; i++)\n expectedList.add(i);\n }",
"public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }",
"private void loadPosBoats(GameData gameData){\n for(Boat b : gameData.getBoatArray()) {\n for(int[] pos : b.getPositions()){\n gameData.getMatrix()[pos[1]][pos[0]] = b.getBoatid();\n }\n }\n }",
"private ArrayList<JSONObject> loadCurrentTrackingObjects() {\n ArrayList<JSONObject> currentTrackingObjects = new ArrayList<JSONObject>();\n\n SharedPreferences prefs = context.getSharedPreferences(TRACKING_EVENTS_STORAGE, Context.MODE_PRIVATE);\n if (prefs.getAll().isEmpty()) {\n return null;\n }\n\n TreeMap<String, ?> keys = new TreeMap<String, Object>(prefs.getAll());\n for (Map.Entry<String, ?> entry : keys.entrySet()) {\n String data[] = ((String)entry.getValue()).split(\";\");\n currentTrackingObjects.add(buildTrackingItemObject(data[0], data[1], data[2], Long.parseLong(data[3])));\n }\n\n return currentTrackingObjects;\n }",
"private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }",
"public void startGameSession() {\n\t\tfor (GamePlayer player : listOfPlayers) {\n\t\t\tif (player != null) {\n\t\t\t\t// set to first lap\n\t\t\t\tplayer.currentLap = 1;\n\t\t\t}\n\t\t}\n\t}",
"protected static LinkedList<Location> generateLocations() {\n int i = 0;\n LinkedList<Location> list = new LinkedList<Location>();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ImagePacker gearImgs = new ImagePacker();\n\n try {\n gearImgs.readDirectory(new File(Objects.requireNonNull(classLoader.getResource(\"assets/gear-tiles\")).getPath()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (i = 0; i < GEARTILES; i++) {\n list.add(new Location(LocationType.GEAR).withImg(gearImgs.popImg()));\n }\n list.get((int)(Math.random()*list.size())).toggleStartingLoc();\n\n Image waterImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-tile.jpg\")).toString());\n for (i = 0; i < WATERTILES; i++) {\n list.add(new Location(LocationType.WELL).withImg(waterImg));\n }\n\n Image waterFakeImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-fake-tile.jpg\")).toString());\n for (i = 0; i < WATERFAKETILES; i++) {\n list.add(new Location(LocationType.MIRAGE).withImg(waterFakeImg));\n }\n\n //TODO: Finish images\n for (i = 0; i < LANDINGPADTILES; i++) {\n list.add(new Location(LocationType.LANDINGPAD).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/landing-pad.jpg\")).toString())));\n }\n for (i = 0; i < TUNNELTILES; i++) {\n list.add(new Location(LocationType.TUNNEL).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/tunnel.jpg\")).toString())));\n }\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-LR.jpg\")).toString())));\n\n return list;\n }",
"private void loadMap(String path) {\n\t\ttry {\n\t\t\tfor(Player p : players)\tp.clear();\n\t\t\tmap.players = players;\n\t\t\tmap.setPlayerNumber(playerNumber);\n\t\t\tfor(Player p : map.players) {\n\t\t\t\tp.setMap(map);\n\t\t\t\tp.setArmies(map.getInitialArmiesNumber());\n\t\t\t}\n\t\t\tmap.setPlayerNumber(map.players.size());\n\t\t\tmap.load(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void loadGame(File fileLocation, boolean replay);",
"private List<LatLng> getCoordinates() {\n\n List<LatLng> list = new ArrayList<>();\n SharedPreferences.Editor editor = walkingSharedPreferences.edit();\n int size = walkingSharedPreferences.getInt(user.getUsername(), 0);\n for(int actual = 0; actual < size; actual++) {\n String pos = walkingSharedPreferences.getString(user.getUsername() + \"_\" + actual, \"\");\n editor.remove(user.getUsername() + \"_\" + actual);\n String[] splitPos = pos.split(\" \");\n LatLng latLng = new LatLng(Double.parseDouble(splitPos[LAT]), Double.parseDouble(splitPos[LNG]));\n list.add(latLng);\n }\n editor.remove(user.getUsername());\n editor.apply();\n return list;\n\n }",
"public void load() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\t// use buffering\n\t\t\tFile gamesInFile = new File(\"games.txt\");\n\t\t\tif (!gamesInFile.exists())\n\t\t\t\tSystem.out.println(\"First run\");\n\t\t\telse {\n\t\t\t\tInputStream file = new FileInputStream(gamesInFile);\n\t\t\t\tInputStream buffered = new BufferedInputStream(file);\n\t\t\t\tObjectInput input = new ObjectInputStream(buffered);\n\t\t\t\ttry {\n\t\t\t\t\t// deserialize the List\n\t\t\t\t\tArrayList<MancalaGame> gamesFromFile = (ArrayList<MancalaGame>) input.readObject();\n\t\t\t\t\tgames = gamesFromFile;\n\t\t\t\t} finally {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tSystem.out.println(\"Load successful\");\n\t\t}\n\t}",
"public void findImages() {\n URL imgURL = ImageLoader.class.getResource(\"/BackgroundMenu.jpg\");\n this.backgroundImages.put(MenuP.TITLE, loadImage(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/backgroundGame.png\");\n this.backgroundImages.put(ArenaView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/gameOver.jpg\");\n this.backgroundImages.put(GameOverView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Player.png\");\n this.entityImages.put(ID.PLAYER, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Enemy1.png\");\n this.entityImages.put(ID.BASIC_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/boss.png\");\n this.entityImages.put(ID.BOSS_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/meteorBrown_big1.png\");\n this.entityImages.put(ID.METEOR, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/BlueBullet.png\");\n this.bulletImages.put(new Pair<>(ID.PLAYER_BULLET, ID.PLAYER), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/redBullet.png\");\n this.entityImages.put(ID.ENEMY_BULLET, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_FireBoost.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Freeze.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL)); \n \n imgURL = ImageLoader.class.getResource(\"/powerup_Health.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.HEALTH), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Shield.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.SHIELD), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/bulletSpeedUp.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadEffect(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Explosion.png\");\n this.AnimationsEffect.put(new Pair<>(ID.EFFECT, SpecialEffectT.EXPLOSION), loadEffect(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/freeze.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL));\n }",
"@Override\n public void storeLiveEvents() {\n try {\n //Get today's date and convert to string\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n Date todayDate = new Date();\n String today = dateFormat.format(todayDate).replaceAll(\"/\", \"-\");\n\n //Retrieve live games json d1ata from APIFootball and convert to JSON array\n String data = httpTools.httpGetURL(\"https://apifootball.com/api/?action=get_events&from=\" + today + \"&to=\" + today + \"&match_live=1&APIkey=aec4fdc3c841ad7b08ac13242f6a6dfc229446b4408bf4a6cb2b7ebe2baef4cf\");\n JSONArray array = new JSONArray(data);\n\n //For every live match\n List<MatchStore> matchList = new ArrayList<>();\n for (int i = 0; i < array.length(); i++) {\n\n //Get the date from live game\n Date date;\n date = getDate(array, i);\n\n\n //Parse all goalscorers and store in a list\n List<Goalscorer> goalscorerList = new ArrayList<>();\n JSONArray goalscorerArray = array.getJSONObject(i).getJSONArray(\"goalscorer\");\n for (int y = 0; y < goalscorerArray.length(); y++) {\n goalscorerList.add(new Goalscorer(goalscorerArray.getJSONObject(y).getString(\"score\"),\n goalscorerArray.getJSONObject(y).getString(\"time\").substring(0, goalscorerArray.getJSONObject(y).getString(\"time\").length() - 1),\n goalscorerArray.getJSONObject(y).getString(\"away_scorer\"),\n goalscorerArray.getJSONObject(y).getString(\"home_scorer\")\n ));\n }\n\n //Home and Away lineup list declarations\n List<Player> startingHomeLineupList = new ArrayList<>();\n List<Player> substitutesHomeList = new ArrayList<>();\n List<Substitutions> substitutionsHomeList = new ArrayList<>();\n\n List<Player> startingAwayLineupList = new ArrayList<>();\n List<Player> substitutesAwayList = new ArrayList<>();\n List<Substitutions> substitutionsAwayList = new ArrayList<>();\n\n //Parse and store home team lineup\n JSONArray startingHomeLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"starting_lineups\");\n for (int y = 0; y < startingHomeLineupArray.length(); y++) {\n startingHomeLineupList.add(new Player(startingHomeLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n startingHomeLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n startingHomeLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store away team lineup\n JSONArray startingAwayLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"away\").getJSONArray(\"starting_lineups\");\n for (int y = 0; y < startingAwayLineupArray.length(); y++) {\n startingAwayLineupList.add(new Player(startingAwayLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n startingAwayLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n startingAwayLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store home team subs\n JSONArray subHomeLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"substitutes\");\n for (int y = 0; y < subHomeLineupArray.length(); y++) {\n substitutesHomeList.add(new Player(subHomeLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n subHomeLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n subHomeLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store away team subs\n JSONArray subAwayLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"away\").getJSONArray(\"substitutes\");\n for (int y = 0; y < subAwayLineupArray.length(); y++) {\n substitutesAwayList.add(new Player(subAwayLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n subAwayLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n subAwayLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store home team completed subs\n JSONArray subCompletedHomeArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"substitutions\");\n for (int y = 0; y < subCompletedHomeArray.length(); y++) {\n substitutionsHomeList.add(new Substitutions(subCompletedHomeArray.getJSONObject(y).getString(\"lineup_player\"),\n subCompletedHomeArray.getJSONObject(y).getString(\"lineup_time\")));\n }\n\n //Parse and store away team completed subs\n JSONArray subCompletedAwayArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"substitutions\");\n for (int y = 0; y < subCompletedAwayArray.length(); y++) {\n substitutionsAwayList.add(new Substitutions(subCompletedAwayArray.getJSONObject(y).getString(\"lineup_player\"),\n subCompletedAwayArray.getJSONObject(y).getString(\"lineup_time\")));\n }\n\n //Complete home and away team lineups\n Lineup homeLineup = new Lineup(startingHomeLineupList, substitutesHomeList, substitutionsHomeList);\n Lineup awayLineup = new Lineup(startingAwayLineupList, substitutesAwayList, substitutionsAwayList);\n\n //Add live match data to match list\n matchList.add(new MatchStore(Integer.parseInt(array.getJSONObject(i).getString(\"match_id\")),\n Integer.parseInt(array.getJSONObject(i).getString(\"country_id\")),\n Integer.parseInt(array.getJSONObject(i).getString(\"league_id\")),\n date,\n array.getJSONObject(i).getString(\"match_status\"),\n array.getJSONObject(i).getString(\"match_hometeam_name\"),\n array.getJSONObject(i).getString(\"match_awayteam_name\"),\n array.getJSONObject(i).getString(\"match_hometeam_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_score\"),\n array.getJSONObject(i).getString(\"match_hometeam_halftime_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_halftime_score\"),\n array.getJSONObject(i).getString(\"match_hometeam_extra_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_extra_score\"),\n array.getJSONObject(i).getString(\"match_hometeam_penalty_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_penalty_score\"),\n array.getJSONObject(i).getString(\"match_live\")\n ));\n }\n //Store live match updated data\n dataService.storeKeyEventsInUpdate(matchList);\n for (MatchStore m:matchList){\n gameDAO.storeLiveEvents(m);\n }\n\n } catch (JSONException j) {\n j.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }",
"public void load(){\n gameRounds = 0;\n mRound = new Round(players);\n mRound.loadRound();\n }",
"public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }",
"public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }",
"private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public GameLogic(){\n\t\tplayerPosition = new HashMap<Integer, int[]>();\n\t\tcollectedGold = new HashMap<Integer, Integer>();\n\t\tmap = new Map();\n\t}",
"public void load() {\n World loadGame;\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n int fileOpened = fileChooser.showOpenDialog(GameFrame.this);\n\n if (fileOpened == JFileChooser.APPROVE_OPTION) {\n FileInputStream fileInput =\n new FileInputStream(fileChooser.getSelectedFile());\n ObjectInputStream objInput = new ObjectInputStream(fileInput);\n loadGame = (World) objInput.readObject();\n objInput.close();\n fileInput.close();\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException x) {\n x.printStackTrace();\n return;\n }\n\n world = loadGame;\n gridPanel.removeAll();\n fillGamePanel();\n world.reinit();\n setWorld(world);\n GameFrame.this.repaint();\n System.out.println(\"Game loaded.\");\n }",
"private void initializeLists() {\n\t\tif (tiles == null) {\n\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t} else {\n\t\t\t// Be sure to clean up old tiles\n\t\t\tfor (int i = 0; i < tiles.size(); i++) {\n\t\t\t\ttiles.get(i).freeBitmap();\n\t\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t\t}\n\t\t}\n\t\ttileViews = new ArrayList<TileView>(gridSize * gridSize);\n\t\ttableRow = new ArrayList<TableRow>(gridSize);\n\n\t\tfor (int row = 0; row < gridSize; row++) {\n\t\t\ttableRow.add(new TableRow(context));\n\t\t}\n\n\t}",
"public static void init(game_service game) {\n String g = game.getGraph();\n String fs = game.getPokemons();\n directed_weighted_graph gg = loadgraph(g);\n arna = new Arena();\n arna.setGraph(gg);\n arna.setPokemons(Arena.json2Pokemons(fs));\n String info = game.toString();\n JSONObject line;\n try {\n line = new JSONObject(info);\n JSONObject json = line.getJSONObject(\"GameServer\");\n int num_agent = json.getInt(\"agents\");\n Comparator<CL_Pokemon> compi = new Comparator<CL_Pokemon>() {\n\n @Override\n public int compare(CL_Pokemon o1, CL_Pokemon o2) {\n return Double.compare(o2.getValue(), o1.getValue());\n }\n };\n PriorityQueue<CL_Pokemon> pokemons_val = new PriorityQueue<CL_Pokemon>(compi);\n ArrayList<CL_Pokemon> pokemons = Arena.json2Pokemons(game.getPokemons());\n for (int a = 0; a < pokemons.size(); a++) {\n Arena.updateEdge(pokemons.get(a), gg);\n pokemons_val.add(pokemons.get(a));\n }\n while (!pokemons_val.isEmpty() && num_agent != 0) {\n CL_Pokemon c = pokemons_val.poll();\n System.out.println(pokemons_val);\n int dest = c.get_edge().getDest();\n if (c.getType() < 0) {\n dest = c.get_edge().getSrc();\n }\n game.addAgent(dest);\n num_agent--;\n }\n arna.setAgents(Arena.getAgents(game.getAgents(), gg));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n window = new MyWindow(arna);\n\n }",
"public List<Game> getGameList() {\n return this.games;\n }",
"private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }",
"public void startGameState(){\n\n ArrayList<Integer> checkeredSpaces = new ArrayList<Integer>(Arrays.asList(1, 3, 5, 7, 8, 10, 12, 14, 17, 19, 21,\n 23, 24, 26, 28, 30, 33, 35, 37, 39, 41, 42, 44, 46, 48,\n 51, 53, 55, 56, 58, 60, 62));\n\n\n\n for(int i =0; i < 63; i++){\n if(!checkeredSpaces.contains(i)){\n //set all black spaces to null on the board\n mCheckerBoard.add(null);\n }\n else if(i < 24){\n //set first three rows to red checkers\n mCheckerBoard.add(new Checker((i/2), true));\n }\n else if(i < 40){\n //set middle two rows to null\n mCheckerBoard.add(null);\n }\n else{\n //set top three row to black checkers\n mCheckerBoard.add(new Checker((i/2), false));\n }\n }\n\n }",
"private void getStartGameDataFromServer()\r\n\t{\r\n\t\t// Create data input and output streams\r\n\t\ttry {\r\n\r\n\t\t\t//Data stream to receive boolean flag for isFirstPlayer & rows/columns for the board\r\n\t\t\tDataInputStream startgameInputFromServer = new DataInputStream(\r\n\t\t\t\t\tsocket.getInputStream());\r\n\t\t\tisFirstPlayer = startgameInputFromServer.readBoolean();\r\n\t\t\tif(!isFirstPlayer)\r\n\t\t\t{\r\n\t\t\t\tnumOfBoardRows = startgameInputFromServer.read();\r\n\t\t\t\tnumOfBoardCols = startgameInputFromServer.read();\r\n\t\t\t}\r\n\r\n\t\t\t//Object stream to receive an array of StartLocation\r\n\t\t\tObjectInputStream startGameObjectInputFromServer = new ObjectInputStream(socket.getInputStream());\r\n\r\n\t\t\tavailableStartLocs = (ArrayList<StartLocation>) startGameObjectInputFromServer.readObject();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private ArrayList<Object> loadCache() {\n if (cachedLabTest == null)\n {\n cachedLabTest = getOrderedTestCollection();\n return cachedLabTest;\n }\n else\n {\n return cachedLabTest;\n }\n }",
"public ArrayList updatePlat(Pane gamePane){\r\n\r\n\t\tfor (int c = 0; c < arrayPlat.size(); c++){\r\n//each time the platform's coordinates are higher than gameheight it removes platforms\r\n\t\t\tif (arrayPlat.get(c).getY() > Constants.GAMEHEIGHT){\r\n\r\n\t\t\t\tarrayPlat.get(c).remove(gamePane);\r\n\r\n\t\t\t\tarrayPlat.remove(c);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn arrayPlat;\r\n\r\n\t}",
"private static void loadStaticRuntimeOverlays(ArrayList<ApkAssets> outApkAssets) throws IOException {\n BufferedReader br;\n Throwable th;\n Throwable th2;\n try {\n FileInputStream fis = new FileInputStream(\"/data/resource-cache/overlays.list\");\n try {\n br = new BufferedReader(new InputStreamReader(fis));\n FileLock flock = fis.getChannel().lock(0, Long.MAX_VALUE, true);\n while (true) {\n String readLine = br.readLine();\n String line = readLine;\n if (readLine == null) {\n break;\n }\n String[] lineArray = line.split(\" \");\n if (lineArray != null) {\n if (lineArray.length >= 2) {\n outApkAssets.add(ApkAssets.loadOverlayFromPath(lineArray[1], true));\n }\n }\n }\n if (flock != null) {\n $closeResource(th, flock);\n }\n throw th2;\n } catch (Throwable th3) {\n IoUtils.closeQuietly(fis);\n throw th3;\n }\n } catch (FileNotFoundException e) {\n Log.i(TAG, \"no overlays.list file found\");\n }\n }",
"List<GameCode> getGameCodeList();",
"@SuppressWarnings(\"unchecked\")\n public static void load() {\n\n System.out.print(\"Loading team data from file...\");\n\n try {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n\n FileInputStream fil = new FileInputStream(team_fil);\n ObjectInputStream in = new ObjectInputStream(fil);\n\n team_list = (ConcurrentHashMap<Integer, Team>) in.readObject();\n cleanTeams();\n\n fil.close();\n in.close();\n\n //Gå gjennom alle lagene og registrer medlemmene i team_members.\n Iterator<Team> lag = team_list.values().iterator();\n\n while (lag.hasNext()) {\n\n Team laget = lag.next();\n\n Iterator<TeamMember> medlemmer = laget.getTeamMembers();\n while (medlemmer.hasNext()) {\n registerMember(medlemmer.next().getCharacterID(), laget.getTeamID());\n }\n\n }\n\n System.out.println(\"OK! \" + team_list.size() + \" teams loaded.\");\n\n } catch (Exception e) {\n System.out.println(\"Error loading team data from file.\");\n }\n\n }",
"public GameInput load() {\n int rows = 0;\n int columns = 0;\n char[][] arena = new char[rows][columns];\n int noPlayers = 0;\n LinkedList<Hero> heroList = new LinkedList<Hero>();\n LinkedList<String> moves = new LinkedList<String>();\n int noRounds = 0;\n try {\n FileSystem fs = new FileSystem(inputPath, outputPath);\n rows = fs.nextInt();\n columns = fs.nextInt();\n arena = new char[rows][columns];\n for (int i = 0; i < rows; i++) {\n String rowLandTypes = fs.nextWord();\n char[] landType = rowLandTypes.toCharArray();\n for (int j = 0; j < columns; j++) {\n arena[i][j] = landType[j];\n }\n }\n noPlayers = fs.nextInt();\n for (int i = 0; i < noPlayers; i++) {\n\n char playerType = fs.nextWord().charAt(0);\n int positionX = fs.nextInt();\n int positionY = fs.nextInt();\n\n Hero myHero = new Hero();\n\n if (playerType == 'W') {\n myHero = new Wizard(positionX, positionY, arena[positionX][positionY]);\n } else if (playerType == 'P') {\n myHero = new Pyromancer(positionX, positionY, arena[positionX][positionY]);\n } else if (playerType == 'R') {\n myHero = new Rogue(positionX, positionY, arena[positionX][positionY]);\n } else if (playerType == 'K') {\n myHero = new Knight(positionX, positionY, arena[positionX][positionY]);\n }\n\n heroList.add(myHero);\n }\n\n noRounds = fs.nextInt();\n\n for (int i = 0; i < noRounds; i++) {\n String listOfMoves = fs.nextWord();\n moves.add(listOfMoves);\n }\n\n fs.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return new GameInput(rows, columns, arena, noPlayers, heroList, noRounds, moves);\n }",
"public static void initialize()\n\t{\n\n\t\tint[] actualPlayers = new int[4]; // indices of the existing players\n\t\tint index = 0;\n\t\tfor (int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif (players[i].exist)\n\t\t\t\tactualPlayers[index++] = i;\n\t\t}\n\n\t\tif (playerNum == 4)\n\t\t{\n\t\t\tplayers[2].x = 16;\n\t\t\tplayers[2].y = 30;\n\t\t\tplayers[1].x = 16;\n\t\t\tplayers[1].y = 10;\n\t\t\tplayers[3].x = 37;\n\t\t\tplayers[3].y = 10;\n\t\t\tplayers[4].x = 37;\n\t\t\tplayers[4].y = 30;\n\t\t}\n\t\telse if (playerNum == 2)\n\t\t{\t\t\t\n\t\t\tplayers[actualPlayers[0]].x = 16;\n\t\t\tplayers[actualPlayers[0]].y = 20;\n\t\t\tplayers[actualPlayers[1]].x = 37;\n\t\t\tplayers[actualPlayers[1]].y = 20;\t\t\t \n\t\t}\n\t\telse if (playerNum == 3)\n\t\t{\n\t\t\tplayers[actualPlayers[0]].x = 16;\n\t\t\tplayers[actualPlayers[0]].y = 20;\n\t\t\tplayers[actualPlayers[1]].x = 37;\n\t\t\tplayers[actualPlayers[1]].y = 10;\n\t\t\tplayers[actualPlayers[2]].x = 37;\n\t\t\tplayers[actualPlayers[2]].y = 30;\t\n\t\t}\n\n\t\tfor (int i = 0; i < 5; i++)\n\t\t{\n\t\t\tplayers[i].square = new boolean[HEIGHT + 2][WIDTH + 2];\n\t\t\tif (players[i].exist)\n\t\t\t{\n\t\t\t\tplayers[i].alive = true;\n\t\t\t\tplayers[i].square[players[i].y][players[i].x] = true;\n\t\t\t}\n\t\t\tplayers[i].dir = 'a'; // 'a' means no direction yet\n\t\t}\n\n\t\tstarting = false;\n\n\t}",
"public void clearGameList() {\n gameJList.removeAll();\n }",
"public WordsGame(DataGame dataGame) {\n this.dataGame = dataGame;\n wordsList = WordsLoader.getInstance().readFile(this.dataGame.getWordLengthMax()); \n }",
"public static ArrayList load(String filePath) throws IOException\n\t{\n\t\tString line;\n\t\tArrayList gameConfigs = new ArrayList();\n\t\tBufferedReader textReader = new BufferedReader(new FileReader(filePath));\n\t\t\n\t\twhile((line = textReader.readLine()) != null)\n\t\t{\n\t\t\tgameConfigs.add(line);\n\t\t}\n\t\t\n\t\ttextReader.close();\n\t\treturn gameConfigs;\n\t}",
"public List<PhotoLocation> loadSavedLocations(GoogleMap xMap) {\n List<PhotoLocation> list = mDb.locationModel().loadAllLocations();\n for (PhotoLocation each : list) {\n MarkerOptions m = new MarkerOptions();\n m.position(new LatLng(each.lat, each.lon));\n m.title(each.name);\n Marker marker = xMap.addMarker(m);\n marker.setTag(each.id);\n mMarkers.add(marker);\n }\n return list;\n }",
"private void loadParkingLots() {\n ParkingLot metrotown = new ParkingLot(\"Metrotown\", 4);\n ParkingLot pacificcenter = new ParkingLot(\"PacificCenter\", 5);\n\n for (int i = 0; i < 3; i++) {\n metrotown.addParkingSpot(new ParkingSpot(\"M\" + i, \"medium\", 5));\n pacificcenter.addParkingSpot(new ParkingSpot(\"PC\" + i, \"large\", 4));\n }\n\n parkinglots.add(metrotown);\n parkinglots.add(pacificcenter);\n }",
"private PotCollection loadPotList(){\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n int sizeOfPotList = preferences.getInt(SHAREDPREF_ITEM_POTLIST_SIZE, 0);\n for(int i = 0; i<sizeOfPotList; i++){\n Log.i(\"serving calculator\", \"once\");\n String potName = preferences.getString(SHAREDPREF_ITEM_POTLIST_NAME+i, \"N\");\n int potWeight = preferences.getInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, 0);\n Pot tempPot = new Pot(potName, potWeight);\n potList.addPot(tempPot);\n }\n return potList;\n }",
"private void initialiseMap(ArrayList<Sprite> allSprites){\n\t\tint x = (allSprites.get(0).getXOffset()*-2) + App.COLUMNS;\n\t\tint y = (allSprites.get(0).getYOffset()*-2) + App.ROWS;\n\t\t\n\t\tgameMap = new MapCell[x][y];\n\t\t\n\t\t//initialise the gameMap\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tfor( int j = 0; j < y; j++) {\n\t\t\t\tthis.gameMap[i][j] = new MapCell();\n\t\t\t}\n\t\t}\n\t}",
"void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}",
"private void loadClubList() {\n SharedPreferences sharedPreferences = getSharedPreferences(\"Shared Preferences\", MODE_PRIVATE);\n Gson gson = new Gson();\n String json = sharedPreferences.getString(\"Club List\", null);\n Type type = new TypeToken<ArrayList<Club>>() {}.getType();\n clubList = gson.fromJson(json, type);\n\n if(clubList == null) {\n clubList = new ArrayList<>();\n }\n }",
"public void loadGame(){\n if(gamePaused == false){ return; }\n // animationThread.stop();\n // JOptionPane.showMessageDialog(null, \"Game Loaded\", \"Message\", 1);\n replay.load();\n board = replay.autoReplay();\n level = replay.getLevel();\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelMusic\");\n }\n musicName = \"LevelMusic\";\n setTitle(\"Chip's Challenge: Level \" + level);\n timeRuunableThread.setDrawNumber(true);\n timeRuunableThread.setSecond(replay.getTime());\n gameStarted = true;\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n timeRuunableThread.setGameStart(gameStarted);\n infoCanvas.drawLevelNumber(level);\n keysize = 0;\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n try {\n infoCanvas.drawKeysChipsPics();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n renderer = new MazeRenderer(boardCanvas.getGraphics());\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n checkMovedRedraw();\n }",
"@Test\n public void testLoadGame() {\n try {\n GameData l_gameData = new GameData();\n WarMap l_warMap = new WarMap();\n List<Country> l_countryList = new ArrayList();\n\n //creating a new country object\n Country l_country = new Country();\n l_country.setD_continentIndex(1);\n l_country.setD_countryIndex(1);\n l_country.setD_countryName(\"india\");\n List<String> l_neighborList = new ArrayList();\n l_neighborList.add(\"china\");\n\n //added neighbour of country\n l_country.setD_neighbourCountries(l_neighborList);\n l_countryList.add(l_country);\n\n //creating a new country object\n Country l_country1 = new Country();\n l_country1.setD_continentIndex(1);\n l_country1.setD_countryIndex(2);\n l_country1.setD_countryName(\"china\");\n List<String> l_neighborList1 = new ArrayList();\n l_neighborList1.add(\"india\");\n\n //added neighbour of country\n l_country1.setD_neighbourCountries(l_neighborList1);\n l_countryList.add(l_country1);\n\n //creating a new continent object\n Continent l_continent = new Continent();\n l_continent.setD_continentIndex(1);\n l_continent.setD_continentName(\"asia\");\n l_continent.setD_continentValue(5);\n l_continent.setD_countryList(l_countryList);\n\n l_warMap.setD_mapName(\"test.map\");\n l_warMap.setD_status(true);\n Map<Integer, Continent> l_continentMap = new HashMap<Integer, Continent>();\n l_continentMap.put(1, l_continent);\n l_warMap.setD_continents(l_continentMap);\n\n l_gameData.setD_warMap(l_warMap);\n assertEquals(d_gameEngine.saveGame(l_gameData, \"testSaveGame\"), true);\n assertEquals(l_gameData, d_gameEngine.loadGame(\"testSaveGame.txt\"));\n } catch (Exception ex) {\n Logger.getLogger(MapHandlingImplTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void refreshGameList() {\n ((DefaultListModel) gameJList.getModel()).removeAllElements();\n client.joinServer(connectedServerName, connectedServerIP, connectedServerPort);\n }",
"public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}",
"@Override\n public void updateAll(MiniGame game)\n {\n // MAKE SURE THIS THREAD HAS EXCLUSIVE ACCESS TO THE DATA\n try\n {\n game.beginUsingData();\n \n // WE ONLY NEED TO UPDATE AND MOVE THE MOVING TILES\n for (int i = 0; i < movingTiles.size(); i++)\n {\n // GET THE NEXT TILE\n MahjongSolitaireTile tile = movingTiles.get(i);\n \n // THIS WILL UPDATE IT'S POSITION USING ITS VELOCITY\n tile.update(game);\n \n // IF IT'S REACHED ITS DESTINATION, REMOVE IT\n // FROM THE LIST OF MOVING TILES\n if (!tile.isMovingToTarget())\n {\n movingTiles.remove(tile);\n }\n }\n \n // IF THE GAME IS STILL ON, THE TIMER SHOULD CONTINUE\n if (inProgress())\n {\n // KEEP THE GAME TIMER GOING IF THE GAME STILL IS\n endTime = new GregorianCalendar();\n }\n }\n finally\n {\n // MAKE SURE WE RELEASE THE LOCK WHETHER THERE IS\n // AN EXCEPTION THROWN OR NOT\n game.endUsingData();\n }\n }",
"public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }",
"public void loadTileImages() {\n // keep looking for tile A,B,C, etc. this makes it\n // easy to drop new tiles in the images/ directory\n tiles = new ArrayList();\n char ch = 'A';\n while (true) {\n String name = \"tile_\" + ch + \".png\";\n File file = new File(\"images/\" + name);\n if (!file.exists()) {\n break;\n }\n tiles.add(loadImage(name));\n ch++;\n }\n }",
"public void loadHotels();",
"public static ArrayList<ArrayList<Object>> requestActiveGames() {\n\t\tarcade.requestActiveGames();\n\t\treturn arcade.getActiveGames();\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n gameSources = new ArrayList<>();\n gameSources.clear();\n\n // Fire off the query to fetch the games data.\n new GameSourcesApiFetcherAsyncTask(this).execute();\n\n setListAdapter(new GameSourcesAdapter(getActivity().getApplicationContext(), gameSources));\n }",
"public void addNewGame(gameLocation game) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getGameLocationData(GamelocationTableName,\n\t\t\t\tgame.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\t\t\t// reuse method\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}",
"private void setupRooms() {\n\t\tthis.listOfCoordinates = new ArrayList<Coordinates>();\r\n\t\tthis.rooms = new HashMap<String,Room>();\r\n\t\t\r\n\t\tArrayList<Coordinates> spaEntrances = new ArrayList<Coordinates>();\r\n\t\tspaEntrances.add(grid[5][6].getCoord());\r\n\r\n\t\tArrayList<Coordinates> theatreEntrances = new ArrayList<Coordinates>();\r\n\t\ttheatreEntrances.add(grid[13][2].getCoord());\r\n\t\ttheatreEntrances.add(grid[10][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> livingRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tlivingRoomEntrances.add(grid[13][5].getCoord());\r\n\t\tlivingRoomEntrances.add(grid[16][9].getCoord());\r\n\r\n\t\tArrayList<Coordinates> observatoryEntrances = new ArrayList<Coordinates>();\r\n\t\tobservatoryEntrances.add(grid[21][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> patioEntrances = new ArrayList<Coordinates>();\r\n\t\tpatioEntrances.add(grid[5][10].getCoord());\r\n\t\tpatioEntrances.add(grid[8][12].getCoord());\r\n\t\tpatioEntrances.add(grid[8][16].getCoord());\r\n\t\tpatioEntrances.add(grid[5][18].getCoord());\r\n\r\n\t\t// ...\r\n\t\tArrayList<Coordinates> poolEntrances = new ArrayList<Coordinates>();\r\n\t\tpoolEntrances.add(grid[10][17].getCoord());\r\n\t\tpoolEntrances.add(grid[17][17].getCoord());\r\n\t\tpoolEntrances.add(grid[14][10].getCoord());\r\n\r\n\t\tArrayList<Coordinates> hallEntrances = new ArrayList<Coordinates>();\r\n\t\thallEntrances.add(grid[22][10].getCoord());\r\n\t\thallEntrances.add(grid[18][13].getCoord());\r\n\t\thallEntrances.add(grid[18][14].getCoord());\r\n\r\n\t\tArrayList<Coordinates> kitchenEntrances = new ArrayList<Coordinates>();\r\n\t\tkitchenEntrances.add(grid[6][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> diningRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tdiningRoomEntrances.add(grid[12][18].getCoord());\r\n\t\tdiningRoomEntrances.add(grid[16][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> guestHouseEntrances = new ArrayList<Coordinates>();\r\n\t\tguestHouseEntrances.add(grid[20][20].getCoord());\r\n\r\n\t\t// setup entrances map\r\n\t\tthis.roomEntrances = new HashMap<Coordinates, Room>();\r\n\t\tfor (LocationCard lc : this.listOfLocationCard) {\r\n\t\t\tString name = lc.getName();\r\n\t\t\tRoom r;\r\n\t\t\tif (name.equals(\"Spa\")) {\r\n\t\t\t\tr = new Room(name, lc, spaEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : spaEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Theatre\")) {\r\n\t\t\t\tr = new Room(name, lc,theatreEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : theatreEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"LivingRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,livingRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : livingRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Observatory\")) {\r\n\t\t\t\tr = new Room(name, lc,observatoryEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : observatoryEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Patio\")) {\r\n\t\t\t\tr = new Room(name,lc, patioEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : patioEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Pool\")) {\r\n\t\t\t\tr = new Room(name,lc,poolEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : poolEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Hall\")) {\r\n\t\t\t\tr = new Room(name, lc,hallEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : hallEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Kitchen\")) {\r\n\t\t\t\tr = new Room(name, lc,kitchenEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : kitchenEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"DiningRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,diningRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : diningRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"GuestHouse\")) {\r\n\t\t\t\tr = new Room(name, lc,guestHouseEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : guestHouseEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}"
] | [
"0.6967564",
"0.68028903",
"0.63304234",
"0.62131846",
"0.6131602",
"0.6072838",
"0.6053569",
"0.59799355",
"0.582541",
"0.5824623",
"0.5778741",
"0.5758192",
"0.5744629",
"0.5736517",
"0.5732557",
"0.57302356",
"0.5721095",
"0.57025874",
"0.5699855",
"0.5679972",
"0.5675161",
"0.5654526",
"0.562935",
"0.5623814",
"0.5574456",
"0.5571624",
"0.55616665",
"0.55562574",
"0.5528105",
"0.55219823",
"0.5520684",
"0.5517135",
"0.5505099",
"0.55031633",
"0.54964244",
"0.5484961",
"0.54804325",
"0.54638386",
"0.54600614",
"0.5457083",
"0.5453452",
"0.5447672",
"0.5447324",
"0.5444143",
"0.54382324",
"0.5435736",
"0.54309946",
"0.54282355",
"0.5411449",
"0.54032654",
"0.5400699",
"0.5386122",
"0.5382574",
"0.538123",
"0.53720754",
"0.53646094",
"0.5354496",
"0.5351818",
"0.53458637",
"0.5339099",
"0.532961",
"0.5323783",
"0.53206706",
"0.53106415",
"0.53015894",
"0.5295246",
"0.5289372",
"0.52782",
"0.52744687",
"0.5266508",
"0.52508163",
"0.52474886",
"0.52440107",
"0.5243463",
"0.5240166",
"0.5237945",
"0.5216203",
"0.52047557",
"0.5203775",
"0.51954776",
"0.51951563",
"0.5185625",
"0.5183191",
"0.5182524",
"0.51758677",
"0.51691955",
"0.51632464",
"0.51614475",
"0.5157087",
"0.5156182",
"0.51539946",
"0.5145117",
"0.51432616",
"0.5138119",
"0.51377004",
"0.5136367",
"0.5134199",
"0.5132344",
"0.5129433",
"0.51134723"
] | 0.72954535 | 0 |
convert boolean isUsed in database from String back to boolean | private boolean isUsed(String couponType) { // 0 = not used , 1 = used
if (1 == Integer.parseInt(couponType)) // used
return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic Boolean convert(String s) {\n\t\t\tString value = s.toLowerCase();\n\t\t\tif (\"true\".equals(value) || \"1\".equals(value) /* || \"yes\".equals(value) || \"on\".equals(value) */) {\n\t\t\t\treturn Boolean.TRUE;\n\t\t\t}\n\t\t\telse if (\"false\".equals(value) || \"0\".equals(value) /* || \"no\".equals(value) || \"off\".equals(value) */) {\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Can not parse to boolean type of value: \" + s);\n\t\t\t}\n\t\t}",
"public Object bool(String value) {\r\n if (value == null) return null;\r\n return isOracle() ? Integer.valueOf((isTrue(value) ? 1 : 0)) :\r\n Boolean.valueOf(isTrue(value));\r\n }",
"@Override\n public boolean getBoolean() throws SQLException {\n if (isNull()) return BOOLEAN_NULL_VALUE;\n\n final String trimmedValue = getString().trim();\n return trimmedValue.equalsIgnoreCase(LONG_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_2) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_3);\n }",
"public Boolean toBool(){\n\t\tString s = txt().trim();\n\t\tBoolean i;\n\t\ttry{\n\t\t\ti = Boolean.parseBoolean(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn i;\t\n\t}",
"private boolean getBoolean(String paramString, boolean paramBoolean) {\n }",
"private void saveBoolean(String paramString, boolean paramBoolean) {\n }",
"private boolean convertToBoolean (String s) {\n return (\"1\".equalsIgnoreCase(s)\n || \"yes\".equalsIgnoreCase(s)\n || \"true\".equalsIgnoreCase(s)\n || \"on\".equalsIgnoreCase(s)\n || \"y\".equalsIgnoreCase(s)\n || \"t\".equalsIgnoreCase(s));\n }",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"@Test\n\tpublic void testStringToBoolean() {\n\n\t\t// forwards for yes and no\n\t\tAssert.assertEquals(converter.convertForward(\"Yes\"), new Boolean(true));\n\t\tAssert.assertEquals(converter.convertForward(\"No\"), new Boolean(false));\n\n\t}",
"private static boolean stringToBoolean(String value) {\n if (value.equals(\"1\")) {\n return true;\n }\n else {\n return false;\n }\n }",
"@Override\n public Boolean transform(String value, Field field) throws TransformationException {\n // We should have error here if value is not correct, default\n // \"Boolean.parseBoolean\" returns false if string\n // is not \"true\" ignoring case\n if (\"true\".equalsIgnoreCase(value) || \"1\".equals(value)) {\n return true;\n } else if (\"false\".equalsIgnoreCase(value) || \"0\".equals(value)) {\n return false;\n } else {\n throw new TransformationException(\"Invalid boolean string: \" + value);\n }\n }",
"public boolean getBoolean(String name)\r\n {\r\n if( \"true\".equals(getString(name)) )\r\n return true;\r\n else\r\n return false;\r\n }",
"public static boolean parse_boolean(String value) {\n\t return value.equalsIgnoreCase(\"true\") || value.equalsIgnoreCase(\"T\");\n }",
"void setString(boolean string);",
"public static Boolean booleanValue(String value) {\n\t\tfinal Boolean ret;\n\t\t\n\t\tif (value.equals(\"true\")) {\n\t\t\tret = true;\n\t\t}\n\t\telse if (value.equals(\"false\")) {\n\t\t\tret = false;\n\t\t}\n\t\telse {\n\t\t\tret = null;\n\t\t}\n\n\t\treturn ret;\n\t}",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public abstract boolean read_boolean();",
"public static boolean string2boolean(String str) {\r\n \tif (Constants.FALSE.equals(str)) {\r\n \t\treturn false;\r\n \t} else {\r\n \t\treturn true;\r\n \t}\r\n }",
"static Value<Boolean> parseBoolean(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Boolean.parseBoolean(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }",
"@Override\n public void setBoolean(boolean value) throws SQLException {\n if (possibleCharLength > 4) {\n setString(value ? LONG_TRUE : LONG_FALSE);\n } else if (possibleCharLength >= 1) {\n setString(value ? SHORT_TRUE : SHORT_FALSE);\n }\n }",
"public abstract void getBooleanImpl(String str, boolean z, Resolver<Boolean> resolver);",
"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 }",
"static public boolean boolForString(String s) {\n return ERXValueUtilities.booleanValue(s);\n }",
"boolean readBoolean();",
"public static boolean datoBoolean(){\n try {\n return(Boolean.parseBoolean(dato()));\n } catch (NumberFormatException error) {\n return(false);\n }\n }",
"protected String getBooleanValueText(String value) {\n if (value.equals(Boolean.TRUE.toString())) {\n return getTrue();\n } else if (value.equals(Boolean.FALSE.toString())) {\n return getFalse();\n } else {\n // If it is neither true nor false it is must be an expression.\n return value;\n }\n }",
"abstract public boolean getAsBoolean();",
"public String toBooleanValueString(boolean bool) {\n \t\treturn bool ? \"1\" : \"0\";\n \t}",
"Boolean getBoolean(String col_name) throws ConnException;",
"public static boolean parseBoolean(String val) {\n\n\t\tif (val == null) {\n\t\t\tval = \"false\";\n\t\t}\n\n\t\tboolean ret = false;\n\t\tret = Boolean.parseBoolean(val);\n\n\t\treturn ret;\n\t}",
"boolean getString();",
"private String convertToString(boolean isUsed) {\n\t\tif (isUsed)\n\t\t\treturn \"1\";\n\t\treturn \"0\";\n\t}",
"@Test\n\tpublic void test_TCM__boolean_getBooleanValue() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"true\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect boolean true value\", attribute.getBooleanValue());\n\n attribute.setValue(\"false\");\n\t\t\tassertTrue(\"incorrect boolean false value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"TRUE\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"FALSE\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"On\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"Yes\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"1\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"OfF\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"No\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n attribute.setValue(\"foo\");\n\t\t\tassertTrue(\"incorrectly returned boolean from non boolean value\", attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// good\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Expected DataConversionException, but got \" + e.getClass().getName());\n\t\t}\n\n\n\t}",
"public static Boolean toBoolean(final String s) throws StringValueConversionException\n\t{\n\t\treturn Boolean.valueOf(isTrue(s));\n\t}",
"public static boolean is_boolean(String s) {\n\t return (s.equalsIgnoreCase(\"true\") || s.equalsIgnoreCase(\"T\") || s.equalsIgnoreCase(\"false\") || s.equalsIgnoreCase(\"F\"));\n }",
"public Boolean asBoolean();",
"public static boolean toBoolean(final String strTransparent) {\n if (strTransparent == null) {\n return false;\n }\n return Boolean.parseBoolean(strTransparent.trim());\n }",
"protected boolean stringToBoolean(String input) {\n if (input.equals(\"Y\")) {\n return true;\n }\n return false;\n }",
"public static My_String valueOf(boolean b) {\n return new FastMyString(true);\n }",
"public static boolean string2Boolean(String string) {\n return \"1\".equals(string)\n || Boolean.TRUE.toString().equalsIgnoreCase(string)\n || \"yes\".equalsIgnoreCase(string)\n || \"on\".equalsIgnoreCase(string);\n }",
"public boolean getBoolean(final String key) {\n String s = removeByteOrderMark(get(key));\n if (s == null) return false;\n s = s.toLowerCase(Locale.ROOT);\n return s.equals(\"true\") || s.equals(\"on\") || s.equals(\"1\");\n }",
"private String convertBoolean(boolean booToConv) {\n\t\tString convText = \"\";\n\t\tif (booToConv) {\n\t\t\tconvText = \"Yes\";\n\t\t} else {\n\t\t\tconvText = \"No\";\n\t\t}\n\t\treturn convText;\n\t}",
"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 }",
"org.apache.xmlbeans.XmlBoolean xgetString();",
"public static boolean isTrue(final String s) throws StringValueConversionException\n\t{\n\t\tif (s != null)\n\t\t{\n\t\t\tif (s.equalsIgnoreCase(\"true\"))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (s.equalsIgnoreCase(\"false\"))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (s.equalsIgnoreCase(\"on\") || s.equalsIgnoreCase(\"yes\") || s.equalsIgnoreCase(\"y\")\n\t\t\t\t\t|| s.equalsIgnoreCase(\"1\"))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (s.equalsIgnoreCase(\"off\") || s.equalsIgnoreCase(\"no\") || s.equalsIgnoreCase(\"n\")\n\t\t\t\t\t|| s.equalsIgnoreCase(\"0\"))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (isEmpty(s))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthrow new StringValueConversionException(\"Boolean value \\\"\" + s + \"\\\" not recognized\");\n\t\t}\n\n\t\treturn false;\n\t}",
"public static Boolean StrToBoolean(String str) {\r\n\t\tif (str.equalsIgnoreCase(\"True\")){\r\n\t\t\tBoolean val = true;\r\n\t\t\treturn val;\r\n\t\t} else if (str.equalsIgnoreCase(\"False\")){\r\n\t\t\tBoolean val = false;\r\n\t\t\treturn val;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"String getBooleanExpression(boolean flag);",
"@Test\n public void testReflectionBoolean() {\n Boolean b;\n b = Boolean.TRUE;\n assertEquals(this.toBaseString(b) + \"[value=true]\", ToStringBuilder.reflectionToString(b));\n b = Boolean.FALSE;\n assertEquals(this.toBaseString(b) + \"[value=false]\", ToStringBuilder.reflectionToString(b));\n }",
"private static boolean _parseBoolean(String boolStr, boolean dft)\n {\n\n /* blank boolean value */\n if (StringTools.isBlank(boolStr)) {\n // -- boolean value is blank/null\n return dft;\n }\n\n /* trim and check for debug condition */\n if (boolStr.startsWith(\"d\") ||boolStr.startsWith(\"D\")) {\n // -- parse as conditional debug boolean [\"dtrue\" | \"dfalse\"]\n // - \"dtrue\" : \"true\" unless debugMode\n // - \"dfalse\" : \"false\" unless debugMode\n boolean val = StringTools.parseBoolean(boolStr.substring(1), dft);\n return RTConfig.isDebugMode()? !val : val;\n }\n\n /* parse as traditional boolean value */\n return StringTools.parseBoolean(boolStr, dft);\n\n }",
"public static boolean boolean_from_string(String value)\n throws XFormsException {\n if (\"true\".equalsIgnoreCase(value) || \"1\".equals(value)) {\n return true;\n }\n\n if (\"false\".equalsIgnoreCase(value) || \"0\".equals(value)) {\n return false;\n }\n\n throw new XFormsException(\"invalid value expression when evaluating boolean_from_string('\" + value +\n \"')\");\n }",
"private static boolean isBoolean(String value) {\n boolean status = false;\n value = value.trim();\n if (value.equals(\"true\") || value.equals(\"false\")) {\n return true;\n }\n\n return status;\n }",
"String byteOrBooleanRead();",
"public boolean getBooleanTypeValueForInternalValue(String value, boolean def) {\n\t\tboolean r = def;\n\t\tObject o = getTypeValueForInternalValue(value);\n\t\tif (o!=null && o instanceof Boolean) {\n\t\t\tr = (Boolean) o;\n\t\t}\n\t\treturn r;\n\t}",
"private String boolToIntString(boolean bool) {\n return bool ? \"1\" : \"0\";\n }",
"String booleanAttributeToGetter(String arg0);",
"public boolean getBoolean(String key) {\n return Boolean.valueOf(UnsafeUtils.cast(get(key)));\n }",
"public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }",
"private String booleanToString(final boolean bool) {\n\t\tString returnString = null;\n\t\tif(bool) { returnString = \"Yes\"; } else { returnString = \"No\"; }\n\t\treturn returnString;\n\t}",
"public boolean getBoolean(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Boolean) {\n\t\t\treturn (Boolean) val;\n\t\t}\n\t\ttry {\n\t\t\treturn Boolean.parseBoolean((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but found: \" + val);\n\t\t}\n\t}",
"boolean getBoolean();",
"boolean getBoolean();",
"boolean isSetString();",
"public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}",
"public static boolean parseValue(String value) {\n\t\t/*// Whenever constants refer to a variable \n\t\tif(Environment.globalSymTab.containsSymbol(value))\n\t\t\treturn ((BooleanType)Environment.globalSymTab.getSymbol(value)).value();\n\t\telse*/\n\t\t\treturn Boolean.parseBoolean(value);\n\t}",
"public static Value makeBool(boolean b) {\n if (b)\n return theBoolTrue;\n else\n return theBoolFalse;\n }",
"public static MyString2 valueOf(boolean b) {\n\t\tif (b == true) {\n\t\t\treturn new MyString2(\"true\");\n\t\t} else {\n\t\t\treturn new MyString2(\"false\");\n\t\t}\n\t}",
"public Literal getLiteralBoolean(Boolean literalData);",
"void setBoolean(String key, boolean val);",
"boolean getValue();",
"String byteOrBooleanWrite();",
"public void setEnabled(String tmp) {\n enabled = DatabaseUtils.parseBoolean(tmp);\n }",
"public static Boolean m5895a(JSONObject jSONObject, String str, Boolean bool) {\n try {\n jSONObject = (!jSONObject.has(str) || jSONObject.isNull(str)) ? null : Boolean.valueOf(jSONObject.getBoolean(str));\n return jSONObject;\n } catch (JSONObject jSONObject2) {\n jSONObject2.printStackTrace();\n return bool;\n }\n }",
"public static boolean getBoolean(String key) throws UnknownID, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString value = get(key);\n\t\treturn Boolean.parseBoolean(value);\n\t}",
"boolean booleanOf();",
"public boolean getBoolean(String name, boolean defaultValue)\n/* */ {\n/* 862 */ String value = getString(name);\n/* 863 */ if (value == null) {\n/* 864 */ return defaultValue;\n/* */ }\n/* 866 */ return (value.equals(\"1\")) || (value.toLowerCase().equals(\"true\"));\n/* */ }",
"protected String getFalse() {\n return \"false\";\n }",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"String getBooleanTrueExpression();",
"void xsetString(org.apache.xmlbeans.XmlBoolean string);",
"protected boolean getBool(Boolean b, String clave, boolean defecto) {\n if (b != null) {\n return b;\n }\n\n String property = properties.getProperty(clave);\n if (property != null) {\n return Boolean.parseBoolean(property);\n }\n\n return defecto;\n }",
"public boolean getBoolean(String name){\r\n try{return kd.getJSONObject(ug).getBoolean(name);}\r\n catch(JSONException e){return false;}\r\n }",
"public abstract void setBooleanImpl(String str, boolean z, Resolver<Void> resolver);",
"public static final boolean getBoolean(String key) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (token.equalsIgnoreCase(\"true\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean convertToBoolean(Object value) {\n if (value == null) {\n return false;\n }\n else if (value instanceof Boolean) {\n return (Boolean)value;\n }\n else if (value instanceof Number) {\n return isNumberTrue((Number)value);\n }\n else if (value instanceof String) {\n String stringValue = (String)value;\n if (\"true\".equals(stringValue)) {\n return true;\n }\n else if (\"false\".equals(stringValue)) {\n return false;\n }\n else if (NumberUtils.isCreatable(stringValue)) {\n Number number = NumberUtils.createNumber(stringValue);\n return isNumberTrue(number);\n }\n else {\n return stringValue.length() > 0;\n }\n }\n else if (value instanceof Collection) {\n return ((Collection) value).size() > 0;\n }\n return false;\n }",
"void writeBool(boolean value);",
"@Test\n public void test_column_type_detection_boolean() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"true\", XSDDatatype.XSDboolean), true, Types.BOOLEAN, Boolean.class.getCanonicalName());\n }",
"boolean getBoolean(String key) throws KeyValueStoreException;",
"@Test\n public void booleanInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.BOOLEAN, new TextNode(\"true\"));\n assertNull(retVal);\n }",
"public static Boolean stringToBool(String stringToConvert) \n\t{\n\t\tstringToConvert = stringToConvert.toLowerCase();\n\n\t\tif (stringToConvert.equals(\"y\")) return true;\n\t\telse if (stringToConvert.equals(\"yes\")) return true;\n\t\telse if (stringToConvert.equals(\"true\")) return true;\n\t\telse if (stringToConvert.equals(\"n\")) return false;\n\t\telse if (stringToConvert.equals(\"no\")) return false;\n\t\telse if (stringToConvert.equals(\"false\")) return false;\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(\"Utils.stringToBool: Error '\" + stringToConvert + \"' not recognised\");\n\t\t\treturn false;\n\t\t}\t\n\t}",
"public boolean getBoolean(){\r\n try{return kd.getJSONObject(ug).getBoolean(udn);}\r\n catch(JSONException e){return false;}\r\n }",
"public boolean getAsBoolean(final String name) {\r\n Boolean result = false;\r\n String prop = (String) this.properties.get(name);\r\n if (prop != null) {\r\n prop = prop.toLowerCase();\r\n if (prop != null && (TRUE.equals(prop) || ONE.equals(prop))) {\r\n result = true;\r\n }\r\n }\r\n return result;\r\n }",
"public boolean getBoolean(String key) {\r\n try {\r\n String string = getString(key);\r\n return string.equalsIgnoreCase(\"true\") || string.equals(\"1\");\r\n }\r\n catch (MissingResourceException e) {\r\n return false;\r\n }\r\n }",
"BooleanLiteralExp createBooleanLiteralExp();",
"boolean deserialize(String inputString);",
"private static boolean validateBoolean(String boolString) {\n if (boolString.equals(\"true\") || boolString.equals(\"false\") \n || boolString.equals(\"1\") || boolString.equals(\"0\")) {\n return true;\n } else {\n return false;\n }\n }",
"public static String booleanToString(boolean val){\n return val ? \"1\" : \"0\";\n }",
"@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}",
"private boolean processTrueOrFalse() throws HsqlException {\n\n String sToken = tokenizer.getSimpleToken();\n\n if (sToken.equals(Token.T_TRUE)) {\n return true;\n } else if (sToken.equals(Token.T_FALSE)) {\n return false;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, sToken);\n }\n }",
"public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }"
] | [
"0.7192412",
"0.6971635",
"0.67653835",
"0.6716065",
"0.6686018",
"0.66205734",
"0.6545711",
"0.6533183",
"0.6530333",
"0.649725",
"0.64414155",
"0.6441198",
"0.6416056",
"0.63804746",
"0.63677275",
"0.63510656",
"0.63510656",
"0.6333155",
"0.6315326",
"0.62669057",
"0.62473935",
"0.6240237",
"0.6235492",
"0.623516",
"0.62308913",
"0.6209296",
"0.62042207",
"0.619681",
"0.61934173",
"0.61611825",
"0.61297876",
"0.61177236",
"0.61053526",
"0.606974",
"0.60656977",
"0.60567635",
"0.6052649",
"0.60469073",
"0.60371953",
"0.6015843",
"0.60108376",
"0.60103714",
"0.6001226",
"0.5984532",
"0.5978826",
"0.5962368",
"0.5951946",
"0.5940325",
"0.59357214",
"0.5928587",
"0.5916287",
"0.5906008",
"0.58794427",
"0.5875571",
"0.5870264",
"0.58585984",
"0.5855275",
"0.5830041",
"0.5828151",
"0.58192974",
"0.58152384",
"0.58152384",
"0.5812575",
"0.5790717",
"0.5786923",
"0.57865804",
"0.57815695",
"0.577706",
"0.57589597",
"0.57426184",
"0.5737978",
"0.57245106",
"0.5722287",
"0.5720983",
"0.5719328",
"0.570998",
"0.569501",
"0.5692116",
"0.5684894",
"0.56637305",
"0.56628424",
"0.566044",
"0.5654596",
"0.56541526",
"0.5653752",
"0.5644762",
"0.5640556",
"0.56349397",
"0.5632534",
"0.56316084",
"0.5630321",
"0.562948",
"0.56273985",
"0.5622909",
"0.5622548",
"0.5612676",
"0.56088775",
"0.5592329",
"0.5592329",
"0.5587485",
"0.5586682"
] | 0.0 | -1 |
register max score for apple game in database | public void saveInitialScoretoDatabase_AppleGame(int score) {
saveInitialScoretoDatabase(score, AppleID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"void setScore(long score);",
"public void createHighScore(String initials, int score) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, score);\n values.put(COL_INITIALS, initials);\n\n mDb.insert(TABLE_NAME, null, values);\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"void setBestScore(double bestScore);",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"public void addScore(int score);",
"public void setScore(int score) { this.score = score; }",
"public int getWorstScore()\n {\n return -1;\n }",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public void setScore(int score) {this.score = score;}",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"int getScore();",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"Float getAutoScore();",
"int getScoreValue();",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public int getHighScore() {\n return highScore;\n }",
"public void addToScore(int ammount){\n\t\tscore+=ammount;\n\t}",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public int getScore() {return score;}",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public void setScore(java.lang.Integer value);",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public int getScore() { return score; }",
"int getMaxMana();",
"public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}",
"int score();",
"int score();",
"public int getHomeScore();",
"public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }",
"public double getBestScore();",
"public int getScore(){\n \treturn 100;\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"void setScoreValue(int scoreValue);",
"public int getScore()\n {\n // put your code here\n return score;\n }",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }",
"public static void createScore(){\n\t}",
"public void setAwayScore(int a);",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public void addScore()\n {\n score += 1;\n }",
"float getScore();",
"float getScore();",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(Integer score) {\r\n this.score = score;\r\n }",
"public void CheckScore(){\n \tif(killed > highScore) {\n \t\tname = JOptionPane.showInputDialog(\"You set a HighScore!\\n What is your Name?\");\n \t\thighScore = killed;\n \t}\n }",
"private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }",
"public void setScore(int paScore) {\n this.score = paScore;\n }",
"public void setScore(Integer score) {\n this.score = score;\n }",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public void saveInitialScoretoDatabase_GreenacresGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, GreenacresID);\n\t}",
"public void saveInitialScoretoDatabase_DiscoveryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, DiscoveryID);\n\t}",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"public int getPlayerScore();",
"public int getScore()\n {\n return score; \n }",
"public void addGameScore(String gameArea, GameScore score)\r\n\t{\r\n\t\tif(gameArea.toLowerCase().equals(\"fireworks\"))\r\n\t\t{\r\n\t\t\tgameFireworks.addGameScore(score);\r\n\t\t}\r\n\t\telse if(gameArea.toLowerCase().equals(\"pirates\"))\r\n\t\t{\r\n\t\t\t//gamePirates.addGameScore(score);\r\n\t\t}\r\n\t}",
"public static int getScore(){\n return score;\n }",
"void setMaxWrongGuesses(Integer max);",
"public int getAwayScore();",
"public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }"
] | [
"0.74575216",
"0.6946765",
"0.68378663",
"0.67573303",
"0.6627857",
"0.66184205",
"0.6582443",
"0.63935184",
"0.6243073",
"0.6233753",
"0.62168086",
"0.6201834",
"0.61574084",
"0.61503035",
"0.61429554",
"0.61429554",
"0.61429554",
"0.61429554",
"0.61346155",
"0.61343175",
"0.61027473",
"0.6089782",
"0.6073504",
"0.60305464",
"0.600712",
"0.60018027",
"0.5999789",
"0.5989659",
"0.5986245",
"0.5978931",
"0.59492755",
"0.5941481",
"0.5940113",
"0.5936801",
"0.59351236",
"0.5893617",
"0.5892117",
"0.5886036",
"0.587337",
"0.58733016",
"0.58726126",
"0.5869098",
"0.5865205",
"0.5863541",
"0.58547336",
"0.58530396",
"0.5844032",
"0.5843752",
"0.58268744",
"0.5822591",
"0.5812501",
"0.57988447",
"0.5796395",
"0.5796395",
"0.57918876",
"0.5768408",
"0.5754429",
"0.57542247",
"0.57539773",
"0.5753385",
"0.5752798",
"0.5752693",
"0.5746791",
"0.5739063",
"0.57367426",
"0.57339597",
"0.57339597",
"0.57320094",
"0.5726369",
"0.5719626",
"0.57181484",
"0.57181484",
"0.57161516",
"0.5713646",
"0.57123107",
"0.57114154",
"0.57114154",
"0.5706984",
"0.57010263",
"0.57010263",
"0.57010263",
"0.57010263",
"0.5693032",
"0.5675886",
"0.567448",
"0.56741",
"0.56735384",
"0.56698203",
"0.56698203",
"0.566968",
"0.56649387",
"0.56639105",
"0.5654176",
"0.5652542",
"0.5638777",
"0.5638176",
"0.5624805",
"0.5621725",
"0.5609611",
"0.56075305"
] | 0.6460648 | 7 |
register max score for discovery game in database | public void saveInitialScoretoDatabase_DiscoveryGame(int score) {
saveInitialScoretoDatabase(score, DiscoveryID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"void setBestScore(double bestScore);",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"void setScore(long score);",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"public void addScore(int score);",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public int getWorstScore()\n {\n return -1;\n }",
"public void createHighScore(String initials, int score) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, score);\n values.put(COL_INITIALS, initials);\n\n mDb.insert(TABLE_NAME, null, values);\n }",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public void setScore(int score) { this.score = score; }",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"public int getHighScore() {\n return highScore;\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"int getScoreValue();",
"public void setScore(int score) {this.score = score;}",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"int getScore();",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"int getHighScore() {\n return getStat(highScore);\n }",
"public void saveInitialScoretoDatabase_GreenacresGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, GreenacresID);\n\t}",
"Float getAutoScore();",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"void setScoreValue(int scoreValue);",
"@Override\n\tpublic long getMaxnum() {\n\t\treturn _esfTournament.getMaxnum();\n\t}",
"public static void createScore(){\n\t}",
"public void setScore(java.lang.Integer value);",
"public double getBestScore();",
"public int getInstabilityScore();",
"public int getScore() { return score; }",
"public int getScore() {return score;}",
"int getMaxMana();",
"public void checkHighScore() {\n\t\t//start only if inserting highscore is needed\n\t\tlevel.animal.gamePaused = true;\n\t\tlevel.createTimer();\n\t\tlevel.timer.start();\n\t\t\t\t\n\t\tlevel.setWord(\"hiscores\", 7, 175, 130);\n\t\t\n\t\treadFile();\n\t}",
"void setFitnessScore(double score){\n fitnessScore = score;\n }",
"void setMaxWrongGuesses(Integer max);",
"public static void newHighscore(int h){\n highscore = h;\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"highscore\",highscore);\n editor.commit();\n }",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"@Override\n\tpublic int registraJogada(int maiorScore, boolean zerou) {\n\t\treturn 0;\n\t}",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }",
"public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public int getHomeScore();",
"ScoreManager createScoreManager();",
"public int getHighscoreMaxSize() {\n \t\treturn 20;\n \t}",
"void addScore(String sessionKey, Integer levelId, Integer score) throws SessionExpiredException;",
"float getScore();",
"float getScore();",
"public int getScore(){\n \treturn 100;\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"@Override\r\n\tpublic int registraJogada(int score, boolean zerou) throws DadosInvalidosException {\r\n\t\tif((score) > VALOR_MAXIMO_X2P) {\r\n\t\t\tscore = VALOR_MAXIMO_X2P;\r\n\t\t}\r\n\t\tint x2p = calculax2p(score, zerou);\r\n\t\tsuper.registraJogada(score, zerou);\r\n\t\treturn x2p;\r\n\t}",
"public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}",
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }",
"@Test\n public void minamaxPlaysToDraws() {\n int matchGames = 1000;\n MinaMaxPlayer x = new MinaMaxPlayer(X);\n MinaMaxPlayer o = new MinaMaxPlayer(O);\n Match match;\n String play;\n\n\n match = new Match(matchGames, x, o);\n play = match.play();\n int draws = match.getDraws();\n Assert.assertEquals(matchGames, draws);\n\n }",
"int score();",
"int score();",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public int getPlayerScore();",
"public int getHighScore() {\n\t\treturn highscore;\n\t}",
"public void setAwayScore(int a);",
"public void setScore(Integer score) {\r\n this.score = score;\r\n }",
"Integer getMaximumResults();",
"Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}",
"public void addScore()\n {\n score += 1;\n }",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"@Override\n\tpublic void setMaxnum(long maxnum) {\n\t\t_esfTournament.setMaxnum(maxnum);\n\t}",
"public void setScore(Integer score) {\n this.score = score;\n }",
"public int getScore()\n {\n return score; \n }",
"@Override\n\tpublic void loadScore() {\n\n\t}"
] | [
"0.74880856",
"0.6947713",
"0.67987376",
"0.66360694",
"0.64762884",
"0.6459304",
"0.64426035",
"0.6326422",
"0.6313797",
"0.62316626",
"0.6190931",
"0.6168117",
"0.6151642",
"0.6135954",
"0.61123645",
"0.6111814",
"0.6107158",
"0.6095188",
"0.6095188",
"0.6095188",
"0.6095188",
"0.6078601",
"0.60767764",
"0.6073252",
"0.6054792",
"0.60494083",
"0.6037947",
"0.6037035",
"0.60028523",
"0.59931815",
"0.5985109",
"0.59771186",
"0.59618324",
"0.5936161",
"0.5915424",
"0.59127533",
"0.590487",
"0.59027404",
"0.5883151",
"0.58763105",
"0.5871105",
"0.5856262",
"0.5851911",
"0.58441997",
"0.5836395",
"0.5836273",
"0.5835773",
"0.58289653",
"0.58284783",
"0.5810805",
"0.5784035",
"0.5782464",
"0.5778367",
"0.5776537",
"0.5775836",
"0.5767695",
"0.57671756",
"0.5766143",
"0.5764453",
"0.575864",
"0.57460564",
"0.57451683",
"0.57419723",
"0.5726757",
"0.572651",
"0.5725176",
"0.57152",
"0.5713196",
"0.5712163",
"0.56925994",
"0.56925994",
"0.5680632",
"0.5674117",
"0.5670222",
"0.56685567",
"0.5666471",
"0.56649727",
"0.5661351",
"0.5650215",
"0.5650215",
"0.56499386",
"0.5639945",
"0.5639945",
"0.56388664",
"0.56282705",
"0.56280345",
"0.5623871",
"0.5623514",
"0.56163764",
"0.56160355",
"0.5605316",
"0.5605316",
"0.5600368",
"0.5600368",
"0.5600368",
"0.5600368",
"0.56001747",
"0.5598953",
"0.55974805",
"0.5592148"
] | 0.65176255 | 4 |
register max score for plantes ferry game in database | public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {
saveInitialScoretoDatabase(score, PlantesFerryID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"public int getWorstScore()\n {\n return -1;\n }",
"void setBestScore(double bestScore);",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"void setScore(long score);",
"public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}",
"int getScoreValue();",
"@Override\n\tpublic long getMaxnum() {\n\t\treturn _esfTournament.getMaxnum();\n\t}",
"public void setScore(int score) { this.score = score; }",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"int getScore();",
"public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0;\n int x = scores.size();\n if (x > max) {\n x = max;\n } \n while (i < x) {\n \t str += (i + 1) + \".\\t \" + scores.get(i).getNaam() + \"\\t\\t \" + scores.get(i).getScore() + \"\\n\";\n i++;\n }\n if(x == 0) str = \"No scores for \"+SlidePuzzleGUI.getRows()+\"x\"+SlidePuzzleGUI.getCols()+ \" puzzle!\";\n return str;\n }",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"Float getAutoScore();",
"public int getHighScore() {\n return highScore;\n }",
"public void createHighScore(String initials, int score) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, score);\n values.put(COL_INITIALS, initials);\n\n mDb.insert(TABLE_NAME, null, values);\n }",
"public void setScore(int score) {this.score = score;}",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public double getBestScore();",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"float getScore();",
"float getScore();",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public int getScore(){\n \treturn 100;\n }",
"public int getScore() {return score;}",
"static int SetScore(int p){\n\t\tif (p==1) {\n\t\t\tp1Score=p1Score+4;\n\t\t\tlblp1Score.setText(Integer.toString(p1Score));\n\t\t\t\n\t\t\t//check whether the score reaches to destination score or not..........\n\t\t\t\n\t\t\tif(p1Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p1Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==2){\n\t\t\tp2Score=p2Score+4;\n\t\t\tlblp2Score.setText(Integer.toString(p2Score));\n\t\t\t\n\t\t\tif(p2Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p2Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==3){\n\t\t\tp3Score=p3Score+4;\n\t\t\tlblp3Score.setText(Integer.toString(p3Score));\n\t\t\t\n\t\t\tif(p3Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p3Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tp4Score=p4Score+4;\n\t\t\tlblp4Score.setText(Integer.toString(p4Score));\n\t\t\t\n\t\t\tif(p4Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p4Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public int getScore() { return score; }",
"int getMaxMana();",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"public Double getHighestMainScore() {\n return highestMainScore;\n }",
"int getMaxMP();",
"int getMaxMP();",
"int getMaxMP();",
"int getMaxMP();",
"int getMaxMP();",
"int getMaxMP();",
"Float getScore();",
"int getHighScore() {\n return getStat(highScore);\n }",
"int score();",
"int score();",
"Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}",
"public int getPlayerScore();",
"private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }",
"@Override\r\n\tpublic int registraJogada(int score, boolean zerou) throws DadosInvalidosException {\r\n\t\tif((score) > VALOR_MAXIMO_X2P) {\r\n\t\t\tscore = VALOR_MAXIMO_X2P;\r\n\t\t}\r\n\t\tint x2p = calculax2p(score, zerou);\r\n\t\tsuper.registraJogada(score, zerou);\r\n\t\treturn x2p;\r\n\t}",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public void addScore(int score);",
"@Override\n public int getSpecialValue() {\n return maxBonus;\n }",
"public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"void setMaxWrongGuesses(Integer max);",
"void setScoreValue(int scoreValue);",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"public void setScore(java.lang.Integer value);",
"public ResultSet getHighestScore(String map) {\n return query(SQL_SELECT_HIGHEST_SCORE, map);\n }",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"@Override\n\tpublic void setMaxnum(long maxnum) {\n\t\t_esfTournament.setMaxnum(maxnum);\n\t}",
"private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"static public int getGoblinMaxHP(int battles){\n maxHP = rand.nextInt(8) + 10 + battles;\n currentHP = maxHP;\n return maxHP;\n }",
"public HighScore ()\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = 0;\n this.level = \"level 1\";\n }",
"public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }",
"public int getHighScore() {\n\t\treturn highscore;\n\t}"
] | [
"0.781403",
"0.7153254",
"0.71260905",
"0.70492196",
"0.69503725",
"0.6890029",
"0.6858235",
"0.679387",
"0.6688562",
"0.66811794",
"0.6658326",
"0.64635444",
"0.6454452",
"0.64257264",
"0.6422886",
"0.6403683",
"0.6374985",
"0.6374985",
"0.6374985",
"0.6374985",
"0.6364686",
"0.635854",
"0.63578254",
"0.63486576",
"0.63351065",
"0.63235074",
"0.6288707",
"0.627812",
"0.6273485",
"0.62579143",
"0.6247852",
"0.62406343",
"0.6230563",
"0.6210598",
"0.61919796",
"0.6187317",
"0.6187061",
"0.6181954",
"0.61666787",
"0.61575824",
"0.6151741",
"0.61500967",
"0.6140136",
"0.6130372",
"0.6130372",
"0.6123591",
"0.60881525",
"0.60743326",
"0.60684156",
"0.6062945",
"0.6048399",
"0.6045578",
"0.60418975",
"0.6035862",
"0.60306805",
"0.602895",
"0.60213983",
"0.6013922",
"0.60129464",
"0.60129464",
"0.60129464",
"0.60129464",
"0.60129464",
"0.60129464",
"0.601286",
"0.6012458",
"0.59969985",
"0.59969985",
"0.5992964",
"0.5987195",
"0.5986213",
"0.5959242",
"0.59537035",
"0.5951362",
"0.5950264",
"0.5942715",
"0.5934581",
"0.59344923",
"0.5925006",
"0.5925006",
"0.59248704",
"0.5922596",
"0.5917354",
"0.5917166",
"0.5916274",
"0.5915498",
"0.5915498",
"0.59125984",
"0.5911374",
"0.5904501",
"0.5895805",
"0.5895805",
"0.5895805",
"0.5895805",
"0.5890434",
"0.5890434",
"0.5889515",
"0.5886386",
"0.58823967",
"0.5881073"
] | 0.654856 | 11 |
register max score for greenacres game in database | public void saveInitialScoretoDatabase_GreenacresGame(int score) {
saveInitialScoretoDatabase(score, GreenacresID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"public int getWorstScore()\n {\n return -1;\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"void setBestScore(double bestScore);",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public void createHighScore(String initials, int score) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, score);\n values.put(COL_INITIALS, initials);\n\n mDb.insert(TABLE_NAME, null, values);\n }",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"int getScoreValue();",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"void setScore(long score);",
"public int getHighScore() {\n return highScore;\n }",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"Float getAutoScore();",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"int getScore();",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"int getMaxMana();",
"public void setScore(int score) { this.score = score; }",
"int getHighScore() {\n return getStat(highScore);\n }",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }",
"@Override\n\tpublic long getMaxnum() {\n\t\treturn _esfTournament.getMaxnum();\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}",
"public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0;\n int x = scores.size();\n if (x > max) {\n x = max;\n } \n while (i < x) {\n \t str += (i + 1) + \".\\t \" + scores.get(i).getNaam() + \"\\t\\t \" + scores.get(i).getScore() + \"\\n\";\n i++;\n }\n if(x == 0) str = \"No scores for \"+SlidePuzzleGUI.getRows()+\"x\"+SlidePuzzleGUI.getCols()+ \" puzzle!\";\n return str;\n }",
"public void addScore(int score);",
"public void setScore(int score) {this.score = score;}",
"void setMaxWrongGuesses(Integer max);",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}",
"public Double getHighestMainScore() {\n return highestMainScore;\n }",
"float getScore();",
"float getScore();",
"public int getPlayerScore();",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public int getScore() {return score;}",
"static public int getGoblinMaxHP(int battles){\n maxHP = rand.nextInt(8) + 10 + battles;\n currentHP = maxHP;\n return maxHP;\n }",
"private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}",
"public int getScore(){\n \treturn 100;\n }",
"public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public Integer getGameScore() {\n return gameScore;\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"@Override\n\tpublic int registraJogada(int maiorScore, boolean zerou) {\n\t\treturn 0;\n\t}",
"public HighScore ()\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = 0;\n this.level = \"level 1\";\n }",
"public int getScore() { return score; }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"public double getBestScore();",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public void setScore(java.lang.Integer value);",
"public int getHighScore() {\n\t\treturn highscore;\n\t}",
"public int getMaximun(){\n int highGrade = grades[0]; //assumi que grades[0] é a maior nota\n //faz o loop pelo array de notas\n for(int grade: grades){\n //se a nota for maior que highGrade. atribui essa nota a highGrade\n if(grade > highGrade){\n highGrade = grade; //nota mais alta\n }\n }\n \n return highGrade;\n }",
"int score();",
"int score();",
"void setScoreValue(int scoreValue);",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"@Override\r\n\tpublic int registraJogada(int score, boolean zerou) throws DadosInvalidosException {\r\n\t\tif((score) > VALOR_MAXIMO_X2P) {\r\n\t\t\tscore = VALOR_MAXIMO_X2P;\r\n\t\t}\r\n\t\tint x2p = calculax2p(score, zerou);\r\n\t\tsuper.registraJogada(score, zerou);\r\n\t\treturn x2p;\r\n\t}",
"public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getHomeScore();",
"public void setAwayScore(int a);",
"public int getHighscore()\n {\n return this.highscore;\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"Float getScore();",
"public int getScore()\n {\n // put your code here\n return score;\n }",
"public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }",
"public void checkHighScore() {\n\t\t//start only if inserting highscore is needed\n\t\tlevel.animal.gamePaused = true;\n\t\tlevel.createTimer();\n\t\tlevel.timer.start();\n\t\t\t\t\n\t\tlevel.setWord(\"hiscores\", 7, 175, 130);\n\t\t\n\t\treadFile();\n\t}",
"public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }",
"public static int singleGameTopScoringPlayer(int[][] scores, int g)\n {\n \n int index = 0;\n int row = 0;\n int max = scores[row][g]; //by default we assign the max value as the first value\n int nextrow = row + 1;\n \n while ( nextrow < scores.length) //total up the rows for that column\n {\n //compare if the max value is smaller than its successive value\n if (max < scores[nextrow][g])\n {\n max = scores[nextrow][g]; //if it is larger, then it becomes the new max value\n index = nextrow; //save the index in the variable called index\n }\n \n nextrow++;\n }\n \n return index;\n \n }",
"public int getAwayScore();",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"@Test\n\tpublic void finalScoreTest() {\n\t\tassertEquals(80, g1.finalScore(), .001);\n\t\tassertEquals(162, g2.finalScore(), .001);\n\t\tassertEquals(246, g3.finalScore(), .001);\n\t}",
"public void setScore(int score)\n {\n this.score = score;\n }"
] | [
"0.7856705",
"0.72834367",
"0.70670235",
"0.6868573",
"0.6854455",
"0.6811199",
"0.67563635",
"0.6523675",
"0.6471506",
"0.6443597",
"0.643904",
"0.63898593",
"0.63351953",
"0.6284619",
"0.6277795",
"0.6269395",
"0.6235937",
"0.6224347",
"0.6218255",
"0.6218255",
"0.6218255",
"0.6218255",
"0.6202701",
"0.61875165",
"0.61768407",
"0.6144044",
"0.6131166",
"0.61309224",
"0.6109643",
"0.6104925",
"0.6084707",
"0.6083423",
"0.60763687",
"0.60733",
"0.6063104",
"0.60454345",
"0.6033677",
"0.6028513",
"0.601363",
"0.59956586",
"0.5987382",
"0.59869504",
"0.5983461",
"0.59820914",
"0.598031",
"0.5980278",
"0.5973456",
"0.5973175",
"0.59357446",
"0.59334767",
"0.59285367",
"0.59209734",
"0.5919089",
"0.5903297",
"0.58981466",
"0.58981466",
"0.5894284",
"0.58920455",
"0.5888478",
"0.5879285",
"0.58774275",
"0.58753556",
"0.58657366",
"0.5853695",
"0.5849797",
"0.5849237",
"0.58429176",
"0.584281",
"0.5835148",
"0.5832395",
"0.5824128",
"0.58237606",
"0.5822086",
"0.582009",
"0.58128923",
"0.5806702",
"0.5806702",
"0.5803292",
"0.57860506",
"0.5785026",
"0.57811785",
"0.57793176",
"0.5773784",
"0.5772437",
"0.5772437",
"0.57615286",
"0.5760109",
"0.57582444",
"0.5752865",
"0.57520735",
"0.57469684",
"0.5746568",
"0.5743476",
"0.57394856",
"0.57257205",
"0.57227427",
"0.57195246",
"0.57195246",
"0.57174534",
"0.5715512"
] | 0.6632822 | 7 |
register max score for ski game in database | public void saveInitialScoretoDatabase_SkiGame(int score) {
saveInitialScoretoDatabase(score, SkiID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"void setBestScore(double bestScore);",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"void setScore(long score);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public void createHighScore(String initials, int score) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, score);\n values.put(COL_INITIALS, initials);\n\n mDb.insert(TABLE_NAME, null, values);\n }",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public void setScore(int score) { this.score = score; }",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"public int getWorstScore()\n {\n return -1;\n }",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"public void setScore(int score) {this.score = score;}",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"void setScoreValue(int scoreValue);",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public void addScore(int score);",
"public void setScore(java.lang.Integer value);",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"int getScoreValue();",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public int getHighScore() {\n return highScore;\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public void setScore(Integer score) {\r\n this.score = score;\r\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}",
"public void setScore(Integer score) {\n this.score = score;\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"int getScore();",
"public void setScore(int score) {\n this.score = score;\n }",
"public void saveInitialScoretoDatabase_DiscoveryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, DiscoveryID);\n\t}",
"public double getBestScore();",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public int getScore() {return score;}",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public int getScore() { return score; }",
"public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }",
"@Override\r\n\tpublic int registraJogada(int score, boolean zerou) throws DadosInvalidosException {\r\n\t\tif((score) > VALOR_MAXIMO_X2P) {\r\n\t\t\tscore = VALOR_MAXIMO_X2P;\r\n\t\t}\r\n\t\tint x2p = calculax2p(score, zerou);\r\n\t\tsuper.registraJogada(score, zerou);\r\n\t\treturn x2p;\r\n\t}",
"public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}",
"public void saveInitialScoretoDatabase_GreenacresGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, GreenacresID);\n\t}",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"int getHighScore() {\n return getStat(highScore);\n }",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"public static void createScore(){\n\t}",
"public Scores(int score) {\r\n this.score = score;\r\n }",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"@Override\n public int getSpecialValue() {\n return maxBonus;\n }",
"public int getScore(){\n \treturn 100;\n }",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"public void setScore(int s) {\n if (s > getHighScore()) {\n setHighScore(s);\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n String timeNow = dtf.format(now);\n setHighScoreTime(timeNow);\n }\n setStat(s, score);\n }",
"public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"public int getPlayerScore();",
"void addScore(String sessionKey, Integer levelId, Integer score) throws SessionExpiredException;",
"void setFitnessScore(double score){\n fitnessScore = score;\n }",
"Float getAutoScore();",
"public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }",
"float getScore();",
"float getScore();",
"@Override\n\tpublic void submitScoreGPGS(int score) {\n\t\tgameHelper.getGamesClient().submitScore(\"CgkIp-26x7gZEAIQAA\", score);\n\n\t}",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public void setScore(Short score) {\n this.score = score;\n }",
"public void saveInitialScoretoDatabase_AppleGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, AppleID);\n\t}",
"public void setScore(int score) {\n\t\tthis.score = score;\n\t}"
] | [
"0.74896544",
"0.7341136",
"0.7226325",
"0.7088179",
"0.69099647",
"0.6794494",
"0.6762474",
"0.66671854",
"0.66386765",
"0.6564971",
"0.6472136",
"0.6454187",
"0.64194083",
"0.6397945",
"0.63954943",
"0.639485",
"0.6393252",
"0.63873804",
"0.63856435",
"0.6357924",
"0.63301396",
"0.6330094",
"0.6272615",
"0.6249152",
"0.62423044",
"0.6227544",
"0.621156",
"0.62083524",
"0.6193277",
"0.6177006",
"0.61686194",
"0.61635834",
"0.61597955",
"0.6138544",
"0.6138544",
"0.6138544",
"0.6138544",
"0.6137604",
"0.6127488",
"0.6112203",
"0.6109617",
"0.6093902",
"0.6063343",
"0.6063215",
"0.60563487",
"0.60536784",
"0.6044733",
"0.60313874",
"0.60252315",
"0.60164076",
"0.60164076",
"0.6012532",
"0.6010916",
"0.60072833",
"0.5996219",
"0.5988646",
"0.5981047",
"0.5975126",
"0.5975126",
"0.5975126",
"0.5975126",
"0.59615654",
"0.59549767",
"0.59528065",
"0.59446394",
"0.593489",
"0.5926085",
"0.59255326",
"0.592056",
"0.5919464",
"0.5907157",
"0.59049046",
"0.589217",
"0.5877003",
"0.5863074",
"0.58619493",
"0.5860396",
"0.5840213",
"0.5838221",
"0.5838221",
"0.5837837",
"0.58272225",
"0.58260685",
"0.5823568",
"0.5823568",
"0.5819177",
"0.58191156",
"0.58109516",
"0.5809314",
"0.58019716",
"0.58011055",
"0.57970047",
"0.57968473",
"0.5793708",
"0.5793708",
"0.5784146",
"0.5778092",
"0.57775027",
"0.57757264",
"0.57736063"
] | 0.642885 | 12 |
update max score for apple game in database | public int saveMaxScore_AppleGame(int score) {
return saveMaxScore(score, AppleID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"void setBestScore(double bestScore);",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"void setScore(long score);",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"public void updateScore(int score){ bot.updateScore(score); }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public void setScore(int score) { this.score = score; }",
"public void setScore(int score) {this.score = score;}",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}",
"private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}",
"void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}",
"private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"public void setAwayScore(int a);",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"void setScoreValue(int scoreValue);",
"private void updateHighScore(int newHighScore) {\n highScore = newHighScore;\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(HIGHSCORE_KEY, highScore);\n editor.commit();\n\n }",
"public void setScore(java.lang.Integer value);",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}",
"public void saveInitialScoretoDatabase_AppleGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, AppleID);\n\t}",
"public int getWorstScore()\n {\n return -1;\n }",
"public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public void updateScore() {\n\t\tif (pellet.overlapsWith(avatar)) {\n\t\t\tavatar.addScore(1);\n\t\t\tpellet.removePellet(avatar.getLocation());\n\t\t\tSystem.out.println(\"collected pellet\");\n\t\t}\n\t}",
"public void update() {\n\t\tif (max == null || max.length < info.size())\r\n\t\t\tmax = info.stream().mapToInt(i -> Math.max(1, i[1])).toArray();\r\n\r\n\t\tfull = improve(max);\r\n\t}",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public void changeHighest()\n {\n hourCounts[18] = 100;\n }",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"public void addToScore(int ammount){\n\t\tscore+=ammount;\n\t}",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }",
"public void increaseScore(int p) {\n score += p;\n //Minden novelesnel megnezzuk, hogy elertuk-e a gyozelem szukseges pandaszamot.\n if(score >= 25 && game.getSelectedMode() == Game.GameMode.FinitPanda){\n //Ha elertuk, szolunk a jateknak hogy vege.\n game.SaveHighScore(score);\n game.gameOver();\n }\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public void addUpTotalScore(int CurrentScore) {\n\t\tCursor cursor = getDatabase().getTotalScoreData(TotalScoretableName,\n\t\t\t\ttotalScoreID);\n\n\t\tint currentTotalScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(POINT_TOTAL_SCORE_COLUMN));\n\t\t\tif (MaxScore_temp > currentTotalScore)\n\t\t\t\tcurrentTotalScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"total score is\" + MaxScore_temp + \" with ID : \"\n\t\t\t\t\t//+ totalScoreID);\n\t\t} // travel to database result\n\n\t\t// if(MaxScore < CurrentScore){\n\t\tlong RowIds = getDatabase().updateTotalScoreTable(TotalScoretableName,\n\t\t\t\ttotalScoreID, String.valueOf(CurrentScore + currentTotalScore));\n\t\t//if (RowIds == -1)\n\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t}",
"public void setScore(int paScore) {\n this.score = paScore;\n }",
"@Override\n\tpublic void executeMove(Game game) {\n\t\t//initiatizes the coordinate array and score\n\t\tint[]coor=new int[2];\n\t\tint score=0;\n\t\t//loops trough each coodrinate to see which would yield the highest score\n\t\t//and save that coordinate\n\t\tfor(int x = 0; x<game.getBoard().getRows(); x++){\n\t\t\tfor(int y=0; y<game.getBoard().getCols();y++){\n\t\t\t\tif(game.getBoard().validGemAt(x, y)){\n\t\t\t\t\tint current=game.getPolicy().scoreMove(x, y, game.getBoard());\n\t\t\t\t\t//when a bigger score is found it saves it \n\t\t\t\t\tif(current>score){\n\t\t\t\t\t\tscore = current;\n\t\t\t\t\t\tcoor[0]=x;\n\t\t\t\t\t\tcoor[1]=y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//calls the game to adjust score \n\t\tgame.removeGemAdjustScore(coor[0], coor[1]);\n\n\t}",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"public void addScore(int score);",
"public int getScore() {return score;}",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }",
"public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }",
"private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}",
"@Override\r\n\tpublic void updateScore(String name, int lv, int score) {\r\n\t\t\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n String update = \"REPLACE INTO SINGLEPLAYERDB\\n\"\r\n \t\t+ \" (NAME_PLAYER, LV, SCORE)\\n\"\r\n \t\t+ \"VALUES\\n\"\r\n \t\t+ \"('\" + name + \"','\" + lv + \"','\" + score + \"')\";\r\n \r\n stmt.executeQuery(update);\r\n \r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private void processScore(long time) {\r\n String oldScore = myDb.getSquirtleScore(user);\r\n if (oldScore.equals(\"-1\")) {\r\n myDb.setSquirtleScore(user, Integer.toString(score));\r\n String message = \"Oh no, you killed Squirtle! You set a personal record of \" +\r\n Integer.toString(score) + \" points. You survived for \" + String.valueOf(time) + \" seconds. Check the PERSONAL RECORDS to see your updated score!\";\r\n showMessage(\"Game Over!\", message, this);\r\n } else if (score < Integer.valueOf(oldScore)) {\r\n String message = \"Oh no, you killed Squirtle! Unfortunately your score of \" +\r\n Integer.toString(score) + \" did not beat your record of \" + myDb.getSquirtleScore(user) +\r\n \" points.\" + \" You survived for \" + String.valueOf(time) + \" seconds. \" + \"Better luck next time!\";\r\n showMessage(\"Game Over!\", message, this);\r\n } else {\r\n myDb.setSquirtleScore(user, Integer.toString(score));\r\n String message = \"Oh no, you killed Squirtle! You set a new personal record of \" +\r\n Integer.toString(score) + \" points, beating your previous record of \" + oldScore +\r\n \" points. You survived for \" + String.valueOf(time) + \" seconds. Check the PERSONAL RECORDS to see your updated score!\";\r\n showMessage(\"Game Over!\", message, this);\r\n }\r\n\r\n }",
"@Override\npublic void update(int score) {\n\t\n}",
"public void updateScores(double attempt) {\r\n \tif(previousScore == 0){\r\n \t\tpreviousScore = currentScore;\r\n \t}else{\r\n \t\tbeforePreviousScore = previousScore;\r\n \t\tpreviousScore = currentScore;\r\n \t}\r\n this.currentScore = 100*(attempt \r\n\t\t\t\t- (benchmark - (maximumMark - benchmark)/NUMBEROFLEVEL))\r\n\t\t\t\t/(((maximumMark - benchmark)/NUMBEROFLEVEL)*2);\r\n }",
"public void setScore(Integer score) {\r\n this.score = score;\r\n }",
"Float getAutoScore();",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public void addScore()\n {\n score += 1;\n }",
"public void setScore(double score) {\r\n this.score = score;\r\n }"
] | [
"0.6812596",
"0.6665922",
"0.6664718",
"0.6628026",
"0.6612718",
"0.6594515",
"0.6591684",
"0.65435076",
"0.6539344",
"0.65012884",
"0.64633805",
"0.64356416",
"0.6364782",
"0.63317025",
"0.63054943",
"0.6302387",
"0.6293379",
"0.6192078",
"0.61912507",
"0.61585045",
"0.6156861",
"0.61395633",
"0.6138074",
"0.61183465",
"0.6107003",
"0.60970277",
"0.6094734",
"0.6093291",
"0.6077667",
"0.6076134",
"0.6074928",
"0.6061219",
"0.6052064",
"0.6050572",
"0.60251665",
"0.6022524",
"0.60113907",
"0.59581",
"0.5952911",
"0.59442145",
"0.5936981",
"0.5918168",
"0.59070826",
"0.5905067",
"0.5903862",
"0.5902434",
"0.5879728",
"0.5873597",
"0.587249",
"0.587249",
"0.587249",
"0.587249",
"0.58600646",
"0.5859042",
"0.5854037",
"0.5845746",
"0.5832141",
"0.5827832",
"0.5821789",
"0.5804637",
"0.58013463",
"0.579452",
"0.5790863",
"0.5790863",
"0.5789467",
"0.5787963",
"0.5786102",
"0.5783612",
"0.57823336",
"0.57817376",
"0.5776996",
"0.57738346",
"0.577122",
"0.57616097",
"0.5761561",
"0.5759305",
"0.5755401",
"0.57425934",
"0.57425934",
"0.57425934",
"0.57425934",
"0.5728027",
"0.5725024",
"0.5718381",
"0.5715327",
"0.5707124",
"0.5704409",
"0.5703789",
"0.5701884",
"0.5694581",
"0.56896025",
"0.5682722",
"0.5679335",
"0.56747913",
"0.56692266",
"0.5668742",
"0.5666186",
"0.56645614",
"0.5657182",
"0.56553626"
] | 0.7330693 | 0 |
update max score for discovery game in database | public int saveMaxScore_DiscoveryGame(int score) {
return saveMaxScore(score, DiscoveryID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"void setBestScore(double bestScore);",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"public void updateScore(int score){ bot.updateScore(score); }",
"void setScore(long score);",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}",
"private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}",
"public void update() {\n\t\tif (max == null || max.length < info.size())\r\n\t\t\tmax = info.stream().mapToInt(i -> Math.max(1, i[1])).toArray();\r\n\r\n\t\tfull = improve(max);\r\n\t}",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"public void setScore(int score) { this.score = score; }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"void setScoreValue(int scoreValue);",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public void setScore(int score) {this.score = score;}",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"private void updateHighScore(int newHighScore) {\n highScore = newHighScore;\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(HIGHSCORE_KEY, highScore);\n editor.commit();\n\n }",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}",
"public void setAwayScore(int a);",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"public void updateScore() {\n\t\tif (pellet.overlapsWith(avatar)) {\n\t\t\tavatar.addScore(1);\n\t\t\tpellet.removePellet(avatar.getLocation());\n\t\t\tSystem.out.println(\"collected pellet\");\n\t\t}\n\t}",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public void updateHighestRank(int newHighestRank) {\n try {\n byte[] highestRank = new byte[5];\n\n // Updating the number of records (adding whitespace to end, so thee entire byte array is filled)\n String newHighestRankString = HelperFunctions.addWhitespacesToEnd(Integer.toString(newHighestRank), 5);\n\n byte [] newHighestRankBytes = newHighestRankString.getBytes();\n\n for (int i = 0; i < newHighestRankBytes.length; i++) {\n // Truncating if the characters for newHighestRankString exceed the allocated bytes for HIGHEST-RANK\n if (i == 5) {\n break;\n }\n highestRank[i] = newHighestRankBytes[i];\n }\n\n // Writing the updated number of records back to the config file\n RandomAccessFile raf = new RandomAccessFile(this.databaseName + \".config\", \"rws\");\n\n raf.getChannel().position(104);\n raf.write(highestRank);\n raf.close();\n \n } catch (IOException ex) {\n ex.printStackTrace();\n } \n }",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"public void setScore(java.lang.Integer value);",
"@Override\npublic void update(int score) {\n\t\n}",
"public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}",
"public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public int getWorstScore()\n {\n return -1;\n }",
"public void changeHighest()\n {\n hourCounts[18] = 100;\n }",
"private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }",
"public void updateGame(){\n\t\tbird.tick(input);\n\t\tthis.spawnObstacle();\n\t\tif(this.obstacles.size() > 0 && this.goals.size() > 0){\n\t\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\t\tObstacle obs = obstacles.get(i);\n\t\t\t\tobs.tick();\n\t\t\t\tif(this.bird.onCollision(obs.x, obs.y, obs.w,obs.h)){\n\t\t\t\t\tthis.gameOver = true;\n\t\t\t\t\tSound.dead.play();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<this.goals.size();i++){\n\t\t\t\tGoal goal = goals.get(i);\n\t\t\t\tgoal.tick();\n\t\t\t\tif(this.bird.onCollision(goal.x, goal.y, goal.w,goal.h) && goal.active){\n\t\t\t\t\tSound.clink.play();\n\t\t\t\t\tthis.numGoals++;\n\t\t\t\t\tif(this.numGoals > this.bestScore) this.bestScore = this.numGoals;\n\t\t\t\t\tgoal.active = false;\n\t\t\t\t\tSystem.out.println(this.numGoals);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"void setFitnessScore(double score){\n fitnessScore = score;\n }",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"void updateScore () {\n scoreOutput.setText(Integer.toString(score));\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"protected void updateBest() {\n\t\tbestScoreView.setText(\"Best: \" + bestScore);\n\t}",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }",
"public void updateChannelPopularity() {\n int sum = 0, i = 0;\n for (Map.Entry<String, Properties> entry : videoData.entrySet()) {\n sum += entry.getValue().popularityScore;\n i++;\n }\n if (i > 0) {\n channelPopularityScore = sum / i;\n } else {\n channelPopularityScore = 0;\n }\n\n if (channelPopularityScore < 0){\n channelPopularityScore = 0;\n }\n\n }",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void checkBestScoreAndChangeIt() {\n \tbestTime = readPreference(difficulty);\n \t\n \tif (currentTime < bestTime) {\n \t\tbestTime = currentTime;\n \t\tsavePreference(bestTime, difficulty);\n \t}\n }",
"public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }",
"@Override\n\tpublic void update() {\n\t\tif(isSaveScore()){\n\t\t\tsaveScore();\n\t\t\tmanager.reconstruct();\n\t\t}\n\t\tmanager.move();\n\t}",
"public static void newHighscore(int h){\n highscore = h;\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"highscore\",highscore);\n editor.commit();\n }",
"@Override\r\n\tpublic void updateScore(String name, int lv, int score) {\r\n\t\t\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n String update = \"REPLACE INTO SINGLEPLAYERDB\\n\"\r\n \t\t+ \" (NAME_PLAYER, LV, SCORE)\\n\"\r\n \t\t+ \"VALUES\\n\"\r\n \t\t+ \"('\" + name + \"','\" + lv + \"','\" + score + \"')\";\r\n \r\n stmt.executeQuery(update);\r\n \r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t\t\r\n\t\t\r\n\t}",
"public void saveInitialScoretoDatabase_DiscoveryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, DiscoveryID);\n\t}",
"private void updateNrPlayerValues(String target) {\n database.getReference(gameCodeRef).child(target).addListenerForSingleValueEvent(new ValueEventListener()\n {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n String value = String.valueOf(snapshot.getValue());\n if (value.isEmpty() || value == null || value.equals(null) || value.contains(\"null\")){\n startDBValue(target);\n value = \"1\";\n }\n else {\n increaseDBValue(target, Integer.parseInt(value));\n }\n switch (target){\n case \"NumberOfPlayers\":\n break;\n case \"PlayersDoneBrainstorming\":\n checkPlayersDoneBrainstorming(Integer.parseInt(value)+1);\n break;\n case \"PlayersDoneEliminating\":\n checkPlayersDoneEliminating(Integer.parseInt(value)+1);\n break;\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.w(TAG,\"loadGamecode:onCancelled\", error.toException());\n }\n\n });\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setHighScore(int newScore) {\n\t\tpreferences().putInteger(username() + HIGH_SCORE, newScore);\n\t\tsave();\n\t}",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public void updateScores(double attempt) {\r\n \tif(previousScore == 0){\r\n \t\tpreviousScore = currentScore;\r\n \t}else{\r\n \t\tbeforePreviousScore = previousScore;\r\n \t\tpreviousScore = currentScore;\r\n \t}\r\n this.currentScore = 100*(attempt \r\n\t\t\t\t- (benchmark - (maximumMark - benchmark)/NUMBEROFLEVEL))\r\n\t\t\t\t/(((maximumMark - benchmark)/NUMBEROFLEVEL)*2);\r\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"public void addScore(int score);",
"public int getScore() {return score;}",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }"
] | [
"0.6857337",
"0.6812073",
"0.6775054",
"0.6737989",
"0.6732902",
"0.6689383",
"0.66402626",
"0.6586388",
"0.6570718",
"0.6527727",
"0.6525078",
"0.65112925",
"0.64404655",
"0.6413797",
"0.6381524",
"0.6371807",
"0.63586485",
"0.63047075",
"0.62699956",
"0.62683445",
"0.62616974",
"0.6247378",
"0.6241254",
"0.61989677",
"0.6169249",
"0.6146074",
"0.61416495",
"0.613237",
"0.6131794",
"0.61303645",
"0.61263",
"0.61149454",
"0.6114068",
"0.60744536",
"0.6068026",
"0.60654783",
"0.6049394",
"0.60430133",
"0.6032343",
"0.60315216",
"0.60249114",
"0.59920335",
"0.5991062",
"0.59865373",
"0.5981666",
"0.5975247",
"0.5959857",
"0.594552",
"0.59395677",
"0.59310997",
"0.5930047",
"0.5927567",
"0.5917401",
"0.5914815",
"0.5913877",
"0.5902029",
"0.5899062",
"0.58902055",
"0.58902055",
"0.58902055",
"0.58902055",
"0.5879617",
"0.5855477",
"0.585425",
"0.5844191",
"0.58233964",
"0.5822239",
"0.5819332",
"0.5809868",
"0.5808581",
"0.58075625",
"0.57915425",
"0.5783005",
"0.5770689",
"0.57705814",
"0.57705814",
"0.5761867",
"0.57552904",
"0.5755064",
"0.5754095",
"0.5753998",
"0.57515043",
"0.574818",
"0.5745039",
"0.5740132",
"0.572743",
"0.5726626",
"0.57155734",
"0.57155734",
"0.57155734",
"0.57155734",
"0.5714441",
"0.5711223",
"0.5704504",
"0.569096",
"0.56890035",
"0.5688643",
"0.5669852",
"0.56628203",
"0.5660662"
] | 0.7238351 | 0 |
update max score for plantes ferry game in database | public int saveMaxScore_PlantesFerryGame(int score) {
return saveMaxScore(score, PlantesFerryID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"void setBestScore(double bestScore);",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"void setScore(long score);",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public void updateScore(int score){ bot.updateScore(score); }",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"public void setScore(int score) { this.score = score; }",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public void setScore(int score) {this.score = score;}",
"@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}",
"void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}",
"public int getWorstScore()\n {\n return -1;\n }",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"void setScoreValue(int scoreValue);",
"private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"public void update() {\n\t\tif (max == null || max.length < info.size())\r\n\t\t\tmax = info.stream().mapToInt(i -> Math.max(1, i[1])).toArray();\r\n\r\n\t\tfull = improve(max);\r\n\t}",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"public void increaseScore(int p) {\n score += p;\n //Minden novelesnel megnezzuk, hogy elertuk-e a gyozelem szukseges pandaszamot.\n if(score >= 25 && game.getSelectedMode() == Game.GameMode.FinitPanda){\n //Ha elertuk, szolunk a jateknak hogy vege.\n game.SaveHighScore(score);\n game.gameOver();\n }\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }",
"public void setAwayScore(int a);",
"private void updateHighScore(int newHighScore) {\n highScore = newHighScore;\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(HIGHSCORE_KEY, highScore);\n editor.commit();\n\n }",
"public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }",
"public void setScore(java.lang.Integer value);",
"public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }",
"public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public void setScore(int score)\n {\n this.score = score;\n }",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public void changeHighest()\n {\n hourCounts[18] = 100;\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"@Override\r\n\tpublic void updateScore(String name, int lv, int score) {\r\n\t\t\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n String update = \"REPLACE INTO SINGLEPLAYERDB\\n\"\r\n \t\t+ \" (NAME_PLAYER, LV, SCORE)\\n\"\r\n \t\t+ \"VALUES\\n\"\r\n \t\t+ \"('\" + name + \"','\" + lv + \"','\" + score + \"')\";\r\n \r\n stmt.executeQuery(update);\r\n \r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public Double getHighestMainScore() {\n return highestMainScore;\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"@Override\n\tpublic void executeMove(Game game) {\n\t\t//initiatizes the coordinate array and score\n\t\tint[]coor=new int[2];\n\t\tint score=0;\n\t\t//loops trough each coodrinate to see which would yield the highest score\n\t\t//and save that coordinate\n\t\tfor(int x = 0; x<game.getBoard().getRows(); x++){\n\t\t\tfor(int y=0; y<game.getBoard().getCols();y++){\n\t\t\t\tif(game.getBoard().validGemAt(x, y)){\n\t\t\t\t\tint current=game.getPolicy().scoreMove(x, y, game.getBoard());\n\t\t\t\t\t//when a bigger score is found it saves it \n\t\t\t\t\tif(current>score){\n\t\t\t\t\t\tscore = current;\n\t\t\t\t\t\tcoor[0]=x;\n\t\t\t\t\t\tcoor[1]=y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//calls the game to adjust score \n\t\tgame.removeGemAdjustScore(coor[0], coor[1]);\n\n\t}",
"public int getScore() {return score;}",
"public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }",
"@Test\n void updateScore() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setTurn(true);\n p.updateScore(3);\n assertTrue(p.getScore()==3);\n\n p = new RealPlayer('b', \"ciccia\");\n p.updateScore(-1);\n assertTrue(p.getScore()==0);\n }",
"@Override\npublic void update(int score) {\n\t\n}",
"Float getAutoScore();",
"private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }",
"static int SetScore(int p){\n\t\tif (p==1) {\n\t\t\tp1Score=p1Score+4;\n\t\t\tlblp1Score.setText(Integer.toString(p1Score));\n\t\t\t\n\t\t\t//check whether the score reaches to destination score or not..........\n\t\t\t\n\t\t\tif(p1Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p1Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==2){\n\t\t\tp2Score=p2Score+4;\n\t\t\tlblp2Score.setText(Integer.toString(p2Score));\n\t\t\t\n\t\t\tif(p2Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p2Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==3){\n\t\t\tp3Score=p3Score+4;\n\t\t\tlblp3Score.setText(Integer.toString(p3Score));\n\t\t\t\n\t\t\tif(p3Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p3Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tp4Score=p4Score+4;\n\t\t\tlblp4Score.setText(Integer.toString(p4Score));\n\t\t\t\n\t\t\tif(p4Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p4Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"private void setMaxLoss(float maxloss) \n\t{\n\t\tif (Math.abs(maxloss) < 1.0f)\n\t\t{\n\t\t\t_maxloss = Math.abs(maxloss);\t\n\t\t}\n\t}",
"public void setScore(float score) {\n this.score = score;\n }",
"public void setScore(Float score) {\n this.score = score;\n }",
"public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void updateHighestRank(int newHighestRank) {\n try {\n byte[] highestRank = new byte[5];\n\n // Updating the number of records (adding whitespace to end, so thee entire byte array is filled)\n String newHighestRankString = HelperFunctions.addWhitespacesToEnd(Integer.toString(newHighestRank), 5);\n\n byte [] newHighestRankBytes = newHighestRankString.getBytes();\n\n for (int i = 0; i < newHighestRankBytes.length; i++) {\n // Truncating if the characters for newHighestRankString exceed the allocated bytes for HIGHEST-RANK\n if (i == 5) {\n break;\n }\n highestRank[i] = newHighestRankBytes[i];\n }\n\n // Writing the updated number of records back to the config file\n RandomAccessFile raf = new RandomAccessFile(this.databaseName + \".config\", \"rws\");\n\n raf.getChannel().position(104);\n raf.write(highestRank);\n raf.close();\n \n } catch (IOException ex) {\n ex.printStackTrace();\n } \n }"
] | [
"0.6930378",
"0.68875533",
"0.6879101",
"0.6876994",
"0.6808165",
"0.67890006",
"0.67835736",
"0.6777461",
"0.6766736",
"0.6749222",
"0.67410946",
"0.6650823",
"0.66398305",
"0.65204704",
"0.6498359",
"0.64770025",
"0.64736575",
"0.6445564",
"0.6438224",
"0.6436122",
"0.642905",
"0.63971376",
"0.63352424",
"0.6331054",
"0.6331048",
"0.63215554",
"0.63201326",
"0.63038397",
"0.6298232",
"0.6279449",
"0.6267028",
"0.62585014",
"0.6238985",
"0.6234396",
"0.6204049",
"0.6197155",
"0.61942434",
"0.618637",
"0.6183149",
"0.6162896",
"0.61472785",
"0.6144498",
"0.6135019",
"0.6126369",
"0.6120183",
"0.61159563",
"0.60762036",
"0.60762036",
"0.60762036",
"0.60762036",
"0.6056407",
"0.6043569",
"0.6040962",
"0.6040765",
"0.60234535",
"0.6016561",
"0.60101867",
"0.60045505",
"0.60031307",
"0.5991282",
"0.5990977",
"0.59903467",
"0.5987404",
"0.59790134",
"0.59573",
"0.59559774",
"0.5952556",
"0.59518653",
"0.59518653",
"0.59427273",
"0.59382313",
"0.5933315",
"0.59309906",
"0.5930052",
"0.5925231",
"0.5922976",
"0.5916299",
"0.5915372",
"0.591137",
"0.5908324",
"0.59068954",
"0.59068954",
"0.59068954",
"0.59068954",
"0.59040856",
"0.58946806",
"0.58859164",
"0.5881668",
"0.5880385",
"0.5877214",
"0.58740175",
"0.587369",
"0.58714455",
"0.58670306",
"0.5864752",
"0.5862878",
"0.58402175",
"0.5831848",
"0.5831237",
"0.5831053"
] | 0.75167406 | 0 |
update max score for greenacres game in database | public int saveMaxScore_GreenacresGame(int score) {
return saveMaxScore(score, GreenacresID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"void setBestScore(double bestScore);",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"public void updateScore(int score){ bot.updateScore(score); }",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"void setScore(long score);",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"public void setScore(int score) { this.score = score; }",
"public void setScore(int score) {this.score = score;}",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"@Override\n\tpublic void executeMove(Game game) {\n\t\t//initiatizes the coordinate array and score\n\t\tint[]coor=new int[2];\n\t\tint score=0;\n\t\t//loops trough each coodrinate to see which would yield the highest score\n\t\t//and save that coordinate\n\t\tfor(int x = 0; x<game.getBoard().getRows(); x++){\n\t\t\tfor(int y=0; y<game.getBoard().getCols();y++){\n\t\t\t\tif(game.getBoard().validGemAt(x, y)){\n\t\t\t\t\tint current=game.getPolicy().scoreMove(x, y, game.getBoard());\n\t\t\t\t\t//when a bigger score is found it saves it \n\t\t\t\t\tif(current>score){\n\t\t\t\t\t\tscore = current;\n\t\t\t\t\t\tcoor[0]=x;\n\t\t\t\t\t\tcoor[1]=y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//calls the game to adjust score \n\t\tgame.removeGemAdjustScore(coor[0], coor[1]);\n\n\t}",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public int getWorstScore()\n {\n return -1;\n }",
"public void setAwayScore(int a);",
"private void updateHighScore(int newHighScore) {\n highScore = newHighScore;\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(HIGHSCORE_KEY, highScore);\n editor.commit();\n\n }",
"void setScoreValue(int scoreValue);",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public void saveInitialScoretoDatabase_GreenacresGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, GreenacresID);\n\t}",
"public void update() {\n\t\tif (max == null || max.length < info.size())\r\n\t\t\tmax = info.stream().mapToInt(i -> Math.max(1, i[1])).toArray();\r\n\r\n\t\tfull = improve(max);\r\n\t}",
"private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public void changeHighest()\n {\n hourCounts[18] = 100;\n }",
"private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}",
"public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"private void setMaxLoss(float maxloss) \n\t{\n\t\tif (Math.abs(maxloss) < 1.0f)\n\t\t{\n\t\t\t_maxloss = Math.abs(maxloss);\t\n\t\t}\n\t}",
"public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public void setScore(java.lang.Integer value);",
"public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }",
"public Double getHighestMainScore() {\n return highestMainScore;\n }",
"public void updateGame(){\n\t\tbird.tick(input);\n\t\tthis.spawnObstacle();\n\t\tif(this.obstacles.size() > 0 && this.goals.size() > 0){\n\t\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\t\tObstacle obs = obstacles.get(i);\n\t\t\t\tobs.tick();\n\t\t\t\tif(this.bird.onCollision(obs.x, obs.y, obs.w,obs.h)){\n\t\t\t\t\tthis.gameOver = true;\n\t\t\t\t\tSound.dead.play();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<this.goals.size();i++){\n\t\t\t\tGoal goal = goals.get(i);\n\t\t\t\tgoal.tick();\n\t\t\t\tif(this.bird.onCollision(goal.x, goal.y, goal.w,goal.h) && goal.active){\n\t\t\t\t\tSound.clink.play();\n\t\t\t\t\tthis.numGoals++;\n\t\t\t\t\tif(this.numGoals > this.bestScore) this.bestScore = this.numGoals;\n\t\t\t\t\tgoal.active = false;\n\t\t\t\t\tSystem.out.println(this.numGoals);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"void updateMax(StockNode a){\n\t\tif(maxNode==null){\r\n\t\t\tmaxNode=a;\r\n\t\t} else { \r\n\t\t\tif(a.stockValue>maxNode.stockValue){\r\n\t\t\t\tmaxNode=a;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public void updateHighScoreText(int pacScore,int currentHighScore) {\n\t\tif(pacScore>currentHighScore)\n\t\t\thighScore.setText(\"\"+pacScore);\n\t}",
"public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"@Test\n void updateScore() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setTurn(true);\n p.updateScore(3);\n assertTrue(p.getScore()==3);\n\n p = new RealPlayer('b', \"ciccia\");\n p.updateScore(-1);\n assertTrue(p.getScore()==0);\n }",
"public void increaseScore(int p) {\n score += p;\n //Minden novelesnel megnezzuk, hogy elertuk-e a gyozelem szukseges pandaszamot.\n if(score >= 25 && game.getSelectedMode() == Game.GameMode.FinitPanda){\n //Ha elertuk, szolunk a jateknak hogy vege.\n game.SaveHighScore(score);\n game.gameOver();\n }\n }",
"public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public static void newHighscore(int h){\n highscore = h;\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"highscore\",highscore);\n editor.commit();\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }",
"Float getAutoScore();",
"public void updateScore(int playerScore){\n\t\tscore += playerScore;\n\t\tscoreTotalLabel.setText(\"\" + score);\n\t}",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setHighScore(int newScore) {\n\t\tpreferences().putInteger(username() + HIGH_SCORE, newScore);\n\t\tsave();\n\t}",
"public void addUpTotalScore(int CurrentScore) {\n\t\tCursor cursor = getDatabase().getTotalScoreData(TotalScoretableName,\n\t\t\t\ttotalScoreID);\n\n\t\tint currentTotalScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(POINT_TOTAL_SCORE_COLUMN));\n\t\t\tif (MaxScore_temp > currentTotalScore)\n\t\t\t\tcurrentTotalScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"total score is\" + MaxScore_temp + \" with ID : \"\n\t\t\t\t\t//+ totalScoreID);\n\t\t} // travel to database result\n\n\t\t// if(MaxScore < CurrentScore){\n\t\tlong RowIds = getDatabase().updateTotalScoreTable(TotalScoretableName,\n\t\t\t\ttotalScoreID, String.valueOf(CurrentScore + currentTotalScore));\n\t\t//if (RowIds == -1)\n\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t}",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"@Test\n\tpublic void finalScoreTest() {\n\t\tassertEquals(80, g1.finalScore(), .001);\n\t\tassertEquals(162, g2.finalScore(), .001);\n\t\tassertEquals(246, g3.finalScore(), .001);\n\t}",
"public void updateHighestRank(int newHighestRank) {\n try {\n byte[] highestRank = new byte[5];\n\n // Updating the number of records (adding whitespace to end, so thee entire byte array is filled)\n String newHighestRankString = HelperFunctions.addWhitespacesToEnd(Integer.toString(newHighestRank), 5);\n\n byte [] newHighestRankBytes = newHighestRankString.getBytes();\n\n for (int i = 0; i < newHighestRankBytes.length; i++) {\n // Truncating if the characters for newHighestRankString exceed the allocated bytes for HIGHEST-RANK\n if (i == 5) {\n break;\n }\n highestRank[i] = newHighestRankBytes[i];\n }\n\n // Writing the updated number of records back to the config file\n RandomAccessFile raf = new RandomAccessFile(this.databaseName + \".config\", \"rws\");\n\n raf.getChannel().position(104);\n raf.write(highestRank);\n raf.close();\n \n } catch (IOException ex) {\n ex.printStackTrace();\n } \n }",
"private void processScore(long time) {\r\n String oldScore = myDb.getSquirtleScore(user);\r\n if (oldScore.equals(\"-1\")) {\r\n myDb.setSquirtleScore(user, Integer.toString(score));\r\n String message = \"Oh no, you killed Squirtle! You set a personal record of \" +\r\n Integer.toString(score) + \" points. You survived for \" + String.valueOf(time) + \" seconds. Check the PERSONAL RECORDS to see your updated score!\";\r\n showMessage(\"Game Over!\", message, this);\r\n } else if (score < Integer.valueOf(oldScore)) {\r\n String message = \"Oh no, you killed Squirtle! Unfortunately your score of \" +\r\n Integer.toString(score) + \" did not beat your record of \" + myDb.getSquirtleScore(user) +\r\n \" points.\" + \" You survived for \" + String.valueOf(time) + \" seconds. \" + \"Better luck next time!\";\r\n showMessage(\"Game Over!\", message, this);\r\n } else {\r\n myDb.setSquirtleScore(user, Integer.toString(score));\r\n String message = \"Oh no, you killed Squirtle! You set a new personal record of \" +\r\n Integer.toString(score) + \" points, beating your previous record of \" + oldScore +\r\n \" points. You survived for \" + String.valueOf(time) + \" seconds. Check the PERSONAL RECORDS to see your updated score!\";\r\n showMessage(\"Game Over!\", message, this);\r\n }\r\n\r\n }",
"void setMaximum(int max);",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }"
] | [
"0.7014767",
"0.6779858",
"0.67432857",
"0.6701521",
"0.6679369",
"0.6642227",
"0.6622955",
"0.6580926",
"0.65400934",
"0.6510005",
"0.6459657",
"0.6448232",
"0.6423609",
"0.6392783",
"0.63346475",
"0.63128614",
"0.6308673",
"0.6291227",
"0.62630606",
"0.6245805",
"0.6224664",
"0.62039745",
"0.6181931",
"0.61558396",
"0.6149378",
"0.6132252",
"0.6129194",
"0.6129121",
"0.61259735",
"0.6117449",
"0.6110746",
"0.6089136",
"0.60845256",
"0.60740525",
"0.6042897",
"0.6039737",
"0.6022311",
"0.6015257",
"0.60138726",
"0.6012649",
"0.6008425",
"0.60040843",
"0.6002966",
"0.59973127",
"0.59748465",
"0.5964445",
"0.5953364",
"0.5951855",
"0.5946369",
"0.59296703",
"0.5914823",
"0.5891657",
"0.58828926",
"0.5882183",
"0.58788586",
"0.587753",
"0.5873289",
"0.5864268",
"0.5864268",
"0.5864268",
"0.5864268",
"0.58541554",
"0.5853534",
"0.58522356",
"0.5849455",
"0.5829294",
"0.5825074",
"0.5796065",
"0.57756525",
"0.57694274",
"0.57642037",
"0.5755907",
"0.5748765",
"0.57473665",
"0.5736962",
"0.57331836",
"0.5732929",
"0.57314956",
"0.57267094",
"0.57236564",
"0.5723431",
"0.57218236",
"0.5713956",
"0.57109505",
"0.5705465",
"0.5700427",
"0.569931",
"0.569931",
"0.5696803",
"0.56909066",
"0.56898844",
"0.5685605",
"0.5685562",
"0.56851333",
"0.5679634",
"0.56777537",
"0.5674263",
"0.5671145",
"0.567092",
"0.56680846"
] | 0.75380313 | 0 |
update max score for ski game in database | public int saveMaxScore_SkiGame(int score) {
return saveMaxScore(score, SkiID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"void setBestScore(double bestScore);",
"private int saveMaxScore(int CurrentScore, String id) {\n\t\tCursor cursor = getDatabase().getScoreData(ScoretableName, id);\n\n\t\tint MaxScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(SCORE_MAXSCORE_COLUMN));\n\t\t\tif (MaxScore_temp > MaxScore)\n\t\t\t\tMaxScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"MaxScore is\" + MaxScore_temp + \" with ID : \" + ID);\n\t\t} // travel to database result\n\n\t\taddUpTotalScore(CurrentScore);\n\n\t\tif (MaxScore < CurrentScore) {\n\t\t\tlong RowIds = getDatabase().updateScoreTable(ScoretableName, id,\n\t\t\t\t\tString.valueOf(CurrentScore));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\n\t\t\treturn CurrentScore;\n\t\t}\n\n\t\treturn MaxScore;\n\n\t}",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"void setScore(long score);",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"public void updateScore(int score){ bot.updateScore(score); }",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public void setScore(int score) { this.score = score; }",
"void setScoreValue(int scoreValue);",
"private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"public void setScore(int score) {this.score = score;}",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}",
"public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public void setScore(java.lang.Integer value);",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"private void updateHighScore(int newHighScore) {\n highScore = newHighScore;\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(HIGHSCORE_KEY, highScore);\n editor.commit();\n\n }",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }",
"public void update() {\n\t\tif (max == null || max.length < info.size())\r\n\t\t\tmax = info.stream().mapToInt(i -> Math.max(1, i[1])).toArray();\r\n\r\n\t\tfull = improve(max);\r\n\t}",
"public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }",
"public void setHighscore(int score)\n {\n this.highscore = score;\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public int getWorstScore()\n {\n return -1;\n }",
"@Override\r\n\tpublic void updateScore(String name, int lv, int score) {\r\n\t\t\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n String update = \"REPLACE INTO SINGLEPLAYERDB\\n\"\r\n \t\t+ \" (NAME_PLAYER, LV, SCORE)\\n\"\r\n \t\t+ \"VALUES\\n\"\r\n \t\t+ \"('\" + name + \"','\" + lv + \"','\" + score + \"')\";\r\n \r\n stmt.executeQuery(update);\r\n \r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t\t\r\n\t\t\r\n\t}",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(Integer score) {\r\n this.score = score;\r\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }",
"public void updateHighestRank(int newHighestRank) {\n try {\n byte[] highestRank = new byte[5];\n\n // Updating the number of records (adding whitespace to end, so thee entire byte array is filled)\n String newHighestRankString = HelperFunctions.addWhitespacesToEnd(Integer.toString(newHighestRank), 5);\n\n byte [] newHighestRankBytes = newHighestRankString.getBytes();\n\n for (int i = 0; i < newHighestRankBytes.length; i++) {\n // Truncating if the characters for newHighestRankString exceed the allocated bytes for HIGHEST-RANK\n if (i == 5) {\n break;\n }\n highestRank[i] = newHighestRankBytes[i];\n }\n\n // Writing the updated number of records back to the config file\n RandomAccessFile raf = new RandomAccessFile(this.databaseName + \".config\", \"rws\");\n\n raf.getChannel().position(104);\n raf.write(highestRank);\n raf.close();\n \n } catch (IOException ex) {\n ex.printStackTrace();\n } \n }",
"public void setScore(int s) {\n if (s > getHighScore()) {\n setHighScore(s);\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n String timeNow = dtf.format(now);\n setHighScoreTime(timeNow);\n }\n setStat(s, score);\n }",
"private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }",
"public void setScore(Integer score) {\n this.score = score;\n }",
"public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }",
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"public static void SaveBestScore(int new_score)\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(score_file_name, \"UTF-8\");\n writer.print(new_score);\n writer.close();\n currentBestScore = new_score;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + score_file_name + \".\"); }\n }",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public void saveInitialScoretoDatabase_SkiGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, SkiID);\n\t}",
"@Override\npublic void update(int score) {\n\t\n}",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"public void setHighScore(int newScore) {\n\t\tpreferences().putInteger(username() + HIGH_SCORE, newScore);\n\t\tsave();\n\t}",
"@RequestMapping(method = RequestMethod.PUT, value = \"/{facebookId}\")\n public long updateScore(@PathVariable(value = \"facebookId\") String id, @RequestParam(value = \"score\") long score) {\n long currentScore = getUserScore(id);\n User user = usersRepository.findById(id);\n user.setScore(currentScore + score);\n usersRepository.save(user);\n return usersRepository.findById(id).getScore();\n }",
"public void setAwayScore(int a);",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public void setNewScore(String player, int score) {\n\t\t\n\t}",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void updateScores(double attempt) {\r\n \tif(previousScore == 0){\r\n \t\tpreviousScore = currentScore;\r\n \t}else{\r\n \t\tbeforePreviousScore = previousScore;\r\n \t\tpreviousScore = currentScore;\r\n \t}\r\n this.currentScore = 100*(attempt \r\n\t\t\t\t- (benchmark - (maximumMark - benchmark)/NUMBEROFLEVEL))\r\n\t\t\t\t/(((maximumMark - benchmark)/NUMBEROFLEVEL)*2);\r\n }",
"public void setScore(double score) {\r\n this.score = score;\r\n }",
"void updateScore () {\n scoreOutput.setText(Integer.toString(score));\n }",
"@Override\n\tpublic void updateScoreAfterTest(Score score2) {\n\t\tscoreDao.updateScoreAfterTest(score2);\n\t}",
"public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void updateScore(int playerScore){\n\t\tscore += playerScore;\n\t\tscoreTotalLabel.setText(\"\" + score);\n\t}"
] | [
"0.7079057",
"0.69228095",
"0.6902735",
"0.6835589",
"0.683364",
"0.6827731",
"0.68225074",
"0.67852575",
"0.6708217",
"0.67061603",
"0.6690936",
"0.66175807",
"0.65465534",
"0.6535775",
"0.6514658",
"0.6504768",
"0.64159817",
"0.63814175",
"0.6369749",
"0.6369547",
"0.6349908",
"0.6338049",
"0.63291943",
"0.6313851",
"0.6281544",
"0.62608236",
"0.62548935",
"0.6246931",
"0.6245826",
"0.6242657",
"0.62421113",
"0.624098",
"0.62263155",
"0.62244844",
"0.62094045",
"0.61831576",
"0.6180648",
"0.61441773",
"0.6135072",
"0.6110526",
"0.60918975",
"0.60804754",
"0.6072525",
"0.60606116",
"0.6052097",
"0.60378534",
"0.6027749",
"0.60073006",
"0.6003641",
"0.60004705",
"0.5999399",
"0.5999399",
"0.59959507",
"0.599237",
"0.5979599",
"0.5978585",
"0.5973458",
"0.59713537",
"0.5945938",
"0.5945938",
"0.5945938",
"0.5945938",
"0.5945627",
"0.59453195",
"0.59450155",
"0.5942973",
"0.5942306",
"0.5933507",
"0.5928637",
"0.5923494",
"0.5919193",
"0.59114707",
"0.5908054",
"0.5899881",
"0.5897213",
"0.58792",
"0.5878513",
"0.58764505",
"0.5873776",
"0.58642405",
"0.5863826",
"0.5861027",
"0.58608586",
"0.58579135",
"0.5857217",
"0.5851246",
"0.5847526",
"0.5847526",
"0.5847526",
"0.5847526",
"0.5838261",
"0.5831567",
"0.58196783",
"0.5815155",
"0.58124447",
"0.581165",
"0.5795312",
"0.57935786",
"0.57924956",
"0.5783246"
] | 0.7331371 | 0 |
Custom access to database : register score of games into database | private void saveInitialScoretoDatabase(int score, String id) {
// save max score to database
Cursor checking_avalability = getDatabase().getScoreData(
ScoretableName, id);
if (checking_avalability == null) {
long RowIds = getDatabase().insertScoreData(ScoretableName, id,
String.valueOf(score));
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
} else if (checking_avalability.getCount() == 0) {
long RowIds = getDatabase().insertScoreData(ScoretableName, id,
String.valueOf(score));
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void saveScore(int score) {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"INSERT INTO Score\\n\" +\n \"Values (date('now'),?)\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(score));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving Score: \" + e.getMessage());\n }\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }",
"private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"@Override\r\n\tpublic void allScore() {\r\n\t\tallScore = new ArrayList<Integer>();\r\n\t\tallPlayer = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n \r\n String query = \"SELECT NAME_PLAYER, SUM(SCORE) AS 'SCORE'\" +\r\n \t\t\" FROM SINGLEPLAYERDB\" +\r\n \t\t\" GROUP BY NAME_PLAYER\" +\r\n \t\t\" ORDER BY SCORE DESC\" ;\r\n ResultSet rs = stmt.executeQuery(query);\r\n \r\n \r\n while (rs.next()) {\r\n \tallPlayer.add(rs.getString(1));\r\n \tallScore.add(Integer.parseInt(rs.getString(2)));\r\n }\r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}",
"public void saveInitialScoretoDatabase_GreenacresGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, GreenacresID);\n\t}",
"public void addScore(int score);",
"void addScore(String sessionKey, Integer levelId, Integer score) throws SessionExpiredException;",
"private DatabaseCustomAccess(Context context) {\n\t\thelper = new SpokaneValleyDatabaseHelper(context);\n\n\t\tsaveInitialPoolLocation(); // save initial pools into database\n\t\tsaveInitialTotalScore(); // create total score in database\n\t\tsaveInitialGameLocation(); // create game location for GPS checking\n\t\tLoadingDatabaseTotalScore();\n\t\tLoadingDatabaseScores();\n\t\tLoadingDatabaseGameLocation();\n\t}",
"public void saveInitialScoretoDatabase_DiscoveryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, DiscoveryID);\n\t}",
"@Override\r\n\tpublic void updateScore(String name, int lv, int score) {\r\n\t\t\r\n\t\tConnection connection = ConnectionFactory.getConnection();\r\n try {\r\n Statement stmt = connection.createStatement();\r\n String update = \"REPLACE INTO SINGLEPLAYERDB\\n\"\r\n \t\t+ \" (NAME_PLAYER, LV, SCORE)\\n\"\r\n \t\t+ \"VALUES\\n\"\r\n \t\t+ \"('\" + name + \"','\" + lv + \"','\" + score + \"')\";\r\n \r\n stmt.executeQuery(update);\r\n \r\n \r\n }catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t\t\r\n\t\t\r\n\t}",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"@SqlUpdate(\"insert into PLAYERSTATS (SCOREID, USERID, TIMESTAMP, KILLS, SCORE) values \"\n + \"(:scoreId, :userId, :timestamp, :kills, :score)\")\n int insert(@BindBean PlayerStats playerStats);",
"@Override\n\tpublic void insertScore() {\n\t\tString strNum = null;\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"학번을 입력하세요 (입력취소 : QUIT)\");\n\t\t\tSystem.out.print(\" >>\");\n\t\t\t strNum = scan.nextLine();\n\t\t\tif(strNum.equals(\"QUIT\")) {\n\t\t\t\tSystem.out.println(\"입력취소\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tInteger intNum = null;\n\t\t\ttry {\n\t\t\t\tintNum = Integer.valueOf(strNum);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tstrNum = String.format(\"%05d\", intNum);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tSystem.out.print(\">> 국어 : \");\n\t\tString strKor = scan.nextLine();\n\t\tInteger intKor = null;\n\t\ttry {\n\t\t\tintKor = Integer.valueOf(strKor);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\">> 영어 : \");\n\t\tString strEng = scan.nextLine();\n\t\tInteger intEng = null;\n\t\ttry {\n\t\t\tintEng = Integer.valueOf(strEng);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\">> 수학: \");\n\t\tString strMath = scan.nextLine();\n\t\tInteger intMath = null;\n\t\ttry {\n\t\t\tintMath = Integer.valueOf(strMath);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"정수형으로 입력해주세요\");\n\t\t}\n\t\t\n\t\tScoreVO vo = new ScoreVO();\n\t\tvo.setNum(strNum);\n\t\tvo.setKor(intKor);\n\t\tvo.setEng(intEng);\n\t\tvo.setMath(intMath);\n\t\tscoreList.add(vo);\n\t\tthis.printStudent();\n\t}",
"public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}",
"private void LoadingDatabaseTotalScore() {\n\n\t\tCursor cursor = helper.getDataAll(TotalScoretableName);\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tString totalPoint = cursor.getString(POINT_TOTAL_SCORE_COLUMN);\n\t\t\t\n\t\t\ttotalScore = Integer.parseInt(totalPoint);\t\t\t\t\t// store total score from database to backup value\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"public static void addingNewPlayer(){\r\n\t\t//hard code each score includng a total.\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Enter the name of the Player?\");\r\n\t\t\t\t\tString name = scan.next();\r\n\t\t\t\t\t\r\n\t\t\t//establishing the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//inserting the quries assign to the String variables\r\n\t\t\tString query=\"insert into \" + tableName + \" values ('\" + name +\"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\";\t\t\r\n\t\t\t\r\n\t\t\t//inserting the hard coded data into the table of the datbase\r\n\t\t\tstatement.execute(query);\r\n\t\t\t\r\n\t\t\t//closing the statement\r\n\t\t\tstatement.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t System.out.println(\"SQL Exception occurs\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void createCountModel (){\n System.out.println(gameNumber);\n for (int i = 0; i<gameNumber; i++){\n String winner = \"w\";\n int numOfstepsCompleted= 0;\n Connection conn = null;\n Statement stmt = null;\n try{\n //STEP 2: Register JDBC driver\n //System.out.println(\"Registered JDBC driver...\");\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //STEP 23: Open a connection\n //System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);//acceses the database specified by the url through entering in the username and password\n //System.out.println(\"Creating statement...\");\n stmt = conn.createStatement(); //access the database server and manipulate data in database\n String sql = \"SELECT * FROM EXPERIENCE_\"+(i);\n ResultSet rs1 = stmt.executeQuery(sql);\n // System.out.println(\"sweeeeeeeeeet....\");\n while (rs1.next()){//gets the winner and total number of stepsCompleted\n System.out.println(\".\");\n if (rs1.getString(3)==null||rs1.getInt(3)==-1){\n System.out.println(\"SWAGGGG!!\");\n winner = rs1.getString(2);\n numOfstepsCompleted = rs1.getInt(1);\n }\n }\n rs1.close();\n ResultSet rs = stmt.executeQuery(sql);\n while (rs.next()){//develops list of occurrences of specific moves\n //System.out.print(\"\\n\" + rs.getInt(1)+\"\\t\");\n //System.out.print(rs.getString(2)+\": \"+rs.getInt(3)+\" \" +rs.getInt(4));\n \n\n if (rs.getString(2).equals(winner)){ //records popularity of small squares for winner depending on the stage of game (first 3rd, second 3rd, or last third)\n System.out.println(\"IT'S ME!!!\\n\\n\\n\\n\\\\n\\n\\n\\n\");\n if (rs.getInt(1)<(int)numOfstepsCompleted/3)\n popSsquare.get(0).set(rs.getInt(4), popSsquare.get(0).get(rs.getInt(4))+1);\n if((rs.getInt(1)<(int)2*numOfstepsCompleted/3)&&(rs.getInt(1)>numOfstepsCompleted/3))\n popSsquare.get(1).set(rs.getInt(4), popSsquare.get(1).get(rs.getInt(4))+1);\n if(rs.getInt(1)>(int)2*numOfstepsCompleted/3)\n popSsquare.get(2).set(rs.getInt(4), popSsquare.get(2).get(rs.getInt(4))+1);\n }\n }\n rs.close();\n \n stmt.close();\n conn.close(); \n }catch(SQLException se){\n //Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e){\n //Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n //finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2){\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se){\n se.printStackTrace();\n }//end finally try\n }//end try\n }//end for\n \n }",
"public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"public void saveInitialScoretoDatabase_SkiGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, SkiID);\n\t}",
"public static int insertDb(GameDto game) throws PictionnaryDbException {\n try {\n int num = SequenceDB.getNextNum(SequenceDB.GAME);\n java.sql.Connection connexion = DBManager.getConnection();\n java.sql.PreparedStatement insert;\n insert = \n connexion.prepareStatement(\"Insert into Game(gid, gdrawer, \"\n + \"gpartner, gstarttime, gword, gtable) \"\n + \"values(?, ?, ?, ?, ?, ?)\");\n insert.setInt(1, num);\n insert.setInt(2, game.getDrawer());\n insert.setInt(3, game.getPartner());\n insert.setTimestamp(4, game.getStartTime());\n insert.setInt(5, game.getWord());\n insert.setString(6, game.getName());\n insert.execute();\n return num;\n } catch (Exception ex) {\n throw new PictionnaryDbException(\"Game: ajout impossible\\r\" + ex.getMessage());\n }\n }",
"public void saveInitialScoretoDatabase_AppleGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, AppleID);\n\t}",
"@Test\n public void addHighScoreTest() {\n database.createHighScoreTable(testTable);\n assertTrue(database.addHighScore(100, testTable));\n database.clearTable(testTable);\n\n }",
"public void saveScore(){\n\t\tIntent intent = new Intent();\n\t\tintent.setClass(context, SaveScoreActivity.class);\n\t\tintent.putExtra(\"GameName\", \"Snake\");\n\t\tintent.putExtra(\"Score\", manager.getScore());\n\t\tcontext.startActivity(intent);\n\t}",
"void setScore(long score);",
"public void insert() {\n String sqlquery = \"insert into SCORE (NICKNAME, LEVELS,HIGHSCORE, NUMBERKILL) values(?, ?, ?,?)\";\n try {\n ps = connect.prepareStatement(sqlquery);\n ps.setString(1, this.nickname);\n ps.setInt(2, this.level);\n ps.setInt(3, this.highscore);\n ps.setInt(4, this.numofKill);\n ps.executeUpdate();\n //JOptionPane.showMessageDialog(null, \"Saved\", \"Insert Successfully\", JOptionPane.INFORMATION_MESSAGE);\n System.out.println(\"Insert Successfully!\");\n ps.close();\n connect.close();\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n }",
"@Test\r\n\tpublic void saveGameGamestatses() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGameGamestatses \r\n\t\tInteger gameId_2 = 0;\r\n\t\tGamestats related_gamestatses = new tsw.domain.Gamestats();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = null;\r\n\t\tresponse = service.saveGameGamestatses(gameId_2, related_gamestatses, null, null);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: saveGameGamestatses\r\n\t}",
"boolean save_game(String userID, String score)\n {\n return request(\"POST\", \"{ \\\"score\\\": \\\"\" + score + \"\\\"}\",\"players/\" + userID + \"/games/\").equals(\"1\");\n }",
"Scoreboard saveScoreboard(Scoreboard scoreboard);",
"@RequestMapping(method = RequestMethod.POST, path = \"/score\")\n\t\tpublic String score(@RequestBody leaderBoard score) {\n\t\t\tlogger.info(\"Entered into Controller\");\n\t\t\tleaderboardrepository.save(score);\n\t\t\tlogger.info(\"Saved:\" + score);\n\t\t\treturn \"successful\";\n\t\t\t//change to post request\n\t\t/**\n\t\t * This is when it will get all scores that have \n\t\t * become the scores on the database.\n\t\t * @return\n\t\t */\n\t\t\n\t\t}",
"public void addScore(String name, int score) {\n loadScoreFile();\n scores.add(new Score(name, score));\n updateScoreFile();\n }",
"public void insert(HighScore highScore){\n repository.insert(highScore);\n }",
"public boolean local_uploadScore(String username, int score) {\n String path = \"scores.db\";\n if (!System.getProperty(\"user.dir\").contains(\"assets\"))\n path = \"assets/\"+path;\n\n String url = \"jdbc:sqlite:\"+ Paths.get(path).toAbsolutePath().toString();\n System.out.println(url);\n String sql = String.format(\"INSERT INTO `scores` (username, score) VALUES (\\\"%s\\\", %d) \", username, score);\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n try {\n Statement stmt = conn.createStatement();\n boolean rs = stmt.execute(sql);\n return true;\n } catch (SQLException e){\n\n System.out.println(e);\n return false;\n }\n }\n } catch (SQLException e){\n System.out.println(e);\n return false;\n }\n\n return false;\n\n }",
"public void setScore(int score) { this.score = score; }",
"@RegisterMapper(SaveGameMapper.class)\npublic interface SaveGameDao {\n \n /**\n * Find current score\n * Retrieves 1 score from the database from the given user id\n * This will be the most current score.\n * \n * @param user id\n * a String based UUID. Must not be null\n * @return a playerStat if one exists, else null.\n */\n @SqlQuery(\"select * from PLAYERSTATS where USERID = :id order by TIMESTAMP DESC FETCH FIRST 1 ROW ONLY\")\n List<PlayerStats> findCurrentScore(@Bind(\"id\") String id);\n \n /**\n * Find User' high scores (top 5)\n * Retrieves 5 scores from the data base from the given user id\n * \n * @param user id\n * a String based UUID. must not be null\n * @return plyerStats if one exists, else null\n */\n @SqlQuery(\"select * from PLAYERSTATS where USERID = :id order by SCORE DESC FETCH FIRST 5 ROWS ONLY\")\n List<PlayerStats> findUserHighScore(@Bind(\"id\") String id);\n \n /**\n * Find high scores (top 10) by type: Kills\n * Retrieves 10 scores from the data base from the given user id\n * \n * @param user id\n * a String based UUID. must not be null\n * @return plyerStats if one exists, else null\n */\n @SqlQuery(\"select * from PLAYERSTATS order by SCORE DESC FETCH FIRST 10 ROWS ONLY\")\n List<PlayerStats> findScoreHighScores();\n \n /**\n * Find high scores (top 10) by type: Score\n * Retrieves 10 scores from the data base from the given user id\n * \n * @param user id\n * a String based UUID. must not be null\n * @return plyerStats if one exists, else null\n */\n @SqlQuery(\"select * from PLAYERSTATS order by KILLS DESC FETCH FIRST 10 ROWS ONLY\")\n List<PlayerStats> findKillsHighScores();\n \n \n /**\n * return a list of all entries in PLAYERSTATS\n * \n * @return a score if one exists, else null.\n */\n @SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();\n \n /**\n * Finds 1 entry in db table given the scoreId\n * \n * @param scoreId\n * The scoreId of the entry\n * @return a playStat if one exists, else null\n */\n @SqlQuery(\"select * from PLAYERSTATS where SCOREID = :id\")\n PlayerStats findByScoreId(@Bind(\"id\") String id);\n \n \n /**\n * Inserts a new record into the PLAYERSTATS table in the database.\n * \n * @param SaveGame\n * The SaveGame object to insert.\n * @return The number of inserted rows.\n */\n @SqlUpdate(\"insert into PLAYERSTATS (SCOREID, USERID, TIMESTAMP, KILLS, SCORE) values \"\n + \"(:scoreId, :userId, :timestamp, :kills, :score)\")\n int insert(@BindBean PlayerStats playerStats);\n \n \n\n \n \n}",
"public static void main(String[] args) {\n\t\tScoreJDBCServiceV3 sc = new ScoreJDBCServiceV3();\n\t\tScoreVO sVO = ScoreVO.builder().s_id(601).s_std(\"이몽룡\").s_score(100).s_rem(\"연습\").build();\n\t\tint ret = sc.insert(sVO);\n\t\tSystem.out.println(ret);\n\t\tList<ScoreVO> scoreList;\n\t\tscoreList = sc.findByName(\"이몽룡\");\n\t\tfor(ScoreVO s : scoreList)\n\t\t\tSystem.out.println(s);\n\t}",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public int addGenre(String g) {\n this.connect();\n String sql = \"INSERT INTO genres(genreType,score) VALUES(?,?)\";\n int id = 0;\n try (Connection conn = this.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setString(1, g);\n pstmt.setDouble(2, 0.0);\n pstmt.executeUpdate();\n id = getGenreID(g);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return id;\n }",
"@Override\n public void save(final Score score) {\n Preconditions.checkNotNull(score, \"Score must not be null.\");\n\n LOG.info(\"Saving {} to database.\", score.toString());\n\n Session session = FACTORY.openSession();\n\n session.beginTransaction();\n session.save(score);\n session.getTransaction().commit();\n\n session.close();\n }",
"public void setScore(int score) {this.score = score;}",
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public void add() {\r\n // Getting the player name.\r\n DialogManager dialog = this.gui.getDialogManager();\r\n String name = dialog.showQuestionDialog(\"Name\", \"Enter your name:\", \"\");\r\n if (name != null) {\r\n this.scoreTable.add(new ScoreInfo(name, this.score.getValue()));\r\n try {\r\n this.scoreTable.save(new File(\"highscores\"));\r\n } catch (IOException e) {\r\n System.out.println(\"Failed creating a file.\");\r\n return;\r\n }\r\n }\r\n }",
"public int getScore()\n {\n // put your code here\n return score;\n }",
"public void addToTable() {\n\n\n if (this.highScoresTable.getRank(this.scoreBoard.getScoreCounter().getValue()) <= this.highScoresTable.size()) {\n DialogManager dialog = this.animationRunner.getGui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\");\n\n this.highScoresTable.add(new ScoreInfo(name, this.scoreBoard.getScoreCounter().getValue()));\n File highScoresFile = new File(\"highscores.txt\");\n try {\n this.highScoresTable.save(highScoresFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }",
"int insert(ScoreProduct record);",
"public static void createScore(){\n\t}",
"public interface GameSessionDataStorage {\n List<GameResult> getAll();\n GameResult getByLogin(String login);\n void deleteByLogin(String login);\n void addResult(GameResult result);\n void updatePlayerScore(GameResult result);\n Integer getMinScore();\n}",
"@Override\r\n\tpublic void save(Score obj) {\n\t\tiscoreDAO.save(obj);\r\n\t}",
"int getScore();",
"@Override\n\tpublic void save(Score score) {\n\t\tSystem.out.println(\"Service中的save方法执行了...\");\n\t\t\n\n\t\tscoreDao.save(score);\n\t\t\n\t\t\n\t}",
"protected void insertResult(String ime, int rezultat){\t\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm yyyy-MM-dd\");\r\n\r\n\t\tLog.w(\"baza\",\"zapis v bazo\");\r\n\t\tContentValues cv = new ContentValues();\r\n\t\tcv.put(DatabaseHelper.USERNAME, ime);\r\n\t\tcv.put(DatabaseHelper.SCORE, rezultat);\t\r\n\t\tcv.put(DatabaseHelper.DATE, sdf.format(cal.getTime()));\t\r\n\t\tdb.insert(\"highscore\", DatabaseHelper.USERNAME, cv);\t\t\r\n\t}",
"public long insertScore(String name, int time, int tries, int cardno)\n {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_NAME, name);\n initialValues.put(KEY_TIME, time);\n initialValues.put(KEY_TRIES, tries);\n initialValues.put(KEY_CARDNO, cardno);\n return db.insert(DATABASE_TABLE, null, initialValues);\n }",
"public abstract Game getGame(int game_id) throws SQLException;",
"public int getScore() {return score;}",
"protected abstract void calcScores();",
"public static void addToScore(int dareId, String userId, String score) {\n\n Connection conn = null;\n Statement statement = null;\n\n try {\n Class.forName(\"org.sqlite.JDBC\");\n String path = \"jdbc:sqlite:lib/dare_n_share.db\";\n conn = DriverManager.getConnection(path);\n\n String query = \"update Participants set Score ='\" + score + \"' Where DareId=\" + dareId + \" and UserId='\" + userId + \"';\";\n statement = conn.createStatement();\n statement.execute(query);\n\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } finally {\n try { if (statement != null) statement.close(); } catch (Exception e) {}\n try { if (conn != null) conn.close(); } catch (Exception e) {}\n }\n\n }",
"@Override\r\n public void onCreate(SQLiteDatabase db) {\n String CREATE_SCORE_TABLE = \"CREATE TABLE score ( \" +\r\n \"id INTEGER PRIMARY KEY AUTOINCREMENT, \" +\r\n \"score TEXT)\";\r\n\r\n // create score table\r\n db.execSQL(CREATE_SCORE_TABLE);\r\n\r\n\r\n //Insert data tables\r\n db.execSQL(\"INSERT INTO score(score) VALUES ('0')\");\r\n db.execSQL(\"INSERT INTO score(score) VALUES ('0')\");\r\n db.execSQL(\"INSERT INTO score(score) VALUES ('0')\");\r\n db.execSQL(\"INSERT INTO score(score) VALUES ('0')\");\r\n db.execSQL(\"INSERT INTO score(score) VALUES ('0')\");\r\n db.execSQL(\"INSERT INTO score(score) VALUES ('0')\");\r\n\r\n }",
"@Override\n\tpublic void loadScore() {\n\n\t}",
"synchronized void addScore(String name, int score){\n\t\tif(!users.containsKey(name)){\n\t\t\tVector<Integer> scores = new Vector<Integer>();\n\t\t\tusers.put(name, scores);\n\t\t}\n\t\tusers.get(name).add(score);\n\t}",
"public int getScore() { return score; }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\n \"CREATE TABLE \" + TABLE_NAME +\n \"(\" + COLUMN_ID + \" INTEGER PRIMARY KEY, \" +\n COLUMN_CHALLENGE + \" TEXT, \" +\n COLUMN_SCORE + \" INTEGER)\"\n );\n\n //Creates values to be inserted into the highscore\n ContentValues contentValues = new ContentValues();\n contentValues.put(COLUMN_ID, 1);\n contentValues.put(COLUMN_CHALLENGE, \"Places around the world\");\n contentValues.put(COLUMN_SCORE, 0);\n\n //Inserts values into the table\n db.insert(TABLE_NAME, null, contentValues);\n\n ContentValues contentValues1 = new ContentValues();\n contentValues1.put(COLUMN_ID, 2);\n contentValues1.put(COLUMN_CHALLENGE, \"Animal Kingdom\");\n contentValues1.put(COLUMN_SCORE, 0);\n\n\n db.insert(TABLE_NAME, null, contentValues1);\n\n ContentValues contentValues2 = new ContentValues();\n contentValues2.put(COLUMN_ID, 3);\n contentValues2.put(COLUMN_CHALLENGE, \"Famous People\");\n contentValues2.put(COLUMN_SCORE, 0);\n\n\n db.insert(TABLE_NAME, null, contentValues2);\n\n\n\n }",
"public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }",
"public Scores[] dbSorter(int score, String name){\n\n\n Scores s1 = new Scores(score, name); // makes the current score and name into a score object\n\n db.addScore(s1);\n Scores[] scoreList = db.getAllScores(); // gets score list from main activity\n scoreList = db.sortScores(scoreList);\n Log.i(\"Scores count\", Integer.toString(db.getScoresCount()));\n\n return scoreList;\n }",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"public int getScore()\n {\n return score; \n }",
"int insert(SalGrade record);",
"public int getPlayerScore();",
"Response<SavedScore> submitScore(String leaderboardId, String uniqueIdentifier, Score score);",
"ScoreManager createScoreManager();",
"private void linkPlayersToDB(@Nullable Game game) {\n if (game == null) {\n throw new IllegalArgumentException(\"game should not be null.\");\n }\n\n gamesRef.child(game.getId())\n .child(DATABASE_GAME_PLAYERS)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n List<Player> newData = snapshot.getValue(new GenericTypeIndicator<List<Player>>() {\n });\n if (newData != null) {\n game.setPlayers(newData, true);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.e(TAG, \"failed \" + error.getMessage());\n }\n });\n }",
"public void playDB(){\n\t\tboolean emptyPot = false;\n\t\tint points = myPC.count(myPC.createWords(myField.getTiles(), myField.getNewWords()), myField.getTiles(), myField.getNewWords().size());\n\t\tint turn = DBCommunicator.requestInt(\"SELECT id FROM beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"' ORDER BY id DESC\");\n\t\tturn += 2;\n\t\t\n\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES (\" + turn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + points + \", 'Word')\");\n\t\t\n\t\tHashMap<String, GameStone> newWords = myField.getNewWords();\n\t\tSystem.out.println(newWords);\n\t\tArrayList<Integer> addedInts = new ArrayList<Integer>();\n\t\t\n\t\tfor(Entry<String, GameStone> word : newWords.entrySet()){\n\t\t\tSystem.out.println(word.getKey());\n\t\t\tString key = word.getKey();\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\t\t\t\n\t\t\tString[] cords = key.split(\",\");\n\t\t\tx = Integer.parseInt(cords[0]);\n\t\t\ty = Integer.parseInt(cords[1]);\n\t\t\t\n\t\t\t\n\t\t\tint stoneID = word.getValue().getID();\n\t\t\tSystem.out.println(stoneID);\n\t\t\tString character = DBCommunicator.requestData(\"SELECT letterType_karakter FROM letter WHERE id = \" + stoneID + \" AND spel_id = \" + id);\n\t\t\tSystem.out.println(character);\n\t\t\tif(!character.equals(\"?\")){\n\t\t\t\tDBCommunicator.writeData(\"INSERT INTO gelegdeletter (letter_id, spel_id, beurt_id, tegel_x, tegel_y, tegel_bord_naam, blancoletterkarakter)\"\n\t\t\t\t\t\t+ \" VALUES(\" + stoneID + \", \" + id + \", \" + turn + \", \" + x + \", \" + y + \", 'Standard', NULL)\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tDBCommunicator.writeData(\"INSERT INTO gelegdeletter (letter_id, spel_id, beurt_id, tegel_x, tegel_y, tegel_bord_naam, blancoletterkarakter)\"\n\t\t\t\t\t\t+ \" VALUES(\" + stoneID + \", \" + id + \", \" + turn + \", \" + x + \", \" + y + \", 'Standard', '\" + word.getValue().getLetter() + \"')\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int e = 0; e < gameStones.size(); e++){\n\t\t\t\tif(gameStones.get(e) == stoneID){\n\t\t\t\t\t\n\t\t\t\t\tint potSize = DBCommunicator.requestInt(\"SELECT COUNT(letter_id) FROM pot WHERE spel_id = \" + id);\n\t\t\t\t\tif(potSize != 0){\n\t\t\t\t\t\tboolean added = false;\n\t\t\t\t\t\twhile(!added){\n\t\t\t\t\t\t\tint letterID = (int) (Math.random() * 105);\n\t\t\t\t\t\t\tSystem.out.println(letterID);\n\t\t\t\t\t\t\tString randCharacter = DBCommunicator.requestData(\"SELECT karakter FROM pot WHERE spel_id = \" + id + \" AND letter_id = \" + letterID);\n\t\t\t\t\t\t\tif(randCharacter != null){\n\t\t\t\t\t\t\t\tboolean inStones = false;\n\t\t\t\t\t\t\t\tfor(int a = 0; a < gameStones.size(); a++){\n\t\t\t\t\t\t\t\t\tSystem.out.println(gameStones.get(a));\n\t\t\t\t\t\t\t\t\tif(gameStones.get(a) == letterID){\n\t\t\t\t\t\t\t\t\t\tinStones = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!inStones){\n\t\t\t\t\t\t\t\t\tgameStones.set(e,letterID);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"PLACE \"+ id +\" \"+ letterID +\" \"+ turn);\n\t\t\t\t\t\t\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + letterID + \", \" + turn + \")\");\n\t\t\t\t\t\t\t\t\taddedInts.add(letterID);\n\t\t\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\temptyPot = true;\n\t\t\t\t\t\tgameStones.remove(e);\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\t\n\t\tArrayList<Integer> nonAddedInts = new ArrayList<Integer>();\n\t\tfor(int e : gameStones){\n\t\t\tnonAddedInts.add(e);\n\t\t}\n\t\t\n\t\tfor(int a : addedInts){\n\t\t\tfor(int e = 0; e < nonAddedInts.size(); e++){\n\t\t\t\tif(a == nonAddedInts.get(e)){\n\t\t\t\t\tnonAddedInts.remove(e);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int e : nonAddedInts){\n\t\t\tSystem.out.println(\"PLACE \"+ id +\" \"+ e +\" \"+ turn);\n\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + e + \", \" + turn + \")\");\n\t\t}\n\t\t\t\t\n\t\tif(emptyPot && (gameStones.size() == 0)){\n\t\t\tDBCommunicator.writeData(\"UPDATE spel SET toestand_type = 'Finished' WHERE id = \" + id );\n\t\t\tendGame(true);\n\t\t}\n\t\telse{\n\t\t\tthis.setStoneLetters();\n\t\t\tthis.fillStoneChars();\n\t\t}\n\t}",
"@Override\r\n\tpublic long getscore(Map<String, Object> map) {\n\t\tCustomer_judge_driver c= new Customer_judge_driver();\r\n\t\tlong sum =0;\r\n try{\r\n\t\t\t\r\n \t Long score = (Long)getSqlMapClientTemplate().queryForObject(c.getClass().getName()+\".selectscore\",map);\r\n \t if (score == null){\r\n \t\treturn sum;\r\n \t }\r\n \t sum = score;\r\n \t return sum;\r\n\t\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.out.println(\"数据连接失败,请检查数据服务是否开启\");\r\n\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t}\r\n\t}",
"public int getScore(){ return this.score; }",
"public void addScore()\n {\n score += 1;\n }",
"public Scores(int score) {\r\n this.score = score;\r\n }",
"public ScoreManager(Context context){\n db = new HighscoreDB(context);\n }",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"String insertScore(int score, int level) {\n return String.format(SQL_INSERT_ENTRY, score, level);\n }",
"public void doDataAddToDb() {\n String endScore = Integer.toString(pointsScore);\r\n String mLongestWordScore = Integer.toString(longestWordScore);\r\n String date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.US).format(new Date());\r\n Log.e(TAG, \"date\" + date);\r\n\r\n // creating a new user for the database\r\n User newUser = new User(userNameString, endScore, date, longestWord, mLongestWordScore); // creating a new user object to hold that data\r\n\r\n // add new node in database\r\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\r\n mDatabase.child(\"users\").child(userNameString).setValue(newUser);\r\n\r\n Log.e(TAG, \"pointsScore\" + pointsScore);\r\n Log.e(TAG, \"highestScore\" + highestScore);\r\n\r\n\r\n // if high score is achieved, send notification\r\n if (highestScore > pointsScore) {\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n sendMessageToNews();\r\n }\r\n }).start();\r\n }\r\n }",
"@Override\n\tpublic int getScoreGame(SoupDTO sdto,String user) throws RemoteException {\n\t\t\n\t\tSoup s=dao.getSoup(sdto.getNombre());\n\t\tint score=s.calculatePuntuation(sdto.getArraywords());\n\t\tUser u=dao.getUser(user);\n\t\tdao.deleteUser(u.getUser());\n\t\tSystem.out.println(\"usuario eliminado\");\n\t\tint n=dao.getAllUser().size();\n\t\t//IManagerDAO dao2=new ManagerDAO();\n\t\t\n\t\tRandom r=new Random();\n\t\tint id=r.nextInt(10000);\n\t\n\t\t\t\n\t\tRecord record=new Record(id, new Date(System.currentTimeMillis()), score , u);\n\t\n\t\tu.addRecord(record);\n\t\tSystem.out.println(\"al usuario se le ha metido record\");\n\t\t//dao.storeScore(record);\n\t\tdao.storeUser(u);\n\t\tSystem.out.println(\"se ha vuelto a meter usuario\");\n\t\tSystem.out.println(\"salgo\");\n\t\treturn score;\n\t}",
"public long createScoreEntry(String name, String score) {\n\n\t\tContentValues cv = new ContentValues(); \n\t\tcv.put(KEY_NAME, name);\n\t\tcv.put(KEY_SCORE, score);\n\t\treturn scoreDb.insert(DATABASE_TABLE, null, cv);\n\n\t}",
"@Override\n public void updateTotalScore(String faculty) throws IOException {\n\n String sql = \"UPDATE sep2_schema.house_cup SET totalscore = (SELECT sum(score) FROM sep2_schema.player_scores \"\n + \"JOIN sep2_schema.player ON player.nickname = player_scores.playernick WHERE player.faculty = ?) \"\n + \"WHERE faculty = ?;\";\n\n try {\n db.update(sql, faculty);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void dataAddAppInstance() {\n String endScore = Integer.toString(pointsScore);\r\n String mLongestWordScore = Integer.toString(longestWordScore);\r\n String date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.US).format(new Date());\r\n\r\n // creating a new user for the database\r\n User newUser = new User(userNameString, endScore, date, longestWord, mLongestWordScore); // creating a new user object to hold that data\r\n\r\n // add new node in database\r\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\r\n mDatabase.child(token).child(userNameString).setValue(newUser);\r\n\r\n // get this device's all time high score for comparison\r\n int highScore = getInt();\r\n\r\n // if high score is achieved, send notification\r\n if ( pointsScore > highScore) {\r\n setInt(\"high score\", pointsScore);\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n sendMessageToNews();\r\n }\r\n }).start();\r\n }\r\n }",
"public void updateDatabase (int bigSquare, int smallSquare, boolean whosTurn){\n //find out new square that was entered in.\n char player;\n if (whosTurn)\n player = 'X';\n else\n player = 'O';\n System.out.print(\"\\n\\n\\n\\n\\nUPDATE EXPERIENCE!\");\n Connection conn = null;\n Statement stmt = null;\n try{\n //STEP 2: Register JDBC driver\n System.out.println(\"Registered JDBC driver...\");\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //STEP 3: Open a connection\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);//acceses the database specified by the url through entering in the username and password\n System.out.println(\"Creating statement...\");\n stmt = conn.createStatement(); //access the database server and manipulate data in database\n //String sql = \"INSERT INTO EXPERIENCE_\"+gameNumber+\"(Id, player, bigsquare,smallsquare) VALUES(1,'X',0,0)\";\n String sql;\n if(bigSquare==-1){//this shows that someone won!\n //System.out.println(\"FALSDJF;ALSJDF;JALSKDJFLAKSJFD;L\");\n sql = \"INSERT INTO EXPERIENCE_\"+gameNumber+\"(Id, player) VALUES(\"+stepsCompleted+\", '\"+player+\"')\"; //enters in who won\n }\n sql = \"INSERT INTO EXPERIENCE_\"+gameNumber+\"(Id, player,bigsquare,smallsquare) VALUES(\"+stepsCompleted+\", '\" +player+\"', \"+bigSquare+\", \"+smallSquare+\")\";\n System.out.println(gameNumber);\n stmt.executeUpdate(sql);\n System.out.println(\"sweeeeeeeeeet....\");\n stmt.close();\n conn.close(); \n }catch(SQLException se){\n //Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e){\n //Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n //finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2){\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se){\n se.printStackTrace();\n }//end finally try\n }//end try\n \n \n \n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ScoreAnalysis addNewScoreAnalysis();",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"@Override\n\tpublic void saveScore(Jogador jogador) throws IOException {\n\t\t\n\t\tInteger score = getScore(jogador);\n\t\t\n\t\tif (score == null) {\n\t\t\tscore = 0;\n\t\t}\n\t\t\n\t\tscoreMap.put(jogador.getNome().toUpperCase(), score + 1);\n\t\t\n\t\ttry(BufferedWriter writer = Files.newBufferedWriter(SCORE_FILE)){\n\t\t\t\n\t\t\tSet<Map.Entry<String, Integer>> entries = scoreMap.entrySet();\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> e : entries ) {\n\t\t\t\tString nome = e.getKey();\n\t\t\t\tInteger pont = e.getValue();\n\t\t\t\twriter.write(nome + \"|\" + pont);\n\t\t\t\twriter.newLine();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void updateScore(int score){ bot.updateScore(score); }",
"int getScoreValue();",
"public void scoreRegist(ScoreVO vo);",
"public void initializeGameRoom() {\n DatabaseReference game = database.getReference(gameCodeRef);\n game.child(\"NumberOfPlayers\").setValue(0);\n game.child(\"PlayersDoneBrainstorming\").setValue(0);\n game.child(\"PlayersDoneEliminating\").setValue(0);\n game.child(\"AllDoneBrainstorming\").setValue(false);\n game.child(\"AllDoneEliminating\").setValue(false);\n game.child(\"StartGame\").setValue(false);\n\n }",
"public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }"
] | [
"0.6757669",
"0.64948213",
"0.64223826",
"0.64063525",
"0.6404085",
"0.63816166",
"0.63429135",
"0.62457085",
"0.6245607",
"0.62035686",
"0.61645514",
"0.61332184",
"0.610466",
"0.6089294",
"0.6060894",
"0.6053304",
"0.60520965",
"0.6047175",
"0.6014212",
"0.5975183",
"0.59714186",
"0.5967891",
"0.5967829",
"0.59561795",
"0.5936977",
"0.5891471",
"0.5889827",
"0.58759445",
"0.586644",
"0.5864948",
"0.58595335",
"0.5848815",
"0.58362204",
"0.5834868",
"0.58306015",
"0.5827359",
"0.58263445",
"0.58230466",
"0.58103156",
"0.5796729",
"0.5785044",
"0.5785044",
"0.5785044",
"0.5785044",
"0.57759786",
"0.57681924",
"0.57674015",
"0.57595336",
"0.5754522",
"0.5748456",
"0.5746102",
"0.5742605",
"0.5734334",
"0.5729949",
"0.5724822",
"0.5721271",
"0.57139724",
"0.5704595",
"0.56950986",
"0.5687615",
"0.5679965",
"0.56759036",
"0.5664014",
"0.5654887",
"0.5649944",
"0.5646988",
"0.564187",
"0.56306565",
"0.5618979",
"0.56156886",
"0.56005424",
"0.56005424",
"0.5587335",
"0.5582448",
"0.5576817",
"0.5575441",
"0.55749273",
"0.5574126",
"0.55734384",
"0.557231",
"0.5570622",
"0.5570507",
"0.5570054",
"0.5568615",
"0.55679",
"0.5567768",
"0.55629694",
"0.5561949",
"0.5558212",
"0.5554051",
"0.5545489",
"0.5542996",
"0.553998",
"0.5537398",
"0.5534621",
"0.5532718",
"0.55282205",
"0.5525466",
"0.552106",
"0.55170727"
] | 0.59697545 | 21 |
compare max score in database and current score , save max score between those two scores | private int saveMaxScore(int CurrentScore, String id) {
Cursor cursor = getDatabase().getScoreData(ScoretableName, id);
int MaxScore = 0;
while (cursor.moveToNext()) {
// loading each element from database
String ID = cursor.getString(ID_MAXSCORE_COLUMN);
int MaxScore_temp = Integer.parseInt(cursor
.getString(SCORE_MAXSCORE_COLUMN));
if (MaxScore_temp > MaxScore)
MaxScore = MaxScore_temp;
//Log.d(TAG, "MaxScore is" + MaxScore_temp + " with ID : " + ID);
} // travel to database result
addUpTotalScore(CurrentScore);
if (MaxScore < CurrentScore) {
long RowIds = getDatabase().updateScoreTable(ScoretableName, id,
String.valueOf(CurrentScore));
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
return CurrentScore;
}
return MaxScore;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public int saveMaxScore_PlantesFerryGame(int score) {\n\t\treturn saveMaxScore(score, PlantesFerryID);\n\t}",
"public int getMax(){ //find the max Score\n\t\tint max = Integer.MIN_VALUE;\n\t for(int i=0; i<scoreList.size(); i++){\n\t if(scoreList.get(i) > max){\n\t max = scoreList.get(i);\n\t }\n\t }\n\t return max;\n\t}",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public int getMaxScore() {\r\n return maxScore;\r\n\t}",
"public int saveMaxScore_GreenacresGame(int score) {\n\t\treturn saveMaxScore(score, GreenacresID);\n\t}",
"public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}",
"public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }",
"private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }",
"public static State max(State a, State b){\n return a.score >= b.score ? a : b;\n }",
"public int saveMaxScore_SkiGame(int score) {\n\t\treturn saveMaxScore(score, SkiID);\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }",
"@Override\n public int getScore() {\n try {\n Connection c = DBConncetion.getConnection();\n String sql = \"Select *\\n\" +\n \"From score\\n\" +\n \"Where rowid = (\\n\" +\n \" Select max(rowid) from score\\n\" +\n \")\";\n stmt = c.createStatement();\n rs = stmt.executeQuery(sql);\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(rs.getString(\"date\"));\n return rs.getInt(\"score\");\n\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while loading score \" + e.getMessage());\n }\n }",
"private void saveInitialScoretoDatabase(int score, String id) {\n\t\t// save max score to database\n\t\tCursor checking_avalability = getDatabase().getScoreData(\n\t\t\t\tScoretableName, id);\n\t\tif (checking_avalability == null) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) {\n\t\t\tlong RowIds = getDatabase().insertScoreData(ScoretableName, id,\n\t\t\t\t\tString.valueOf(score));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\t}",
"void setBestScore(double bestScore);",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public int saveMaxScore_AppleGame(int score) {\n\t\treturn saveMaxScore(score, AppleID);\n\t}",
"@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }",
"public double getBestScore();",
"public int saveMaxScore_DiscoveryGame(int score) {\n\t\treturn saveMaxScore(score, DiscoveryID);\n\t}",
"public int findHighestScore() {\n int highest = 0;\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) > 0) {\n highest = (int) allQuizTakers.get(i).getScore(0);\n }\n\n }\n return highest;\n }",
"public int getWorstScore()\n {\n return -1;\n }",
"public int updateHighScore(int score, String name)\n {\n scoreSettings = getSharedPreferences(scoreFile,PREFERENCE_MODE_PRIVATE);\n scoreEditor = scoreSettings.edit();\n int first = scoreSettings.getInt(\"goldScore\",0);\n int second = scoreSettings.getInt(\"silverScore\",0);\n int third = scoreSettings.getInt(\"bronzeScore\",0);\n String firstName = scoreSettings.getString(\"goldName\",\"\");\n String secondName = scoreSettings.getString(\"silverName\",\"\");\n\n if(score>=third)\n {\n if(score>=second)\n {\n if(score>=first)\n {\n scoreEditor.putInt(\"goldScore\",score);\n scoreEditor.putString(\"goldName\",name);\n scoreEditor.putInt(\"silverScore\",first);\n scoreEditor.putString(\"silverName\",firstName);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 1;\n }\n else\n {\n scoreEditor.putInt(\"silverScore\",score);\n scoreEditor.putString(\"silverName\",name);\n scoreEditor.putInt(\"bronzeScore\",second);\n scoreEditor.putString(\"bronzeName\",secondName);\n boolean successfullySaved = scoreEditor.commit();\n return 2;\n }\n }\n else\n {\n scoreEditor.putInt(\"bronzeScore\",score);\n scoreEditor.putString(\"bronzeName\",name);\n boolean successfullySaved = scoreEditor.commit();\n return 3;\n }\n }\n return -1;\n }",
"@Override\n public Score getBest() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> bestScores = session.createQuery(\"FROM Score s WHERE s.value = (SELECT max(s.value) FROM Score s)\", Score.class)\n .list();\n\n session.close();\n\n return bestScores.isEmpty() ? new Score(0L) : bestScores.get(0);\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return null;\n }\n }",
"private static double getHighestScore (List<Double> inputScores) {\n\n\t\tCollections.sort(inputScores, Collections.reverseOrder());\n\n\t\treturn inputScores.get(0);\n\n\t}",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }",
"public Double getHighestMainScore() {\n return highestMainScore;\n }",
"public void checkBestScoreAndChangeIt() {\n \tbestTime = readPreference(difficulty);\n \t\n \tif (currentTime < bestTime) {\n \t\tbestTime = currentTime;\n \t\tsavePreference(bestTime, difficulty);\n \t}\n }",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"@Override\n\tpublic void saveScore() {\n\n\t}",
"@Override\n\tpublic void saveScore() {\n\t\t\n\t}",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"@Test\n\tpublic void finalScoreTest() {\n\t\tassertEquals(80, g1.finalScore(), .001);\n\t\tassertEquals(162, g2.finalScore(), .001);\n\t\tassertEquals(246, g3.finalScore(), .001);\n\t}",
"private int max(int lhs, int rhs){\n if(lhs > rhs){\n return lhs;\n } else {\n return rhs;\n }\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}",
"public static ArrayList<ArrayList<ArrayList<Double>>> assignScoreToQueries() {\r\n\t\t\r\n\t\tArrayList<ArrayList<ArrayList<Double>>> allQueries = Queries.createQueries();\r\n\t\tArrayList<ArrayList<String>> dataset = ReadInDataset.finalDataset;\r\n\t\tint Counter = 0;\r\n\t\tDouble Score = 0.0;\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\r\n\t\tdf.setRoundingMode(RoundingMode.CEILING); // round up to 4 decimal places\r\n\t\t\r\n\t\t\r\n\t\t// initially assign to each query a score of 0\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) {\r\n\t\t\tArrayList<Double> zero = new ArrayList<Double>();\r\n\t\t\tzero.add(0.0);\r\n\t\t\tallQueries.get(i).add(zero);}\r\n\t\t\r\n\t\t// go through each query and check how many entries of the dataset it matches\r\n\t\t// with each match increase the score\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) { // for each query\r\n\t\t\tfor(int b=0; b < dataset.size(); b++) { // for each dataset\r\n\t\t\t\tCounter = 0; \r\n\t\t\t\tfor (int a=0; a < allQueries.get(i).size()-1; a++) { // for each query clause\r\n\t\t\t\t//check if the query criteria match the dataset and increase the Score accordingly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //this counter ensures that all query requirements are met in order to increase the score\r\n\t\t\t\t\tif (a != allQueries.get(i).size() - 1) {\t\t\t\t\t\t // ensure that Score entry is not involved in Query Matching\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// take min and max from query along with an entry from the dataset, convert to a double of 4 decimal places\r\n\t\t\t\t\t\tdouble minPoint1 = allQueries.get(i).get(a).get(0);\r\n\t\t\t\t\t\tString minPoint2 = df.format(minPoint1);\r\n\t\t\t\t\t\tdouble minPoint = Double.parseDouble(minPoint2);\r\n\t\t\t\t\t\tdouble maxPoint1 = allQueries.get(i).get(a).get(1);\r\n\t\t\t\t\t\tString maxPoint2 = df.format(maxPoint1);\r\n\t\t\t\t\t\tdouble maxPoint = Double.parseDouble(maxPoint2);\r\n\t\t\t\t\t\tdouble dataPoint1 = Double.parseDouble(dataset.get(b).get(a+1));\r\n\t\t\t\t\t\tString dataPoint2 = df.format(dataPoint1);\r\n\t\t\t\t\t\tdouble dataPoint = Double.parseDouble(dataPoint2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( dataPoint<= maxPoint && dataPoint >= minPoint) { Counter++; \r\n\t\t\t\t\t//\tSystem.out.println(\"min:\" + minPoint+\" max: \"+maxPoint+\" data: \"+dataPoint+ \" of Query: \" + b+ \"| Query Match!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {//System.out.println(minPoint+\" \"+maxPoint+\" \"+dataPoint+ \" of \" + b);\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\tif (Counter==(Queries.getDimensions())/2) { // if counter equals the dimensions of the query then increase score\r\n\t\t\t\t\tScore = allQueries.get(i).get(allQueries.get(i).size()-1).get(0);\r\n\t\t\t\t\tallQueries.get(i).get(allQueries.get(i).size()-1).set(0, Score+1.00); \r\n\t\t\t\t\t}}\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t//\tSystem.out.println(\"Score = \" + allQueries.get(i).get(allQueries.get(i).size()-1).get(0));\r\n\t\t}\t\r\n\t\treturn allQueries;\r\n\t}",
"public int bestSubmissionScore(String name) {\n // checks if student exists - stores index in student list if exists\n int exists = this.studentExists(name);\n\n // return -1 if student does not exist\n if (this.studentExists(name) == -1) {\n return -1;\n } else {\n // student exists, so return highest score\n return (studentList.get(exists)).getBestScore();\n }\n }",
"private static int getMaxScore(char[][] board){\n\n\t\tString result = gameStatus(board);\n\n\t\tif (result.equals(\"true\") && winner == 'X') return 1; //if x won\n\t\telse if (result.equals(\"true\") && winner == 'O') return -1;//if O won\n\t\telse if (result.equals(\"tie\")) return 0; //if tie\n\t\telse { \n\n\t\t\tint bestScore = -10;\n\t\t\tHashSet<Integer> possibleMoves = findPossibleMoves(board);\n\n\t\t\tfor (Integer move: possibleMoves){\n\n\t\t\t\tchar[][] modifiedBoard = new char[3][3];\n\n\t\t\t\tfor (int row = 0; row < 3; row++){\n\t\t\t\t\tfor (int col = 0; col < 3; col++){\n\t\t\t\t\t\tmodifiedBoard[row][col] = board[row][col];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodifiedBoard[move/3][move%3]='X';\n\n\t\t\t\tint currentScore = getMinScore(modifiedBoard);\n\n\t\t\t\tif (currentScore > bestScore){\n\t\t\t\t\tbestScore = currentScore;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn bestScore;\n\t\t}\n\t}",
"void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}",
"private void processScore(long time) {\r\n String oldScore = myDb.getSquirtleScore(user);\r\n if (oldScore.equals(\"-1\")) {\r\n myDb.setSquirtleScore(user, Integer.toString(score));\r\n String message = \"Oh no, you killed Squirtle! You set a personal record of \" +\r\n Integer.toString(score) + \" points. You survived for \" + String.valueOf(time) + \" seconds. Check the PERSONAL RECORDS to see your updated score!\";\r\n showMessage(\"Game Over!\", message, this);\r\n } else if (score < Integer.valueOf(oldScore)) {\r\n String message = \"Oh no, you killed Squirtle! Unfortunately your score of \" +\r\n Integer.toString(score) + \" did not beat your record of \" + myDb.getSquirtleScore(user) +\r\n \" points.\" + \" You survived for \" + String.valueOf(time) + \" seconds. \" + \"Better luck next time!\";\r\n showMessage(\"Game Over!\", message, this);\r\n } else {\r\n myDb.setSquirtleScore(user, Integer.toString(score));\r\n String message = \"Oh no, you killed Squirtle! You set a new personal record of \" +\r\n Integer.toString(score) + \" points, beating your previous record of \" + oldScore +\r\n \" points. You survived for \" + String.valueOf(time) + \" seconds. Check the PERSONAL RECORDS to see your updated score!\";\r\n showMessage(\"Game Over!\", message, this);\r\n }\r\n\r\n }",
"private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }",
"public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}",
"Float getScore();",
"public static void SaveBestScore(int new_score)\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(score_file_name, \"UTF-8\");\n writer.print(new_score);\n writer.close();\n currentBestScore = new_score;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + score_file_name + \".\"); }\n }",
"public OptionalDouble getBestScore()\n {\n if (scores.size() > 0)\n {\n return OptionalDouble.of(scores.lastKey());\n }\n else\n {\n return OptionalDouble.empty();\n }\n }",
"float getScore();",
"float getScore();",
"@Test\n public void whenSecondIsMax() {\n Max max = new Max();\n int rsl = max.max(0, 3, -1);\n assertThat(rsl, is(3));\n }",
"public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }",
"public abstract boolean higherScoresAreBetter();",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"double getMax();",
"double getMax();",
"public void checkHighScore(){\n if(timeElapsed >= highMinutes){\n highMinutes = timeElapsed;\n highSeconds = timeCounter / 60;\n }\n }",
"private static int max(int lhs, int rhs) {\r\n return lhs > rhs ? lhs : rhs;\r\n }",
"public double getHighestGrade(){\n double highestGrade = 0;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()> highestGrade)\n highestGrade = students.get(i).getGrades();\n }// end for\n return highestGrade;\n }",
"@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }",
"public void addUpTotalScore(int CurrentScore) {\n\t\tCursor cursor = getDatabase().getTotalScoreData(TotalScoretableName,\n\t\t\t\ttotalScoreID);\n\n\t\tint currentTotalScore = 0;\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tint MaxScore_temp = Integer.parseInt(cursor\n\t\t\t\t\t.getString(POINT_TOTAL_SCORE_COLUMN));\n\t\t\tif (MaxScore_temp > currentTotalScore)\n\t\t\t\tcurrentTotalScore = MaxScore_temp;\n\t\t\t//Log.d(TAG, \"total score is\" + MaxScore_temp + \" with ID : \"\n\t\t\t\t\t//+ totalScoreID);\n\t\t} // travel to database result\n\n\t\t// if(MaxScore < CurrentScore){\n\t\tlong RowIds = getDatabase().updateTotalScoreTable(TotalScoretableName,\n\t\t\t\ttotalScoreID, String.valueOf(CurrentScore + currentTotalScore));\n\t\t//if (RowIds == -1)\n\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t}",
"private static int max_value(State curr_state) {\n\t\tcounterMinimax++; \r\n\r\n\r\n\t\t//Check if the current state is a terminal state, if it is, return\r\n\t\t//its terminal value\r\n\t\tif(curr_state.isTerminal()){\r\n\t\t\treturn curr_state.getScore();\r\n\t\t}\r\n\r\n\t\tint max_value = Integer.MIN_VALUE;\r\n\t\tState[] successors = curr_state.getSuccessors('1');\r\n\r\n\t\tif(successors.length == 0 && curr_state.isTerminal() == false){\r\n\t\t\tmax_value = Math.max(max_value, min_value(curr_state));\r\n\t\t}\r\n\t\t//\t\telse if(successors.length != 0 && curr_state.isTerminal() == false){\r\n\r\n\t\t//Get the successors of the current state, as dark always runs first\r\n\t\t//it will call maxValue;\r\n\r\n\r\n\t\t//Select the successor that returns the biggest value\r\n\t\tfor(State state : successors){\r\n\t\t\tmax_value = Math.max(max_value, min_value(state));\r\n\t\t}\t\r\n\t\t//\t\t}\r\n\t\treturn max_value;\r\n\t}",
"private int minMaxHelper(int alpha, int beta, int currDepth,\n int cPlayerID, Moves move,\n Point playerNewPos,\n Point player1pos,\n Point player2pos,\n int scoreP1, int scoreP2) {\n Point oppPlayer = player1pos;\n if (cPlayerID == 1) {\n oppPlayer = player2pos;\n }\n\n if (gameState[playerNewPos.x][playerNewPos.y] == States.EMPTY) {\n if (didCloseOffNewSpace(playerNewPos, move)) {\n // calculate new opponent score (max of all possible opponent scores)\n int opponentNewScore = 0;\n int playerNewScore = findNumOpenSpots(playerNewPos)\n Point[] adjPoints = getAdjacentPoints(oppPlayer);\n for (int i = 0; i < adjPoints.length; i++) {\n int tempAdjScore = findNumOpenSpots(adjPoints[i]);\n opponentNewScore = opponentNewScore > tempAdjScore ? opponentNewScore : tempAdjScore;\n }\n\n // set opponents new score\n if (cPlayerID == 1) {\n scoreP1 = playerNewScore;\n scoreP2 = opponentNewScore;\n } else {\n scoreP1 = opponentNewScore;\n scoreP2 = playerNewScore;\n }\n }\n } else {\n // spot is a player\n if (playerNewPos.x == oppPlayer.x && playerNewPos.y == oppPlayer.y) {\n return tyingScore;\n }\n // spot is a losing point\n return losingScore;\n }\n\n Point newPlayer1pos = player1pos;\n Point newPlayer2pos = player2pos;\n int nextPlayerID = 1;\n // set pos of curr player and swap player\n if (cPlayerID == 1) {\n newPlayer1pos = playerNewPos;\n nextPlayerID = 2;\n } else {\n newPlayer2pos = playerNewPos;\n }\n\n if (cPlayerID == 1) {\n gameState[playerNewPos.x][playerNewPos.y] = States.PLAYER1;\n } else {\n gameState[playerNewPos.x][playerNewPos.y] = States.PLAYER2;\n }\n\n int nextScore = minMax(alpha, beta, currDepth-1, nextPlayerID, newPlayer1pos, newPlayer2pos, scoreP1, scoreP2);\n\n return nextScore;\n }",
"void updateMax(StockNode a){\n\t\tif(maxNode==null){\r\n\t\t\tmaxNode=a;\r\n\t\t} else { \r\n\t\t\tif(a.stockValue>maxNode.stockValue){\r\n\t\t\t\tmaxNode=a;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"protected final void setMax() {\n\n\tint prevmax = this.max;\n\n\tint i1 = this.high;\n\tint i2 = left.max;\n\tint i3 = right.max;\n\n\tif ((i1 >= i2) && (i1 >= i3)) {\n\t this.max = i1;\n\t} else if ((i2 >= i1) && (i2 >= i3)) {\n\t this.max = i2;\n\t} else {\n\t this.max = i3;\n\t}\n\t\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmax != this.max)) {\n \t p.setMax();\n\t}\n }",
"int getScoreValue();",
"public void createHighScore(String initials, int score) {\n ContentValues values = new ContentValues();\n values.put(COL_SCORE, score);\n values.put(COL_INITIALS, initials);\n\n mDb.insert(TABLE_NAME, null, values);\n }",
"protected double newCompundScore(double score, double score2) {\n return score + score2;\n }",
"void setScore(long score);",
"public int getScore()\n {\n return currentScore;\n }",
"public boolean recordScore(int score, String player) {\n\t\tboolean recorded = false;\n\t\t\n\t\t// -check if score is the new topScore\n\t\tif (score > topScore) {\n\t\t\t\t// - copy topScore/topName to secondScore/secondName\n\t\t\tsecondScore = topScore;\n\t\t\tsecondScorerName = topScorerName;\n\t\t\t\t// - topScore becomes score\n\t\t\ttopScore = score;\n\t\t\ttopScorerName = player;\n\t\t\t\t// - set response to true\n\t\t\trecorded = true;\n\t\t\t\n\t\t}\n\t\telse if (score > secondScore) {\n\t\t// -otherwise check if score is new secondScore\n\t\t\t\t// - secondScore becomes score\n\t\t\tsecondScore = score;\n\t\t\t\t// - secondName becomes player\n\t\t\tsecondScorerName = player;\n\t\t\t\t// - set response to true\n\t\t\trecorded = true;\n\t\t}\n\t\t// return boolean response\n\t\treturn recorded;\n\t}",
"private void writeHighscore(int highscore) {\n EditText eTName = findViewById(R.id.eTName);\n String name = eTName.getText().toString().trim();\n String name1 = preferences.getString(KEY_NAME+\"1\",\"\");\n String name2 = preferences.getString(KEY_NAME+\"2\",\"\");\n String name3 = preferences.getString(KEY_NAME+\"3\",\"\");\n int topscore1 = preferences.getInt(KEY+\"1\",0);\n int topscore2 = preferences.getInt(KEY+\"2\",0);\n int topscore3 = preferences.getInt(KEY+\"3\",0);\n if (highscore >= topscore1) {\n preferencesEditor.putInt(KEY+\"1\",highscore);\n preferencesEditor.putString(KEY_NAME+\"1\", name);\n preferencesEditor.putInt(KEY+\"2\",topscore1);\n preferencesEditor.putString(KEY_NAME+\"2\", name1);\n preferencesEditor.putInt(KEY+\"3\",topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else if (highscore >= topscore2) {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", highscore);\n preferencesEditor.putString(KEY_NAME+\"2\", name);\n preferencesEditor.putInt(KEY+\"3\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"2\", name2);\n preferencesEditor.putInt(KEY+\"3\", highscore);\n preferencesEditor.putString(KEY_NAME+\"3\", name);\n }\n preferencesEditor.commit();\n }",
"public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }",
"Float getAutoScore();",
"public ResultSet getHighestScore(String map) {\n return query(SQL_SELECT_HIGHEST_SCORE, map);\n }",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }",
"public int getAwayScore();",
"private static int getOptimalValue(int depth, int nodeIndex, boolean isMax,\n int[] scores, int h) {\n if (depth == h) \n return scores[nodeIndex];\n \n if (isMax) {\n return Math.max(getOptimalValue(depth+1, nodeIndex*2, false, scores, h), \n getOptimalValue(depth+1, nodeIndex * 2 + 1, false, scores, h));\n } else {\n return Math.min(getOptimalValue(depth+1, nodeIndex*2, true, scores, h), \n getOptimalValue(depth+1, nodeIndex * 2 + 1, true, scores, h));\n }\n }",
"public int getScore() {\n return currentScore;\n }",
"@Override\n\tpublic boolean endGame() {\t\n\t\tif (playerScore[0] == MAX_SCORE || playerScore[1] == MAX_SCORE) return true;\n\t\treturn false;\n\t}",
"public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }",
"public int getCurrentScore() {\n return currentScore;\n }",
"public Jogo jogoComMaiorScore() {\r\n\t\tJogo jogoComMaiorScore = listaDeJogosComprados.get(0);\r\n\r\n\t\tfor (Jogo jogo : listaDeJogosComprados) {\r\n\t\t\tif (jogo.getMaiorScore() >= jogoComMaiorScore.getMaiorScore()) {\r\n\t\t\t\tjogoComMaiorScore = jogo;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn jogoComMaiorScore;\r\n\t}",
"int getScore();",
"public int getMaximun(){\n int highGrade = grades[0]; //assumi que grades[0] é a maior nota\n //faz o loop pelo array de notas\n for(int grade: grades){\n //se a nota for maior que highGrade. atribui essa nota a highGrade\n if(grade > highGrade){\n highGrade = grade; //nota mais alta\n }\n }\n \n return highGrade;\n }",
"public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }",
"public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}",
"public void SaveBestScore(int BestScore) {\r\n\t\ttry {\r\n\t\t\t// Comprobamos el nivel que ha seleccionado el jugador y guardamos el score\r\n\t\t\tif (cheater == false) {\r\n\t\t\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\EasyScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\NormalScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\HardScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\t\t\tbw=new BufferedWriter(new FileWriter(\"C:\\\\Temp\\\\InvertidoScore.txt\"));\r\n\t\t\t\t\tbw.write(String.valueOf(BestScore+nl));\r\n\t\t\t\t\tbw.write(Menu.jugador);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t// Pasa el cheater a false\r\n\t\t\t\t\tcheater = false;\r\n\t\t\t\t}\r\n\t\t\t\t// Cierra el Buffered Writer\r\n\t\t\t\tbw.close();\r\n\t\t\t}\r\n\t\t// Captura las diferentes exceptions\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File can't open\");\r\n\t\t} \r\n\t}",
"public static double getPercentage(int score, int max){\n\t\treturn (double)score /(double)max*100;\n\t}",
"private int maxValue(Node state, int alpha, int beta) {\n\t\t\n\t\t\n\t\tthis.nodesExplored++;\n\t\tthis.nodesExploredThisTurn++;\n\t\t\n\t\tif (this.cutoffTest(state)) {\n\t\t\treturn state.eval(this.player);\n\t\t}\n\t\t\n\t\tArrayList<Move> legalMoves = state.getGame().getLegalMoves();\n\t\n\t\tif (this.moveOrdering) {\n\t\t\tthis.quickSort(state, legalMoves, 0, legalMoves.size() - 1, false);\n\t\t}\n\t\t\n\t\tint v = Integer.MIN_VALUE;\n\t\tMove bestMove = null;\n\t\tfor (Move move : legalMoves) {\n\t\t\t\n\t\t\tif (System.currentTimeMillis() - startMili > this.maxTime * 1000) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\t\n\t\t\tint value = this.minValue(state.result(move), alpha, beta);\n\t\t\tif (v < value) { //\n\t\t\t\tv = value;\n\t\t\t\tbestMove = move;\n\t\t\t}\n\t\t\t\n\t\t\tif (v >= beta) {\n\t\t\t\tstate.setBestMove(bestMove);\n\t\t\t\t\n\t\t\t\treturn v;\n\t\t\t}\n\t\t\talpha = Math.max(v, alpha);\n\t\t}\n\t\tstate.setBestMove(bestMove);\n\t\treturn v;\n\t}",
"public int getScore() {return score;}",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"public int getHighScore() {\n return highScore;\n }"
] | [
"0.7045788",
"0.6877945",
"0.68406916",
"0.6829211",
"0.67019325",
"0.66727376",
"0.6643172",
"0.6603481",
"0.6547653",
"0.65327334",
"0.648449",
"0.6482205",
"0.64399225",
"0.6417316",
"0.64144135",
"0.638071",
"0.63740265",
"0.6352077",
"0.63234264",
"0.6267961",
"0.6233603",
"0.6160038",
"0.60920453",
"0.6081016",
"0.6075087",
"0.6070246",
"0.6069096",
"0.59723836",
"0.5959713",
"0.59541065",
"0.5942025",
"0.5926114",
"0.59249616",
"0.5915966",
"0.5887573",
"0.58586967",
"0.58586967",
"0.58586967",
"0.58586967",
"0.5812216",
"0.58035994",
"0.57865757",
"0.57654834",
"0.57627267",
"0.5733606",
"0.57318854",
"0.5728002",
"0.57210344",
"0.57043624",
"0.569678",
"0.5689946",
"0.5670561",
"0.56681335",
"0.5662671",
"0.5662671",
"0.5658207",
"0.5650507",
"0.56479126",
"0.5645954",
"0.56429607",
"0.56429607",
"0.56415033",
"0.563405",
"0.56274056",
"0.56248206",
"0.561677",
"0.5605806",
"0.5598478",
"0.5593293",
"0.5588425",
"0.5583375",
"0.55724496",
"0.5572435",
"0.5572343",
"0.5564634",
"0.5552811",
"0.5546022",
"0.5540518",
"0.5537409",
"0.55310196",
"0.55263543",
"0.5522816",
"0.5522364",
"0.5522184",
"0.5520628",
"0.5511766",
"0.55074507",
"0.5505753",
"0.5498811",
"0.5495232",
"0.54920554",
"0.5490123",
"0.54889274",
"0.5485898",
"0.54840386",
"0.54830647",
"0.5476895",
"0.54737896",
"0.54725534",
"0.54611677"
] | 0.73912835 | 0 |
add current score of each play in game to total score for redeeming coupons | public void addUpTotalScore(int CurrentScore) {
Cursor cursor = getDatabase().getTotalScoreData(TotalScoretableName,
totalScoreID);
int currentTotalScore = 0;
while (cursor.moveToNext()) {
// loading each element from database
String ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);
int MaxScore_temp = Integer.parseInt(cursor
.getString(POINT_TOTAL_SCORE_COLUMN));
if (MaxScore_temp > currentTotalScore)
currentTotalScore = MaxScore_temp;
//Log.d(TAG, "total score is" + MaxScore_temp + " with ID : "
//+ totalScoreID);
} // travel to database result
// if(MaxScore < CurrentScore){
long RowIds = getDatabase().updateTotalScoreTable(TotalScoretableName,
totalScoreID, String.valueOf(CurrentScore + currentTotalScore));
//if (RowIds == -1)
//Log.d(TAG, "Error on inserting columns");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }",
"public void addPoints(int earnedPoints) {score = score + earnedPoints;}",
"private int calculateScore(){\n int score = 0;\n for(Card card : hand){\n score += card.getScore();\n }\n return score;\n }",
"public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }",
"void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }",
"public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }",
"public static void sumTotalScore() {\n totalScore += addRandomScore();;\n }",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"void addPointsToScore(int points) {\n score += points;\n }",
"public void addScore()\n {\n score += 1;\n }",
"public void updateScore(int playerScore){\n\t\tscore += playerScore;\n\t\tscoreTotalLabel.setText(\"\" + score);\n\t}",
"public void addScore(int score) {\n currentScore += score;\n }",
"public int score(){\r\n\t\t//to be implemented: should return game score \r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tscore= frames.get(i).score();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn score + bonusGame;\r\n\t}",
"public static void incrementScore() {\n\t\tscore++;\n\t}",
"public void addOneToScore() {\r\n score++;\r\n }",
"private void scoreSumUp(ArrayList<Player> players){\n for (Player player: players) {\n System.out.println(\"The Player \" + player.getUsername() + \" has total points of \" + player.getScore());\n }\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"public void addToScore(int score)\n {\n this.score += score;\n }",
"public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }",
"private void updateScoreRatios(IGame game, boolean addToTotal) {\n int player1Score = getScore(game, game.getPlayer1());\n int player2Score = getScore(game, game.getPlayer2());\n int difference = Math.abs(player1Score - player2Score);\n\n IPlayer player1 = game.getPlayer1();\n IPlayer player2 = game.getPlayer2();\n\n logger.info(player1 + \" has scored \" + player1Score + \" in total\");\n logger.info(player2 + \" has scored \" + player2Score + \" in total\");\n\n if (player1Score > player2Score) {\n\n if (addToTotal) {\n player1.setScoreRatio(player1.getScoreRatio() + difference);\n player2.setScoreRatio(player2.getScoreRatio() - difference);\n logger.info(player1 + \" +\" + difference + \" = \"\n + player1.getScoreRatio());\n logger.info(player2 + \" -\" + difference + \" = \"\n + player2.getScoreRatio());\n } else {\n logger.info(\"Resetting scores\");\n player2.setScoreRatio(player2.getScoreRatio() + difference);\n player1.setScoreRatio(player1.getScoreRatio() - difference);\n\n logger.info(player2 + \" +\" + difference + \" = \"\n + player2.getScoreRatio());\n logger.info(player1 + \" -\" + difference + \" = \"\n + player1.getScoreRatio());\n }\n\n } else if (player2Score > player1Score) {\n if (addToTotal) {\n player2.setScoreRatio(player2.getScoreRatio() + difference);\n player1.setScoreRatio(player1.getScoreRatio() - difference);\n\n logger.info(player2 + \" +\" + difference + \" = \"\n + player2.getScoreRatio());\n logger.info(player1 + \" -\" + difference + \" = \"\n + player1.getScoreRatio());\n } else {\n logger.info(\"Resetting scores\");\n player1.setScoreRatio(player1.getScoreRatio() + difference);\n player2.setScoreRatio(player2.getScoreRatio() - difference);\n\n logger.info(player1 + \" +\" + difference + \" = \"\n + player1.getScoreRatio());\n logger.info(player2 + \" -\" + difference + \" = \"\n + player2.getScoreRatio());\n }\n }\n }",
"private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }",
"public void incrementScore(int scoreToAdd) {\n this.score += scoreToAdd;\n }",
"public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}",
"@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }",
"public void addPoints(int turnTotal)\n {\n currentScore += turnTotal;\n \n if (currentScore >= PigGame.GOAL)\n {\n gamesWon++;\n }\n }",
"public void addToScore(int ammount){\n\t\tscore+=ammount;\n\t}",
"public static void adjustScoreIncrement() {\n\t\tint extraPoints = 0;\n\t\tif (!Snake.warpWallOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Block.blocksOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsQuickly) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsReallyQuickly) {\n\t\t\textraPoints+=3;\n\t\t}\n\t\t// increment equals all the bonuses, starting at a minimum of 1. This decreases if user switches to easier modes. Bigness and Fastness are reduced by 1 each here to keep the amount of increase down; it could be pumped up for a really high-scoring game\n\t\tincrement = extraPoints + SnakeGame.getBigness()-1 + SnakeGame.getFastness()-1 + Snake.snakeSize/10 ;\n\t}",
"public void add_to_score(int num){\n score+=num;\n }",
"public int totalScore() {\n return 0;\n }",
"@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}",
"public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }",
"public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public void addScore(int pointsToAdd) {\n\t\tthis.score = this.score + pointsToAdd;\n\t}",
"public int finalScore() {\n\t\tint total = 0;\n\t\tfor (Frame frame : frames) {\n\t\t\ttotal += frame.getScore(); // running total of each frames score added \n\t\t}\n\t\treturn total;\n\t}",
"public void incrementScore(int val) {\n score += val;\n }",
"public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }",
"public void addScore(int n){\n\t\tscore += n;\n\t}",
"public void rollBackTotal( int turnQuit )\n {\n totalScore -= turnScores[turnQuit];\n }",
"public void awardPoints(int points)\n {\n score += points ;\n }",
"public void increaseScore(){\n this.inc.seekTo(0);\n this.inc.start();\n this.currentScore++;\n }",
"public void addQuiz(double score){\n quizzes.add(score);\n quizTotal += score;\n}",
"public void incrementScore(int amount){\n\t\tthis.score += amount;\n\t}",
"public void increaseScore(int p) {\n score += p;\n //Minden novelesnel megnezzuk, hogy elertuk-e a gyozelem szukseges pandaszamot.\n if(score >= 25 && game.getSelectedMode() == Game.GameMode.FinitPanda){\n //Ha elertuk, szolunk a jateknak hogy vege.\n game.SaveHighScore(score);\n game.gameOver();\n }\n }",
"public void addTestScore(int score){\n test_score.add(test_count,score);\n test_count++;\n }",
"public int getTotalScore(){\r\n return totalScore;\r\n }",
"public int getTotalScore() {\r\n return totalScore;\r\n }",
"public static void AdditonGameMethod() {\n\t\t\t\t\n\t\t\t\tint hardness = 5;\n\t\t\t\tint hardnessStep = 2;\n\t\t\t\tint score = 0;\n\t\t\t\t\n\t\t\t\t// Set up my for loop to go through the number of rounds\n\t\t\t\tint numberOfRounds = 3;\n\t\t\t\tfor(int roundNumber = 1; \n\t\t\t\troundNumber <= numberOfRounds; \n\t\t\t\troundNumber = roundNumber + 1){\n\t\t\t\t\t//System.out.println(\"Inside the for loop. Round: \" + roundNumber);\n\t\t\t\t\tSystem.out.print(\"Round \" + roundNumber + \" of \" + numberOfRounds + \". \");\n\t\t\t\t\tboolean isAnswerCorrect = getAndCheckStudentAnswer(hardness);\n\t\t\t\t\tif(isAnswerCorrect){\n\t\t\t\t\t\tSystem.out.print(\"Your score was \" + score + \" and is now \");\n\t\t\t\t\t\tscore = score + hardness;\n\t\t\t\t\t\tSystem.out.print(score + \". \");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(roundNumber<numberOfRounds){\n\t\t\t\t\t\t\tSystem.out.print(\"Your hardness was \" + hardness + \" and is now \");\n\t\t\t\t\t\t\thardness = hardness * hardnessStep;\n\t\t\t\t\t\t\tSystem.out.println(hardness + \".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"Your score is \" + score + \". \");\n\t\t\t\t\t\tif(roundNumber<numberOfRounds){\n\t\t\t\t\t\t\tSystem.out.print(\"Your hardness was \" + hardness + \" and is now \");\n\t\t\t\t\t\t\tif(hardness>5){\n\t\t\t\t\t\t\t\thardness = hardness / hardnessStep;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(hardness + \".\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\nThe game is complete. \");\n\t\t\t\tSystem.out.println(\"Your final score was \" + score );\n\t\t\t}",
"public int score() {\n int sum = 0;\n for (Candidate c : chosen) {\n sum += c.score(compatibilityScoreSet);\n }\n return sum;\n }",
"public int getTotalScore(){\n return totalScore;\n }",
"@Override\n public int getScore() {\n return totalScore;\n }",
"public int getScore()\n {\n return points + extras;\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"void addScore(double score){\n\t\tsumScore+=score;\n\t\tnumScores++;\n\t\taverage = sumScore/numScores;\n\t}",
"private void incrementCounters() {\n // update score by 5 every second\n ++scoreTimer;\n if (scoreTimer > scoreInterval) {\n score += 5;\n scoreTimer = 0;\n }\n\n // update speed by 100% every second\n ++speedTimer;\n if (speedTimer > speedInterval) {\n currentSpeed *= speedFactor;\n ++gameLevel;\n speedTimer = 0;\n }\n\n // increment rock timer (we create a new rock every 2 seconds)\n ++rockTimer;\n }",
"public int calculScore(Deck deck)\n {\n return 0;\n }",
"private int calculateScore(ArrayList<HexCell> stack){\n int score = 0;\n for(HexCell current: stack){\n score += current.score;\n }\n return score;\n }",
"public synchronized void setScore(Integer score) {\n this.score += score;\n }",
"public void updateGame() \n\t{\n\t\tif (bet <= credit && bet <=500) // Verify that the bet is valid. \n\t\t{\n\t\t\tcredit = credit - bet; // Decrement the credit by the amount bet\n\t\t\tgamesPlayed++;\n\t\t\tif (ourWin == \"Royal Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\t\t\t\t//Increment the amount of games won\n\t\t\t\tcurrentWin = 250 *bet; // Determine the current win\n\t\t\t\tcredit+= currentWin;\t// Add the winnings to the player's credit\n\t\t\t\twinnings+= currentWin;\t// Keep a tally of all the winnings to this point\n\t\t\t\tcreditValue.setText(String.valueOf(credit)); // Update the credit value.\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 50 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Four of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 25 *bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Full House\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 9* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 6 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 4* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Three of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 3* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Two Pair\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 2* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Jacks or Better\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tgamesLost++;\n\t\t\t\tlosses+= bet;\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\t//Update the remaining statistics\n\t\t\tplayedValue.setText(String.valueOf(gamesPlayed));\n\t\t\twonValue.setText(String.valueOf(gamesWon));\n\t\t\tlostValue.setText(String.valueOf(gamesLost));\n\t\t\twinningsValue.setText(String.valueOf(winnings));\n\t\t\tlossesValue.setText(String.valueOf(losses));\n\t\t}\t\n\t}",
"public void addScore(int score);",
"public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }",
"public void updateScore(int score){ bot.updateScore(score); }",
"protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }",
"public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }",
"public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }",
"public Double getTotalScore() {\n return getExperienceTime() * 1.5 + meanGPA();\n }",
"public void updateScoreCard(){\n scoreCard.setText(correct+\"/\"+total);\n }",
"public void calculateResult() {\n\t\tfor (GameEngineCallback callback : callbacks) {\n\t\t\t// Roll for house\n\t\t\tthis.rollHouse(INITIAL_DELAY, FINAL_DELAY, DELAY_INCREMENT);\n\t\t\t\n\t\t\tfor (Player player : this.players.values()) {\n\t\t\t\t// Players who are playing must have a bet and a score\n\t\t\t\t// This conditional may not be required in Assignment 2\n\t\t\t\tif (player.getBet() > 0 && player.getRollResult()\n\t\t\t\t\t\t.getTotalScore() > 0) {\n\t\t\t\t\t// Compare rolls, set result and add/subtract points\n\t\t\t\t\tif (this.houseDice.getTotalScore() > player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.LOST;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Subtract bet from player points\n\t\t\t\t\t\tint points = player.getPoints() - player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\telse if (houseDice.getTotalScore() == player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.DREW;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No change to points on a draw\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.WON;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add bet to player points\n\t\t\t\t\t\tint points = player.getPoints() + player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display result\n\t\t\t\t\tcallback.gameResult(this.getPlayer(player.getPlayerId()), \n\t\t\t\t\t\t\tthis.getPlayer(player.getPlayerId()).getGameResult(), this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"static private void calculateMissionScore() {\n\n HashMap<String, Boolean> missionStatus = allMissions.missionStatus;\n\n for (String i : missionStatus.keySet()) {\n\n if (missionStatus.get(i) == true) {\n score.addToPoints(250);\n }\n }\n }",
"public int bonusScore(Player p){\n int score = p.getBombRange() + p.getNumberBombRemaining() + p.getNumberMoveRemaining();\n return score;\n }",
"public static void addScore(int _value){\n scoreCount += _value;\n scoreHUD.setText(String.format(Locale.getDefault(),\"%06d\", scoreCount));\n }",
"private void scoregain() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1+2;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2+2;\n }\n }",
"public int score()\n {\n if (this.score != Integer.MIN_VALUE)\n return this.score;\n\n this.score = 0;\n if (!this.safe)\n return 0;\n\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.score = (this.d.size() * 100) + ((this.NE - this.e.size()) * 10) + (this.e.size() == 0 ? bonus : 0);\n\n // value:\n return this.score;\n }",
"public int scoreSpec(){\n List<Player> players = state.getPlayers();\n int currentBonusScore = 0;\n int otherBonus = 0;\n for(int i = 0; i < players.size(); i++){\n if( i == state.getCurrentPlayerId()){\n currentBonusScore += bonusScore(players.get(i));\n }\n else{\n otherBonus += bonusScore(players.get(i));\n }\n }\n return currentBonusScore-otherBonus;\n }",
"public void updateScoreboard() {\r\n \tif(parentActivity instanceof GameActivity) {\r\n \t\t((TextView)(((GameActivity)parentActivity).getScoreboard())).setText(\"\"+score);\r\n \t}\r\n }",
"public Double getTotalScore() {\n return totalScore;\n }",
"@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}",
"public static void calculateScore(){\n boolean gameOver = false;\n int score = 3000;\n int levelCompleted = 8;\n int bonus = 200;\n\n System.out.println(\"Running method calculateScore: \");\n\n if(score < 4000){\n int finalScore = score + (levelCompleted*bonus);\n System.out.println(\"Your final score = \" + finalScore);\n }else{\n System.out.println(\"The game is still on\");\n }\n\n System.out.println(\"Exit method calculateScore--\\n\");\n }",
"public void addScore(int s) {\n setScore(getScore() + s);\n }",
"public void countScore(int score)\n {\n scoreCounter.add(score);\n }",
"private void bankUserScore() {\n if (game.isPlayer_turn()) {\n game.addPlayerScore(round_score);\n player_tot_view.setText(String.valueOf(game.getPlayer_total()));\n }\n else {\n game.addBankScore(round_score);\n bank_tot_view.setText(String.valueOf(game.getBank_total()));\n }\n if (game.isGameWon()) {\n gameWonDialog();\n } else {\n game.changeTurn();\n round_score = 0;\n round_score_view.setText(String.valueOf(round_score));\n String label;\n if (game.isPlayer_turn()) {\n game.incrementRound();\n label = \"Round \" + game.getRound() + \" - Player's Turn\";\n }\n else {\n label = \"Round \" + game.getRound() + \" - Banker's Turn\";\n }\n round_label.setText(label);\n if (!game.isPlayer_turn())\n doBankTurn();\n }\n }",
"public void incGamesPlayed() {\n gamesPlayed++;\n }",
"private void calculateGoalsScoredPerGame(LeagueTableEntry entry) {\r\n\t\tfloat goalsScoredPerGame = (float) entry.getGoalsScored() / entry.getMatchesPlayed();\r\n\t\tentry.setGoalsScoredPerGame(goalsScoredPerGame);\r\n\t}",
"private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}",
"public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}",
"private void updatePlayersWorth(){\n for (Player e : playerList) {\n e.setPlayerWorth(getTotalShareValue(e) + e.getFunds());\n }\n }",
"public int score(){\r\n\t\t\r\n\t\tint score = 0;\r\n\t\t\r\n\t\tif( this.isStrike() ) {\r\n\t\t\tif(this.getSubSequent() != null)\r\n\t\t\t\tscore += this.getSubSequent().score();\r\n\t\t}\r\n\t\t\r\n\t\tscore += this.firstThrow + this.secondThrow;\r\n\t\t\r\n\t\treturn score;\r\n\t\t\r\n\t}",
"public int getScore() {\r\n\t\treturn deck.getScore() + extraVictory;\r\n\t}",
"public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }",
"public void addToScore(int points) {\n\t\tassert points >= 0 : \"Cannot add negative points\";\n\t\tscore += points;\n\t}",
"private void scoreCounter(int playerName, int category, int score) {\n\t\t// firstly it will update the category score.\n\t\tdisplay.updateScorecard(category, playerName, score);\n\t\t// if the category is lower than upper score it means that player chose\n\t\t// one to six, and we calculate than the upper score.\n\t\tif (category < UPPER_SCORE) {\n\t\t\tupperScore[playerName] += score;\n\t\t\tdisplay.updateScorecard(UPPER_SCORE, playerName,\n\t\t\t\t\tupperScore[playerName]);\n\t\t\t// if the category is more than upper score it means that player\n\t\t\t// chose and we calculate than the lower score.\n\t\t} else if (category > UPPER_SCORE) {\n\t\t\tlowerScore[playerName] += score;\n\t\t\tdisplay.updateScorecard(LOWER_SCORE, playerName,\n\t\t\t\t\tlowerScore[playerName]);\n\t\t}\n\t\t// here we calculate total score by summing upper and lower scores.\n\t\ttotalScore[playerName] = upperScore[playerName]\n\t\t\t\t+ lowerScore[playerName];\n\t\t// if upper score is more than 63 it means player got the bonus.\n\t\tif (upperScore[playerName] >= 63) {\n\t\t\tdisplay.updateScorecard(UPPER_BONUS, playerName, 63);\n\t\t\t// we plus that bonus to total score.\n\t\t\ttotalScore[playerName] += 63;\n\t\t} else {\n\t\t\t// if upper score is lower than 63 it means player didn't get bonus,\n\t\t\t// and it means that bonus=0.\n\t\t\tdisplay.updateScorecard(UPPER_BONUS, playerName, 0);\n\t\t}\n\t\t// and finally we display total score.\n\t\tdisplay.updateScorecard(TOTAL, playerName, totalScore[playerName]);\n\t}",
"public void incrementScore(int increment) {\n score = score + increment;\n }",
"public void updateScore(double d) {\n\t\tscore+=d;\t\n\t}",
"public static void score() {\n\t\tSystem.out.println(\"SCORE: \");\n\t\tSystem.out.println(player1 + \": \" + score1);\n\t\tSystem.out.println(player2 + \": \" + score2);\n\t}",
"void updateScore () {\n scoreOutput.setText(Integer.toString(score));\n }",
"public void add_prev_rounds_score(int prevScore) {\n prev_rounds_score += prevScore;\n }",
"public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }"
] | [
"0.71571434",
"0.71177727",
"0.7052004",
"0.6996488",
"0.69944453",
"0.6981546",
"0.69660276",
"0.6953917",
"0.69402254",
"0.68245727",
"0.68230337",
"0.68161416",
"0.6773203",
"0.66854036",
"0.668308",
"0.668156",
"0.6679179",
"0.6671759",
"0.6658418",
"0.663534",
"0.6633471",
"0.658153",
"0.65517026",
"0.6482866",
"0.64820105",
"0.64811474",
"0.6455297",
"0.6454463",
"0.64443755",
"0.64375496",
"0.6413534",
"0.6413444",
"0.64106274",
"0.6408448",
"0.64003485",
"0.6399748",
"0.6394299",
"0.63913465",
"0.6389626",
"0.63594985",
"0.63579947",
"0.63447493",
"0.63440007",
"0.6342559",
"0.6330982",
"0.63303876",
"0.63284916",
"0.6326403",
"0.63194513",
"0.6315146",
"0.63139373",
"0.63050866",
"0.6303621",
"0.6301559",
"0.6275697",
"0.626614",
"0.62627167",
"0.6261824",
"0.62404615",
"0.6228336",
"0.62186646",
"0.6218092",
"0.6214296",
"0.6211145",
"0.6199559",
"0.6192765",
"0.6181695",
"0.6180404",
"0.6176366",
"0.6163749",
"0.6163359",
"0.6160178",
"0.61558115",
"0.6154587",
"0.61503094",
"0.6149222",
"0.6142956",
"0.6142645",
"0.6134007",
"0.6127456",
"0.61219573",
"0.611387",
"0.6102818",
"0.6101063",
"0.6096861",
"0.6087711",
"0.60835296",
"0.6083277",
"0.6083214",
"0.60829955",
"0.60813534",
"0.60771674",
"0.6074824",
"0.60649514",
"0.6060899",
"0.60536134",
"0.60379106",
"0.6025084",
"0.602371",
"0.60138065"
] | 0.6300315 | 54 |
update pool location after users buy coupon from this pool location | public void updatePoolwithBoughtCoupon(String ID, boolean isgteCoupon) {
helper.updatePoolLocationTable(PooltableName, ID,
convertToString(isgteCoupon));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateCouponwithBoughtCoupon(String ID, boolean isgetCoupon) {\n\t\thelper.updatePoolLocationTable(PooltableName, ID,\n\t\t\t\tconvertToString(isgetCoupon));\n\t}",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"private void updateTargetProductGeocoding() {\n }",
"public void addNewPool(poolLocation pool) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getPoolLocationData(PooltableName,\n\t\t\t\tpool.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}",
"public void UpdatePlace(iconnectionpool connectionPool, String id_user, String id_place, String ip, String id_similar_place){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement();\n String datesubmit=new java.text.SimpleDateFormat(\"yyyy-MM-dd-hh-mm-ss\").format(new java.util.Date());\n String sql=\"update similarplaces set id_similar_place='\"+id_similar_place+\"', dateupdate='\"+datesubmit+\"', ip_update='\"+ip+\"' where id_user='\"+id_user+\"' and id_place='\"+id_place+\"'\";\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }",
"public void updateCoupon(Coupon coupon) throws DbException;",
"public void updateLoc()\n {\n driverLoc = new ParseGeoPoint(driverLocCord.latitude, driverLocCord.longitude);\n ParseUser.getCurrentUser().put(\"Location\", driverLoc);\n ParseUser.getCurrentUser().saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e==null){\n Toast.makeText(getApplicationContext(), \"Location Updated\", Toast.LENGTH_SHORT).show();\n }\n else{\n\n Toast.makeText(getApplicationContext(), \"Error in Location Update\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n });\n\n\n populate();\n\n }",
"@Override\r\n\tpublic void onLocationChanged(Location location) {\n\t if(location!=null){\r\n\t //Toast.makeText(mContext,\"Location provider = \"+location.getProvider(), Toast.LENGTH_SHORT).show();\r\n if (LocationManager.GPS_PROVIDER.equals(location.getProvider())) {\r\n double [] latlng =Common.adjustLatLng(location.getLatitude(), location.getLongitude());\r\n location.setLatitude(latlng[0]);\r\n location.setLongitude(latlng[1]);\r\n Common.saveLocation(location);\r\n super.onLocationChanged(location);\r\n }else if(\"lbs\".equals(location.getProvider())){\r\n Common.saveLocation(location);\r\n super.onLocationChanged(location);\r\n }\r\n\t }\r\n\t}",
"private void update() {\n\n\t\tfloat shopping = Float.parseFloat(label_2.getText());\n\t\tfloat giveing = Float.parseFloat(label_5.getText());\n\t\tfloat companyDemand = Float.parseFloat(label_7.getText());\n\n\t\ttry {\n\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t.prepareStatement(\"update customer_list set Shopping_Account = \"\n\t\t\t\t\t\t\t+ shopping\n\t\t\t\t\t\t\t+ \" , Giving_Money_Account = \"\n\t\t\t\t\t\t\t+ giveing\n\t\t\t\t\t\t\t+ \", Company_demand = \"\n\t\t\t\t\t\t\t+ companyDemand\n\t\t\t\t\t\t\t+ \" where Name = '\"\n\t\t\t\t\t\t\t+ name\n\t\t\t\t\t\t\t+ \"' And Last_Name = '\"\n\t\t\t\t\t\t\t+ lastName + \"' \");\n\t\t\tstatement.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}",
"@Override\n\tpublic long getLocation() {\n\t\treturn _buySellProducts.getLocation();\n\t}",
"private void setPickupLocation(){\n \t\t// Defines the AutoCompleteTextView pickupText\n \t\tacPickup = (AutoCompleteTextView)findViewById(R.id.pickupText);\n \t\t// Controls if the user has entered an address\n \t\tif(!acPickup.getText().toString().equals(\"\")){\n \t\t\t// Gets the GeoPoint of the written address\n \t\t\tGeoPoint pickupGeo = GeoHelper.getGeoPoint(acPickup.getText().toString());\n \t\t\t// Gets the MapLocation of the GeoPoint\n \t\t\tMapLocation mapLocation = (MapLocation) GeoHelper.getLocation(pickupGeo);\n \t\t\t// Finds the pickup location on the route closest to the given address\n \t\t\tLocation temp = findClosestLocationOnRoute(mapLocation);\n \t\t\n \t\t\t//Controls if the user has entered a NEW address\n \t\t\tif(pickupPoint != temp){\n \t\t\t\t// Removes old pickup point (thumb)\n \t\t\t\tif(overlayPickupThumb != null){\n \t\t\t\t\tmapView.getOverlays().remove(overlayPickupThumb);\n \t\t\t\t\toverlayPickupThumb = null;\n \t\t\t\t}\n \t\t\t\tmapView.invalidate();\n \t\t\t\t\n \t\t\t\t// If no dropoff point is specified, we add the pickup point to the map.\n \t\t\t\tif(dropoffPoint == null){\n \t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t}else{ // If a dropoff point is specified:\n \t\t\t\t\tList<Location> l = getApp().getSelectedJourney().getRoute().getRouteData();\n \t\t\t\t\t// Checks to make sure the pickup point is before the dropoff point.\n \t\t\t\t\tif(l.indexOf(temp) < l.indexOf(dropoffPoint)){\n \t\t\t\t\t\t//makeToast(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\t\t\t\tad.setMessage(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tad.setTitle(\"Unable to send request\");\n \t\t\t\t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\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\tad.show();\n \t\t\t\t\t}else{\n \t\t\t\t\t\t// Adds the pickup point to the map by drawing a cross\n \t\t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t//makeToast(\"Please add a pickup address\");\n \t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\tad.setMessage(\"Please add a pickup address\");\n \t\t\tad.setTitle(\"Unable to send request\");\n \t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t });\n \t\t\tad.show();\n \t\t}\n \t}",
"public void updateVillagePools(){\r\n\t\tCollections.shuffle(this.marketPool);\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.setMarketPool(this.marketPool);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setLocation(long location) {\n\t\t_buySellProducts.setLocation(location);\n\t}",
"private void updateLocationToServer() {\n\n if (Utility.isConnectingToInternet(getActivity())) {\n\n if (mGpsTracker.canGetLocation()) {\n\n if (Utility.ischeckvalidLocation(mGpsTracker)) {\n\n Animation fade1 = AnimationUtils.loadAnimation(getActivity(), R.anim.flip);\n btnRefreshLocation.startAnimation(fade1);\n Map<String, String> params = new HashMap<String, String>();\n if (!AppConstants.isGestLogin(getActivity())) {\n params.put(\"iduser\", SharedPref.getInstance().getStringVlue(getActivity(), userId));\n } else {\n params.put(\"iduser\", \"0\");\n }\n\n params.put(\"latitude\", \"\" + mGpsTracker.getLatitude());\n params.put(\"longitude\", \"\" + mGpsTracker.getLongitude());\n RequestHandler.getInstance().stringRequestVolley(getActivity(), AppConstants.getBaseUrl(SharedPref.getInstance().getBooleanValue(getActivity(), isStaging)) + updatelocation, params, this, 5);\n fade1.cancel();\n } else {\n mGpsTracker.showInvalidLocationAlert();\n }\n } else {\n showSettingsAlert(5);\n }\n } else {\n Utility.showInternetError(getActivity());\n }\n\n }",
"public void updateLocation();",
"@Override\n public void onClick( View v ) {\n SharedPreferences sp = Objects.requireNonNull( getActivity() )\n .getSharedPreferences( Weather_Preference, 0 );\n SharedPreferences.Editor e = sp.edit();\n float curLat;\n float curLon;\n if ( cLocate != null ) {\n curLat = ( float ) cLocate.latitude;\n curLon = ( float ) cLocate.longitude;\n e.putString( MAP_LAT_KEY, String.valueOf( curLat ) );\n e.putString( MAP_LON_KEY, String.valueOf( curLon ) );\n Toast.makeText( mMaster, \"Latitude: \"\n .concat( String.valueOf( curLat ) )\n .concat( \" and Longitude: \" )\n .concat( String.valueOf( curLon ) )\n .concat( \" have been applied\" ),\n Toast.LENGTH_SHORT )\n .show();\n } else {\n /*Toast.makeText( mMaster, \"Error setting the location, check your GPS settings and permissions\", Toast.LENGTH_SHORT ).show();*/\n Toast.makeText( mMaster, \"Error setting the location; tap a location to drop a pin\", Toast.LENGTH_LONG ).show();\n }\n e.apply();\n }",
"public void updateOwners() {\n\t\tbuyOrder.getOwner().executedOrder(buyOrder,this);\n\t\tsellOrder.getOwner().executedOrder(sellOrder,this);\n\t}",
"@Override\n\tpublic void update_in_DB() throws CouponSiteMsg \n\t{\n\t\t\n\t}",
"private void updateAssignedPO() {\n Organisation organisation = PersistenceManager.getCurrent().getCurrentModel();\n\n Person productOwner = getModel().getAssignedPO();\n\n // Add all the people with the PO skill to the list of POs\n List<Person> productOwners = organisation.getPeople()\n .stream()\n .filter(p -> p.canBeRole(Skill.PO_NAME))\n .collect(Collectors.toList());\n\n // Remove listener while editing the product owner picker\n poComboBox.getSelectionModel().selectedItemProperty().removeListener(getChangeListener());\n poComboBox.getItems().clear();\n poComboBox.getItems().addAll(productOwners);\n if (poComboBox != null) {\n poComboBox.getSelectionModel().select(productOwner);\n if (!isCreationWindow) {\n navigateToPOButton.setDisable(false);\n }\n }\n poComboBox.getSelectionModel().selectedItemProperty().addListener(getChangeListener());\n }",
"public void add_location() {\n if (currentLocationCheckbox.isChecked()) {\n try {\n CurrentLocation locationListener = new CurrentLocation();\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null) {\n int latitude = (int) (location.getLatitude() * 1E6);\n int longitude = (int) (location.getLongitude() * 1E6);\n currentLocation = new GeoPoint(latitude, longitude);\n }\n } catch (SecurityException e) {\n e.printStackTrace();\n }\n } else {\n currentLocation = null;\n }\n\n }",
"public void setCouponAmount(double couponAmount) {\n _couponAmount = couponAmount;\n }",
"private void updatePool(Vector sold){\r\n\t\tfor(int i = 0; i < sold.size(); i++){\r\n\t\t\tthis.marketPool.addElement((Bird) sold.elementAt(i));\r\n\t\t}\r\n\t}",
"@Override\n\t/**\n\t * Accepts predefined Coupon object and updates entry with relevant ID in\n\t * the database with values from accepted Coupon object\n\t */\n\tpublic void updateCoupon(Coupon coupon) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to update Coupon via prepared statement\n\t\t\tString updateCouponSQL = \"update coupon set title=?, start_date=?, end_date=?, expired=?, type=?, message=?, price=?, image=? where id = ?\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(updateCouponSQL);\n\t\t\t// Fetching variables into SQL string via Coupon bean plus ID as\n\t\t\t// method accepted variable\n\t\t\tpstmt.setString(1, coupon.getTitle());\n\t\t\tpstmt.setDate(2, getSqlDate(coupon.getStart_date()));\n\t\t\tpstmt.setDate(3, getSqlDate(coupon.getEnd_date()));\n\t\t\tpstmt.setString(4, coupon.getExpired());\n\t\t\tpstmt.setString(5, coupon.getType());\n\t\t\tpstmt.setString(6, coupon.getMessage());\n\t\t\tpstmt.setInt(7, coupon.getPrice());\n\t\t\tpstmt.setString(8, coupon.getImage());\n\t\t\tpstmt.setInt(9, coupon.getId());\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint rowCount = pstmt.executeUpdate();\n\t\t\tif (rowCount != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupon has been updated successfully:\" + coupon);\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupon not found in the\n\t\t\t\t// database\n\t\t\t\tSystem.out.println(\"Coupon update has been failed - subject entry not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon update in the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon update has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"private void updateAccPoolState() {\n List<AionAddress> clearAddr = new ArrayList<>();\n for (Entry<AionAddress, AccountState> e : this.accountView.entrySet()) {\n AccountState as = e.getValue();\n if (as.isDirty()) {\n\n if (as.getMap().isEmpty()) {\n this.poolStateView.remove(e.getKey());\n clearAddr.add(e.getKey());\n } else {\n // checking AccountState given by account\n List<PoolState> psl = this.poolStateView.get(e.getKey());\n if (psl == null) {\n psl = new LinkedList<>();\n }\n\n List<PoolState> newPoolState = new LinkedList<>();\n // Checking new tx has been include into old pools.\n BigInteger txNonceStart = as.getFirstNonce();\n\n if (txNonceStart != null) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState fn [{}]\",\n txNonceStart.toString());\n }\n for (PoolState ps : psl) {\n // check the previous txn status in the old\n // PoolState\n if (isClean(ps, as)\n && ps.firstNonce.equals(txNonceStart)\n && ps.combo == seqTxCountMax) {\n ps.resetInFeePool();\n newPoolState.add(ps);\n\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState add fn [{}]\",\n ps.firstNonce.toString());\n }\n\n txNonceStart = txNonceStart.add(BigInteger.valueOf(seqTxCountMax));\n } else {\n // remove old poolState in the feeMap\n if (this.feeView.get(ps.getFee()) != null) {\n\n if (e.getValue().getMap().get(ps.firstNonce) != null) {\n this.feeView\n .get(ps.getFee())\n .remove(\n e.getValue()\n .getMap()\n .get(ps.firstNonce)\n .getKey());\n }\n\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState remove fn [{}]\",\n ps.firstNonce.toString());\n }\n\n if (this.feeView.get(ps.getFee()).isEmpty()) {\n this.feeView.remove(ps.getFee());\n }\n }\n }\n }\n }\n\n int cnt = 0;\n BigInteger fee = BigInteger.ZERO;\n BigInteger totalFee = BigInteger.ZERO;\n\n for (Entry<BigInteger, SimpleEntry<ByteArrayWrapper, BigInteger>> en :\n as.getMap().entrySet()) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState mapsize[{}] nonce:[{}] cnt[{}] txNonceStart[{}]\",\n as.getMap().size(),\n en.getKey().toString(),\n cnt,\n txNonceStart != null ? txNonceStart.toString() : null);\n }\n if (en.getKey()\n .equals(\n txNonceStart != null\n ? txNonceStart.add(BigInteger.valueOf(cnt))\n : null)) {\n if (en.getValue().getValue().compareTo(fee) > -1) {\n fee = en.getValue().getValue();\n totalFee = totalFee.add(fee);\n\n if (++cnt == seqTxCountMax) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState case1 - nonce:[{}] totalFee:[{}] cnt:[{}]\",\n txNonceStart,\n totalFee.toString(),\n cnt);\n }\n newPoolState.add(\n new PoolState(\n txNonceStart,\n totalFee.divide(BigInteger.valueOf(cnt)),\n cnt));\n\n txNonceStart = en.getKey().add(BigInteger.ONE);\n totalFee = BigInteger.ZERO;\n fee = BigInteger.ZERO;\n cnt = 0;\n }\n } else {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState case2 - nonce:[{}] totalFee:[{}] cnt:[{}]\",\n txNonceStart,\n totalFee.toString(),\n cnt);\n }\n newPoolState.add(\n new PoolState(\n txNonceStart,\n totalFee.divide(BigInteger.valueOf(cnt)),\n cnt));\n\n // next PoolState\n txNonceStart = en.getKey();\n fee = en.getValue().getValue();\n totalFee = fee;\n cnt = 1;\n }\n }\n }\n\n if (totalFee.signum() == 1) {\n\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState case3 - nonce:[{}] totalFee:[{}] cnt:[{}] bw:[{}]\",\n txNonceStart,\n totalFee.toString(),\n cnt,\n e.getKey().toString());\n }\n\n newPoolState.add(\n new PoolState(\n txNonceStart,\n totalFee.divide(BigInteger.valueOf(cnt)),\n cnt));\n }\n\n this.poolStateView.put(e.getKey(), newPoolState);\n\n if (LOG.isTraceEnabled()) {\n this.poolStateView.forEach(\n (k, v) ->\n v.forEach(\n l -> {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState - the first nonce of the poolState list:[{}]\",\n l.firstNonce);\n }));\n }\n as.sorted();\n }\n }\n }\n\n if (!clearAddr.isEmpty()) {\n clearAddr.forEach(\n addr -> {\n lock.writeLock().lock();\n this.accountView.remove(addr);\n lock.writeLock().unlock();\n this.bestNonce.remove(addr);\n });\n }\n }",
"@Override\n public void setLocationOfShop() {\n\n }",
"private void setDropOffLocation(){\n \t\t// Defines the AutoCompleteTextView with the dropoff address\n \t\tacDropoff = (AutoCompleteTextView)findViewById(R.id.dropoffText);\n \t\t//Controls if the user has entered an address\n \t\tif(!acDropoff.getText().toString().equals(\"\")){\n \t\t\t// Gets the GeoPoint of the given address\n \t\t\tGeoPoint dropoffGeo = GeoHelper.getGeoPoint(acDropoff.getText().toString());\n \t\t\t// Gets the MapLocation from the given GeoPoint\n \t\t\tMapLocation mapLocation = (MapLocation) GeoHelper.getLocation(dropoffGeo);\n \t\t\t// Finds the dropoff location on the route closest to the given address\n \t\t\tLocation temp = findClosestLocationOnRoute(mapLocation);\n \t\t\t\n \t\t\t// Controls if the user has entered a NEW address\n \t\t\tif(dropoffPoint != temp){\n \t\t\t\t// Removes old pickup point (thumb)\n \t\t\t\tif(overlayDropoffThumb != null){\n \t\t\t\t\tmapView.getOverlays().remove(overlayDropoffThumb);\n \t\t\t\t\toverlayDropoffThumb = null;\n \t\t\t\t}\n \t\t\t\tmapView.invalidate();\n \t\t\t\t\n \t\t\t\t// If no pickup point is specified, we add the dropoff point to the map.\n \t\t\t\tif(pickupPoint == null){\n \t\t\t\t\tdropoffPoint = temp;\n \t\t\t\t\toverlayDropoffThumb = drawThumb(dropoffPoint, false);\n \t\t\t\t}else{ // If a pickup point is specified:\n \t\t\t\t\tList<Location> l = getApp().getSelectedJourney().getRoute().getRouteData();\n \t\t\t\t\t// Checks to make sure the dropoff point is after the pickup point.\n \t\t\t\t\tif(l.indexOf(temp) > l.indexOf(pickupPoint)){\n \t\t\t\t\t\t//makeToast(\"The droppoff point has to be after the pickup point\");\n \t\t\t\t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\t\t\t\tad.setMessage(\"The droppoff point has to be after the pickup point\");\n \t\t\t\t\t\tad.setTitle(\"Unable to send request\");\n \t\t\t\t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\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\tad.show();\n \t\t\t\t\t}else{\n \t\t\t\t\t\t// Adds the dropoff point to the map by drawing a cross\n \t\t\t\t\t\tdropoffPoint = temp;\n \t\t\t\t\t\toverlayDropoffThumb = drawThumb(dropoffPoint, false);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t//makeToast(\"Please add a dropoff address\");\n \t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\tad.setMessage(\"Please add a dropoff address\");\n \t\t\tad.setTitle(\"Unable to send request\");\n \t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t });\n \t\t\tad.show();\n \t\t}\n \t}",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public void onTempPowerSaveWhitelistChanged(AppStateTracker sender) {\n updateAllJobs();\n }",
"private void updateWeather() {\n\t\tFetchWeatherTask weatherTask = new FetchWeatherTask(getActivity()); \n\t\tString location = Utility.getPreferredLocation(getActivity());\n\t\tweatherTask.execute(location); \n\t}",
"public static void updateCoupon(Context context, String id, final Coupon c)\n {\n Query reff;\n reff= FirebaseDatabase.getInstance().getReference().child(\"coupon\").orderByChild(\"seri\").equalTo(id);\n reff.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot: dataSnapshot.getChildren())\n {\n Coupon coupon=snapshot.getValue(Coupon.class);\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"coupon\").child(coupon.getIdcoupon());\n c.setIdcoupon(coupon.getIdcoupon());\n ref.setValue(c);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"@Override\n public void onClick(View view) {\n if (markerPlaced) {\n //Firestore handler method that adds geopoint as a field in database\n setPickupLocation(bookId, lat, lon);\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Pickup location has been updated\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Place a marker first\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }",
"public void handleBuyGuppyCommand() {\n if (Aquarium.money >= GUPPYPRICE) {\n guppyController.addNewEntity();\n Aquarium.money -= GUPPYPRICE;\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n finalList = adapter.getMenu();\n Order newOrder = new Order();\n newOrder.setVendor(Id);\n newOrder.setCustomer(userID);\n newOrder.setCustomerLocation(latitude+\",\"+longitude);\n newOrder.setVendorName(curr.getName());\n newOrder.setDate(new SimpleDateFormat(\"dd/MM/yyyy\", Locale.getDefault()).format(new Date()));\n HashMap<String, CartItem> newCart = new HashMap<>();\n float amount = 0;\n for (MenuItem item : finalList) {\n if (!item.getQuantity().equals(\"0\")) {\n amount += Integer.parseInt(item.getQuantity()) * Integer.parseInt(item.getPrice());\n newCart.put(item.getName(), new CartItem(item.getPrice(), item.getQuantity()));\n }\n }\n if(newCart.size()==0)\n {\n Toast.makeText(restrauntPage.this, \"Please add atleast 1 item\", Toast.LENGTH_SHORT).show();\n return;\n }\n amount = amount * 1.14f;\n newOrder.setTotalAmount(String.valueOf(amount));\n newOrder.setItemsOrdered(newCart);\n Log.d(\"checkout\", newOrder.toString());\n Intent mainIntent = new Intent(restrauntPage.this, paymentOrder.class);\n mainIntent.putExtra(\"order\",newOrder);\n mainIntent.putExtra(\"userId\",userID);\n mainIntent.putExtra(\"userInfo\",currUser);\n startActivity(mainIntent);\n finish();\n }\n }",
"@Override\n\tpublic void modifySystemCoupons(BeanCoupon coupon,String couponcontent, String fitprice, String couponprice,String couponstarttime, String couponendtime) throws BaseException {\n\t\tConnection conn=null;\n\t\tSimpleDateFormat sdf = new SimpleDateFormat( \"yyyy-MM-dd HH:mm:ss\" );\n\t\tjava.util.Date date1 = null;\n\t\tjava.util.Date date2 = null;\n\t\tBeanCoupon cp=new BeanCoupon();\n\t\tcp.setCoupon_content(couponcontent);\n\t\tfloat coupon_fitmoney=Float.parseFloat(fitprice);\n\t\tcp.setCoupon_fit_money(coupon_fitmoney);\n\t\tfloat coupon_price=Float.parseFloat(couponprice);\n\t\t//System.out.println(coupon_fitmoney);\n\t\tcp.setCoupon_price(coupon_price);\n\t\ttry {\n\t\t\tdate1 = sdf.parse( couponstarttime );\n\t\t\t//System.out.print(date1);\n\t\t\tdate2 = sdf.parse( couponendtime );\n\t\t} catch (ParseException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tlong ls = date1.getTime();\n//\t\tSystem.out.print(ls);\n//\t\tTimestamp t=new Timestamp(ls);\n//\t\tSystem.out.print(t);\n\t\tlong le = date2.getTime();\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"update coupon set coupon_content=?,coupon_fit_money=?,coupon_price=?,\"\n\t\t\t\t\t+ \"coupon_start_time=?, coupon_end_time=? where coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, cp.getCoupon_content());\n\t\t\tpst.setFloat(2, cp.getCoupon_fit_money());\n\t\t\tpst.setFloat(3, cp.getCoupon_price());\n\t\t\tpst.setTimestamp(4, new java.sql.Timestamp( ls ));\n\t\t\tpst.setTimestamp(5, new java.sql.Timestamp( le ));\n\t\t\tpst.setString(6, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}",
"@Then(\"^: proceed to checkout$\")\r\n\tpublic void proceed_to_checkout() throws Throwable {\n\t\tobj.update();\r\n\t}",
"private poolLocation getCouponLocation(int ID) {\n\t\tpoolLocation coupon = null;\n\t\tif (ID == 0) {\n\t\t\tcoupon = new poolLocation(coupon1ID, Coupon1Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon1ID));\n\t\t} else if (ID == 1) {\n\t\t\tcoupon = new poolLocation(coupon2ID, Coupon2Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon2ID));\n\t\t} else if (ID == 2) {\n\t\t\tcoupon = new poolLocation(coupon3ID, Coupon3Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon3ID));\n\t\t}\n\t\treturn coupon;\n\t}",
"private void updateLocationUI() {\r\n if (mCurrentLocation != null) {\r\n CityName = mCurrentLocation.getLatitude()+ mCurrentLocation.getLongitude();\r\n }\r\n }",
"boolean update(Country country);",
"public void makeUseOfNewLocation(Location location) {\n \t\tString place = null;\n \t\tif(location!=null)\n \t\t{\n \t\t\tGeocoder gc = new Geocoder(organise.getApplicationContext());\n \t\t\ttry {\n \t\t\t\tList<Address> list = gc.getFromLocation(location.getLatitude(), location.getLongitude(), 5);\n \t\t\t\tint i = 0;\n \t\t\t\twhile (i<list.size()) \n \t\t\t\t{\n \t\t\t\t\tString temp = list.get(i).getLocality();\n \t\t\t\t\tif(temp!=null) {place = temp;}\n \t\t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\tif(place!=null) {cur_loc.setText(place);}\n \t\t\t\telse {cur_loc.setText(\"(\" + location.getLatitude() + \",\" + location.getLongitude() + \")\");}\n \t\t\t}\n \t\t\t//This is thrown if the phone has no Internet connection.\n \t\t\tcatch (IOException e) {\n \t\t\t\tcur_loc.setText(\"(\" + location.getLatitude() + \",\" + location.getLongitude() + \")\");\n \t\t\t}\n \t\t}\n \t}",
"public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}",
"private void updateFragmentOnLocationSuccess() {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n if (permissionCheck == PackageManager.PERMISSION_GRANTED) {\n fusedLocationClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n coordinate = new Coordinate(location.getLatitude(), location.getLongitude());\n poll.setCoordinate(coordinate);\n\n // Obtain the setting fragment so we can communicate with it through\n // public methods\n SettingFragment settingFragment = (SettingFragment) getSupportFragmentManager()\n .findFragmentByTag(FRAGMENT_SETTING_TAG);\n\n if (settingFragment != null) {\n settingFragment.unlockCurrentLocationRadio(true);\n }\n } else {\n displayNoLocationToast();\n }\n }\n });\n }\n }",
"public abstract void updateLocation(Location location, String newLocationName, int newLocationCapacity);",
"private void updateWithNewLocation(Location location)\n {\n\n float fLatitude = (float)0.0;\n float fLongitude = (float)0.0;\n float fHepe=(float)10000.0;\n byte ucNapUsed = 0;\n byte ucWiperErrorCode = 0;\n\n if (Config.LOGD) Log.d(TAG,\"Network Location callback\");\n\n if( location != null)\n {\n //read params from location structure return by WPS\n fLatitude = (float)(location.getLatitude());\n fLongitude = (float)(location.getLongitude());\n fHepe = location.getAccuracy();\n\n if(bScanCompleted == true)\n {\n ucNapUsed= (byte)aResults.size();\n }\n else\n {\n ucNapUsed = 50;\n }\n\n }\n else\n {\n ucWiperErrorCode = 99;\n }\n startWiperReport();\n native_notify_wiper_position(fLatitude,fLongitude,fHepe,ucNapUsed,ucWiperErrorCode);\n endWiperReport();\n\n }",
"protected void trackLocation(View v) {\n SharedPreferences sharedPreferences = this.getSharedPreferences(\"com.tryagain.com.fleetmanagmentsystem.prefs\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n if (!saveUserSettings()) {\n return;\n }\n\n if (!checkIfGooglePlayEnabled()) {\n return;\n }\n\n if (currentlyTracking) {\n cancelAlarmManager();\n\n currentlyTracking = false;\n editor.putBoolean(\"currentlyTracking\", false);\n editor.putString(\"sessionID\", \"\");\n //int totalFuel = sharedPreferences.getInt(\"fuel\", 0);\n //float totalDistance = sharedPreferences.getFloat(\"distance\", -1);\n //Toast.makeText(getApplicationContext(),\"\"+totalFuel+\" \"+totalDistance,Toast.LENGTH_SHORT).show();\n } else {\n startAlarmManager();\n\n currentlyTracking = true;\n editor.putBoolean(\"currentlyTracking\", true);\n //editor.putFloat(\"totalDistanceInMeters\", 0f);\n editor.putBoolean(\"firstTimeGettingPosition\", true);\n editor.putString(\"sessionID\", UUID.randomUUID().toString());\n editor.putInt(\"fuel\", gaugeValue);\n\n mGaugeView.setVisibility(View.INVISIBLE);\n }\n\n editor.apply();\n setTrackingButtonState();\n }",
"@Override\n\tpublic void update(int timeStep)\n\t{\n\t\tthis.checkForNewAppliancesAndUpdateConstants();\n\n\t\tdouble[] ownersCostSignal = this.owner.getPredictedCostSignal();\n\t\tthis.dayPredictedCostSignal = Arrays.copyOfRange(ownersCostSignal, timeStep % ownersCostSignal.length, timeStep\n\t\t\t\t% ownersCostSignal.length + this.ticksPerDay);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"update\");\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tthis.dayPredictedCostSignal = ArrayUtils\n\t\t\t\t.offset(ArrayUtils.multiply(this.dayPredictedCostSignal, this.predictedCostToRealCostA), this.realCostOffsetb);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"afterOffset dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tif (this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tthis.setPointProfile = Arrays.copyOf(this.owner.getSetPointProfile(), this.owner.getSetPointProfile().length);\n\t\t\tthis.optimisedSetPointProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.currentTempProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.heatPumpDemandProfile = this.calculateEstimatedSpaceHeatPumpDemand(this.setPointProfile);\n\t\t\t// (20/01/12) Check if sum of <heatPumpDemandProfile> is consistent\n\t\t\t// at end day\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \" + ArrayUtils.sum(this.heatPumpDemandProfile));\n\t\t\t}\nif (\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\tthis.mainContext.logger.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \"\n\t\t\t\t\t+ ArrayUtils.sum(this.calculateEstimatedSpaceHeatPumpDemand(this.optimisedSetPointProfile)));\n}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.heatPumpDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.hotWaterVolumeDemandProfile = Arrays.copyOfRange(this.owner.getBaselineHotWaterVolumeProfile(), (timeStep % this.owner\n\t\t\t\t\t.getBaselineHotWaterVolumeProfile().length), (timeStep % this.owner.getBaselineHotWaterVolumeProfile().length)\n\t\t\t\t\t+ this.ticksPerDay);\n\t\t\tthis.waterHeatDemandProfile = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR\n\t\t\t\t\t* (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP) / Consts.DOMESTIC_HEAT_PUMP_WATER_COP));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.waterHeatDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.coldAppliancesControlled && this.owner.isHasColdAppliances())\n\t\t{\n\t\t\tthis.optimiseColdProfile(timeStep);\n\t\t}\n\n\t\tif (this.wetAppliancesControlled && this.owner.isHasWetAppliances())\n\t\t{\n\t\t\tthis.optimiseWetProfile(timeStep);\n\t\t}\n\n\t\t// Note - optimise space heating first. This is so that we can look for\n\t\t// absolute\n\t\t// heat pump limit and add the cost of using immersion heater (COP 0.9)\n\t\t// to top\n\t\t// up water heating if the heat pump is too great\n\t\tif (this.spaceHeatingControlled && this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tif (this.owner.hasStorageHeater)\n\t\t\t{\n\t\t\t\tthis.optimiseStorageChargeProfile();\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\"Optimised storage heater profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tthis.optimiseSetPointProfile();\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"Optimised set point profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.waterHeatingControlled && this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.optimiseWaterHeatProfileWithSpreading();\n\t\t}\n\n\t\tif (this.eVehicleControlled && this.owner.isHasElectricVehicle())\n\t\t{\n\t\t\tthis.optimiseEVProfile();\n\t\t}\n\n\t\t// At the end of the step, set the temperature profile for today's\n\t\t// (which will be yesterday's when it is used)\n\t\tthis.priorDayExternalTempProfile = this.owner.getContext().getAirTemperature(timeStep, this.ticksPerDay);\n\t}",
"void updateWarehouseDepot(String username, LightWarehouseDepot warehouseDepot);",
"private void updateLocation(Location l){\n\n //Check if we are due an update (the difference between now and the last update must be more than the frequency of updates)\n long time = System.currentTimeMillis();\n l.setTime(time); //Use the time from the device TODO Do we need this step?\n long timeSinceUpdate = time - lastUpdate;\n\n\n //If an update is required\n if(timeSinceUpdate >= frequency) {\n\n //Update last update time\n lastUpdate = time;\n\n NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo();\n //If connected to the internet then we can either initialize or upload our location\n if (netInfo != null && netInfo.isConnected()) {\n //If initialized upload the location\n if (initialized) {\n //Upload location the current location and tie up any loose ends\n uploadLocation(l);\n tieUpLooseEnds();\n }\n //If not initialized then initialize and add location to loose ends\n else {\n //Initialize\n init();\n //Add to loose ends\n looseEnds.add(l);\n }\n }\n //If not connected then add the location to our list of loose ends\n else {\n looseEnds.add(l);\n }\n }\n //If no update is due\n else{\n //No update - update time ago on the notification\n String updateTime = AbstractTrackerActivity.niceTime(timeSinceUpdate);\n notificationBuilder.setContentText(String.format(getString(R.string.notification_time_ago), updateTime));\n notificationManager.notify(AbstractTrackerActivity.NOTIFICATION_ID, notificationBuilder.build());\n }\n }",
"public ArrayList<poolLocation> getCouponList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> temp_CouponList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(coupon1ID)\n\t\t\t\t\t|| location.getTitle().equals(coupon2ID) || location\n\t\t\t\t\t.getTitle().equals(coupon3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == true)\t\t\t\t\t\t// only show coupons which are bought from the mall\n\t\t\t\ttemp_CouponList.add(location);\n\t\t}\n\n\t\treturn temp_CouponList;\n\t\t// return POOL_LIST;\n\t}",
"void update(Location location);",
"public void setLocation(){\n //Check if user come from notification\n if (getIntent().hasExtra(EXTRA_PARAM_LAT) && getIntent().hasExtra(EXTRA_PARAM_LON)){\n Log.d(TAG, \"Proviene del servicio, lat: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LAT) + \" - lon: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LON));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(getIntent().getExtras().getDouble(EXTRA_PARAM_LAT), getIntent().getExtras().getDouble(EXTRA_PARAM_LON)), 18));\n NotificationManager mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNM.cancel(1);\n } else{\n if (bestLocation!=null){\n Log.d(TAG, \"Posicion actual -> LAT: \"+ bestLocation.getLatitude() + \" LON: \" + bestLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(bestLocation.getLatitude(), bestLocation.getLongitude()), 16));\n } else{\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(41.651981, -4.728561), 16));\n }\n }\n }",
"public abstract void updateLocations();",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\tif (location != null)\n\t\t\t{\n\t\t\t\tdouble mLat = location.getLatitude();\n\t\t\t\tdouble mLng = location.getLongitude();\n\t\t\t\tLog.i(\"Geo Test: \", Double.toString(mLng) + Double.toString(mLat));\n\t\t\t\tParseGeoPoint point = new ParseGeoPoint(mLat, mLng);\n\t\t\t\tuser.put(\"lastKnownLocation\", point);\n\t\t\t\tuser.saveInBackground();\n\t\t\t\t\n\t lm.removeUpdates(this);\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void updateComfirmPeo(Integer comfirm_peo, String bc_id) {\n\t\t\n\t}",
"@Override\n\tpublic void updateIntoSupplierView(SupplierProduct supplierview) {\n\t String sql=\"UPDATE supplier_product SET product_product_id=?, quantity=?, cost=?, buy_date=? WHERE supplier_supplier_id=?\";\n\t getJdbcTemplate().update(sql, new Object[] {supplierview.getProductId(),supplierview.getQuantity(),supplierview.getCost(),supplierview.getBuyDate(),supplierview.getSupplierId()});\n\t}",
"@GET\n @Path(\"/points/{user}/{pool}/{increment}\")\n public Response incrementPool(\n @Context HttpServletRequest request \n ,@Context HttpServletResponse response\n ,@Context ServletContext servletContext\n ,@PathParam(\"user\") String user\n ,@PathParam(\"pool\") String pool\n ,@PathParam(\"increment\") String increment\n ){\n try{\n Database2 db=Database2.get();\n db.increment(pool, user, Integer.valueOf(increment), null).save();\n db.save();\n return Response.status(200).entity(\"{\\\"status\\\":\\\"DONE\\\"}\").build();\n }catch(Exception e){\n return Response.status(500).entity(\"{\\\"status\\\":\\\"ERROR\\\",\\\"message\\\":\\\"\"+e.getMessage()+\"\\\"}\").build(); \n }\n }",
"@Override\n\tpublic void notifyAfterMobsim(AfterMobsimEvent event) {\n\t\tOperatorData data = fleetListener.getData(OperatorConfig.DEFAULT_OPERATOR_ID);\n\n\t\tdouble vehicleDistance_km = data.emptyDistance_m + data.occupiedDistance_m;\n\t\tdouble passengerDistance_km = data.passengerDistance_m;\n\n\t\tdouble fleetCost_MU = 0.0;\n\t\tfleetCost_MU += vehicleDistance_km * parameters.distanceCost_MU_km;\n\t\tfleetCost_MU += numberOfVehicles * parameters.vehicleCost_MU;\n\n\t\t// Second, obtain price per passenger kilometer\n\t\tobservedPrice_MU_km = fleetCost_MU / passengerDistance_km;\n\t\tobservedPrice_MU_km *= parameters.priceFactor;\n\n\t\t// Third, interpolate\n\t\tif (Double.isFinite(observedPrice_MU_km)) {\n\t\t\tactivePrice_MU_km = activePrice_MU_km * (1.0 - parameters.alpha) + parameters.alpha * observedPrice_MU_km;\n\t\t}\n\t}",
"public void updateSupplierDetail(Supplier obj) {\n\t\t\r\n\t}",
"@Override\n\tpublic void updateCoupon(long id, Coupon coupon)\n\t\t\tthrows ClassNotFoundException, SQLException, IOException, ParseException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_COUPON_BY_ID);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tif (id == resultSet.getInt(1)) {\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TITLE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_START_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getStartDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_END_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getEndDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_AMOUNT_BY_ID);\n\t\t\t\tstatement.setInt(1, coupon.getAmount());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TYPE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getType().toString());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_MESSAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getMessage());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_PRICE_BY_ID);\n\t\t\t\tstatement.setDouble(1, coupon.getPrice());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_IMAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getImage());\n\t\t\t\tstatement.setLong(2, id);\n\n\t\t\t\tSystem.out.println(\"Coupon updated successfull\");\n\t\t\t}\n\n\t\t}\n\t\tConnectionPool.getInstance().returnConnection(connection);\n\t}",
"public void trackPickedUpEvent(CarrierShipmentPickupEndEvent event) {\n\t\tif (shipments.containsKey(event.getShipmentId())) {\n\t\t\tshipments.get(event.getShipmentId()).pickUpTime = event.getTime();\n\t\t\t//FixMe: Driver is no longer part of the events... kmt jul22\n//\t\t\tshipments.get(shipment.getId()).driverId = event.getDriverId();\n\t\t}\n\t}",
"@Override\n public boolean confirmHirePlacement(int hire_id,\n float end_location_latitude,\n float end_location_longitude,\n double cost,\n int driver_id,\n double length) {\n\n\n String sqlForUpdateCustomer = \"UPDATE hire set end_location_latitude = ?, end_location_longitude = ?, cost = ?, driver_id = ? ,length=?, hire_status=1 where hire_id = ?\";\n Object[] args = new Object[]{end_location_latitude, end_location_longitude, cost, driver_id, length, hire_id};\n\n boolean isHirePlacementConfirmed = (jdbcTemplate.update(sqlForUpdateCustomer, args) == 1);\n\n return isHirePlacementConfirmed;\n }",
"public void upgradeAction(World world, BlockPos posOfPedestal, ItemStack itemInPedestal, ItemStack coinInPedestal)\n {\n double speed = getOperationSpeedOverride(coinInPedestal);\n double capacityRate = getCapicityModifier(coinInPedestal);\n int getMaxEnergyValue = getEnergyBuffer(coinInPedestal);\n if(!hasMaxEnergySet(coinInPedestal) || readMaxEnergyFromNBT(coinInPedestal) != getMaxEnergyValue) {setMaxEnergy(coinInPedestal, getMaxEnergyValue);}\n\n //Generator when it has fuel, make energy every second based on capacity and speed\n //20k per 1 coal is base fuel value (2500 needed in mod to process 1 item)\n //1 coal takes 1600 ticks to process default??? furnace uses 2500 per 10 seconds by default\n //so 12.5 energy per tick (250/sec)\n double speedMultiplier = (20/speed);\n int baseFuel = (int) (20 * speedMultiplier);\n int fuelConsumed = (int) Math.round(baseFuel * capacityRate);\n if(removeFuel(world,posOfPedestal,fuelConsumed,true))\n {\n doEnergyProcess(world,coinInPedestal,posOfPedestal,baseFuel,capacityRate);\n }\n else {\n int fuelLeft = getFuelStored(coinInPedestal);\n doEnergyProcess(world,coinInPedestal,posOfPedestal,fuelLeft,capacityRate);\n }\n }",
"public void updatePlayerLocation() {requires new property on gamestate object\n //\n }",
"@Override\n public void onLocationChanged(Location location) {\n Log.i(LOG_TAG, \"Location Change\");\n Location target = new Location(\"target\");\n String closePoint;\n int closestIndex = -1;// Default to none\n float minDistance = 1000; // Default to high value\n\n // Focus camera on initial location\n if (mapReady == true && initialCameraSet == true) {\n LatLng initialLocation = new LatLng(location.getLatitude(), location.getLongitude());\n gMap.moveCamera(CameraUpdateFactory.newLatLng(initialLocation));\n initialCameraSet = false; // Initial location already displayed\n }\n // Check if spot is close\n for (int i = 0; i < LocationsClass.spotsCoordinates.length; ++i) {\n target.setLatitude(LocationsClass.spotsCoordinates[i].latitude);\n target.setLongitude(LocationsClass.spotsCoordinates[i].longitude);\n if (location.distanceTo(target) < minDistance) {\n closestIndex = i; //Save closes index\n minDistance = location.distanceTo(target); // update minDistance\n }\n }\n\n if (minDistance < 200 && minDistance > 20) {\n Toast.makeText(getActivity(), \"Location: \" + LocationsClass.spotNames[closestIndex] +\n \" is within 200 meters!\\n\" + \"Go check it out!\", Toast.LENGTH_LONG).show();\n// pointsOfInterests.get(closestIndex).showInfoWindow();\n// gMap.getUiSettings().setMapToolbarEnabled(true);\n popNotification = true; // Allow notification to trigger when user reaches destination\n } else if (minDistance < 20) {\n if (closestIndex != currentUserLocation) {\n int locationId = getResources().getIdentifier(\"loc_\"+closestIndex, \"drawable\", getActivity().getPackageName());\n showArrivalNotification(locationId, LocationsClass.spotNames[closestIndex]);\n currentUserLocation = closestIndex; // Update user location\n }\n }\n\n if (hotspotIndex != -1) {\n pointsOfInterests.get(hotspotIndex).showInfoWindow();\n gMap.getUiSettings().setMapToolbarEnabled(true);\n }\n }",
"public void lPoolGoal(View view) {\n scoreForL_pool = scoreForL_pool + 1;\n displayForLpool(scoreForL_pool);\n }",
"@Override\n\tpublic void placeOrder(Map<String, Integer> orderDetails, Buyer buyer) {\n\t\tif (successor != null) {\n\t\t\tsuccessor.placeOrder(orderDetails, buyer);\n\t\t} else {\n\t\t\tSystem.out.println(\"Did not set successor of SupplierProxy\");\n\t\t}\n\t\t\n\t}",
"static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}",
"public void onLocationChanged(Location location) {\n \t\t\t\tcurrentLocation = String.valueOf(location.getLatitude()) + \"+\" + String.valueOf(location.getLongitude());\n \t\t\t}",
"@Override\n public void onConnected(Bundle connectionHint)\n {\n if (locationHasToBeUpdated)\n {\n createLocationRequest();\n locationHasToBeUpdated = false;\n }\n }",
"public void checkout() {\n\t}",
"private void updateLocation(){\r\n\t\t//UPDATE location SET longitude = double, latitude = double WHERE userName = userName\r\n\t\tString sqlCmd = \"UPDATE location SET longitude = \" + commandList.get(2) + \", latitude = \"\r\n\t\t\t\t+ commandList.get(3) + \" WHERE userName = '\" + commandList.get(1) + \"';\";\r\n\t\tSystem.out.println(sqlCmd);\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tint changed = stmt.executeUpdate(sqlCmd);\r\n\t\t\tif(changed == 0){//if no updates were made (changed = 0) \r\n\t\t\t\terror = true;//error\r\n\t\t\t\tout.println(\"No user found\");//error message\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}",
"@Override\n public void onSuccess(Location location) {\n\n if (location != null) {\n // Logic to handle location object\n\n Geocoder gcd = new Geocoder(MainActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n System.out.println(addresses.get(0).getLocality());\n sp.set(SPConstants.location,addresses.get(0).getLocality()+\", \"+addresses.get(0).getCountryName());\n }\n else {\n sp.set(SPConstants.location,\"\");\n\n // do your stuff\n }\n\n }\n }",
"public void buyCargoUpgrades()\n {\n if(play_state.getMoney() >= cargo_upgrade_cost) {\n play_state.setMoney(play_state.getMoney() - cargo_upgrade_cost);\n cargo_upgrade_cost += 100;\n play_state.getDriller().addCapacity(5);\n }\n }",
"public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}",
"public void givePlaceInList() {\r\n\t\tmyPlaceInList = allyTracker.getPlaceInList();\r\n\t}",
"private void move3(Habitat habitat,Pool pool)\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\t\tboolean moved = false;\r\n\t\tPool clonedPool=null;\r\n\t\tArrayList<Integer> tabuSivs = new ArrayList<Integer>();\r\n\t\ttabuSivs.add(-1);\r\n\t\t\r\n\t\t//Sort the users of the pool compared to gravity center\r\n\t\t//Collections.sort(pool.getListOfUsers(), User.ComparatorDistG);\r\n\t\t\r\n\t\tfor(int i =0;i<habitat.getSivs().size() - 1 && !moved;i++)\r\n\t\t{\r\n\t\t\tint k = (new Random()).nextInt(habitat.getSivs().size());\r\n\t\t\tint loops = 0;\r\n\t\t\twhile((habitat.getSivs().get(k) == pool || habitat.getSivs().get(k).getRestCarCap()==0 || tabuSivs.contains(k)) && loops<10 )\r\n\t\t\t{\r\n\t\t\t\tk = (new Random()).nextInt(habitat.getSivs().size());\r\n\t\t\t\tloops++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!tabuSivs.contains(k))\r\n\t\t\t{\r\n\t\t\t\ttabuSivs.add(k);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//if(habitat.getSivs().get(i) != pool && habitat.getSivs().get(i).getListOfUsers().size()==1) \r\n\t\t\tif(habitat.getSivs().get(k) != pool && habitat.getSivs().get(k).getRestCarCap()>0)\r\n\t\t\t{\r\n\t\t\t\tclonedPool = (Pool) pool.clone();\r\n\t\t\t\t//for(int j=0;j<pool.getListOfUsers().size() && !moved;j++)\r\n\t\t\t\tfor(int j=pool.getListOfUsers().size() - 1; j>=0 && !moved;j--)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(habitat.getSivs().get(k).areAllUsersAuthorized(clonedPool.getListOfUsers().get(j).getNumUser()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\thabitat.getSivs().get(k).addUser(clonedPool.getListOfUsers().get(j));\r\n\t\t\t\t\t\tif(habitat.getSivs().get(k).buildRoutes())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmoved = true;\r\n\t\t\t\t\t\t\tclonedPool.getListOfUsers().remove(j);\r\n\t\t\t\t\t\t\tclonedPool.buildRoutes();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\thabitat.getSivs().get(k).removeUser(clonedPool.getListOfUsers().get(j));\r\n\t\t\t\t\t\t\thabitat.getSivs().get(k).buildRoutes();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(moved)\r\n\t\t{\r\n\t\t\thabitat.removePool(pool);\r\n\t\t\thabitat.addPool(clonedPool);\r\n\t\t}\r\n\t}",
"void updatePurchaseOrderLinkedBoqStatus(long pohId);",
"void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}",
"public void updateTransPool(JsonObject block){\n JsonArray transactions = block.get(\"Transactions\").getAsJsonArray();\n \tint N = transactions.size();\n \tfor(int i=0; i<N; i++) {\n \t\tJsonObject Tx = transactions.get(i).getAsJsonObject();\n \t\tif(TxPool_new.contains(Tx))\n \t\t\tTxPool_new.remove(Tx);\n \t\tTxPool_used.add(Tx);\n }\n }",
"private void collectCoins(Location location){\n LatLng latLng = new LatLng(location.getLatitude(),\n location.getLongitude());\n for(Coin coin : this.todayCoins){\n if(coin.getLatLng().distanceTo(latLng) <= 25){\n if(!todayCollectedID.contains(coin.getId())){\n System.out.println(\"CoinID\" + todayCollectedID.size());\n todayCollectedID.add(coin.getId());\n CollectedCoins.add(coin);\n\n long thistime = System.currentTimeMillis();\n int coinCollected = todayCollectedID.size();\n if(thistime - lastUpdateTime >= 60000 || (coinCollected - lastCoinCollected) >= 5){\n lastUpdateTime = thistime;\n lastCoinCollected = coinCollected;\n saveData();\n }\n\n }\n }\n }\n\n // Coin collected.\n\n }",
"@Override\n public void onLocationChanged(Location location) {\n Log.d(Constants.UPDATING_LOCATION_TAG, Constants.UPDATING_LOCATION + location.toString());\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getDateTimeInstance().format(new Date());\n\n SendBroadcastLocation();\n\n // Update Mongo database for each parcel in the database.\n MongoUpdateParcelToDeliverLocationAsyncTask update = new MongoUpdateParcelToDeliverLocationAsyncTask(mCurrentLocation, mLastUpdateTime);\n update.execute();\n }",
"@Override\r\n\tpublic void placeSettlement(VertexLocation vertLoc) {\n\t\t\r\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n OnLocationChanged(location.getLatitude(), location.getLongitude());\n }",
"public void geolocTransfered() {\n\t\tthis.geolocTransfered = true;\n\t}",
"public void onLocationChanged(Location location) {\n\t\t\t\tupdatenewlocation(location);\n\t\t\t\t\n\t\t\t}",
"public void purchase(Unit unit) {\n purchasePoints = purchasePoints - unit.cost();\n }",
"public JSONObject locationTest(JSONObject message, Session session, Connection conn) {\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tdouble amount = message.getDouble(\"amountToAdd\");\n\t\t\tint budgetID = message.getInt(\"budgetID\");\n\t\t\tdouble latitude = message.getDouble(\"markerLatitude\");\n\t\t\tdouble longitude = message.getDouble(\"markerLongitude\");\n\t\t\tst.execute(Constants.SQL_INSERT_TRANSACTION + \"(\" + budgetID + \", \" + amount + \", '',\" + latitude + \", \" + longitude + \");\");\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM Budgets WHERE budgetID = \" + budgetID + \";\");\n\t\t\tint bigBudgetID=0;\n\t\t\tdouble budgetSpent=0;\n\t\t\tif(rs.next()) {\n\t\t\t\tbigBudgetID = rs.getInt(\"bigBudgetID\");\n\t\t\t\tbudgetSpent = rs.getDouble(\"TotalAmountSpent\") + amount;\n\t\t\t\tSystem.out.println(bigBudgetID);\n\t\t\t}\n\t\t\tResultSet rs1 = st.executeQuery(\"SELECT * FROM BigBudgets WHERE bigBudgetID = \" + bigBudgetID + \";\");\n\t\t\tdouble bigBudgetSpent = 0; double bigbudgetAmount = 0;\n\t\t\tString bigbudgetName = \"\";\n\t\t\tif (rs1.next()) {\n\t\t\t\tbigBudgetSpent = rs1.getDouble(\"TotalAmountSpent\")+amount;\n\t\t\t\tbigbudgetAmount = rs1.getDouble(\"BigBudgetAmount\");\n\t\t\t\tbigbudgetName = rs1.getString(\"BigBudgetName\");\n\t\t\t}\n\t\t\tst.executeUpdate(\"UPDATE Budgets SET TotalAmountSpent = \" + budgetSpent + \" WHERE budgetID = \" + budgetID + \";\");\n\t\t\tSystem.out.println(\"update\");\n\t\t\t\n\t\t\tst.executeUpdate(\"UPDATE BigBudgets SET TotalAmountSpent = \" + bigBudgetSpent + \" WHERE bigBudgetID = \" + bigBudgetID + \";\");\n\t\t\tif (bigBudgetSpent > 0.8*(bigbudgetAmount)) {\n\t\t\t\tresponse.put(\"notification\", \"yes\");\n\t\t\t\tresponse.put(\"notify\", \"You now have less than 20% left in budget\" + bigbudgetName);\n\t\t\t}\n\t\t\tResultSet rs2 = st.executeQuery(\"SELECT * FROM Transactions;\");\n\t\t\tif (rs2.next()) {\n\t\t\t\tif (rs2.getDouble(\"Longitude\") == message.getDouble(\"markerLongitude\") && rs2.getDouble(\"Latitude\") == message.getDouble(\"markerLatitude\"))\n\t\t\t\t\tresponse.put(\"message\", \"locationSuccessTest\");\n\t\t\t\telse {\n\t\t\t\t\tresponse.put(\"message\", \"locationFailTest\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tresponse.put(\"message\", \"locationFailTest\");\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException | JSONException e) {\n\t\t\ttry {\n\t\t\t\tresponse.put(\"message\", \"locationFailTest\");\n\t\t\t} catch (JSONException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\t\tdeleteAll(conn);\n\t\treturn response;\n\t}",
"private void payByPoint(final View v) {\n if (!SanyiSDK.getCurrentStaffPermissionById(ConstantsUtil.PERMISSION_CASHIER)) {\n Toast.makeText(activity, \"没有权限\", Toast.LENGTH_SHORT).show();\n\n return;\n }\n// final CashierPayment paymentMode = new CashierPayment();\n// paymentMode.paymentType = ConstantsUtil.PAYMENT_POINT;\n// paymentMode.paymentName = getString(R.string.payment_point);\n if (SanyiSDK.rest.config.isMemberUsePassword) {\n MemberPwdPopWindow memberPwdPopWindow = new MemberPwdPopWindow(v, activity, new MemberPwdPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(final String pwd) {\n\n // TODO Auto-generated method stub\n// CashierPayment payment = new CashierPayment();\n//\n// payment.paymentName = \"积分抵现\";\n// payment.paymentType = ConstantsUtil.PAYMENT_POINT;\n// payment.id = mPaymentModeAdapter.data.get(position).id;\n\n checkPresenterImpl.addPointPayment(cashierResult.pointInfo.value, pwd);\n\n }\n });\n memberPwdPopWindow.show();\n return;\n } else {\n checkPresenterImpl.addPointPayment(cashierResult.pointInfo.value, null);\n// CashierPayment payment = new CashierPayment();\n//\n// payment.paymentName = \"积分抵现\";\n// payment.paymentType = ConstantsUtil.PAYMENT_POINT;\n// checkPresenterImpl.addPay(cashierResult.pointInfo.value, 0.0, payment);\n }\n }",
"@Override\n public boolean setOrderAddresses(User user, String address, ArrayList<String> shoppickup) {\n if(!setShippingAddress(user, address)){\n return false;\n }\n // aggiorno indirizzo ritiro per tutti e soli quelli nella lista shoppickup\n for (String rit: shoppickup) {\n String[] prod_shop = rit.split(\"_\");\n\n if (prod_shop.length != 2 || !setShopPickup(user, prod_shop[0], prod_shop[1])) {\n // errore inserimento nel database o stringa passata errata\n return false;\n }\n }\n\n\n return true;\n }",
"@Override\n public void onClick(View v) {\n startLocationUpdates();\n startIntentService();\n //updateUI();\n mUpdateTimeText.setText(mLastUpdateTime);\n mLocationData.addLocation(new LocationRecord(mCurrentLocation.getLatitude(),\n mCurrentLocation.getLongitude(), mLastUpdateTime));\n Toast.makeText(MapsActivity.this, \"You have checked in!\", Toast.LENGTH_LONG).show();\n //mLocationData.addLocation(mCurrentLocation, mAddressOutput, mLastUpdateTime);\n }",
"void updateCustomerDDPay(CustomerDDPay cddp);",
"@Override\n\tpublic void addUserCoupons(BeanUser user, BeanCoupon coupon) throws BaseException {\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from user_coupon where coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, coupon.getCoupon_id());\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"该优惠券您已领取\",\"提示\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\tthrow new BaseException(\"该优惠券您已领取\");\n\t\t\t}\n\t\t\t//System.out.print(\"1.1\");\n\t\t\tsql=\"select * from commodity_order where user_id=? and coupon_id=?\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getUser_id());\n\t\t\tpst.setString(2, coupon.getCoupon_id());\n\t\t\trs=pst.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"该优惠券您已领取\",\"提示\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\tthrow new BaseException(\"该优惠券您已领取\");\n\t\t\t};\n\t\t\tsql=\"insert into user_coupon(user_id,coupon_id) value(?,?)\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getUser_id());\n\t\t\tpst.setString(2, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }",
"private void checkLocationandAddToMap() {\n if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //Requesting the Location permission\n ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n return;\n }\n\n locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = locationManager.getBestProvider(criteria, true);\n\n\n //Fetching the last known location using the Fus\n Location location = locationManager.getLastKnownLocation(bestProvider);\n\n\n if (location != null) {\n\n onLocationChanged(location);\n\n\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, (LocationListener) getActivity());\n }\n\n\n }",
"public void offerRandomCoupon(Customer c)\r\n {\r\n Random random = new Random();\r\n int couponPercent = random.nextInt(15) + 10;\r\n c.setCoupon(couponPercent);\r\n c.setPersonalHistory(\"Offered Coupon worth \" + couponPercent + \"%\");\r\n }",
"@Override\r\n public void onLocationChanged(Location location) {\n\r\n sendLocationUpdates(location);\r\n }",
"@Override\n public void onLocationChanged(Location location) {\n mMyLocationSubject.onNext(location);\n mPreferences.edit()\n .putString(PREFERENCES_KEY_POS_LAT, Double.toString(location.getLatitude()))\n .putString(PREFERENCES_KEY_POS_LONG, Double.toString(location.getLongitude()))\n .apply();\n }",
"public void setLocation(entity.PolicyLocation value);",
"public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}",
"public void setMakingShop(Player owner, Player establisher, Integer x, Integer y, Integer z, World world){\n\t\testablisher.sendMessage(ChatColor.GREEN + getConfig().getString(\"ask-for-item\"));\n\t\tUUID ownerID = owner.getUniqueId();\n\t\tUUID establisherID = establisher.getUniqueId();\n\t\tString blockLocation = x + \",\" + y + \",\" + z + \",\" + world.getName()+\",\"+ownerID.toString()+\",\"+establisherID.toString();\n\t\tdebugOut(\"Marking \" + establisher.getName()+\" as creating a shop at \"+blockLocation);\n\t\tPlayerMakingShop.put(establisher.getName(), blockLocation);\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }"
] | [
"0.59523374",
"0.58697927",
"0.5776243",
"0.56936395",
"0.55949",
"0.544643",
"0.538252",
"0.53469306",
"0.53402454",
"0.5279919",
"0.5253051",
"0.5238921",
"0.5223405",
"0.51717544",
"0.5169471",
"0.51626384",
"0.51554847",
"0.513606",
"0.5134735",
"0.5129273",
"0.5127899",
"0.51160884",
"0.51123697",
"0.5099175",
"0.5047293",
"0.49918962",
"0.49768078",
"0.4974539",
"0.49731907",
"0.49478567",
"0.4943487",
"0.49411216",
"0.4930429",
"0.49137956",
"0.4892227",
"0.48860013",
"0.48779294",
"0.4865394",
"0.48561108",
"0.48536724",
"0.48521146",
"0.4849445",
"0.4849301",
"0.4841982",
"0.48307323",
"0.4829336",
"0.48261297",
"0.48241195",
"0.48240614",
"0.4822237",
"0.48098797",
"0.48095846",
"0.48058683",
"0.48037428",
"0.4801937",
"0.4798417",
"0.47816393",
"0.47754008",
"0.47733396",
"0.47721985",
"0.47592142",
"0.47551456",
"0.47475615",
"0.4733562",
"0.47318035",
"0.47317365",
"0.47244307",
"0.47204512",
"0.47177133",
"0.4707411",
"0.47052094",
"0.47025743",
"0.46989474",
"0.46975443",
"0.46959373",
"0.46937642",
"0.46853584",
"0.46817106",
"0.46802282",
"0.46732998",
"0.46709168",
"0.4664843",
"0.46540135",
"0.4651753",
"0.4643503",
"0.46403307",
"0.46375707",
"0.46354926",
"0.46301404",
"0.4629868",
"0.46285498",
"0.4623589",
"0.46230155",
"0.4618755",
"0.4613238",
"0.46124673",
"0.4610973",
"0.46104658",
"0.4602745",
"0.46022552"
] | 0.6695534 | 0 |
update coupon after users users use the coupon | public void updateCouponwithBoughtCoupon(String ID, boolean isgetCoupon) {
helper.updatePoolLocationTable(PooltableName, ID,
convertToString(isgetCoupon));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateCoupon(Coupon coupon) throws DbException;",
"public static void updateCoupon(Context context, String id, final Coupon c)\n {\n Query reff;\n reff= FirebaseDatabase.getInstance().getReference().child(\"coupon\").orderByChild(\"seri\").equalTo(id);\n reff.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot: dataSnapshot.getChildren())\n {\n Coupon coupon=snapshot.getValue(Coupon.class);\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"coupon\").child(coupon.getIdcoupon());\n c.setIdcoupon(coupon.getIdcoupon());\n ref.setValue(c);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"@Override\n\t/**\n\t * Accepts predefined Coupon object and updates entry with relevant ID in\n\t * the database with values from accepted Coupon object\n\t */\n\tpublic void updateCoupon(Coupon coupon) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to update Coupon via prepared statement\n\t\t\tString updateCouponSQL = \"update coupon set title=?, start_date=?, end_date=?, expired=?, type=?, message=?, price=?, image=? where id = ?\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(updateCouponSQL);\n\t\t\t// Fetching variables into SQL string via Coupon bean plus ID as\n\t\t\t// method accepted variable\n\t\t\tpstmt.setString(1, coupon.getTitle());\n\t\t\tpstmt.setDate(2, getSqlDate(coupon.getStart_date()));\n\t\t\tpstmt.setDate(3, getSqlDate(coupon.getEnd_date()));\n\t\t\tpstmt.setString(4, coupon.getExpired());\n\t\t\tpstmt.setString(5, coupon.getType());\n\t\t\tpstmt.setString(6, coupon.getMessage());\n\t\t\tpstmt.setInt(7, coupon.getPrice());\n\t\t\tpstmt.setString(8, coupon.getImage());\n\t\t\tpstmt.setInt(9, coupon.getId());\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint rowCount = pstmt.executeUpdate();\n\t\t\tif (rowCount != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupon has been updated successfully:\" + coupon);\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupon not found in the\n\t\t\t\t// database\n\t\t\t\tSystem.out.println(\"Coupon update has been failed - subject entry not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon update in the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon update has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"public void setCouponAmount(double couponAmount) {\n _couponAmount = couponAmount;\n }",
"@Override\n\tpublic void addUserCoupons(BeanUser user, BeanCoupon coupon) throws BaseException {\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from user_coupon where coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, coupon.getCoupon_id());\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"该优惠券您已领取\",\"提示\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\tthrow new BaseException(\"该优惠券您已领取\");\n\t\t\t}\n\t\t\t//System.out.print(\"1.1\");\n\t\t\tsql=\"select * from commodity_order where user_id=? and coupon_id=?\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getUser_id());\n\t\t\tpst.setString(2, coupon.getCoupon_id());\n\t\t\trs=pst.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"该优惠券您已领取\",\"提示\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\tthrow new BaseException(\"该优惠券您已领取\");\n\t\t\t};\n\t\t\tsql=\"insert into user_coupon(user_id,coupon_id) value(?,?)\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getUser_id());\n\t\t\tpst.setString(2, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void updateCoupon(long id, Coupon coupon)\n\t\t\tthrows ClassNotFoundException, SQLException, IOException, ParseException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_COUPON_BY_ID);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tif (id == resultSet.getInt(1)) {\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TITLE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_START_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getStartDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_END_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getEndDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_AMOUNT_BY_ID);\n\t\t\t\tstatement.setInt(1, coupon.getAmount());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TYPE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getType().toString());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_MESSAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getMessage());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_PRICE_BY_ID);\n\t\t\t\tstatement.setDouble(1, coupon.getPrice());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_IMAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getImage());\n\t\t\t\tstatement.setLong(2, id);\n\n\t\t\t\tSystem.out.println(\"Coupon updated successfull\");\n\t\t\t}\n\n\t\t}\n\t\tConnectionPool.getInstance().returnConnection(connection);\n\t}",
"private void updateCouponValidation(Coupon coupon) throws ApplicationException {\n\t\tcouponInfoValidation(coupon);\n\t\t\n\t\t//Get coupon's original info \n\t\tCoupon oldCoupon = couponsDao.getCoupon(coupon.getId());\n\t\t//Can't update company ID, can't decrease coupons amount\n\t\tif(coupon.getCompanyId() != oldCoupon.getCompanyId() || oldCoupon.getAmount() > coupon.getAmount()) {\n\t\t\tthrow new ApplicationException(ExceptionType.INVALID_UPDATE, \"Invalid coupon update: \" + coupon.toString());\n\t\t}\n\t\t//If updating coupon title, need to check if the new title isn't already taken\n\t\tif(!coupon.getTitle().equals(oldCoupon.getTitle()) && couponsDao.isCouponTitleExists(coupon.getTitle(), coupon.getCompanyId())) {\n\t\t\tthrow new ApplicationException(ExceptionType.TITLE_ALREADY_EXISTS, \"New coupon title is already taken: \" + coupon.getTitle());\n\t\t}\n\t\t//Can't shorten coupon validity period\n\t\tif(coupon.getStartDate().after(oldCoupon.getStartDate()) || coupon.getEndDate().before(oldCoupon.getEndDate())) {\n\t\t\tthrow new ApplicationException(ExceptionType.INVALID_DATE_UPDATE, \"Invalid date updates: \"+coupon.toString());\n\t\t}\n\t\t//Start date can't be updated to a date before the update date (!!!equals instead of before!!!)\n\t\tif(!coupon.getStartDate().equals(oldCoupon.getStartDate()) && coupon.getStartDate().before(Calendar.getInstance().getTime())) {\n\t\t\tthrow new ApplicationException(ExceptionType.INVALID_DATE, \"Invalid date: \" + coupon.getStartDate());\n\t\t}\n\t}",
"@WebMethod public void redeemCoupon(String userName, String coupon);",
"@Override\n\tpublic void useUserCoupon(BeanUser user, BeanOrder or) throws BaseException {\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"delete from user_coupon where user_id=? and coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getUser_id());\n\t\t\tpst.setString(2, or.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void update_in_DB() throws CouponSiteMsg \n\t{\n\t\t\n\t}",
"public void createCoupon(Coupon coupon) throws DbException;",
"public void setCouponPrice (java.lang.Double couponPrice) {\r\n\t\tthis.couponPrice = couponPrice;\r\n\t}",
"public void purchaseCoupon(Coupon coupon) throws Exception {\n\t\t// check if customer did not purchased this coupon in the past\n\t\tif (!customersDBDAO.isCouponExistForCustomer(customerId, coupon.getId())) {\n\t\t\t// check if this coupon has any inventory left\n\t\t\tif (couponsDBDAO.getOneCoupon(coupon.getId()).getAmount() > 0) {\n\t\t\t\t// check if this coupon is not expired\n\t\t\t\tif (!couponsDBDAO.isCouponExpiered(coupon.getId())) {\n\n\t\t\t\t\t// Purchase 1 coupon for customer\n\t\t\t\t\tcouponsDBDAO.addCouponPurchase(coupon.getId(), this.getCustomerId());\n\t\t\t\t\t// reduce this coupon amount by 1\n\t\t\t\t\tcouponsDBDAO.updateCouponAmount(coupon.getId(), -1);\n\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"Cannot purchase coupon, coupon is expired\");\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Cannot purchase coupon, no more coupons left\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tthrow new Exception(\"Cannot purchase coupon, you already purchased this one in the past\");\n\t\t}\n\t}",
"public void offerRandomCoupon(Customer c)\r\n {\r\n Random random = new Random();\r\n int couponPercent = random.nextInt(15) + 10;\r\n c.setCoupon(couponPercent);\r\n c.setPersonalHistory(\"Offered Coupon worth \" + couponPercent + \"%\");\r\n }",
"@Override\n\tpublic void modifySystemCoupons(BeanCoupon coupon,String couponcontent, String fitprice, String couponprice,String couponstarttime, String couponendtime) throws BaseException {\n\t\tConnection conn=null;\n\t\tSimpleDateFormat sdf = new SimpleDateFormat( \"yyyy-MM-dd HH:mm:ss\" );\n\t\tjava.util.Date date1 = null;\n\t\tjava.util.Date date2 = null;\n\t\tBeanCoupon cp=new BeanCoupon();\n\t\tcp.setCoupon_content(couponcontent);\n\t\tfloat coupon_fitmoney=Float.parseFloat(fitprice);\n\t\tcp.setCoupon_fit_money(coupon_fitmoney);\n\t\tfloat coupon_price=Float.parseFloat(couponprice);\n\t\t//System.out.println(coupon_fitmoney);\n\t\tcp.setCoupon_price(coupon_price);\n\t\ttry {\n\t\t\tdate1 = sdf.parse( couponstarttime );\n\t\t\t//System.out.print(date1);\n\t\t\tdate2 = sdf.parse( couponendtime );\n\t\t} catch (ParseException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tlong ls = date1.getTime();\n//\t\tSystem.out.print(ls);\n//\t\tTimestamp t=new Timestamp(ls);\n//\t\tSystem.out.print(t);\n\t\tlong le = date2.getTime();\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"update coupon set coupon_content=?,coupon_fit_money=?,coupon_price=?,\"\n\t\t\t\t\t+ \"coupon_start_time=?, coupon_end_time=? where coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, cp.getCoupon_content());\n\t\t\tpst.setFloat(2, cp.getCoupon_fit_money());\n\t\t\tpst.setFloat(3, cp.getCoupon_price());\n\t\t\tpst.setTimestamp(4, new java.sql.Timestamp( ls ));\n\t\t\tpst.setTimestamp(5, new java.sql.Timestamp( le ));\n\t\t\tpst.setString(6, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void update(Discount discount) {\n\t\t\n\t}",
"@Transactional(transactionManager = \"couponDBTransactionManager\")\n public CommonResultResponse applyCoupon(String userId, String couponCode) {\n LocalDateTime currentDate = LocalDateTime.now();\n\n //쿠폰 조회(사용여부, 할당여부)\n Optional<CouponData> applyTargetCoupon = couponDataJpaRepository.findByUserIdAndCouponCode(userId, couponCode);\n\n CouponData couponData = applyTargetCoupon.orElseThrow(()\n -> new CommonException(CommonResultCode.NO_DATA));\n\n //사용 처리 된 쿠폰의 경우 에러\n if (couponData.isUse()) {\n throw new CommonException(CommonResultCode.ALREADY_USE_COUPON);\n }\n\n //만료된 쿠폰의 경우 에러\n if (currentDate.isAfter(couponData.getExpireDate())) {\n throw new CommonException(CommonResultCode.COUPON_APPLY_EXPIRE);\n }\n\n //쿠폰 사용처리\n couponData.setUse(true);\n\n //로그 저장\n couponLogService.saveCouponLog(couponCode, CouponStatus.APPLY);\n\n return new CommonResultResponse(CommonResultCode.SUCCESS);\n }",
"public void updatePoolwithBoughtCoupon(String ID, boolean isgteCoupon) {\n\t\thelper.updatePoolLocationTable(PooltableName, ID,\n\t\t\t\tconvertToString(isgteCoupon));\n\t}",
"private void m113949b(CouponInfo couponInfo) {\n C35444d.m114486a(getContext(), ((IAwemeService) ServiceManager.get().getService(IAwemeService.class)).getRawAdAwemeById(this.f92540i.getAwemeId()), this.f92540i.getPoiId());\n C35007b.m113007e(new C35006a().mo88754b(this.f92540i.getPoiId()).mo88752a(\"poi_page\").mo88757e(this.f92540i.getPreviousPage()).mo88759g(String.valueOf(couponInfo.getCouponId())).mo88758f(\"click_button\").mo88760h(C24575a.m80615a(getContext(), couponInfo.getStatus(), true)).mo88762j(C24575a.m80616a(couponInfo)).mo88750a(this.f92540i).mo88753a());\n }",
"@SuppressWarnings(\"null\")\n private void setIDCupon() {\n int id_opinion = 1;\n ResultSet rs = null;\n Statement s = null;\n //cb_TS.addItem(\"Seleccione una opinion...\");\n //Creamos la query\n try {\n s = conexion.createStatement();\n } catch (SQLException se) {\n System.out.println(\"probando conexion de consulta\");\n }\n try {\n rs = s.executeQuery(\"SELECT id_cupon FROM cupon order by id_cupon desc LIMIT 1\");\n while (rs.next()) {\n id_opinion = Integer.parseInt(rs.getString(1))+1;\n }\n tf_ID.setText(Integer.toString(id_opinion));\n } catch (SQLException ex) {\n Logger.getLogger(N_Opinion.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"double calculate(Coupon coupon, double payable);",
"public void removeCustomerCoupon(Coupon coupon) throws DbException;",
"@Override\n\t/** Marks all expired Coupons in the Coupon table in the database */\n\tpublic void markExpiredCoupons() throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to mark expired Coupons via prepared\n\t\t\t// statement\n\t\t\tString markExpiredCouponsSQL = \"update coupon set expired='expired' where end_date < current_date\";\n\t\t\t// Not working variants:\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where end_date < 2017-05-21\";\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where end_date < getdate()\";\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where date < (format ( getdate(),\n\t\t\t// 'YYYY-MM-DD'))\";\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where end_date < ?\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(markExpiredCouponsSQL);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\n\t\t\t// Not working (prepared statement variant)\n\t\t\t// java.util.Date todayDate = Calendar.getInstance().getTime();\n\t\t\t// SimpleDateFormat formatter = new SimpleDateFormat(\"YYYY-MM-DD\");\n\t\t\t// String todayString = formatter.format(todayDate);\n\t\t\t// pstmt.setString(1, todayString);\n\n\t\t\tint resExpired = pstmt.executeUpdate();\n\t\t\tif (resExpired != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Expired coupons have been marked successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons not found in the\n\t\t\t\t// database\n\t\t\t\tSystem.out.println(\"Coupons marking has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon marking in the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons marking has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"public int getCouponNum() {\n return couponNum_;\n }",
"public int getCouponNum() {\n return couponNum_;\n }",
"@Override\n\tpublic void createCoupon(Coupon coupon)\n\t\t\tthrows ClassNotFoundException, SQLException, ParseException, DuplicateNameException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\t\tboolean flag = true;\n\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_ALL_COUPON_TITLES);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tif (coupon.getTitle().equals(resultSet.getString(1))) {\n\t\t\t\tflag = false;\n\t\t\t\tConnectionPool.getInstance().returnConnection(connection);\n\t\t\t\tthrow new DuplicateNameException(\"Coupon title \" + coupon.getTitle() + \" is already exists\");\n\t\t\t}\n\t\t}\n\t\tif (flag) {\n\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.ADD_NEW_COUPON_TO_DB);\n\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\tstatement.setDate(2, StringDateConvertor.convert(coupon.getStartDate().toString()));\n\t\t\tstatement.setDate(3, StringDateConvertor.convert(coupon.getEndDate().toString()));\n\t\t\tstatement.setInt(4, coupon.getAmount());\n\t\t\tstatement.setString(5, coupon.getType().toString());\n\t\t\tstatement.setString(6, coupon.getMessage());\n\t\t\tstatement.setDouble(7, coupon.getPrice());\n\t\t\tstatement.setString(8, coupon.getImage());\n\t\t\tstatement.executeUpdate();\n\n\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.GET_COUPON_ID_BY_TITLE);\n\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\tResultSet thisCouponId = statement.executeQuery();\n\t\t\twhile (thisCouponId.next()) {\n\t\t\t\tthis.setCoupId(thisCouponId.getLong(1));\n\t\t\t}\n\n\t\t\tConnectionPool.getInstance().returnConnection(connection);\n\t\t\tSystem.out.println(\"Coupon added successfull\");\n\t\t}\n\n\t}",
"public void removeCompanyCoupon(Coupon coupon) throws DbException;",
"public long createCoupon(Coupon coupon) throws ApplicationException {\n\t\tcreateCouponValidation(coupon);\n\t\treturn couponsDao.createCoupon(coupon);\n\t}",
"public void removeCoupon(Coupon coupon) throws DbException;",
"int updateByPrimaryKey(CmsCouponBatch record);",
"public double getCouponRate() {\n return _couponRate;\n }",
"@Override\n\t/**\n\t * Accepts predefined Coupon object and writes it to Coupon table in the\n\t * database\n\t */\n\tpublic int createCoupon(Coupon coupon) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Defining Coupon ID variable to return\n\t\tint couponID = -1;\n\n\t\ttry {\n\t\t\t// Checking if Coupon title already exists in DB\n\t\t\t// PreparedStatement pstmt1 = null;\n\t\t\t// String nameExist = \"SELECT * FROM Coupon where Title = ?\";\n\t\t\t// pstmt1 = con.prepareStatement(nameExist);\n\t\t\t// pstmt1.setString(1, coupon.getTitle());\n\t\t\t// ResultSet result = pstmt1.executeQuery();\n\t\t\t// if (result.next()) {\n\t\t\t// System.out.println(\"Coupon title already exists in Database,\n\t\t\t// please choose another one.\");\n\t\t\t// } else {\n\n\t\t\t// Defining SQL string to insert Coupon via prepared statement\n\t\t\tString createCouponSQL = \"insert into coupon (title, start_date, end_date, expired, type, message, price, image) values (?,?,?,?,?,?,?,?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(createCouponSQL);\n\t\t\t// Fetching variables into SQL string via Coupon bean\n\t\t\tpstmt.setString(1, coupon.getTitle());\n\t\t\tpstmt.setDate(2, getSqlDate(coupon.getStart_date()));\n\t\t\tpstmt.setDate(3, getSqlDate(coupon.getEnd_date()));\n\t\t\tpstmt.setString(4, coupon.getExpired());\n\t\t\tpstmt.setString(5, coupon.getType());\n\t\t\tpstmt.setString(6, coupon.getMessage());\n\t\t\tpstmt.setInt(7, coupon.getPrice());\n\t\t\tpstmt.setString(8, coupon.getImage());\n\t\t\t// Executing prepared statement\n\t\t\tpstmt.executeUpdate();\n\t\t\tString fetchingID = \"select id from coupon where title = ? \";\n\t\t\tPreparedStatement pstmtID = con.prepareStatement(fetchingID);\n\t\t\tpstmtID.setString(1, coupon.getTitle());\n\t\t\tResultSet resCoupon = pstmtID.executeQuery();\n\t\t\tresCoupon.next();\n\t\t\t// Fetching newly created Coupon ID for a return\n\n\t\t\tcouponID = resCoupon.getInt(1);\n\t\t\tcoupon.setId(couponID);\n\t\t\t// Writing success confirmation to the console\n\t\t\tSystem.out.println(\"Coupon has been added successfully:\" + coupon);\n\n\t\t\t// }\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon writing into database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon creation has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t\t// Return Coupon ID for future use\n\t\treturn couponID;\n\t}",
"@Override\n\tpublic void deleteSystemCoupons(BeanCoupon coupon) throws BaseException {\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"delete from user_coupon where coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\tsql=\"delete from coupon where coupon_id=?\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\tpst.close();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public void setCouponList(int type)\n {\n \tif(AdataCoupons!=null && AdataCoupons.size()>0)AdataCoupons.clear();\n\n\n\t\tif(type == 1) {\n\t\t\tthis.getActivity().setTitle(\"Hot Coupons\");\n\t\t\tif(CouponSet.getCoupons() != null) {\n\t\t\t\tfor (DBCoupon coupon : CouponSet.getCoupons()) {\n\t\t\t\t\tif (coupon.used == 0) {\n\t\t\t\t\t\tActivity activity = getActivity();\n\t\t\t\t\t\tAdataCoupons.add(coupon);\n\n\t\t\t\t\t\tCouponsListAdapter couponsList = new CouponsListAdapter(activity, AdataCoupons, getActivity());\n\t\t\t\t\t\tcouponPage.setAdapter(couponsList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.getActivity().setTitle(\"Golden Coupon\");\n\t\t\tfor (DBCoupon coupon : CouponSet.getGolden()) {\n\t\t\t\tif (coupon.used == 0) {\n\t\t\t\t\tActivity activity = getActivity();\n\t\t\t\t\tAdataCoupons.add(coupon);\n\t\t\t\t\tCouponsListAdapter couponsList = new CouponsListAdapter(activity, AdataCoupons,getActivity());\n\t\t\t\t\tcouponPage.setAdapter(couponsList);\n\t\t\t\t\t//ak sa vyskytol zlaty kupon tak zobraz zlatu tehlicku\n\t\t\t\t\tgetActivity().invalidateOptionsMenu();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }",
"@Transactional\n\t@Override\n\tpublic void purchaseCoupon(int couponId, int customerId) throws CustomValidationExepation, CustomDateBaseExepation {\n\n\t\tCoupon coupon = couponRipository.findById(couponId).get();\n\t\tif (coupon == null) {\n\t\t\tthrow new CustomDateBaseExepation(\"no coupon with this id - \" + couponId);\n\t\t}\n\t\tCustomer customer = customerRipository.findById(customerId).get();\n\t\tif (customer == null) {\n\t\t\tthrow new CustomDateBaseExepation(\"no customer with this id - \" + customerId);\n\t\t}\n\t\tif (couponRipository.getCustomer(couponId, customerId).size() > 0) {\n\t\t\tthrow new CustomDateBaseExepation(\"you allredy have this coupon \");\n\t\t}\n\t\tif (coupon.getAmount() <= 0) {\n\t\t\tthrow new CustomValidationExepation(\"this coupon is not avelliballe at the moment - \" + coupon.getTitle());\n\t\t}\n\n\t\tcoupon.getCustomerList().add(customer);\n\t\tcoupon.setAmount(coupon.getAmount() - 1);\n\t\tcustomer.getCouponList().add(coupon);\n\t\tcouponRipository.save(coupon);\n\t\tcustomerRipository.save(customer);\n\n\t}",
"public void updateCount(){\n TextView newCoupons = (TextView) findViewById(R.id.counter);\n //couponsCount.setText(\"Pocet pouzitych kuponov je: \" + SharedPreferencesManager.getUsedCoupons());\n if(SharedPreferencesManager.getNew()>0) {\n newCoupons.setVisibility(View.VISIBLE);\n newCoupons.setText(String.valueOf(SharedPreferencesManager.getNew()));\n }\n else {\n newCoupons.setVisibility(View.GONE);\n }\n }",
"public double getCouponAmount() {\n return _couponAmount;\n }",
"@PreRemove\n public void removeCouponFromCustomer(){\n for (Customer customer: purchases){\n customer.getCoupons().remove(this);\n }\n }",
"int getCouponStat();",
"@Transactional(transactionManager = \"couponDBTransactionManager\")\n public CouponData assignCoupon(String userId) {\n\n Optional<CouponData> assignAbleCoupon = couponDataJpaRepository.findAssignAbleCoupon(userId);\n\n CouponData couponData = assignAbleCoupon.orElseThrow(()\n -> new CommonException(CommonResultCode.ZERO_COUPON_QUANTITY));\n couponData.setUserId(userId);\n\n LocalDateTime assignDate = LocalDateTime.now();\n LocalDateTime expireDate = assignDate.plusDays(couponData.getExpireDayCount());\n\n couponData.setAssignDate(assignDate);\n couponData.setExpireDate(expireDate);\n\n couponLogService.saveCouponLog(couponData.getCouponCode(), CouponStatus.ASSIGN);\n\n return couponData;\n }",
"int updateByPrimaryKeySelective(CmsCouponBatch record);",
"public Builder setCouponStat(int value) {\n \n couponStat_ = value;\n onChanged();\n return this;\n }",
"public Builder setCouponNum(int value) {\n \n couponNum_ = value;\n onChanged();\n return this;\n }",
"@Async\n @Transactional(transactionManager = \"couponDBTransactionManager\")\n public void createCoupon(CouponReq couponReq) {\n\n logger.info(\"[CouponService] create coupon start : {} {}\", couponReq.getCouponCount(), LocalDateTime.now());\n int createCount = 0;\n HashMap<String, Integer> createCouponMap = new HashMap<>();\n\n while (createCount < couponReq.getCouponCount()) {\n String couponCode = CouponGenerator.generateCoupon(couponReq.getCouponLength());\n\n if (createCouponMap.containsKey(couponCode)) {\n continue;\n }\n\n createCouponMap.put(couponCode, 1);\n\n CouponData couponData = new CouponData();\n couponData.setCouponCode(couponCode);\n couponData.setExpireDayCount(couponReq.getExpireDayCount());\n\n try {\n couponDataJpaRepository.save(couponData);\n } catch (DuplicateKeyException e) {\n //중복 쿠폰코드 삽입 exception 발생 시 다시 loop 수행\n continue;\n }\n\n createCount++;\n }\n\n logger.info(\"[CouponService] create coupon end : {} {}\", couponReq.getCouponCount(), LocalDateTime.now());\n }",
"public interface CouponService {\n /**\n * 获得可以兑换的优惠券类型\n * @param mid\n * @return\n */\n public List<CouponTypeModel> getCouponTypes(long mid);\n\n /**\n * 获得优惠券使用记录,即已经使用过的优惠券\n * @param mid\n * @return\n */\n public List<CouponModel> getUsedCoupons(long mid, int page, int pageNum);\n\n /**\n * 获得已经使用过的优惠券数目\n * @param mid\n * @return\n */\n public int getUsedCouponTotalNum(long mid);\n\n /**\n * 获得未使用但未过期的优惠券\n * @param mid\n * @param date\n * @return\n */\n public List<CouponModel> getUnusedCoupons(long mid, long date, int page, int pageNum);\n\n /**\n * 获得未使用但未过期的优惠券数目\n * @param mid\n * @param date\n * @return\n */\n public int getUnusedCouponTotalNum(long mid,long date);\n\n /**\n * 获得未使用且已过期的优惠券\n * @param mid\n * @param date\n * @return\n */\n public List<CouponModel> getExpiredCoupons(long mid,long date,int page,int pageNum);\n\n /**\n * 获得未使用且已过期的优惠券数目\n * @param mid\n * @param date\n * @return\n */\n public int getExpiredCouponTotalNum(long mid,long date);\n\n /**\n * 使用积分兑换优惠券\n * @param mid\n * @param type\n * @return\n */\n public void exchangeCoupon(long mid,int type);\n}",
"public final void mo89842a(CouponInfo couponInfo) {\n if (couponInfo != null && this.f92536e != null) {\n if (couponInfo.getStatus() == CouponCodeStatus.StatusRedeemed.value) {\n this.f92536e.setText(getContext().getString(R.string.ahv));\n } else {\n this.f92536e.setText(getContext().getString(R.string.ai8));\n }\n setOnClickListener(new C35310g(this, couponInfo));\n }\n }",
"public Coupon() {\n\t\tsuper();\n\t\tsetAvailable(true);\n\t}",
"public int getCouponStat() {\n return couponStat_;\n }",
"@Test\n public void triggeredByCouponTest() {\n // TODO: test triggeredByCoupon\n }",
"public int getCouponStat() {\n return couponStat_;\n }",
"void update(Discount discount) throws ServiceException;",
"void updateVariableDiscount(int acc_no, Double discount_rate, String catalog_name);",
"public void delete(Coupon coupon) {\n\t\tcouponRepository.delete(coupon);\n\t\t\n\t}",
"public int getCouponType() {\n return couponType_;\n }",
"public boolean checkIfExist(Coupon coupon) throws DbException;",
"public int getCouponType() {\n return couponType_;\n }",
"int getCouponNum();",
"private void handleAccountUpdateOnPre() {\n }",
"public Builder setCouponId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n couponId_ = value;\n onChanged();\n return this;\n }",
"public String addCoupon(CouponForm couponForm) throws Exception {\n\t\tfinal CouponForm form = couponForm;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"INSERT INTO beiker_coupon_info(coupon_name,coupon_tagid,coupon_tagextid,coupon_end_time,coupon_logo,coupon_rules,coupon_branch_id,\");\n\t\tsql.append(\"coupon_modify_time,coupon_number,coupon_smstemplate,coupon_status,guest_id) VALUES(?,?,?,?,?,?,?,NOW(),?,?,?,?) \");\n\t\tint flag = this.getJdbcTemplate().update(sql.toString(),new PreparedStatementSetter() { \n\t\t\tpublic void setValues(PreparedStatement ps) throws SQLException {\n\t\t\t\tps.setString(1, form.getCouponName().trim());\n\t\t\t\tps.setInt(2, form.getCouponTagid());\n\t\t\t\tps.setString(3, form.getCouponTagextid());\n\t\t\t\tps.setTimestamp(4, form.getCouponEndTime());\n\t\t\t\tps.setString(5, form.getCouponLogo());\n\t\t\t\tps.setString(6, form.getCouponRules());\n\t\t\t\tps.setString(7, form.getCouponBranchId());\n\t\t\t\tps.setInt(8, form.getCouponNumber());\n\t\t\t\tps.setString(9, form.getCouponSmstemplate());\n\t\t\t\tps.setString(10, form.getCouponStatus());\n\t\t\t\tps.setInt(11, form.getGuestId());\n\t\t\t}\n\t\t});\n\t\treturn String.valueOf(flag);\n\t}",
"@Override\n\t/**\n\t * Accepts predefined Coupon object and deletes described entry from the\n\t * Coupon table in the database\n\t */\n\tpublic void removeCoupon(Coupon coupon) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to delete Coupon via prepared statement\n\t\t\tString removeCouponSQL = \"delete from coupon where title = ?\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(removeCouponSQL);\n\t\t\t// Fetching variable into SQL string via Coupon bean\n\t\t\tpstmt.setString(1, coupon.getTitle());\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint rowCount = pstmt.executeUpdate();\n\t\t\tif (rowCount != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupon has been removed successfully:\" + coupon);\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupon not found in the\n\t\t\t\t// database\n\t\t\t\tSystem.out.println(\"Coupon removal has been failed - subject entry not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon removal from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon remove has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"@WebMethod public Coupon getCoupon(String coupon);",
"hr.client.appuser.CouponCenter.AppCoupon getCouponList(int index);",
"@Override\n\tpublic void notifyRedemption(String couponCode) throws ASException {\n\n\t\tlog.log(Level.INFO, \"Trying to notify redemption for coupon code: \" + couponCode + \"...\");\n\t\ttry {\n\t\t\tCouponAdapter coupon = getCouponByCode(couponCode, false, false, false, false);\n\t\t\tUser user = userDao.get(coupon.getUserId());\n\n//\t\t\tlong points = pointsService.calculatePointsForAction(user.getIdentifier(), PointsService.ACTION_COUPON_REDEEMED,\n//\t\t\t\t\tEntityKind.KIND_CAMPAIGN_ACTIVITY, coupon.getIdentifier(), null);\n\t\t\t\t\t\n\t\t\tlog.log(Level.INFO, \"User is \" + user.getIdentifier());\n\n\t\t\tMap<String, String> replacementValues = new HashMap<String, String>();\n\t\t\treplacementValues.put(\"name\", coupon.getName());\n\t\t\treplacementValues.put(\"couponCode\", coupon.getCouponCode());\n//\t\t\treplacementValues.put(\"points\", String.valueOf(points));\n\t\t\tString message = I18NUtils.getI18NMessage(\"es_AR\", \"app.coupon.redeemMessage\", replacementValues);\n\n\t\t\tpushMessageHelper.sendNotification(user, \"AllShoppings\",\n\t\t\t\t\tcoupon.getAvatarId(), message, null, null,\n\t\t\t\t\tcoupon.getIdentifier(), EntityKind.KIND_CAMPAIGN_ACTIVITY);\n\n\t\t\tlog.log(Level.INFO, \"Enqueueing log for redemption for coupon code: \" + couponCode + \"...\");\n\t\t\t// track action\n\t\t\ttrackerHelper.enqueue( user, null,\n\t\t\t\t\tnull, \"/app/notifyRedemption/\" + coupon.getCouponCode(),\n\t\t\t\t\tI18NUtils.getI18NMessage(\"es_AR\", \"service.CouponRedemption\"), \n\t\t\t\t\tnull, null);\n\n\t\t\t// Send information to the challenge objective listener\n//\t\t\tchallengeService.triggerAchievements(user.getIdentifier(),\n//\t\t\t\t\tChallengeObjective.TYPE_COUPON_REDEMPTION, null,\n//\t\t\t\t\tnull, new Date(), 1L);\n\n\t\t} catch( Exception e1 ) {\n\t\t\tlog.log(Level.SEVERE, e1.getMessage(), e1);\n\t\t}\n\n\t}",
"java.lang.String getCouponId();",
"public Coupon getCoupon(int id) throws DbException;",
"@Override\n\tpublic void addSystemCoupons(String couponcontent, String fitprice, String couponprice, String couponstarttime,\n\t\t\tString couponendtime) throws BaseException {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat( \"yyyy-MM-dd HH:mm:ss\" );\n\t\tjava.util.Date date1 = null;\n\t\tjava.util.Date date2 = null;\n\t\ttry {\n\t\t\tdate1 = sdf.parse( couponstarttime );\n\t\t\t//System.out.print(date1);\n\t\t\tdate2 = sdf.parse( couponendtime );\n\t\t} catch (ParseException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tlong ls = date1.getTime();\n//\t\tSystem.out.print(ls);\n//\t\tTimestamp t=new Timestamp(ls);\n//\t\tSystem.out.print(t);\n\t\tlong le = date2.getTime();\n\t\tBeanCoupon cp=new BeanCoupon();\n\t\tConnection conn=null;\n\t\tcp.setCoupon_content(couponcontent);\n\t\tfloat coupon_fitmoney=Float.parseFloat(fitprice);\n\t\tcp.setCoupon_fit_money(coupon_fitmoney);\n\t\tfloat coupon_price=Float.parseFloat(couponprice);\n\t\t//System.out.println(coupon_fitmoney);\n\t\tcp.setCoupon_price(coupon_price);\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select max(coupon_id+0) from coupon\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\trs.next();\n\t\t\tif (rs.getString(1) != null) {\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tint num = Integer.parseInt(cp.getCoupon_id().trim());\n\t\t\t\tnum = num +1;\n\t\t\t\tcp.setCoupon_id(String.valueOf(num));\n\t\t\t}else {\n\t\t\t\tcp.setCoupon_id(\"1\");\n\t\t\t}\n\t\t\tsql=\"insert into coupon(coupon_id,coupon_content,coupon_fit_money,coupon_price,coupon_start_time, coupon_end_time) \"\n\t\t\t\t\t+ \"value(?,?,?,?,?,?)\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, cp.getCoupon_id());\n\t\t\tpst.setString(2, cp.getCoupon_content());\n\t\t\tpst.setFloat(3, cp.getCoupon_fit_money());\n\t\t\tpst.setFloat(4, cp.getCoupon_price());\n\t\t\tpst.setTimestamp(6, new java.sql.Timestamp( ls ));\n\t\t\tpst.setTimestamp(5, new java.sql.Timestamp( le ));\n\t\t\t//pst.setDate(5, new java.sql.Date( ls ));\n//\t\t\tpst.setDate(6, new java.sql.Date(le));\n\t\t\tpst.execute();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}",
"public void setCoupJouer(int coupJouer) {\n this.coupJouer = coupJouer;\n }",
"public void assignDiscountType(int acc_no, String discount_type){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Customer` SET Discount_type = ? WHERE Account_no =? AND Customer_type = ?;\");\n Stm.setString(1, discount_type);\n Stm.setInt(2,acc_no);\n Stm.setString(3, \"Valued\");\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public Coupon addCoupon(Coupon coupon) throws CompanyDoesntExistException, CouponTitleAlreadyExistInThisCompanyException {\n Company comp = companyRepo.findById(this.companyID).get();\n if (comp == null) {\n //throw Exception\n throw new CompanyDoesntExistException(\"company doesn't exist!\");\n } else {\n coupon.setCompanyID(this.companyID); //if this company tries to add coupon to another company\n for (Coupon coup : comp.getCoupons()) {\n if (coup.getTitle().equals(coupon.getTitle())) {\n //throw Exception\n throw new CouponTitleAlreadyExistInThisCompanyException(\"coupon title is already exist!\");\n }\n }\n comp.getCoupons().add(coupon);\n companyRepo.save(comp);\n return coupon;\n }\n }",
"public CouponManager() {\n\t\tcouponManager = new HashMap<>();\n\t}",
"@Repository\npublic interface CouponRepository extends JpaRepository<Coupon , Integer> {\n\n /**\n * This method finds specific coupon by using the company id and the title of coupon.\n * @param companyId of the company that create this coupon\n * @param title of the coupon\n * @return Coupon object\n */\n Coupon findByCompanyIdAndTitle(int companyId, String title);\n\n\n /**\n * This method find coupon by company id.\n * The method helps us to get all of the coupons of specific company.\n * @param companyId of the relevant company\n * @return List of all the company coupons.\n */\n List<Coupon> findByCompanyId(int companyId);\n\n /**\n * Find all the coupons until the inserted date.\n * @param date defines the coupons list by the inserted date.\n * @return list of all the coupons until the inserted date.\n */\n List<Coupon> findByEndDateBefore(Date date);\n\n /**\n * The method finds the coupons with the id and the category that the company inserted.\n * @param companyId of the logged in company.\n * @param category of the coupon.\n * @return a Coupon list by categories that the user or the company inserted.\n */\n List<Coupon> findByCompanyIdAndCategory(int companyId, Category category);\n\n /**\n * The method finds the coupons with the id and the price that the company inserted.\n * @param companyId of the logged in company.\n * @param price of the coupon.\n * @return a Coupon list by price that the user or the company inserted.\n */\n List<Coupon> findByCompanyIdAndPriceLessThanEqual(int companyId, double price);\n\n /**\n * This repo responsible to get coupons by category.\n * @param category of the coupons will be shown.\n * @return list of the relevant coupons.\n */\n List<Coupon> findByCategory(Category category);\n\n /**\n * This repo responsible to get coupons by maximum price.\n * @param maxPrice of the coupons will be shown.\n * @return list of the relevant coupons.\n */\n List<Coupon> findByPrice(double maxPrice);\n\n /**\n * Sort the coupons by start date.\n * We use this repo in the main page of the website.\n * @return sorted list of the coupons.\n */\n List<Coupon> findByOrderByStartDateDesc();\n\n\n /**\n * Sort the coupons by the most purchased coupons.\n * We use this repo in the main page of the website.\n * @return sorted list of the most popular coupons.\n */\n @Query(value = \"SELECT coupons_id FROM customers_coupons ORDER BY coupons_id ASC\", nativeQuery = true)\n List<Integer> findByPopularity();\n\n /**\n * Get all coupons that contains the search word.\n * @param searchWord that the user search for.\n * @return list of the filtered coupons.\n */\n List<Coupon> findByTitleContaining(String searchWord);\n\n /**\n * Count all the coupons in the data base.\n * @return number of the coupons in the database.\n */\n @Query(value = \"SELECT COUNT(*) FROM coupons\", nativeQuery = true)\n int countAllCoupons();\n\n /**\n * Count all the purchased coupons.\n * @return number of the purchased coupons.\n */\n @Query(value = \"SELECT COUNT(*) FROM customers_coupons\", nativeQuery = true)\n int countAllCouponsPurchased();\n\n /**\n * Count all the coupons of specific company.\n * @param companyId of the coupons\n * @return number of the counted coupons.\n */\n int countByCompanyId(int companyId);\n\n /**\n * Count all the coupons that purchased of specific company.\n * @param companyId of the coupons.\n * @return number of the counted coupons.\n */\n @Query(value = \"SELECT COUNT(*) FROM customers_coupons AS cvc INNER JOIN coupons AS c On cvc.coupons_id = c.id WHERE company_id = ?1\" , nativeQuery = true)\n int countAllCouponsPurchasedByCompany(int companyId);\n\n\n\n}",
"public java.util.List<hr.client.appuser.CouponCenter.AppCoupon> getCouponListList() {\n return couponList_;\n }",
"public Builder setCouponList(\n int index, hr.client.appuser.CouponCenter.AppCoupon value) {\n if (couponListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCouponListIsMutable();\n couponList_.set(index, value);\n onChanged();\n } else {\n couponListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public double getAccrualFactorToNextCoupon() {\n return _factorToNextCoupon;\n }",
"public void updateConvo(Convo convo){\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Maps the coupon value to a key-value list of that coupons attributes.\")\n\n public Object getCoupons() {\n return coupons;\n }",
"@Transactional(transactionManager = \"couponDBTransactionManager\")\n public CommonResultResponse cancelCoupon(String userId, String couponCode) {\n //쿠폰 조회(사용여부, 할당여부)\n Optional<CouponData> cancelTargetCoupon = couponDataJpaRepository.findByUserIdAndCouponCode(userId, couponCode);\n\n CouponData couponData = cancelTargetCoupon.orElseThrow(()\n -> new CommonException(CommonResultCode.NO_DATA));\n\n //미사용된 쿠폰의 경우 에러\n if (!couponData.isUse()) {\n throw new CommonException(CommonResultCode.NOT_USE_COUPON);\n }\n\n //취소의 경우는 만료 여부 체크하지 않음\n\n //쿠폰 미사용처리\n couponData.setUse(false);\n\n //로그 저장\n couponLogService.saveCouponLog(couponCode, CouponStatus.CANCEL);\n\n return new CommonResultResponse(CommonResultCode.SUCCESS);\n }",
"@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}",
"void setDiscount(BigDecimal discount);",
"Order setAsInCharge(Order order, User user);",
"private void update() {\n\n\t\tfloat shopping = Float.parseFloat(label_2.getText());\n\t\tfloat giveing = Float.parseFloat(label_5.getText());\n\t\tfloat companyDemand = Float.parseFloat(label_7.getText());\n\n\t\ttry {\n\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t.prepareStatement(\"update customer_list set Shopping_Account = \"\n\t\t\t\t\t\t\t+ shopping\n\t\t\t\t\t\t\t+ \" , Giving_Money_Account = \"\n\t\t\t\t\t\t\t+ giveing\n\t\t\t\t\t\t\t+ \", Company_demand = \"\n\t\t\t\t\t\t\t+ companyDemand\n\t\t\t\t\t\t\t+ \" where Name = '\"\n\t\t\t\t\t\t\t+ name\n\t\t\t\t\t\t\t+ \"' And Last_Name = '\"\n\t\t\t\t\t\t\t+ lastName + \"' \");\n\t\t\tstatement.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}",
"public void removeCustomerCoupon(Company company) throws DbException;",
"Task<Void> CreateCoupon(final Coupon coupon) throws FirebaseAuthInvalidCredentialsException {\n\n if (auth.getCurrentUser() != null) {\n String uid = auth.getCurrentUser().getUid();\n\n String imageName = coupon.ImageUri.getLastPathSegment();\n\n final DocumentReference couponRef = db.collection(uid).document();\n\n final StorageReference imageRef = storage.getReference()\n .child(uid)\n .child(couponRef.getId())\n .child(imageName);\n\n // Task to upload the image.\n UploadTask storageTask = imageRef.putFile(coupon.ImageUri);\n\n // After the image is uploaded get the download url.\n Task<Uri> uriTask = storageTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (task.isSuccessful()) {\n return imageRef.getDownloadUrl();\n } else {\n throw task.getException();\n }\n }\n });\n\n // Upload data to database after we get the download url.\n // This download url should be included in the coupon.\n return uriTask.continueWithTask(new Continuation<Uri, Task<Void>>() {\n @Override\n public Task<Void> then(@NonNull Task<Uri> task) throws Exception {\n if (task.isSuccessful()) {\n coupon.Id = couponRef.getId();\n coupon.ImageDownloadUrl = task.getResult().toString();\n return couponRef.set(coupon);\n } else {\n throw task.getException();\n }\n }\n });\n } else {\n throw new FirebaseAuthInvalidCredentialsException(\"Auth error\", \"User not logged in\");\n }\n\n }",
"public Builder setCouponName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n couponName_ = value;\n onChanged();\n return this;\n }",
"public Builder setCouponName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n couponName_ = value;\n onChanged();\n return this;\n }",
"public Builder setCouponName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n couponName_ = value;\n onChanged();\n return this;\n }",
"Order modifyDiscountToOrder(Order order, int discountToAppply);",
"public void setwPrIsCoupon(Integer wPrIsCoupon) {\n this.wPrIsCoupon = wPrIsCoupon;\n }",
"int getCouponListCount();",
"public java.lang.Double getCouponPrice () {\r\n\t\treturn couponPrice;\r\n\t}",
"void setDiscount(float sconto);",
"public Builder setCouponType(int value) {\n \n couponType_ = value;\n onChanged();\n return this;\n }",
"public hr.client.appuser.CouponCenter.AppCoupon getCouponList(int index) {\n return couponList_.get(index);\n }",
"public java.lang.String getCouponName() {\n java.lang.Object ref = couponName_;\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 couponName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getCouponName() {\n java.lang.Object ref = couponName_;\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 couponName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getCouponName() {\n java.lang.Object ref = couponName_;\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 couponName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Builder addCouponList(hr.client.appuser.CouponCenter.AppCoupon value) {\n if (couponListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCouponListIsMutable();\n couponList_.add(value);\n onChanged();\n } else {\n couponListBuilder_.addMessage(value);\n }\n return this;\n }",
"public int getCouponListCount() {\n return couponList_.size();\n }",
"public java.lang.String getCouponName() {\n java.lang.Object ref = couponName_;\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 couponName_ = s;\n return s;\n }\n }"
] | [
"0.7754195",
"0.7055126",
"0.6973846",
"0.6796258",
"0.6745131",
"0.6527758",
"0.63859856",
"0.6286271",
"0.6270001",
"0.62530583",
"0.6193861",
"0.6174991",
"0.61549085",
"0.6111608",
"0.60978854",
"0.60812944",
"0.6026237",
"0.60053784",
"0.5996849",
"0.5965301",
"0.59480023",
"0.59420824",
"0.5937407",
"0.58926046",
"0.5874335",
"0.587183",
"0.5867405",
"0.5837937",
"0.58341134",
"0.5821028",
"0.5812258",
"0.58007306",
"0.5791875",
"0.577028",
"0.5764574",
"0.57630485",
"0.5762253",
"0.5740426",
"0.5723773",
"0.5687132",
"0.56867325",
"0.56716484",
"0.5642216",
"0.5637347",
"0.5628481",
"0.5623346",
"0.561953",
"0.56122035",
"0.56057954",
"0.55914867",
"0.55497074",
"0.5519623",
"0.55174255",
"0.55097353",
"0.55063266",
"0.54890937",
"0.54856646",
"0.54534817",
"0.5445161",
"0.54422563",
"0.5441673",
"0.543595",
"0.5434607",
"0.5413891",
"0.53928226",
"0.5390931",
"0.53880554",
"0.5387781",
"0.5382171",
"0.53817916",
"0.5351242",
"0.533856",
"0.5330648",
"0.532996",
"0.5329895",
"0.5326291",
"0.530986",
"0.53025067",
"0.5290883",
"0.5287587",
"0.52863973",
"0.52700883",
"0.5261683",
"0.5255902",
"0.52536184",
"0.52536184",
"0.52536184",
"0.52485496",
"0.5233348",
"0.52301824",
"0.5229092",
"0.52174985",
"0.5216044",
"0.5198394",
"0.5195524",
"0.5195524",
"0.5195524",
"0.5189356",
"0.5174046",
"0.51724803"
] | 0.64682376 | 6 |
update pool location after users buy coupon from this pool location | public void updateGameLocationWithVisitOrNot(String ID, boolean isVisited) {
helper.updateGameLocationTable(GamelocationTableName, ID,
convertToString(isVisited));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updatePoolwithBoughtCoupon(String ID, boolean isgteCoupon) {\n\t\thelper.updatePoolLocationTable(PooltableName, ID,\n\t\t\t\tconvertToString(isgteCoupon));\n\t}",
"public void updateCouponwithBoughtCoupon(String ID, boolean isgetCoupon) {\n\t\thelper.updatePoolLocationTable(PooltableName, ID,\n\t\t\t\tconvertToString(isgetCoupon));\n\t}",
"private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}",
"private void updateTargetProductGeocoding() {\n }",
"public void addNewPool(poolLocation pool) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getPoolLocationData(PooltableName,\n\t\t\t\tpool.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}",
"public void UpdatePlace(iconnectionpool connectionPool, String id_user, String id_place, String ip, String id_similar_place){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement();\n String datesubmit=new java.text.SimpleDateFormat(\"yyyy-MM-dd-hh-mm-ss\").format(new java.util.Date());\n String sql=\"update similarplaces set id_similar_place='\"+id_similar_place+\"', dateupdate='\"+datesubmit+\"', ip_update='\"+ip+\"' where id_user='\"+id_user+\"' and id_place='\"+id_place+\"'\";\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }",
"public void updateCoupon(Coupon coupon) throws DbException;",
"public void updateLoc()\n {\n driverLoc = new ParseGeoPoint(driverLocCord.latitude, driverLocCord.longitude);\n ParseUser.getCurrentUser().put(\"Location\", driverLoc);\n ParseUser.getCurrentUser().saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e==null){\n Toast.makeText(getApplicationContext(), \"Location Updated\", Toast.LENGTH_SHORT).show();\n }\n else{\n\n Toast.makeText(getApplicationContext(), \"Error in Location Update\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n });\n\n\n populate();\n\n }",
"@Override\r\n\tpublic void onLocationChanged(Location location) {\n\t if(location!=null){\r\n\t //Toast.makeText(mContext,\"Location provider = \"+location.getProvider(), Toast.LENGTH_SHORT).show();\r\n if (LocationManager.GPS_PROVIDER.equals(location.getProvider())) {\r\n double [] latlng =Common.adjustLatLng(location.getLatitude(), location.getLongitude());\r\n location.setLatitude(latlng[0]);\r\n location.setLongitude(latlng[1]);\r\n Common.saveLocation(location);\r\n super.onLocationChanged(location);\r\n }else if(\"lbs\".equals(location.getProvider())){\r\n Common.saveLocation(location);\r\n super.onLocationChanged(location);\r\n }\r\n\t }\r\n\t}",
"private void update() {\n\n\t\tfloat shopping = Float.parseFloat(label_2.getText());\n\t\tfloat giveing = Float.parseFloat(label_5.getText());\n\t\tfloat companyDemand = Float.parseFloat(label_7.getText());\n\n\t\ttry {\n\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t.prepareStatement(\"update customer_list set Shopping_Account = \"\n\t\t\t\t\t\t\t+ shopping\n\t\t\t\t\t\t\t+ \" , Giving_Money_Account = \"\n\t\t\t\t\t\t\t+ giveing\n\t\t\t\t\t\t\t+ \", Company_demand = \"\n\t\t\t\t\t\t\t+ companyDemand\n\t\t\t\t\t\t\t+ \" where Name = '\"\n\t\t\t\t\t\t\t+ name\n\t\t\t\t\t\t\t+ \"' And Last_Name = '\"\n\t\t\t\t\t\t\t+ lastName + \"' \");\n\t\t\tstatement.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}",
"@Override\n\tpublic long getLocation() {\n\t\treturn _buySellProducts.getLocation();\n\t}",
"private void setPickupLocation(){\n \t\t// Defines the AutoCompleteTextView pickupText\n \t\tacPickup = (AutoCompleteTextView)findViewById(R.id.pickupText);\n \t\t// Controls if the user has entered an address\n \t\tif(!acPickup.getText().toString().equals(\"\")){\n \t\t\t// Gets the GeoPoint of the written address\n \t\t\tGeoPoint pickupGeo = GeoHelper.getGeoPoint(acPickup.getText().toString());\n \t\t\t// Gets the MapLocation of the GeoPoint\n \t\t\tMapLocation mapLocation = (MapLocation) GeoHelper.getLocation(pickupGeo);\n \t\t\t// Finds the pickup location on the route closest to the given address\n \t\t\tLocation temp = findClosestLocationOnRoute(mapLocation);\n \t\t\n \t\t\t//Controls if the user has entered a NEW address\n \t\t\tif(pickupPoint != temp){\n \t\t\t\t// Removes old pickup point (thumb)\n \t\t\t\tif(overlayPickupThumb != null){\n \t\t\t\t\tmapView.getOverlays().remove(overlayPickupThumb);\n \t\t\t\t\toverlayPickupThumb = null;\n \t\t\t\t}\n \t\t\t\tmapView.invalidate();\n \t\t\t\t\n \t\t\t\t// If no dropoff point is specified, we add the pickup point to the map.\n \t\t\t\tif(dropoffPoint == null){\n \t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t}else{ // If a dropoff point is specified:\n \t\t\t\t\tList<Location> l = getApp().getSelectedJourney().getRoute().getRouteData();\n \t\t\t\t\t// Checks to make sure the pickup point is before the dropoff point.\n \t\t\t\t\tif(l.indexOf(temp) < l.indexOf(dropoffPoint)){\n \t\t\t\t\t\t//makeToast(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\t\t\t\tad.setMessage(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tad.setTitle(\"Unable to send request\");\n \t\t\t\t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\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\tad.show();\n \t\t\t\t\t}else{\n \t\t\t\t\t\t// Adds the pickup point to the map by drawing a cross\n \t\t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t//makeToast(\"Please add a pickup address\");\n \t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\tad.setMessage(\"Please add a pickup address\");\n \t\t\tad.setTitle(\"Unable to send request\");\n \t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t });\n \t\t\tad.show();\n \t\t}\n \t}",
"public void updateVillagePools(){\r\n\t\tCollections.shuffle(this.marketPool);\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.setMarketPool(this.marketPool);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setLocation(long location) {\n\t\t_buySellProducts.setLocation(location);\n\t}",
"private void updateLocationToServer() {\n\n if (Utility.isConnectingToInternet(getActivity())) {\n\n if (mGpsTracker.canGetLocation()) {\n\n if (Utility.ischeckvalidLocation(mGpsTracker)) {\n\n Animation fade1 = AnimationUtils.loadAnimation(getActivity(), R.anim.flip);\n btnRefreshLocation.startAnimation(fade1);\n Map<String, String> params = new HashMap<String, String>();\n if (!AppConstants.isGestLogin(getActivity())) {\n params.put(\"iduser\", SharedPref.getInstance().getStringVlue(getActivity(), userId));\n } else {\n params.put(\"iduser\", \"0\");\n }\n\n params.put(\"latitude\", \"\" + mGpsTracker.getLatitude());\n params.put(\"longitude\", \"\" + mGpsTracker.getLongitude());\n RequestHandler.getInstance().stringRequestVolley(getActivity(), AppConstants.getBaseUrl(SharedPref.getInstance().getBooleanValue(getActivity(), isStaging)) + updatelocation, params, this, 5);\n fade1.cancel();\n } else {\n mGpsTracker.showInvalidLocationAlert();\n }\n } else {\n showSettingsAlert(5);\n }\n } else {\n Utility.showInternetError(getActivity());\n }\n\n }",
"public void updateLocation();",
"@Override\n public void onClick( View v ) {\n SharedPreferences sp = Objects.requireNonNull( getActivity() )\n .getSharedPreferences( Weather_Preference, 0 );\n SharedPreferences.Editor e = sp.edit();\n float curLat;\n float curLon;\n if ( cLocate != null ) {\n curLat = ( float ) cLocate.latitude;\n curLon = ( float ) cLocate.longitude;\n e.putString( MAP_LAT_KEY, String.valueOf( curLat ) );\n e.putString( MAP_LON_KEY, String.valueOf( curLon ) );\n Toast.makeText( mMaster, \"Latitude: \"\n .concat( String.valueOf( curLat ) )\n .concat( \" and Longitude: \" )\n .concat( String.valueOf( curLon ) )\n .concat( \" have been applied\" ),\n Toast.LENGTH_SHORT )\n .show();\n } else {\n /*Toast.makeText( mMaster, \"Error setting the location, check your GPS settings and permissions\", Toast.LENGTH_SHORT ).show();*/\n Toast.makeText( mMaster, \"Error setting the location; tap a location to drop a pin\", Toast.LENGTH_LONG ).show();\n }\n e.apply();\n }",
"public void updateOwners() {\n\t\tbuyOrder.getOwner().executedOrder(buyOrder,this);\n\t\tsellOrder.getOwner().executedOrder(sellOrder,this);\n\t}",
"@Override\n\tpublic void update_in_DB() throws CouponSiteMsg \n\t{\n\t\t\n\t}",
"private void updateAssignedPO() {\n Organisation organisation = PersistenceManager.getCurrent().getCurrentModel();\n\n Person productOwner = getModel().getAssignedPO();\n\n // Add all the people with the PO skill to the list of POs\n List<Person> productOwners = organisation.getPeople()\n .stream()\n .filter(p -> p.canBeRole(Skill.PO_NAME))\n .collect(Collectors.toList());\n\n // Remove listener while editing the product owner picker\n poComboBox.getSelectionModel().selectedItemProperty().removeListener(getChangeListener());\n poComboBox.getItems().clear();\n poComboBox.getItems().addAll(productOwners);\n if (poComboBox != null) {\n poComboBox.getSelectionModel().select(productOwner);\n if (!isCreationWindow) {\n navigateToPOButton.setDisable(false);\n }\n }\n poComboBox.getSelectionModel().selectedItemProperty().addListener(getChangeListener());\n }",
"public void setCouponAmount(double couponAmount) {\n _couponAmount = couponAmount;\n }",
"public void add_location() {\n if (currentLocationCheckbox.isChecked()) {\n try {\n CurrentLocation locationListener = new CurrentLocation();\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null) {\n int latitude = (int) (location.getLatitude() * 1E6);\n int longitude = (int) (location.getLongitude() * 1E6);\n currentLocation = new GeoPoint(latitude, longitude);\n }\n } catch (SecurityException e) {\n e.printStackTrace();\n }\n } else {\n currentLocation = null;\n }\n\n }",
"private void updatePool(Vector sold){\r\n\t\tfor(int i = 0; i < sold.size(); i++){\r\n\t\t\tthis.marketPool.addElement((Bird) sold.elementAt(i));\r\n\t\t}\r\n\t}",
"@Override\n\t/**\n\t * Accepts predefined Coupon object and updates entry with relevant ID in\n\t * the database with values from accepted Coupon object\n\t */\n\tpublic void updateCoupon(Coupon coupon) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to update Coupon via prepared statement\n\t\t\tString updateCouponSQL = \"update coupon set title=?, start_date=?, end_date=?, expired=?, type=?, message=?, price=?, image=? where id = ?\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(updateCouponSQL);\n\t\t\t// Fetching variables into SQL string via Coupon bean plus ID as\n\t\t\t// method accepted variable\n\t\t\tpstmt.setString(1, coupon.getTitle());\n\t\t\tpstmt.setDate(2, getSqlDate(coupon.getStart_date()));\n\t\t\tpstmt.setDate(3, getSqlDate(coupon.getEnd_date()));\n\t\t\tpstmt.setString(4, coupon.getExpired());\n\t\t\tpstmt.setString(5, coupon.getType());\n\t\t\tpstmt.setString(6, coupon.getMessage());\n\t\t\tpstmt.setInt(7, coupon.getPrice());\n\t\t\tpstmt.setString(8, coupon.getImage());\n\t\t\tpstmt.setInt(9, coupon.getId());\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint rowCount = pstmt.executeUpdate();\n\t\t\tif (rowCount != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupon has been updated successfully:\" + coupon);\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupon not found in the\n\t\t\t\t// database\n\t\t\t\tSystem.out.println(\"Coupon update has been failed - subject entry not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon update in the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon update has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"private void updateAccPoolState() {\n List<AionAddress> clearAddr = new ArrayList<>();\n for (Entry<AionAddress, AccountState> e : this.accountView.entrySet()) {\n AccountState as = e.getValue();\n if (as.isDirty()) {\n\n if (as.getMap().isEmpty()) {\n this.poolStateView.remove(e.getKey());\n clearAddr.add(e.getKey());\n } else {\n // checking AccountState given by account\n List<PoolState> psl = this.poolStateView.get(e.getKey());\n if (psl == null) {\n psl = new LinkedList<>();\n }\n\n List<PoolState> newPoolState = new LinkedList<>();\n // Checking new tx has been include into old pools.\n BigInteger txNonceStart = as.getFirstNonce();\n\n if (txNonceStart != null) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState fn [{}]\",\n txNonceStart.toString());\n }\n for (PoolState ps : psl) {\n // check the previous txn status in the old\n // PoolState\n if (isClean(ps, as)\n && ps.firstNonce.equals(txNonceStart)\n && ps.combo == seqTxCountMax) {\n ps.resetInFeePool();\n newPoolState.add(ps);\n\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState add fn [{}]\",\n ps.firstNonce.toString());\n }\n\n txNonceStart = txNonceStart.add(BigInteger.valueOf(seqTxCountMax));\n } else {\n // remove old poolState in the feeMap\n if (this.feeView.get(ps.getFee()) != null) {\n\n if (e.getValue().getMap().get(ps.firstNonce) != null) {\n this.feeView\n .get(ps.getFee())\n .remove(\n e.getValue()\n .getMap()\n .get(ps.firstNonce)\n .getKey());\n }\n\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState remove fn [{}]\",\n ps.firstNonce.toString());\n }\n\n if (this.feeView.get(ps.getFee()).isEmpty()) {\n this.feeView.remove(ps.getFee());\n }\n }\n }\n }\n }\n\n int cnt = 0;\n BigInteger fee = BigInteger.ZERO;\n BigInteger totalFee = BigInteger.ZERO;\n\n for (Entry<BigInteger, SimpleEntry<ByteArrayWrapper, BigInteger>> en :\n as.getMap().entrySet()) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState mapsize[{}] nonce:[{}] cnt[{}] txNonceStart[{}]\",\n as.getMap().size(),\n en.getKey().toString(),\n cnt,\n txNonceStart != null ? txNonceStart.toString() : null);\n }\n if (en.getKey()\n .equals(\n txNonceStart != null\n ? txNonceStart.add(BigInteger.valueOf(cnt))\n : null)) {\n if (en.getValue().getValue().compareTo(fee) > -1) {\n fee = en.getValue().getValue();\n totalFee = totalFee.add(fee);\n\n if (++cnt == seqTxCountMax) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState case1 - nonce:[{}] totalFee:[{}] cnt:[{}]\",\n txNonceStart,\n totalFee.toString(),\n cnt);\n }\n newPoolState.add(\n new PoolState(\n txNonceStart,\n totalFee.divide(BigInteger.valueOf(cnt)),\n cnt));\n\n txNonceStart = en.getKey().add(BigInteger.ONE);\n totalFee = BigInteger.ZERO;\n fee = BigInteger.ZERO;\n cnt = 0;\n }\n } else {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState case2 - nonce:[{}] totalFee:[{}] cnt:[{}]\",\n txNonceStart,\n totalFee.toString(),\n cnt);\n }\n newPoolState.add(\n new PoolState(\n txNonceStart,\n totalFee.divide(BigInteger.valueOf(cnt)),\n cnt));\n\n // next PoolState\n txNonceStart = en.getKey();\n fee = en.getValue().getValue();\n totalFee = fee;\n cnt = 1;\n }\n }\n }\n\n if (totalFee.signum() == 1) {\n\n if (LOG.isTraceEnabled()) {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState case3 - nonce:[{}] totalFee:[{}] cnt:[{}] bw:[{}]\",\n txNonceStart,\n totalFee.toString(),\n cnt,\n e.getKey().toString());\n }\n\n newPoolState.add(\n new PoolState(\n txNonceStart,\n totalFee.divide(BigInteger.valueOf(cnt)),\n cnt));\n }\n\n this.poolStateView.put(e.getKey(), newPoolState);\n\n if (LOG.isTraceEnabled()) {\n this.poolStateView.forEach(\n (k, v) ->\n v.forEach(\n l -> {\n LOG.trace(\n \"AbstractTxPool.updateAccPoolState - the first nonce of the poolState list:[{}]\",\n l.firstNonce);\n }));\n }\n as.sorted();\n }\n }\n }\n\n if (!clearAddr.isEmpty()) {\n clearAddr.forEach(\n addr -> {\n lock.writeLock().lock();\n this.accountView.remove(addr);\n lock.writeLock().unlock();\n this.bestNonce.remove(addr);\n });\n }\n }",
"@Override\n public void setLocationOfShop() {\n\n }",
"private void setDropOffLocation(){\n \t\t// Defines the AutoCompleteTextView with the dropoff address\n \t\tacDropoff = (AutoCompleteTextView)findViewById(R.id.dropoffText);\n \t\t//Controls if the user has entered an address\n \t\tif(!acDropoff.getText().toString().equals(\"\")){\n \t\t\t// Gets the GeoPoint of the given address\n \t\t\tGeoPoint dropoffGeo = GeoHelper.getGeoPoint(acDropoff.getText().toString());\n \t\t\t// Gets the MapLocation from the given GeoPoint\n \t\t\tMapLocation mapLocation = (MapLocation) GeoHelper.getLocation(dropoffGeo);\n \t\t\t// Finds the dropoff location on the route closest to the given address\n \t\t\tLocation temp = findClosestLocationOnRoute(mapLocation);\n \t\t\t\n \t\t\t// Controls if the user has entered a NEW address\n \t\t\tif(dropoffPoint != temp){\n \t\t\t\t// Removes old pickup point (thumb)\n \t\t\t\tif(overlayDropoffThumb != null){\n \t\t\t\t\tmapView.getOverlays().remove(overlayDropoffThumb);\n \t\t\t\t\toverlayDropoffThumb = null;\n \t\t\t\t}\n \t\t\t\tmapView.invalidate();\n \t\t\t\t\n \t\t\t\t// If no pickup point is specified, we add the dropoff point to the map.\n \t\t\t\tif(pickupPoint == null){\n \t\t\t\t\tdropoffPoint = temp;\n \t\t\t\t\toverlayDropoffThumb = drawThumb(dropoffPoint, false);\n \t\t\t\t}else{ // If a pickup point is specified:\n \t\t\t\t\tList<Location> l = getApp().getSelectedJourney().getRoute().getRouteData();\n \t\t\t\t\t// Checks to make sure the dropoff point is after the pickup point.\n \t\t\t\t\tif(l.indexOf(temp) > l.indexOf(pickupPoint)){\n \t\t\t\t\t\t//makeToast(\"The droppoff point has to be after the pickup point\");\n \t\t\t\t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\t\t\t\tad.setMessage(\"The droppoff point has to be after the pickup point\");\n \t\t\t\t\t\tad.setTitle(\"Unable to send request\");\n \t\t\t\t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\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\tad.show();\n \t\t\t\t\t}else{\n \t\t\t\t\t\t// Adds the dropoff point to the map by drawing a cross\n \t\t\t\t\t\tdropoffPoint = temp;\n \t\t\t\t\t\toverlayDropoffThumb = drawThumb(dropoffPoint, false);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t//makeToast(\"Please add a dropoff address\");\n \t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\tad.setMessage(\"Please add a dropoff address\");\n \t\t\tad.setTitle(\"Unable to send request\");\n \t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t });\n \t\t\tad.show();\n \t\t}\n \t}",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"public void onTempPowerSaveWhitelistChanged(AppStateTracker sender) {\n updateAllJobs();\n }",
"private void updateWeather() {\n\t\tFetchWeatherTask weatherTask = new FetchWeatherTask(getActivity()); \n\t\tString location = Utility.getPreferredLocation(getActivity());\n\t\tweatherTask.execute(location); \n\t}",
"public static void updateCoupon(Context context, String id, final Coupon c)\n {\n Query reff;\n reff= FirebaseDatabase.getInstance().getReference().child(\"coupon\").orderByChild(\"seri\").equalTo(id);\n reff.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot: dataSnapshot.getChildren())\n {\n Coupon coupon=snapshot.getValue(Coupon.class);\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"coupon\").child(coupon.getIdcoupon());\n c.setIdcoupon(coupon.getIdcoupon());\n ref.setValue(c);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public void handleBuyGuppyCommand() {\n if (Aquarium.money >= GUPPYPRICE) {\n guppyController.addNewEntity();\n Aquarium.money -= GUPPYPRICE;\n }\n }",
"@Override\n public void onClick(View view) {\n if (markerPlaced) {\n //Firestore handler method that adds geopoint as a field in database\n setPickupLocation(bookId, lat, lon);\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Pickup location has been updated\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Place a marker first\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n finalList = adapter.getMenu();\n Order newOrder = new Order();\n newOrder.setVendor(Id);\n newOrder.setCustomer(userID);\n newOrder.setCustomerLocation(latitude+\",\"+longitude);\n newOrder.setVendorName(curr.getName());\n newOrder.setDate(new SimpleDateFormat(\"dd/MM/yyyy\", Locale.getDefault()).format(new Date()));\n HashMap<String, CartItem> newCart = new HashMap<>();\n float amount = 0;\n for (MenuItem item : finalList) {\n if (!item.getQuantity().equals(\"0\")) {\n amount += Integer.parseInt(item.getQuantity()) * Integer.parseInt(item.getPrice());\n newCart.put(item.getName(), new CartItem(item.getPrice(), item.getQuantity()));\n }\n }\n if(newCart.size()==0)\n {\n Toast.makeText(restrauntPage.this, \"Please add atleast 1 item\", Toast.LENGTH_SHORT).show();\n return;\n }\n amount = amount * 1.14f;\n newOrder.setTotalAmount(String.valueOf(amount));\n newOrder.setItemsOrdered(newCart);\n Log.d(\"checkout\", newOrder.toString());\n Intent mainIntent = new Intent(restrauntPage.this, paymentOrder.class);\n mainIntent.putExtra(\"order\",newOrder);\n mainIntent.putExtra(\"userId\",userID);\n mainIntent.putExtra(\"userInfo\",currUser);\n startActivity(mainIntent);\n finish();\n }\n }",
"@Override\n\tpublic void modifySystemCoupons(BeanCoupon coupon,String couponcontent, String fitprice, String couponprice,String couponstarttime, String couponendtime) throws BaseException {\n\t\tConnection conn=null;\n\t\tSimpleDateFormat sdf = new SimpleDateFormat( \"yyyy-MM-dd HH:mm:ss\" );\n\t\tjava.util.Date date1 = null;\n\t\tjava.util.Date date2 = null;\n\t\tBeanCoupon cp=new BeanCoupon();\n\t\tcp.setCoupon_content(couponcontent);\n\t\tfloat coupon_fitmoney=Float.parseFloat(fitprice);\n\t\tcp.setCoupon_fit_money(coupon_fitmoney);\n\t\tfloat coupon_price=Float.parseFloat(couponprice);\n\t\t//System.out.println(coupon_fitmoney);\n\t\tcp.setCoupon_price(coupon_price);\n\t\ttry {\n\t\t\tdate1 = sdf.parse( couponstarttime );\n\t\t\t//System.out.print(date1);\n\t\t\tdate2 = sdf.parse( couponendtime );\n\t\t} catch (ParseException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tlong ls = date1.getTime();\n//\t\tSystem.out.print(ls);\n//\t\tTimestamp t=new Timestamp(ls);\n//\t\tSystem.out.print(t);\n\t\tlong le = date2.getTime();\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"update coupon set coupon_content=?,coupon_fit_money=?,coupon_price=?,\"\n\t\t\t\t\t+ \"coupon_start_time=?, coupon_end_time=? where coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, cp.getCoupon_content());\n\t\t\tpst.setFloat(2, cp.getCoupon_fit_money());\n\t\t\tpst.setFloat(3, cp.getCoupon_price());\n\t\t\tpst.setTimestamp(4, new java.sql.Timestamp( ls ));\n\t\t\tpst.setTimestamp(5, new java.sql.Timestamp( le ));\n\t\t\tpst.setString(6, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}",
"@Then(\"^: proceed to checkout$\")\r\n\tpublic void proceed_to_checkout() throws Throwable {\n\t\tobj.update();\r\n\t}",
"private poolLocation getCouponLocation(int ID) {\n\t\tpoolLocation coupon = null;\n\t\tif (ID == 0) {\n\t\t\tcoupon = new poolLocation(coupon1ID, Coupon1Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon1ID));\n\t\t} else if (ID == 1) {\n\t\t\tcoupon = new poolLocation(coupon2ID, Coupon2Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon2ID));\n\t\t} else if (ID == 2) {\n\t\t\tcoupon = new poolLocation(coupon3ID, Coupon3Description, false,\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(coupon3ID));\n\t\t}\n\t\treturn coupon;\n\t}",
"private void updateLocationUI() {\r\n if (mCurrentLocation != null) {\r\n CityName = mCurrentLocation.getLatitude()+ mCurrentLocation.getLongitude();\r\n }\r\n }",
"boolean update(Country country);",
"public void makeUseOfNewLocation(Location location) {\n \t\tString place = null;\n \t\tif(location!=null)\n \t\t{\n \t\t\tGeocoder gc = new Geocoder(organise.getApplicationContext());\n \t\t\ttry {\n \t\t\t\tList<Address> list = gc.getFromLocation(location.getLatitude(), location.getLongitude(), 5);\n \t\t\t\tint i = 0;\n \t\t\t\twhile (i<list.size()) \n \t\t\t\t{\n \t\t\t\t\tString temp = list.get(i).getLocality();\n \t\t\t\t\tif(temp!=null) {place = temp;}\n \t\t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\tif(place!=null) {cur_loc.setText(place);}\n \t\t\t\telse {cur_loc.setText(\"(\" + location.getLatitude() + \",\" + location.getLongitude() + \")\");}\n \t\t\t}\n \t\t\t//This is thrown if the phone has no Internet connection.\n \t\t\tcatch (IOException e) {\n \t\t\t\tcur_loc.setText(\"(\" + location.getLatitude() + \",\" + location.getLongitude() + \")\");\n \t\t\t}\n \t\t}\n \t}",
"public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}",
"private void updateFragmentOnLocationSuccess() {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n if (permissionCheck == PackageManager.PERMISSION_GRANTED) {\n fusedLocationClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n coordinate = new Coordinate(location.getLatitude(), location.getLongitude());\n poll.setCoordinate(coordinate);\n\n // Obtain the setting fragment so we can communicate with it through\n // public methods\n SettingFragment settingFragment = (SettingFragment) getSupportFragmentManager()\n .findFragmentByTag(FRAGMENT_SETTING_TAG);\n\n if (settingFragment != null) {\n settingFragment.unlockCurrentLocationRadio(true);\n }\n } else {\n displayNoLocationToast();\n }\n }\n });\n }\n }",
"private void updateWithNewLocation(Location location)\n {\n\n float fLatitude = (float)0.0;\n float fLongitude = (float)0.0;\n float fHepe=(float)10000.0;\n byte ucNapUsed = 0;\n byte ucWiperErrorCode = 0;\n\n if (Config.LOGD) Log.d(TAG,\"Network Location callback\");\n\n if( location != null)\n {\n //read params from location structure return by WPS\n fLatitude = (float)(location.getLatitude());\n fLongitude = (float)(location.getLongitude());\n fHepe = location.getAccuracy();\n\n if(bScanCompleted == true)\n {\n ucNapUsed= (byte)aResults.size();\n }\n else\n {\n ucNapUsed = 50;\n }\n\n }\n else\n {\n ucWiperErrorCode = 99;\n }\n startWiperReport();\n native_notify_wiper_position(fLatitude,fLongitude,fHepe,ucNapUsed,ucWiperErrorCode);\n endWiperReport();\n\n }",
"public abstract void updateLocation(Location location, String newLocationName, int newLocationCapacity);",
"protected void trackLocation(View v) {\n SharedPreferences sharedPreferences = this.getSharedPreferences(\"com.tryagain.com.fleetmanagmentsystem.prefs\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n if (!saveUserSettings()) {\n return;\n }\n\n if (!checkIfGooglePlayEnabled()) {\n return;\n }\n\n if (currentlyTracking) {\n cancelAlarmManager();\n\n currentlyTracking = false;\n editor.putBoolean(\"currentlyTracking\", false);\n editor.putString(\"sessionID\", \"\");\n //int totalFuel = sharedPreferences.getInt(\"fuel\", 0);\n //float totalDistance = sharedPreferences.getFloat(\"distance\", -1);\n //Toast.makeText(getApplicationContext(),\"\"+totalFuel+\" \"+totalDistance,Toast.LENGTH_SHORT).show();\n } else {\n startAlarmManager();\n\n currentlyTracking = true;\n editor.putBoolean(\"currentlyTracking\", true);\n //editor.putFloat(\"totalDistanceInMeters\", 0f);\n editor.putBoolean(\"firstTimeGettingPosition\", true);\n editor.putString(\"sessionID\", UUID.randomUUID().toString());\n editor.putInt(\"fuel\", gaugeValue);\n\n mGaugeView.setVisibility(View.INVISIBLE);\n }\n\n editor.apply();\n setTrackingButtonState();\n }",
"@Override\n\tpublic void update(int timeStep)\n\t{\n\t\tthis.checkForNewAppliancesAndUpdateConstants();\n\n\t\tdouble[] ownersCostSignal = this.owner.getPredictedCostSignal();\n\t\tthis.dayPredictedCostSignal = Arrays.copyOfRange(ownersCostSignal, timeStep % ownersCostSignal.length, timeStep\n\t\t\t\t% ownersCostSignal.length + this.ticksPerDay);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"update\");\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tthis.dayPredictedCostSignal = ArrayUtils\n\t\t\t\t.offset(ArrayUtils.multiply(this.dayPredictedCostSignal, this.predictedCostToRealCostA), this.realCostOffsetb);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"afterOffset dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tif (this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tthis.setPointProfile = Arrays.copyOf(this.owner.getSetPointProfile(), this.owner.getSetPointProfile().length);\n\t\t\tthis.optimisedSetPointProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.currentTempProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.heatPumpDemandProfile = this.calculateEstimatedSpaceHeatPumpDemand(this.setPointProfile);\n\t\t\t// (20/01/12) Check if sum of <heatPumpDemandProfile> is consistent\n\t\t\t// at end day\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \" + ArrayUtils.sum(this.heatPumpDemandProfile));\n\t\t\t}\nif (\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\tthis.mainContext.logger.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \"\n\t\t\t\t\t+ ArrayUtils.sum(this.calculateEstimatedSpaceHeatPumpDemand(this.optimisedSetPointProfile)));\n}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.heatPumpDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.hotWaterVolumeDemandProfile = Arrays.copyOfRange(this.owner.getBaselineHotWaterVolumeProfile(), (timeStep % this.owner\n\t\t\t\t\t.getBaselineHotWaterVolumeProfile().length), (timeStep % this.owner.getBaselineHotWaterVolumeProfile().length)\n\t\t\t\t\t+ this.ticksPerDay);\n\t\t\tthis.waterHeatDemandProfile = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR\n\t\t\t\t\t* (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP) / Consts.DOMESTIC_HEAT_PUMP_WATER_COP));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.waterHeatDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.coldAppliancesControlled && this.owner.isHasColdAppliances())\n\t\t{\n\t\t\tthis.optimiseColdProfile(timeStep);\n\t\t}\n\n\t\tif (this.wetAppliancesControlled && this.owner.isHasWetAppliances())\n\t\t{\n\t\t\tthis.optimiseWetProfile(timeStep);\n\t\t}\n\n\t\t// Note - optimise space heating first. This is so that we can look for\n\t\t// absolute\n\t\t// heat pump limit and add the cost of using immersion heater (COP 0.9)\n\t\t// to top\n\t\t// up water heating if the heat pump is too great\n\t\tif (this.spaceHeatingControlled && this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tif (this.owner.hasStorageHeater)\n\t\t\t{\n\t\t\t\tthis.optimiseStorageChargeProfile();\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\"Optimised storage heater profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tthis.optimiseSetPointProfile();\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"Optimised set point profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.waterHeatingControlled && this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.optimiseWaterHeatProfileWithSpreading();\n\t\t}\n\n\t\tif (this.eVehicleControlled && this.owner.isHasElectricVehicle())\n\t\t{\n\t\t\tthis.optimiseEVProfile();\n\t\t}\n\n\t\t// At the end of the step, set the temperature profile for today's\n\t\t// (which will be yesterday's when it is used)\n\t\tthis.priorDayExternalTempProfile = this.owner.getContext().getAirTemperature(timeStep, this.ticksPerDay);\n\t}",
"void updateWarehouseDepot(String username, LightWarehouseDepot warehouseDepot);",
"private void updateLocation(Location l){\n\n //Check if we are due an update (the difference between now and the last update must be more than the frequency of updates)\n long time = System.currentTimeMillis();\n l.setTime(time); //Use the time from the device TODO Do we need this step?\n long timeSinceUpdate = time - lastUpdate;\n\n\n //If an update is required\n if(timeSinceUpdate >= frequency) {\n\n //Update last update time\n lastUpdate = time;\n\n NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo();\n //If connected to the internet then we can either initialize or upload our location\n if (netInfo != null && netInfo.isConnected()) {\n //If initialized upload the location\n if (initialized) {\n //Upload location the current location and tie up any loose ends\n uploadLocation(l);\n tieUpLooseEnds();\n }\n //If not initialized then initialize and add location to loose ends\n else {\n //Initialize\n init();\n //Add to loose ends\n looseEnds.add(l);\n }\n }\n //If not connected then add the location to our list of loose ends\n else {\n looseEnds.add(l);\n }\n }\n //If no update is due\n else{\n //No update - update time ago on the notification\n String updateTime = AbstractTrackerActivity.niceTime(timeSinceUpdate);\n notificationBuilder.setContentText(String.format(getString(R.string.notification_time_ago), updateTime));\n notificationManager.notify(AbstractTrackerActivity.NOTIFICATION_ID, notificationBuilder.build());\n }\n }",
"public ArrayList<poolLocation> getCouponList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> temp_CouponList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(coupon1ID)\n\t\t\t\t\t|| location.getTitle().equals(coupon2ID) || location\n\t\t\t\t\t.getTitle().equals(coupon3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == true)\t\t\t\t\t\t// only show coupons which are bought from the mall\n\t\t\t\ttemp_CouponList.add(location);\n\t\t}\n\n\t\treturn temp_CouponList;\n\t\t// return POOL_LIST;\n\t}",
"void update(Location location);",
"public void setLocation(){\n //Check if user come from notification\n if (getIntent().hasExtra(EXTRA_PARAM_LAT) && getIntent().hasExtra(EXTRA_PARAM_LON)){\n Log.d(TAG, \"Proviene del servicio, lat: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LAT) + \" - lon: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LON));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(getIntent().getExtras().getDouble(EXTRA_PARAM_LAT), getIntent().getExtras().getDouble(EXTRA_PARAM_LON)), 18));\n NotificationManager mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNM.cancel(1);\n } else{\n if (bestLocation!=null){\n Log.d(TAG, \"Posicion actual -> LAT: \"+ bestLocation.getLatitude() + \" LON: \" + bestLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(bestLocation.getLatitude(), bestLocation.getLongitude()), 16));\n } else{\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(41.651981, -4.728561), 16));\n }\n }\n }",
"public abstract void updateLocations();",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\tif (location != null)\n\t\t\t{\n\t\t\t\tdouble mLat = location.getLatitude();\n\t\t\t\tdouble mLng = location.getLongitude();\n\t\t\t\tLog.i(\"Geo Test: \", Double.toString(mLng) + Double.toString(mLat));\n\t\t\t\tParseGeoPoint point = new ParseGeoPoint(mLat, mLng);\n\t\t\t\tuser.put(\"lastKnownLocation\", point);\n\t\t\t\tuser.saveInBackground();\n\t\t\t\t\n\t lm.removeUpdates(this);\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void updateComfirmPeo(Integer comfirm_peo, String bc_id) {\n\t\t\n\t}",
"@Override\n\tpublic void updateIntoSupplierView(SupplierProduct supplierview) {\n\t String sql=\"UPDATE supplier_product SET product_product_id=?, quantity=?, cost=?, buy_date=? WHERE supplier_supplier_id=?\";\n\t getJdbcTemplate().update(sql, new Object[] {supplierview.getProductId(),supplierview.getQuantity(),supplierview.getCost(),supplierview.getBuyDate(),supplierview.getSupplierId()});\n\t}",
"@GET\n @Path(\"/points/{user}/{pool}/{increment}\")\n public Response incrementPool(\n @Context HttpServletRequest request \n ,@Context HttpServletResponse response\n ,@Context ServletContext servletContext\n ,@PathParam(\"user\") String user\n ,@PathParam(\"pool\") String pool\n ,@PathParam(\"increment\") String increment\n ){\n try{\n Database2 db=Database2.get();\n db.increment(pool, user, Integer.valueOf(increment), null).save();\n db.save();\n return Response.status(200).entity(\"{\\\"status\\\":\\\"DONE\\\"}\").build();\n }catch(Exception e){\n return Response.status(500).entity(\"{\\\"status\\\":\\\"ERROR\\\",\\\"message\\\":\\\"\"+e.getMessage()+\"\\\"}\").build(); \n }\n }",
"@Override\n\tpublic void notifyAfterMobsim(AfterMobsimEvent event) {\n\t\tOperatorData data = fleetListener.getData(OperatorConfig.DEFAULT_OPERATOR_ID);\n\n\t\tdouble vehicleDistance_km = data.emptyDistance_m + data.occupiedDistance_m;\n\t\tdouble passengerDistance_km = data.passengerDistance_m;\n\n\t\tdouble fleetCost_MU = 0.0;\n\t\tfleetCost_MU += vehicleDistance_km * parameters.distanceCost_MU_km;\n\t\tfleetCost_MU += numberOfVehicles * parameters.vehicleCost_MU;\n\n\t\t// Second, obtain price per passenger kilometer\n\t\tobservedPrice_MU_km = fleetCost_MU / passengerDistance_km;\n\t\tobservedPrice_MU_km *= parameters.priceFactor;\n\n\t\t// Third, interpolate\n\t\tif (Double.isFinite(observedPrice_MU_km)) {\n\t\t\tactivePrice_MU_km = activePrice_MU_km * (1.0 - parameters.alpha) + parameters.alpha * observedPrice_MU_km;\n\t\t}\n\t}",
"public void updateSupplierDetail(Supplier obj) {\n\t\t\r\n\t}",
"@Override\n\tpublic void updateCoupon(long id, Coupon coupon)\n\t\t\tthrows ClassNotFoundException, SQLException, IOException, ParseException {\n\t\tConnection connection = ConnectionPool.getInstance().getConnection();\n\n\t\tPreparedStatement statement = connection.prepareStatement(SQLQueryRequest.GET_COUPON_BY_ID);\n\t\tResultSet resultSet = statement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\tif (id == resultSet.getInt(1)) {\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TITLE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getTitle());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_START_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getStartDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_END_DATE_BY_ID);\n\t\t\t\tstatement.setDate(1, (Date) coupon.getEndDate());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_AMOUNT_BY_ID);\n\t\t\t\tstatement.setInt(1, coupon.getAmount());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_TYPE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getType().toString());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_MESSAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getMessage());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_PRICE_BY_ID);\n\t\t\t\tstatement.setDouble(1, coupon.getPrice());\n\t\t\t\tstatement.setLong(2, id);\n\t\t\t\tstatement.executeUpdate();\n\n\t\t\t\tstatement = connection.prepareStatement(SQLQueryRequest.SET_COUPON_IMAGE_BY_ID);\n\t\t\t\tstatement.setString(1, coupon.getImage());\n\t\t\t\tstatement.setLong(2, id);\n\n\t\t\t\tSystem.out.println(\"Coupon updated successfull\");\n\t\t\t}\n\n\t\t}\n\t\tConnectionPool.getInstance().returnConnection(connection);\n\t}",
"public void trackPickedUpEvent(CarrierShipmentPickupEndEvent event) {\n\t\tif (shipments.containsKey(event.getShipmentId())) {\n\t\t\tshipments.get(event.getShipmentId()).pickUpTime = event.getTime();\n\t\t\t//FixMe: Driver is no longer part of the events... kmt jul22\n//\t\t\tshipments.get(shipment.getId()).driverId = event.getDriverId();\n\t\t}\n\t}",
"@Override\n public boolean confirmHirePlacement(int hire_id,\n float end_location_latitude,\n float end_location_longitude,\n double cost,\n int driver_id,\n double length) {\n\n\n String sqlForUpdateCustomer = \"UPDATE hire set end_location_latitude = ?, end_location_longitude = ?, cost = ?, driver_id = ? ,length=?, hire_status=1 where hire_id = ?\";\n Object[] args = new Object[]{end_location_latitude, end_location_longitude, cost, driver_id, length, hire_id};\n\n boolean isHirePlacementConfirmed = (jdbcTemplate.update(sqlForUpdateCustomer, args) == 1);\n\n return isHirePlacementConfirmed;\n }",
"public void upgradeAction(World world, BlockPos posOfPedestal, ItemStack itemInPedestal, ItemStack coinInPedestal)\n {\n double speed = getOperationSpeedOverride(coinInPedestal);\n double capacityRate = getCapicityModifier(coinInPedestal);\n int getMaxEnergyValue = getEnergyBuffer(coinInPedestal);\n if(!hasMaxEnergySet(coinInPedestal) || readMaxEnergyFromNBT(coinInPedestal) != getMaxEnergyValue) {setMaxEnergy(coinInPedestal, getMaxEnergyValue);}\n\n //Generator when it has fuel, make energy every second based on capacity and speed\n //20k per 1 coal is base fuel value (2500 needed in mod to process 1 item)\n //1 coal takes 1600 ticks to process default??? furnace uses 2500 per 10 seconds by default\n //so 12.5 energy per tick (250/sec)\n double speedMultiplier = (20/speed);\n int baseFuel = (int) (20 * speedMultiplier);\n int fuelConsumed = (int) Math.round(baseFuel * capacityRate);\n if(removeFuel(world,posOfPedestal,fuelConsumed,true))\n {\n doEnergyProcess(world,coinInPedestal,posOfPedestal,baseFuel,capacityRate);\n }\n else {\n int fuelLeft = getFuelStored(coinInPedestal);\n doEnergyProcess(world,coinInPedestal,posOfPedestal,fuelLeft,capacityRate);\n }\n }",
"public void updatePlayerLocation() {requires new property on gamestate object\n //\n }",
"@Override\n public void onLocationChanged(Location location) {\n Log.i(LOG_TAG, \"Location Change\");\n Location target = new Location(\"target\");\n String closePoint;\n int closestIndex = -1;// Default to none\n float minDistance = 1000; // Default to high value\n\n // Focus camera on initial location\n if (mapReady == true && initialCameraSet == true) {\n LatLng initialLocation = new LatLng(location.getLatitude(), location.getLongitude());\n gMap.moveCamera(CameraUpdateFactory.newLatLng(initialLocation));\n initialCameraSet = false; // Initial location already displayed\n }\n // Check if spot is close\n for (int i = 0; i < LocationsClass.spotsCoordinates.length; ++i) {\n target.setLatitude(LocationsClass.spotsCoordinates[i].latitude);\n target.setLongitude(LocationsClass.spotsCoordinates[i].longitude);\n if (location.distanceTo(target) < minDistance) {\n closestIndex = i; //Save closes index\n minDistance = location.distanceTo(target); // update minDistance\n }\n }\n\n if (minDistance < 200 && minDistance > 20) {\n Toast.makeText(getActivity(), \"Location: \" + LocationsClass.spotNames[closestIndex] +\n \" is within 200 meters!\\n\" + \"Go check it out!\", Toast.LENGTH_LONG).show();\n// pointsOfInterests.get(closestIndex).showInfoWindow();\n// gMap.getUiSettings().setMapToolbarEnabled(true);\n popNotification = true; // Allow notification to trigger when user reaches destination\n } else if (minDistance < 20) {\n if (closestIndex != currentUserLocation) {\n int locationId = getResources().getIdentifier(\"loc_\"+closestIndex, \"drawable\", getActivity().getPackageName());\n showArrivalNotification(locationId, LocationsClass.spotNames[closestIndex]);\n currentUserLocation = closestIndex; // Update user location\n }\n }\n\n if (hotspotIndex != -1) {\n pointsOfInterests.get(hotspotIndex).showInfoWindow();\n gMap.getUiSettings().setMapToolbarEnabled(true);\n }\n }",
"@Override\n\tpublic void placeOrder(Map<String, Integer> orderDetails, Buyer buyer) {\n\t\tif (successor != null) {\n\t\t\tsuccessor.placeOrder(orderDetails, buyer);\n\t\t} else {\n\t\t\tSystem.out.println(\"Did not set successor of SupplierProxy\");\n\t\t}\n\t\t\n\t}",
"public void lPoolGoal(View view) {\n scoreForL_pool = scoreForL_pool + 1;\n displayForLpool(scoreForL_pool);\n }",
"static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}",
"public void onLocationChanged(Location location) {\n \t\t\t\tcurrentLocation = String.valueOf(location.getLatitude()) + \"+\" + String.valueOf(location.getLongitude());\n \t\t\t}",
"@Override\n public void onConnected(Bundle connectionHint)\n {\n if (locationHasToBeUpdated)\n {\n createLocationRequest();\n locationHasToBeUpdated = false;\n }\n }",
"public void checkout() {\n\t}",
"private void updateLocation(){\r\n\t\t//UPDATE location SET longitude = double, latitude = double WHERE userName = userName\r\n\t\tString sqlCmd = \"UPDATE location SET longitude = \" + commandList.get(2) + \", latitude = \"\r\n\t\t\t\t+ commandList.get(3) + \" WHERE userName = '\" + commandList.get(1) + \"';\";\r\n\t\tSystem.out.println(sqlCmd);\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tint changed = stmt.executeUpdate(sqlCmd);\r\n\t\t\tif(changed == 0){//if no updates were made (changed = 0) \r\n\t\t\t\terror = true;//error\r\n\t\t\t\tout.println(\"No user found\");//error message\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}",
"public void buyCargoUpgrades()\n {\n if(play_state.getMoney() >= cargo_upgrade_cost) {\n play_state.setMoney(play_state.getMoney() - cargo_upgrade_cost);\n cargo_upgrade_cost += 100;\n play_state.getDriller().addCapacity(5);\n }\n }",
"@Override\n public void onSuccess(Location location) {\n\n if (location != null) {\n // Logic to handle location object\n\n Geocoder gcd = new Geocoder(MainActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n System.out.println(addresses.get(0).getLocality());\n sp.set(SPConstants.location,addresses.get(0).getLocality()+\", \"+addresses.get(0).getCountryName());\n }\n else {\n sp.set(SPConstants.location,\"\");\n\n // do your stuff\n }\n\n }\n }",
"public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}",
"public void givePlaceInList() {\r\n\t\tmyPlaceInList = allyTracker.getPlaceInList();\r\n\t}",
"void updatePurchaseOrderLinkedBoqStatus(long pohId);",
"private void move3(Habitat habitat,Pool pool)\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\t\tboolean moved = false;\r\n\t\tPool clonedPool=null;\r\n\t\tArrayList<Integer> tabuSivs = new ArrayList<Integer>();\r\n\t\ttabuSivs.add(-1);\r\n\t\t\r\n\t\t//Sort the users of the pool compared to gravity center\r\n\t\t//Collections.sort(pool.getListOfUsers(), User.ComparatorDistG);\r\n\t\t\r\n\t\tfor(int i =0;i<habitat.getSivs().size() - 1 && !moved;i++)\r\n\t\t{\r\n\t\t\tint k = (new Random()).nextInt(habitat.getSivs().size());\r\n\t\t\tint loops = 0;\r\n\t\t\twhile((habitat.getSivs().get(k) == pool || habitat.getSivs().get(k).getRestCarCap()==0 || tabuSivs.contains(k)) && loops<10 )\r\n\t\t\t{\r\n\t\t\t\tk = (new Random()).nextInt(habitat.getSivs().size());\r\n\t\t\t\tloops++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!tabuSivs.contains(k))\r\n\t\t\t{\r\n\t\t\t\ttabuSivs.add(k);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//if(habitat.getSivs().get(i) != pool && habitat.getSivs().get(i).getListOfUsers().size()==1) \r\n\t\t\tif(habitat.getSivs().get(k) != pool && habitat.getSivs().get(k).getRestCarCap()>0)\r\n\t\t\t{\r\n\t\t\t\tclonedPool = (Pool) pool.clone();\r\n\t\t\t\t//for(int j=0;j<pool.getListOfUsers().size() && !moved;j++)\r\n\t\t\t\tfor(int j=pool.getListOfUsers().size() - 1; j>=0 && !moved;j--)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(habitat.getSivs().get(k).areAllUsersAuthorized(clonedPool.getListOfUsers().get(j).getNumUser()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\thabitat.getSivs().get(k).addUser(clonedPool.getListOfUsers().get(j));\r\n\t\t\t\t\t\tif(habitat.getSivs().get(k).buildRoutes())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmoved = true;\r\n\t\t\t\t\t\t\tclonedPool.getListOfUsers().remove(j);\r\n\t\t\t\t\t\t\tclonedPool.buildRoutes();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\thabitat.getSivs().get(k).removeUser(clonedPool.getListOfUsers().get(j));\r\n\t\t\t\t\t\t\thabitat.getSivs().get(k).buildRoutes();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(moved)\r\n\t\t{\r\n\t\t\thabitat.removePool(pool);\r\n\t\t\thabitat.addPool(clonedPool);\r\n\t\t}\r\n\t}",
"void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}",
"public void updateTransPool(JsonObject block){\n JsonArray transactions = block.get(\"Transactions\").getAsJsonArray();\n \tint N = transactions.size();\n \tfor(int i=0; i<N; i++) {\n \t\tJsonObject Tx = transactions.get(i).getAsJsonObject();\n \t\tif(TxPool_new.contains(Tx))\n \t\t\tTxPool_new.remove(Tx);\n \t\tTxPool_used.add(Tx);\n }\n }",
"private void collectCoins(Location location){\n LatLng latLng = new LatLng(location.getLatitude(),\n location.getLongitude());\n for(Coin coin : this.todayCoins){\n if(coin.getLatLng().distanceTo(latLng) <= 25){\n if(!todayCollectedID.contains(coin.getId())){\n System.out.println(\"CoinID\" + todayCollectedID.size());\n todayCollectedID.add(coin.getId());\n CollectedCoins.add(coin);\n\n long thistime = System.currentTimeMillis();\n int coinCollected = todayCollectedID.size();\n if(thistime - lastUpdateTime >= 60000 || (coinCollected - lastCoinCollected) >= 5){\n lastUpdateTime = thistime;\n lastCoinCollected = coinCollected;\n saveData();\n }\n\n }\n }\n }\n\n // Coin collected.\n\n }",
"@Override\n public void onLocationChanged(Location location) {\n Log.d(Constants.UPDATING_LOCATION_TAG, Constants.UPDATING_LOCATION + location.toString());\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getDateTimeInstance().format(new Date());\n\n SendBroadcastLocation();\n\n // Update Mongo database for each parcel in the database.\n MongoUpdateParcelToDeliverLocationAsyncTask update = new MongoUpdateParcelToDeliverLocationAsyncTask(mCurrentLocation, mLastUpdateTime);\n update.execute();\n }",
"@Override\r\n\tpublic void placeSettlement(VertexLocation vertLoc) {\n\t\t\r\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n OnLocationChanged(location.getLatitude(), location.getLongitude());\n }",
"public void geolocTransfered() {\n\t\tthis.geolocTransfered = true;\n\t}",
"public void onLocationChanged(Location location) {\n\t\t\t\tupdatenewlocation(location);\n\t\t\t\t\n\t\t\t}",
"public void purchase(Unit unit) {\n purchasePoints = purchasePoints - unit.cost();\n }",
"public JSONObject locationTest(JSONObject message, Session session, Connection conn) {\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tdouble amount = message.getDouble(\"amountToAdd\");\n\t\t\tint budgetID = message.getInt(\"budgetID\");\n\t\t\tdouble latitude = message.getDouble(\"markerLatitude\");\n\t\t\tdouble longitude = message.getDouble(\"markerLongitude\");\n\t\t\tst.execute(Constants.SQL_INSERT_TRANSACTION + \"(\" + budgetID + \", \" + amount + \", '',\" + latitude + \", \" + longitude + \");\");\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM Budgets WHERE budgetID = \" + budgetID + \";\");\n\t\t\tint bigBudgetID=0;\n\t\t\tdouble budgetSpent=0;\n\t\t\tif(rs.next()) {\n\t\t\t\tbigBudgetID = rs.getInt(\"bigBudgetID\");\n\t\t\t\tbudgetSpent = rs.getDouble(\"TotalAmountSpent\") + amount;\n\t\t\t\tSystem.out.println(bigBudgetID);\n\t\t\t}\n\t\t\tResultSet rs1 = st.executeQuery(\"SELECT * FROM BigBudgets WHERE bigBudgetID = \" + bigBudgetID + \";\");\n\t\t\tdouble bigBudgetSpent = 0; double bigbudgetAmount = 0;\n\t\t\tString bigbudgetName = \"\";\n\t\t\tif (rs1.next()) {\n\t\t\t\tbigBudgetSpent = rs1.getDouble(\"TotalAmountSpent\")+amount;\n\t\t\t\tbigbudgetAmount = rs1.getDouble(\"BigBudgetAmount\");\n\t\t\t\tbigbudgetName = rs1.getString(\"BigBudgetName\");\n\t\t\t}\n\t\t\tst.executeUpdate(\"UPDATE Budgets SET TotalAmountSpent = \" + budgetSpent + \" WHERE budgetID = \" + budgetID + \";\");\n\t\t\tSystem.out.println(\"update\");\n\t\t\t\n\t\t\tst.executeUpdate(\"UPDATE BigBudgets SET TotalAmountSpent = \" + bigBudgetSpent + \" WHERE bigBudgetID = \" + bigBudgetID + \";\");\n\t\t\tif (bigBudgetSpent > 0.8*(bigbudgetAmount)) {\n\t\t\t\tresponse.put(\"notification\", \"yes\");\n\t\t\t\tresponse.put(\"notify\", \"You now have less than 20% left in budget\" + bigbudgetName);\n\t\t\t}\n\t\t\tResultSet rs2 = st.executeQuery(\"SELECT * FROM Transactions;\");\n\t\t\tif (rs2.next()) {\n\t\t\t\tif (rs2.getDouble(\"Longitude\") == message.getDouble(\"markerLongitude\") && rs2.getDouble(\"Latitude\") == message.getDouble(\"markerLatitude\"))\n\t\t\t\t\tresponse.put(\"message\", \"locationSuccessTest\");\n\t\t\t\telse {\n\t\t\t\t\tresponse.put(\"message\", \"locationFailTest\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tresponse.put(\"message\", \"locationFailTest\");\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException | JSONException e) {\n\t\t\ttry {\n\t\t\t\tresponse.put(\"message\", \"locationFailTest\");\n\t\t\t} catch (JSONException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\t\tdeleteAll(conn);\n\t\treturn response;\n\t}",
"private void payByPoint(final View v) {\n if (!SanyiSDK.getCurrentStaffPermissionById(ConstantsUtil.PERMISSION_CASHIER)) {\n Toast.makeText(activity, \"没有权限\", Toast.LENGTH_SHORT).show();\n\n return;\n }\n// final CashierPayment paymentMode = new CashierPayment();\n// paymentMode.paymentType = ConstantsUtil.PAYMENT_POINT;\n// paymentMode.paymentName = getString(R.string.payment_point);\n if (SanyiSDK.rest.config.isMemberUsePassword) {\n MemberPwdPopWindow memberPwdPopWindow = new MemberPwdPopWindow(v, activity, new MemberPwdPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(final String pwd) {\n\n // TODO Auto-generated method stub\n// CashierPayment payment = new CashierPayment();\n//\n// payment.paymentName = \"积分抵现\";\n// payment.paymentType = ConstantsUtil.PAYMENT_POINT;\n// payment.id = mPaymentModeAdapter.data.get(position).id;\n\n checkPresenterImpl.addPointPayment(cashierResult.pointInfo.value, pwd);\n\n }\n });\n memberPwdPopWindow.show();\n return;\n } else {\n checkPresenterImpl.addPointPayment(cashierResult.pointInfo.value, null);\n// CashierPayment payment = new CashierPayment();\n//\n// payment.paymentName = \"积分抵现\";\n// payment.paymentType = ConstantsUtil.PAYMENT_POINT;\n// checkPresenterImpl.addPay(cashierResult.pointInfo.value, 0.0, payment);\n }\n }",
"@Override\n public boolean setOrderAddresses(User user, String address, ArrayList<String> shoppickup) {\n if(!setShippingAddress(user, address)){\n return false;\n }\n // aggiorno indirizzo ritiro per tutti e soli quelli nella lista shoppickup\n for (String rit: shoppickup) {\n String[] prod_shop = rit.split(\"_\");\n\n if (prod_shop.length != 2 || !setShopPickup(user, prod_shop[0], prod_shop[1])) {\n // errore inserimento nel database o stringa passata errata\n return false;\n }\n }\n\n\n return true;\n }",
"void updateCustomerDDPay(CustomerDDPay cddp);",
"@Override\n public void onClick(View v) {\n startLocationUpdates();\n startIntentService();\n //updateUI();\n mUpdateTimeText.setText(mLastUpdateTime);\n mLocationData.addLocation(new LocationRecord(mCurrentLocation.getLatitude(),\n mCurrentLocation.getLongitude(), mLastUpdateTime));\n Toast.makeText(MapsActivity.this, \"You have checked in!\", Toast.LENGTH_LONG).show();\n //mLocationData.addLocation(mCurrentLocation, mAddressOutput, mLastUpdateTime);\n }",
"@Override\n\tpublic void addUserCoupons(BeanUser user, BeanCoupon coupon) throws BaseException {\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from user_coupon where coupon_id=?\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, coupon.getCoupon_id());\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"该优惠券您已领取\",\"提示\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\tthrow new BaseException(\"该优惠券您已领取\");\n\t\t\t}\n\t\t\t//System.out.print(\"1.1\");\n\t\t\tsql=\"select * from commodity_order where user_id=? and coupon_id=?\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getUser_id());\n\t\t\tpst.setString(2, coupon.getCoupon_id());\n\t\t\trs=pst.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"该优惠券您已领取\",\"提示\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\tthrow new BaseException(\"该优惠券您已领取\");\n\t\t\t};\n\t\t\tsql=\"insert into user_coupon(user_id,coupon_id) value(?,?)\";\n\t\t\tpst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getUser_id());\n\t\t\tpst.setString(2, coupon.getCoupon_id());\n\t\t\tpst.execute();\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\n\t}",
"private void checkLocationandAddToMap() {\n if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //Requesting the Location permission\n ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n return;\n }\n\n locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = locationManager.getBestProvider(criteria, true);\n\n\n //Fetching the last known location using the Fus\n Location location = locationManager.getLastKnownLocation(bestProvider);\n\n\n if (location != null) {\n\n onLocationChanged(location);\n\n\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, (LocationListener) getActivity());\n }\n\n\n }",
"@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }",
"public void offerRandomCoupon(Customer c)\r\n {\r\n Random random = new Random();\r\n int couponPercent = random.nextInt(15) + 10;\r\n c.setCoupon(couponPercent);\r\n c.setPersonalHistory(\"Offered Coupon worth \" + couponPercent + \"%\");\r\n }",
"@Override\r\n public void onLocationChanged(Location location) {\n\r\n sendLocationUpdates(location);\r\n }",
"@Override\n public void onLocationChanged(Location location) {\n mMyLocationSubject.onNext(location);\n mPreferences.edit()\n .putString(PREFERENCES_KEY_POS_LAT, Double.toString(location.getLatitude()))\n .putString(PREFERENCES_KEY_POS_LONG, Double.toString(location.getLongitude()))\n .apply();\n }",
"public void setLocation(entity.PolicyLocation value);",
"public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}",
"public void setMakingShop(Player owner, Player establisher, Integer x, Integer y, Integer z, World world){\n\t\testablisher.sendMessage(ChatColor.GREEN + getConfig().getString(\"ask-for-item\"));\n\t\tUUID ownerID = owner.getUniqueId();\n\t\tUUID establisherID = establisher.getUniqueId();\n\t\tString blockLocation = x + \",\" + y + \",\" + z + \",\" + world.getName()+\",\"+ownerID.toString()+\",\"+establisherID.toString();\n\t\tdebugOut(\"Marking \" + establisher.getName()+\" as creating a shop at \"+blockLocation);\n\t\tPlayerMakingShop.put(establisher.getName(), blockLocation);\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }"
] | [
"0.66961163",
"0.59528244",
"0.58676344",
"0.5776153",
"0.56923306",
"0.55938077",
"0.54473406",
"0.53818077",
"0.5347444",
"0.5341633",
"0.52814615",
"0.5253241",
"0.5238237",
"0.52250594",
"0.517059",
"0.51686764",
"0.5162172",
"0.5158023",
"0.5137013",
"0.5135811",
"0.5129218",
"0.5129086",
"0.511664",
"0.5112363",
"0.50987244",
"0.504773",
"0.4991265",
"0.49742776",
"0.49739954",
"0.49723473",
"0.4948891",
"0.49445406",
"0.49436346",
"0.49325457",
"0.49141616",
"0.48935887",
"0.48854962",
"0.48771518",
"0.4866404",
"0.4857146",
"0.4852935",
"0.48502618",
"0.48490536",
"0.48490202",
"0.48414564",
"0.4830437",
"0.48293507",
"0.48257077",
"0.48243752",
"0.48239195",
"0.48218697",
"0.48088485",
"0.48084858",
"0.48083034",
"0.48050165",
"0.48003387",
"0.47992072",
"0.4782446",
"0.47752765",
"0.4774792",
"0.47734213",
"0.4761543",
"0.47545737",
"0.47462973",
"0.47341982",
"0.47322547",
"0.4730897",
"0.47245413",
"0.47204247",
"0.47193587",
"0.47068614",
"0.47060156",
"0.4705242",
"0.4698782",
"0.4697525",
"0.46953857",
"0.4694931",
"0.46858433",
"0.46827862",
"0.46822748",
"0.46724477",
"0.46721107",
"0.46645337",
"0.46543467",
"0.46510082",
"0.4646619",
"0.464277",
"0.46384695",
"0.4636632",
"0.46316725",
"0.4629703",
"0.462929",
"0.46230265",
"0.4622466",
"0.46211788",
"0.46125513",
"0.4612468",
"0.46107998",
"0.46101788",
"0.46047196",
"0.46014372"
] | 0.0 | -1 |
check isVisited for specific game location | public boolean getGameLocationVisitedOrNot(String id){
Cursor cursor = getDatabase().getGameLocationData(GamelocationTableName, id);
while (cursor.moveToNext()) {
// loading each element from database
String ID = cursor.getString(ID_GAME_LCOATION_COLUMN);
String isVisitedString = cursor.getString(GAME_IS_VISITED_COLUMN);
return isUsed(isVisitedString); // return checking isVisited
} // travel to database result
return false; // default false for isVisited
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasLocation();",
"boolean hasLocation();",
"boolean isVisited();",
"boolean isVisited();",
"boolean isGoodLocation(World world, int x, int y, int z);",
"public static boolean isVisited(UserLocation c) {\n if (VisitList.contains(c)) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isVisited () {\n if (this.equals(SquareType.VISITED))\n return true;\n else\n return false;\n }",
"boolean isValidHome(IGeneticMob geneticMob, Vec3 coords);",
"boolean hasLocationView();",
"private boolean checkSiteVisited(String url)\r\n\t{\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif (webVisited[0][i].equals(url))\t\t\t//this url has been visited by user before\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"boolean wouldBeValidHome(IGeneticMob geneticMob, Vec3 coords, Block block, int metadata, TileEntity te);",
"boolean hasUserLocationView();",
"private boolean wasVisited(int city){\n\t\treturn this.getGraph().wasVisited(city);\n\t}",
"@Test\n \tpublic void testTargetLocationLastVisited(){\n \t\tComputerPlayer player = new ComputerPlayer();\n \t\tplayer.setLastVistedRoom('B');\n \t\tint enteredRoom = 0;\n \t\tint loc_7_5Tot = 0;\n \t\tboard.calcTargets(6, 7, 3);\n \t\t//pick a location with at least one room as a target that already been visited\n \t\tfor(int i = 0; i < 100; i++) {\n \t\t\tBoardCell selected = player.pickLocation(board.getTargets());\n \t\t\tif (selected == board.getRoomCellAt(4, 6))\n \t\t\t\tenteredRoom++;\n \t\t\telse if (selected == board.getRoomCellAt(7, 5));\n \t\t}\n \t\t//ensure room is never taken\n \t\tAssert.assertEquals(enteredRoom, 0);\n \t\tAssert.assertTrue(loc_7_5Tot > 0);\n \t}",
"private boolean knowMyLocation(LatLng myloc) {\n\t\tboolean isindoor = true;\n\t\tif((myloc.latitude>42.395||myloc.latitude<42.393) && (myloc.longitude>-72.528||myloc.longitude<-72.529)){\n\t\t\tisindoor = false;\n\t\t}\n\t\treturn isindoor;\n\t}",
"public void goToLocation (Locator checkpoint) { //Patrolling Guard and Stationary Guard\r\n\t\tVector2i start = new Vector2i((int)(creature.getXlocation()/Tile.TILEWIDTH), (int)(creature.getYlocation()/Tile.TILEHEIGHT));\r\n\t\tint destx = (int)(checkpoint.getX()/Tile.TILEWIDTH);\r\n\t\tint desty = (int)(checkpoint.getY()/Tile.TILEHEIGHT);\r\n\t\tif (!checkCollision(destx, desty)) {\r\n\t\tVector2i destination = new Vector2i(destx, desty);\r\n\t\tpath = pf.findPath(start, destination);\r\n\t\tfollowPath(path);\r\n\t\t}\r\n\t\tarrive();\r\n\t}",
"boolean hasAuvLoc();",
"boolean canPlaceCity(VertexLocation vertLoc);",
"public boolean checkReached(float xTile, float yTile)\r\n/* 134: */ {\r\n/* 135:149 */ if ((this.mission) && (tileReachObjectives(xTile, yTile)))\r\n/* 136: */ {\r\n/* 137:152 */ this.reach[((int)xTile)][((int)yTile)] = 0;\r\n/* 138:153 */ this.reachablePlaces -= 1;\r\n/* 139:154 */ if (this.reachablePlaces == 0) {\r\n/* 140:156 */ return true;\r\n/* 141: */ }\r\n/* 142: */ }\r\n/* 143:160 */ return false;\r\n/* 144: */ }",
"@Override\n public boolean onPlayAtLocation(GameState gameState, Location location) {\n if(gameState.tileAtLocation(location) && !gameState.wallAtLocation(location)) {\n gameState.addWall(location);\n return true;\n }\n else return false;\n }",
"public boolean isSafe(Location location) {\r\n\r\n\t\tLocation northNeighbor = map.getLocation(location, Direction.NORTH);\r\n\t\tLocation southNeighbor = map.getLocation(location, Direction.SOUTH);\r\n\t\tLocation eastNeighbor = map.getLocation(location, Direction.EAST);\r\n\t\tLocation westNeighbor = map.getLocation(location, Direction.WEST);\r\n\r\n\t\tArrayList<Location> neighbors = new ArrayList<Location>(4);\r\n\t\tneighbors.add(northNeighbor);\r\n\t\tneighbors.add(southNeighbor);\r\n\t\tneighbors.add(eastNeighbor);\r\n\t\tneighbors.add(westNeighbor);\r\n\r\n\t\tif (northNeighbor.getSite().owner == myID && southNeighbor.getSite().owner == myID &&\r\n\t\t\t\teastNeighbor.getSite().owner == myID && westNeighbor.getSite().owner == myID){\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\treturn false;\r\n\r\n\t}",
"public boolean hasBeenVisited() {\n\t\treturn visited; // Replace with your code\n\t}",
"private void checkLocation(String mapName, Set<Point> seenLocations, List<Point> wildLocations) {\n Assert.assertFalse(mapName, wildLocations.isEmpty());\n for (Point location : wildLocations) {\n Assert.assertFalse(seenLocations.contains(location));\n seenLocations.add(location);\n }\n }",
"boolean isHome(IGeneticMob geneticMob);",
"void checkMyLocationVisibility() {\n if (settings.getReturnToMyLocation() || presenter.isTracking())\n showMyLocation();\n }",
"public boolean isGoal(Coordinate c) {\n\t\tRecordTile recordTile = ExploreMap.getInstance().getExploredMap().get(c);\n\t\tif (!recordTile.getExplored()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\t\t\n\t}",
"boolean canPlaceRobber(HexLocation hexLoc);",
"@Override\r\n\tpublic boolean isVisited() {\n\t\treturn false;\r\n\t}",
"public boolean isAtLocation(Location loc) {\n return loc.equals(loc);\n }",
"public boolean isVisited() {\n return isVisited;\n }",
"@Test\n public void moreThanOneCheckerOnToLocation() {\n\n assertTrue(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.R1, Location.R3));\n game.nextTurn();\n // to der gerne skulle vaere lovlige og stemme med terningerne\n assertTrue(game.move(Location.R6, Location.R5));\n assertTrue(game.move(Location.R8, Location.R6));\n game.nextTurn();\n assertTrue(game.move(Location.R2, Location.R5));\n assertTrue(game.move(Location.R3, Location.R7));\n game.nextTurn();\n // der staar nu to sorte paa R4\n assertFalse(game.move(Location.R6, Location.R3));\n }",
"boolean canRobPlayer(HexLocation location, int victimIndex);",
"public boolean hasLocation()\n {\n return targetLocation != null;\n }",
"public boolean checkSennott(Integer old_location)\n {\n if(old_location == 3)\n {\n setNum_sennott_visited(getNum_sennott_visited() + 1);\n\n return true;\n }\n\n return false;\n }",
"boolean land();",
"private boolean compareLocation(Location location){\n return location.getBlockX()==this.location.getBlockX() && location.getBlockY()==this.location.getBlockY() && location.getBlockZ() == this.location.getBlockZ();\n }",
"public boolean isVisited(){\n return visited;\n }",
"@Override\n public void onLocationChanged(Location location) {\n for (Map.Entry<Marker, Integer> e : gameMarkers.entrySet()) {\n double distance = distFrom(\n location.getLatitude(),\n location.getLongitude(),\n e.getKey().getPosition().latitude,\n e.getKey().getPosition().longitude);\n\n if (distance < 25) {\n button.setVisibility(View.VISIBLE);\n standingOnGameId = e.getValue();\n break;\n } else {\n button.setVisibility(View.INVISIBLE);\n }\n }\n }",
"public void updateGameLocationWithVisitOrNot(String ID, boolean isVisited) {\n\t\thelper.updateGameLocationTable(GamelocationTableName, ID,\n\t\t\t\tconvertToString(isVisited));\n\t}",
"public void land() {\n Game currentGame = this.getGame();\n this.setHasBeenVisited(true);\n currentGame.setMode( Game.Mode.GAME_WON);\n\n }",
"public MapLocation senseLocationOf(GameObject o) throws GameActionException;",
"public abstract boolean canMoveTo(Case Location);",
"public boolean WasVisited() { return _visited; }",
"private boolean placeFlag(Location m) {\r\n\r\n // if the game is finished then nothing to do\r\n if (gameState > STARTED) {\r\n return false;\r\n } \r\n \r\n // if the location is already revealed then nothing more to do\r\n if (query(m) != GameStateModel.HIDDEN && query(m) != GameStateModel.FLAG) {\r\n return false;\r\n }\r\n \r\n // otherwise toggle the flag\r\n flag[m.x][m.y] = !flag[m.x][m.y];\r\n \r\n if (flag[m.x][m.y]) {\r\n \r\n //if (board[m.x][m.y] != GameState.MINE) {\r\n // System.out.println(\"DEBUG (\" + m.x + \",\" + m.y + \") is not a mine!\");\r\n //}\r\n flagsPlaced++;\r\n } else {\r\n flagsPlaced--;\r\n }\r\n\r\n // call this handle to allow extra logic to be added by the extending class\r\n placeFlagHandle(m);\r\n \r\n return true;\r\n \r\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 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 }",
"@Override\n public void onPlay(GameState gameState) {\n gameState.promptActivityForLocation(this);\n\n }",
"public static boolean testLocation(Location location) {\n if (!enabled())\n return true;\n\n return WorldGuardFlagHook.testLocation(location);\n }",
"public static boolean locationOnScreen(int id) {\n\t\tfor(SceneObject loc1 : SceneEntities.getLoaded())\n\t\t\tif(loc1.getId()==id)\n\t\t\t\treturn SceneEntities.getNearest(id).isOnScreen();\n\t\treturn false;\n\t}",
"private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean checkCrash (Location next)\n {\n if (next == null) {\n return true;\n }\n\n Location last = playerLocations.get(playerLocations.size()-1);\n\n LocationType type = next.getType();\n //println(getLocation(next).getType()+\" : \"+next);\n if (type == LocationType.POWERUP) {\n PowerUp p = getPowerUp(next);\n\n if (p != null) { // Basically a workaround for the NPE\n // if (ENABLE_SOUND) {\n // sfx.gainedPowerUp();\n // }\n addSpeed(1);\n speedTimer += (int) frameRate * 2;\n removePowerUp(p);\n }\n\n return false;\n }\n\n if ((type == LocationType.PLAYER || type == LocationType.WALL) ||\n (next.getY() != last.getY() && (direction == LEFTKEY || direction == RIGHTKEY)) ||\n (next.getX() != last.getX() && (direction == UPKEY || direction == DOWNKEY))) { // This is to prevent bike from wrapping around edge of grid, because grid is a 1d array\n //sfx.lostALife(); //Commented out because you hear a shrill sound at the end for some reason\n return true;\n }\n\n return false;\n }",
"@Override\n protected void checkLocation() {\n // nothing\n }",
"private boolean checkIfGoodSquare(MapLocation location) {\n return (location.x % 2 == location.y % 2) && !location.isAdjacentTo(Cache.myECLocation);\n }",
"public abstract boolean locationExists(Location location);",
"public static boolean hasWinningMove(int[][] gamePlay){\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<4;j++){\n\t\t\t\tif(gamePlay[i][j]==1){\n\t\t\t\t\tfor(int k=1;k<9;k++){\n\t\t\t\t\t\tint[] root={i,j};\n\t\t\t\t\t\tint[] root1={i,j};\n\t\t\t\t\t\tint[] source=root;\n\t\t\t\t\t\tsource=calculatePosition(root,k);\n\t\t\t\t\t\t//System.out.println(\"Looking in direction \"+k+\" For root\"+i+\",\"+j);\n\t\t\t\t\t\tif(isValidLocation(source)){ \n\t\t\t\t\t\t\tif(gamePlay[source[0]][source[1]]==1){\n\t\t\t\t\t\t\t\tint[] newSource=calculatePosition(source,k);\n\t//System.out.println(\"Two contigous isValid:\"+isValidLocation(newSource)+\"newSource(\"+newSource[0]+\",\"+newSource[1]+\")\"+\" gamePlay:\"+(isValidLocation(newSource)?gamePlay[newSource[0]][newSource[1]]:-1));\n\t\t\t\t\t\t\t\tif(isValidLocation(newSource)){ \n\t\t\t\t\t\t\t\t\tif(gamePlay[newSource[0]][newSource[1]]==0){\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Looking in opposite direction\");\n\t\t\t\t\t\t\t\t\t//Lookup in opposite direction\n\t\t\t\t\t\t\t\t\tnewSource=calculatePosition(root1,9-k);\n\t\t\t\t\t\t\t\t\tif(isValidLocation(newSource) && gamePlay[newSource[0]][newSource[1]]==1){\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Valid Location:\"+newSource[0]+\" \"+newSource[1]+\" gamePlay\"+gamePlay[newSource[0]][newSource[1]]);\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t}else if(gamePlay[source[0]][source[1]]==0){\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Looking for alternate\");\n\t\t\t\t\t\t\t\t\tsource=calculatePosition(source,k);\n\t\t\t\t\t\t\t\t\tif(isValidLocation(source) && gamePlay[source[0]][source[1]]==1){\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//System.out.println(\"Invalid direction or no move here isValid:\"+isValidLocation(source)+\"Source(\"+source[0]+\",\"+source[1]+\")\"+\" gamePlay:\"+(isValidLocation(source)?gamePlay[source[0]][source[1]]:-1));\n\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}\n\t\t}\n\t\treturn false;\n\t}",
"public void testGetGoalLocation() {\n test = new Location(9, 9);\n assertEquals(test, maze1.getGoalLocation());\n }",
"private boolean quickVerify(Location loc)\n {\n //quickly check if 2 blocks above this is clear\n Block oneAbove = loc.getBlock();\n Block twoAbove = oneAbove.getRelative(BlockFace.UP, 1);\n return oneAbove.getType().equals(Material.AIR) && twoAbove.getType().equals(Material.AIR);\n }",
"SiteLocation getLocatedAt();",
"private static boolean compareGameDestination(RSTile tile) {\n RSTile game_destination = Game.getDestination();\n if (tile == null || game_destination == null) {\n return false;\n }\n return tile.distanceTo(game_destination) < 1.5;\n }",
"public boolean inRegion(Location loc)\n {\n if (!loc.getWorld().getName().equals(world.getName()) || !setup)\n return false;\n \n int x = loc.getBlockX();\n int y = loc.getBlockY();\n int z = loc.getBlockZ();\n \n // Check the lobby first.\n if (lobbySetup)\n {\n if ((x >= l1.getBlockX() && x <= l2.getBlockX()) && \n (z >= l1.getBlockZ() && z <= l2.getBlockZ()) && \n (y >= l1.getBlockY() && y <= l2.getBlockY()))\n return true;\n }\n \n // Returns false if the location is outside of the region.\n return ((x >= p1.getBlockX() && x <= p2.getBlockX()) && \n (z >= p1.getBlockZ() && z <= p2.getBlockZ()) && \n (y >= p1.getBlockY() && y <= p2.getBlockY()));\n }",
"public boolean canMove(Location loc){\n if(loc.getX() >= theWorld.getX() || loc.getX() < 0){\n System.out.println(\"cant move1\");\n return false;\n }else if(loc.getY() >= theWorld.getY() || loc.getY() < 0){\n System.out.println(\"cant move2\");\n return false;\n }else{\n System.out.println(\"can move\");\n return true;\n }\n }",
"private void locate() {\n possibleLocations[0][0] = false;\n possibleLocations[0][1] = false;\n possibleLocations[1][0] = false;\n do {\n location.randomGenerate();\n } while (!possibleLocations[location.y][location.x]);\n }",
"private boolean findNumSafeLandHelper(int[][] array, int[][] visited, int row, int col) {\n\t\tif (array[row][col] == 0 || visited[row][col] == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t// if the currnet square is at the border and its not visited and its\n\t\t// not sea then it means this is a safe land\n\t\tif (row == 0 || (row == array.length - 1) || col == 0 || (col == array.length - 1)) {\n\t\t\treturn true;\n\t\t}\n\t\t// backtrack to all four directions and find is there any safe land path\n\t\t// present\n\t\tboolean isPathPresent = false;\n\t\tvisited[row][col] = 1;\n\t\t// check all four direction from the currnet square\n\t\tisPathPresent = (row > 0 ? findNumSafeLandHelper(array, visited, row - 1, col) : false)\n\t\t\t\t|| (row < (array.length - 1) ? findNumSafeLandHelper(array, visited, row + 1, col) : false)\n\t\t\t\t|| (col > 0 ? findNumSafeLandHelper(array, visited, row, col - 1) : false)\n\t\t\t\t|| (col < (array.length - 1) ? findNumSafeLandHelper(array, visited, row, col + 1) : false);\n\t\tvisited[row][col] = 0;\n\t\treturn isPathPresent;\n\t}",
"public void chooseLocation(View v) {\n InternetConnectionChecker checker = new InternetConnectionChecker();\n Context context = getApplicationContext();\n final boolean isOnline = checker.isOnline(context);\n\n if (isOnline) {\n if (currentLocationCheckbox.isChecked()) {\n Toast.makeText(getApplicationContext(), \"Sorry, You have already chosen CURRENT LOCATION.\", Toast.LENGTH_LONG).show();\n } else {\n Intent child = new Intent(getApplicationContext(), ChooseLocationOnMapActivity.class);\n startActivityForResult(child, REQ_CODE_CHILD);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Map is not available when this device is offline.\", Toast.LENGTH_LONG).show();\n }\n }",
"boolean hasLandingPageView();",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"boolean hasPingerLoc();",
"@Override\n public boolean locationIsLeg(int loc) {\n return (loc == LOC_LLEG) || (loc == LOC_RLEG);\n }",
"public void randomHit() throws LocationHitException{\r\n\t\t// Random ran = new Random();\r\n\t\tint x = randomX();\r\n\t\tint y = randomY();\r\n\r\n\t\tboolean newHit = false;\r\n\t\twhile (!newHit) {\r\n\t\t\tif (Player.userGrid[x][y] == 2) {\r\n\t\t\t\tx = ran.nextInt(9);\r\n\t\t\t\ty = ran.nextInt(11);\r\n\t\t\t} else\r\n\t\t\t\tnewHit = true;\r\n\t\t}\r\n\t\tint hitCoord[] = { x, y };\r\n\t\tsetCoords(hitCoord);\r\n\t\tString coordx = Integer.toString(x);\r\n\t\tString coordy = Integer.toString(y);\r\n\t\tif (Player.userGrid[x][y] == 1) {\r\n\t\t\t// change the grid value from 1 to 2 to signify hit\r\n\t\t\tPlayer.userGrid[x][y] = 2;\r\n\t\t\t\r\n\t\t\tif(!time1) {\r\n\t\t\t\ttimea=java.lang.System.currentTimeMillis();\r\n\t\t\t\ttime1=!time1;\r\n\t\t\t}else if(!time2) {\r\n\t\t\t\ttimeb=java.lang.System.currentTimeMillis();\r\n\t\t\t\t\ttime2=!time2;\r\n\t\t\t}else {\r\n\t\t\t\tdouble t=timeb-timea;\r\n\t\t\t\tif(t<3000) {\r\n\t\t\t\t\tsetScore(20);\r\n\t\t\t\t}\r\n\t\t\t\ttime1=false;\r\n\t\t\t\ttime2=false;\r\n\t\t\t\ttimea=0;\r\n\t\t\t\ttimeb=0;\r\n\t\t\t\t\r\n\t\t\t}//if time between consecutive hit is less than 3 seconds ,then bonus score\r\n\t\t\tsetScore(10);\r\n\t\t\tPlayer.coordinatesHit.add(coordx + \",\" + coordy);\r\n\t\t\tsetReply(\"It's a Hit!!!!!\");\r\n\r\n\t\t} else if (Player.userGrid[x][y] == 0) {\r\n\t\t\tPlayer.userGrid[x][y] = 3;\r\n\t\t\tsetScore(-1);\r\n\t\t\tsetReply(\"It's a miss!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\tsetReply(\"The location has been hit earlier\");\r\n\t\t\t //throw new LocationHitException(\"The location has been hit earlier\");\r\n\t\t}\r\n\t}",
"public static boolean locationOnScreen(int... ids) {\n\t\tfor(int id : ids)\n\t\t\tif(locationOnScreen(id))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Override\n public boolean isLocationValid(int x, int y)\n {\n return master.isLocationValid(x, y);\n }",
"public boolean isMine(int x, int y);",
"private boolean isCellVisited(Cell cell) {\n\t\tboolean result;\n\t\t// Return true to skip it if cell is null\n\t\tif (!isIn(cell))\n\t\t\treturn true;\n\n\t\tint r = cell.r;\n\t\tint c = cell.c;\n\t\tif (maze.type == HEX) {\n\t\t\tc = c - (r + 1) / 2;\n\t\t}\n\t\ttry {\n\t\t\tresult = visited[r][c];\n\t\t} catch (Exception e) {\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\t}",
"public void expLocation() {\n\t\tif (!death) {\t// Geht nicht wenn Tod!\n\t\t\t\n\t\t\t// Beschreibungen anzeigen und boolean explored auf wahr setzen, außer der Raum wurde bereits untersucht\n\t\t\tif (location[this.currentLocation].isExplored()) { Tuna.setMessage(\"Dieser Raum wurde bereits untersucht!\");\n\t\t\t} else {\n\t\t\t\tTuna.addText(location[this.currentLocation].getDescriptions().getExploreDescription());\n\t\t\t\tlocation[this.currentLocation].setExplored(true);\n\t\t\t}\n\t\t\t\n\t\t\t// Items an Stelle null im Item-Array des Standortes sichtbar machen\n\t\t\tif ((currentLocation > 0 && currentLocation < 7 && currentLocation != 2) || currentLocation == 20) {\n\t\t\t\tlocation[this.currentLocation].getItem(0).setVisible(true);\n\t\t\t\t/* Im Korridor (1) der Kaffeelöscherkasten\n\t\t\t\t * Im Konferenzraum (3) der Ventilationsschacht\n\t\t\t\t * In der Kammer der Leere (4) die Notiz\n\t\t\t\t * Im Ventilationsraum (5) die Notiz\n\t\t\t\t * In der Damentoilette (6) das Skillboook\n\t\t\t\t * Im Fahrstuhlschacht (20) die Kaffeetasse\n\t\t\t\t */\n\t\t\t}\n\t\t\t\n\t\t\t// Items an Stelle eins im Item-Array des Standortes sichtbar machen\n\t\t\tif (currentLocation == 9) {\n\t\t\t\tlocation[this.currentLocation].getItem(1).setVisible(true);\n\t\t\t}\n\t\t} else if (death) {\n\t\t\tTuna.setMessage(\"Du bist tot!\");\n\t\t}\n\t}",
"boolean hasGeoTargets();",
"public boolean inGoalRegion() {\n return position >= GOAL_POSITION;\n }",
"public boolean hasLocation()\n\t{\n\t\treturn location != null;\n\t}",
"public boolean checkForGourds() {return false;}",
"private boolean isTownHallAt(int x, int y, Node dest) {\n\t\tif (x == dest.getX() && y == dest.getY()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (currentState.isUnitAt(x, y)) {\n\t\t\tint unitID = currentState.unitAt(x, y);\n \t\n String unitName = currentState.getUnit(unitID).getTemplateView().getName();\n if(unitName.equalsIgnoreCase(\"Townhall\")) {\n \treturn true;\n }\n\t\t}\n\t\n\t\treturn false;\n\t}",
"public abstract boolean isTerrainAccessiable(final Cell cell);",
"private boolean isOccupied(Location loc)\n\t{\n\t\treturn grid[loc.getRow()][loc.getCol()] != null;\n\t}",
"public boolean isVisited()\n\t{\n\t\treturn visited;\n\t}",
"public boolean canMove (Location loc) {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return false;\n if (!gr.isValid(loc))\n return false;\n Actor neighbor = gr.get(loc);\n return !(neighbor instanceof Wall);\n }",
"private boolean checkGameState() {\n\t\tint numberOfPlayers = this.manSys.lockedNavmap.size();\n\t\tfor (int i = 0; i < numberOfPlayers; i++) {\n\t\t\tif (!snakesList.get(i).isDestroyed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean foundGoal() \r\n\t{\r\n\t\t// Write the method that determines if the walker has found a way out of the maze.\r\n\t\treturn ( currentCol < 0 || currentRow < 0 || \r\n\t\t\t\t currentCol >= size || currentRow >= size );\r\n\t}",
"boolean setHome(IGeneticMob geneticMob, Vec3 coords);",
"@Override\n public boolean isLocationFogged(XYCoord coord)\n {\n return isLocationFogged(coord.xCoord, coord.yCoord);\n }",
"public boolean isVisitado() {\n return this.isVisited;\n }",
"void check_game_state() {\n // Game over\n if (lives <= 0){ // No lives left\n end_game();\n }\n for (Alien alien : aliens){ // Aliens reached bottom of screen\n if (alien.y_position + alien.alien_height >= ship.y_position) {\n end_game();\n break;\n }\n }\n\n // Empty board\n if (aliens.isEmpty()) { // All aliens defeated\n if (level < 3) { // Level up\n level_up();\n alien_setup();\n }\n else { // Victory\n end_game();\n }\n }\n }",
"private MapLocation canUnloadAnywhere() {\r\n\t\tfor (Direction dir : navigation.allDirections) {\r\n\t\t\tMapLocation unloadLoc = myRC.getLocation().add(dir);\r\n\t\t\tif (myRC.canUnloadBlockToLocation(unloadLoc))\r\n\t\t\t\treturn unloadLoc;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public boolean isSquareVisited(int row, int col) {\n return playingBoard[row][col].isVisited();\n }",
"private boolean playerIsInSight(Point enemyLocation, Direction enemyLookDirection) {\n \tfor(int i = 1; i <= 2; i++) {\n \tif(enemyLookDirection == Direction.UP && !board.isOOB(enemyLocation.x - i, enemyLocation.y)) {\n \t\tif(board.getTile(enemyLocation.x - i, enemyLocation.y).hasPlayer() && !board.getTile(enemyLocation.x - i, enemyLocation.y).isRoom())\n \t\t\treturn true; \t\t\n \t}\n \telse if(enemyLookDirection == Direction.DOWN && !board.isOOB(enemyLocation.x + i, enemyLocation.y)) {\n \t\tif(board.getTile(enemyLocation.x + i, enemyLocation.y).hasPlayer() && !board.getTile(enemyLocation.x + i, enemyLocation.y).isRoom())\n \t\t\treturn true; \t\t\n \t}\n \telse if(enemyLookDirection == Direction.LEFT && !board.isOOB(enemyLocation.x, enemyLocation.y - i)) {\n \t\tif(board.getTile(enemyLocation.x, enemyLocation.y - i).hasPlayer() && !board.getTile(enemyLocation.x, enemyLocation.y - i).isRoom())\n \t\t\treturn true; \t\t\n \t}\n \telse if(enemyLookDirection == Direction.RIGHT && !board.isOOB(enemyLocation.x, enemyLocation.y + i)) {\n \t\tif(board.getTile(enemyLocation.x, enemyLocation.y + i).hasPlayer() && !board.getTile(enemyLocation.x, enemyLocation.y + i).isRoom())\n \t\t\treturn true; \t\t\n \t}\n \t}\n \treturn false;\n }",
"public void checkLocation(int location2[])\n\t{\n\t\t\n\t\tif(this.eatable && this.location[0]==location2[0] && this.location[1]==location2[1])\n\t\t{\t\n\t\t\t\tthis.deadOrAlive=\"Dead\";\t\t\n\t\t}\n\t\telse\n\t\t\tthis.deadOrAlive=\"Alive\";\n\t\t\n\t}",
"private boolean checkNearbyVillagers() {\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tSprite as = sprites.get(it.next());\n\t\t\tif (as instanceof Villager) {\n\t\t\t\tVillager v = (Villager) as;\n\t\t\t\tif (v.checkTalkable(player.pos, player.direction)) {\n\t\t\t\t\treturn executeTalkableVillager(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasCoordInfo();",
"private boolean checkInsideZone() {\n for (Zone z : shiftZones) {\n if (PolyUtil.containsLocation(userLocation, Arrays.asList(z.getCoords()), true)) {\n return true;\n }\n }\n return false;\n }",
"boolean isGoalReached(ExerciseSessionData data);",
"boolean hasGeographicView();",
"private boolean towerLocation(final Point current_point) {\r\n\t\tfor (int i = 0; i < my_towers.size(); i++) {\r\n\t\t\tif (my_towers.get(i).getLocation().equals(current_point)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean hasPosition();"
] | [
"0.69236237",
"0.69236237",
"0.6822207",
"0.6822207",
"0.6606319",
"0.65519136",
"0.6415101",
"0.6291388",
"0.62286264",
"0.62261724",
"0.6198681",
"0.61591846",
"0.6152563",
"0.6121664",
"0.6102869",
"0.60254204",
"0.6021865",
"0.6010028",
"0.6001762",
"0.5994892",
"0.5983682",
"0.59659874",
"0.59564835",
"0.5928322",
"0.5924901",
"0.59073997",
"0.5902451",
"0.5890027",
"0.5875789",
"0.58705246",
"0.5841339",
"0.58240634",
"0.5819484",
"0.57945085",
"0.5780203",
"0.5775223",
"0.5769984",
"0.575292",
"0.57483757",
"0.57453126",
"0.5742919",
"0.572292",
"0.5715513",
"0.57126397",
"0.56901383",
"0.56588435",
"0.56580615",
"0.5638526",
"0.5637195",
"0.56283444",
"0.56261766",
"0.56080383",
"0.5600042",
"0.5599553",
"0.5594039",
"0.558888",
"0.55783933",
"0.55673313",
"0.5566119",
"0.5561721",
"0.55505234",
"0.55447274",
"0.5540486",
"0.55313146",
"0.5526204",
"0.5524492",
"0.55174357",
"0.55120236",
"0.55101913",
"0.55033207",
"0.549718",
"0.5495347",
"0.5495336",
"0.5490509",
"0.54902995",
"0.5488622",
"0.54839087",
"0.5483036",
"0.5481812",
"0.5481546",
"0.54787487",
"0.5478101",
"0.54764974",
"0.54664385",
"0.545807",
"0.54576725",
"0.5447683",
"0.54441977",
"0.5441905",
"0.54410547",
"0.544027",
"0.54383695",
"0.5435038",
"0.5434149",
"0.5428702",
"0.5427199",
"0.5423849",
"0.54103565",
"0.5409115",
"0.5408002"
] | 0.71878797 | 0 |
String to be used for persistence | public String save() {
return code;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String toSaveString();",
"public abstract String generateStorageString();",
"public abstract String toDBString();",
"public String getSaveString() {\n return \"\" + Value;\n }",
"public String getDBString();",
"public abstract String createDBString();",
"@Override\n public String saveAsString() {\n return \"D\" + super.saveAsString() + \" | \" + by;\n }",
"String getURLStringToPersist() {\n return getURLStringImpl(null, null, false);\n }",
"@Override\n public String saveString() {\n AtomicReference<String> s = new AtomicReference<>(String.valueOf(finalistID) + \":\"); //Atomic reference since we modifying with lambda\n answers.forEach(a -> { s.set( s.get() + a + \":\"); });\n return s.get().substring(0, s.get().length()-1); //remove last ':'\n }",
"@Override\n public String getDbString() {\n return null;\n }",
"String serialize();",
"public String toSave() {\n\n return \"D|\" + super.toSave() + \" by: \" + by;\n }",
"@Override\n String save() {\n return \"\";\n }",
"String convertStringForStorage(String value);",
"@Override\n public String toSaveString() {\n //D0Finish project@June 6\n return \"D\" + (isDone ? \"1\" : \"0\") + name + \"@\" + getDate();\n }",
"@Override\n public String databaseString() {\n return \"T | \" + super.databaseString();\n }",
"public String NullSave()\n {\n return \"null\";\n }",
"public String toString(){ \n //--------------------------------------------------------------------------- \n StringBuffer buffer=new StringBuffer(\"*****GeneratorProperties:\"); \n buffer.append(\"\\tdatabaseDriver\"+databaseDriver); \n buffer.append(\"\\turlString\"+urlString); \n buffer.append(\"\\tuserName=\"+userName); \n buffer.append(\"\\tpassword=\"+password); \n buffer.append(\"\\tpackageName=\"+packageName); \n buffer.append(\"\\toutputDirectory=\"+outputDirectory); \n buffer.append(\"\\tjarFilename=\"+jarFilename); \n buffer.append(\"\\twhereToPlaceJar=\"+whereToPlaceJar); \n buffer.append(\"\\ttmpWorkDir=\"+tmpWorkDir); \n buffer.append(\"\\taitworksPackageBase=\"+aitworksPackageBase); \n buffer.append(\"\\tincludeClasses=\"+includeClasses); \n buffer.append(\"\\tincludeSource=\"+includeSource); \n buffer.append(\"\\tgeneratedClasses=\"+generatedClasses); \n return buffer.toString();\n }",
"public abstract String serialise();",
"public String save(){\r\n StringBuilder saveString = new StringBuilder(\"\");\r\n //currentPlayer, numPlayer, players[], \r\n saveString.append(currentPlayer + \" \");\r\n saveString.append(numPlayers + \" \");\r\n \r\n int i = 0;\r\n while(i < numPlayers){\r\n saveString.append(playerToString(players[i]) + \" \");\r\n i = i + 1;\r\n }\r\n\t\t\r\n\t\t//encrypt saveString\r\n\t\tString result = encryptSave(saveString.toString());\r\n \r\n return result;\r\n }",
"public String getPersistentRepresentation() {\n // The persistent representation includes the value, lower bound,\n // and upper bound. Each is separated by a colon.\n // --------------------------------------------------------------\n String s;\n if (getInternalValue() == null) {\n s = \"null\";\n }\n else {\n s = getInternalValue().toString();\n }\n return s + PERSISTENT_FIELD_DELIMITER + m_lowerBound\n + PERSISTENT_FIELD_DELIMITER + m_upperBound;\n }",
"@Override\n public String save_toString() {\n return \"D | \" + super.save_toString() + \"| \" + date;\n }",
"public String makeString()\n\t{\n\t\treturn \"RandomLevelSource\";\n\t}",
"public String getSaveString() {\n try {\n Node node = getSaveNode();\n\n StringWriter writer = new StringWriter();\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.transform(new DOMSource(node), new StreamResult(writer));\n return writer.toString();\n }\n catch (TransformerConfigurationException e) {\n throw new RuntimeException(e);\n }\n catch (TransformerException e) {\n throw new RuntimeException(e);\n }\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public static String create()\n\t{\n\t\tBASE64Encoder\tencoder = new BASE64Encoder();\n\n\t\treturn encoder.encode(createBytes());\n\t}",
"public String toDBString() {\n return extra1 + DIVIDER + extra2;\n }",
"public static String create()\n\t{\n\t\treturn new String(B64Code.encode(createBytes()));\n\t}",
"@Override\n public String createString() {\n return null;\n }",
"@Override\n\tpublic String getSaveString() {\n\t\tString save = \"Absorber \"+this.name+\" \"+this.x/GameBoard.PixelsPerL+\" \"+this.y/GameBoard.PixelsPerL+\" \"+this.width+\" \"+this.height;\n\t\treturn save;\n\t}",
"public abstract String toSQL();",
"@Override\n public String storeItem() {\n return \"N/\" + description;\n }",
"public String save()\n {\n String realPart = \"\";\n String imaginaryPart = \"\";\n \n if(this.realPart >= 0)\n {\n realPart = realPart + \"+\";\n }\n realPart = realPart + this.realPart;\n \n if(this.imaginaryPart >= 0)\n {\n imaginaryPart = imaginaryPart + \"+\";\n }\n imaginaryPart = imaginaryPart + this.imaginaryPart;\n \n return realPart + \"\" +imaginaryPart + \"i\";\n }",
"public String toString() {\n\t\treturn store.toString();\n\t}",
"public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }",
"public java.lang.String getDatabaseId() {\n java.lang.Object ref = databaseId_;\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 databaseId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String toLargeString() {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\tsb.append(\"Potencial{\");\r\n\t\tsb.append(\"idPotencial\" ).append(\"=\").append(idPotencial).append(\"|\");\r\n\t\tsb.append(\"proveedorEstacion\" ).append(\"=\").append(proveedorEstacion).append(\"|\");\r\n\t\tsb.append(\"proveedor\" ).append(\"=\").append(proveedor).append(\"|\");\r\n\t\tsb.append(\"codigoServicio\" ).append(\"=\").append(codigoServicio).append(\"|\");\r\n\t\tsb.append(\"clase\" ).append(\"=\").append(clase).append(\"|\");\r\n\t\tsb.append(\"idNociclotemporada\" ).append(\"=\").append(idNociclotemporada).append(\"|\");\r\n\t\tsb.append(\"idTipociclo\" ).append(\"=\").append(idTipociclo).append(\"|\");\r\n\t\tsb.append(\"idEstatuspotencial\" ).append(\"=\").append(idEstatuspotencial).append(\"|\");\r\n\t\tsb.append(\"urlPotencial\" ).append(\"=\").append(urlPotencial).append(\"|\");\r\n\t\tsb.append(\"mimeType\" ).append(\"=\").append(mimeType).append(\"|\");\r\n\t\tsb.append(\"usuarioCreo\" ).append(\"=\").append(usuarioCreo).append(\"|\");\r\n\t\tsb.append(\"fechaCreo\" ).append(\"=\").append(fechaCreo).append(\"|\");\r\n\t\tsb.append(\"observaciones\" ).append(\"=\").append(observaciones).append(\"|\");\r\n\t\tsb.append(\"usuarioObservaciones\" ).append(\"=\").append(usuarioObservaciones).append(\"|\");\r\n\t\tsb.append(\"fechaObservaciones\" ).append(\"=\").append(fechaObservaciones).append(\"|\");\r\n\t\tsb.append(\"notaRecordatorio\" ).append(\"=\").append(notaRecordatorio).append(\"|\");\r\n\t\tsb.append(\"fechaRecordatorio\" ).append(\"=\").append(fechaRecordatorio).append(\"|\");\r\n\t\tsb.append(\"versionPotencial\" ).append(\"=\").append(versionPotencial).append(\"|\");\r\n\t\tsb.append(\"vigenciaPotencial\" ).append(\"=\").append(vigenciaPotencial).append(\"|\");\r\n\t\t//sb.append(\"serialVersionUID=\").append(serialVersionUID).append(\"}\");\r\n sb.append(\"}\");\r\n\t\treturn sb.toString();\r\n\t}",
"String getPersitence();",
"public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }",
"public String toMetadata() {\n\t\tGson gson = new Gson();\n\t\treturn gson.toJson(toMetadataHash());\n\t}",
"@Override\n public String getSaveValue() {\n String saveValue = super.getSaveValue();\n // Replace &, <, >, ', and \"\n saveValue = saveValue.replace(\"&\", \"&\");\n saveValue = saveValue.replace(\"<\", \"<\");\n saveValue = saveValue.replace(\">\", \">\");\n saveValue = saveValue.replace(\"\\'\", \"'\");\n saveValue = saveValue.replace(\"\\\"\", \""\");\n return saveValue;\n }",
"public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\n str2 = \"\";\n } else {\n str2 = \",\\\"frequency\\\":\" + this.frequency;\n }\n return \"{\\\"enabled\\\":\" + this.enabled + str2 + \",\\\"lifetime\\\":\" + str + \"}\";\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return \"\";\n }\n }",
"public String getSaveString(int combo)\n {\n return getSaveString(convertId(combo));\n }",
"public String getIDString() {\n return idString;\n }",
"public String getStringIdentifier() { return \"\"; }",
"@Override\n public String stringToSave() {\n char status = this.isDone ? '1' : '0';\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_TO_SAVE =\n \"E \" + \"| \" + status + \" | \" + this.description+ this.stringOfTags + \" \" + \"| \" +\n this.date.format(dtfDate) + \" \" + this.time.format(dtfTime);\n return EVENT_STRING_TO_SAVE;\n }",
"public String toFile(){\n return String.format(\"%s:%s:%s:%s:%s:%s:%s\",hashIndex,id,super.toFile(), \r\n facultyAbbr.getAbbreviation(), courseName.getCourseName(),tutorialGroup,session);\r\n }",
"public String toString() {\r\n\t\tStringBuffer out = new StringBuffer(\"toString: \");\r\n\t\tout.append(\"\\nclass User, mapping to table user\\n\");\r\n\t\tout.append(\"Persistent attributes: \\n\");\r\n\t\tout.append(\"id = \" + this.id + \"\\n\");\r\n\t\tout.append(\"password = \" + this.password + \"\\n\");\r\n\t\tout.append(\"name = \" + this.name + \"\\n\");\r\n\t\tout.append(\"role = \" + this.roles.get(0).getRole() + \"\\n\");\r\n\t\treturn out.toString();\r\n\t}",
"public String getSaveString() {\n if (this.isDone()) {\n return String.format(\"[isDone] todo %s\\n\", description);\n } else {\n return String.format(\"todo %s\\n\", description);\n }\n }",
"public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}",
"public String makeString()\n {\n return \"ArcanaDungeonSource\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }",
"public String backup() {\n try {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(baos);\n out.writeInt(widgets.size());\n// System.out.println(\"widgets: \" + widgets.size());\n for (Widget w : widgets) {\n w.writeObject(out);\n }\n out.close();\n return Base64.getEncoder().encodeToString(baos.toByteArray());\n } catch (IOException e) {\n System.out.print(\"IOException occurred.\" + e.toString());\n e.printStackTrace();\n return \"\";\n }\n }",
"public String getIdString() {\n return idString;\n }",
"@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }",
"@java.lang.Override\n public java.lang.String getDatabaseId() {\n java.lang.Object ref = databaseId_;\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 databaseId_ = s;\n return s;\n }\n }",
"public String toString() {\n\t\tif (_error)\n\t\t\treturn \"An error occured -- Could not fetch database metadata.\";\n\t\treturn _buffer.toString();\n\t}",
"public String makeString()\n {\n return \"RandomLevelSource\";\n }",
"public String idToString() {\r\n StringBuffer buffer = new StringBuffer();\r\n buffer.append(\"IQ id(\");\r\n buffer.append(importQueueId);\r\n buffer.append(\").\");\r\n return buffer.toString();\r\n }",
"@Override\n\tpublic String store(byte[] data)\n\t{\n\t\treturn null;\n\t}",
"java.lang.String getStringId();",
"java.lang.String getStringId();",
"@Override\n public String stringify()\n {\n return StringUtils.format(\"\\\"%s\\\"\", StringEscapeUtils.escapeJava(binding));\n }",
"private static void saveData(String data) {\n }",
"String getClassSQLContract(){\n return buffer.toString();\n\t}",
"public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }",
"public String getEntrySave() {\r\n return \"-\"+getId() + \"|\" + getFavorite() + \"|\" + getSubject() + \"|\" + date(4) + \"|\" + price.getFull() + \"|\" + getNotes();\r\n }",
"public String getIdentityInsertString() {\n \t\treturn null;\n \t}",
"public String getOemID() {\n final byte[] data = new byte[8];\n mem.getBytes(8, data, 0, data.length);\n return new String(data).trim();\n }",
"public String toString() {\n\t\t\tswitch(this) {\n\t\t\tcase INSERT_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"INSERT INTO lry.aut_bsi_prc_cfg_resources(CFG_ID, RSC_NAME, RSC_DESCRIPTION, RSC_LOCATION_INPUT, RSC_LOCATION_OUTPUT, RSC_ITEM, RSC_ITEM_KEY) VALUES(?,?,?,?,?,?,?);\";\n\t\t\t}\n\t\t\tcase SELECT_ALL_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources;\";\n\t\t\t}\n\t\t\tcase SELECT_BSI_RESOURCES_BASE_BY_CFG_BASE_ID:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources WHERE CFG_ID=?;\";\n\t\t\t}\n\t\t\tdefault:{\n\t\t\t\treturn this.name();\n\t\t\t}\n\t\t\t}\n\t\t}",
"public String toString() {\r\n \t\treturn \"\\\"\" + _name + \"\\\" by \" + _creator;\r\n \t}",
"String getDatabase();",
"protected String myString(){\n \treturn( \"gate \" + name ); \n }",
"public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }",
"static String serializeToString(Object s) throws SQLException {\n\treturn createString(serialize(s));\n }",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }",
"public String toString()\n {\n return storageInt+\"\";\n }",
"private String getTxAsString()\n {\n if (tx == null)\n return null;\n\n return tx.getClass().getName() + \"@\" + System.identityHashCode(tx);\n }",
"public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}",
"private String getStoreName() {\n if (storeName == null) {\n storeName = System.getProperty(\"user.dir\")\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_DICT_STORE_NAME\n + \"dat\";\n }\n return storeName;\n }",
"public String toString(){\n\t\treturn \"\"+getId();\n\t}",
"private void m29112g(String str) {\n if (str != null) {\n PersistentConfiguration cVar = this.f22551a;\n if (cVar != null && !str.equals(cVar.getString(this.f22556m))) {\n this.f22551a.putString(this.f22556m, str);\n this.f22551a.commit();\n }\n }\n }",
"public void setPersistentString(String key, String value);",
"public String toString() { return stringify(this, true); }",
"public String getSQLstring() {\r\n return typeId.toParsableString(this);\r\n }",
"@Override\n public String convertToDatabaseColumn(String attribute) {\n String bytes = null;\n try {\n\n bytes = Base64.getEncoder().encodeToString(encrypt(attribute));\n// bytes = encrypt(attribute).toString();\n\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return bytes;\n\n }",
"private String getTestPersistedListing() {\n StringBuilder sb = new StringBuilder();\n SimpleDateFormat sdf = new SimpleDateFormat(ListingFileHelper.DATE_FORMAT);\n sb.append(sdf.format(getTestListingDateTimeStamp()));\n sb.append(\"~\");\n sb.append(testTvShow);\n sb.append(\"~\");\n sb.append(testTitle);\n sb.append(\"~\");\n sb.append(testChannel.getChannelName());\n return sb.toString();\n }",
"@Override\n public String convertToEntityAttribute(String dbData) {\n\n String message = null;\n\n try {\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n KeyGenerator keyGenerator = KeyGenerator.getInstance(\"AES\");\n SecureRandom secureRandom = new SecureRandom();\n int keyBitSize = 256;\n keyGenerator.init(keyBitSize, secureRandom);\n SecretKey secretKey = keyGenerator.generateKey ();\n\n byte[] bytes = dbData.getBytes();\n cipher.init(Cipher.DECRYPT_MODE, secretKey);\n message = cipher.doFinal(bytes).toString();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return message;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(name.trim());\n sb.append(\"=\\\"\");\n sb.append(value);\n sb.append('\"');\n return sb.toString() ;\n }",
"private String getStringToCreateDB(String addings) {\n StringBuffer createDBStringBuffer = new StringBuffer();\n createDBStringBuffer\n .append(SQLFormater.CREATE_TABLE)\n .append(\" \")\n .append(tableName)\n .append(\"(\")\n .append(idFieldName)\n .append(\" \")\n .append(DBCreator.INTEGER_TYPE)\n .append(\" \")\n .append(SQLFormater.PRIMARY_KEY);\n mapFieldsTypes.forEach((kField, vType) -> { // add all table's fields\n createDBStringBuffer\n .append(\", \")\n .append(kField)\n .append(\" \")\n .append(vType);\n if(mapFieldsConstraints.containsKey(kField)) { // add constraint for a field\n createDBStringBuffer\n .append(\" \")\n .append(mapFieldsConstraints.get(kField));\n }\n });\n if (addings != null && !addings.isEmpty()) { // add reference\n createDBStringBuffer\n .append(\", \")\n .append(addings);\n }\n createDBStringBuffer.append(\")\");\n return createDBStringBuffer.toString();\n }",
"@Override\n protected boolean persistString(String value) {\n return persistInt(Integer.parseInt(value));\n }",
"public String getDatabase() {\r\n return Database;\r\n }",
"public String toString()\n\t{\n\t\treturn \"\" + storedVar1 + storedVar2;\n\t}",
"private String getBackupString() {\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n String mapService = SP.getString(\"mapService\",\n \"https://www.bing.com/maps?q=YYY,XXX\"); //get URL string\n String locale = SP.getString(\"locale\", \"default\");\n\n JSONObject outputJson = new JSONObject();\n try {\n outputJson.put(\"backupApiVersion\", \"1\");\n outputJson.put(\"locale\", locale);\n outputJson.put(\"mapService\", mapService);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return outputJson.toString(); //final string\n }",
"public String toExternalString() {\n\t\treturn new String(signature, US_ASCII);\n\t}",
"@Override\n public String getStringID() {\n return endpointHandler.getStringID();\n }",
"public String getJavaInitializationString() {\n\t\tchar quote = '\"';\n\t\tString str = \"new String\";\n\t\treturn str;\n\t}",
"public String toEncryptedString() {\r\n\t\t\r\n\t\t// puts the optional fields as \"??\" if they were blanks.\r\n\t\tif(this.getAddress().length()==0)\r\n\t\t\tthis.setAddress(\"??\");\r\n\t\t\r\n\t\tif(this.getCity().length()==0)\r\n\t\t\tthis.setCity(\"??\");\t\t\r\n\t\t\r\n\t\t// encrypt contact info.\r\n\t\tString line = Method.encrypt(this.getLastName(), true)+\",\"\r\n\t\t\t+Method.encrypt(this.getFirstName(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getAddress(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getCity(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getPhoneNumber(),true);\r\n\t\t\r\n\t\treturn line;\r\n\t}",
"java.lang.String getSer();"
] | [
"0.6968329",
"0.68974286",
"0.68660885",
"0.6703236",
"0.66374326",
"0.6599486",
"0.64897436",
"0.64056396",
"0.62350315",
"0.6075683",
"0.59413624",
"0.5891777",
"0.588939",
"0.587593",
"0.586291",
"0.5759466",
"0.57390994",
"0.56887376",
"0.56700027",
"0.5654222",
"0.5640799",
"0.5620716",
"0.5599034",
"0.5566024",
"0.5556259",
"0.5556259",
"0.55535394",
"0.55535257",
"0.55319524",
"0.5521334",
"0.55149645",
"0.55019766",
"0.54694736",
"0.5468551",
"0.5467862",
"0.5453532",
"0.5439999",
"0.54338783",
"0.54227877",
"0.54224414",
"0.5421451",
"0.5420843",
"0.5409867",
"0.54094416",
"0.54022765",
"0.5400846",
"0.5392516",
"0.53902715",
"0.53837764",
"0.53693515",
"0.5364336",
"0.53537107",
"0.53423715",
"0.5342207",
"0.53419405",
"0.53384817",
"0.5336406",
"0.5335072",
"0.5332372",
"0.5331153",
"0.53233916",
"0.5319899",
"0.5319899",
"0.53086525",
"0.53071886",
"0.53062475",
"0.52946144",
"0.52807856",
"0.5278896",
"0.5271079",
"0.52697605",
"0.52649796",
"0.5262558",
"0.52570575",
"0.52528733",
"0.5248361",
"0.5245518",
"0.52454984",
"0.52394533",
"0.52246803",
"0.52154016",
"0.5214469",
"0.52081186",
"0.52074796",
"0.5203472",
"0.5196748",
"0.5188678",
"0.5187348",
"0.5185367",
"0.51797265",
"0.51693344",
"0.51662207",
"0.51631546",
"0.5158918",
"0.5154121",
"0.5153435",
"0.5148806",
"0.5145357",
"0.5143196",
"0.5140009"
] | 0.5164515 | 92 |
Localized title for UI | public CharSequence title(Context context) {
if (titleResId == 0 || context == null) {
return this.code;
} else {
return context.getText(titleResId);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"IDisplayString getTitle();",
"public String getTitle() {\n if (getMessages().contains(\"title\")) {\n return message(\"title\");\n }\n return message(MessageUtils.title(getResources().getPageName()));\n }",
"public abstract String getTitle(Locale locale);",
"@Override\n public String getTitle() {\n return getName();\n }",
"@Override\r\n public String getTitle() {\n return title;\r\n }",
"@Override\n public void title_()\n {\n }",
"@Override\r\n public String getTitle() {\r\n return title;\r\n }",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"@Override\n public String getTitle() {\n return title;\n }",
"public String getTitle() {\n addParameter(\"title.number\" , iBundle.getString(\"reminderreport.title.date\") );\n\n return iBundle.getString(\"reminderreport.title\");\n }",
"public void setTitle(String title) { this.title = title; }",
"public void setTitle(String titleTemplate);",
"@Override\n\tpublic void setTitle(java.lang.String title, java.util.Locale locale) {\n\t\t_scienceApp.setTitle(title, locale);\n\t}",
"public void setTitle(java.lang.String title);",
"void setTitle(java.lang.String title);",
"public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"protected abstract String title ();",
"String title();",
"String title();",
"@Override\n\tpublic java.lang.String getTitle(java.util.Locale locale) {\n\t\treturn _scienceApp.getTitle(locale);\n\t}",
"@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle(String title) {\n\t\tif(level == \"AS\") {\n\t\t\treturn \"Assistant\";\n\t\t}\n\t\telse if(level == \"AO\") {\n\t\t\treturn \"Associate\";\n\t\t}\n\t\telse {\n\t\t\treturn \"Full-Time\";\n\t\t}\n\t}",
"@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}",
"@NotNull\n String getTitle();",
"@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public java.lang.String getTitle();",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}",
"@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }",
"public String getTitle() { return title; }",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}",
"public abstract CharSequence getTitle();",
"@Override\r\n public String getTitle()\r\n {\n return null;\r\n }",
"@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}",
"@Override\r\npublic String getTitle() {\n\treturn super.getTitle();\r\n}",
"private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}",
"public String getTitle() {\n \t\treturn title;\n \t}",
"protected abstract void setTitle();",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(String title);",
"@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _scienceApp.getTitle();\n\t}",
"public String getTitle() {\n return getProperty(Property.TITLE);\n }",
"public String getTitle_() {\n return title_;\n }",
"@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}",
"public void setTitle(java.lang.String value) {\n this.title = value;\n }",
"@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}",
"public void setTitle(String strTitle) { m_strTitle = strTitle; }",
"@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}",
"public String getTitle() {\n\t\t\n\t\tStringBuilder titleBuilder = new StringBuilder();\n\t\ttitleBuilder.append(CorrelatorConfig.AppName);\n\t\ttitleBuilder.append(\" \");\n\n\t\tif (m_activeMap != null) {\n\t\t\ttitleBuilder.append(\"(\" + m_activeMap.getName() + \")\");\t\t\n\t\t}\n\t\t\n\t\t// Stage is where visual parts of JavaFX application are displayed.\n return titleBuilder.toString();\n\t}",
"@AutoEscape\n\tpublic String getTitle();",
"@AutoEscape\n\tpublic String getTitle();",
"@Override\n public void title()\n {\n }",
"public void setTitle(String title){\n this.title = title;\n }",
"public final String getTitle() {\r\n return config.title;\r\n }",
"public void setTitle(String title) {\r\n\tthis.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }"
] | [
"0.7507187",
"0.7504936",
"0.74043816",
"0.7352579",
"0.7329541",
"0.7287222",
"0.72501683",
"0.7244667",
"0.7179242",
"0.71717006",
"0.7145487",
"0.71248525",
"0.71019006",
"0.7098656",
"0.7087799",
"0.7078184",
"0.7076439",
"0.7076439",
"0.7076439",
"0.7076439",
"0.7076439",
"0.70700073",
"0.70589286",
"0.70565784",
"0.70565784",
"0.7039051",
"0.70126826",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.7003551",
"0.69985634",
"0.69899887",
"0.6983788",
"0.6977896",
"0.69772935",
"0.6973316",
"0.6973316",
"0.69680285",
"0.6964356",
"0.6958961",
"0.6952001",
"0.6946154",
"0.6943358",
"0.69419706",
"0.6940901",
"0.6936658",
"0.69361293",
"0.6934718",
"0.6933388",
"0.6933388",
"0.6933388",
"0.6933388",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6933281",
"0.6926575",
"0.6926575",
"0.6926575",
"0.6925603",
"0.69237876",
"0.69133",
"0.6912494",
"0.6912487",
"0.6912239",
"0.690636",
"0.6904392",
"0.6904256",
"0.6900669",
"0.6900669",
"0.6900179",
"0.68901265",
"0.6881921",
"0.6880544",
"0.6879883"
] | 0.0 | -1 |
Returns the enum or UNKNOWN | public static ActorsScreenType load(String strCode) {
for (ActorsScreenType tt : ActorsScreenType.values()) {
if (tt.code.equals(strCode)) {
return tt;
}
}
return UNKNOWN;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue();",
"Enum getType();",
"public abstract Enum<?> getType();",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum getValue();",
"public String getEnum() {\n if (model == null)\n return strEnum;\n return model.getEnum();\n }",
"public static StatusType get(int value) {\n\t\tswitch (value) {\n\t\t\tcase INSTALLED_VALUE: return INSTALLED;\n\t\t\tcase NOT_INSTALLED_VALUE: return NOT_INSTALLED;\n\t\t\tcase HALF_CONFIGURED_VALUE: return HALF_CONFIGURED;\n\t\t\tcase HALF_INSTALLED_VALUE: return HALF_INSTALLED;\n\t\t\tcase CONFIG_FILES_VALUE: return CONFIG_FILES;\n\t\t\tcase UNPACKED_VALUE: return UNPACKED;\n\t\t}\n\t\treturn null;\n\t}",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"private static DirType getEnum(String name) {\n\t\t\t//Find provided string in directions map.\n\t\t\tDirType direction = directions.get(name.toUpperCase());\n\t\t\tif (direction == null) {\n\t\t\t\tdirection = DirType.NONE;\n\t\t\t}\n\t\t\treturn direction;\n\t\t}",
"EEnum createEEnum();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean.Enum getCapitalInKind();",
"public String getElement()\n {\n return \"enum\";\n }",
"public static String valueOfOrDefault(String myValue) {\n\t\t String value=myValue.toUpperCase().replaceAll(\"\\\\s\", \"_\");\r\n\t\t for(RegioneItaliana type : RegioneItaliana.class.getEnumConstants()) {\r\n\t\t if(type.name().equalsIgnoreCase(value)) {\r\n\t\t return type.toString();\r\n\t\t }\r\n\t\t }\r\n\t\t return myValue;\r\n\t\t }",
"@javax.annotation.Nullable\n public TypeEnum getType() {\n return type;\n }",
"public com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue() {\n return enumValue_;\n }",
"EnumConstant createEnumConstant();",
"public void testInvalidEnum () {\n\t\tString example = \"noRMal\";\n\t\ttry {\n\t\t ECallConfirmationStatus temp = ECallConfirmationStatus.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (IllegalArgumentException exception) {\n fail(\"Null string throws NullPointerException.\");\n\t\t}\n\t}",
"default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }",
"public void testInvalidEnum () {\n\t\tString example = \"uSer_ExiT\";\n\t\ttry {\n\t\t AppInterfaceUnregisteredReason temp = AppInterfaceUnregisteredReason.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (IllegalArgumentException exception) {\n fail(\"Invalid enum throws IllegalArgumentException.\");\n\t\t}\n\t}",
"public void testEnum() {\n assertNotNull(MazeCell.valueOf(MazeCell.UNEXPLORED.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.INVALID_CELL.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.CURRENT_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.FAILED_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.WALL.toString()));\n }",
"public com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue() {\n return enumValue_;\n }",
"EnumOperationType getOperationType();",
"com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers.Enum getExchange();",
"public static DataStructure getEnum(String s) {\n for (DataStructure e : DataStructure.values())\n if (e.getString().equals(s))\n return e;\n return NONE;\n }",
"boolean hasEnumValue();",
"public void testGetEnumValue_unexisting() {\r\n\r\n try {\r\n ReflectionUtils.getEnumValue(TestEnum.class, \"xxxxxxxxx\");\r\n fail(\"Expected UnitilsException\");\r\n\r\n } catch (UnitilsException e) {\r\n //expected\r\n }\r\n }",
"public static Resource_kind get(int value) {\n\t\tswitch (value) {\n\t\tcase NONE_VALUE:\n\t\t\treturn NONE;\n\t\tcase RAND_VALUE:\n\t\t\treturn RAND;\n\t\tcase LOCK_VALUE:\n\t\t\treturn LOCK;\n\t\tcase SHARE_VALUE:\n\t\t\treturn SHARE;\n\t\t}\n\t\treturn null;\n\t}",
"public static EndpointType get(int value) {\n\t\tswitch (value) {\n\t\tcase EDGE_VALUE:\n\t\t\treturn EDGE;\n\t\tcase REGIONAL_VALUE:\n\t\t\treturn REGIONAL;\n\t\tcase PRIVATE_VALUE:\n\t\t\treturn PRIVATE;\n\t\t}\n\t\treturn null;\n\t}",
"public static Enum<?> findMatchingEnumVal(Field field, String unknownEnumName) {\n if (unknownEnumName == null || unknownEnumName.length() == 0) {\n return null;\n }\n for (Enum<?> enumVal : (Enum<?>[]) field.getType().getEnumConstants()) {\n if (enumVal.name().equals(unknownEnumName)) {\n return enumVal;\n }\n }\n throw new IllegalArgumentException(\"Unknwown enum unknown name \" + unknownEnumName + \" for field \" + field);\n }",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"public void testInvalidEnum () {\n\t\tString example = \"aM\";\n\t\ttry {\n\t\t\tRadioBand temp = RadioBand.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (IllegalArgumentException exception) {\n fail(\"Invalid enum throws IllegalArgumentException.\");\n\t\t}\n\t}",
"public void testNullEnum () {\n\t\tString example = null;\n\t\ttry {\n\t\t AppInterfaceUnregisteredReason temp = AppInterfaceUnregisteredReason.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (NullPointerException exception) {\n fail(\"Null string throws NullPointerException.\");\n\t\t}\n\t}",
"EnumTypeDefinition createEnumTypeDefinition();",
"MachineType getType();",
"public EnumBase realResultEnum() {\n return realResultEnum;\r\n }",
"public void testGetEnumValue_differentCase() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"Value1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }",
"public void testInvalidEnum () {\n\t\tString example = \"8kHz\";\n\t\ttry {\n\t\t SamplingRate temp = SamplingRate.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (IllegalArgumentException exception) {\n fail(\"Invalid enum throws IllegalArgumentException.\");\n\t\t}\n\t}",
"EnumTypeRule createEnumTypeRule();",
"public Enum<?> findEnum(final String key) {\n Enum<?> en = _enumsById.get(key);\n if (en == null) {\n if (_isIgnoreCase) {\n return _findEnumCaseInsensitive(key);\n }\n }\n return en;\n }",
"public static TopmarkType get(int value) {\n\t\tswitch (value) {\n\t\t\tcase UNKNOWN_VALUE: return UNKNOWN;\n\t\t\tcase CYLINDER_VALUE: return CYLINDER;\n\t\t\tcase CONE_UP_VALUE: return CONE_UP;\n\t\t\tcase CONE_DOWN_VALUE: return CONE_DOWN;\n\t\t\tcase XCROSS_VALUE: return XCROSS;\n\t\t\tcase BALL_VALUE: return BALL;\n\t\t\tcase UPRIGHT_CROSS_VALUE: return UPRIGHT_CROSS;\n\t\t\tcase RHOMBUS_VALUE: return RHOMBUS;\n\t\t\tcase FLAG_VALUE: return FLAG;\n\t\t}\n\t\treturn null;\n\t}",
"public static CoverageType get(int value) {\n\t\tswitch (value) {\n\t\t\tcase PATIENT_GENDER_VALUE: return PATIENT_GENDER;\n\t\t\tcase PATIENT_AGE_GROUP_VALUE: return PATIENT_AGE_GROUP;\n\t\t\tcase CLINICAL_FOCUS_VALUE: return CLINICAL_FOCUS;\n\t\t\tcase TARGET_USER_VALUE: return TARGET_USER;\n\t\t\tcase WORKFLOW_SETTING_VALUE: return WORKFLOW_SETTING;\n\t\t\tcase WORKFLOW_TASK_VALUE: return WORKFLOW_TASK;\n\t\t\tcase CLINICAL_VENUE_VALUE: return CLINICAL_VENUE;\n\t\t}\n\t\treturn null;\n\t}",
"EEnumLiteral createEEnumLiteral();",
"public static ALFormat getEnum(int value)\n {\n switch (value)\n {\n case AL_FORMAT_MONO8:\n return MONO_8;\n case AL_FORMAT_MONO16:\n return MONO_16;\n case AL_FORMAT_STEREO8:\n return STEREO_8;\n case AL_FORMAT_STEREO16:\n return STEREO_16;\n }\n\n throw new SilenceException(\"Unknown format value: \" + value);\n }",
"Kind getKind();",
"public Enum getType() {\n return type;\n }",
"public interface CodeEnum {\n Integer getCode();\n\n String getMeaning();\n}",
"public void testNullEnum () {\n\t\tString example = null;\n\t\ttry {\n\t\t ECallConfirmationStatus temp = ECallConfirmationStatus.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (NullPointerException exception) {\n fail(\"Null string throws NullPointerException.\");\n\t\t}\n\t}",
"public static Obj enumType(String type) {\n\t\tif ((type != null) && !type.isEmpty() && (StrObj.containsKey(type)))\n\t\t\treturn StrObj.get(type);\n\t\telse\n\t\t\treturn Obj.UNKOBJ;\n\t}",
"public T caseEnumValue(EnumValue object)\n {\n return null;\n }",
"EnumValueDefinition createEnumValueDefinition();",
"public void testGetEnumValue() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"VALUE1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }",
"EnumRef createEnumRef();",
"public TypeEnum getType() {\n return type;\n }",
"public static APIVersionType get(int value) {\n switch (value) {\n case NONE_VALUE: return NONE;\n case CONTEXT_VALUE: return CONTEXT;\n case URL_VALUE: return URL;\n }\n return null;\n }",
"public interface CodeEnum {\n Integer getCode();\n}",
"public static StatusType get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tStatusType result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private static Class<?> enumLiteralValueTypeOf(Class<? extends Enum<?>> enumType) {\r\n\t\tEnum<?>[] enumValues = enumType.getEnumConstants();\r\n\t\tif (enumValues != null) {\r\n\t\t\tfor (Enum<?> enumValue : enumValues) {\r\n\t\t\t\tif (enumValue instanceof DBEnumValue) {\r\n\t\t\t\t\tObject code = ((DBEnumValue<?>) enumValue).getCode();\r\n\t\t\t\t\tif (code != null) {\r\n\t\t\t\t\t\treturn code.getClass();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public EventType getEvent() {\n EventType result = EventType.valueOf(event_);\n return result == null ? EventType.UNRECOGNIZED : result;\n }",
"private PatternType matchPatternEnum(String s){\n s = s.toLowerCase();\n switch(s){\n case \"factory method\":\n return PatternType.FACTORY_METHOD;\n case \"prototype\":\n return PatternType.PROTOTYPE;\n case \"singleton\":\n return PatternType.SINGLETON;\n case \"(object)adapter\":\n return PatternType.OBJECT_ADAPTER;\n case \"command\":\n return PatternType.COMMAND;\n case \"composite\":\n return PatternType.COMPOSITE;\n case \"decorator\":\n return PatternType.DECORATOR;\n case \"observer\":\n return PatternType.OBSERVER;\n case \"state\":\n return PatternType.STATE;\n case \"strategy\":\n return PatternType.STRATEGY;\n case \"bridge\":\n return PatternType.BRIDGE;\n case \"template method\":\n return PatternType.TEMPLATE_METHOD;\n case \"visitor\":\n return PatternType.VISITOR;\n case \"proxy\":\n return PatternType.PROXY;\n case \"proxy2\":\n return PatternType.PROXY2;\n case \"chain of responsibility\":\n return PatternType.CHAIN_OF_RESPONSIBILITY;\n default:\n System.out.println(\"Was not able to match pattern with an enum. Exiting because this should not happen\");\n System.exit(0);\n\n }\n //should never get here because we exit on the default case\n return null;\n }",
"public final Enumerator ruleGoalKind() throws RecognitionException {\r\n Enumerator current = null;\r\n\r\n Token enumLiteral_0=null;\r\n Token enumLiteral_1=null;\r\n Token enumLiteral_2=null;\r\n\r\n enterRule(); \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5432:28: ( ( (enumLiteral_0= 'required' ) | (enumLiteral_1= 'offered' ) | (enumLiteral_2= 'contract' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5433:1: ( (enumLiteral_0= 'required' ) | (enumLiteral_1= 'offered' ) | (enumLiteral_2= 'contract' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5433:1: ( (enumLiteral_0= 'required' ) | (enumLiteral_1= 'offered' ) | (enumLiteral_2= 'contract' ) )\r\n int alt61=3;\r\n switch ( input.LA(1) ) {\r\n case 79:\r\n {\r\n alt61=1;\r\n }\r\n break;\r\n case 80:\r\n {\r\n alt61=2;\r\n }\r\n break;\r\n case 81:\r\n {\r\n alt61=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 61, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt61) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5433:2: (enumLiteral_0= 'required' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5433:2: (enumLiteral_0= 'required' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5433:4: enumLiteral_0= 'required'\r\n {\r\n enumLiteral_0=(Token)match(input,79,FOLLOW_79_in_ruleGoalKind12658); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n current = grammarAccess.getGoalKindAccess().getREQUIREDEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\r\n newLeafNode(enumLiteral_0, grammarAccess.getGoalKindAccess().getREQUIREDEnumLiteralDeclaration_0()); \r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5439:6: (enumLiteral_1= 'offered' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5439:6: (enumLiteral_1= 'offered' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5439:8: enumLiteral_1= 'offered'\r\n {\r\n enumLiteral_1=(Token)match(input,80,FOLLOW_80_in_ruleGoalKind12675); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n current = grammarAccess.getGoalKindAccess().getOFFEREDEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\r\n newLeafNode(enumLiteral_1, grammarAccess.getGoalKindAccess().getOFFEREDEnumLiteralDeclaration_1()); \r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5445:6: (enumLiteral_2= 'contract' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5445:6: (enumLiteral_2= 'contract' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5445:8: enumLiteral_2= 'contract'\r\n {\r\n enumLiteral_2=(Token)match(input,81,FOLLOW_81_in_ruleGoalKind12692); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n current = grammarAccess.getGoalKindAccess().getCONTRACTEnumLiteralDeclaration_2().getEnumLiteral().getInstance();\r\n newLeafNode(enumLiteral_2, grammarAccess.getGoalKindAccess().getCONTRACTEnumLiteralDeclaration_2()); \r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\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 }",
"public static RecordStatusEnum get(String string) {\n if (string == null) {\n return null;\n }\n try {\n Integer id = Integer.valueOf(string);\n RecordStatusEnum enumeration = getById(id);\n if (enumeration != null) {\n return enumeration;\n }\n }\n catch (Exception e) {\n // ignore\n }\n return getByLabel(string);\n }",
"public IotaEnum getIotaEnum() {\n return _iotaEnum ;\n }",
"public static StatusType getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tStatusType result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public interface CodeEnum {\n\n Integer getCode();\n}",
"public static RecordStatusEnum getByLabel(String label) {\n for (RecordStatusEnum type : RecordStatusEnum.values()) {\n if (type.label.equalsIgnoreCase(label)) {\n return type;\n }\n }\n return null;\n }",
"public static StatutCivilEnum randomLetter() {\n return VALUES.get(RANDOM.nextInt(SIZE));\n }",
"public static AttackTypeEnum get(final String code) {\r\n return ATTACK_TYPES.get(code);\r\n }",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"public static <E extends Enum<E>> E nbtGetEnum(CompoundNBT nbt, String key, Function<String, E> enumFactory, E defaultValue) {\n\n if (nbt.contains(key)) {\n\n final String value = nbt.getString(key);\n\n if (!Strings.isNullOrEmpty(value)) {\n return enumFactory.apply(nbt.getString(key));\n }\n }\n\n return defaultValue;\n }"
] | [
"0.6963672",
"0.6932631",
"0.66874135",
"0.66330373",
"0.64123505",
"0.6404934",
"0.6336596",
"0.6336596",
"0.6336596",
"0.627398",
"0.625015",
"0.61679",
"0.61326486",
"0.6121916",
"0.60477906",
"0.60441655",
"0.6040512",
"0.603899",
"0.6033901",
"0.60189915",
"0.5996245",
"0.5985277",
"0.5968288",
"0.59619033",
"0.5961451",
"0.5949039",
"0.59480786",
"0.59229356",
"0.59208053",
"0.5890929",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.5874566",
"0.58522344",
"0.5845019",
"0.5836773",
"0.5833302",
"0.582166",
"0.5821109",
"0.58202857",
"0.5789712",
"0.578879",
"0.5773419",
"0.5773004",
"0.57699585",
"0.5766026",
"0.57644856",
"0.57537496",
"0.57427996",
"0.57321006",
"0.57281685",
"0.5723968",
"0.5721076",
"0.5717168",
"0.57145834",
"0.5714364",
"0.5713217",
"0.57124716",
"0.57086116",
"0.5708328",
"0.5706398",
"0.5697403",
"0.5696932",
"0.5692465",
"0.5687049",
"0.5684549",
"0.5674861",
"0.5674043",
"0.5662945",
"0.5656419",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.5654946",
"0.56410086"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.